/*
 * Tous au Match – « Statistiques du match », mise en page de l écran de l entraîneur (lot K-STATS-1, agent K5).
 * © 2026 Ghislain DEMONDA – Tous droits réservés.
 *
 * Cascade unique : socle public/assets/tem.css, puis thème actif /theme.css, puis cette feuille.
 * Cette feuille ne porte que la mise en page : ni couleur, ni fond, ni coin, ni bordure, ni ombre, ni contour
 * (contrôle look_typo, point 3). Teintes par fonction, coins et aplats du design Mosaïque : ancre TEM-STATS de
 * theme-mosaique.css (fragment .claude/stats-travail/k5/fragment-stats.css). Dans les autres designs, les blocs
 * gardent l habit sobre du socle (.card, .btn) et les dessins SVG la couleur du texte (currentColor), toujours
 * doublés d un mot ou d un nombre écrit.
 */
/* TEM-STATS début */
#stats {
  --st-ecart: clamp(12px, 1.6vw, 22px);
  --st-police: var(--typo-police, inherit);
  --st-texte: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
}
html:root[data-style] main.tem-main.st-large { max-width: 1340px; }
#stats .typo-titre { text-wrap: balance; }
#stats [hidden] { display: none; }

.st-sr {
  position: absolute; inline-size: 1px; block-size: 1px; margin: 0; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------- En-tête : titre monumental à gauche, score géant à droite ---------- */
#stats .st-tete { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(20px, 4vw, 64px); align-items: end; }
#stats .st-tete > :not(.st-tete-droite) { grid-column: 1; }
#stats .st-tete-droite { grid-column: 2; grid-row: 1 / span 3; align-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
#stats .st-tete-meta { margin: 0; max-width: 330px; font-size: .86rem; line-height: 1.4; }
.st-geant { display: grid; grid-template-columns: auto auto auto; justify-content: start; align-items: end; column-gap: 14px; margin: 0; }
.st-geant b { font-family: var(--st-police); font-stretch: condensed; font-weight: 800; font-size: clamp(4.6rem, 3rem + 6vw, 10rem); line-height: .8; font-variant-numeric: tabular-nums lining-nums; }
.st-geant i { font-style: normal; font-family: var(--st-police); font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 2vw, 4.4rem); line-height: 1; padding-bottom: .42em; }
.st-geant span { font-family: var(--st-police); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: 1.05rem; line-height: 1.1; padding-top: 8px; }
.st-geant span:nth-of-type(1) { grid-column: 1; text-align: left; }
.st-geant span:nth-of-type(2) { grid-column: 3; text-align: right; }
.st-geant.petit b { font-size: clamp(3.6rem, 2.6rem + 3vw, 6rem); }
.st-seul { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; font-size: .82rem; font-weight: 800; letter-spacing: .02em; }

