@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    padding: 0;
}

@media (min-width: 769px) {

    .photo-mentions-legales {
        width: 100%;
        height: auto;
    }

    .photo-mentions-legales-tel {
        display: none;
    }

    .main-content {
        background-image: url('https://i.imgur.com/NMx9fzP.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        background-attachment: fixed;
        z-index: -1;
        margin-top: 0;
        color: #333;
    }

    header {
        position: absolute;
        top: 0px;
        left: -100px;
        height: 20px;
        width: 100%;
        z-index: 10;
        padding: 20px 50px;
        background-color: rgba(255, 255, 255, 0.5);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-socials-mobile,
    .menu-toggler,
    .main-nav-mobile {
        display: none;
    }

    .hamburger {
        display: none;
    }

    .header-logo-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        gap: 15px;
        margin-right: auto;
        flex-shrink: 0;
        margin-left: 70px;
    }

    .logo-filou3 {
        height: 50px;
        width: auto;
        display: block;
    }

    .header-nom {
        color: #144b63;
        white-space: nowrap;
        font-size: clamp(10px, 12px, 14px);
        opacity: 0.9;
    }

    .main-nav-desktop ul {
        display: flex;
        list-style: none;
        gap: clamp(20px, 3vw, 50px);
        margin: 0;
        padding: 0;
    }

    .nav-img-link {
        color: transparent;
        text-decoration: none;
        display: block;
        position: relative;
    }

    .main-nav-desktop {
        display: flex;
    } 

    .main-nav-desktop a {
        text-decoration: none;
        color: #144b63;
        font-size: 14px;
        font-weight: 500;
        transition: color 0.3s;
        opacity: 0.9;
    }

    .main-nav-desktop a.active {
        font-weight: bold;
    }

    .main-nav-desktop a B {
        font-weight: inherit;
    }

    .main-nav-desktop b {
        font-weight: inherit;
    }

    .main-nav-desktop a:hover {
        color: #EB7F2A;
        opacity: 1;
    }

    .titre_mentions-legales {
        display: flex;
        color: #144b63;
        font-size: 28px;
        margin-top: 100px;
        width: 100%;
        justify-content: center;
        align-items: center; 
        text-align: center;
        margin-bottom: 20px;
    }

    .mentions-legales-container {
        max-width: 900px;
        margin: 40px auto;
        padding: 0 20px;
        color: #333;
    }

    .section-title {
        font-size: 1.4em;
        font-weight: bold;
        color: #EB7F2A;
        margin-top: 40px;
        margin-bottom: 15px;
        border-bottom: 2px solid #EEE;
        padding-bottom: 5px;
    }

    .mentions-legales-container p {
        font-size: 0.95em;
        line-height: 1.6; 
        margin-bottom: 20px; 
    }

    .donnees-site {
        margin: 15px 0 30px 0; 
        display: grid;
        grid-template-columns: 200px 1fr; 
        row-gap: 8px;
    }

    .donnees-site dt {
        font-weight: bold;
        align-self: start; 
        padding-right: 15px;
    }

    .donnees-site dd {
        margin-left: 0; 
    }

    .note-pub {
        font-style: italic;
        font-size: 0.9em;
        grid-column: 1 / span 2; 
    }

    .mentions-legales-container a {
        text-decoration: none; 
        color: #EB7F2A;
        transition: color 0.3s ease; 
    }

    .mentions-legales-container a:hover {
        color: #FF9933; 
    }

    .cookie-banner {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: #E8E8E8;
        color: #333;
        padding: 20px;
        border-radius: 10px;
        z-index: 1000;
        display: none; 
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        width: calc(100% - 100px);
        max-width: none;
        text-align: center;
    }

    h6 {
        font-size: 18px;
        font-weight: normal;
    }

    .cookie-buttons { margin-top: 15px; display: flex; gap: 10px; justify-content: center; }
    .btn-accept { background: transparent; border: 1px solid orange; color: orange; padding: 10px 20px; cursor: pointer; border-radius: 5px; }
    .btn-refuse { background: transparent; border: 1px solid orange; color: orange; padding: 10px 20px; cursor: pointer; border-radius: 5px; }

    .map-placeholder {
        width: 100%; height: 100%;
        background: #f0f0f0;
        display: flex; align-items: center; justify-content: center;
        text-align: center; padding: 20px;
    }

    .btn-info {
        font-size: 0.85em;
        color: #144b63;
        text-decoration: none;
        align-self: center;
        padding: 10px;
        transition: opacity 0.3s;
    }

    .btn-info:hover {
        opacity: 0.7;
    }

    footer {
        width: 100%;
        padding: 30px 0;
        background-color: #fff;
        display: flex;
        justify-content: center;
        border-top: 1px solid #eee;
        z-index: 9999;
    }

    .main-nav {
        width: 100%;
        max-width: 1200px; 
        padding: 0 20px;
    }

    .main-nav ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .main-nav ul li {
        display: flex;
        align-items: center;
        flex: 1;
    }

    .main-nav ul li:nth-child(1) { justify-content: flex-start; }
    .main-nav ul li:nth-child(2) { justify-content: flex-start; flex: 0.8; }
    .main-nav ul li:last-child    { justify-content: flex-end; }

    .footer-socials {
        flex: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .icon-fb {
        margin-right: 40px !important;
    }

    .icon-in {
        margin-right: 80px !important;
    }

    .footer-socials a {
        text-decoration: none;
        color: #000;
        font-size: 1.2em;
        display: inline-block;
        transition: all 0.3s ease;
    }

    .logo_footer {
        display: flex !important;
        gap: 20px !important;
        align-items: center !important;
    }

    .logo_footer img {
        height: 30px;
        width: auto;
        transition: all 0.3s ease;
    }

    .main-nav a, .main-nav span {
        text-decoration: none;
        color: #000;
        font-size: 0.9em;
        transition: all 0.3s ease;
        display: inline-block;
    }

    .main-nav a:hover, 
    .footer-socials a:hover, 
    .logo_footer img:hover {
        color: #EB7F2A !important;
        transform: translateY(-5px) !important;
    }

}















@media (max-width: 768px) {

    /* --- 1. PRÉVENTION DU DÉBORDEMENT GLOBAL --- */
    body, html {
        overflow-x: hidden; 
        font-size: 14px; 
    }
    
    /* --- 2. GESTION DE L'EN-TÊTE FIXE --- */
    header {
        position: absolute;
        box-sizing: border-box;
        margin: 0;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        padding: 10px 20px;
        background-color: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 100;
        display: flex; 
        justify-content: space-between; 
        align-items: center;
    }

    .photo-mentions-legales-tel {
        display: block; 
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        overflow: hidden;
        z-index: -2;
    }

    .photo-mentions-legales {
        display: none;
    }

    .main-content {
        margin-top: 0 !important; 
    }

    .main-nav-desktop {
        display: none;
    }
    
    .header-nom {
        display: block;
        color: #144b63;
        font-size: 0.7em;
        margin-left: 0px;
        flex-grow: 1;
        text-align: left;
    }

    .header-logo-link {
        display: flex; 
        align-items: center;
        flex-grow: 0; 
        flex-shrink: 0;
        text-decoration: none;
    }

    .logo-filou3 {
        height: 30px;
        margin-left: -10px;
    }
    
    .menu-toggler {
        position: relative;
        display: flex; 
        flex-direction: column;
        justify-content: space-around;
        height: 25px; 
        width: 30px; 
        padding: 0;
        margin: 0;
        font-size: initial; 
        z-index: 1600;
    }

    .menu-toggler .bar {
        display: block;
        width: 100%;
        height: 3px; 
        background-color: #144b63; 
        transition: all 0.3s ease-in-out; 
        transform-origin: center; 
        z-index: 2500;
    }

    .menu-toggler.open .top-bar {
        transform: rotate(45deg) translate(7px, 7px); 
    }

    .menu-toggler.open .middle-bar {
        opacity: 0;
    }

    .menu-toggler.open .bottom-bar {
        transform: rotate(-45deg) translate(5px, -5px);
    }
        
    .main-nav-mobile {
        position: fixed;
        top: 0; 
        left: 0;
        width: 100%;
        height: 100dvh;
        background-color: rgba(255, 255, 255, 0.98); 
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        
        /* On le cache à DROITE de l'écran */
        transform: translateX(100%); 
        transition: transform 0.4s ease-in-out; 
        
        z-index: 2000;
        display: block;
        overflow-y: auto; 
    }




    
    .main-nav-mobile.open {
        transform: translateX(0); 
        top: 0; 
    }

    .main-nav-mobile .close-btn {
        display: none;
    }
   
    
    .main-nav-mobile ul {
        list-style: none;
        padding: 100px 40px; 
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center; 
    }
 
    .main-nav-mobile li {
        margin: 15px 0 0 0; 
        padding-bottom: 35px; 
    }

    .main-nav-mobile li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
 
    .main-nav-mobile a {
        color: #144b63;
        text-decoration: none;
        font-size: 1.8em;
        padding: 0 20px 0 0; 
        display: block;
        transition: color 0.3s;
    }

    .main-nav-mobile a:hover {
        color: #f7931e;
    }

    .logo-filou32 {
        height: 180px; 
        width: auto;
        margin-left: -30px;
        margin-top: -200px;
        margin-bottom: 70px;
        z-index: 1560;
    }

    .titre_mentions-legales {
        display: flex;
        color: #144b63;
        font-size: 18px;
        margin-top: 120px;
        width: 100%; 
        justify-content: center;
        align-items: center; 
        text-align: center;
        margin-bottom: 60px;
    }

    .mentions-legales-container {
        width: 92%; 
        max-width: 900px;
        margin: 40px auto;
        padding: 0; 
        color: #333;
        box-sizing: border-box; 
        overflow-wrap: break-word; 
        word-wrap: break-word;
    }

    .section-title {
        font-size: 1.4em;
        font-weight: bold;
        color: #EB7F2A; 
        margin-top: 40px;
        margin-bottom: 15px;
        border-bottom: 2px solid #EEE; 
        padding-bottom: 5px;
    }

    .mentions-legales-container p {
        font-size: 0.95em;
        line-height: 1.6; 
        margin-bottom: 20px; 
    }

    .donnees-site {
        margin: 15px 0 30px 0; 
        display: flex; 
        flex-direction: column;
        gap: 5px;
    }

    .donnees-site dt {
        font-weight: bold;
        color: #EB7F2A;
        margin-top: 10px;
    }

    .donnees-site dd {
        margin-left: 0; 
        padding-bottom: 5px;
        border-bottom: 1px solid #eee; 
    }

    .note-pub {
        font-style: italic;
        font-size: 0.9em;
        grid-column: 1 / span 2; 
    }

    .wrapetwrapreverse {
        display: flex;
        flex-wrap: wrap;
    }

    .mentions-legales-container a {
        text-decoration: none; 
        color: #EB7F2A;
        transition: color 0.3s ease; 
    }

    .mentions-legales-container a:hover {
        color: #FF9933; 
    }

    .cookie-banner {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: #E8E8E8;
        color: #333; 
        padding: 20px;
        border-radius: 10px;
        z-index: 1000;
        display: none; 
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        width: calc(100% - 100px); 
        max-width: none;
        text-align: center;
    }

    h6 {
        font-size: 18px;
        font-weight: normal;
    }

    .cookie-buttons { margin-top: 15px; display: flex; gap: 10px; justify-content: center; }
    .btn-accept { background: transparent; border: 1px solid orange; color: orange; padding: 10px 20px; cursor: pointer; border-radius: 5px; }
    .btn-refuse { background: transparent; border: 1px solid orange; color: orange; padding: 10px 20px; cursor: pointer; border-radius: 5px; }

    .map-placeholder {
        width: 100%; height: 100%;
        background: #f0f0f0;
        display: flex; align-items: center; justify-content: center;
        text-align: center; padding: 20px;
    }

    .btn-info {
        font-size: 0.85em;
        color: #144b63; 
        text-decoration: none;
        align-self: center; 
        padding: 10px;
        transition: opacity 0.3s;
    }

    .btn-info:hover {
        opacity: 0.7;
    }

    footer {
        width: 100%;
        padding: 20px 10px;
        background-color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 999;
        box-sizing: border-box;
    }

    .main-nav {
        width: 100%;
        max-width: 1200px;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column; 
        gap: 20px;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-socials {
        display: flex !important;
        flex-direction: row !important; 
        flex-wrap: wrap; 
        justify-content: center;
        align-items: center;
        gap: clamp(10px, 3vw, 20px); 
        width: 100%;
    }

    .footer-socials a {
        font-size: clamp(1.1em, 4vw, 1.4em); 
        color: #000000;
        text-decoration: none;
        display: inline-block;
    }

    .logo_footer {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: clamp(8px, 2vw, 15px); 
        margin-top: 0;
    }

    .logo_footer img {
        height: clamp(25px, 6vw, 40px) !important;
        width: auto !important;
        object-fit: contain;
    }

    .main-nav a,
    .main-nav span {
        text-decoration: none;
        color: #144b63;
        font-size: clamp(0.75rem, 3vw, 0.85rem);
        text-align: center;
        white-space: normal;
    }

}