/* --- Styles de base --- */
@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;
}

/* ======================================================= */
/* STYLES ORDINATEUR (Min 769px) */
/* ======================================================= */
@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_photo2 {
        display: flex;
        color: #144b63;
        font-size: 28px;
        margin-top: 100px;
        width: 100%;
        justify-content: center;
        align-items: center; 
        text-align: center;
        margin-bottom: 0px;
    }

    .titre_photo {
        display: flex;
        color: #144b63;
        font-size: 18px;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
        align-items: center; 
        text-align: center;
        margin-bottom: 0px;
    }

    .gallery2-container {
        display: flex;
        flex-wrap: wrap;
        margin: 50px 275px;
        width: auto;
    }

    div[class^="gallery2-item"] {
        margin: 5px;
        height: 324px;
        flex-grow: 1;
        min-width: 150px;
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }

    .gallery2-item1, .gallery2-item6, .gallery2-item11, .gallery2-item16, .gallery2-item21, .gallery2-item26, .gallery2-item31 {
        flex-basis: 20%;
    }

    .gallery2-item2, .gallery2-item7, .gallery2-item12, .gallery2-item17, .gallery2-item22, .gallery2-item27, .gallery2-item32 {
        flex-basis: 30%;
    }

    .gallery2-item3, .gallery2-item8, .gallery2-item13, .gallery2-item18, .gallery2-item23, .gallery2-item28, .gallery2-item33 {
        flex-basis: 45%;
    }

    .gallery2-item4, .gallery2-item9, .gallery2-item14, .gallery2-item19, .gallery2-item24, .gallery2-item29, .gallery2-item34,
    .gallery2-item5, .gallery2-item10, .gallery2-item15, .gallery2-item20, .gallery2-item25, .gallery2-item30, .gallery2-item35 {
        flex-basis: 22%;
    }

    div[class^="gallery2-item"] img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    div[class^="gallery2-item"]:hover img {
        transform: scale(1.05);
    }

    div[class^="gallery2-item"]::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 255, 0);
        transition: background-color 0.3s ease;
        z-index: 1;
    }

    div[class^="gallery2-item"]:hover::before {
        background-color: rgba(20, 75, 99, 0.3);
    }

    div[class^="gallery2-item"] .gallery-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 1.5em;
        text-align: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 2;
        padding: 10px;
        border-radius: 5px;
    }

    div[class^="gallery2-item"]:hover .gallery-text {
        opacity: 1;
    }

    .lightbox-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s, opacity 0.3s ease;
    }

    .lightbox-overlay.visible {
        visibility: visible;
        opacity: 1;
    }

    .lightbox-content {
        position: relative;
        max-width: 90%;
        max-height: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .lightbox-content img {
        width: auto;
        height: auto;
        max-width: 90vw;
        max-height: 80vh;
        object-fit: contain;
        display: block;
        margin: auto;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        position: absolute;
        background: none;
        border: none;
        color: white;
        font-size: 2em;
        cursor: pointer;
        padding: 10px;
        z-index: 1010;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

    .lightbox-caption {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 1.2em;
        text-align: center;
        max-width: 80%;
        padding: 5px 15px;
        border-radius: 5px;
    }

    .gallery3-container {
        display: none;
    }

    .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) {

    @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

    body, html {
        font-family: 'Montserrat', sans-serif;
        overflow-x: hidden; 
        font-size: 14px;
    }
    
    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_photo2 {
        display: flex;
        color: #144b63;
        font-size: 18px; 
        margin-top: 122px; 
        width: 100%;
        justify-content: center;
        align-items: center; 
        text-align: center;
        margin-bottom: 20px;
    }

    .titre_photo {
        display: flex;
        color: #144b63;
        font-size: 12px;
        width: 100%; 
        justify-content: center;
        align-items: center; 
        text-align: center;
        margin-bottom: 10px;
    }

    .gallery2-container {
        display: flex;
        flex-wrap: wrap;
        margin: 6px;
        width: auto;
        margin-bottom: 50px;
    }

    div[class^="gallery2-item"] {
        margin: 5px;
        height: 324px;
        flex-grow: 1;
        min-width: 150px;
        position: relative; 
        overflow: hidden; 
        cursor: pointer; 
    }

    div[class^="gallery2-item"]:nth-child(5n+1) {
        flex-basis: 20%;
    }

    div[class^="gallery2-item"]:nth-child(5n+2) {
        flex-basis: 30%;
    }

    div[class^="gallery2-item"]:nth-child(5n+3) {
        flex-basis: 45%;
    }

    div[class^="gallery2-item"]:nth-child(5n+4),
    div[class^="gallery2-item"]:nth-child(5n) {
        flex-basis: 22%;
    }

    div[class^="gallery2-item"] img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    div[class^="gallery2-item"] .gallery-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white; 
        font-size: 1.5em; 
        text-align: center;
        opacity: 0; 
        transition: opacity 0.3s ease; 
        z-index: 2; 
        padding: 10px;
        border-radius: 5px;
    }

    .lightbox-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        visibility: hidden; 
        opacity: 0;
        transition: visibility 0s, opacity 0.3s ease;
    }

    .lightbox-overlay.visible {
        visibility: visible;
        opacity: 1;
    }

    .lightbox-content {
        position: relative;
        max-width: 90%;
        max-height: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .lightbox-content img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; 
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        position: absolute;
        background: none;
        border: none;
        color: white;
        font-size: 2em;
        cursor: pointer;
        padding: 10px;
        z-index: 1010;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

    .lightbox-caption {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-size: 1.2em;
        text-align: center;
        max-width: 80%;
        padding: 5px 15px;
        border-radius: 5px;
    }

    .gallery3-container {
        display: none;
    }

    footer {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .main-nav ul {
        flex-direction: column; 
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    
    .main-nav li {
        text-align: center;
        width: 100%;
    }
    
    .main-nav a, .main-nav span {
        font-size: 0.85em;
        color: #144b63; 
        white-space: normal; 
    }

    .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;
    }

    .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); 
    }

    .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: #000000;
        font-size: clamp(0.75rem, 3vw, 0.85rem);
        text-align: center;
    }

    .logo_footer {
        margin-top: 0;
    }
}