/* ---------- Ouverture de la gestion, choix du match ---------- */
.st-form { display: grid; gap: 12px; }
.st-form label { display: grid; gap: 4px; font-weight: 650; }
.st-form input:not([type="checkbox"]), #stats select { min-block-size: 44px; padding: 8px 12px; font: inherit; max-inline-size: 100%; }
.st-choix { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
#stats .st-match { box-sizing: border-box; display: grid; justify-items: start; gap: 4px; inline-size: 100%; min-block-size: 64px; margin: 0; padding: 12px 16px; text-align: left; }
.st-match b { font-weight: 800; }
.st-match span { font-size: .86rem; }

/* ---------- Onglets : commande segmentée sur un rail, défilement horizontal sur téléphone ---------- */
.st-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 var(--st-ecart); }
.st-onglets { display: flex; gap: 4px; padding: 5px; max-inline-size: 100%; overflow-x: auto; scrollbar-width: thin; }
:where(.st-onglets [role="tab"]) { all: unset; box-sizing: border-box; flex: none; min-block-size: 44px; padding: 10px 16px; font-weight: 650; font-size: .95rem; cursor: pointer; white-space: nowrap; }
.st-onglets [role="tab"][aria-selected="true"] { font-weight: 800; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.st-autre-match { margin: 0; }
.st-panneau { display: block; }
.st-panneau:focus-visible { scroll-margin-top: 96px; }

/* ---------- Titres de section, cartes, mentions ---------- */
.st-section { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: calc(var(--st-ecart) * 1.4) 0 14px; font-family: var(--st-police); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 1.3rem + 1.2vw, 2.5rem); line-height: 1; letter-spacing: 0; }
.st-section small { font-family: var(--st-texte); font-stretch: normal; text-transform: none; font-size: .95rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; max-width: 78ch; }
#stats .st-carte { margin: 0 0 var(--st-ecart); min-inline-size: 0; }
#stats .st-carte > h2.st-titre, #stats .st-titre { margin: 0 0 6px; font-family: var(--st-police); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 1.1rem + .8vw, 1.8rem); line-height: 1.05; letter-spacing: 0; }
#stats .st-titre .num { margin-right: .3em; }
#stats .st-carte > p { margin: 0 0 12px; line-height: 1.45; }
.st-mention, .st-note { margin: 14px 4px 0; font-size: .88rem; line-height: 1.5; }
.st-mention { font-weight: 650; max-width: 80ch; }
.st-vide { margin: 8px 0; font-size: .95rem; line-height: 1.45; }
.st-ok, .st-avert { margin: 0 0 10px; padding: 10px 14px; font-weight: 650; line-height: 1.4; }
.st-peu { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 3px 10px; font-size: .78rem; font-weight: 800; white-space: normal; max-inline-size: 100%; overflow-wrap: anywhere; }
.st-deux { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--st-ecart); align-items: start; }
.st-deux > .st-carte { margin: 0 0 var(--st-ecart); }
.st-copie { display: grid; gap: 8px; }
.st-copie textarea { inline-size: 100%; box-sizing: border-box; min-block-size: 8em; padding: 10px 12px; font: inherit; font-size: .9rem; line-height: 1.45; resize: vertical; }

/* ---------- Tuiles de chiffres monumentaux ---------- */
.st-chiffres { list-style: none; margin: 0 0 var(--st-ecart); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.st-chiffre { margin: 0; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; min-inline-size: 0; }
.st-chiffre h3, .st-chiffre h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .98rem; font-weight: 750; letter-spacing: 0; }
.st-nombre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 2px 0 0; font-family: var(--st-police); font-stretch: condensed; font-weight: 800; line-height: .85; font-variant-numeric: tabular-nums lining-nums; }
.st-nombre b { font-size: clamp(3rem, 2rem + 3vw, 5.2rem); font-weight: 800; }
.st-chiffre p { margin: 0; font-size: .88rem; line-height: 1.4; }

/* ---------- Tableaux lisibles au lecteur d écran, défilement interne sur téléphone ---------- */
.st-defile { max-inline-size: 100%; overflow-x: auto; margin: 0 0 10px; }
#stats table { min-inline-size: 100%; }
#stats th, #stats td { padding: 8px 10px; text-align: left; vertical-align: top; font-variant-numeric: tabular-nums; }
#stats td small { display: block; font-size: .76rem; font-weight: 600; margin-top: 2px; }
#stats caption { text-align: left; font-weight: 750; padding: 0 0 8px; }
.st-joueurs th[scope="row"] { font-weight: 800; white-space: nowrap; }
.st-joueurs td { font-family: var(--st-police); font-stretch: condensed; font-weight: 800; font-size: 1.25rem; white-space: nowrap; }
.st-joueurs td small { font-family: var(--st-texte); font-stretch: normal; }
:where(.st-tri) { all: unset; box-sizing: border-box; cursor: pointer; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; min-block-size: 32px; display: inline-flex; align-items: center; }
th[aria-sort="ascending"] .st-tri::after { content: " \2191" / ""; }
th[aria-sort="descending"] .st-tri::after { content: " \2193" / ""; }

