/* ===== GENERAL ===== */
/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

main {
    margin-top: 8vh; /* Pour compenser la hauteur du header fixe */
}

/* Header */
.header {
    background: white;
    width: 100%;
    position: sticky;
    top: 0;
    height: auto;
    z-index: 13000;
    position: fixed;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 5vw;
    height: 12vh;
}

.logo-nom {
    padding: 8px;
}

.logo-image {
    height: 50px;
    width: 156px;
    object-fit: cover;
}

.menu-nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Canvas background for scroll-reactive purple spheres */
#scroll-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    will-change: filter, transform;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 520ms ease, transform 520ms cubic-bezier(.2,.9,.3,1), filter 520ms ease;
}

/* Visible state for entry animation */
#scroll-bg.visible {
    opacity: 1;
    transform: scale(1);
}

/* Ensure main content appears above the canvas */
header,
main,
footer {
    position: relative;
    z-index: 1;
}
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0px 0 16px 0;
    padding: 24px 0;
    background-color: #ffffff;
    /* Ombre portée vers le haut pour détacher le footer */
    box-shadow: 0 -16px 30px rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0,0,0,0.04);
    bottom: 0;
}

/* Ensure sections don't use opaque white backgrounds, except the headerApropos */
section:not(.headerApropos) {
    background: transparent;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0px;
    cursor: pointer;
}

.dropdown-toggle:hover img {
    rotate: 180deg;
}

.dropdown-toggle img {
    width: 16px;
    height: 16px;
    transition: 0.2s ease-in-out;
}
.dropdown-toggle a {
    padding: 8px 10px;
}

.nav-item-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    position: relative;
}

.nav-button {
    background: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #111;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button {
    position: relative;
}

.nav-button::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 6px;
    height: 2px;
    width: 60%;
    background: #111;
    transform: translateX(-50%) scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1), transform-origin 0ms linear;
}

.nav-button:hover::after,
.nav-button.active::after {
    transform-origin: left;
    transform: translateX(-50%) scaleX(1);
}

.nav-button:hover,
.nav-button.active {
    font-weight: 700;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    display: none;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    padding: 6px 0;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    min-width: 160px;
    z-index: 1200;
}

.nav-item-dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-link {
    padding: 8px 18px;
    color: #111;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
}

.dropdown-link:hover {
    background: #f5f5f5;
    font-weight: 700;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
}

.footer-logo {
    padding: 8px;
}

.menu-footer {
    display: flex;
    gap: 64px;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    letter-spacing: -0.32px;
}

.menu-footer a {
    color: black;
    text-decoration: none;
    transition: opacity 0.3s;
}

.menu-footer a:hover {
    opacity: 0.7;
}

.reseaux-sociaux {
    display: flex;
    gap: 26px;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    padding: 8px;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.7;
}

/* Footer layout: center and space content horizontally */


/* Center and constrain the Mon Histoire content */
.histoire-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 40px;
    width: 100%;
}
#apropos {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

#apropos::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../img/accueil/monHistoire.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: grayscale(100%) contrast(1.2) brightness(0.95);
    z-index: 0;
}

#apropos .histoire-content {
    position: relative;
    z-index: 1;
}

/* Burger menu styles (desktop default - behaviour moved to responsive) */
.burger {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200;
}
.burger span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    height: 3px;
    width: 22px;
    background: #111;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.28s ease, opacity 0.18s ease, top 0.18s ease;
    transform: translate(-50%, -50%);
}
.burger span:nth-child(1) { top: calc(50% - 8px); }
.burger span:nth-child(2) { top: 50%; }
.burger span:nth-child(3) { top: calc(50% + 8px); }

/* When burger has open class, animate into a cross */
.burger.open span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
    top: 50%;
}
.burger.open span:nth-child(2) {
    opacity: 0;
}
.burger.open span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
    top: 50%;
}

