/* =========================================================================
 * CDM 2026 — Barre « wcband » (réplique fidèle du composant KOVASCORE,
 * sélecteurs SCOPÉS sous .cdm2026-wcband pour éviter toute collision avec le
 * thème lesiteinfo). Drapeaux = SVG locaux (zéro hotlink).
 * ====================================================================== */

/* Conteneur de placement (mode « sélecteur ») : masqué tant que le JS n'a pas
 * déplacé la barre vers sa cible → aucun flash au mauvais endroit (anti-FOUC). */
.cdm2026-bar-portal[hidden] { display: none !important; }

.cdm2026-wcband {
	/* Accent unifié sur l'OR du trophée WC2026 (plus de vert néon KOVASCORE). */
	--cdm-wc-gold: #f4b81e;
	/* Police : Saira si dispo (sinon système, proche visuellement). Aucun hotlink. */
	--cdm-wc-font: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	max-width: 1340px;
	margin: 10px auto 0;
	padding: 0 20px;
	font-family: var(--cdm-wc-font);
	box-sizing: border-box;
}
.cdm2026-wcband *,
.cdm2026-wcband *::before,
.cdm2026-wcband *::after { box-sizing: border-box; }

/* Boîte dégradée vibrante (identique à la source ; marche sur les 2 thèmes). */
.cdm2026-wcband .cdm2026-wc-in {
	display: flex;
	align-items: stretch;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	color: #fff;
	background: linear-gradient(100deg, #4a1326 0%, #173a63 26%, #115d36 50%, #6a5316 74%, #3a1c5c 100%);
	box-shadow: 0 6px 20px rgba(20, 30, 60, .16);
}
.cdm2026-wcband .cdm2026-wc-in::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: rgba(6, 9, 15, .26);
}

/* Compteur (trophée + titre + timer). */
.cdm2026-wcband .cdm2026-wc-cd {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 16px;
	border-right: 1px solid rgba(255, 255, 255, .16);
	position: relative;
	z-index: 1;
}
.cdm2026-wcband .cdm2026-wc-trophy {
	width: 32px;
	height: 32px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	border-radius: 9px;
	background: #fff;
	border: 1px solid #fff;
}
.cdm2026-wcband .cdm2026-wc-logo { width: 24px; height: 24px; object-fit: contain; display: block; }
.cdm2026-wcband .cdm2026-wc-title {
	font-family: var(--cdm-wc-font);
	font-weight: 800;
	font-size: 14px;
	line-height: 1.05;
	white-space: nowrap;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.cdm2026-wcband .cdm2026-wc-timer { display: flex; gap: 5px; margin-left: 4px; }
.cdm2026-wcband .cdm2026-wc-b {
	background: rgba(0, 0, 0, .34);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 7px;
	padding: 3px 0;
	width: 36px;
	text-align: center;
}
.cdm2026-wcband .cdm2026-wc-n {
	font-family: var(--cdm-wc-font);
	font-weight: 800;
	font-size: 16px;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	color: #fff;
}
.cdm2026-wcband .cdm2026-wc-u {
	font-size: 8px;
	color: rgba(255, 255, 255, .72);
	text-transform: uppercase;
	letter-spacing: .5px;
	margin-top: 1px;
	font-weight: 700;
}
/* État « démarré » (coup d'envoi passé) : pas de timer. */
.cdm2026-wcband .cdm2026-wc-in.is-started .cdm2026-wc-timer { display: none; }

/* Marquee des groupes. */
.cdm2026-wcband .cdm2026-wc-mq {
	flex: 1;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	z-index: 1;
	min-width: 0;
}
.cdm2026-wcband .cdm2026-wc-mq::before,
.cdm2026-wcband .cdm2026-wc-mq::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 26px;
	z-index: 2;
	pointer-events: none;
}
.cdm2026-wcband .cdm2026-wc-mq::before { left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .28), transparent); }
.cdm2026-wcband .cdm2026-wc-mq::after { right: 0; background: linear-gradient(270deg, rgba(0, 0, 0, .28), transparent); }
.cdm2026-wcband .cdm2026-wc-track {
	display: flex;
	gap: 16px;
	white-space: nowrap;
	will-change: transform;
	animation: cdm2026-wc-ticker 60s linear infinite;
	padding-left: 16px;
}
.cdm2026-wcband .cdm2026-wc-mq:hover .cdm2026-wc-track { animation-play-state: paused; }

