/*
 * Tous au Match – « Analyse avancée », vague 2 : carte des tirs adverses et duels défensifs, écran de l entraîneur
 * (lot K-STATS-2, agent A3). © 2026 Ghislain DEMONDA – Tous droits réservés.
 *
 * Cascade : socle public/assets/tem.css, thème actif /theme.css, stats.css, puis cette feuille.
 * Comme stats.css, cette feuille ne porte que la mise en page : ni couleur, ni fond, ni coin, ni bordure, ni ombre,
 * ni contour. Les dessins SVG prennent la couleur du texte (currentColor) avec une opacité par niveau, lisibles dans
 * tous les designs et toujours doublés d un nombre écrit et d un tableau. Teintes du design Mosaïque (pêche pour les
 * tirs, orchidée pour les duels, color-mix par niveau) : ancre TEM-STATS2 de theme-mosaique.css (fragment
 * .claude/stats-travail/w2-a3/fragment-analyse.css).
 */
/* TEM-STATS2 début */
.ta-analyse { display: block; margin: 0 0 var(--st-ecart, 16px); }
.ta-analyse[aria-busy="true"] .ta-zone-duels:empty { display: none; }
.ta-deux { align-items: stretch; }
.ta-deux > .st-carte { display: flex; flex-direction: column; gap: 10px; }
.ta-num { margin-right: .25em; font-variant-numeric: tabular-nums; }
.ta-deux.ta-seul { grid-template-columns: minmax(0, 1fr); }
.ta-resume { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 16px; margin: 0 0 var(--st-ecart, 16px); }
.ta-resume b { font-family: var(--st-police, inherit); font-stretch: condensed; font-weight: 800; font-size: clamp(3.6rem, 2.4rem + 4vw, 6.5rem); line-height: .8; font-variant-numeric: tabular-nums lining-nums; }
.ta-resume span { font-family: var(--st-police, inherit); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: 1.1rem; line-height: 1.1; max-inline-size: 30em; padding-bottom: .2em; }

