/*
 * Bandeau des promotions, tout en haut du site (et son aperçu dans la gestion).
 * Fond terre cuite sur un site vert : c'est la première chose qu'on voit. Le message libre est une pastille claire,
 * chaque promotion de la pièce une étiquette « −30 % » ; les deux restent lisibles (contrastes ≥ 4,5:1).
 */

.bandeau-promo {
    position: relative;
    z-index: 45;
    overflow: hidden;
    background: var(--terre-600);
    color: var(--creme-logo);
    font-size: var(--t-sm);
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.bandeau-promo[hidden] {
    display: none;
}

.bandeau-promo__fenetre {
    overflow: hidden;
    margin-right: 2.5rem;
}

.bandeau-promo__piste {
    display: flex;
    width: max-content;
}

.bandeau-promo:not(.est-defilant) .bandeau-promo__piste {
    width: auto;
    justify-content: center;
}

.bandeau-promo__groupe {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.65rem 1.4rem;
    white-space: nowrap;
}

.bandeau-promo__element {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

/* Séparateur entre deux éléments */
.bandeau-promo__element::before {
    content: "\2726";
    font-size: 0.85em;
    color: var(--creme-logo);
    opacity: 0.85;
}

/* Message libre : une pastille claire, en gras, impossible à manquer */
.bandeau-promo__element--message {
    padding: 0.28rem 1rem;
    border-radius: 999px;
    background: var(--creme-logo);
    color: var(--vert-900);
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.bandeau-promo__element--message::before {
    content: none;
}

.bandeau-promo a {
    text-decoration: underline;
    text-decoration-color: rgba(251, 235, 211, 0.5);
    text-underline-offset: 3px;
}

.bandeau-promo a:hover {
    text-decoration-color: currentColor;
}

/* « −30 % » : étiquette sombre sur le fond terre cuite */
.bandeau-promo strong {
    padding: 0.08rem 0.55rem;
    border-radius: 999px;
    background: var(--vert-900);
    color: #FFFFFF;
    font-weight: 800;
}

.bandeau-promo.est-defilant .bandeau-promo__piste {
    animation: bandeau-defile var(--duree-bandeau, 46s) linear infinite;
}

.bandeau-promo.est-defilant:hover .bandeau-promo__piste {
    animation-play-state: paused;
}

@keyframes bandeau-defile {
    to {
        transform: translateX(-50%);
    }
}

.bandeau-promo__fermer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2.5rem;
    background: var(--terre-600);
    color: var(--creme-logo);
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.85;
    transition: opacity var(--duree-1);
}

.bandeau-promo__fermer:hover {
    opacity: 1;
}

@media (max-width: 560px) {
    .bandeau-promo {
        font-size: var(--t-xs);
    }

    .bandeau-promo__groupe {
        gap: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bandeau-promo.est-defilant .bandeau-promo__piste {
        width: auto;
        animation: none;
    }

    .bandeau-promo__groupe {
        flex-wrap: wrap;
        justify-content: center;
        white-space: normal;
    }

    .bandeau-promo__groupe[aria-hidden="true"] {
        display: none;
    }
}
