/* =========================================================================
 * 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 ») : le masquage anti-FOUC et le filet de sécurité de
 * RÉVÉLATION sont posés EN INLINE (style + <style id="cdm2026-bar-failsafe"> émis avec le portail dans la
 * page) pour résister à l'optimisation CSS (LiteSpeed) ; voir auto_inject_portal(). On N'utilise PAS
 * display:none ici : il n'est pas révélable par animation (le filet ne pourrait jamais rendre la barre). */

.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;
	/* Largeur alignée sur le conteneur de contenu du thème : réglable PAR SITE via l'option
	   « Largeur max » du plugin (qui pose --cdm-wcband-maxw). Repli 1340px si non réglée. */
	width: 100%;
	max-width: var(--cdm-wcband-maxw, 1340px);
	margin: 10px auto 0;
	margin-inline: auto;
	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; }

/* Option « Barre pleine largeur » (réglage Barre) : la barre devient un BLOC PLEINE LARGEUR dans le flux et
 * pousse le contenu suivant vers le bas (anti-chevauchement, ex. vidéo en vedette). Prioritaire sur la
 * « Largeur max » (--cdm-wcband-maxw). Scopé à la classe → n'affecte que les sites ayant coché l'option. */
.cdm2026-barre.cdm2026-bar-fullwidth {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	clear: both;
	float: none;
}
.cdm2026-barre.cdm2026-bar-fullwidth .cdm2026-wcband {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 16px;
}

/* 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;
}
/* Bloc compteur/titre cliquable (lien vers la page Coupe) : neutralise le style de lien. */
a.cdm2026-wc-cd { text-decoration: none; color: inherit; cursor: pointer; transition: background .15s ease; }
a.cdm2026-wc-cd:hover,
a.cdm2026-wc-cd:focus-visible { background: rgba(255, 255, 255, .08); }
.cdm2026-wcband .cdm2026-wc-trophy {
	width: 32px;
	height: 32px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	/* Écusson BLANC : le logo FIFA NOIR doit ressortir sur le bandeau sombre. */
	background: #fff;
	border: 1px solid #fff;
	border-radius: 9px;
}
.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 1 0%;       /* prend toute la place restante à côté du compteur (min-width:0 évite que le
	                       contenu nowrap force un débordement et casse le flex). */
	min-width: 0;
	overflow: hidden;
	position: relative;
	display: flex;
	align-items: center;
	z-index: 1;
	box-sizing: border-box;
}
.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; }
	/* RTL mobile : le défilement scrollLeft est peu fiable selon les navigateurs (le JS s'en abstient) →
	   on (ré)active l'animation CSS rtl pour que la barre défile AUSSI en arabe. Durée affinée ∝ largeur
	   par le JS (style inline) ; repli 40s. Le mouvement réduit la désactive (bloc dédié plus bas).
	   La boucle translateX(+50%) est SANS COUTURE ssi le padding du bord d'attaque == gap : on aligne
	   donc padding-right(=14px) sur le gap mobile (14px), au lieu du 16px du RTL desktop. */
	[dir="rtl"] .cdm2026-wcband .cdm2026-wc-track { animation: cdm2026-wc-ticker-rtl 40s linear infinite; will-change: transform; padding-left: 0; padding-right: 14px; }
	.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) {
	/* On inclut la variante RTL (même spécificité 0,3,0, mais PLUS BAS en source → l'emporte) pour que
	   le mouvement réduit désactive AUSSI le marquee RTL (desktop comme mobile). */
	.cdm2026-wcband .cdm2026-wc-track,
	[dir="rtl"] .cdm2026-wcband .cdm2026-wc-track { animation: none; }
}

/* ======================================================================= *
 * SKINS de la BARRE — présentation pure (classe racine .cdm2026-skin-<x>).
 *   night     = look ACTUEL (dégradé « We Are 26 ») → aucune règle.
 *   broadcast = aplat bleu roi profond + or, blocs contrastés, codes capitales.
 *   minimal   = barre claire fine, texte sombre, pastilles minimalistes (logo
 *               blanc inversé en noir pour rester lisible sur fond clair).
 * ======================================================================= */

