/* Bandeau défilant */
.acs-tk { --tk-bg: #111; --tk-fg: #ffb000; --tk-ac: #ff4d2e; --tk-fs: 18px; --tk-h: 44px; position: relative; display: flex; align-items: stretch; box-sizing: border-box; width: 100%; height: var(--tk-h); overflow: hidden; background: var(--tk-bg); color: var(--tk-fg); font-size: var(--tk-fs); line-height: var(--tk-h); margin: 0 auto; }
.acs-tk.acs-tk-fixed { width: var(--tk-w); max-width: 100%; }
.acs-tk * { box-sizing: border-box; }
.acs-tk-label { flex: none; position: relative; z-index: 2; padding: 0 .8em; background: var(--tk-ac); color: var(--tk-bg); font-weight: 700; white-space: nowrap; }
.acs-tk-view { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.acs-tk-track { display: flex !important; flex-wrap: nowrap !important; width: max-content !important; max-width: none !important; margin: 0 !important; padding: 0 !important; animation: acs-tk-scroll var(--tk-dur, 30s) linear infinite; will-change: transform; }
.acs-tk-right .acs-tk-track { animation-direction: reverse; }
.acs-tk-pausable:hover .acs-tk-track, .acs-tk-pausable:focus-within .acs-tk-track { animation-play-state: paused; }
@keyframes acs-tk-scroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
/* Chaque copie couvre au moins la largeur visible (précisée par le script). */
.acs-tk-items { display: flex !important; flex: none !important; flex-wrap: nowrap !important; min-width: var(--tk-min, 100vw); margin: 0 !important; padding: 0 !important; list-style: none !important; white-space: nowrap; }
.acs-tk-items li { margin: 0 !important; padding: 0 !important; list-style: none !important; white-space: nowrap; }
.acs-tk-items li::before, .acs-tk-items li::marker { content: none !important; }
.acs-tk a { color: inherit !important; text-decoration: none !important; border: 0 !important; box-shadow: none !important; }
.acs-tk a:hover, .acs-tk a:focus-visible { text-decoration: underline !important; }
.acs-tk-date { color: var(--tk-ac); font-weight: 700; }
.acs-tk-sep { display: inline-block; margin: 0 1.2em; color: var(--tk-ac); }
.acs-tk-upper .acs-tk-items, .acs-tk-upper .acs-tk-label { text-transform: uppercase; letter-spacing: .04em; }
.acs-tk-close { flex: none; position: relative; z-index: 2; width: var(--tk-h); max-width: 44px; border: 0; margin: 0; padding: 0; background: var(--tk-bg); color: var(--tk-fg); font-size: 1.2em; line-height: 1; cursor: pointer; opacity: .8; }
.acs-tk-close:hover, .acs-tk-close:focus-visible { opacity: 1; }

/* Panneau lumineux : police à points, lueur, grille de LED. */
.acs-tk-led { font-family: "Courier New", Courier, ui-monospace, monospace; font-weight: 700; text-shadow: 0 0 4px var(--tk-fg), 0 0 10px var(--tk-fg); border-top: 2px solid #000; border-bottom: 2px solid #000; box-shadow: inset 0 0 12px rgba(0,0,0,.8); }
.acs-tk-led .acs-tk-date, .acs-tk-led .acs-tk-sep { text-shadow: 0 0 4px var(--tk-ac), 0 0 10px var(--tk-ac); }
.acs-tk-led .acs-tk-label { text-shadow: none; }
.acs-tk-led .acs-tk-view::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 60%); background-size: 3px 3px; }
.acs-tk-simple { font-weight: 600; }

/* En haut des pages */
.acs-tk-top { z-index: 9990; }
.acs-tk-sticky { position: sticky; top: 0; }
.admin-bar .acs-tk-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .acs-tk-sticky { top: 46px; } }
@media (max-width: 600px) { .admin-bar .acs-tk-sticky { top: 0; } }
.acs-tk[hidden] { display: none; }

/* Moins d'animations (sauf si « défiler aussi » est coché) : immobile, défilement à la main. */
@media (prefers-reduced-motion: reduce) {
	.acs-tk:not(.acs-tk-force) .acs-tk-track { animation: none; }
	.acs-tk:not(.acs-tk-force) .acs-tk-copy { display: none !important; }
	.acs-tk:not(.acs-tk-force) .acs-tk-items { min-width: 0; }
	.acs-tk:not(.acs-tk-force) .acs-tk-view { overflow-x: auto; scrollbar-width: thin; }
}
@media print { .acs-tk { display: none; } }
.acs-tk-preview { max-width: 1000px; margin: 8px 0; }
