/* ============================================================
   HEADER — Restauration21
   Mobile first — breakpoints 768px / 1280px
   ============================================================ */

/* ============================================================
   TOPBAR  (fond vert)
   ============================================================ */

.site-header {
    background: var(--color-primary);    
    min-height: 115px;
}

.header-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 10px;
}

/* Logo + tagline */
.header-topbar__logo-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.header-topbar__logo img {   
    width: auto;
}

.header-topbar__tagline {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Partie droite */
.header-topbar__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.header-topbar__claim {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-dark);
    white-space: nowrap;
}

.header-topbar__ctas {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.945rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: filter 0.15s;
}

.btn:hover {
    filter: brightness(1.1);
}

.btn--subscribe {
    background: #2e6b00;
    color: var(--color-white);
}

.btn--account {
    background: var(--color-red);
    color: var(--color-white);
}

/* Mobile : on masque la claim et les boutons sauf icône compte */
@media (max-width: 767px) {
    .header-topbar__claim {
        display: none;
    }

    .btn--subscribe span,
    .btn--subscribe {
        display: none;
    }

    .btn--account {
        padding: 9px 12px;
    }

    /* On masque le texte des boutons, on garde juste l'icône */
    .btn--account .btn__label {
        display: none;
    }
}

/* ============================================================
   NAV  (fond sombre — sticky, superposée à la page)
   ============================================================ */

.header-nav {
    background: var(--color-dark);
    max-width: 1100px;
    margin: -20px auto 40px;
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-nav__inner {
    display: flex;
    align-items: stretch;
    min-height: 48px;
}

/* Menu WordPress */
.header-nav__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.header-nav__menu > li > a {
    display: flex;
    align-items: center;
    padding-inline: 18px;
    height: 100%;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1.14rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.header-nav__menu > li > a:hover,
.header-nav__menu > li.current-menu-item > a,
.header-nav__menu > li.current-menu-ancestor > a {
    border-bottom-color: var(--color-primary);
    color: var(--color-primary);
}

/* Actions droite (loupe + LinkedIn) */
.header-nav__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding-left: 12px;
}

.header-nav__search {
    background: none;
    border: none;
    color: var(--color-white);
    padding: 0 10px;
    height: 100%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.header-nav__search:hover {
    color: var(--color-primary);
}

.header-nav__linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #0a66c2;
    color: var(--color-white);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    transition: background 0.15s;
}

.header-nav__linkedin:hover {
    background: #004182;
}

/* Hamburger — visible uniquement mobile */
.header-nav__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-white);
    padding: 0 14px;
    height: 100%;
    font-size: 1.1rem;
}

/* ============================================================
   BANDEAU (bannières rotatives)
   ============================================================ */

.bandeau {
    position: relative;
    margin: 30px 0;
    text-align: center;
}






/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 767px) {
    .header-nav__menu {
        display: none; /* ouverture gérée en JS ultérieurement */
    }

    .header-nav__actions {
        display: none;
    }

    .header-nav__toggle {
        display: flex;
        margin-left: auto;
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    .header-nav__menu > li > a {
        padding-inline: 10px;
        font-size: 1rem;
    }
}