/* ---- BARRE « PLATEAU TV » ---- */
.cdm2026-skin-broadcast .cdm2026-wc-in {
	background: linear-gradient(100deg, #0b1e52 0%, #15347e 55%, #1d4ed8 100%);
	border-color: rgba(244, 184, 30, .45);
}
.cdm2026-skin-broadcast .cdm2026-wc-in::after { background: rgba(6, 9, 15, .10); }
.cdm2026-skin-broadcast .cdm2026-wc-b { background: rgba(244, 184, 30, .16); border-color: rgba(244, 184, 30, .55); border-radius: 6px; }
.cdm2026-skin-broadcast .cdm2026-wc-title { font-weight: 900; }
.cdm2026-skin-broadcast .cdm2026-gchip { border-radius: 6px; }
.cdm2026-skin-broadcast .cdm2026-wc-gl { text-transform: uppercase; font-weight: 800; }

/* ---- BARRE « ÉDITORIAL CLAIR » ---- */
.cdm2026-skin-minimal .cdm2026-wc-in {
	background: #ffffff;
	color: #14181f;
	border-color: #e7eaf0;
	box-shadow: 0 1px 2px rgba(20, 24, 31, .05);
}
.cdm2026-skin-minimal .cdm2026-wc-in::after { display: none; }
.cdm2026-skin-minimal .cdm2026-wc-cd { border-color: #eceef2; }
.cdm2026-skin-minimal .cdm2026-wc-title { color: #14181f; text-shadow: none; }
.cdm2026-skin-minimal .cdm2026-wc-b { background: #f4f6fa; border-color: #e7eaf0; }
.cdm2026-skin-minimal .cdm2026-wc-n { color: #14181f; }
.cdm2026-skin-minimal .cdm2026-wc-u { color: #8a93a6; }
.cdm2026-skin-minimal .cdm2026-wc-gl { color: #5b6473; text-shadow: none; }
.cdm2026-skin-minimal .cdm2026-gchip:hover { background: #f4f6fa; }
/* Barre claire : le logo FIFA NOIR ressort déjà → écusson transparent (pas de carré blanc). */
.cdm2026-skin-minimal .cdm2026-wc-trophy { background: transparent; border: 0; }

/* ---- BARRE « MAROC » (rouge dominante #C1272D + accent vert #006233) ---- */
.cdm2026-skin-maroc .cdm2026-wc-in {
	background: linear-gradient(100deg, #7a141a 0%, #c1272d 60%, #a01f24 100%);
	border-color: rgba(0, 98, 51, .55);
}
.cdm2026-skin-maroc .cdm2026-wc-in::after { background: rgba(0, 0, 0, .12); }
.cdm2026-skin-maroc .cdm2026-wc-b { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .30); }
.cdm2026-skin-maroc .cdm2026-wc-title { font-weight: 900; }
/* Accent VERT sur la chip de groupe surlignée (vert clair pour rester lisible sur le rouge — AA). */
.cdm2026-skin-maroc .cdm2026-gchip.hl .cdm2026-wc-gl { color: #58e08f; }
.cdm2026-skin-maroc .cdm2026-gchip:hover { border-color: #58e08f; }

/* ---- BARRE « MAILLOT VERT (MAROC) » (vert dominante #006233 + accents rouge/or, texte blanc) ---- */
.cdm2026-skin-maroc-vert .cdm2026-wc-in {
	background: linear-gradient(100deg, #004d28 0%, #006233 60%, #00502a 100%);
	border-color: rgba(193, 39, 45, .5);
}
.cdm2026-skin-maroc-vert .cdm2026-wc-in::after { background: rgba(0, 0, 0, .12); }
.cdm2026-skin-maroc-vert .cdm2026-wc-b { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .30); }
.cdm2026-skin-maroc-vert .cdm2026-wc-title { font-weight: 900; }
/* Accent OR PÂLE sur la chip de groupe surlignée (lisible sur le vert — AA). */
.cdm2026-skin-maroc-vert .cdm2026-gchip.hl .cdm2026-wc-gl { color: #f7e3a1; }
.cdm2026-skin-maroc-vert .cdm2026-gchip:hover { border-color: #f7e3a1; }

/* ---- FIX skin MOBILE : sous 760 px, la marquee (.cdm2026-wc-mq) a un fond CODÉ EN DUR (look
 * « nuit »). On le re-teinte PAR SKIN pour que TOUTE la barre porte le design (night = base,
 * inchangé). Placé APRÈS la media query de base → l'emporte (même spécificité, ordre source). ---- */
@media ( max-width: 760px ) {
	.cdm2026-skin-broadcast .cdm2026-wc-mq { background: linear-gradient( 180deg, #15347e, #0b1e52 ); }
	.cdm2026-skin-minimal .cdm2026-wc-mq { background: #fafbfc; }
	.cdm2026-skin-maroc .cdm2026-wc-mq { background: linear-gradient( 180deg, #a01f24, #7a141a ); }
	.cdm2026-skin-maroc-vert .cdm2026-wc-mq { background: linear-gradient( 180deg, #00502a, #004d28 ); }
}

/* =========================================================================
 * FIX THÈME — TagDiv / Newspaper : la barre (~108px) chevauchait la vidéo YouTube (.td-youtube-player).
 * Cause : le thème FORCE height:54px (calibré pour le menu seul) sur les wrappers d'en-tête ; la barre, plus
 * haute, débordait de l'en-tête à hauteur fixe et, à cause de son z-index élevé (2000/9998), se peignait
 * par-dessus le contenu. On laisse l'en-tête GRANDIR pour contenir la barre.
 * Ces sélecteurs sont PROPRES à TagDiv : INERTES (aucun élément ne matche) sur les autres thèmes. Cette
 * feuille est chargée AVEC la barre (render() → wp_enqueue_style), donc APRÈS le CSS du thème → la surcharge
 * s'applique (renforcée par !important contre la hauteur fixe inline/thème). ---- */
.tdc-header-wrap,
.td-header-wrap.td-header-style-3,
.td-header-menu-wrap-full.td-container-wrap {
	height: auto !important; /* laisse l'en-tête grandir pour contenir la barre */
}
.cdm2026-barre.cdm2026-skin-minimal {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	box-sizing: border-box;
}

/* =========================================================================
 * VARIANTE « CARTES » de la barre (réglage Présentation = cards) — scores en direct.
 * Jetons par SKIN (cohérence avec les 5 designs) ; cartes côte à côte, RTL automatique (flexbox +
 * margin-inline), scroll horizontal sur mobile. Drapeaux = background CSS local (Flags::bg), inchangés.
 * ====================================================================== */
.cdm2026-bar-cards {
	/* Défauts = thème CLAIR (cf. maquette « minimal ») ; surchargés par skin ci-dessous. */
	--cc-cardbg: #ffffff;
	--cc-border: #e7eaf0;
	--cc-text: #14181f;
	--cc-muted: #9aa1ad;
	--cc-title: #14181f;
	--cc-kicker: #9aa1ad;
	--cc-all: #9aa1ad;
	--cc-live: #e11d48;
	display: block;
	width: 100%;
	box-sizing: border-box;
}
.cdm2026-bar-cards .cdm2026-cards {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--cdm-wcband-maxw, 1340px);
	margin: 10px auto 0;
	margin-inline: auto;
	padding: 0 20px;
	font-family: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.cdm2026-bar-cards.cdm2026-bar-fullwidth .cdm2026-cards { max-width: 100%; }
.cdm2026-cards *, .cdm2026-cards *::before, .cdm2026-cards *::after { box-sizing: border-box; }
.cdm2026-cards__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cdm2026-cards__titles { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cdm2026-cards__kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cc-kicker); }
.cdm2026-cards__title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--cc-title); line-height: 1.1; }
.cdm2026-cards__all { flex: 0 0 auto; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cc-all); text-decoration: none; white-space: nowrap; }
.cdm2026-cards__all:hover { color: var(--cc-text); }
.cdm2026-cards__list { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.cdm2026-card {
	flex: 0 0 auto;
	min-width: 148px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 9px 12px;
	background: var(--cc-cardbg);
	border: 1px solid var(--cc-border);
	border-radius: 10px;
	text-decoration: none;
	color: var(--cc-text);
}
.cdm2026-card__row { display: flex; align-items: center; gap: 8px; }
.cdm2026-card__flag { width: 22px; height: 16px; border-radius: 2px; flex: 0 0 auto; background-size: cover; background-position: center; background-repeat: no-repeat; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.cdm2026-card__code { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--cc-text); }
.cdm2026-card__sc { margin-inline-start: auto; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--cc-text); min-width: 14px; text-align: end; }
.cdm2026-card__row.is-dim .cdm2026-card__code,
.cdm2026-card__row.is-dim .cdm2026-card__sc { color: var(--cc-muted); }
.cdm2026-card__meta { margin-top: 1px; font-size: 11px; color: var(--cc-muted); display: flex; align-items: center; gap: 5px; }
.cdm2026-cards__live { display: inline-flex; align-items: center; gap: 5px; color: var(--cc-live); font-weight: 700; }
.cdm2026-cards__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cc-live); display: inline-block; animation: cdm2026-cards-pulse 1.2s infinite; }
@keyframes cdm2026-cards-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.cdm2026-cards__ft { color: var(--cc-muted); font-weight: 600; }
.cdm2026-cards__ko { color: var(--cc-muted); }
.cdm2026-cards__empty { color: var(--cc-muted); padding: 8px 0; margin: 0; }

/* Skins : surcharge des jetons cartes (les 5 designs). */
.cdm2026-bar-cards.cdm2026-skin-night {
	--cc-cardbg: rgba(255, 255, 255, .05); --cc-border: rgba(255, 255, 255, .14); --cc-text: #ffffff;
	--cc-muted: rgba(255, 255, 255, .45); --cc-title: #ffffff; --cc-kicker: rgba(255, 255, 255, .5); --cc-all: rgba(255, 255, 255, .55);
}
.cdm2026-bar-cards.cdm2026-skin-broadcast {
	--cc-cardbg: #ffffff; --cc-border: #d8e2f5; --cc-text: #0b1e52; --cc-muted: #9aa6c4; --cc-title: #0b1e52; --cc-kicker: #5b6b9a; --cc-all: #5b6b9a;
}
.cdm2026-bar-cards.cdm2026-skin-minimal {
	--cc-cardbg: #ffffff; --cc-border: #e7eaf0; --cc-text: #14181f; --cc-muted: #9aa1ad; --cc-title: #14181f; --cc-kicker: #9aa1ad; --cc-all: #9aa1ad;
}
.cdm2026-bar-cards.cdm2026-skin-maroc {
	--cc-cardbg: #ffffff; --cc-border: #ecd9da; --cc-text: #14181f; --cc-muted: #b58e90; --cc-title: #7a141a; --cc-kicker: #b06a6e; --cc-all: #b06a6e;
}
.cdm2026-bar-cards.cdm2026-skin-maroc-vert {
	--cc-cardbg: #ffffff; --cc-border: #d7e8de; --cc-text: #14181f; --cc-muted: #8aa996; --cc-title: #00502a; --cc-kicker: #6a9a7e; --cc-all: #6a9a7e;
}

@media ( max-width: 760px ) {
	.cdm2026-bar-cards .cdm2026-cards { padding: 0 12px; }
	.cdm2026-cards__title { font-size: 16px; }
	.cdm2026-card { min-width: 132px; }
}

/* =========================================================================
 * VARIANTE « BANDEAU DÉFILANT » (réglage Présentation = ticker) — DESIGN « ticker de scores » (façon SofaScore,
 * RECONSTRUIT avec NOS données + drapeaux locaux ; AUCUN asset/CSS/image tiers). Bande pleine largeur en léger
 * DÉGRADÉ + ombre interne ; emblème NOIR sur pastille CLAIRE ; matchs en PASTILLES arrondies (surface + hover).
 * Jetons par SKIN. Défilement = animation CSS (translateX) sur 2 moitiés identiques (clone aria-hidden posé par
 * le JS). Pause au survol/focus/bouton. RTL miroir (animation-direction:reverse). prefers-reduced-motion respecté.
 * Drapeaux = background CSS local (Flags::bg). Live patché EN PLACE (textContent/classes) → marquee jamais cassé.
 * ====================================================================== */
.cdm2026-bar-ticker {
	--tk-bg1: #1b2029;            /* haut du dégradé */
	--tk-bg2: #0f131a;            /* bas du dégradé */
	--tk-sep: rgba(255, 255, 255, .12);
	--tk-text: #ffffff;
	--tk-muted: rgba(255, 255, 255, .55);
	--tk-pill: rgba(255, 255, 255, .06);
	--tk-pill-h: rgba(255, 255, 255, .14);
	--tk-day: #f4b81e;
	--tk-live: #e11d48;
	--tk-disc: #ffffff;           /* pastille CLAIRE derrière le logo NOIR */
	/* Jetons FACTORISÉS depuis la barre Classique (qui ne les définit que sur .cdm2026-wcband, donc NON hérités
	 * ici). On les redéfinit À L'IDENTIQUE → le look « Classique » du ticker réutilise les MÊMES police + OR, sans
	 * valeurs dupliquées en dur (zéro dérive si la Classique évolue, il suffit d'aligner ces deux lignes). */
	--cdm-wc-gold: #f4b81e;
	--cdm-wc-font: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	display: block;
	width: 100%;
	box-sizing: border-box;
}
.cdm2026-bar-ticker *, .cdm2026-bar-ticker *::before, .cdm2026-bar-ticker *::after { box-sizing: border-box; }
.cdm2026-bar-ticker .cdm2026-ticker {
	display: flex;
	align-items: stretch;
	min-height: 48px;
	background: linear-gradient(180deg, var(--tk-bg1) 0%, var(--tk-bg2) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -1px 0 rgba(0, 0, 0, .30);
	color: var(--tk-text);
	font-family: var(--cdm-wc-font);
	overflow: hidden;
}
.cdm2026-ticker__brand { display: flex; align-items: center; padding: 0 12px; flex: 0 0 auto; text-decoration: none; }
/* Logo NOIR sur disque CLAIR (contraste garanti sur la bande sombre — et propre sur skin clair). */
.cdm2026-ticker__logo { width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: var(--tk-disc); display: block; object-fit: contain; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.cdm2026-ticker__sep { width: 1px; align-self: stretch; margin: 8px 0; background: var(--tk-sep); flex: 0 0 auto; }
.cdm2026-ticker__viewport { position: relative; flex: 1 1 auto; overflow: hidden; min-width: 0; }
.cdm2026-ticker__track {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	will-change: transform;
	/* Durée par défaut ; le JS la remplace par une valeur ∝ largeur (vitesse px/s constante). */
	animation: cdm2026-ticker-scroll 40s linear infinite;
}
.cdm2026-ticker__viewport:hover .cdm2026-ticker__track,
.cdm2026-ticker__viewport:focus-within .cdm2026-ticker__track,
.cdm2026-bar-ticker.is-paused .cdm2026-ticker__track { animation-play-state: paused; }
/* Focus clavier : un lien de pastille (1re copie ; les clones sont tabindex=-1/aria-hidden) reçoit le focus →
 * le ruban se met en pause (sinon la cible défilerait hors de portée) + anneau de focus visible. */
.cdm2026-ticker__m:focus-visible, .cdm2026-ticker__toggle:focus-visible { outline: 2px solid var(--tk-day); outline-offset: 2px; }
.cdm2026-bar-ticker[dir="rtl"] .cdm2026-ticker__track { animation-direction: reverse; }
@keyframes cdm2026-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.cdm2026-ticker__day { display: inline-flex; align-items: center; padding: 0 10px 0 14px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tk-day); white-space: nowrap; }
.cdm2026-ticker__bullet { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--tk-muted); margin: 0 8px; flex: 0 0 auto; opacity: .7; }
/* Pastille de match : surface persistante + hover plus clair + coins arrondis (façon référence). */
.cdm2026-ticker__m { display: inline-flex; align-items: center; gap: 7px; margin: 0 4px; padding: 5px 10px; border-radius: 9px; background: var(--tk-pill); text-decoration: none; color: var(--tk-text); white-space: nowrap; transition: background-color .15s ease; }
.cdm2026-ticker__m:hover { background: var(--tk-pill-h); }
.cdm2026-ticker__t { font-size: 11px; font-weight: 700; color: var(--tk-muted); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; }
.cdm2026-ticker__t.is-live { color: var(--tk-live); font-weight: 800; }
.cdm2026-ticker__t.is-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tk-live); display: inline-block; margin-inline-end: 5px; animation: cdm2026-cards-pulse 1.2s infinite; }
.cdm2026-ticker__t.is-ft { color: var(--tk-muted); }
.cdm2026-ticker__side { display: inline-flex; align-items: center; gap: 5px; }
.cdm2026-ticker__side.is-dim { opacity: .5; }
.cdm2026-ticker__flag { width: 18px; height: 13px; border-radius: 2px; flex: 0 0 auto; background-size: cover; background-position: center; background-repeat: no-repeat; box-shadow: 0 0 0 1px rgba(0, 0, 0, .20); }
.cdm2026-ticker__code { font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.cdm2026-ticker__score { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 0 1px; min-width: 8px; text-align: center; }
.cdm2026-ticker__empty { display: inline-flex; align-items: center; padding: 0 16px; color: var(--tk-muted); font-size: 13px; }
.cdm2026-ticker__toggle { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 42px; border: 0; background: transparent; color: var(--tk-text); cursor: pointer; }
.cdm2026-ticker__toggle:hover { background: var(--tk-pill-h); }
.cdm2026-ticker__ico--pause { display: inline-block; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.cdm2026-ticker__ico--play { display: none; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid currentColor; }
.cdm2026-bar-ticker.is-paused .cdm2026-ticker__ico--pause { display: none; }
.cdm2026-bar-ticker.is-paused .cdm2026-ticker__ico--play { display: inline-block; }

/* Skins : dégradé + accent + surface de pastille par design (les 5). « Éditorial clair » = bande CLAIRE. */
.cdm2026-bar-ticker.cdm2026-skin-night { --tk-bg1: #12161d; --tk-bg2: #07090d; --tk-day: #f4b81e; }
.cdm2026-bar-ticker.cdm2026-skin-broadcast { --tk-bg1: #14306b; --tk-bg2: #0a1640; --tk-sep: rgba(255, 255, 255, .18); --tk-day: #8fbaff; --tk-pill: rgba(255, 255, 255, .08); --tk-pill-h: rgba(255, 255, 255, .17); }
.cdm2026-bar-ticker.cdm2026-skin-minimal {
	/* Bande CLAIRE : jetons assombris pour passer le contraste AA (4.5:1) sur le bas du dégradé et sur la pastille
	 * (--tk-day #92400e ≈ 6.3:1 ; --tk-muted #565d68 ≈ 6:1) — texte petit/non-large, donc seuil 4.5:1 requis. */
	--tk-bg1: #ffffff; --tk-bg2: #eef1f6; --tk-text: #14181f; --tk-muted: #565d68;
	--tk-pill: #f1f4f9; --tk-pill-h: #e2e8f1; --tk-day: #92400e; --tk-sep: rgba(0, 0, 0, .10); --tk-disc: #ffffff;
}
.cdm2026-bar-ticker.cdm2026-skin-maroc { --tk-bg1: #5e1117; --tk-bg2: #380a0e; --tk-sep: rgba(255, 255, 255, .16); --tk-day: #f2b6ad; }
.cdm2026-bar-ticker.cdm2026-skin-maroc-vert { --tk-bg1: #0a4a2c; --tk-bg2: #04331d; --tk-sep: rgba(255, 255, 255, .16); --tk-day: #93e0b4; }

@media ( prefers-reduced-motion: reduce ) {
	.cdm2026-ticker__track { animation: none; }
	.cdm2026-ticker__viewport { overflow-x: auto; }
	/* Le point live ne clignote plus (motion réduit) ; il reste VISIBLE par sa couleur (info live aussi portée
	 * par le texte « EN DIRECT »/minute). Parité cartes (même keyframe partagé). */
	.cdm2026-ticker__t.is-live::before, .cdm2026-cards__dot { animation: none; }
}
@media ( max-width: 760px ) {
	.cdm2026-bar-ticker .cdm2026-ticker { min-height: 44px; }
	.cdm2026-ticker__brand { padding: 0 8px; }
	.cdm2026-ticker__logo { width: 26px; height: 26px; }
	.cdm2026-ticker__m { padding: 5px 8px; gap: 6px; margin: 0 3px; }
	.cdm2026-ticker__day { padding: 0 8px 0 10px; }
	.cdm2026-ticker__toggle { width: 38px; }
}

/* =====================================================================
 * VARIANTE « MATCH VEDETTE » — RÉUTILISE le design du « Bandeau défilant »
 * (classe racine cdm2026-bar-ticker → mêmes jetons --tk-* et mêmes 5 skins,
 * mêmes pastilles). Ici : barre STATIQUE (un seul match) + compte à rebours
 * compact, dans le même langage visuel. RTL via propriétés logiques.
 * ===================================================================== */
.cdm2026-bar-featured .cdm2026-feat-band { align-items: center; }
.cdm2026-bar-featured .cdm2026-feat-band__row { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; overflow: hidden; padding: 0 4px; }

/* Pastille du match vedette : un cran plus présente que dans le ruban défilant. */
.cdm2026-bar-featured .cdm2026-feat-m { padding: 6px 12px; gap: 8px; }
.cdm2026-bar-featured .cdm2026-feat-m .cdm2026-ticker__flag { width: 22px; height: 16px; border-radius: 3px; }
.cdm2026-bar-featured .cdm2026-feat-m .cdm2026-ticker__code { font-size: 13px; }
.cdm2026-bar-featured .cdm2026-feat-m .cdm2026-ticker__score { font-size: 13px; }
.cdm2026-bar-featured .cdm2026-feat-m .cdm2026-ticker__t { font-size: 12px; }

/* Compte à rebours compact, pastille translucide (jetons de la bande). */
.cdm2026-feat-cd { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 6px; padding: 4px 9px; border-radius: 9px; background: var(--tk-pill); white-space: nowrap; flex: 0 0 auto; }
.cdm2026-feat-cd.is-started { display: none; }   /* à 0 (coup d'envoi) le JS ajoute is-started → on masque le compteur. */
.cdm2026-feat-cdu { display: inline-flex; align-items: baseline; gap: 2px; }
.cdm2026-feat-cdu b { font-size: 12px; font-weight: 800; color: var(--tk-text); font-variant-numeric: tabular-nums; line-height: 1; }
.cdm2026-feat-cdu i { font-size: 8px; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tk-muted); }

/* Lien « Tout voir » à droite (même style que le libellé de jour du ticker). */
.cdm2026-feat-all { display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; flex: 0 0 auto; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tk-day); text-decoration: none; white-space: nowrap; }
.cdm2026-feat-all:hover { filter: brightness(1.1); }
.cdm2026-feat-all:focus-visible { outline: 2px solid var(--tk-day); outline-offset: 2px; }

@media (max-width: 640px) {
	.cdm2026-bar-featured .cdm2026-ticker__day { display: none; }
	.cdm2026-feat-all { display: none; }
	.cdm2026-bar-featured .cdm2026-feat-m { padding: 5px 9px; gap: 6px; }
}

/* =====================================================================
 * BANDEAU DÉFILANT — LOOK « CLASSIQUE ». On reprend À L'IDENTIQUE le cadre contenu/arrondi, le dégradé multicolore
 * FIFA + voile, le titre « FIFA World Cup 2026 », le style des puces et l'ALIGNEMENT VERTICAL de la barre Classique ;
 * seuls les MATCHS défilent (au lieu des groupes). Markup + JS (live, défilement, pause-survol) CONSERVÉS — CSS seul.
 * Police Saira + OR via les jetons FACTORISÉS --cdm-wc-font / --cdm-wc-gold (définis sur .cdm2026-bar-ticker, MÊMES
 * valeurs que .cdm2026-wcband) → tailles/police/centrage strictement identiques à la Classique, sans dérive.
 * ===================================================================== */
.cdm2026-bar-ticker { padding-inline: 20px; }
.cdm2026-bar-ticker .cdm2026-ticker {
	max-width: var(--cdm-wcband-maxw, 1340px);
	margin: 10px auto 0;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(20, 30, 60, .16);
	background:
		linear-gradient(rgba(6, 9, 15, .26), rgba(6, 9, 15, .26)),
		linear-gradient(100deg, #4a1326 0%, #173a63 26%, #115d36 50%, #6a5316 74%, #3a1c5c 100%);
}
/* Option « Barre pleine largeur » : bord à bord (pas de conteneur/arrondi). */
.cdm2026-barre.cdm2026-bar-fullwidth.cdm2026-bar-ticker { padding-inline: 0; }
.cdm2026-barre.cdm2026-bar-fullwidth.cdm2026-bar-ticker .cdm2026-ticker { max-width: 100%; margin: 0; border-radius: 0; border-inline: 0; }

/* Marque gauche : logo + titre « FIFA World Cup 2026 » (comme .cdm2026-wc-cd / .cdm2026-wc-title). */
.cdm2026-bar-ticker .cdm2026-ticker__brand { gap: 11px; padding-inline: 16px; border-inline-end: 1px solid rgba(255, 255, 255, .16); }
.cdm2026-bar-ticker .cdm2026-ticker__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-bar-ticker .cdm2026-ticker__brand + .cdm2026-ticker__sep { display: none; }

/* CENTRAGE VERTICAL du ruban — comme .cdm2026-wc-mq (flex + align-items:center). Sans cela, le ruban (inline-flex)
 * se cale EN HAUT du viewport étiré et les matchs paraissent décalés vers le haut. flex:0 0 auto = pas d'écrasement. */
.cdm2026-bar-ticker .cdm2026-ticker__viewport { display: flex; align-items: center; }
.cdm2026-bar-ticker .cdm2026-ticker__track { align-items: center; flex: 0 0 auto; }

/* Libellé du jour (SAM 04/07…) : MÊME police + OR + taille que les libellés Classiques (.cdm2026-wc-gl : 12px/700). */
.cdm2026-bar-ticker .cdm2026-ticker__day { font-family: var(--cdm-wc-font); font-weight: 700; font-size: 12px; letter-spacing: .2px; text-transform: none; color: var(--cdm-wc-gold); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }

/* Puces de MATCH au style des puces Classiques (.cdm2026-gchip) : centrées, même padding/arrondi/hover. */
.cdm2026-bar-ticker .cdm2026-ticker__m { align-items: center; gap: 7px; padding: 4px 9px; border-radius: 8px; background: transparent; border: 1px solid transparent; color: #eef1f7; transition: .15s; }
.cdm2026-bar-ticker .cdm2026-ticker__m:hover { background: rgba(255, 255, 255, .12); border-color: var(--cdm-wc-gold); }
.cdm2026-bar-ticker .cdm2026-ticker__m.is-live { background: rgba(225, 29, 72, .14); }
.cdm2026-bar-ticker .cdm2026-ticker__side { align-items: center; }

/* Drapeaux en ÉCUSSONS RONDS 20×20, centrés verticalement (comme .cdm2026-wc-cr). */
.cdm2026-bar-ticker .cdm2026-ticker__flag { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(8, 11, 18, .55); box-shadow: none; background-color: #2a2f3a; }

/* Codes / heure / score : MÊME police, MÊMES tailles et couleurs que la Classique (codes 12/700, score 12/800). */
.cdm2026-bar-ticker .cdm2026-ticker__code { font-family: var(--cdm-wc-font); font-weight: 700; font-size: 12px; line-height: 1.05; color: #eef1f7; letter-spacing: .2px; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.cdm2026-bar-ticker .cdm2026-ticker__t { font-family: var(--cdm-wc-font); font-weight: 700; font-size: 12px; line-height: 1.05; color: rgba(255, 255, 255, .78); }
.cdm2026-bar-ticker .cdm2026-ticker__t.is-live { color: #ff5b6e; }   /* on garde la teinte « live ». */
.cdm2026-bar-ticker .cdm2026-ticker__t.is-live::before { background: #ff5b6e; }
.cdm2026-bar-ticker .cdm2026-ticker__score { font-family: var(--cdm-wc-font); font-weight: 800; font-size: 12px; line-height: 1.05; color: #fff; }

/* Pause au SURVOL (comme la Classique) ; bouton pause masqué (la Classique n'en a pas). */
.cdm2026-bar-ticker .cdm2026-ticker__viewport:hover .cdm2026-ticker__track { animation-play-state: paused; }
.cdm2026-bar-ticker .cdm2026-ticker__toggle,
.cdm2026-bar-ticker .cdm2026-ticker__viewport + .cdm2026-ticker__sep { display: none; }
