/* Header sticky : décalé sous la barre d'admin WordPress quand elle est affichée */
.admin-bar .header-nav {
    top: 32px;

    @media screen and (max-width: 782px) {
        top: 46px;
    }
    @media screen and (max-width: 600px) {
        top: 0;
    }
}

/* Bandeau de fermeture (closure-notice.js) : au-dessus du header, défile avec la page */
.closure-notice {
    border-bottom: 1px solid var(--color-grey-light);
    background: var(--color-blue-light);
    color: var(--color-anthracite);
    font-size: 14px;
    line-height: 22px;

    &[hidden] {
        display: none;
    }

    svg {
        color: var(--color-blue);
    }

    @media screen and (max-width: 639px) {
        font-size: 13px;
        line-height: 19px;
    }
}

/* Boutons-icônes de l'en-tête : 40 px sous 480 px pour que les cinq tiennent à 360 px (client connecté) */
@media screen and (max-width: 479px) {
    .header-nav .btn.btn-size__icon {
        width: 40px;
        height: 40px;
    }
}

.closure-notice__list {
    margin: 0;
    padding: 0;
    list-style: none;

    li {
        margin: 0;
    }

    li + li {
        margin-top: 4px;
    }
}

/* Bandeau d'information (ACF, « Paramètres du site ») : au-dessus du bandeau de fermeture */
.info-banner {
    background: var(--color-blue);
    color: var(--color-white);
    font-size: 14px;
    line-height: 22px;
}

.info-banner__link {
    margin-left: 8px;
    color: inherit;
    font-weight: 500;
    text-decoration: underline;
}

/* Défilement horizontal continu : deux séries identiques côte à côte, la piste glisse d'une série (-50 %) puis boucle. */
.info-banner {
    overflow: hidden;
    padding-block: 10px;
}

.info-banner__track {
    display: flex;
    width: max-content;
    animation: info-banner-scroll var(--info-banner-duration, 30s) linear infinite;
}

.info-banner:hover .info-banner__track,
.info-banner:focus-within .info-banner__track {
    animation-play-state: paused;
}

.info-banner__list {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around; /* l'espace libre se répartit entre les annonces : peu d'annonces = plus d'écart */
    min-width: 100vw;
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-banner__item {
    margin: 0;
    padding-inline: 32px; /* écart minimal ; le reste vient de space-around */
    white-space: nowrap;
}

@keyframes info-banner-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .info-banner__track {
        width: auto;
        animation: none;
    }

    .info-banner__list {
        min-width: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .info-banner__list[data-info-banner-copy] {
        display: none;
    }

    .info-banner__item {
        white-space: normal;
        text-align: center;
    }
}

/* Recherche : champ et bouton côte à côte, empilés sur mobile étroit */
.search-form {
    display: flex;
    gap: 8px;

    .search-form__input {
        flex: 1;
        min-width: 0;
    }

    @media screen and (max-width: 420px) {
        flex-direction: column;

        .search-form__input {
            flex: none; /* en colonne, flex: 1 écrasait la hauteur du champ */
        }
    }
}