/* Mobile: transform the main nav into a dropdown when opened */
@media (max-width: 900px) {
    .menu-nav {
        position: absolute;
        top: 12vh;
        right: 0px;
        background: white;
        border-radius: 0px;
        /* shadow only on bottom edge */
        box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
        padding: 12px 16px;
        display: none;
        flex-direction: column;
        gap: 12px;
        min-width: 200px;
        z-index: 0;
        width: 100%;
        opacity: 0;
        transform-origin: top right;
        transform: translateY(-8px) scale(0.99);
        transition: opacity 220ms cubic-bezier(.2,.9,.3,1), transform 220ms cubic-bezier(.2,.9,.3,1);
    }
    .menu-nav.open {
        display: flex;
        opacity: 1;
        transform: translateY(0) scale(1);
        animation: menuPop 240ms cubic-bezier(.2,.9,.3,1) both;
    }
    .menu-nav a.nav-button,
    .menu-nav .nav-item-dropdown {
        display: block;
        width: 40vw;
        text-align: center;
        border-top: 1px solid rgba(0,0,0,0.3);
        border-radius: 0;
    }
    .nav-burger-service{
        border-top: 0px solid rgba(0,0,0,0.3) !important;
    }


    .nav-item-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        padding: 0;
        display: none;
    }
    .nav-item-dropdown .dropdown-menu.active {
        display: block;
    }
    .burger {
        display: block;
    }
}


/* ===== ACCUEIL ===== */
.section-accueil {
    position: relative;
    height: 92vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    overflow: hidden;
}

