.nh-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    transition: box-shadow .25s ease;
}

.nh-header.is-scrolled {
    box-shadow: 0 12px 34px rgba(0, 49, 30, .12);
}

.nh-header .nh-topbar {
    display: block !important;
    overflow: visible !important;
    max-height: none !important;
    min-height: 40px;
    background: #003823 !important;
    background-color: #003823 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: .79rem;
}

/* La barre supérieure reste lisible même quand le header devient collant.
   On évite l'ancien effet de disparition qui laissait parfois un texte pâle
   sur fond blanc après optimisation ou mise en cache. */
.nh-header.is-scrolled .nh-topbar {
    display: block !important;
    max-height: none !important;
    min-height: 40px !important;
    background: #003823 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.nh-topbar__inner,
.nh-mainbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nh-topbar__inner {
    min-height: 40px;
}

.nh-header .nh-topbar p {
    display: flex;
    gap: 8px;
    margin: 0;
    color: #ffffff !important;
    opacity: 1 !important;
}

.nh-header .nh-topbar p span {
    color: #d7eadf !important;
    opacity: 1 !important;
}

.nh-header .nh-topbar p strong {
    color: #c8f27a !important;
    opacity: 1 !important;
}

.nh-topbar__links {
    display: flex;
    gap: 20px;
}

.nh-header .nh-topbar a,
.nh-header .nh-topbar a:visited {
    color: #ffffff !important;
    opacity: 1 !important;
    text-decoration: none;
}

.nh-header .nh-topbar a:hover,
.nh-header .nh-topbar a:focus-visible {
    color: #c8f27a !important;
}

.nh-mainbar {
    border-bottom: 1px solid rgba(0, 84, 43, .1);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
}

.nh-mainbar__inner {
    min-height: 86px;
    transition: min-height .25s ease;
}

.nh-header.is-scrolled .nh-mainbar__inner {
    min-height: 72px;
}

.nh-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--nh-ink);
    text-decoration: none;
}

.nh-brand__mark {
    position: relative;
    display: inline-grid;
    width: 50px;
    height: 50px;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--nh-primary), var(--nh-primary-deep));
    color: #fff;
    font-weight: 950;
    letter-spacing: -.06em;
    box-shadow: 0 10px 28px rgba(0, 95, 43, .2);
}

.nh-brand__mark::after {
    position: absolute;
    right: -14px;
    bottom: -20px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    content: "";
}

.nh-brand__logo {
    width: auto;
    max-width: 74px;
    max-height: 58px;
    object-fit: contain;
}

.nh-brand__text {
    display: grid;
    line-height: 1.04;
}

.nh-brand__text strong {
    font-size: 1.04rem;
    letter-spacing: -.02em;
}

.nh-brand__text small {
    margin-top: 6px;
    color: #43564b;
    font-size: .73rem;
    font-weight: 650;
    letter-spacing: .025em;
}

.nh-nav,
.nh-nav__list,
.nh-nav__list > ul {
    display: flex;
    align-items: center;
}

.nh-nav {
    gap: 20px;
}

.nh-nav__list,
.nh-nav__list > ul {
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nh-nav__list ul {
    list-style: none;
}

.nh-nav__list a {
    position: relative;
    color: var(--nh-ink);
    font-size: .89rem;
    font-weight: 760;
    text-decoration: none;
}

.nh-nav__list > li > a::after,
.nh-nav__list > ul > li > a::after {
    position: absolute;
    right: 50%;
    bottom: -10px;
    left: 50%;
    height: 2px;
    border-radius: 99px;
    background: var(--nh-primary);
    content: "";
    transition: right .2s ease, left .2s ease;
}

.nh-nav__list a:hover,
.nh-nav__list .current-menu-item > a {
    color: var(--nh-primary);
}

.nh-nav__list > li > a:hover::after,
.nh-nav__list > li.current-menu-item > a::after,
.nh-nav__list > ul > li > a:hover::after,
.nh-nav__list > ul > li.current_page_item > a::after {
    right: 0;
    left: 0;
}

.nh-nav__cta {
    padding: 12px 19px;
    border-radius: 999px;
    background: var(--nh-primary);
    color: #fff;
    font-size: .88rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 9px 22px rgba(0, 112, 48, .18);
}

.nh-menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--nh-ink);
    font-weight: 850;
}

.nh-menu-toggle__icon,
.nh-menu-toggle__icon::before,
.nh-menu-toggle__icon::after {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 4px;
    background: currentColor;
    content: "";
    transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.nh-menu-toggle__icon {
    position: relative;
}

.nh-menu-toggle__icon::before {
    position: absolute;
    top: -7px;
}

.nh-menu-toggle__icon::after {
    position: absolute;
    top: 7px;
}

.nh-menu-toggle[aria-expanded="true"] .nh-menu-toggle__icon {
    background: transparent;
}

.nh-menu-toggle[aria-expanded="true"] .nh-menu-toggle__icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nh-menu-toggle[aria-expanded="true"] .nh-menu-toggle__icon::after {
    top: 0;
    transform: rotate(-45deg);
}


/* Protection du contraste contre les styles globaux du thème. */
.nh-header .nh-mainbar,
.nh-header .nh-mainbar__inner {
    opacity: 1 !important;
    visibility: visible !important;
}

.nh-header .nh-brand,
.nh-header .nh-brand:visited,
.nh-header .nh-brand__text strong,
.nh-header .nh-nav__list a,
.nh-header .nh-nav__list a:visited {
    color: #0b1f15 !important;
    opacity: 1 !important;
}

.nh-header .nh-brand__text small {
    color: #43564b !important;
    opacity: 1 !important;
}

.nh-header .nh-nav__cta,
.nh-header .nh-nav__cta:visited {
    color: #ffffff !important;
    opacity: 1 !important;
}

@media (max-width: 1040px) {
    .nh-menu-toggle {
        display: inline-flex;
    }

    .nh-nav {
        position: absolute;
        top: 100%;
        right: 18px;
        left: 18px;
        display: none;
        align-items: stretch;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        padding: 20px;
        border: 1px solid var(--nh-border);
        border-radius: 20px;
        background: rgba(255, 255, 255, .98);
        box-shadow: var(--nh-shadow);
    }

    .nh-nav.is-open {
        display: grid;
    }

    .nh-nav__list,
    .nh-nav__list > ul {
        display: grid;
        gap: 0;
    }

    .nh-nav__list li {
        border-bottom: 1px solid var(--nh-border);
    }

    .nh-nav__list a {
        display: block;
        padding: 13px 4px;
    }

    .nh-nav__list a::after {
        display: none;
    }

    .nh-nav__cta {
        margin-top: 10px;
        text-align: center;
    }
}

@media (max-width: 700px) {
    .nh-topbar__inner {
        justify-content: center;
    }

    .nh-topbar__links {
        display: none;
    }

    .nh-topbar p span {
        display: none;
    }

    .nh-mainbar__inner {
        min-height: 74px;
    }

    .nh-brand__mark {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .nh-brand__logo {
        max-width: 58px;
        max-height: 50px;
    }

    .nh-brand__text strong {
        font-size: .92rem;
    }

    .nh-brand__text small {
        font-size: .65rem;
    }

    .nh-menu-toggle__label {
        display: none;
    }
}