/* Chips de groupe (liens). */
.cdm2026-wcband .cdm2026-gchip {
	display: flex;
	align-items: center;
	gap: 7px;
	cursor: pointer;
	padding: 4px 9px;
	border-radius: 8px;
	transition: .15s;
	text-decoration: none;
	border: 1px solid transparent;
}
.cdm2026-wcband .cdm2026-gchip:hover { background: rgba(255, 255, 255, .12); border-color: var(--cdm-wc-gold); }
.cdm2026-wcband .cdm2026-gchip:focus-visible { outline: 2px solid var(--cdm-wc-gold); outline-offset: 2px; animation-play-state: paused; }
.cdm2026-wcband .cdm2026-wc-gl {
	font-family: var(--cdm-wc-font);
	font-weight: 700;
	font-size: 12px;
	color: #eef1f7;
	letter-spacing: .2px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
.cdm2026-wcband .cdm2026-gchip.hl .cdm2026-wc-gl { color: var(--cdm-wc-gold); }
.cdm2026-wcband .cdm2026-wc-crs { display: flex; }
.cdm2026-wcband .cdm2026-wc-cr {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	margin-left: -5px;
	border: 2px solid rgba(8, 11, 18, .55);
	display: inline-block;
	vertical-align: middle;
	font-size: 12px;
	line-height: 20px;
	text-align: center;
	color: #fff;
	/* Écusson = IMAGE DE FOND (insensible aux lazy-loaders d'images). */
	background-color: #2a2f3a;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
}
/* Repli émoji : recentrage du glyphe dans le rond. */
.cdm2026-wcband .cdm2026-wc-cr--emoji {
	background-image: none;
}
.cdm2026-wcband .cdm2026-wc-crs .cdm2026-wc-cr:first-child { margin-left: 0; }

@keyframes cdm2026-wc-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------------- *
 * RTL (arabe) : on miroite l'ordre (dir=rtl sur le conteneur) + le défilement
 * + le séparateur et les fondus de bord.
 * ----------------------------------------------------------------------- */
[dir="rtl"] .cdm2026-wcband .cdm2026-wc-cd { border-right: 0; border-left: 1px solid rgba(255, 255, 255, .16); }
[dir="rtl"] .cdm2026-wcband .cdm2026-wc-timer { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .cdm2026-wcband .cdm2026-wc-track { animation-name: cdm2026-wc-ticker-rtl; padding-left: 0; padding-right: 16px; }
[dir="rtl"] .cdm2026-wcband .cdm2026-wc-cr { margin-left: 0; margin-right: -5px; }
[dir="rtl"] .cdm2026-wcband .cdm2026-wc-crs .cdm2026-wc-cr:first-child { margin-right: 0; }
@keyframes cdm2026-wc-ticker-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ----------------------------------------------------------------------- *
 * Mobile (≤760) : on empile (compteur en haut, groupes en dessous), la rangée
 * défile horizontalement (swipe), le marquee CSS est désactivé (auto-scroll JS).
 * ----------------------------------------------------------------------- */
@media (max-width: 760px) {
	.cdm2026-wcband { padding: 0 14px; }
	.cdm2026-wcband .cdm2026-wc-in { flex-direction: column; }
	.cdm2026-wcband .cdm2026-wc-cd {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 10px;
		padding: 12px 14px;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .16);
		min-width: 0;
	}
	.cdm2026-wcband .cdm2026-wc-title { font-size: 15px; }
	.cdm2026-wcband .cdm2026-wc-timer { flex-basis: 100%; justify-content: center; margin-left: 0; gap: 7px; }
	.cdm2026-wcband .cdm2026-wc-b { width: 48px; padding: 5px 0; }
	.cdm2026-wcband .cdm2026-wc-n { font-size: 22px; }
	.cdm2026-wcband .cdm2026-wc-u { font-size: 11px; }
	.cdm2026-wcband .cdm2026-wc-mq {
		flex: none;
		width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-x;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		background: linear-gradient(180deg, #1a2233, #0f1521);
	}
	.cdm2026-wcband .cdm2026-wc-mq::-webkit-scrollbar { display: none; }
	.cdm2026-wcband .cdm2026-wc-track { animation: none; padding: 9px 12px; gap: 14px; will-change: auto; }
	.cdm2026-wcband .cdm2026-wc-track .cdm2026-wc-cr { width: 22px; height: 22px; margin-left: -6px; }
	[dir="rtl"] .cdm2026-wcband .cdm2026-wc-track .cdm2026-wc-cr { margin-left: 0; margin-right: -6px; }
	.cdm2026-wcband .cdm2026-wc-track .cdm2026-wc-gl { font-size: 12.5px; }
	.cdm2026-wcband .cdm2026-wc-track .cdm2026-gchip { gap: 8px; padding: 4px 10px; }
}
@media (max-width: 300px) {
	.cdm2026-wcband .cdm2026-wc-timer { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	.cdm2026-wcband .cdm2026-wc-track { animation: none; }
}