.section-galerie-hero {
    position: relative;
    height: 92vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 8vh;
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    max-height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.title-section {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 96px;
    color: white;
    letter-spacing: -1.92px;
    text-align: center;
    padding: 8px;
}

.subtitle-section {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: white;
    letter-spacing: -0.48px;
    text-align: center;
    padding: 8px;
    max-width: 800px;
}

/* Filtres Galerie Hero */
.filtre-galerie {
    display: flex;
    gap: 32px;
    align-items: center;
}

.filtre-btn {
    background: transparent;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.48px;
    padding: 8px 32px;
    border: 2px solid #ffffff;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtre-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filtre-btn:hover {
    background: #7600dd;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(118, 0, 221, 0.3);
    border: 3px solid #7600dd;

}

.filtre-btn.btn-photo {
    background: linear-gradient(90deg, #7b00e6 0%, #a64dff 100%);
    color: #fff;
    border: none;
}

.filtre-btn.btn-photo:hover {
    background: #7600dd;
    color: #fff;
    transform: translateY(-2px);

    box-shadow: 0px 4px 12px rgba(118, 0, 221, 0.3);
}

/* Header À propos: image de fond */
.headerApropos {
    min-height: 36vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/aPropos/backgroundGalerie.png');
    background-position: center 95%;
    background-size: cover;
    background-repeat: no-repeat;

    background-attachment: scroll;
    color: #fff;
}


.headerApropos h1 {
    position: relative;
    z-index: 1;
    font-size: 48px;
    font-weight: 700;
    padding: 40px 20px;
    text-align: center;
    letter-spacing: -1px;
}



/* ===== SERVICES ===== */
.section-services {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 65px;
    min-height: 600px;
}

.title-service {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 64px;
    color: #111;
    letter-spacing: -1.28px;
    text-align: center;
    padding: 8px;
}

.cartes-services-container {
    display: flex;
    gap: 187px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.carte-service {
    width: 450px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0px 5px 12.7px 0px rgba(0, 0, 0, 0.26);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.carte-service {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.image-carte {
    height: 235px;
    width: 100%;
    position: relative;
}

.image-carte img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-carte {
    overflow: hidden;
}
.image-carte img {
    transition: transform 360ms cubic-bezier(.2,.9,.3,1);
    transform-origin: center center;
}
.carte-service:hover .image-carte img,
.carte-service:focus .image-carte img {
    transform: scale(1.06);
}

.contenu-carte {
    flex: 1;
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.titre-carte {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #111;
    letter-spacing: -0.64px;
    text-align: center;
    padding: 8px;
}

.description-service {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #111;
    letter-spacing: -0.32px;
    padding: 8px;
    line-height: 1.5;
}

.btnSecondary{
    background: #ffffff;
    color: #111;
    border: 2px solid #111;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 12px 48px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    width: 50%;
    max-width: 300px;
    align-self: center;
}

.btnSecondary:hover {
    background: #111;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
}
/* Section Réalisations */
.realisation-section {
    padding: 64px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    min-height: 900px;
    max-width: 1440px;
    margin: 0 auto;
}

.title-realisations {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 64px;
    color: #111;
    letter-spacing: -1.28px;
    text-align: center;
    padding: 8px;
}

.cartes-realisations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px 140px;
    justify-content: center;
    padding: 0 20px 40px;
}

.carte-realisation {
    position: relative;
    width: 427px;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
}

.carte-realisation-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.carte-realisation .video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.carte-realisation-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.titre-realisation {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: white;
    letter-spacing: -0.48px;
    padding: 16px 20px;
}

.play-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.info-realisation {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 18px;
    color: white;
    letter-spacing: -0.36px;
    text-align: right;
    padding: 16px 20px;
}

.service-detail-section {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.service-content {
    display: flex;
    gap: 64px;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.service-content.reverse {
    flex-direction: row-reverse;
}

.service-text {
    max-width: 60vw;
    width: 586px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: black;
    line-height: 1.6;
    
}

.service-text ul {
    gap: 40px;
    display: flex;
    flex-direction: column;
}



.service-image {
    width: 301px;
    height: 460px;
    border-radius: 16px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-galerie-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 70%;
    margin: 0 200px;
    /* overflow: hidden; */
}

/* Lightbox styles */
.rc-lightbox-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 200ms ease;
    z-index: 15000;
}
.rc-lightbox-overlay.open {
    opacity: 1;
    visibility: visible;
}
.rc-lightbox-content {
    position: relative;
    max-width: 92%;
    max-height: 92%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rc-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.6);
    display: block;
}
.rc-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #fff;
    color: #111;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.28);
    transition: all 0.2s ease;
}

.rc-lightbox-close:hover {
    transform: scale(1.1);
    background: #f0f0f0;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.rc-lightbox-prev,
.rc-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rc-lightbox-prev {
    left: -70px;
}

.rc-lightbox-next {
    right: -70px;
}

.rc-lightbox-prev:hover,
.rc-lightbox-next:hover {
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 720px) {
    .rc-lightbox-content {
        max-width: 95%;
        max-height: 90%;
        padding: 8px;
    }
    .rc-lightbox-image { 
        max-height: 65vh; 
        max-width: 95vw;
    }
    .rc-lightbox-close { 
        width: 36px; 
        height: 36px; 
        font-size: 20px;
        top: 8px;
        right: 8px;
    }
    .rc-lightbox-prev,
    .rc-lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 22px;
        left: 8px;
        right: auto;
        bottom: auto;
    }
    .rc-lightbox-next {
        left: auto;
        right: 8px;
    }
    .rc-lightbox-prev {
        left: 8px;
    }

    /* Header extra small screen adjustments */
    .header-content {
        height: 7vh;
        padding: 6px 3vw;
    }

    .logo-image {
        height: 28px;
        width: 90px;
    }

    .nav-button,
    .nav-item-dropdown {
        font-size: 13px;
        padding: 5px 12px;
    }

       .toutCategory {
    margin-left:10vw ;
    }
}


@media (max-width: 600px) {
    /* Header very small screen adjustments */
    .header-content {
        height: 6vh;
        padding: 4px 2vw;
    }

    .logo-image {
        height: 24px;
        width: 80px;
    }

    .nav-button,
    .nav-item-dropdown {
        font-size: 12px;
        padding: 4px 10px;
    }

    .logo-nom {
        padding: 4px;
    }

       .toutCategory {
    margin-left:5vw ;
    }
}
.containerPhoto {
    width: auto;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}


.containerPhoto img {
    transition: transform 360ms cubic-bezier(.2,.9,.3,1), box-shadow 260ms ease;
    width: 100%;
    height: auto;
    display: block;
    transform-origin: center center;
    will-change: transform;
}

@media (max-width: 900px) {
    .containerPhoto img {
        max-height: 500px;
    }
}

.containerPhoto:hover img {
    transform: scale(1.12) !important;
    cursor: pointer;
}

/* Ensure videos don't get the pointer cursor */
/* .galerie-item.video { cursor: default; } */

.galerie-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 40px;
    color: black;
    letter-spacing: -0.8px;
    text-align: center;
}

.line-separator {
    width: 518px;
    height: 2px;
    background: black;
}

/* Desktop version */
.gallery-desktop {
    width: 100%;
    display: flex;
    justify-content: center;
}

.gallery-desktop .service-photo-grid {
    display: flex;
    gap: 60px;
    padding: 40px 0 0;
    width: auto;
    height: auto;
    margin: 0;
}

.gallery-desktop .service-photo-grid img {
    width: 235px;
    height: 316px;
    border-radius: 16px;
    object-fit: cover;
}

.carousel-wrapper {
    display: none;
}

.service-video-grid {
    display: flex;
    gap: 100px;
    padding: 0;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
    max-width: 1200px;
}

.service-video-item {
    position: relative;
    width: 550px;
    height: 310px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-video-item .video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}





.link-voir-plus {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #7600dd;
    letter-spacing: -0.28px;
    text-decoration: underline;
    text-align: center;
    padding: 8px 60px;
    display: inline-block;
    transition: transform 220ms cubic-bezier(.2,.9,.3,1), opacity 220ms ease;
}


/* ===== GALERIE ===== */
.galerie {
    padding: 0px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.titre-section-galerie {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin-top: 40px;
}

@media (max-width: 1440px) {
    .titre-section-galerie {
        margin-top: 0;
    }
    
    h1 {
        text-transform: uppercase;
    }
}

.line-decoration {
    width: 400px;
    height: 3px;
    background: black;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 64px;
    color: #111;
    letter-spacing: -1.28px;
    text-align: center;
    padding: 8px;
}

.filtres-categories {
    display: flex;
    gap: 12px;
    padding: 0 100px;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    width: 100%;
    padding: 10px 0;
    justify-content: center;
}

/* Types (Photos & Vidéos) - Centré sans scroll */
.filtreGalerie > .filtres-categories:last-child {
    justify-content: center;
    overflow: hidden;
}

.filtres-categories::-webkit-scrollbar {
    height: 5px;
}

.filtres-categories::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

.filtres-categories::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #7600dd, #5700a3);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(118, 0, 221, 0.2);
}

.filtres-categories::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8b1ae0, #6a0bb5);
    box-shadow: 0 4px 12px rgba(118, 0, 221, 0.4);
    height: 6px;
}

/* Mobile uniquement : Scroll sur les catégories */
@media (max-width: 720px) {
    .filtreGalerie > .filtres-categories:first-child {
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
    }
    .filtreGalerie {
        gap: 12px !important;
    }

}

.category-btn, .type-btn{
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.32px;
    padding: 6px 16px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn.active {
    background: #111;
    color: white; 
    border: 1px solid #111;

}

.type-btn.active {
    background: #7600dd;
    color: white; 
    border: 1px solid #7600dd;
}

.category-btn:hover, .type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
}

.category-btn {
    background: white;
    color: #111;
    border: 1px solid #111;

}
.type-btn{
    background: white;
    color: #5700a3;
    border: 1px solid #7600dd;

}


.category-btn:hover {
    background: #111;
    color: white;
    border: 1px solid #111;

}

.type-btn:hover {
    background: #7600dd;
    color: white;
    border: 1px solid #7600dd;

}

.filtreGalerie{
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    align-items: center;
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
}

.galerie-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    max-width: 1350px;
}

.galerie-grid.small .galerie-item {
    width: 400px;
    height: auto;
    border-radius: 8px;
}


/* ===== A PROPOS ===== */
.section-presentation {
    background: #ffffff;
    padding: 120px 0 40px 0;
    display: flex;
    justify-content: center;

}

.presentation-container {
    max-width: 1200px;
    display: flex;
    gap: 80px;
    align-items: center;
    padding: 0 40px;
}

.presentation-image {
    flex-shrink: 0;
}

.presentation-image img {
    width: 362px;
    height: 483px;
    border-radius: 16px;
    object-fit: cover;
}

.presentation-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.presentation-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #111;
    letter-spacing: -0.96px;
}

