/* =========================================================
   PurKit – Overrides (chargé APRÈS assets/css/main.css)
   ========================================================= */

:root{
    --background-color: #f7f1e6;
    --surface-color: #fffaf2;

    --default-color: #2f2f2f;
    --heading-color: #1c3a26;

    --accent-color: #4f8f63;
    --contrast-color: #ffffff;

    --nav-color: #eef3ee;
    --nav-hover-color: #19271d;

    --nav-mobile-background-color: #fffaf2;
    --nav-dropdown-background-color: #fffaf2;
    --nav-dropdown-color: #2f2f2f;
    --nav-dropdown-hover-color: #023512;
    --pk-header-h: 86px;

    scroll-behavior: smooth;
}

/* Base */
body{
    background-color: var(--background-color);
    color: var(--default-color);
}
section, .section{
    background-color: var(--background-color);
    color: var(--default-color);
}
h1,h2,h3,h4,h5,h6{
    color: var(--heading-color);
}

/* Header: transparent + vert au scroll */
.header{
    background-color: rgba(0,0,0,0);
}

/* ✅ Hauteur globale du header (normal) */
#header{
    padding: 8px 0;
}

/* ✅ Barre verte au scroll (plus compacte) */
.scrolled .header,
.header.header-scrolled{
    background-color: rgba(7, 60, 14, 0.76);
    box-shadow: 0 0 18px rgba(0,0,0,0.12);
    backdrop-filter: blur(6px);
    padding: 4px 0; /* 🔽 plus petit */
}

/* Nav link color (desktop) */
@media (min-width: 1200px){
    .navmenu a, .navmenu a:focus{
        color: var(--nav-color);
    }
    .navmenu>ul>li>a:before{
        background-color: var(--nav-hover-color);
    }
    .navmenu li:hover>a,
    .navmenu .active,
    .navmenu .active:focus{
        color: color-mix(in srgb, var(--nav-color) 90%, white 15%);
    }
}

/* Lang switch */
.lang-switch{ gap: 8px; margin-left: 12px; }
.lang-switch .lang-btn{
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 60%);
    background: color-mix(in srgb, var(--surface-color), transparent 10%);
    color: var(--default-color);
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
    transition: .2s;
    line-height: 1;
    white-space: nowrap;
}
.lang-switch .lang-btn:hover{
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.lang-switch .lang-btn.active{
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color);
}

/* ============================
   HERO (PurKit) — source unique
   ============================ */

/* Le hero est le repère */
#hero.hero{
    min-height: 100vh;
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Image de fond */
#hero.hero > img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay (filtre) */
#hero.hero::before{
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--background-color), transparent 30%);
    z-index: 2;
}

/* Contenu au-dessus */
#hero.hero .container.hero-content{
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    /* Espace réservé au logo */
    padding-top: clamp(170px, 22vh, 280px);
}

/* Texte */
#hero.hero p.hero-subtitle{
    color: color-mix(in srgb, var(--default-color), transparent 10%);
    font-size: 24px;
    margin: 0;
    text-align: center;
}

@media (max-width: 768px){
    #hero.hero p.hero-subtitle{ font-size: 18px; }
}

/* Boutons */
#hero.hero .hero-actions{
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

/* LOGO superposé */
#hero.hero .hero-logo-overlay{
    position: absolute;
    top: clamp(40px, 3vh, 5px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;

    width: min(98vw, 1400px);
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0 16px;
}

/* Taille du logo (hero) */
#hero.hero .hero-logo-overlay img.hero-logo{
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    display: block;
}

/* Mobile hero */
@media (max-width: 576px){
    #hero.hero .hero-logo-overlay{
        top: 40px;
        width: 94vw;
    }
    #hero.hero .hero-logo-overlay img.hero-logo{
        max-height: 180px;
    }
    #hero.hero .container.hero-content{
        padding-top: 220px;
    }
}

/* ============================
   HEADER BAR (logo/menu/lang)
   ============================ */

#header .header-bar{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#header .header-logo{
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* ✅ Logo complet + un peu plus gros (normal) */
#header .header-logo img{
    height: 160px;
    width: auto;
    max-width: 270px;
    object-fit: contain;
    display: block;
}

/* ✅ Au scroll : logo un peu plus gros aussi */
.scrolled #header .header-logo img,
.header.header-scrolled .header-logo img{
    height: 130px;      /* ⬆️ un peu plus gros (avant 64) */
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

#header .navmenu{
    flex: 1 1 auto;
    display: flex;
}

#header .lang-switch{
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.scrolled #header .header-bar,
.header.header-scrolled .header-bar{
    padding: 0 !important;
}
@media (max-width: 576px){
    /* logo normal */
    #header .header-logo img{
        height: 52px;
        width: auto;
        max-width: 180px;
        object-fit: contain;
    }

    /* logo quand on scroll: plus petit */
    .scrolled #header .header-logo img,
    .header.header-scrolled .header-logo img{
        height: 40px;
        max-width: 150px;
    }
}

