/* ============================================================
   Écran « Match CO » (cf. js/pages/matchs.js)
   ============================================================
   Deux couleurs portent tout le rapport : le bleu du CO (à gauche)
   et le gris clair de l'adversaire (à droite). Vert = victoire ou
   réussi, rouge = défaite ou raté, or = nul.

   FLUIDITÉ : les apparitions passent par .apparait / .est-vu (ui.js) ;
   barres, anneaux et courbes ne s'animent que par transform, opacity
   ou stroke-dashoffset. Les sections hors écran ne sont pas peintes
   (content-visibility). */

.mt-saison, .mt-rapport {
  --co: #4a83ff; --co-2: #8fb3ff; --adv: #c3cad8; --adv-2: #8d96aa;
  --v: #36d27a; --d: #ff5a63; --n: #f5c451;
}

/* ============================================================
   PAGE DE GARDE — LA SAISON
   ============================================================ */
.mt-bilan .chiffre.est-vert b { color: var(--v); }
.mt-bilan .chiffre.est-or b { color: var(--n); }
.mt-bilan .chiffre.est-rouge b { color: var(--d); }

.mt-frise-cadre {
  position: relative; padding: 18px 20px 14px; border-radius: 22px; border: 1px solid var(--ligne);
  background: linear-gradient(160deg, rgba(47, 107, 255, .12), rgba(255, 255, 255, .02) 55%);
}
.mt-frise-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 10px; }
.mt-frise-t b { font: 600 18px var(--titre); text-transform: uppercase; letter-spacing: .04em; }
.mt-frise-t > span { font-size: 12.5px; color: var(--texte-3); font-weight: 650; }
.mt-frise-leg { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px !important; }
.mt-frise-leg i { width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.mt-frise-leg i.est-v { background: var(--v); } .mt-frise-leg i.est-n { background: var(--n); } .mt-frise-leg i.est-d { background: var(--d); }
.mt-frise { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; position: relative; }
.mt-frise::before { content: ""; position: absolute; left: 0; right: 0; top: 60px; height: 1px; background: var(--ligne-2); }
.mt-frise-c { position: relative; display: block; height: 142px; border-radius: 8px; transition: background .2s; }
.mt-frise-c em { position: absolute; inset: 0 0 22px; }
.mt-frise-c i { position: absolute; left: 50%; width: min(70%, 22px); transform: translateX(-50%) scaleY(0); border-radius: 5px; transition: transform .7s var(--ressort) calc(var(--k) * 28ms); }
.mt-frise-c.est-v i { bottom: calc(100% - 60px); height: calc(var(--h) * 56px); transform-origin: 50% 100%; background: linear-gradient(0deg, rgba(54, 210, 122, .35), var(--v)); box-shadow: 0 0 18px -4px rgba(54, 210, 122, .7); }
.mt-frise-c.est-d i { top: 60px; height: calc(var(--h) * 56px); transform-origin: 50% 0; background: linear-gradient(180deg, rgba(255, 90, 99, .35), var(--d)); box-shadow: 0 0 18px -4px rgba(255, 90, 99, .6); }
.mt-frise-c.est-n i { top: 57px; height: 7px; background: var(--n); }
.mt-frise-c.est-avenir i { top: 57px; width: 7px; height: 7px; border-radius: 50%; background: var(--texte-3); opacity: .5; }
.est-vu .mt-frise-c i { transform: translateX(-50%) scaleY(1); }
.mt-frise-c span { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font: 600 12px var(--titre); color: var(--texte-3); }
a.mt-frise-c:hover { background: rgba(143, 179, 255, .08); }
a.mt-frise-c:hover span { color: #fff; }
.mt-frise-c.est-avenir span { opacity: .55; }

.mt-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 14px; }
.mt-carte {
  --res: var(--texte-3);
  position: relative; display: grid; gap: 12px; padding: 15px 16px 13px; border-radius: 20px; overflow: hidden; isolation: isolate;
  background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); border: 1px solid var(--ligne);
  transition: transform .35s var(--ressort), border-color .25s, box-shadow .35s, opacity .7s var(--doux);
}
.mt-carte::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--res); opacity: .9; }
.mt-carte::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--res) 22%, transparent), transparent 60%); }
.mt-carte.est-v { --res: var(--v); } .mt-carte.est-d { --res: var(--d); } .mt-carte.est-n { --res: var(--n); }
a.mt-carte:hover { transform: translate3d(0, -3px, 0); border-color: var(--ligne-2); box-shadow: 0 24px 50px -28px rgba(47, 107, 255, .65); }
.mt-carte.est-avenir { opacity: .42; }
.mt-carte.est-avenir.apparait.est-vu { opacity: .42; }
.mt-carte-haut { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.mt-carte-haut b { font: 600 20px var(--titre); white-space: nowrap; }
.mt-carte-haut span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--texte-3); }
.mt-carte-haut em { margin-left: auto; flex: none; padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c8d8ff; background: rgba(47, 107, 255, .2); }
.mt-carte-affiche { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mt-carte-noms { display: flex; justify-content: space-between; gap: 10px; margin-top: -4px; }
.mt-carte-noms b { flex: 0 1 50%; min-width: 0; font: 600 12.5px/1.15 var(--titre); text-transform: uppercase; letter-spacing: .03em; color: var(--texte-2); }
.mt-carte-noms b:last-child { text-align: right; }
.mt-carte-noms b.est-co { color: #fff; }
.mt-carte .mt-ecusson { width: 54px; height: 54px; padding: 7px; border-radius: 16px; }
.mt-carte-score { display: flex; align-items: baseline; gap: 6px; font: 600 36px/1 var(--titre); font-variant-numeric: tabular-nums; }
.mt-carte-score b.est-adv { color: var(--texte-2); }
.mt-carte-score i { font-style: normal; color: var(--texte-3); font-size: 22px; }
.mt-carte-score span { font-size: 15px; color: var(--texte-3); }
.mt-carte-bas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mt-carte-bas small { font-size: 12px; font-weight: 650; color: var(--texte-3); }
.mt-carte-bas .mt-lieu { margin-left: auto; }

/* Pastille de résultat (cartes et en-tête) */
.mt-res { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-2); background: var(--surface-2); }
.mt-res.est-v { color: #a9f0c6; background: rgba(54, 210, 122, .16); }
.mt-res.est-d { color: #ffc0c4; background: rgba(255, 90, 99, .16); }
.mt-res.est-n { color: #ffe3a1; background: rgba(245, 196, 81, .16); }

/* Écusson : le logo sur une pastille blanche (cf. calendrier) */
.mt-ecusson { display: flex; align-items: center; justify-content: center; flex: none; background: #fff; box-shadow: 0 12px 26px rgba(0, 0, 0, .35); }
.mt-ecusson img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.mt-ecusson span { font: 600 18px var(--titre); color: #0a1433; }

/* ============================================================
   L'EN-TÊTE DU RAPPORT
   ============================================================ */
.mt-heros {
  position: relative; overflow: hidden; isolation: isolate; margin: 4px 0 18px; padding: 16px 22px 20px; border-radius: 28px; border: 1px solid var(--ligne-2);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(47, 107, 255, .42), transparent 62%),
    radial-gradient(60% 110% at 100% 0%, rgba(195, 202, 216, .16), transparent 62%),
    linear-gradient(180deg, rgba(11, 22, 56, .95), rgba(5, 10, 28, .96));
  box-shadow: 0 40px 90px -50px rgba(47, 107, 255, .7);
}
.mt-heros.est-v { box-shadow: 0 40px 90px -50px rgba(54, 210, 122, .55); }
.mt-heros.est-d { box-shadow: 0 40px 90px -50px rgba(255, 90, 99, .45); }
/* Un reflet passe une fois sur l'affiche à l'ouverture. */
.mt-heros::after {
  content: ""; position: absolute; inset: -40% -30%; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .08) 50%, transparent 58%);
  transform: translate3d(-55%, 0, 0); animation: mt-reflet 2.2s var(--doux) .35s both;
}
@keyframes mt-reflet { to { transform: translate3d(55%, 0, 0); } }
.mt-heros-fond { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mt-heros-fond img { position: absolute; top: 50%; width: min(48%, 420px); opacity: .07; }
.mt-heros-fond .g { left: -7%; transform: translateY(-50%) rotate(-12deg); }
.mt-heros-fond .d { right: -7%; transform: translateY(-50%) rotate(12deg); }
.mt-heros-haut { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.mt-retour, .mt-heros-nav a {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 750;
  color: var(--texte-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--ligne); transition: color .2s, background .2s, border-color .2s;
}
.mt-retour:hover, .mt-heros-nav a:hover { color: #fff; background: rgba(47, 107, 255, .22); border-color: rgba(143, 179, 255, .4); }
.mt-heros-info { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-3); }
.mt-heros-nav { margin-left: auto; display: flex; gap: 6px; }

.mt-affiche { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; margin: 16px 0 18px; }
.mt-equipe { display: grid; justify-items: center; gap: 12px; min-width: 0; text-align: center; }
.mt-equipe b { font: 600 clamp(15px, 1.6vw, 22px)/1.05 var(--titre); text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
.mt-equipe.est-adv b { color: var(--texte-2); }
.mt-heros .mt-ecusson { width: clamp(64px, 8vw, 104px); height: clamp(64px, 8vw, 104px); padding: clamp(8px, 1vw, 13px); border-radius: clamp(18px, 2vw, 28px); animation: mt-flotte 6s ease-in-out infinite; }
.mt-heros .mt-ecusson.est-co { box-shadow: 0 0 0 3px rgba(74, 131, 255, .55), 0 18px 46px -10px rgba(47, 107, 255, .8); }
.mt-equipe.est-adv .mt-ecusson { animation-delay: -3s; }
@keyframes mt-flotte { 50% { transform: translate3d(0, -5px, 0); } }
.mt-tableau { display: grid; justify-items: center; gap: 8px; }
.mt-score { display: flex; align-items: center; gap: clamp(8px, 1.4vw, 18px); font: 600 clamp(58px, 8.4vw, 124px)/.86 var(--titre); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mt-score b.est-co { background: linear-gradient(180deg, #fff 35%, #9fbcff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 30px rgba(47, 107, 255, .55)); }
.mt-score b.est-adv { color: rgba(214, 221, 236, .82); }
.mt-score i { font-style: normal; font-size: .45em; color: var(--texte-3); }
.mt-score.est-vs b { font-size: .5em; color: var(--texte-3); }
.mt-mitemps { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
.mt-mitemps b { color: var(--texte-2); margin-left: 4px; letter-spacing: .02em; }
.mt-tableau .mt-res { font-size: 11.5px; padding: 5px 14px; }

.mt-heros-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 18px; border: 1px solid var(--ligne); background: var(--ligne); }
.mt-stat { min-width: 0; padding: 13px 16px 12px; background: rgba(5, 10, 28, .82); }
.mt-stat.est-attente { min-height: 78px; background: linear-gradient(90deg, rgba(5, 10, 28, .82), rgba(20, 32, 70, .82), rgba(5, 10, 28, .82)); background-size: 200% 100%; animation: mt-chatoie 1.4s linear infinite; }
@keyframes mt-chatoie { to { background-position: -200% 0; } }
.mt-stat > span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--texte-3); }
.mt-stat-grand { display: block; margin-top: 4px; font: 600 32px/1 var(--titre); font-variant-numeric: tabular-nums; }
.mt-stat small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--texte-3); }
.mt-stat-v { display: flex; justify-content: space-between; margin-top: 4px; font: 600 26px/1 var(--titre); font-variant-numeric: tabular-nums; }
.mt-stat-v .est-co { color: #fff; } .mt-stat-v .est-adv { color: var(--texte-2); }
.mt-stat-b { display: flex; gap: 3px; height: 6px; margin-top: 9px; }
.mt-stat-b i, .mt-duel-b i { display: block; height: 100%; border-radius: 4px; transition: transform .9s var(--doux); }
.mt-stat-b i:first-child { flex: 0 0 calc(var(--p) * 100% - 1.5px); background: linear-gradient(90deg, #2f6bff, var(--co)); transform-origin: 0 50%; transform: scaleX(0); }
.mt-stat-b i:last-child { flex: 1; background: var(--adv-2); transform-origin: 100% 50%; transform: scaleX(0); }
.mt-heros-stats.est-vu .mt-stat-b i { transform: none; }

/* ============================================================
   CHAPITRES, SECTIONS, CASES
   ============================================================ */
.mt-chapitres {
  position: sticky; top: var(--mt-barre, 64px); z-index: 12; margin: 0 -8px 6px; padding: 8px;
  background: linear-gradient(180deg, rgba(4, 8, 22, .94), rgba(4, 8, 22, .82)); border-radius: 0 0 18px 18px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.mt-chapitres-defile { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.mt-chapitres-defile::-webkit-scrollbar { display: none; }
.mt-chapitres .segments { display: inline-flex; }
.mt-chapitres .segments button { padding: 9px 16px; font-size: 14px; }
.mt-attente { display: flex; justify-content: center; gap: 8px; padding: 60px 0; }
.mt-attente i { width: 10px; height: 10px; border-radius: 50%; background: var(--bleu-2); animation: mt-pulse 1s ease-in-out infinite; }
.mt-attente i:nth-child(2) { animation-delay: .15s; } .mt-attente i:nth-child(3) { animation-delay: .3s; }
@keyframes mt-pulse { 50% { transform: scale(.5); opacity: .4; } }

.mt-entre { animation: mt-entre .45s var(--doux) both; }
@keyframes mt-entre { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
.mt-sommaire { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.mt-sommaire button {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--surface); font-size: 12.5px; font-weight: 700; color: var(--texte-2);
  transition: color .2s, border-color .2s, background .2s;
}
.mt-sommaire button:hover { color: #fff; border-color: var(--ligne-2); background: var(--surface-3); }

/* Pas de content-visibility ici : les sections sont déjà construites à
   l'approche de l'écran (matchs.js), et une section « sautée » au rendu
   laissait un trou en défilement rapide. */
.mt-section { scroll-margin-top: calc(var(--mt-barre, 64px) + 70px); container-type: inline-size; }
.mt-section > .section { margin-top: 30px; flex-wrap: wrap; }
.mt-section > .section .puce { font-size: 12px; }
.mt-inter { margin: 22px 0 12px; font: 600 17px var(--titre); text-transform: uppercase; letter-spacing: .05em; color: var(--ciel); display: flex; align-items: center; gap: 12px; }
.mt-inter::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(143, 179, 255, .3), transparent); }

.mt-rangee { --cols: var(--n, 1); display: grid; gap: 14px; margin-bottom: 14px; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); align-items: start; }
.mt-n1 { --n: 1; } .mt-n2 { --n: 2; } .mt-n3 { --n: 3; } .mt-n4 { --n: 4; } .mt-n5 { --n: 5; } .mt-n6 { --n: 6; }
/* La grille de l'outil (jusqu'à 6 cases par rangée) s'adapte à la place
   réellement disponible, pas à la largeur de l'écran. */
@container (max-width: 1280px) {
  .mt-n4 { --cols: 2; }
  .mt-n5, .mt-n6 { --cols: 3; }
}
@container (max-width: 900px) {
  .mt-n3, .mt-n5, .mt-n6 { --cols: 2; }
  .mt-n3 > :last-child:nth-child(odd), .mt-n5 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@container (max-width: 600px) {
  .mt-rangee { --cols: 1; }
  .mt-n3 > :last-child:nth-child(odd), .mt-n5 > :last-child:nth-child(odd) { grid-column: auto; }
}

.mt-bloc { min-width: 0; padding: 16px 16px 14px; border-radius: var(--rayon); background: var(--surface); border: 1px solid var(--ligne); }
.mt-bloc-t { margin: 0 0 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--texte); }
.mt-st { margin: 16px 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-3); }
.mt-bloc > :first-child.mt-st { margin-top: 0; }
.mt-note { margin: 8px 0 0; font-size: 11.5px; color: var(--texte-3); text-align: center; }
.mt-zeros { margin: 8px 0 0; font-size: 11.5px; color: var(--texte-3); }
.mt-centre { text-align: center; }

/* ---------------- Vidéo : rien ne s'affiche sans elle ---------------- */
.mt-play { width: 11px; height: 11px; flex: none; fill: currentColor; opacity: .9; }
.mt-rapport [data-v] { cursor: pointer; }

/* ============================================================
   LES DESSINS
   ============================================================ */
/* ---------------- Barres face à face ---------------- */
.mt-duels { display: grid; gap: 12px; }
.mt-duel-l { display: grid; grid-template-columns: minmax(64px, auto) minmax(0, 1fr) minmax(64px, auto); align-items: end; gap: 8px; }
.mt-duel-t { text-align: center; font-size: 12.5px; font-weight: 650; color: var(--texte-2); line-height: 1.25; padding-bottom: 2px; }
.mt-duel-v { display: grid; gap: 1px; font: 600 21px/1 var(--titre); font-variant-numeric: tabular-nums; }
.mt-duel-v > span { white-space: nowrap; }
.mt-duel-v.est-co { color: #fff; justify-items: start; }
.mt-duel-v.est-adv { color: var(--texte-2); justify-items: end; text-align: right; }
.mt-duel-v small { font: 650 11px var(--corps); color: var(--texte-3); white-space: nowrap; }
.mt-duel-v.est-video { grid-template-columns: auto auto; align-items: center; column-gap: 5px; padding: 3px 7px; margin: -3px -7px; border-radius: 9px; transition: background .2s, color .2s; }
.mt-duel-v.est-video.est-adv { grid-template-columns: auto auto; }
.mt-duel-v.est-video small { grid-column: 1 / -1; }
.mt-duel-v.est-video .mt-play { color: var(--ciel); }
.mt-duel-v.est-video:hover { background: rgba(47, 107, 255, .2); color: #fff; }
.mt-duel-b { display: flex; gap: 3px; height: 9px; margin-top: 6px; }
.mt-duel-b i:first-child { flex: 0 0 calc(var(--p) * 100% - 1.5px); background: var(--c0); transform-origin: 0 50%; transform: scaleX(0); }
.mt-duel-b i:last-child { flex: 1; background: var(--c1); opacity: .85; transform-origin: 100% 50%; transform: scaleX(0); }
.est-vu .mt-duel-b i { transform: none; }

/* ---------------- Anneaux ---------------- */
.mt-anneau, .mt-anneaux, .mt-camembert, .mt-graphe, .mt-fig { margin: 0; min-width: 0; }
.mt-anneau { display: grid; justify-items: center; gap: 6px; }
.mt-anneau figcaption, .mt-anneaux figcaption { font-size: 12.5px; font-weight: 750; color: var(--texte-2); text-align: center; }
.mt-anneau svg { width: min(100%, 190px); display: block; }
.mt-anneau .fond, .mt-anneaux .fond { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 11; }
.mt-anneau .arc, .mt-anneaux .arc { fill: none; stroke-width: 11; stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--c); transition: stroke-dashoffset 1.3s var(--doux) .1s; }
.est-vu .mt-anneau .arc, .est-vu .mt-anneaux .arc { stroke-dashoffset: var(--o); }
.mt-anneau-p { font: 600 31px var(--titre); fill: #fff; text-anchor: middle; }
.mt-anneau-p tspan { font-size: 15px; fill: var(--texte-2); }
.mt-anneau-p.petit { font-size: 25px; }
.mt-anneau-n { font-size: 11px; font-weight: 650; fill: var(--texte-3); text-anchor: middle; }
.mt-anneaux-c { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; margin-top: 6px; }
.mt-anneaux svg { width: min(100%, 170px); }

/* ---------------- Répartitions ---------------- */
.mt-camembert-c { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; }
.mt-camembert svg { width: min(100%, 160px); flex: none; }
.mt-camembert .part { fill: none; stroke-width: 15; opacity: 0; transition: opacity .5s var(--doux) calc(var(--k) * 70ms), stroke-width .2s; }
.est-vu .mt-camembert .part { opacity: 1; }
.mt-camembert .part.est-video:hover { stroke-width: 19; }
.mt-legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; min-width: min(100%, 190px); flex: 1; }
.mt-legende li { display: grid; grid-template-columns: 11px minmax(0, 1fr) auto 40px auto; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; font-size: 12.5px; }
.mt-legende li i { width: 11px; height: 11px; border-radius: 3px; }
.mt-legende li span { color: var(--texte-2); overflow-wrap: anywhere; }
.mt-legende li b { font: 600 15px var(--titre); font-variant-numeric: tabular-nums; }
.mt-legende li small { color: var(--texte-3); font-weight: 650; text-align: right; }
.mt-legende li .mt-play { color: var(--ciel); }
.mt-legende li.est-video:hover { background: rgba(47, 107, 255, .18); }
.mt-legende.est-compacte { margin-top: 8px; }
.mt-legende.est-compacte li { padding: 2px 4px; font-size: 12px; }
.mt-repart-b { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.mt-repart-b i { display: block; min-width: 3px; transform-origin: 0 50%; transform: scaleX(0); transition: transform .8s var(--doux); }
.est-vu .mt-repart-b i { transform: none; }

/* ---------------- Chiffres clés ---------------- */
.mt-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.mt-tuiles + .mt-tuiles, .mt-duels + .mt-tuiles, .mt-tuiles + .mt-duels { margin-top: 10px; }
.mt-tuile {
  position: relative; overflow: hidden; padding: 12px 14px 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--ligne);
}
.mt-tuile::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); box-shadow: 0 0 12px var(--c); }
.mt-tuile span { display: block; font-size: 11.5px; font-weight: 700; color: var(--texte-3); line-height: 1.3; }
.mt-tuile b { display: block; margin-top: 4px; font: 600 28px/1 var(--titre); font-variant-numeric: tabular-nums; }
.mt-origine { display: grid; gap: 10px; }
.mt-origine + .mt-origine { margin-top: 12px; }

/* Efficacité des touches par zone */
.mt-zones { display: grid; gap: 12px; }
.mt-zones-l { display: grid; gap: 6px; }
.mt-zones-eq { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-2); }
.mt-zones-eq::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.mt-zones-bande {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: 12px;
  background: repeating-linear-gradient(90deg, #0d4a27 0 12%, #0f5530 12% 24%); border: 1px solid rgba(132, 230, 160, .2);
}
.mt-zone {
  position: relative; display: grid; justify-items: center; gap: 1px; padding: 9px 4px 8px; border-radius: 9px; text-align: center;
  background: rgba(3, 18, 9, .45); box-shadow: inset 0 calc(-60px * var(--p)) 40px -30px rgba(54, 210, 122, .55);
}
.mt-zone span { font-size: 10.5px; font-weight: 750; color: rgba(255, 255, 255, .72); line-height: 1.2; }
.mt-zone b { font: 600 21px/1.05 var(--titre); }
.mt-zone small { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .6); }
.mt-zone .mt-play { position: absolute; bottom: 7px; right: 7px; color: #fff; opacity: .7; }
.mt-zone.est-video { transition: background .2s, transform .2s var(--ressort); }
.mt-zone.est-video:hover { background: rgba(47, 107, 255, .35); transform: translate3d(0, -1px, 0); }

/* ---------------- Graphiques SVG ---------------- */
.mt-svg { display: block; width: 100%; height: auto; margin: 0 auto; overflow: visible; }
.mt-svg text { font-family: var(--corps); }
.mt-svg .grille { stroke: rgba(143, 179, 255, .1); stroke-width: 1; }
.mt-svg .axe0 { stroke: rgba(143, 179, 255, .35); stroke-width: 1; }
.mt-svg .tick { font-size: 10px; fill: var(--texte-3); font-variant-numeric: tabular-nums; }
.mt-svg .cat { font-size: 10.5px; font-weight: 650; fill: var(--texte-2); }
.mt-svg .cat.equipe { font: 600 13px var(--titre); fill: var(--texte); }
.mt-svg .cat.radar { font-size: 11px; }
.mt-svg .val { font-size: 11px; font-weight: 800; fill: #fff; font-variant-numeric: tabular-nums; }
.mt-svg .val.petit { font-size: 9.5px; font-weight: 700; fill: var(--texte-2); }
.mt-svg .val.dedans { font-size: 10px; fill: rgba(255, 255, 255, .92); }
/* Les chiffres d'une courbe passent souvent sur une barre : un liseré
   sombre les garde lisibles. */
.mt-svg .val.ligne { paint-order: stroke; stroke: #0a1330; stroke-width: 3.2px; stroke-linejoin: round; }
.mt-svg .toile { fill: none; stroke: rgba(143, 179, 255, .13); }
.mt-barre { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .8s var(--doux) var(--d, 0ms); }
.est-vu .mt-barre { transform: none; }
.mt-courbe { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--doux) .15s; }
.est-vu .mt-courbe { stroke-dashoffset: 0; }
.mt-aire { opacity: 0; transition: opacity 1s var(--doux) .4s; }
.est-vu .mt-aire { opacity: 1; }
.mt-point { stroke: #070e24; stroke-width: 1.4; }
.mt-radar-poly { stroke-width: 2; stroke-linejoin: round; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.6); transition: opacity .7s var(--doux), transform .9s var(--ressort); }
.est-vu .mt-radar-poly { opacity: 1; transform: none; }
.mt-radar { max-width: 460px; }
.mt-seg { opacity: .95; }
.mt-mitemps-l { stroke: rgba(245, 196, 81, .7); stroke-width: 1.2; stroke-dasharray: 4 4; }
.mt-repere { stroke: rgba(143, 179, 255, .35); stroke-width: 1; stroke-dasharray: 3 4; }
.mt-repere.est-mt { stroke: rgba(214, 58, 160, .75); }
.mt-repere-t { font-size: 10.5px; font-weight: 800; fill: var(--texte-2); }
.mt-mom-pt { opacity: .9; }
.mt-marque { stroke-linejoin: round; }

.mt-leg-g { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--texte-2); }
.mt-leg-g span { display: inline-flex; align-items: center; gap: 6px; }
.mt-leg-g span > i { width: 11px; height: 11px; border-radius: 3px; }
.mt-leg-g span.est-ligne > i { height: 3px; border-radius: 2px; width: 16px; }
.mt-leg-g small { flex-basis: 100%; text-align: center; color: var(--texte-3); font-size: 11px; }
.mt-sw-losange, .mt-sw-ballon, .mt-sw-carre { display: inline-block; width: 10px; height: 10px; }
.mt-sw-losange { background: var(--c); transform: rotate(45deg) scale(.85); }
.mt-sw-ballon { background: var(--c); border-radius: 50%; transform: scaleX(1.35) rotate(-35deg); border: 1px solid #fff; }
.mt-sw-carre { border: 2px solid var(--c); border-radius: 2px; }

/* Deux dessins, un seul affiché : la frise entière sur grand écran, une
   frise par mi-temps quand la place manque. */
.mt-double { container-type: inline-size; }
.mt-etroit { display: none; }
@container (max-width: 620px) {
  .mt-large { display: none; }
  .mt-etroit { display: block; }
}
.mt-moitie { margin: 6px 0 0; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-3); }

/* ---------------- Barres horizontales (beaucoup de catégories) ---------------- */
.mt-hbarres { display: grid; gap: 7px; }
.mt-hb { display: grid; grid-template-columns: minmax(70px, 30%) minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.mt-hb-l { font-size: 12.5px; font-weight: 650; color: var(--texte-2); line-height: 1.2; overflow-wrap: anywhere; }
.mt-hb-b { display: grid; gap: 3px; }
.mt-hb-r { display: flex; align-items: center; gap: 6px; height: 13px; }
.mt-hb-r i { display: block; height: 100%; width: calc(var(--v) * (100% - 34px)); min-width: 2px; border-radius: 0 4px 4px 0; background: var(--c); transform-origin: 0 50%; transform: scaleX(0); transition: transform .8s var(--doux) var(--d, 0ms); }
.est-vu .mt-hb-r i { transform: none; }
.mt-hb-r b { font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mt-hb-x { display: flex; gap: 5px; }
.mt-hb-x em { font-style: normal; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #0a1433; background: var(--c); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------- Radar : le face-à-face chiffré ---------------- */
.mt-face { display: grid; gap: 2px; margin-top: 12px; }
.mt-face-l { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 8px; }
.mt-face-l:nth-child(odd) { background: rgba(255, 255, 255, .03); }
.mt-face-l span { text-align: center; font-size: 12.5px; color: var(--texte-2); }
.mt-face-l b { font: 600 16px var(--titre); font-variant-numeric: tabular-nums; }
.mt-face-l b.est-co { color: #fff; }
.mt-face-l b.est-co.est-mieux { color: #9af0bd; }
.mt-face-l b.est-co.est-moins { color: #ff8f96; }
.mt-face-l b.est-adv { text-align: right; color: var(--texte-2); }

/* ---------------- Tableaux ---------------- */
.mt-table-d { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 12px; border: 1px solid var(--ligne); }
.mt-table { --entete: #2f5fd0; width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mt-table-d.est-mini { margin-top: 10px; }
.mt-table.est-mini { font-size: 12px; }
.mt-table.est-mini thead th { padding: 6px; font-size: 10px; letter-spacing: .03em; text-transform: none; }
.mt-table.est-mini tbody th { font-weight: 650; color: var(--texte-2); }
.mt-table.est-mini tbody th i { display: inline-block; width: 12px; height: 3px; margin-right: 7px; border-radius: 2px; vertical-align: middle; }
.mt-table thead th { position: sticky; top: 0; padding: 8px 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: center; color: #fff; background: color-mix(in srgb, var(--entete) 45%, #0a1536); line-height: 1.2; }
.mt-table thead th.est-neg { box-shadow: inset 0 -2px 0 rgba(255, 90, 99, .7); }
.mt-table thead th.est-pos { box-shadow: inset 0 -2px 0 rgba(54, 210, 122, .7); }
.mt-table tbody th { position: sticky; left: 0; z-index: 1; padding: 6px 10px; text-align: left; font-weight: 700; color: var(--texte); white-space: nowrap; background: #0a1434; }
.mt-table tbody th small { margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 10.5px; color: var(--texte-2); background: var(--surface-3); }
.mt-table td { padding: 6px 8px; text-align: center; color: var(--texte-2); border-top: 1px solid var(--ligne); }
.mt-table tbody tr:hover td, .mt-table tbody tr:hover th { background-color: rgba(47, 107, 255, .1); }
.mt-table td.est-pct { position: relative; }
.mt-table td.est-pct::before { content: ""; position: absolute; left: 6px; right: 6px; bottom: 4px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--co) calc(var(--p) * 100%), rgba(255, 255, 255, .06) 0); }
.mt-table.est-degrade td { color: #fff; }
.mt-table.est-degrade td b { font-weight: 800; }
.mt-table.est-degrade td small { display: block; font-size: 10.5px; opacity: .8; }
.mt-table td.est-video:hover { outline: 2px solid var(--ciel); outline-offset: -2px; }

/* ---------------- Le terrain ---------------- */
.mt-fig { display: grid; justify-items: center; gap: 8px; }
/* Une ombre de boîte plutôt qu'un filtre drop-shadow : le filtre faisait
   repeindre chaque terrain à chaque image du défilement. */
.mt-terrain { display: block; width: 100%; max-width: 330px; height: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .7); }
.mt-terrain.est-h { max-width: 560px; }
.mt-t-pelouse { fill: #0b4322; }
.mt-t-bande { fill: rgba(255, 255, 255, .028); }
.mt-t-enbut { fill: rgba(0, 0, 0, .18); }
.mt-t-lignes line, .mt-t-cadre { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: .28; }
.mt-t-lignes line.fort { stroke: rgba(255, 255, 255, .62); stroke-width: .42; }
.mt-t-lignes line.tiret { stroke-dasharray: 1.6 1.2; }
.mt-t-lignes line.pointille { stroke: rgba(255, 255, 255, .2); stroke-dasharray: .6 1.6; }
.mt-t-poteau { fill: #fff; }
.mt-t-logo { opacity: .14; }
.mt-chaleur { image-rendering: auto; opacity: 0; transition: opacity .9s var(--doux); }
.est-vu .mt-chaleur { opacity: 1; }
.mt-serie { opacity: 0; transition: opacity .6s var(--doux) calc(var(--k, 0) * 120ms + 150ms); }
.est-vu .mt-serie { opacity: 1; }
.mt-serie.est-masque { opacity: 0 !important; pointer-events: none; }
.mt-pt { stroke: rgba(4, 8, 22, .85); stroke-width: .38; pointer-events: none; transform-box: fill-box; transform-origin: center; transition: transform .2s var(--ressort); }
.mt-pt:not(.est-v) { pointer-events: auto; }
.mt-pt-cible { fill: transparent; cursor: pointer; }
.mt-pt-cible:hover + .mt-pt { transform: scale(1.7); stroke: #fff; }
.mt-pt-chaleur { fill: rgba(255, 255, 255, .75); stroke: rgba(4, 8, 22, .6); stroke-width: .25; pointer-events: none; }
.mt-pt-cible:hover + .mt-pt-chaleur { fill: #fff; transform: scale(2); transform-box: fill-box; transform-origin: center; }
.mt-fleche line { stroke-width: .7; stroke-linecap: round; }
.mt-fleche.est-neg line { stroke-dasharray: 1.6 1.1; }
.mt-fleche { opacity: 0; transition: opacity .6s var(--doux) calc(var(--k) * 90ms); }
.est-vu .mt-fleche { opacity: 1; }
.mt-case { fill-opacity: .8; stroke: rgba(4, 8, 22, .55); stroke-width: .25; transition: fill-opacity .2s; }
.mt-case.est-vide { fill: rgba(4, 8, 22, .3); }
.mt-case:hover { fill-opacity: 1; }
.mt-case-p, .mt-case-n { text-anchor: middle; fill: #fff; paint-order: stroke; stroke: rgba(4, 8, 22, .8); stroke-width: .5; pointer-events: none; font-family: var(--corps); }
.mt-case-p { font-size: 3.05px; font-weight: 800; }
.mt-case-n { font-size: 1.95px; font-weight: 700; }
.mt-case-n.est-vide { fill: rgba(255, 255, 255, .45); font-size: 2.2px; stroke: none; }
.mt-fig.est-grille .mt-terrain { max-width: 360px; }

.mt-leg { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mt-puce-serie, .mt-puce-statique, .mt-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 7px; border-radius: 999px; border: 1px solid var(--ligne);
  background: var(--surface-2); font-size: 12px; font-weight: 650; color: var(--texte-2); line-height: 1.2;
}
.mt-puce-serie { cursor: pointer; transition: opacity .2s, border-color .2s; }
.mt-puce-serie:hover { border-color: var(--ligne-2); color: #fff; }
.mt-puce-serie i, .mt-puce-statique i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.mt-puce-statique.est-tiret i { width: 16px; height: 0; border-radius: 0; border-top: 2px dashed var(--texte-2); box-shadow: none; background: none; }
.mt-puce-serie b { font-size: 11px; color: var(--texte-3); }
.mt-puce-serie.est-masque { opacity: .4; text-decoration: line-through; }
.mt-puce-play { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: -4px; border-radius: 50%; color: #fff; background: rgba(47, 107, 255, .55); }
.mt-puce-play:hover { background: var(--bleu); }
.mt-puce-play .mt-play { width: 9px; height: 9px; margin-left: 1px; }
.mt-badge { border-color: color-mix(in srgb, var(--c) 55%, transparent); color: var(--texte); }
.mt-badge b { font: 600 14px var(--titre); }
.mt-echelle { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--texte-2); }
.mt-echelle i { width: 14px; height: 9px; border-radius: 2px; }
.mt-echelle i:nth-of-type(1) { background: #e0313a; } .mt-echelle i:nth-of-type(2) { background: #59627a; } .mt-echelle i:nth-of-type(3) { background: #20b45a; }
.mt-leg small { flex-basis: 100%; text-align: center; font-size: 11px; color: var(--texte-3); }
.mt-sens { font-weight: 750; color: var(--texte-2); }

/* ---------------- Chronologie d'actions ---------------- */
.mt-liste-t { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mt-liste-t b { font-size: 12.5px; font-weight: 800; color: var(--texte); }
.mt-liste-t span { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--texte-2); }
.mt-liste-t span i { width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; }
.mt-liste-t i.est-bon { background: var(--v); } .mt-liste-t i.est-mauvais { background: var(--d); }
.mt-liste ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mt-act {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 7px 10px 7px 8px; border-radius: 11px;
  background: rgba(255, 255, 255, .03); border-left: 3px solid var(--texte-3); transition: background .2s, transform .2s var(--ressort);
}
.mt-act.est-bon { border-left-color: var(--v); }
.mt-act.est-mauvais { border-left-color: var(--d); }
.mt-act-n { font: 600 13px var(--titre); color: var(--texte-3); text-align: center; }
.mt-act-t { font-size: 13px; font-weight: 700; color: var(--texte); line-height: 1.3; }
.mt-act-t small { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; color: var(--texte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-act-m { font: 600 14px var(--titre); color: var(--texte-2); font-variant-numeric: tabular-nums; }
.mt-act .mt-play { color: var(--ciel); }
.mt-act.est-video:hover { background: rgba(47, 107, 255, .16); transform: translate3d(2px, 0, 0); }

/* ============================================================
   TÉLÉPHONE
   ============================================================ */
@media (max-width: 980px) {
  .mt-heros { padding: 14px 14px 14px; border-radius: 22px; }
  .mt-heros-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-heros-info { order: 3; flex-basis: 100%; letter-spacing: .1em; }
  .mt-chapitres { margin: 0 -16px 6px; padding: 8px 12px; border-radius: 0; }
}
@media (max-width: 640px) {
  .mt-affiche { gap: 8px; margin: 14px 0 14px; }
  .mt-equipe { gap: 8px; }
  .mt-equipe b { font-size: 12.5px; }
  .mt-score { font-size: clamp(46px, 14vw, 62px); }
  .mt-mitemps { font-size: 11px; }
  .mt-stat { padding: 11px 12px 10px; }
  .mt-stat-grand { font-size: 26px; }
  .mt-stat-v { font-size: 21px; }
  .mt-frise-cadre { padding: 14px 12px 10px; }
  .mt-frise-leg { margin-left: 0; }
  .mt-frise { gap: 1px; }
  .mt-frise-c span { font-size: 9.5px; }
  .mt-grille { grid-template-columns: 1fr; }
  .mt-bloc { padding: 14px 12px 12px; }
  .mt-duel-v { font-size: 19px; }
  .mt-legende li { grid-template-columns: 11px minmax(0, 1fr) auto 36px auto; }
  .mt-hb { grid-template-columns: minmax(62px, 32%) minmax(0, 1fr) auto; gap: 8px; }
}

/* ============================================================
   MOUVEMENT RÉDUIT ET MODE ALLÉGÉ
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .mt-heros::after, .mt-heros .mt-ecusson, .mt-stat.est-attente, .mt-attente i, .mt-entre { animation: none !important; }
  .mt-heros::after { display: none; }
}
.allege .mt-heros::after, .allege .mt-heros .mt-ecusson, .allege .mt-stat.est-attente { animation: none; }
.allege .mt-heros::after { display: none; }
.allege .mt-chapitres { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(4, 8, 22, .97); }
.allege .mt-terrain, .allege .mt-frise-c i, .allege .mt-tuile::before { box-shadow: none; }