.presentation-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #111;
    line-height: 1.8;
}

.presentation-text p {
    margin-bottom: 16px;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

main.page-enter {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 420ms cubic-bezier(.2,.9,.3,1), transform 420ms cubic-bezier(.2,.9,.3,1);
}
main.page-enter.is-ready {
    opacity: 1;
    transform: translateY(0);
}

.section-pourquoi-creer {
    background: rgb(255, 255, 255);
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.pourquoi-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #111;
    letter-spacing: -0.96px;
    text-align: center;
}

.pourquoi-content {
    max-width: 1000px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #111;
    line-height: 1.8;
    text-align: center;
    padding: 0 40px;
}

.pourquoi-content p {
    margin-bottom: 16px;
}



/* ===== CONTACT ===== */
.section-contact {
    background: hsl(0, 0%, 100%);
    padding: 100px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 88vh;
}

.contact-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    gap: 120px;
    padding: 0 40px;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #111;
    letter-spacing: -0.96px;
    margin-top: 20px;
}

.contact-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #111;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    flex-shrink: 0;
}

.contact-link {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #111;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #7600dd;
}

.contact-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #111;
}

.contact-form-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding-top: 80px;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 6px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #111;
    background: transparent;
    border: none;
    border-bottom: 1px solid #111;
    outline: none;
    transition: border-color 0.3s;
}

