:root {
    --bg-main: #ffffff;
    --bg-soft: #f5f5f7;
    --border-soft: #e5e5e5;
    --text-main: #333333;
    --text-muted: #6a6a6a;
    --accent: #c9a86a;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.05);
    --radius: 18px;
    --transition: 0.3s ease;
    --max-width: 1100px;
    --header-height: 70px;
    --whatsapp-bg: #25d366;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-soft);
    color: var(--text-main);
}

/* HEADER & NAVBAR */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-weight: 700;
    letter-spacing: 0.04em;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.menu a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    transition: background var(--transition), color var(--transition);
}

.menu a:hover,
.menu a.active {
    background: var(--accent);
    color: #fff;
}

/* Submenu */

.has-submenu {
    position: relative;
}

.submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: var(--text-main);
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    transition: background var(--transition), color var(--transition);
}

.submenu-toggle:hover {
    background: var(--accent);
    color: #fff;
}

.submenu {
    position: absolute;
    top: 120%;
    left: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 180px;
    display: none;
}

.submenu li a {
    display: block;
    padding: 0.4rem 0.9rem;
    border-radius: 0;
}

.has-submenu.open .submenu {
    display: block;
}

/* Burger */

.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 999px;
}

/* HERO SLIDER — VERSION CORRIGÉE ET MOBILE-FRIENDLY */

.hero-slider {
    background: var(--bg-main);
    padding: 1.5rem 1rem 2rem; /* padding au lieu de margin */
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin: 0; /* évite tout débordement */
}

.slider {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    background: #000;
}

.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
}

/* Images & vidéos 100% responsives */
.slide video,
.slide img {
    width: 100%;
    height: auto;              /* plus de hauteur fixe */
    aspect-ratio: 16/9;        /* garde une belle proportion */
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
}

/* Légende */
.slide-caption {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.slide-caption h1 {
    margin: 0 0 0.3rem;
    font-size: 1.6rem;
}

.slide-caption p {
    margin: 0;
    font-size: 0.95rem;
}

/* Boutons du slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* BLOCS */

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem;
}

.bloc {
    background: var(--bg-main);
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.bloc h2,
.bloc h1 {
    margin-top: 0;
}

/* ACCORDEONS */

.accordion {
    margin-top: 0.8rem;
}

.acc-btn {
    width: 100%;
    text-align: left;
    background: var(--bg-soft);
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    padding: 0.6rem 1rem;
    cursor: pointer;
    font: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acc-btn::after {
    content: "+";
    font-weight: bold;
}

.acc-btn.active::after {
    content: "–";
}

.acc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    padding: 0 0.2rem;
}

.acc-content.open {
    padding-top: 0.6rem;
}

/* GALLERY */

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.gallery img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

/* BUTTONS */

.btn-link {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

/* PARTNER */

.partner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.partner img {
    width: 120px;
    height: auto;
}

/* FOOTER */

.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-soft);
    margin-top: 2rem;
    padding: 1rem 1.5rem 1.5rem;
}

.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* SCROLL TOP */
#scrollTop {
    position: fixed;
    right: 1.2rem;
    bottom: 2.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

/* Quand visible */
#scrollTop.visible {
    opacity: 1;
    pointer-events: auto;
}


/* WHATSAPP */

.whatsapp-btn {
    position: fixed;
    left: 1.2rem;
    bottom: 1.2rem;
    background: var(--whatsapp-bg);
    color: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.85rem;
    box-shadow: var(--shadow-soft);
}

/* RGPD BANNER — toujours au-dessus */
.rgpd-banner {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0.8rem;
    max-width: 480px;
    width: calc(100% - 2rem);
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    display: none;
    z-index: 999999 !important; /* <-- CORRECTION CRITIQUE */
    pointer-events: auto !important; /* <-- Permet les clics */
}

.rgpd-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.rgpd-actions button {
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    font-size: 0.8rem;
}

#rgpd-accept {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* INSTALL BANNER — en dessous du RGPD */
.install-banner {
    position: fixed;
    top: 0.8rem;
    right: 0.8rem;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    max-width: 260px;
    z-index: 9999 !important; /* <-- en dessous du RGPD */
}

.install-banner.hidden {
    display: none;
}