/* Choix des matchs et du numéro */
.ta-portees { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ta-filtres { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
html:root[data-style] #stats .ta-filtre { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 48px; min-block-size: 44px; margin: 0; padding: 0 14px; font-weight: 800; font-size: .92rem; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
html:root[data-style] #stats .ta-filtre[aria-pressed="true"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
html:root[data-style] #stats .ta-filtre[aria-pressed="true"]::before { content: none; }

/* Demi-terrain : lignes, cases de chaleur, tirs, valeurs écrites */
.ta-svg { display: block; inline-size: 100%; block-size: auto; max-inline-size: 620px; margin: 0 auto; }
.ta-sol { fill: transparent; }
.ta-ligne { fill: none; stroke: currentColor; stroke-opacity: .55; stroke-width: 4; }
.ta-ligne.ta-planche { stroke-width: 8; stroke-opacity: 1; }
.ta-ligne.ta-cercle { stroke-width: 5; stroke-opacity: 1; }
.ta-case { fill: currentColor; fill-opacity: 0; stroke: none; }
.ta-case[data-niveau="1"] { fill-opacity: .1; }
.ta-case[data-niveau="2"] { fill-opacity: .22; }
.ta-case[data-niveau="3"] { fill-opacity: .38; }
.ta-case[data-niveau="4"] { fill-opacity: .56; }
.ta-ok { fill: currentColor; stroke: Canvas; stroke-width: 4; }
.ta-ko { fill: Canvas; stroke: currentColor; stroke-width: 5; }
.ta-valeur { fill: currentColor; stroke: Canvas; stroke-width: 9; stroke-linejoin: round; paint-order: stroke; font-family: var(--st-police, inherit); font-stretch: condensed; font-weight: 800; font-size: 50px; text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
.ta-valeur.etroite { font-size: 34px; }

/* Légende, total, familles de zones, tableau */
.ta-echelle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 4px 0 0; padding: 10px 14px; font-size: .84rem; font-weight: 700; line-height: 1.3; }
.ta-gamme { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ta-carre { inline-size: 26px; block-size: 14px; flex: none; }
.ta-carre .ta-case[data-niveau] { stroke: currentColor; stroke-opacity: .35; stroke-width: 1; }
.ta-point { inline-size: 16px; block-size: 16px; flex: none; }
.ta-point .ta-ok { stroke-width: 1.5; }
.ta-point .ta-ko { stroke-width: 2.5; }
.ta-cle-case { flex-basis: 100%; font-weight: 650; }
.ta-total { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 14px; margin: 0; }
.ta-total b { font-family: var(--st-police, inherit); font-stretch: condensed; font-weight: 800; font-size: clamp(4rem, 2.8rem + 4vw, 7.5rem); line-height: .8; font-variant-numeric: tabular-nums lining-nums; }
.ta-total span { font-family: var(--st-police, inherit); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: 1.15rem; line-height: 1.08; padding-bottom: .2em; }
.ta-zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ta-zones li { padding: 12px 14px; font-size: .84rem; font-weight: 650; line-height: 1.3; }
.ta-zones b { display: block; font-family: var(--st-police, inherit); font-stretch: condensed; font-weight: 800; font-size: 1.9rem; line-height: 1; }
.ta-zones .z { display: block; font-weight: 850; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.ta-defile { max-inline-size: 100%; overflow-x: auto; }
.ta-table { inline-size: 100%; margin: 0; font-variant-numeric: tabular-nums; }
.ta-table caption { text-align: left; font-weight: 800; padding: 0 0 6px; }
.ta-table th[scope="row"] { text-align: left; font-weight: 750; }
.ta-table td { text-align: right; font-family: var(--st-police, inherit); font-stretch: condensed; font-weight: 800; font-size: 1.15rem; white-space: nowrap; }

/* Duels défensifs : une carte par numéro adverse */
.ta-duels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--st-ecart, 16px); margin: 0 0 var(--st-ecart, 16px); align-items: start; }
.ta-face { display: flex; flex-direction: column; gap: 12px; padding: 20px; min-inline-size: 0; }
.ta-face-tete { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center; }
.ta-face-tete .st-maillot.grand { grid-row: auto; }
.ta-face-tete h3 { margin: 0; font-family: var(--st-police, inherit); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: 1; }
.ta-face-tete p { margin: 4px 0 0; font-size: .88rem; line-height: 1.35; }
.ta-def { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ta-def li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 14px; }
.ta-def .qui { font-weight: 850; font-size: 1rem; min-inline-size: 0; overflow-wrap: anywhere; }
.ta-def .qui small { display: block; font-weight: 650; font-size: .82rem; margin-top: 2px; }
.ta-def .qui .ta-pour10 { font-weight: 700; }
.ta-def .ta-peu { margin: 6px 0 0; }
.ta-def .v { font-family: var(--st-police, inherit); font-stretch: condensed; font-weight: 800; font-size: 2rem; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.ta-def .v small { display: block; font-family: var(--st-texte, inherit); font-stretch: normal; font-size: .76rem; font-weight: 700; }
.ta-piste { grid-column: 1 / -1; display: block; inline-size: 100%; block-size: 12px; }
.ta-piste .fond { fill: currentColor; fill-opacity: .12; }
.ta-piste .valeur { fill: currentColor; fill-opacity: .85; }
.ta-piste.faible .valeur { fill-opacity: .4; }
.ta-idees { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ta-idees li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; font-size: .92rem; line-height: 1.45; }
.ta-idees li::before { content: "–"; flex: none; font-weight: 800; }
.ta-sans { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ta-sans li { display: flex; align-items: center; gap: 12px; font-weight: 700; line-height: 1.35; }
.ta-garde { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; margin: 4px 0 0; padding: 14px 16px; font-size: .9rem; line-height: 1.45; }
.ta-garde .st-seul { justify-self: start; }

/* Option absente : texte et dessin du demi-terrain */
.ta-option { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.ta-option-texte > :first-child { margin-top: 0; }
.ta-option-sur { display: inline-flex; margin: 0 0 8px; padding: 4px 12px; font-size: .8rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ta-option-texte p { line-height: 1.5; max-inline-size: 62ch; }
.ta-option-liste { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 6px; line-height: 1.45; font-weight: 650; }
.ta-option-dessin .ta-svg { max-inline-size: 360px; }
.ta-illustration .ta-ligne { stroke-opacity: .45; }

@media (max-width: 760px) {
  .ta-option { grid-template-columns: minmax(0, 1fr); }
  .ta-option-dessin { order: -1; }
  .ta-option-dessin .ta-svg { max-inline-size: 240px; }
  .ta-face { padding: 16px; }
  .ta-zones { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ta-zones li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; }
  .ta-zones .z { flex: 1 1 100%; margin: 0; }
  .ta-zones b { display: inline; font-size: 1.6rem; }
  html:root[data-style] #stats .ta-table :is(th, td) { padding: 8px 5px; }
  .ta-table thead th { font-size: .74rem; }
  .ta-table th[scope="row"] { font-size: .84rem; hyphens: manual; overflow-wrap: normal; }
  .ta-table td { font-size: 1.02rem; }
  .ta-face-tete .st-maillot.grand { min-inline-size: 64px; block-size: 64px; font-size: 2.4rem; }
  .ta-garde { grid-template-columns: minmax(0, 1fr); }
  .ta-valeur { font-size: 58px; }
  .ta-valeur.etroite { font-size: 38px; }
}
@media (forced-colors: active) {
  .ta-case[data-niveau]:not([data-niveau="0"]) { fill: Highlight; }
  .ta-ligne, .ta-ko { stroke: CanvasText; }
}
/* TEM-STATS2 fin */