/* Inline label (MUI-like): hidden by default, shown as a small label above the field when it has content */
/* Label starts overlapped with the placeholder, then animates to a small label above the field
   - initial: positioned where the placeholder sits, subtle color, invisible (opacity 0)
   - on focus-within or when .has-value: move up, shrink, change color and become visible */
.form-label {
    position: absolute;
    left: 8px;
    top: 8px; /* sits closer to the placeholder text */
    font-size: 16px;
    line-height: 1;
    color: #999;
    background: transparent; /* keep transparent (no white block) */
    padding: 0 4px;
    pointer-events: none;
    opacity: 0;
    transform-origin: left top;
    transition: top 180ms ease, font-size 180ms ease, color 180ms ease, opacity 180ms ease, transform 180ms ease;
}
.form-group:focus-within .form-label,
.form-group.has-value .form-label {
    top: -8px;
    font-size: 12px;
    color: #111;
    background: transparent; /* no background */
    padding: 0 4px;
    opacity: 1;
}
/* Show label when the field or any child has focus */
.form-group:focus-within .form-label {
    display: inline-block;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

.form-input:focus,
.form-textarea:focus {
    border-bottom-color: #7600dd;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-envoyer {
    align-self: flex-end;
    background: #111;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 48px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-envoyer:hover {
    background: #7600dd;
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(118, 0, 221, 0.3);
}

.btn-envoyer:active {
    transform: translateY(0);
}

/* Mobile responsive layout for contact form */
@media (max-width: 900px) {
    .section-contact {
        padding: 60px 0;
        min-height: auto;
        align-items: center;
    }

    .contact-container {
        flex-direction: column;
        gap: 60px;
        padding: 0 40px;
    }

    .contact-info {
        gap: 24px;
    }

    .contact-title {
        font-size: 32px;
    }

    .contact-form-wrapper {
        padding-top: 0;
    }
}

/* Optional small page-exit overlay (used by JS if needed) */
/* .page-exit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0);
    pointer-events: none;
    z-index: 2000;
    transition: background 360ms ease;
}
.page-exit-overlay.active {
    background: rgba(255,255,255,0.95); */
/* } */

/* ===== RESPONSIVE (médias) ===== */
@media (min-width: 900px) {
    #scroll-bg {
        filter: blur(6px);
    }
    .nav-burger-service{
        display: none;
    }
}

@media (max-width: 900px) {
    /* Header mobile adjustments */
    .header-content {
        padding: 8px 4vw;
        height: 8vh;
    }

    .logo-image {
        height: 32px;
        width: 100px;
    }

    .menu-nav {
        gap: 8px;
    }

    .nav-button,
    .nav-item-dropdown {
        font-size: 14px;
        padding: 6px 14px;
    }

    .nav-button::after {
        width: 50%;
        height: 1px;
        bottom: 4px;
    }

    #scroll-bg {
        filter: blur(6px);
    }
}

@media (max-width: 1440px) {
    .header-content {
        padding: 20px 40px;
    }
    /* .containerPhoto{
        display: flex;
        align-items: center;
        jus
    } */
    

    .logo-image {
        height: 40px;
        width: 125px;
    }

    .cartes-services-container {
        gap: 80px;
    }

    .cartes-realisations-grid {
        gap: 40px 80px;
        padding: 0 20px 40px;
    }

    .histoire-content {
        padding: 8px 300px 8px 40px;
    }

    .section-pourquoi-creer {
    padding: 20px 0;
    }
    .headerApropos {
        min-height: 88vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background: url('../img/aPropos/backgroundGalerie.png');
        background-position: center 95%;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: scroll;
        color: #fff;
        margin-top: 12vh;
    }

    .service-image, .galerie-title, .line-separator {
    display: none;
    }
    .service-content{
        padding: 20px 0;
    }
    .service-galerie-section .service-video-grid{
        width: 40vw;
        max-width: 100%;
        margin: 0;
    }
    
    .btnSecondary {
        width: 80vw;
        margin: 40px 0 0 0;
    }
    #video-detail {
        padding: 20px 0 40px 0 ;
    }
}

