/*
 * Tous au Match – « Statistiques du match », onglet Vidéo : mise en page des repères vidéo (lot K-STATS-3, agent B1).
 * © 2026 Ghislain DEMONDA – Tous droits réservés.
 *
 * Cascade : socle public/assets/tem.css, thème actif /theme.css, stats.css, puis cette feuille.
 * Mise en page seule, comme stats.css : ni couleur, ni fond, ni coin, ni bordure, ni ombre, ni contour. Teintes,
 * coins et aplats du design Mosaïque : fragment TEM-STATS3 de theme-mosaique.css (rapport RAPPORT_K-STATS-3-B1,
 * fichier .claude/stats-travail/w3-b1/fragment-video.css). Dans les autres designs, l habit sobre du socle (.card,
 * .btn) ; l état choisi s y lit par le gras et le soulignement, toujours doublé d un mot (« En lecture »).
 */
/* TEM-STATS3 début */
#stats .sv-tete { margin-top: 0; }
.sv-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--st-ecart, 20px); align-items: start; }
.sv-grille > .st-carte { margin: 0; }
#stats .sv-liste > h3, #stats .sv-lecteur > h3 { margin: 0 0 12px; }

/* ---------- Lecteur : collé en haut de l écran sur ordinateur, en tête sur téléphone ---------- */
.sv-lecteur { position: sticky; top: 16px; display: grid; gap: 12px; min-inline-size: 0; }
.sv-choix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sv-choisir { position: relative; display: inline-flex; align-items: center; justify-content: center; min-block-size: 48px; margin: 0; cursor: pointer; }
.sv-choisir:focus-within .sv-choisir-mot { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sv-fichier-entree { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; font-size: 0; }
.sv-fichier { font-size: .86rem; font-weight: 700; }
#stats .sv-aide { margin: 0; }
.sv-ecran { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; }
.sv-ecran:has(> .sv-ecran-vide:not([hidden])) { aspect-ratio: auto; min-block-size: 200px; }
.sv-video { display: block; inline-size: 100%; block-size: 100%; object-fit: contain; }
.sv-ecran-vide { display: grid; justify-items: center; gap: 12px; padding: 16px; text-align: center; }
.sv-ecran-mot { font-weight: 750; font-size: .95rem; }
.sv-ecran-sous { font-size: .86rem; font-weight: 600; }
.sv-lire { display: block; inline-size: 72px; block-size: 72px; }
#stats .sv-moment { justify-self: start; margin: 0; padding: 4px 0; font-size: .86rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Frise : avancée de la lecture et repères placés au temps de la vidéo (décoratif, la liste reste la référence) */
.sv-frise { margin: 4px 4px 0; }
.sv-frise-svg { display: block; inline-size: 100%; block-size: 26px; overflow: visible; }
.sv-frise-lib { display: flex; justify-content: space-between; margin: 0 4px; font-size: .78rem; font-weight: 700; }
.sv-commandes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sv-commandes .btn { margin: 0; min-block-size: 48px; }
.sv-statut { margin: 0; min-block-size: 1.4em; font-weight: 650; line-height: 1.4; }
.sv-statut:empty { display: none; }

/* Mention : la vidéo reste sur le téléphone */
.sv-telephone { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; margin: 0; padding: 14px 16px; font-size: .9rem; line-height: 1.45; }
.sv-tel-icone { display: block; inline-size: 22px; block-size: 34px; }

/* Calage */
.sv-calage { display: grid; gap: 10px; padding-block-start: 4px; }
.sv-calage[open] { display: grid; }
.sv-calage-titre { min-block-size: 44px; display: flex; align-items: center; gap: 10px; font-weight: 800; cursor: pointer; list-style: none; }
.sv-calage-titre::-webkit-details-marker { display: none; }
.sv-calage-titre::before { content: "+"; display: inline-grid; place-items: center; inline-size: 1.4em; block-size: 1.4em; font-size: 1.1rem; line-height: 1; }
.sv-calage[open] > .sv-calage-titre::before { content: "−"; }
.sv-calage[open] > .sv-calage-titre { margin-block-end: 2px; }
.sv-calage p { margin: 0; line-height: 1.45; }
.sv-calage-aide { font-size: .92rem; }
.sv-calage-etat { font-weight: 700; }
.sv-calage-ligne { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; }
.sv-calage-ligne .btn { margin: 0; min-block-size: 44px; }
.sv-champ { display: grid; gap: 4px; flex: 1 1 220px; min-inline-size: 0; font-weight: 650; font-size: .9rem; }
.sv-champ select, .sv-selects select { inline-size: 100%; min-block-size: 44px; box-sizing: border-box; }
#stats .sv-coupure { font-size: .84rem; }
.sv-oublier { justify-self: start; margin: 0; }

/* ---------- Liste des actions ---------- */
.sv-filtres { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; }
.sv-filtres li { margin: 0; }
#stats .sv-filtre { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: .4em; white-space: nowrap; margin: 0; min-block-size: 40px; min-inline-size: 44px; padding: 0 13px; font-size: .9rem; font-weight: 750; }
#stats .sv-filtre[aria-pressed="true"] { font-weight: 850; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.sv-selects { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin: 0 0 12px; }
.sv-selects:empty { display: none; }
.sv-enchainer { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.sv-enchainer .btn { margin: 0; min-block-size: 44px; }
.sv-reperes { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.sv-reperes li { margin: 0; }
#stats .sv-repere { box-sizing: border-box; display: grid; grid-template-columns: 5.4em minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; inline-size: 100%; min-block-size: 56px; margin: 0; padding: 10px 18px; text-align: left; white-space: normal; font-weight: 600; }
#stats .sv-repere[aria-current="true"] { text-decoration: none; }
#stats .sv-repere[aria-current="true"] .sv-aller { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sv-h { font-family: var(--st-police, inherit); font-stretch: condensed; font-weight: 800; font-size: 1.4rem; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.sv-h small { display: block; margin-top: 3px; font-family: var(--st-texte, inherit); font-stretch: normal; font-size: .74rem; font-weight: 750; }
.sv-quoi { font-weight: 750; font-size: .92rem; line-height: 1.3; min-inline-size: 0; overflow-wrap: anywhere; }
.sv-quoi small { display: block; margin-top: 3px; font-weight: 600; font-size: .8rem; }
.sv-type { display: inline-block; inline-size: 10px; block-size: 10px; margin-right: 7px; vertical-align: .05em; }
.sv-aller { padding: 5px 11px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
#stats .sv-periode .sv-quoi { font-weight: 650; }
#stats .sv-repere[data-hors="oui"] .sv-aller { font-weight: 650; }
.sv-vide { padding: 8px 2px; line-height: 1.45; }
#stats .sv-pied-liste { margin: 10px 2px 0; }
#stats .sv-pied-liste:empty { display: none; }
.sv-option .sv-neutre { margin: 0; font-weight: 650; line-height: 1.5; }

/* Ordinateur : la liste défile dans sa carte, le lecteur reste visible à côté */
@media (min-width: 861px) {
  .sv-reperes { max-block-size: min(72vh, 760px); overflow-y: auto; overscroll-behavior: contain; padding-inline-end: 6px; scrollbar-width: thin; }
}

/* ---------- Téléphone : le lecteur passe en tête, la liste dessous ---------- */
@media (max-width: 860px) {
  .sv-grille { grid-template-columns: minmax(0, 1fr); }
  .sv-lecteur { position: static; order: -1; }
}
@media (max-width: 520px) {
  #stats .sv-repere { grid-template-columns: 4.4em minmax(0, 1fr); padding: 10px 12px; }
  #stats .sv-repere .sv-aller { grid-column: 2; justify-self: start; }
  .sv-commandes .btn { flex: 1 1 40%; padding-inline: 10px; white-space: nowrap; }
  .sv-commandes .btn:nth-child(2) { order: -1; flex-basis: 100%; }
  #stats .sv-filtre { min-block-size: 38px; padding: 0 10px; font-size: .86rem; }
  .sv-telephone { padding: 12px 14px; }
}
/* TEM-STATS3 fin */
