/* ============================================================================
   LIBERTATEM — Harmonisation Header & Footer avec la charte de la home
   Palette : olive profond / crème / brun
   À enqueue depuis functions.php (voir bloc PHP fourni séparément)
   ============================================================================ */

:root {
    --lib-olive: #4a5d23;
    --lib-olive-dark: #38461a;
    --lib-cream: #f7f3e9;
    --lib-cream-dark: #ece4d0;
    --lib-brown: #6b4f3b;
    --lib-white: #ffffff;
}

/* ---------------------------------------------------------------------------
   HEADER
   --------------------------------------------------------------------------- */

#header-section {
    background: var(--lib-cream) !important;
    border-bottom: 1px solid var(--lib-cream-dark);
}

#header-section .navbar-area,
#header-section .theme-mobile-nav {
    background: var(--lib-cream) !important;
}

/* Texte / description sous le logo */
#header-section .site-description {
    color: var(--lib-brown) !important;
}

/* Liens du menu principal */
#header-section .menu-wrap .nav-link {
    color: var(--lib-olive-dark) !important;
    font-weight: 600;
    transition: color 0.15s ease;
}

#header-section .menu-wrap .nav-link:hover,
#header-section .menu-wrap .current-menu-item .nav-link {
    color: var(--lib-olive) !important;
}

/* Petit soulignement discret sur l'item actif */
#header-section .menu-wrap .current-menu-item .nav-link {
    border-bottom: 2px solid var(--lib-olive);
}

/* Icône et champ de recherche */
#header-section .header-search-field {
    background: var(--lib-white);
    border: 1px solid var(--lib-cream-dark);
    color: var(--lib-brown);
}

#header-section .search-submit i {
    color: var(--lib-olive-dark);
}

/* Menu mobile (hamburger) */
#header-section .hamburger .top-bun,
#header-section .hamburger .meat,
#header-section .hamburger .bottom-bun {
    background: var(--lib-olive-dark) !important;
}

#header-section .mobile-menu,
#header-section #mobile-m {
    background: var(--lib-cream) !important;
}

/* Bandeau admin WordPress (si connecté) : on ne touche pas, c'est hors charte */

/* ---------------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------------- */

#footer-section {
    background: var(--lib-olive-dark) !important;
    color: rgba(247, 243, 233, 0.85);
}

#footer-section .copyright-text,
#footer-section .widget-left,
#footer-section .widget-center,
#footer-section .widget-right {
    color: rgba(247, 243, 233, 0.85) !important;
}

#footer-section a {
    color: var(--lib-cream) !important;
}

#footer-section a:hover {
    color: var(--lib-white) !important;
    text-decoration: underline;
}

/* Si le footer affiche encore l'ancien fond/texture sombre par défaut du thème */
.footer-section.footer-one {
    background-image: none !important;
    background-color: var(--lib-olive-dark) !important;
}

.footer-section.footer-one:after {
    display: none !important;
}

/* Bouton "remonter en haut" */
.scrollup {
    background: var(--lib-olive) !important;
    color: var(--lib-white) !important;
}

.scrollup:hover {
    background: var(--lib-olive-dark) !important;
}

/* ---------------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------------- */

@media (max-width: 768px) {
    #header-section .mobile-logo .site-description {
        color: var(--lib-brown) !important;
    }
}