@media (max-width: 1024px) {
    .title-section {
        font-size: 64px;
    }

    .subtitle-section {
        font-size: 18px;
    }

    .cartes-services-container {
        flex-direction: column;
        gap: 40px;
    }

    .cartes-realisations-grid {
        gap: 30px;
    }

    .service-content {
        flex-direction: column !important;
    }

    .service-photo-grid {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }



    .service-video-item {
        width: 480px;
        height: 270px;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .service-video-grid {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .service-video-item {
        width: 100%;
        max-width: 500px;
        height: 300px;
    }

 

}

@media (max-width: 900px) {
    .menu-nav {
        display: none;
    }

      .histoire-content {
        padding: 8px 40px;
    }

    .histoire-paragraph {
        color: rgb(236, 236, 236);
    }
    .burger { display: block; }

    

    body.nav-open .menu-nav {
        display: flex;
        position: fixed;
        top: 11vh;
        left: 0;
        right: 0;
        width: 100vw;
        margin: 0;
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
        background: white;
        z-index: 1190;
        /* subtle bottom-only shadow for full-width mobile menu */
        box-shadow: 0 10px 24px -8px rgba(0,0,0,0.08);
        border-radius: 0; /* full-width look */
        overflow: hidden;
        /* appearance animation */
        animation: slideDownFade 260ms cubic-bezier(.2,.9,.3,1) both;
    }

    body.nav-open .menu-nav .nav-button,
    body.nav-open .menu-nav a,
    body.nav-open .menu-nav .dropdown-link {
        display: block;
        padding: 12px 16px;
        border-radius: 8px;
    }

    body.nav-open .burger span:nth-child(1) { top: 50%; transform: translate(-50%, -50%) rotate(45deg); }
    body.nav-open .burger span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scaleX(0); }
    body.nav-open .burger span:nth-child(3) { top: 50%; transform: translate(-50%, -50%) rotate(-45deg); }

    /* prevent hover-driven dropdown from appearing */
    .nav-item-dropdown:hover .dropdown-menu { display: none; }

    /* when mobile menu is open, show dropdown links stacked and without absolute positioning */
    body.nav-open .nav-item-dropdown {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    body.nav-open .nav-item-dropdown .dropdown-menu {
        display: flex !important;
        position: static;
        flex-direction: column;
        box-shadow: none;
        background: transparent;
        padding: 0 8px 8px 8px;
        margin: 0;
        min-width: auto;    
    }
    body.nav-open .nav-item-dropdown .dropdown-link {
        padding: 10px 12px;
        border-radius: 8px;
        color: inherit;
    }
    .nav-item-dropdown {
        display: none !important;
    }
}

/* animation used when opening the mobile full-width menu */
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* small pop animation for the dropdown-style .menu-nav.open */
@keyframes menuPop {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    60% {
        opacity: 1;
        transform: translateY(2px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1440px) {
    .header-content {
        height: 12vh;
        gap: auto;
    }

    .menu-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Section accueil - plus de padding */
    .section-accueil {
        padding: 40px 20px;
    }

    .title-section {
        font-size: 36px;
    }

    .subtitle-section {
        font-size: 14px;
    }

    .title-service,
    .title-realisations,
    .section-title {
        font-size: 32px;
    }

    /* Cartes services plus petites */
    .carte-service {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    .cartes-services-container {
        gap: 30px;
        flex-wrap: wrap;
    }

    /* Textes p plus petits */
    p {
        font-size: 14px;
    }

    p,
    .description-service,
    .histoire-text,
    .presentation-text,
    .subtitle-section {
        font-size: 14px;
    }

    .btnSecondary {
        width: 60vw;
    }

    /* Réduire les cartes services en mobile */
    .image-carte {
        height: 160px;
    }

    .social-icon {
        padding: 4px;
        width: 28px;
    }

    /* Service Videos - Mobile */
    .service-video-grid {
        gap: 30px;
        max-width: 100%;
        padding: 0 20px;
    }

    .service-video-item {
        width: 100%;
        max-width: 100%;
        height: 240px;
        min-width: 300px;
    }

    /* Section présentation plus grande */
    .section-presentation {
        padding: 60px 20px;
    }

    .presentation-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .presentation-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .presentation-title {
        font-size: 28px;
    }

    /* IFrames vidéo plus petites */
    iframe {
        max-height: 250px;
        object-fit: cover;
        object-position: center;
    }

    /* Footer - enlever le menu et réduire le logo */
    .menu-footer {
        display: none;
    }

    .footer-logo img {
        height: 40px;
        width: auto;
    }

    .galerie {
        gap: 20px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        padding: 20px 5vw;
        text-align: center;
    }

    .titre-galerie {
        flex-direction: column;
        gap: 20px;
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/galerie/photo/thumb/ciel3_thumb.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 40px 20px;
        height: 88vh;
        margin-top: 4vh;
        position: relative;
    }
    .titre-section-galerie h1{
        color: white;
    }
    .titre-section-galerie .line-decoration {
        display: none;
    }
    
    .titre-section-galerie::before {
        display: none;
    }

    .line-decoration {
        width: 200px;
    }

    .carte-realisation {
        width: 100%;
        min-width: 300px;
        max-width: 400px;
    }


    .filtres-categories {
        flex-wrap: nowrap;
        padding: 8px 0;
        width: 100%;
        overflow-y: hidden;
    }

    .galerie-grid.small .galerie-item {
        width: 100%;
        max-width: 325px;
    }

    .galerie-item-large {
        width: 100%;
        max-width: 301px;
    }

    /* Carousel Wrapper */
    .carousel-wrapper {
        width: 100%;
        height: 200px;
        overflow: hidden;
        border-radius: 8px;
        display: block;
    }

    /* Hide desktop gallery on mobile */
    .gallery-desktop {
        display: none;
    }

    /* Service Photo - Carrousel auto */
    .service-photo-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 30px;
        padding: 0 0 40px 0;
        width: 600%;
        height: 280px;
        align-items: center;
        justify-content: flex-start;
        will-change: transform;
        margin: 0 auto;
        margin-left: -10%;
    }

    .service-photo-grid img {
        flex-shrink: 0;
        width: calc(80% / 4);
        min-width: calc(80% / 4);
        height: 100%;
        border-radius: 8px;
        object-fit: cover;
        display: block;
    }

    /* Hide scrollbar on mobile */
    .service-photo-grid::-webkit-scrollbar {
        display: none;
    }
    .service-photo-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Pages À propos et Contact responsive */
    .presentation-container {
        flex-direction: column;
        gap: 40px;
    }

    .presentation-image img {
        width: 100%;
        max-width: 362px;
        height: auto;
    }

    h1 {
        font-size: 36px !important;
    }

    .presentation-title,
    .pourquoi-title,
    .contact-title {
        font-size: 36px;
    }

    .contact-container {
        flex-direction: column;
        gap: 60px;
    }

    .contact-form-wrapper {
        padding-top: 0;
    }

}

/* Ensure anchor targets are nicely offset from the top (header) */
section[id],
#photo-detail,
#video-detail,
#photo-section,
#video-section {
    scroll-margin-top: 120px;
}

/* Arrival animation when jumping to anchor */
.arrive-anim {
    animation: arrive 0.65s cubic-bezier(.2,.9,.3,1) both;
}

@keyframes arrive {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}



/* Photo/Video will be shown via dropdown under Services (desktop).
   No special mobile hiding needed — dropdown menu is handled by existing rules. */

/* Mobile menu (for `.menu-toggle` button + `#mobile-menu`) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    z-index: 1300;
}
.menu-toggle img { width: 28px; height: 28px; display:block; }

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px; /* adjust if header height differs */
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 1290;
    /* mobile-menu: shadow only on bottom */
    box-shadow: 0 10px 24px -8px rgba(0,0,0,0.08);
    transform-origin: top;
    transition: opacity 200ms ease, transform 220ms ease;
    opacity: 0;
    transform: translateY(-6px);
}
.mobile-menu.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu ul { list-style: none; margin: 0; padding: 12px 16px; display:flex; flex-direction:column; gap:6px; }
.mobile-menu a { padding: 10px 12px; display:block; color: inherit; text-decoration: none; border-radius: 8px; }

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    /* hide desktop nav if mobile menu used */
    .menu-nav { display: none; }
}

/* Form message styles */
.form-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