/* ---------- Compositions et sous-groupes ---------- */
.st-rubriques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--st-ecart); margin: 12px 0 var(--st-ecart); }
.st-rubrique { min-inline-size: 0; }
.st-rubrique > h3 { margin: 0 0 10px; font-size: .86rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.st-compos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.st-compo { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-inline-size: 0; }
.st-cinq-mini { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.st-cinq-mini li { display: inline-grid; place-items: center; min-block-size: 34px; padding: 0 10px; font-weight: 800; font-size: .92rem; line-height: 1.1; }
.st-cinq-mini li.sans { font-weight: 650; font-size: .8rem; }
.st-qualif { align-self: flex-start; padding: 4px 12px; font-size: .8rem; font-weight: 850; letter-spacing: .03em; }
.st-taux { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-family: var(--st-police); font-stretch: condensed; font-weight: 800; line-height: .9; }
.st-taux b { font-size: clamp(2.6rem, 2rem + 1.6vw, 3.8rem); font-variant-numeric: tabular-nums lining-nums; }
.st-taux span { font-size: 1.02rem; text-transform: uppercase; line-height: 1.05; }
.st-iv { margin: 0; font-size: .82rem; font-weight: 650; }
.st-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.st-detail li { padding: 8px 10px; font-size: .78rem; font-weight: 650; line-height: 1.25; }
.st-detail li b { display: block; font-family: var(--st-police); font-stretch: condensed; font-weight: 800; font-size: 1.3rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.st-table tr.faible th .st-peu { display: flex; inline-size: max-content; }
.st-peu-liste { margin: 8px 0; }
.st-peu-liste summary { cursor: pointer; font-weight: 750; min-block-size: 32px; }
.st-peu-liste ul { margin: 8px 0 0; padding-left: 1.2em; line-height: 1.5; }

/* Barres SVG : dessin neutre (couleur du texte) hors Mosaïque, teintes dans le fragment TEM-STATS */
.st-intervalle { display: block; inline-size: 100%; max-inline-size: 320px; block-size: auto; }
.st-intervalle .piste { fill: currentColor; fill-opacity: .14; }
.st-intervalle .zero { stroke: currentColor; stroke-width: 2; stroke-opacity: .6; }
.st-intervalle .intervalle { fill: currentColor; fill-opacity: .45; }
.st-intervalle .estimation { fill: currentColor; }
.st-barre { display: block; inline-size: 100%; block-size: 14px; }
.st-barre .piste { fill: currentColor; fill-opacity: .14; }
.st-barre .valeur { fill: currentColor; fill-opacity: .8; }

/* ---------- Réseau de passes ---------- */
.st-reseau { display: block; inline-size: 100%; max-inline-size: 620px; block-size: auto; margin: 4px auto 8px; }
.st-terrain { fill: none; stroke: currentColor; stroke-opacity: .35; stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
.st-passe { stroke: currentColor; stroke-linecap: round; }
.st-fleche { fill: currentColor; }
.st-noeud circle { fill: Canvas; stroke: currentColor; stroke-width: 2; }
.st-noeud text { fill: currentColor; font-family: var(--st-texte); font-weight: 800; font-size: 15px; text-anchor: middle; }
.st-compte circle { fill: Canvas; stroke: currentColor; stroke-width: 2; }
.st-compte text { fill: currentColor; font-family: var(--st-texte); font-weight: 800; font-size: 13px; text-anchor: middle; }
.st-equivalent { margin: 8px 0 0; }
.st-equivalent summary { cursor: pointer; font-weight: 750; min-block-size: 32px; }

/* ---------- Duos ---------- */
.st-sous { margin: 16px 0 8px; font-size: .82rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.st-duos { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.st-duo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 14px; }
.st-duo-paire { display: flex; align-items: center; gap: 6px; font-weight: 800; line-height: 1; }
.st-duo-paire span { display: inline-grid; place-items: center; min-block-size: 36px; padding: 0 10px; }
.st-duo-paire i { font-style: normal; font-size: .9rem; }
.st-duo-txt { font-size: .88rem; line-height: 1.35; }
.st-duo-txt .st-peu { margin-left: 6px; }
.st-duo-v { font-family: var(--st-police); font-stretch: condensed; font-weight: 800; font-size: 2rem; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.st-duo-v small { display: block; font-family: var(--st-texte); font-stretch: normal; font-size: .74rem; font-weight: 700; }

/* ---------- Temps de jeu de chacun, à vérifier, chronologie ---------- */
.st-temps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-temps li { display: grid; grid-template-columns: minmax(6em, 9em) minmax(0, 1fr) 4.2em; gap: 10px; align-items: center; }
.st-temps .qui { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-temps .val { font-family: var(--st-police); font-stretch: condensed; font-weight: 800; font-size: 1.2rem; text-align: right; font-variant-numeric: tabular-nums; }
.st-verifier { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-verifier li { padding: 10px 12px; line-height: 1.4; }
.st-chrono summary { cursor: pointer; font-weight: 750; min-block-size: 36px; }
.st-chrono ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; max-block-size: 60vh; overflow-y: auto; }
.st-chrono li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 10px; font-size: .9rem; }
.st-chrono li.annule .quoi { text-decoration: line-through; }
.st-chrono .h { font-weight: 800; font-variant-numeric: tabular-nums; }
.st-chrono .btn { margin: 0; }

/* ---------- Ballons perdus et récupérés (5.6) ---------- */
.st-ballons { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 0; }

/* ---------- Adversaire : qui nous a fait mal, numéros, séries, défense ---------- */
.st-mal { display: grid; gap: 14px; margin: 0 0 var(--st-ecart); }
.st-mal > .st-section { margin-top: 0; }
.st-mal > .st-seul { justify-self: start; }
.st-pct { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 14px; margin: 0; }
.st-pct b { white-space: nowrap; font-family: var(--st-police); font-stretch: condensed; font-weight: 800; font-size: clamp(4rem, 2.6rem + 5vw, 8.5rem); line-height: .8; font-variant-numeric: tabular-nums lining-nums; }
.st-pct span { font-family: var(--st-police); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: 1.2rem; line-height: 1.05; padding-bottom: .3em; max-inline-size: 18em; }
.st-danger { list-style: none; margin: 0 0 var(--st-ecart); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.st-dangereux { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-items: center; padding: 18px 20px; }
.st-dangereux > .meta { grid-column: 2; margin: 0; }
.st-dangereux-txt { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.st-dangereux-txt b { font-weight: 850; }
.st-maillot { display: inline-grid; place-items: center; min-inline-size: 48px; block-size: 48px; padding: 0 6px; font-family: var(--st-police); font-stretch: condensed; font-weight: 800; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; position: relative; }
.st-maillot.grand { min-inline-size: 88px; block-size: 88px; font-size: 3.3rem; grid-row: span 2; }
.st-maillot.non-vu { font-family: var(--st-texte); font-stretch: normal; font-size: .82rem; font-weight: 800; padding: 0 10px; }
.st-adv td.part { min-inline-size: 9em; }
.st-adv td.part span { display: block; margin-bottom: 4px; font-weight: 750; }
.st-adv td { font-weight: 750; }
.st-cle { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 12px; padding: 0; list-style: none; font-size: .86rem; font-weight: 650; }
.st-cle li { display: flex; align-items: center; gap: 8px; }
.st-cle i { display: inline-block; inline-size: 22px; block-size: 14px; }
.st-cle i.trait { block-size: 3px; }
.se-svg { display: block; inline-size: 100%; block-size: auto; margin: 4px 0 10px; }
.se-svg.petit { display: none; }
.se-grille { stroke: currentColor; stroke-opacity: .25; stroke-width: 1.5; stroke-dasharray: 2 6; }
.se-qt { stroke: currentColor; stroke-opacity: .45; stroke-width: 1.5; stroke-dasharray: 6 6; }
.se-zero { stroke: currentColor; stroke-width: 2; }
.se-axe { fill: currentColor; font-family: var(--st-texte); font-size: 13px; font-weight: 650; }
.se-axe.fort { font-weight: 850; }
.se-nous { fill: currentColor; fill-opacity: .22; }
.se-eux { fill: currentColor; fill-opacity: .1; }
.se-courbe { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.se-bande { fill: currentColor; fill-opacity: .07; }
.se-tag circle { fill: currentColor; }
.se-tag text { fill: Canvas; font-family: var(--st-texte); font-size: 14px; font-weight: 850; text-anchor: middle; }
.se-fin { fill: currentColor; }
.st-series { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.st-serie { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.st-serie-tete { display: flex; align-items: center; gap: 10px; }
.st-serie-tete .no { display: inline-grid; place-items: center; flex: none; inline-size: 30px; block-size: 30px; font-weight: 850; }
.st-serie-tete b { font-family: var(--st-police); font-stretch: condensed; font-weight: 800; font-size: 1.7rem; line-height: 1; }
.st-serie p { margin: 0; font-size: .88rem; line-height: 1.4; }
.st-serie .qui { font-size: .74rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.st-cinqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-cinqs > li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.st-cinqs .part { font-weight: 850; font-variant-numeric: tabular-nums; }
.st-frise { display: flex; gap: 3px; margin: 6px 0 14px; padding: 0; list-style: none; }
.st-frise li { flex: 0 1 var(--st-l, 10%); min-inline-size: 3.2em; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-block-size: 60px; padding: 8px 10px; font-size: .8rem; font-weight: 800; line-height: 1.15; overflow: hidden; }
.st-frise li small { font-weight: 650; font-size: .74rem; }
.st-defenses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.st-defense { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.st-defense h3 { margin: 0; font-size: .98rem; font-weight: 800; line-height: 1.3; }
.st-defense p { margin: 0; font-size: .88rem; line-height: 1.4; }

/* ---------- Direct : grandes tuiles lisibles depuis le banc ---------- */
.st-tableau { margin: 0 0 var(--st-ecart); padding: 18px 20px; }
.st-tableau-sur { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 8px; font-weight: 700; }
.st-direct { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.st-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 6px; margin: 0; max-inline-size: 640px; }
.st-equipe { display: flex; flex-direction: column; gap: 2px; }
.st-equipe.adv { align-items: flex-end; text-align: right; }
.st-equipe span { font-family: var(--st-police); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: 1.1rem; line-height: 1.05; }
.st-equipe b { font-family: var(--st-police); font-stretch: condensed; font-weight: 800; font-size: clamp(4.6rem, 3rem + 5vw, 8rem); line-height: .82; font-variant-numeric: tabular-nums lining-nums; }
.st-tiret { font-family: var(--st-police); font-weight: 800; font-size: 3.4rem; line-height: 1; padding-bottom: .32em; }
.st-periode { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; margin: 12px 0 0; padding: 10px 14px; font-weight: 700; }
.st-periode b { font-family: var(--st-police); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: 1.3rem; line-height: 1; }
.st-direct-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--st-ecart); margin: 0 0 var(--st-ecart); }
.st-gros { padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.st-gros h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.st-gros p { margin: 0; font-size: 1rem; line-height: 1.4; }
.st-gros p b { font-family: var(--st-police); font-stretch: condensed; font-weight: 800; font-size: 2rem; margin-right: 6px; }
.st-gros .st-nombre b { font-size: clamp(3.4rem, 2.4rem + 3vw, 5.6rem); margin: 0; }
.st-tuiles-num { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.st-tuiles-num li { display: grid; justify-items: start; gap: 6px; padding: 12px; min-block-size: 72px; }
.st-tuiles-num li b { font-size: 1.05rem; font-weight: 850; }
.st-tuiles-num li .qui { font-weight: 800; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; max-inline-size: 100%; white-space: nowrap; }

/* ---------- Match retour ---------- */
.st-compare th[scope="row"] { font-weight: 750; }
.st-compare td { font-family: var(--st-police); font-stretch: condensed; font-weight: 800; font-size: 1.3rem; }

/* ---------- Saison, qui saisit quoi, accords, réglages ---------- */
.st-filtre { margin: 0 0 var(--st-ecart); padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.st-filtre legend { font-weight: 800; padding: 0 4px; }
.st-filtre .row { flex-basis: 100%; }
#stats .st-case { display: inline-flex; align-items: center; gap: 8px; min-block-size: 40px; font-weight: 650; cursor: pointer; }
.st-case input { inline-size: 22px; block-size: 22px; margin: 0; flex: none; }
.st-case small { font-weight: 600; }
.st-activer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; }
.st-activer > h2 { margin: 0; }
.st-activer > p, .st-activer > .st-seul { grid-column: 1 / -1; margin: 0; justify-self: start; }
#stats .st-interrupteur { box-sizing: border-box; display: inline-grid; place-items: center; min-inline-size: 76px; min-block-size: 44px; margin: 0; padding: 0 14px; font-weight: 850; }
.st-personnes { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.st-personne { padding: 14px; }
.st-personne-tete { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: center; margin: 0 0 10px; }
.st-avatar { inline-size: 44px; block-size: 44px; display: grid; place-items: center; font-family: var(--st-police); font-stretch: condensed; font-weight: 800; font-size: 1.35rem; }
.st-personne-tete b { display: block; font-family: var(--st-police); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: 1.3rem; line-height: 1.05; overflow-wrap: anywhere; }
.st-personne-tete small { display: block; font-size: .8rem; font-weight: 650; margin-top: 2px; }
.st-personne-tete .btn { margin: 0; grid-column: 1 / -1; justify-self: start; }
.st-pastilles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.st-tache { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; font-size: .86rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.st-cases { margin: 10px 0; padding: 10px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; }
.st-cases legend { font-weight: 800; padding: 0 4px; }
.st-invitations { display: grid; gap: 10px; margin-top: 12px; }
.st-invitations > p { margin: 0; }
.st-couverture { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.st-couverture li { display: grid; gap: 6px; padding: 10px 12px; }
.st-couverture select { inline-size: 100%; }
.st-num-resume { font-weight: 750; }
.st-pave summary { cursor: pointer; font-weight: 750; min-block-size: 40px; }
.st-pave-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; margin: 10px 0; }
#stats .st-num { box-sizing: border-box; display: grid; place-items: center; min-block-size: 48px; margin: 0; padding: 4px; font-weight: 800; font-variant-numeric: tabular-nums; }
#stats .st-num[aria-pressed="true"]::before { display: none; }
.st-accords { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.st-accords li { display: grid; grid-template-columns: minmax(7em, 14em) minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; min-block-size: 44px; padding: 10px 14px; }
.st-accords .btn { margin: 0; }
.st-reponse { font-weight: 700; }
.st-reglage { margin: 0 0 10px; }
.st-reglage > label:not(.st-case) { display: block; font-weight: 700; margin-bottom: 4px; }
.st-reglage .meta { margin: 2px 0 0 30px; }
.st-reglages-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 18px; }
.st-unite { display: inline-flex; align-items: center; gap: 6px; }
.st-unite input { inline-size: 6em; }
#stats form .st-titre { margin-top: 14px; }
#stats .st-carte > label[for] { display: block; margin: 10px 0 4px; font-weight: 700; }
#stats .st-carte > input:not([type]), #stats .st-carte > select { display: block; inline-size: min(100%, 26em); box-sizing: border-box; min-block-size: 44px; padding: 8px 12px; font: inherit; }

/* ---------- Fiche « Son match en chiffres » ---------- */
.st-fiche { margin: 0 0 var(--st-ecart); }
.st-accord .row { margin-top: 6px; }
.st-accord-suite p { margin: 10px 0 4px; }

/* ---------- Largeurs moyennes et téléphone ---------- */
@media (max-width: 1180px) {
  .st-deux { grid-template-columns: minmax(0, 1fr); }
  .st-danger { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  #stats .st-tete { grid-template-columns: minmax(0, 1fr); }
  #stats .st-tete-droite { grid-column: 1; grid-row: auto; align-items: flex-start; text-align: left; margin-top: 18px; }
  .st-geant { grid-template-columns: auto auto 1fr; }
  .st-rubriques { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .st-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .st-chiffre { padding: 14px 14px 16px; }
  .st-chiffre:first-child { grid-column: 1 / -1; }
  .st-geant b { font-size: 5rem; }
  #stats .st-carte { padding: 18px 16px; }
  .st-compo { padding: 14px; }
  .st-duo { grid-template-columns: minmax(0, 1fr) auto; }
  .st-duo-paire { grid-column: 1 / -1; }
  .se-svg.grand { display: none; }
  .se-svg.petit { display: block; }
  .st-noeud text { font-size: 19px; }
  .st-temps li { grid-template-columns: minmax(5em, 7em) minmax(0, 1fr) 3.8em; }
  .st-accords li { grid-template-columns: minmax(0, 1fr) auto; }
  .st-accords li .btn { grid-column: 1 / -1; justify-self: start; }
  .st-dangereux { padding: 14px; }
  .st-maillot.grand { min-inline-size: 70px; block-size: 70px; font-size: 2.6rem; }
  .st-frise { flex-direction: column; }
  .st-frise li { flex: none; min-block-size: 44px; flex-direction: row; justify-content: space-between; align-items: center; }
  .st-chrono li { grid-template-columns: minmax(0, 1fr) auto; }
  .st-chrono .h { grid-column: 1 / -1; }
}
@media print {
  .st-nav, .st-autre-match, .st-chrono, .st-pave { display: none; }
}
/* TEM-STATS fin */
