/* ============================================================
   Xibar Native — modules/xn-ticker.css
   Module « Bandeau défilant » (ticker). Feuille enfilée seulement si le
   module est actif (handle xibar-module-ticker, inc/enqueue.php, lot L10).
   Règles extraites de xn.css puis de xn-layout.css, dans leur ordre
   d'origine.
   ============================================================ */

/* ── Base (ex-xn.css) ──────────────────────────────────────── */
/* Le badge est SORTI du track scrollant : flex container parent,
   badge fixe a gauche (z-index:2), zone de scroll a droite. */
.xn-ticker {
    background: var(--xn-color-white);
    border-bottom: 1px solid var(--xn-color-border);
    color: var(--xn-color-gray);
    font-size: 13px;
    padding: var(--xn-space-xs) 0;
}
.xn-ticker__inner {
    display: flex;
    align-items: center;
    gap: var(--xn-space-sm);
}
.xn-ticker__label {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    background: var(--xn-color-blue) !important;
    color: var(--xn-color-white);
    padding: 2px var(--xn-space-sm);
    font-weight: var(--xn-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.xn-ticker__scroll {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}
.xn-ticker__track {
    display: inline-block;
    animation: xn-scroll 80s linear infinite;
}
.xn-ticker__track a { color: var(--xn-color-gray); margin-right: var(--xn-space-xl); }
.xn-ticker__track a:hover { color: var(--xn-color-blue); }
@keyframes xn-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Lot L8 (D8-4) : pause au survol et tant que le focus est dans le bandeau ;
   aucun defilement sous mouvement reduit, contenu lisible par defilement
   horizontal. */
.xn-ticker:hover .xn-ticker__track,
.xn-ticker:focus-within .xn-ticker__track {
    animation-play-state: paused;
}
/* Lot L10 (D10-19) : la piste reste defilable (souris, clavier, tactile),
   sans barre de defilement visible, qui ajoutait 15 px sous les titres avec
   les barres classiques de Windows. */
@media (prefers-reduced-motion: reduce) {
    .xn-ticker__track { animation: none; }
    .xn-ticker__scroll {
        overflow-x: auto;
        scrollbar-width: none;
    }
    .xn-ticker__scroll::-webkit-scrollbar { display: none; }
}

/* ── En-tête unifié (ex-xn-layout.css) ─────────────────────── */
/* Ordre d'affichage : navbar (order -2) puis ticker (Barre 3). */
.xn-ticker { order: -1; }

/* ─ Barre 3 — ticker redecore (fond #1e3499) ─ */
.xn-ticker {
    background: var(--xn-color-ticker);
    border-bottom: none;
    color: rgba(255, 255, 255, .88);
    padding: 6px 0;
}
.xn-ticker__label {
    background: var(--xn-color-accent) !important;
    color: var(--xn-color-white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-radius: 20px;
    padding: 3px 12px;
}
.xn-ticker__track a {
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
}
.xn-ticker__track a:hover {
    color: var(--xn-color-white);
}
/* Separateurs entre items du ticker — traits fins blancs 25% */
.xn-ticker__track a + a::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, .25);
    vertical-align: middle;
    margin-right: var(--xn-space-md);
}
