/* ── Bannière « mode vacances » (partials/_vacation_banner.html.twig) ──
   Fixe en haut, au-dessus de la barre de navigation. Tant qu'elle est affichée (classe has-vacation-banner
   sur <html>), la barre et le contenu descendent de sa hauteur : --vacation-banner-h, mesurée en JS
   (0 quand elle est fermée). Couleurs de marque : variables de badges.css. */

:root {
    --vacation-banner-h: 0px;
}

html.has-vacation-banner body {
    padding-top: var(--vacation-banner-h);
}

html.has-vacation-banner .navbar {
    top: var(--vacation-banner-h);
}

.vacation-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1031; /* au-dessus de la barre de navigation (1030) */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

.vacation-banner__content {
    flex: 1;
    text-align: center;
}

.vacation-banner p {
    margin: 0;
}

.vacation-banner__message {
    font-weight: 400;
}

/* Avant le départ : or, texte foncé */
.vacation-banner--before {
    background: var(--brand-gold);
    color: #1a1a1a;
}

/* Pendant la fermeture : rouge, date de reprise en or */
.vacation-banner--during {
    background: var(--brand-red);
    color: #fff;
}

.vacation-banner--during strong {
    color: var(--brand-gold);
}

.vacation-banner__close {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 4px;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 575.98px) {
    .vacation-banner {
        padding: 8px 12px;
        font-size: 0.78rem;
    }
}