.install-banner button {
    margin-top: 0.5rem;
    margin-right: 0.4rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Désactiver tout overlay invisible */
.overlay,
.backdrop,
#menu-overlay {
    pointer-events: none !important;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 240px;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 999;
}


    .menu.open {
        transform: translateX(0);
    }

    .burger {
        display: flex;
    }

    .submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
    }

    .has-submenu.open .submenu {
        display: block;
        margin-top: 0.4rem;
    }
}
body, p, li, .acc-content p {
    text-align: justify;
    text-justify: inter-word;
}
.btn-contact {
    display: inline-block;
    padding: 10px 18px;
    margin: 8px 0;
    background: #f2f2f2;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-contact:hover {
    background: #e0e0e0;
}
.site-footer {
    margin-top: 40px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.85); /* masque blanc */
    border-top: 1px solid #e5e5e5; /* contour doux */
    backdrop-filter: blur(6px); /* effet premium */
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-bottom: 15px;
}

.footer-links a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #000;
}

.footer-copy {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}
.whatsapp-btn {
    z-index: 9999 !important;
    position: fixed;
}
.navbar.open .menu {
    background: rgba(255, 255, 255, 0.85); /* fond blanc transparent */
    backdrop-filter: blur(8px); /* effet verre dépoli premium */
    border-radius: 12px;
    padding: 20px;
}
.footer-copy {
    text-align: center;
}
.formulaire-retour iframe {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}
.formulaire-projet iframe {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}
.intro {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.engagement {
    margin-top: 1.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
}
.video-wrapper {
    margin: 1rem 0 2rem;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.video-player {
    width: 100%;
    display: block;
    border-radius: 14px;
}
.hero-slider {
    max-width: var(--max-width);
    margin: 1.5rem auto; /* comme les autres blocs */
    padding: 1.5rem;
    background: var(--bg-main);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.point-actif {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #2ecc71; /* vert */
    border-radius: 50%;
    margin-left: 6px;
    animation: clignote 1.2s infinite ease-in-out;
}

@keyframes clignote {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
    100% { opacity: 1; transform: scale(1); }
}
.label-actif {
    font-size: 0.8rem;
    color: #2ecc71;
    margin-left: 4px;
    font-weight: 600;
}
/* --- MENU MOBILE CORRECT --- */
@media (max-width: 900px) {

    /* Le menu devient un panneau vertical */
    .menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 240px;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 999;

    /* LA CORRECTION ICI */
    height: auto; /* s’adapte au contenu */
    max-height: calc(100vh - var(--header-height)); /* sécurité */
    overflow-y: auto; /* scroll si trop long */
}


    /* Quand le menu est ouvert */
    .menu.open {
        transform: translateX(0);
    }

    /* Style des liens en mobile */
    .menu.open a {
        display: block;
        width: 100%;
        padding: 0.8rem 1rem;
        background: transparent !important;
        color: var(--text-main) !important;
        border-radius: 8px;
    }

    /* Survol en mobile */
    .menu.open a:hover {
        background: #e0e0e0 !important;
        color: #000 !important;
    }

    /* Neutraliser le fond du lien actif */
    .menu.open a.active {
        background: transparent !important;
        color: var(--text-main) !important;
    }
}
/* Liens globaux — même style que le menu */
main a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
}

main a:hover {
    opacity: 0.8;
}
/* Boutons téléphone & email — style premium doré */
.btn-contact {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background var(--transition), transform var(--transition);
}

.btn-contact:hover {
    background: #000; /* ou un accent plus foncé si tu préfères */
    transform: translateY(-2px);
}
/* Slide captions — version mobile plus discrète */
@media (max-width: 768px) {
    .slide-caption {
        left: 1rem;
        bottom: 1rem;
        max-width: 80%;
        text-shadow: 0 1px 6px rgba(0,0,0,0.4);
    }

    .slide-caption h1 {
        font-size: 1.1rem; /* plus petit */
        margin-bottom: 0.2rem;
    }

    .slide-caption p {
        font-size: 0.8rem; /* plus discret */
        line-height: 1.2;
    }
}
/* --- SLIDE CAPTION : VERSION PREMIUM (centrée + disparition) --- */

@media (max-width: 768px) {

    .slide-caption {
        position: absolute;
        left: 50%;
        bottom: 1rem;
        transform: translateX(-50%);
        text-align: center;
        max-width: 90%;
        color: #fff;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);

        /* Animation de disparition */
        opacity: 1;
        animation: fadeOutCaption 2s ease 2s forwards;
    }

    .slide-caption h1 {
        font-size: 1.1rem;
        margin: 0 0 0.2rem;
        font-weight: 700;
    }

    .slide-caption p {
        font-size: 0.8rem;
        margin: 0;
        line-height: 1.2;
    }
}

/* Animation : disparaît progressivement */
@keyframes fadeOutCaption {
    to {
        opacity: 0;
    }
}
html, body {
  overflow-x: hidden;
}