@media (max-width: 1199px){

    /* overlay (fond) */
    .mobile-nav-active .navmenu{
        position: fixed !important;
        inset: 0 !important;
        background: rgba(32,49,38,0.45) !important; /* doux, pas noir */
        z-index: 100000 !important;
    }

    /* panneau menu: commence sous le header et descend */
    .mobile-nav-active .navmenu > ul{
        position: fixed !important;
        top: var(--pk-header-h, 76px) !important;   /* ⬅️ hauteur header */
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;

        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;

        padding: 14px 0 18px 0 !important;
        overflow-y: auto !important;

        background: var(--nav-mobile-background-color) !important;
        z-index: 100001 !important;
    }

    /* liens plus gros et alignés */
    .mobile-nav-active .navmenu a,
    .mobile-nav-active .navmenu a:focus{
        padding: 14px 22px !important;
        font-size: 18px !important;
        justify-content: flex-start !important;
    }

    /* bouton X */
    .mobile-nav-active .mobile-nav-toggle{
        position: fixed !important;
        top: 16px !important;
        right: 16px !important;
        z-index: 100002 !important;
    }
}
@media (max-width: 576px){
    :root{ --pk-header-h: 72px; } /* mobile */
}
/* =========================================================
   MOBILE NAV — vert + toujours au-dessus (ne disparaît pas)
   ========================================================= */

/* le header reste au-dessus de tout */
#header{
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100000 !important;
}

/* IMPORTANT: évite que des sections "créent" un stacking context au-dessus */
main, section, .section{
    position: relative;
    z-index: 1;
}

/* hauteur du header utilisée pour placer le panneau en dessous */
:root{ --pk-header-h: 86px; }
@media (max-width: 576px){
    :root{ --pk-header-h: 72px; }
}

@media (max-width: 1199px){

    /* overlay plein écran (vert) */
    .mobile-nav-active .navmenu{
        position: fixed !important;
        inset: 0 !important;
        background: rgba(7, 60, 14, 0.92) !important; /* ✅ vert visible */
        z-index: 100001 !important;
    }

    /* panneau menu sous le header, plein écran (vert aussi) */
    .mobile-nav-active .navmenu > ul{
        position: fixed !important;
        top: var(--pk-header-h) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;

        margin: 0 !important;
        border-radius: 0 !important;

        background: rgba(7, 60, 14, 0.98) !important; /* ✅ vert solide */
        border: 0 !important;

        padding: 14px 0 18px 0 !important;
        overflow-y: auto !important;

        z-index: 100002 !important;
    }

    /* liens en blanc (lisibles) */
    .mobile-nav-active .navmenu a,
    .mobile-nav-active .navmenu a:focus{
        color: #fff !important;
        padding: 14px 22px !important;
        font-size: 18px !important;
        justify-content: flex-start !important;
    }

    /* état hover/tap */
    .mobile-nav-active .navmenu a:hover{
        background: rgba(255,255,255,0.12) !important;
        color: #fff !important;
    }

    /* enlever le highlight noir au tap sur mobile */
    .mobile-nav-active .navmenu a{
        -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    }

    /* bouton X / burger toujours visible */
    .mobile-nav-active .mobile-nav-toggle{
        position: fixed !important;
        top: 16px !important;
        right: 16px !important;
        z-index: 100003 !important;
        color: #fff !important;
    }
}
/* =========================================================
   FINAL OVERRIDE — mobile menu toujours au-dessus
   (à mettre TOUT en bas du fichier)
   ========================================================= */

@media (max-width: 1199px){

    /* le header au-dessus de tout */
    #header{
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 2147483646 !important; /* très haut */
    }

    /* overlay plein écran */
    .mobile-nav-active .navmenu{
        position: fixed !important;
        inset: 0 !important;
        background: rgba(7, 60, 14, 0.92) !important;
        z-index: 2147483644 !important;
    }

    /* panneau menu plein écran */
    .mobile-nav-active .navmenu > ul{
        position: fixed !important;
        inset: 0 !important;
        display: block !important;

        margin: 0 !important;
        border-radius: 0 !important;
        border: 0 !important;

        padding: 78px 0 18px 0 !important; /* espace pour le X */
        overflow-y: auto !important;

        background: rgba(7, 60, 14, 0.98) !important;
        z-index: 2147483645 !important;
    }

    /* liens */
    .mobile-nav-active .navmenu a,
    .mobile-nav-active .navmenu a:focus{
        color: #fff !important;
        padding: 14px 22px !important;
        font-size: 18px !important;
        justify-content: flex-start !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    }

    .mobile-nav-active .navmenu a:hover{
        background: rgba(255,255,255,0.12) !important;
    }

    /* bouton X toujours visible */
    .mobile-nav-active .mobile-nav-toggle{
        position: fixed !important;
        top: 16px !important;
        right: 16px !important;
        color: #fff !important;
        z-index: 2147483647 !important;
    }
}
#hero.hero p.hero-subtitle{
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.4px;
    text-align: center;

    align-self: stretch;   /* ✅ force l’item flex à s’étirer */
    width: 100%;
    max-width: 100%;
}

#pk-tab-tips .col-lg-6.text-center img{
    max-height: 450px;   /* ajuste: 220 / 260 / 300 / 350 */
    width: auto;
    height: auto;
    object-fit: contain; /* évite que ça coupe */
}
