/* ============================================================================
   LIBERTATEM — Header simplifié (v2)
   Toujours visible (fond crème), même menu sur toutes les pages.
   Logo fixe à 120px de hauteur.
   ============================================================================ */

#header-section {
    display: none !important;
}

.gradiant-content {
    padding-top: 0 !important;
}

/* ---------------------------------------------------------------------------
   HEADER — toujours visible, fond crème opaque
   --------------------------------------------------------------------------- */

.lib-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(247, 243, 233, 0.97);
    box-shadow: 0 2px 12px rgba(46, 43, 36, 0.08);
    backdrop-filter: blur(6px);
    padding: 0.6rem 1.5rem;
}

/* Léger renforcement de l'ombre au scroll, purement décoratif,
   sans changement de couleur (donc pas de risque de lisibilité) */
.lib-header.lib-header--scrolled {
    box-shadow: 0 4px 18px rgba(46, 43, 36, 0.14);
}

.lib-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* ---------------------------------------------------------------------------
   LOGO — hauteur fixe 120px, ne rétrécit pas au scroll
   --------------------------------------------------------------------------- */

.lib-header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.lib-header-logo img {
    height: 120px;
    width: auto;
    display: block;
    border-radius: 8px;
}

/* ---------------------------------------------------------------------------
   NAVIGATION — toujours en olive foncé, lisible sur fond crème partout
   --------------------------------------------------------------------------- */

.lib-header-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lib-header-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--lib-olive-dark, #38461a);
    transition: color 0.15s ease;
    position: relative;
}

.lib-header-nav a:hover {
    color: var(--lib-olive, #4a5d23);
}

.lib-header-nav .current-menu-item > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: currentColor;
    opacity: 0.7;
}

/* Bouton burger (mobile) */
.lib-header-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.lib-header-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--lib-olive-dark, #38461a);
}

/* ---------------------------------------------------------------------------
   RESPONSIVE — menu mobile en panneau déroulant
   --------------------------------------------------------------------------- */

@media (max-width: 860px) {
    .lib-header-logo img {
        height: 72px; /* le logo 120px est trop grand pour les petits écrans */
    }

    .lib-header-burger {
        display: flex;
    }

    .lib-header-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(78vw, 320px);
        background: var(--lib-cream, #f7f3e9);
        box-shadow: -4px 0 24px rgba(46, 43, 36, 0.18);
        padding: 5.5rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.25s ease;
    }

    .lib-header-nav.lib-header-nav--open {
        transform: translateX(0);
    }

    .lib-header-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .lib-header-nav a {
        font-size: 1.05rem;
    }

    .lib-header-overlay {
        position: fixed;
        inset: 0;
        background: rgba(46, 43, 36, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease;
        z-index: 998;
    }

    .lib-header-overlay.lib-header-overlay--visible {
        opacity: 1;
        visibility: visible;
    }
}

/* ---------------------------------------------------------------------------
   ESPACEMENT DU CONTENU SOUS LE HEADER FIXE (toutes pages, y compris home)
   --------------------------------------------------------------------------- */

/* Le header n'étant plus transparent, le hero de la home doit lui aussi
   être repoussé sous le header — sinon le haut du hero serait masqué. */
.lib-hero {
    margin-top: 152px; /* hauteur header desktop (~120px logo + padding) */
}

body:not(.home) .lib-page,
body:not(.home) .lib-legal-page {
    padding-top: 152px;
}

@media (max-width: 860px) {
    .lib-hero {
        margin-top: 104px; /* hauteur header mobile (~72px logo + padding) */
    }

    body:not(.home) .lib-page,
    body:not(.home) .lib-legal-page {
        padding-top: 104px;
    }
}