.top-banner {
    width: 100%;
    overflow: hidden;
    background-color: var(--tb-bg, #ed8c26);
    color: var(--tb-color, #ffffff);
    padding: 10px 0;
}

.top-banner__track {
    display: flex;
    width: max-content;
    animation: tb-marquee var(--tb-duration, 20s) linear infinite;
}

.top-banner:hover .top-banner__track {
    animation-play-state: paused;
}

.top-banner__item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1.5;
}

.top-banner__sep {
    opacity: 0.55;
    display: inline-flex;
    align-items: center;
    padding: 0 1.5em;
}

.top-banner__item a {
    color: var(--tb-color, #ffffff);
    text-decoration: underline;
    font-weight: 600;
}

.top-banner__item a:hover {
    opacity: 0.85;
}

.top-banner__item strong,
.top-banner__item b {
    font-weight: 700;
}

/* Accessibilité : texte pour lecteurs d'écran, caché visuellement */
/* ── Mode statique (défilement désactivé) ── */
.top-banner--static {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
}

.top-banner--static .top-banner__inner {
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.top-banner--static .top-banner__inner a {
    color: var(--tb-color, #ffffff);
    text-decoration: underline;
    font-weight: 600;
}

.top-banner--static .top-banner__inner a:hover { opacity: 0.85; }

.top-banner--static .top-banner__inner strong,
.top-banner--static .top-banner__inner b { font-weight: 700; }

/* ── */

.top-banner__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@keyframes tb-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-1 * var(--tb-offset, 50%))); }
}
