/* « Feuille de cote » : le style de l'app iPhone, repris par le site.
 *
 * Le 24 novembre 2026, Roms' a demandé que le site et l'app soient
 * identiques. L'app avait choisi cette direction le 20 novembre 2026
 * (ios-native/Novastar/Design/Court.swift) : la rigueur d'une page de
 * cotations boursières, en clair ET en sombre selon le réglage de l'appareil.
 *
 * Ce qui lui donne son caractère :
 * - des titres en romain (police à empattements), comme une page de journal ;
 * - des chiffres alignés en colonne, qui ne « dansent » pas quand ils changent ;
 * - des FILETS (traits fins entre les lignes, trait plein sous une rubrique)
 *   au lieu de cartes grises arrondies partout ;
 * - le violet comme seule couleur d'action ; le vert et le rouge réservés à
 *   ce qui monte et à ce qui baisse.
 *
 * Le court de tennis dessiné en fond (direction précédente) disparaît : l'app
 * l'a abandonné, la feuille de cote n'a besoin que du papier.
 *
 * Ce fichier est chargé EN DERNIER : il redéfinit les couleurs de tokens.css
 * et aplatit les panneaux de verre des autres feuilles, sans les réécrire.
 * Une règle propre aux nouveaux écrans (Matchs, fiche d'un match) vit ici
 * aussi : ils n'existent que dans ce style.
 */

:root {
  color-scheme: light dark;

  /* Les couleurs de l'app (Court.swift), une par rôle. */
  --paper:          #ffffff;   /* le fond : papier blanc */
  --card:           #ffffff;
  --card-2:         #ffffff;
  --card-haute:     #ffffff;
  --metal:          #f4f3f7;   /* « panneau » : champs, blocs à mettre à part */
  --metal-reflet:   #faf9fc;
  --info-soft:      #f4f3f7;
  --ink:            #111014;   /* l'encre */
  --ink-2:          #2d2a33;
  --muted:          #6b6775;   /* le texte secondaire : 5,4:1 sur blanc */
  --muted-2:        #6b6775;
  --muted-verre:    #6b6775;
  --muted-sur-metal: #625e6b;
  --line:           #e4e2ea;   /* le filet fin entre deux lignes */
  --line-strong:    #cfccd7;
  --filet-fort:     #111014;   /* le trait plein sous un titre de rubrique */
  --violet:         #7c3aed;
  --violet-dark:    #5b21b6;
  --lilac-soft:     #efe8fd;   /* « voile » : une sélection discrète */
  --lilac-softer:   #f7f3fe;
  --lilac-survol:   #e4d8fc;
  --up:             #0e8a4f;
  --up-texte:       #0e7a46;
  --up-soft:        #e6f3ec;
  --down:           #d2342b;
  --down-texte:     #c02f27;
  --down-soft:      #fbebea;
  --gold:           #b7791f;
  --gold-texte:     #8f5e12;
  --gridline:       #ece9f1;
  --baseline:       #c9c5d2;

  /* Plus de verre ni d'ombre portée : des surfaces pleines et des filets.
     Seules les fenêtres qui flottent (feuilles, menus) gardent une ombre. */
  --verre:          var(--card);
  --verre-liste:    var(--card);
  --verre-bord:     var(--line);
  --verre-flou:     none;
  --verre-arete:    0 0 0 transparent;
  --ombre:          none;
  --ombre-segment:  0 1px 2px rgba(17, 16, 20, .08);
  --ombre-flottante: 0 12px 40px rgba(17, 16, 20, .16), 0 2px 6px rgba(17, 16, 20, .06);

  /* Les titres en romain, comme l'app (police « New York » d'Apple, sinon
     les empattements du système). Les CHIFFRES restent en police système,
     avec des chiffres de même largeur : --police-titre servait aux deux. */
  --police-romain:  ui-serif, "New York", "Iowan Old Style", "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --police-titre:   var(--police-texte);

  /* La barre du haut et celle du bas : le papier, légèrement translucide. */
  --barre-fond:     rgba(255, 255, 255, .9);
}

/* La nuit : noir d'encre, comme l'app quand l'appareil est en mode sombre.
   Chaque teinte est réglée pour se lire sur ce fond (contraste AA). */
@media (prefers-color-scheme: dark) {
  :root {
    --paper:          #0c0b10;
    --card:           #0c0b10;
    --card-2:         #0c0b10;
    --card-haute:     #18171e;
    --metal:          #18171e;
    --metal-reflet:   #201f27;
    --info-soft:      #18171e;
    --ink:            #f2f1f6;
    --ink-2:          #dcdae3;
    --muted:          #9e9aa8;
    --muted-2:        #9e9aa8;
    --muted-verre:    #9e9aa8;
    --muted-sur-metal: #a7a3b1;
    --line:           #2a2832;
    --line-strong:    #3c3a46;
    --bord-champ:     #6f6b7a;
    --filet-fort:     #f2f1f6;
    --violet:         #9d6bff;
    --violet-dark:    #c4a4ff;
    --violet-survol:  #8b55f5;
    --lilac:          #6d4bb3;
    --lilac-soft:     #2a1f45;
    --lilac-softer:   #1d1730;
    --lilac-survol:   #352857;
    --up:             #3dd68c;
    --up-texte:       #3dd68c;
    --up-soft:        #10291c;
    --down:           #ff6e61;
    --down-texte:     #ff7a6e;
    --down-soft:      #33140f;
    --alerte:         #ff6e61;
    --alerte-soft:    #33140f;
    --gold:           #f2c94c;
    --gold-texte:     #f2c94c;
    --gold-bright:    #f2c94c;
    --gold-soft:      #2e250d;
    --gridline:       #24222b;
    --baseline:       #4a4754;
    --terre-doux:     #33200f;
    --gazon-doux:     #10261a;
    --dur-doux:       #0f1d30;
    --ombre-flottante: 0 12px 40px rgba(0, 0, 0, .55);
    --barre-fond:     rgba(12, 11, 16, .88);
    --cmp-1: #6ea0ff;
    --cmp-2: #ff8a4c;
    --cmp-3: #34c7b5;
    --cmp-4: #e879f9;
  }
}

/* --- Le papier --------------------------------------------------------- */

body { background: var(--paper); color: var(--ink); }
.court { display: none !important; }

/* Les panneaux de verre deviennent des surfaces pleines, sans flou ni ombre :
   sur un fond uni, le verre n'avait plus rien à laisser voir. */
.carte, .modale, .fiche, .menu-mobile, .verre, .carte-joueur, .match-jour,
.titre-page, .titre-section, .pied, .landing-texte, .explications .explication,
.vue.page-texte, .onglets, .vue > .barre-outils, .retour {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

/* Une « carte » n'est plus une boîte arrondie : un bloc posé sur le papier,
   séparé du précédent par un filet, comme les blocs de l'app (CarteSite). */
.carte {
  background: var(--card);
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

/* Les fenêtres qui flottent au-dessus de la page gardent leur forme et une
   ombre : elles doivent se détacher de ce qu'elles recouvrent. */
.modale, .menu-mobile, .fiche { background: var(--card-haute); box-shadow: var(--ombre-flottante); }
.modale, .menu-mobile { border: 1px solid var(--line); }

/* Les titres de page ne sont plus des panneaux : le titre en romain, posé
   directement sur le papier, et sa phrase d'explication en gris. */
.titre-page, .titre-section, .tete-ecran {
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
}
.titre-page, .tete-ecran { margin: 4px 0 22px; }
.titre-page h1, .tete-ecran h1 {
  font-family: var(--police-romain);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 6px;
  color: var(--ink);
}
.titre-page > p, .tete-ecran > p { color: var(--muted); margin: 0; font-size: var(--texte-14-5); max-width: 62ch; }

h1, h2, h3 { font-family: var(--police-romain); letter-spacing: 0; }
h1, h2, h3 { font-weight: 700; }
/* Le petit complément d'un titre reste du texte courant. */
h1 .sous, h2 .sous, h3 .sous, h2 small, h3 small { font-family: var(--police-texte); font-weight: 400; }

/* Les chiffres alignés en colonne, partout : un Elo ou un solde qui change
   ne fait plus bouger ses voisins. */
body { font-variant-numeric: tabular-nums; }

/* Le pied de page : du texte sur le papier, sous un filet. Ses titres de
   colonnes restent en police de texte : en romain, à 12 px, ils
   ressemblaient à une coquille. */
.pied { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0 0; }
.pied h2, .pied h3 { font-family: var(--police-texte); }

/* --- La barre du haut -------------------------------------------------- */

.topbar { background: var(--barre-fond); border-bottom-color: var(--line); }
.topbar.decollee { box-shadow: none; border-bottom-color: var(--line-strong); }
.capsule-compte { background: var(--card); border-color: var(--line-strong); box-shadow: none; }
/* Jouer et Analyser sont désormais dans la navigation : le sélecteur de
   mode faisait doublon. */
.bascule-mode { display: none !important; }
.nav-principale a[aria-current="page"] { color: var(--violet); }
/* Les trois onglets de l'app (Jouer, Analyser, Matchs) tiennent toujours
   dans la barre d'un ordinateur : ils ne passent plus dans le menu, qui
   joue le rôle de « Plus ». Avant, la barre portait jusqu'à sept liens et
   les cachait sous 1 600 px. */
@media (min-width: 761px) {
  .nav-principale,
  body[data-session] .nav-principale { display: flex; }
}

/* --- La barre du bas (téléphone) ---------------------------------------
 *
 * Comme l'app : quatre entrées (Jouer, Analyser, Matchs, Plus) dans une
 * capsule qui flotte au-dessus du bas de l'écran ; l'onglet ouvert est posé
 * sur une pastille grise, icône et libellé en violet. */
@media (max-width: 760px) {
  :root { --hauteur-onglets: 64px; }
  .barre-onglets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    left: calc(14px + var(--encoche-gauche));
    right: calc(14px + var(--encoche-droite));
    bottom: calc(8px + var(--encoche-bas));
    padding: 5px;
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--barre-fond);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 8px 30px rgba(17, 16, 20, .12);
  }
  .barre-onglets a, .barre-onglets button {
    min-height: 52px;
    border-radius: 999px;
    font-size: var(--texte-12);
    font-weight: 500;
    color: var(--ink);
  }
  .barre-onglets [aria-current="page"],
  .barre-onglets .onglet-plus.actif,
  .barre-onglets .onglet-plus[aria-expanded="true"] { color: var(--violet); background: var(--metal); }
  .coque { padding-bottom: calc(48px + var(--hauteur-onglets) + var(--encoche-bas)); }
}

/* --- Les rubriques des nouveaux écrans ---------------------------------- */

.tete-bloc { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.titre-bloc {
  font-family: var(--police-romain);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--ink);
}
.titre-bloc .compte { font-family: var(--police-texte); font-size: var(--texte-14); font-weight: 400; color: var(--muted); margin-left: 4px; }
.lien-fort { font-weight: 600; color: var(--violet); text-decoration: none; font-size: var(--texte-14); min-height: 44px; display: inline-flex; align-items: center; }
.lien-fort:hover { text-decoration: underline; }
.note-bloc { margin: 0 0 8px; color: var(--muted); font-size: var(--texte-12-5); line-height: 1.45; }
.vide-doux { margin: 6px 0; color: var(--muted); font-size: var(--texte-14); }
.doux { color: var(--muted); }

/* Le titre de rubrique de l'app (EnteteCourt) : petites capitales espacées,
   posées sur un trait plein. */
.entete-cote {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 12px; padding-bottom: 6px;
  border-bottom: 1.5px solid var(--filet-fort);
  font-family: var(--police-texte); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.entete-cote small { font-size: var(--texte-12); font-weight: 600; letter-spacing: .07em; color: var(--muted); }

.bloc-matchs { margin: 0 0 28px; }

/* Bloc Matchs de Jouer et de l'accueil : une part par circuit (ATP, puis
   WTA), chacune à la date de sa dernière journée. */
.part-circuit { margin: 4px 0 0; }
.part-circuit + .part-circuit { margin-top: 18px; }
.part-circuit .entete-cote { margin-bottom: 4px; }

/* --- La ligne de score (LignesMatch.swift) ------------------------------
 *
 * Esprit tableau de score : tournoi et tour en petit au-dessus, puis les deux
 * joueurs l'un sous l'autre, le vainqueur en gras, les manches alignées à
 * droite, le jeu décisif en exposant. */
.ligne-score, .ligne-avenir {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.ligne-score:hover .sc-nom { text-decoration: underline; text-decoration-color: var(--line-strong); }
/* Un match d'un de mes joueurs : un trait violet à gauche. */
.ligne-score.mien { padding-left: 12px; }
.ligne-score.mien::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px; border-radius: 3px; background: var(--violet);
}
.sc-tete { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--texte-12); color: var(--muted); }
.sc-tournoi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sc-gain { margin-left: auto; white-space: nowrap; }
.sc-surface { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.sc-surface.sc-hard { background: var(--dur); }
.sc-surface.sc-clay { background: var(--terre); }
.sc-surface.sc-grass { background: var(--gazon); }
.sc-surprise {
  flex: none; padding: 0 6px; border-radius: 999px;
  font-size: var(--texte-12); font-weight: 700; color: var(--gold-texte); background: color-mix(in srgb, var(--gold) 14%, transparent);
}
.sc-joueur, .fm-joueur, .sc-avenir-joueur {
  display: flex; align-items: baseline; gap: 6px; min-width: 0;
  font-size: var(--texte-14-5); color: var(--muted);
}
.sc-joueur.gagne, .fm-joueur.gagne { color: var(--ink); }
.sc-joueur.gagne .sc-nom, .fm-joueur.gagne .sc-nom { font-weight: 700; }
.sc-drapeau { flex: none; width: 24px; font-size: 15px; line-height: 1; }
.sc-drapeau.sc-code { font-size: var(--texte-12); font-weight: 600; color: var(--muted); }
.sc-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sc-rang, .sc-fin { flex: none; font-size: var(--texte-12); color: var(--muted); }
.sc-fin { font-weight: 600; }
.sc-jeux { margin-left: auto; display: flex; gap: 0; flex: none; }
.sc-manche { min-width: 18px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.sc-manche.super { min-width: 24px; }
.sc-manche.gagnee { color: var(--ink); font-weight: 700; }
.sc-manche sup { font-size: var(--texte-12); font-weight: 400; color: var(--muted); margin-left: 1px; line-height: 0; }
/* Une manche avec son jeu décisif (« 6⁴ ») prend plus de place : sans cette
   largeur, l'exposant venait toucher le chiffre de la manche précédente. */
.sc-manche:has(sup) { min-width: 30px; }

/* Un match à venir : les deux joueurs avec leur Elo, puis leurs chances. */
.sc-avenir-joueur { color: var(--ink); text-decoration: none; font-weight: 500; }
.sc-avenir-joueur .sc-elo { margin-left: auto; color: var(--muted); font-weight: 400; }
.sc-chances { margin-top: 4px; }
.sc-chances-barre { display: flex; gap: 2px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.sc-chances-barre span { background: var(--violet); border-radius: 3px; }
.sc-chances-texte { display: flex; justify-content: space-between; align-items: baseline; margin-top: 3px; font-size: var(--texte-12); color: var(--muted); }
.sc-chances-texte b { color: var(--ink); }

/* « Encore en lice » et la liste des tournois : une ligne qu'on touche. */
.ligne-enlice, .ligne-tournoi, .ligne-lien {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-top: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.ligne-enlice > span:not(.chevron):not(.sc-drapeau), .ligne-tournoi > span:not(.chevron):not(.sc-surface) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ligne-enlice small, .ligne-tournoi small { color: var(--muted); font-size: var(--texte-12-5); }
.ligne-tournoi .sc-surface { width: 8px; height: 8px; }
.chevron, .ligne-lien span { margin-left: auto; color: var(--muted); font-size: 20px; line-height: 1; }
.ligne-lien { font-weight: 600; padding: 14px 0; }
.ligne-enlice:hover b, .ligne-tournoi:hover b, .ligne-lien:hover { color: var(--violet); }

/* --- La fiche d'un match (FicheMatchView) ------------------------------- */

.retour-ecran {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--violet); font-weight: 600; text-decoration: none;
}
.vue[data-vue="match"] { max-width: 720px; }
.fm-tete h1 { font-family: var(--police-romain); font-size: 28px; font-weight: 700; margin: 4px 0 4px; line-height: 1.15; }
.fm-tour { margin: 0; font-weight: 500; }
.fm-details { margin: 2px 0 0; color: var(--muted); font-size: var(--texte-12-5); }
.fm-tableau { margin: 18px 0 14px; padding: 14px 0; border-top: 2px solid var(--filet-fort); border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.fm-joueur { font-size: 17px; text-decoration: none; }
.fm-joueur .sc-drapeau { width: 30px; font-size: 18px; }
.fm-joueur .sc-manche { min-width: 24px; font-size: 20px; }
.fm-joueur .sc-manche sup { font-size: var(--texte-12); }
/* Le nom ouvre la fiche du joueur : un chevron discret, et le nom souligné
   au survol (ordinateur). */
.fm-chevron { flex: none; color: var(--muted); font-size: 15px; line-height: 1; }
.fm-joueur:hover .sc-nom { text-decoration: underline; text-underline-offset: 3px; }
.fm-bloc { margin: 22px 0 0; }
.fm-bloc h2 { font-family: var(--police-texte); font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.fm-bloc p { margin: 0; }
.fm-elo-ligne { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; }
.fm-elo-ligne > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-elo-valeurs { color: var(--muted); }
.fm-elo-ligne b { min-width: 64px; text-align: right; }
.fm-elo-ligne b.up { color: var(--up-texte); }
.fm-elo-ligne b.down { color: var(--down-texte); }
.fm-chances { margin-top: 8px !important; }
.fm-stat-noms { display: flex; justify-content: space-between; gap: 12px; font-size: var(--texte-12); font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.fm-stat { margin: 0 0 14px; }
.fm-stat-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fm-stat-tete .fort { font-weight: 600; }
.fm-stat-tete small { color: var(--muted); font-size: var(--texte-12); text-align: center; }
.fm-stat-barres { display: flex; gap: 4px; margin-top: 5px; }
.fm-demi { flex: 1; display: flex; justify-content: flex-end; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.fm-demi.droite { justify-content: flex-start; }
.fm-demi > span { display: block; height: 100%; border-radius: 3px; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.fm-demi > span.forte { background: var(--violet); }

/* Sur ordinateur, l'écran Matchs garde la largeur d'une colonne de lecture :
   des scores étalés sur 1 200 px se lisent mal. */
@media (min-width: 761px) {
  .vue[data-vue="matchs"] { max-width: 760px; }
}

/* --- Les initiales d'un joueur (AvatarJoueur de l'app) -------------------
   Les initiales en chasse fixe dans un cadre fin, comme un code de
   cotation : plus de pastille de couleur au hasard, qui ne voulait rien
   dire. Seules les initiales d'un JOUEUR (elles portent une teinte t0 à t6)
   changent : le rond du compte, en haut, garde son violet. */
.avatar:is(.t0, .t1, .t2, .t3, .t4, .t5, .t6) {
  background: var(--metal); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600; letter-spacing: 0;
  border-radius: 22%;
}

/* --- Jouer (JouerView et EquipeView de l'app, 24 novembre 2026) ---------
   Un écran en une colonne : les blocs s'empilent avec le même écart, sans
   carte autour, séparés par des filets. */
.vue[data-vue="app-jouer"]:not([hidden]) { display: flex; flex-direction: column; gap: 26px; }
.vue[data-vue="app-jouer"] > * { margin: 0; }
#espace-etat:empty { display: none; }
@media (min-width: 761px) {
  .vue[data-vue="app-jouer"] { max-width: 760px; margin-inline: auto; }
}

/* La valeur de l'équipe : le surtitre sur son filet, le total en grand. */
.valeur-equipe { padding: 0; background: none; border: 0; box-shadow: none; }
.valeur-tete .grand {
  display: block; margin: 2px 0 4px;
  font-family: var(--police-romain); font-size: 44px; font-weight: 700; line-height: 1.1;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.valeur-tete .variation { font-size: var(--texte-14-5); font-weight: 400; }
.valeur-tete .var { font-weight: 700; }
.valeur-tete .meta { font-weight: 400; color: var(--muted); font-size: var(--texte-14-5); }
.valeur-equipe > .meta { display: block; margin-top: 8px; color: var(--muted); font-size: var(--texte-12-5); }

/* La courbe : une ligne de 3 px sur un dégradé de sa couleur, le point
   violet d'aujourd'hui posé au bout. */
.courbe-cadre { position: relative; height: 150px; margin: 16px 6px 14px 0; }
.courbe-cadre.up { --c-courbe: var(--up); }
.courbe-cadre.down { --c-courbe: var(--down); }
.courbe-cadre .courbe-equipe { display: block; width: 100%; height: 100%; margin: 0; overflow: visible; }
.courbe-cadre .courbe-equipe .trait {
  fill: none; stroke: var(--c-courbe); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.courbe-cadre .courbe-equipe .aire { opacity: 1; }
/* Sous la courbe de l'équipe : ce qu'elle compte (27 novembre 2026). */
.courbe-cadre.up .courbe-equipe .aire { fill: url(#degrade-equipe-up); }
.courbe-cadre.down .courbe-equipe .aire { fill: url(#degrade-equipe-down); }
.courbe-cadre .degrade-haut { stop-color: var(--c-courbe); stop-opacity: .22; }
.courbe-cadre .degrade-bas { stop-color: var(--c-courbe); stop-opacity: 0; }
.point-fin {
  position: absolute; right: -6px; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 3px var(--paper);
}
.valeur-equipe .courbe-attente { margin: 14px 0; color: var(--muted); font-size: var(--texte-14); }
.valeur-equipe .periodes-equipe { display: flex; width: 100%; margin: 0; max-width: none; }

/* Disponible, engagé, prochaine star : trois chiffres sous un filet. */
.valeur-equipe .sous-chiffres { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.valeur-equipe .sous-chiffres div { flex: 1 1 0; }
.valeur-equipe .sous-chiffres dt { font-size: var(--texte-14); color: var(--muted); }
.valeur-equipe .sous-chiffres dd { font-size: 17px; font-weight: 600; margin-top: 2px; }
.valeur-equipe .sous-chiffres dd a { color: var(--violet); }
.valeur-equipe .titre-bloc { font-size: 24px; }
.valeur-equipe .btn-principal.large { margin-top: 10px; min-height: 50px; border-radius: 12px; font-size: var(--texte-15); }

/* Mes joueurs : le titre en romain, le nombre en gris, « + Ajouter » à droite. */
#equipe-joueurs .tete-bloc { align-items: center; margin-bottom: 6px; }
#equipe-joueurs .titre-bloc { font-size: 24px; margin: 0; }
#equipe-joueurs .titre-bloc .compte { font-weight: 700; margin-left: 6px; }
#equipe-ajouter { border-radius: 8px; font-weight: 800; min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; }
#equipe-ajouter[hidden] { display: none; }

/* La ligne d'un joueur (LigneJoueurTR) : initiales, nom et sous-ligne grise,
   puis la valeur et sa variation à droite. Un filet sous chaque ligne. */
.lignes-joueurs { display: block; border-top: 1px solid var(--line); }
.ligne-joueur.ligne-tr {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer;
}
.lignes-joueurs > .ligne-tr:first-child { border-top: 0; }
.ligne-joueur.ligne-tr:hover { background: none; }
.ligne-joueur.ligne-tr:hover .tr-nom { color: var(--violet); }
.ligne-joueur.ligne-tr:active { background: var(--lilac-softer); }
.ligne-tr .avatar { width: 40px; height: 40px; margin: 0; align-self: center; font-size: 13.5px; }
.tr-centre { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tr-nom { font-weight: 600; font-size: var(--texte-15); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-sous { font-size: var(--texte-14); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-sous .pastille { margin-left: 6px; vertical-align: 0; }
.tr-droite { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.tr-valeur { font-weight: 600; font-size: var(--texte-15); white-space: nowrap; }
.tr-var { font-size: var(--texte-14); font-weight: 500; color: var(--muted); white-space: nowrap; }
.tr-var.up { color: var(--up-texte); }
.tr-var.down { color: var(--down-texte); }

/* Équipe encore vide : un cadre lilas en pointillés, ce qu'on peut faire. */
.bloc-equipe .equipe-vide {
  margin: 0; padding: 14px; text-align: left; border-radius: 14px;
  background: color-mix(in srgb, var(--lilac-soft) 60%, transparent);
  border: 1px dashed color-mix(in srgb, var(--violet) 35%, transparent);
}
.bloc-equipe .equipe-vide strong { font-size: var(--texte-15); }
.bloc-equipe .equipe-vide p { font-size: var(--texte-15); color: var(--ink); margin: 6px 0 12px; }
.bloc-equipe .equipe-vide .btn-principal { border-radius: 12px; min-height: 44px; font-size: var(--texte-15); }

/* Les ordres en attente. */
#equipe-ordres .ordres { margin: 0; }
#equipe-ordres .ordres h3 { font-family: var(--police-texte); font-size: 17px; font-weight: 600; margin: 0 0 6px; }

/* Le guide de départ garde son cadre : c'est une invitation, pas une liste. */
.vue[data-vue="app-jouer"] .guide-depart { border: 1px solid var(--line); border-radius: 14px; padding: 18px; }

/* Ce qui a bougé : un titre et des lignes, sans carte. */
.titre-bloc.petit { font-size: 20px; }
#jouer-bouge { padding: 0; }
#jouer-bouge .note-bloc:empty { display: none; }
#jouer-bouge .ligne-bouge { padding: 10px 0; }
#jouer-bouge .ligne-bouge .avatar { width: 36px; height: 36px; }

/* « Qui prendre ? » : un passage vers les joueurs en forme, entre deux
   traits pleins, le rond violet à gauche. */
.appel-qui-prendre {
  display: flex; align-items: center; gap: 14px; padding: 14px 0;
  border-top: 2px solid var(--filet-fort); border-bottom: 2px solid var(--filet-fort);
  color: var(--ink); text-decoration: none;
}
.appel-qui-prendre .rond {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--violet); color: var(--sur-aplat);
}
.appel-qui-prendre .texte { flex: 1 1 auto; min-width: 0; }
.appel-qui-prendre b { display: block; font-family: var(--police-romain); font-size: 20px; font-weight: 700; }
.appel-qui-prendre small { display: block; margin-top: 2px; color: var(--muted); font-size: var(--texte-14); }
.appel-qui-prendre .chevron { font-size: 26px; }
.appel-qui-prendre:hover b { color: var(--violet); }

/* Le bilan, replié, et les dernières opérations. */
details.bloc-equipe.performance { padding: 0; border: 0; background: none; box-shadow: none; }
details.bloc-equipe.performance > summary { font-size: 17px; font-weight: 600; min-height: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.bloc-equipe.performance[open] > summary { border-bottom: 0; }
details.bloc-equipe.performance > summary strong { margin-left: auto; font-size: 17px; }
details.bloc-equipe.performance .perf-sous { font-size: var(--texte-14); }
#equipe-operations { padding: 0; }
#equipe-operations .titre-bloc { margin-bottom: 4px; }
#equipe-operations .op-ligne { align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--texte-14); }
#equipe-operations .op-ligne time { color: var(--muted); font-size: var(--texte-14); margin-bottom: 2px; }
.montant-op { flex: none; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.montant-op .up, .montant-op.up { color: var(--up-texte); }
.montant-op .down, .montant-op.down { color: var(--down-texte); }
#equipe-operations .lien-bas { margin-top: 4px; padding: 0; border-top: 0; font-size: var(--texte-15); color: var(--violet); }
#jouer-bouge .titre-bloc, #equipe-operations .titre-bloc { font-size: 20px; margin: 0 0 4px; }
.valeur-equipe .courbe-attente { background: none; border: 0; padding: 0; }
.valeur-equipe .sous-chiffres dd:has(a) { white-space: normal; font-size: var(--texte-15); }

/* --- Analyser (AnalyserView et QuiPrendreView de l'app) -----------------
   Une colonne de lecture, une seule partie à la fois. */
@media (min-width: 761px) {
  .vue[data-vue="app-analyser"] { max-width: 760px; margin-inline: auto; }
}
.vue[data-vue="app-analyser"] .panneau-analyser:not(.actif) { display: none; }
.vue[data-vue="app-analyser"] .tete-ecran { margin-bottom: 14px; }
#analyser-sous-titre:empty { display: none; }

/* Les pastilles : des rubriques soulignées, comme en tête d'une page de
   cotations. Le trait vertical sépare la liste des deux outils. */
.pastilles-analyser {
  display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
  overflow-x: auto; scrollbar-width: none; position: static;
  background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.pastilles-analyser::-webkit-scrollbar { display: none; }
.pastilles-analyser button, .pastilles-analyser .lien-classement {
  flex: none; min-height: 40px; padding: 0 3px; border: 0; border-radius: 0; background: none;
  font: inherit; font-size: var(--texte-14-5); font-weight: 500; color: var(--muted);
  box-shadow: inset 0 -2.5px 0 transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 3px;
}
.pastilles-analyser button[aria-pressed="true"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2.5px 0 var(--violet); }
.pastilles-analyser button:hover, .pastilles-analyser .lien-classement:hover { color: var(--ink); }
.pastilles-analyser .trait { flex: none; width: 1.5px; height: 24px; background: var(--line); margin: 0 2px; }

/* Le joueur du moment : le nom et l'Elo en romain, la grande courbe. */
.qp-moment { display: grid; gap: 12px; margin-bottom: 22px; }
.qp-moment .entete-cote { margin: 0; }
.qp-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--ink); text-decoration: none; }
.qp-tete > span:first-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qp-nom { font-family: var(--police-romain); font-size: 24px; font-weight: 700; line-height: 1.15; }
.qp-tete small { color: var(--muted); font-size: var(--texte-14); }
.qp-chiffres { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.qp-elo { font-size: 32px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.qp-variation { font-size: var(--texte-14); font-weight: 700; color: var(--muted); white-space: nowrap; }
.qp-variation .up { color: var(--up-texte); }
.qp-variation .down { color: var(--down-texte); }
.qp-tete:hover .qp-nom { color: var(--violet); }
.qp-ajouter { margin-top: 4px; min-height: 50px; border-radius: 12px; font-size: var(--texte-15); }

/* La grande courbe (grande-courbe.js). */
.gc {
  --gc-c: var(--muted);
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-rows: var(--gc-h, 190px) 22px;
}
.gc.up { --gc-c: var(--up); }
.gc.down { --gc-c: var(--down); }
.gc-trace { position: relative; touch-action: pan-y; cursor: crosshair; }
.gc-trace svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gc-grille { stroke: var(--ink); stroke-opacity: .12; stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.gc-ligne { fill: none; stroke: var(--gc-c); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gc-haut { stop-color: var(--gc-c); stop-opacity: .28; }
.gc-bas { stop-color: var(--gc-c); stop-opacity: 0; }
.gc-point, .gc-vise {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--violet); box-shadow: 0 0 0 3px var(--paper); pointer-events: none;
}
.gc-vise { background: var(--ink); }
.gc-regle { position: absolute; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; background: var(--ink); opacity: .7; pointer-events: none; }
.gc-point[hidden], .gc-vise[hidden], .gc-regle[hidden] { display: none; }
/* Mes prises de position sur la courbe d'une fiche (27 novembre 2026) : un
   anneau violet, pour ne pas se confondre avec le point plein du dernier Elo,
   et « ▲ 100 ★ » au-dessus (au-dessous pour une baisse). */
.gc-prise {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--violet); box-sizing: border-box; pointer-events: none;
}
/* L'étiquette touche son anneau (revue UX du 28 novembre 2026) : posée juste
   au-dessus, sur un fond de papier, elle ne flotte plus entre deux marches. */
.gc-prise b {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  padding: 0 3px; border-radius: 4px; background: var(--paper); line-height: 1.25;
  font-size: var(--texte-12); font-weight: 700; color: var(--violet); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.gc-prise.dessous b { bottom: auto; top: 8px; }
.gc-prise.droite b { left: auto; right: -2px; transform: none; }
.gc-prise.gauche b { left: -2px; transform: none; }
.gc-y { position: relative; }
.gc-y span { position: absolute; left: 6px; transform: translateY(-50%); font-size: var(--texte-12); color: var(--muted); }
.gc-x { position: relative; grid-column: 1; }
.gc-x span { position: absolute; top: 5px; transform: translateX(-50%); font-size: var(--texte-12); color: var(--muted); white-space: nowrap; }
.gc-vide { display: grid; place-items: center; min-height: 190px; color: var(--muted); text-align: center; }
/* Les puces de période : une seule barre segmentée pour toutes les courbes
   (Jouer, fiche, Qui prendre ?), sur toute la largeur, six cases égales. */
.segmente.gc-periodes { display: flex; flex-wrap: nowrap; width: 100%; max-width: none; margin: 8px 0 0; }
.segmente.gc-periodes button { flex: 1 1 0; min-width: 0; padding: 7px 2px; white-space: nowrap; font-size: var(--texte-13); }

/* « Aussi en forme » : une ligne par joueur, la mini-courbe, la pastille de
   variation et le bouton violet. */
.qp-aussi .entete-cote { margin-bottom: 0; }
.qp-ligne { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.qp-aussi .entete-cote + .qp-ligne { border-top: 0; }
.qp-lien { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.qp-lien .avatar { width: 38px; height: 38px; font-size: 13px; }
.qp-texte { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qp-texte b { font-weight: 600; font-size: var(--texte-15); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qp-texte small { color: var(--muted); font-size: var(--texte-14); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qp-lien:hover .qp-texte b { color: var(--violet); }
.mini-courbe { flex: none; width: 44px; height: 24px; }
.mini-courbe path { fill: none; stroke: var(--up); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mini-courbe.down path { stroke: var(--down); }
.mini-courbe.vide line { stroke: var(--muted); stroke-opacity: .5; stroke-width: 1.5; stroke-dasharray: 3 3; }
.qp-pastille {
  flex: none; min-width: 46px; min-height: 28px; padding: 0 7px; border-radius: 999px;
  display: inline-grid; place-items: center; font-weight: 800; font-size: var(--texte-14); font-variant-numeric: tabular-nums;
  background: var(--muted); color: var(--paper);
}
.qp-pastille.up { background: var(--up); }
.qp-pastille.down { background: var(--down); }
.bouton-balle {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: none; padding: 0; cursor: pointer; color: var(--sur-aplat);
  font-size: 0;
}
.bouton-balle::before {
  content: "+"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px;
  background: var(--violet); color: var(--sur-aplat); font-size: 20px; font-weight: 700; line-height: 1;
}
.bouton-balle:hover::before { background: var(--violet-dark); }
.qp-explication { margin-top: 14px; color: var(--muted); }
.qp-explication > summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; font-weight: 600; font-size: var(--texte-13-5); }
.qp-explication p { margin: 6px 0; color: var(--ink); font-size: var(--texte-14); }
.qp-explication p.doux { color: var(--muted); }

/* Stats : un bloc sous son titre, sans carte. */
.vue[data-vue="app-analyser"] .bloc-stats { padding: 0; background: none; border: 0; box-shadow: none; }
.vue[data-vue="app-analyser"] .bloc-stats .bloc-tete h2 { font-family: var(--police-texte); font-size: 17px; font-weight: 600; margin: 0; }

/* Le bouton principal en romain gras, comme BoutonPrincipal de l'app : la
   seule action pleine d'un écran se lit comme un titre. */
.btn-principal { font-family: var(--police-romain); font-weight: 700; }
/* Sauf les petits boutons de la barre du haut, qui restent en texte. */
.btn-principal.petit { font-family: var(--police-texte); font-weight: 600; }

/* --- Stats (StatsPanneau de l'app) --------------------------------------
   Une barre de statistique : le libellé et le chiffre sur une ligne, la
   barre fine dessous, sur toute la largeur (BarreStat). */
.vue[data-vue="app-analyser"] .ligne-stat {
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lib val" "rail rail";
  gap: 4px 10px; padding: 7px 0; font-size: var(--texte-15);
}
.vue[data-vue="app-analyser"] .ligne-stat-lib { grid-area: lib; }
.vue[data-vue="app-analyser"] .ligne-stat-val { grid-area: val; }
.vue[data-vue="app-analyser"] .rail-stat { grid-area: rail; height: 5px; }
.vue[data-vue="app-analyser"] .stats-carte h3 { font-size: 19px; }

/* Le relevé niveau × surface : une ligne par niveau, un filet entre deux. */
.releve-stats { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 4px; }
.releve-stats thead th { padding: 0 0 6px; font-size: var(--texte-13); font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; }
.releve-stats thead th:first-child { width: 86px; }
.releve-stats tbody th { padding: 10px 6px 10px 0; text-align: left; font-weight: 400; font-size: var(--texte-15); line-height: 1.25; }
.releve-stats tbody tr { border-top: 1px solid var(--line); }
.releve-stats td { padding: 10px 2px; text-align: center; vertical-align: middle; }
.releve-stats td strong { display: block; font-size: var(--texte-15); font-weight: 600; font-variant-numeric: tabular-nums; }
.releve-stats td small { display: block; margin-top: 3px; font-size: var(--texte-12); color: var(--muted); font-variant-numeric: tabular-nums; }
.releve-stats td.vide-case { color: var(--muted); opacity: .6; background: none; }
.releve-stats td.peu strong { color: var(--muted); font-weight: 500; }
.barre-case { display: block; width: 40px; height: 3px; margin: 4px auto 0; border-radius: 2px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.barre-case i { display: block; height: 100%; border-radius: 2px; background: var(--muted); }
.releve-stats td.dur .barre-case i { background: var(--dur); }
.releve-stats td.terre .barre-case i { background: var(--terre); }
.releve-stats td.gazon .barre-case i { background: var(--gazon); }
.releve-stats td.peu .barre-case i { opacity: .35; }
.point-surface { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--muted); vertical-align: 1px; }
.point-surface.dur { background: var(--dur); }
.point-surface.terre { background: var(--terre); }
.point-surface.gazon { background: var(--gazon); }
.note-releve { margin: 8px 0 0; font-size: var(--texte-12); }

/* « Saison par saison, en chiffres » : un lien violet replié, comme l'app. */
.vue[data-vue="app-analyser"] .saisons-details { margin: 6px 0 12px; border-top: 1px solid var(--line); }
.vue[data-vue="app-analyser"] .saisons-details > summary {
  min-height: 52px; display: flex; align-items: center; cursor: pointer;
  font-size: 17px; font-weight: 600; color: var(--violet);
}
.releve-stats thead th { text-transform: none; letter-spacing: 0; }

/* --- Fiche joueur (FicheJoueurView de l'app) ----------------------------
   L'identité, l'Elo en grand et sa courbe en marches, trois chiffres sous
   un filet, deux boutons à contour, les derniers matchs en lignes de score,
   et ▲ Hausse / ▼ Baisse collés en bas. */
.fiche-identite { gap: 12px; }
.fiche-identite .avatar { width: 52px; height: 52px; font-size: 16px; }
.fiche-nom h3 { font-family: var(--police-romain); font-size: 24px; font-weight: 700; line-height: 1.15; white-space: normal; }
.fiche-nom p { font-size: var(--texte-14); color: var(--muted); }
.fiche-identite > .suivre { width: 46px; height: 46px; border-radius: 12px; border-color: var(--line); background: none; font-size: 22px; }
.fiche-identite > .suivre[aria-pressed="true"] { color: var(--gold); }

.fiche-courbe { display: grid; gap: 10px; margin-top: 16px; }
.fc-tete { display: grid; gap: 2px; }
.fc-elo { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.fc-elo strong { font-size: 40px; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fc-elo span { color: var(--muted); font-size: 17px; }
.fc-variation { margin: 0; min-height: 1.4em; font-size: var(--texte-15); font-weight: 600; color: var(--muted); }
.fc-variation .up { color: var(--up-texte); }
.fc-variation .down { color: var(--down-texte); }
.fc-date { font-weight: 500; }
.fc-attente { height: 300px; border-radius: 12px; background: var(--metal); opacity: .5; }
.fc-echec { display: grid; place-items: center; gap: 10px; min-height: 260px; color: var(--muted); text-align: center; }
.fc-echec p { margin: 0; }
.fiche-courbe .gc-trace { cursor: crosshair; }
.fiche-courbe .gc-ligne { stroke-width: 2.4; stroke-linejoin: miter; stroke-linecap: butt; }
.fc-bulle { position: relative; display: grid; gap: 3px; padding: 10px 44px 10px 12px; border-radius: 12px; background: var(--panneau, var(--metal)); }
.fc-bulle[hidden] { display: none; }
.fc-bulle small { color: var(--muted); font-size: var(--texte-13); }
.fc-match { margin: 0; display: flex; justify-content: space-between; gap: 8px; color: var(--ink); text-decoration: none; font-size: var(--texte-15); font-weight: 500; line-height: 1.35; }
.fc-match > span[aria-hidden] { flex: none; color: var(--muted); }
a.fc-match:hover { color: var(--violet); }
.fc-fermer { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }

.fiche-cles-app { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.fiche-cles-app > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.fiche-cles-app span { color: var(--muted); font-size: var(--texte-14); }
.fiche-cles-app strong { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fiche-cles-app strong.up { color: var(--up-texte); }
.fiche-cles-app strong.down { color: var(--down-texte); }
.fiche-cles-app small { color: var(--muted); font-size: var(--texte-12); }

.fiche-outils { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.btn-contour {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 10px;
  border: 1.2px solid color-mix(in srgb, var(--ink) 60%, transparent); border-radius: 10px; background: none;
  color: var(--ink); font-weight: 600; font-size: var(--texte-15); text-decoration: none; white-space: nowrap;
}
.btn-contour:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.btn-contour svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fiche-outils + .fiche-communaute, .fiche-outils ~ .fiche-fiabilite { margin-top: 12px; }

.fiche-derniers { margin-top: 18px; }
.fiche-derniers h3 { font-family: var(--police-romain); font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.fiche-derniers .ligne-score { padding-inline: 0; }
.btn-sens { border-radius: 10px; font-size: 17px; font-weight: 700; box-shadow: none; }

/* Sur ordinateur aussi, ▲ / ▼ restent à portée : collés au bas de l'écran
   pendant qu'on lit la fiche (l'app les colle en bas). */
@media (min-width: 761px) {
  .fiche-identite ~ .cta-sens {
    position: sticky; bottom: 0; z-index: 3; margin-top: 14px; padding: 10px 0;
    background: color-mix(in srgb, var(--paper) 94%, transparent); border-top: 1px solid var(--line);
  }
}
.fiche-nom p { white-space: normal; }
.fiche-retrospectif h3 { font-family: var(--police-texte); font-size: var(--texte-15); font-weight: 600; }
.fiche-retrospectif h3 .sous { display: block; margin-top: 2px; font-size: var(--texte-13); font-weight: 400; color: var(--muted); }
.fiche-cles-app { gap: 6px; }
.fiche-cles-app span { font-size: var(--texte-13-5); overflow-wrap: anywhere; }
/* Deux colonnes égales qui ne débordent jamais : sur un écran de 320 px,
   « Stats détaillées » passe sur deux lignes plutôt que de pousser la page. */
.fiche-outils { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.btn-contour { white-space: normal; text-align: center; line-height: 1.2; }

/* --- Listes de joueurs (LigneJoueurTR de l'app) ---------------------------
   Joueurs et Classement : une ligne par joueur, séparées par un filet, sans
   carte autour. À gauche le carré d'initiales, le nom et la sous-ligne
   grise ; à droite l'Elo à l'encre et sa forme en vert ou en rouge. */
#joueurs-liste.grille-cartes { display: block; }
.carte-joueur.ltr {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 0;
  padding: 12px 0; margin: 0; border: 0; border-bottom: .75px solid var(--line);
  border-radius: 0; background: none; box-shadow: none;
}
.carte-joueur.ltr:hover { background: none; box-shadow: none; transform: none; }
.ltr .avatar, .liste-classement .avatar { flex: none; width: 40px; height: 40px; font-size: 13px; }
.ltr-texte { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ltr-texte h3 { margin: 0; font-family: var(--police-texte); font-size: var(--texte-16, 16px); font-weight: 600; line-height: 1.25; }
.ltr-lien { color: var(--ink); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Toute la ligne ouvre la fiche : le lien du nom s'étend sur elle. */
.carte-joueur.ltr .ltr-lien::after { content: ""; position: absolute; inset: 0; }
.carte-joueur.ltr:hover .ltr-lien, .liste-classement tr:hover .ltr-lien { color: var(--violet); }
.ltr-sous, .ltr-texte small {
  margin: 0; color: var(--muted); font-size: var(--texte-14); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.carte-joueur.indisponible .ltr-sous { color: var(--muted); font-style: normal; }
.pastille-etat { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--muted); vertical-align: 1px; }
.pastille-etat.available { background: var(--up); }
.pastille-etat.suspended, .pastille-etat.pending_elo { background: var(--gold); }
.ltr-chiffres { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.ltr-chiffres strong { font-size: var(--texte-16, 16px); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ltr-chiffres small { font-size: var(--texte-14); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ltr-chiffres small.up { color: var(--up-texte); }
.ltr-chiffres small.down { color: var(--down-texte); }
.ltr-plus {
  position: relative; z-index: 1; flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--metal); color: var(--ink);
  font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer;
}
.ltr-plus:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.ltr-plus[aria-disabled="true"] { color: color-mix(in srgb, var(--muted) 50%, transparent); cursor: not-allowed; }

/* Le classement : la même ligne, le rang devant, l'étoile au bout. Le
   tableau reste un tableau pour les lecteurs d'écran ; à l'œil, chaque
   ligne est une rangée souple, comme dans l'app. */
.classement-defilable { max-height: none; overflow: visible; }
.liste-classement, .liste-classement tbody { display: block; width: 100%; }
.liste-classement tbody tr { display: flex; align-items: center; border-bottom: .75px solid var(--line); }
.liste-classement td { display: block; padding: 12px 0; }
.liste-classement td.rang { flex: none; width: 34px; padding-right: 4px; font-size: var(--texte-14); font-weight: 600; color: var(--muted); text-align: left; font-variant-numeric: tabular-nums; }
.liste-classement td.td-nom { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; }
.liste-classement td.ltr-chiffres { flex: none; display: flex; padding-left: 8px; }
.liste-classement td.td-etoile { flex: none; width: 40px; text-align: right; }
.liste-classement td[colspan] { flex: 1 1 auto; }
.liste-classement .suivre { width: 40px; height: 44px; margin: 0; border: 0; background: none; font-size: 19px; color: var(--muted); }
.liste-classement .suivre[aria-pressed="true"] { color: var(--gold); }
.liste-classement .ligne-fantome .squelette { display: block; height: 14px; width: 40px; }
.liste-classement .ligne-fantome .sq-nom { width: 160px; }
/* Les anciennes cartes de tableau du téléphone (analyser.css) ne s'appliquent
   pas au classement : une ligne, un filet. */
.carte-panneau .liste-classement tbody tr {
  display: flex; grid-template-columns: none; margin: 0; padding: 0;
  border: 0; border-bottom: .75px solid var(--line); border-radius: 0; background: none; box-shadow: none;
}
.carte-panneau .liste-classement td { padding: 12px 0; border: 0; background: none; }
.carte-panneau .liste-classement td::before { content: none; }
.carte-joueur.ltr { flex-direction: row; grid-template-columns: none; }
.carte-panneau .liste-classement td.ltr-chiffres { flex-direction: column; align-items: flex-end; justify-content: center; }
/* Classement et Joueurs : les outils et la liste posés sur la page, sans
   cadre autour (l'app n'en a pas), sur une colonne de lecture. */
.vue[data-vue="classement"] .carte-panneau,
.vue[data-vue="joueurs"] .barre-outils {
  padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
@media (min-width: 761px) {
  .vue[data-vue="classement"], .vue[data-vue="joueurs"] { max-width: 760px; margin-inline: auto; }
}
.vue[data-vue="classement"] .titre-page { border-bottom: 0; margin-bottom: 4px; }
.vue[data-vue="classement"] .compte-liste, .vue[data-vue="joueurs"] .compte-liste { font-size: var(--texte-14); color: var(--muted); }

/* --- Tournois en cours (TournoisView de l'app) ---------------------------
   Le tableau en lignes de score, l'une sous l'autre, séparées d'un filet. */
.tableau-liste { display: block; margin: 0; padding: 0; list-style: none; }
.tableau-match { display: block; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.tableau-match .ligne-score { padding-inline: 0; }
@media (min-width: 761px) {
  .vue[data-vue="tournois"] { max-width: 760px; margin-inline: auto; }
}

/* --- Résultats (ResultatsView de l'app) ----------------------------------
   Trois rubriques de lignes de score posées sur la page : la dernière
   journée rangée par « TOURNOI · TOUR », le tournoi en cours rangé par jour,
   puis le dernier lot de données. */
@media (min-width: 761px) {
  .vue[data-vue="resultats"] { max-width: 760px; margin-inline: auto; }
}
.vue[data-vue="resultats"] .bloc-matchs { margin-top: 26px; }
.vue[data-vue="resultats"] .badge-lot { display: inline-block; margin: 2px 0 10px; }
.vue[data-vue="resultats"] .titre-bloc .sous {
  font-family: var(--police-texte); font-size: var(--texte-14); font-weight: 400; color: var(--muted);
}
.groupe-scores { margin: 0 0 14px; }
.groupe-scores-titre {
  display: flex; align-items: center; gap: 8px;
  margin: 14px 0 2px;
  font-family: var(--police-texte); font-size: var(--texte-12); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.jour-scores {
  margin: 16px 0 4px;
  font-family: var(--police-texte); font-size: var(--texte-14); font-weight: 600; color: var(--ink);
}
.jour-scores::first-letter { text-transform: uppercase; }
/* La ligne écrite par le serveur, le temps que le script la remplace. */
.ligne-serveur {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px;
  margin: 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--texte-14-5);
}
.ligne-serveur b { margin-left: auto; font-variant-numeric: tabular-nums; }
.ligne-serveur small { flex-basis: 100%; font-size: var(--texte-12); color: var(--muted); }

/* --- La feuille d'ajout (AjoutView de l'app) -----------------------------
   Le montant en grand au centre, le disponible dessous, cinq montants
   rapides (10, 50, 100, 250, Tout), puis le levier, le seuil replié, la
   phrase qui dit ce qui va se passer, et UN bouton plein collé en bas. */
#modale-attribution { padding-bottom: 0; }
#modale-attribution .modale-tete h2 { font-family: var(--police-romain); font-size: 24px; font-weight: 700; }
#modale-attribution .modale-tete p { font-size: var(--texte-14); }
#modale-attribution .mini-joueur { border-radius: 14px; padding: 14px; }
#modale-attribution .mini-joueur strong { font-size: var(--texte-15); }
#modale-attribution .mini-joueur small { font-size: var(--texte-13-5); }
#modale-attribution .mini-joueur .droite strong { font-size: var(--texte-15); }
#form-attribution .libelle-champ { font-size: var(--texte-15); font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.montant-central { text-align: center; margin: 14px 0 12px; }
.montant-saisie { display: inline-flex; align-items: baseline; justify-content: center; gap: 6px; max-width: 100%; }
.montant-saisie input {
  /* La largeur suit le nombre de chiffres (operations.js,
     ajusterLargeurMontant) : le montant reste au centre. */
  width: 3.4ch; min-width: 1.4ch; max-width: 9ch;
  padding: 0; border: 0; background: none; color: var(--ink);
  font-family: var(--police-texte); font-size: 56px; font-weight: 600; line-height: 1.1;
  font-variant-numeric: tabular-nums; text-align: center;
  -moz-appearance: textfield; appearance: textfield;
}
.montant-saisie input::-webkit-outer-spin-button,
.montant-saisie input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.montant-saisie input:focus-visible { outline: none; text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.montant-saisie span { font-size: 34px; color: var(--gold); }
.montant-dispo { margin: 4px 0 0; font-size: var(--texte-14); color: var(--muted); }
#attr-prereglages { display: flex; gap: 8px; margin-bottom: 18px; }
#attr-prereglages button {
  flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 4px;
  border: 0; border-radius: 10px; background: var(--metal); color: var(--ink);
  font-size: var(--texte-14); font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: none;
}
#attr-prereglages button[hidden] { display: none; }
#attr-prereglages button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
#attr-prereglages button:disabled { opacity: .35; }
#modale-attribution .levier-ligne label { font-size: var(--texte-15); font-weight: 400; color: var(--ink); }
#modale-attribution .levier-ligne output { font-size: var(--texte-15); }
#modale-attribution .levier-ligne .aide { font-size: var(--texte-14); color: var(--muted); }
#modale-attribution .attr-declencheur { border-radius: 14px; padding: 0 16px; margin-top: 16px; }
#modale-attribution .attr-declencheur[open] { padding-bottom: 16px; }
#modale-attribution .consequence {
  margin: 16px 0 12px; padding: 14px; border-radius: 14px;
  font-size: var(--texte-14); line-height: 1.5; color: var(--gold-texte);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
}
/* Le bouton reste visible en bas de la feuille pendant qu'on la fait
   défiler, séparé du contenu par un filet. */
#modale-attribution .pied-feuille {
  position: sticky; bottom: 0; z-index: 1;
  margin: 8px -22px 0; padding: 10px 22px calc(12px + var(--encoche-bas));
  background: var(--card-haute); border-top: .75px solid var(--line);
}
#modale-attribution .pied-feuille .btn-principal { margin: 0; }
@media (max-width: 760px) {
  #modale-attribution { padding-bottom: 0; }
  #modale-attribution .pied-feuille { margin-inline: -18px; padding-inline: 18px; }
}

/* --- La découverte (DecouverteView de l'app) -----------------------------
   Quatre pages plein écran façon « stories » : des barres en haut, un dessin,
   un grand titre et deux lignes. Sur ordinateur, une colonne de téléphone au
   milieu de l'écran. Rien ne tourne en boucle : la courbe se dessine une
   fois, les chiffres de la page 2 changent une fois. */
.decouverte {
  position: fixed; inset: 0; z-index: 220;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  padding: calc(12px + var(--encoche-haut)) 0 calc(24px + var(--encoche-bas));
  overflow-y: auto; overscroll-behavior: contain;
}
.decouverte[hidden] { display: none; }
.decouverte:focus { outline: none; }
body.decouverte-ouverte { overflow: hidden; }
.dc-haut, .dc-page { width: 100%; max-width: 460px; margin-inline: auto; }
.dc-haut { position: relative; z-index: 2; padding: 0 20px; }
.dc-barres { display: flex; gap: 4px; }
.dc-barres span { flex: 1 1 0; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.dc-barres i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.dc-nav { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-top: 10px; }
.dc-retour, .dc-passer {
  min-width: 44px; min-height: 44px; padding: 0 4px; border: 0; background: none;
  color: var(--muted); font: inherit; font-size: var(--texte-15); font-weight: 600; cursor: pointer;
}
.dc-retour { font-size: 28px; line-height: 1; }
.dc-retour[hidden] { visibility: hidden; display: block; }
.dc-passer { margin-left: auto; }
.dc-zones { position: absolute; inset: 0; z-index: 1; display: flex; }
.dc-zone { flex: 1 1 0; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.decouverte.derniere .dc-zones { display: none; }
.dc-page {
  position: relative; flex: 1 0 auto;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 24px 28px 0;
}
/* L'illustration se pose juste au-dessus du titre (revue UX du 28 novembre
   2026, point 17) : centrée dans sa hauteur, elle laissait un trou sous elle
   aux pages 2 et 3. Les titres restent tous à la même hauteur. */
.dc-illustration { min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; margin-bottom: 22px; }
.dc-titre { font-family: var(--police-romain); font-size: 34px; font-weight: 700; line-height: 1.12; margin: 0 0 12px; color: var(--ink); }
.dc-texte { font-size: 19px; line-height: 1.45; color: var(--muted); margin: 0 0 18px; }
.dc-note { font-size: var(--texte-13); color: var(--muted); margin: 0; }
/* Page 1 : l'Elo et sa courbe, qui se dessine une fois. */
.dc-elo { display: flex; align-items: baseline; gap: 8px; }
.dc-elo strong { font-family: var(--police-romain); font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dc-elo span { font-weight: 600; color: var(--muted); }
.dc-hausse { margin: 4px 0 0; font-weight: 700; color: var(--up); }
.dc-courbe { width: 100%; height: 170px; margin-top: 16px; overflow: visible; }
.dc-courbe path { fill: none; stroke: var(--up); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .dc-courbe path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dc-trace 1.6s ease-out forwards; }
}
@keyframes dc-trace { to { stroke-dashoffset: 0; } }
/* Page 2 : Elo 2 000 → 2 040, et les deux positions. */
.dc-hb { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.dc-hb-elo { margin: 0; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dc-hb-elo span { color: var(--muted); }
.dc-hb-cartes { display: flex; gap: 12px; width: 100%; }
.dc-hb-carte {
  flex: 1 1 0; min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border-radius: 14px; border: 1.5px solid;
}
.dc-hb-carte span { font-weight: 700; font-size: 17px; }
.dc-hb-carte b { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.dc-hb-carte.hausse { border-color: color-mix(in srgb, var(--up) 50%, transparent); }
.dc-hb-carte.hausse span { color: var(--up); }
.dc-hb-carte.baisse { border-color: color-mix(in srgb, var(--down) 50%, transparent); }
.dc-hb-carte.baisse span { color: var(--down); }
@media (prefers-reduced-motion: no-preference) {
  .dc-hb b { transition: opacity var(--duree, .3s) ease; }
  .dc-hb:not([data-avant]) b { animation: dc-chiffre .5s ease; }
}
@keyframes dc-chiffre { from { opacity: .2; transform: translateY(6px); } }
/* Page 3 : 1 000 ★. */
.dc-stars { text-align: center; }
.dc-stars strong { display: block; font-size: 64px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.dc-stars p { margin: 14px 0 0; font-size: var(--texte-14); color: var(--muted); line-height: 1.5; }
/* Page 4 : la notification d'exemple, puis les deux choix. */
.dc-page.finale { padding-top: 32px; }
.dc-notif {
  display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 12px; padding: 12px;
  border-radius: 18px; background: var(--metal);
}
.dc-notif-icone {
  flex: none; width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center;
  background: var(--violet); color: #fff; font-size: 14px;
}
.dc-notif-corps { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: var(--texte-14); }
.dc-notif-tete { display: flex; justify-content: space-between; font-size: var(--texte-12); }
.dc-notif-tete small { color: var(--muted); font-size: var(--texte-12); }
.dc-actions { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.dc-actions .btn-principal { width: 100%; }
.dc-actions .mention-essai { margin: 0; text-align: center; }
.dc-lien { align-self: center; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; color: var(--violet); text-decoration: none; }
@media (min-width: 761px) {
  .decouverte { padding-top: 32px; }
}

/* Toutes les pages de l'app sur la même colonne de lecture, centrée : la
   fiche d'un joueur et celle d'un match, Matchs et l'historique restaient
   collés à gauche sur ordinateur. */
@media (min-width: 761px) {
  .vue[data-vue="matchs"], .vue[data-vue="joueur"], .vue[data-vue="match"],
  .vue[data-vue="app-historique"] { max-width: 760px; margin-inline: auto; }
}

/* ATP | WTA (circuit.js, 25 novembre 2026) : sous le titre de chaque liste,
   deux moitiés égales, comme le sélecteur de l'app. Caché tant que le
   serveur ne sert que l'ATP. */
.choix-circuit { display: flex; flex-wrap: nowrap; width: 100%; max-width: 320px; margin: 0 0 14px; }
.choix-circuit[hidden] { display: none; }
.choix-circuit button { flex: 1 1 0; font-size: var(--texte-14); letter-spacing: .02em; }
.panneau-analyser > .choix-circuit { margin-top: 4px; }

/* Appuyer fort sur une ligne de score ou un joueur de « Qui prendre ? »
   l'ouvre (gestes.js, installerAppuiFort) : pas de menu du navigateur ni de
   sélection du texte pendant l'appui, sur téléphone. */
@media (pointer: coarse) {
  [data-appui-fort] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}

/* « Ma position » sur la fiche d'un joueur de mon équipe (fiche-joueur.js,
   rendreMaPosition) : le sens et les stars engagées à gauche, la valeur et
   le gain à droite, puis « Gérer ma position ». */
.fiche-ma-position { margin: 14px 0 4px; }
.fiche-ma-position .entete-cote span { font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.mp-ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.mp-ligne > span { display: grid; gap: 2px; min-width: 0; }
.mp-ligne small { color: var(--muted); font-size: var(--texte-14); }
.mp-valeur { text-align: right; font-variant-numeric: tabular-nums; }
.mp-valeur small.up { color: var(--up-texte); font-weight: 600; }
.mp-valeur small.down { color: var(--down-texte); font-weight: 600; }
.mp-gerer { width: 100%; min-height: 46px; }

/* Le « (i) » (Info, base.js ; revue du 28 novembre 2026) : un rond discret à
   côté d'un titre, qui déplie l'explication juste en dessous. Elle n'est
   plus écrite d'office sous chaque chiffre. */
.avec-info { display: inline-flex; align-items: center; gap: 8px; }
.info-rond {
  position: relative; flex: none; display: inline-grid; place-items: center;
  width: 22px; height: 22px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  color: var(--muted); font-family: var(--police-romain); font-style: italic;
  font-size: var(--texte-13); font-weight: 600; line-height: 1;
  letter-spacing: 0; text-transform: none;
}
/* 44 px de zone à toucher, sans grossir le rond. */
.info-rond::after { content: ""; position: absolute; inset: -11px; }
.info-rond[aria-expanded="true"] { color: var(--violet-dark); border-color: currentColor; }
.info-texte {
  margin: -4px 0 14px; color: var(--ink-2);
  font-size: var(--texte-13-5); line-height: 1.5;
}
.tete-ecran .avec-info h1 { margin: 0; }
.titre-bloc.avec-info { display: flex; }

/* Une seule étoile (revue du 28 novembre 2026) : la couleur du texte qui
   l'entoure, partout. Elle était dorée dans la barre du haut et dans la
   feuille d'ajout, noire sur la valeur de l'équipe, grise sur « engagées » :
   trois couleurs pour une seule unité, qu'on prenait pour trois choses. */
.jeton-stars .etoile, .capsule-compte .jeton-stars .etoile { color: inherit; }
.montant-saisie span { color: inherit; }
/* « ★ 326 dispo » : le mot dit ce qu'est le nombre, sur téléphone aussi. */
.capsule-compte .mot-solde {
  margin-left: -1px; color: var(--muted); font-weight: 500; font-size: var(--texte-12);
}
/* « Qui prendre ? » : un joueur déjà dans l'équipe porte le mot, pas une
   étoile de plus (une étoile, c'est une star). */
.qp-texte .p-equipe {
  margin-left: 6px; padding: 1px 6px; border-radius: var(--rayon-pastille);
  border: 1px solid var(--line-strong); color: var(--muted);
  font-size: var(--texte-12); font-weight: 600; vertical-align: 1px;
}
/* Le sens d'une position dans « Mes joueurs » : une pastille de mots, au
   trait, sans vert ni rouge (htmlPastilleSens, jouer.js). Elle ouvre la
   sous-ligne, d'où la marge à droite et pas à gauche. */
.tr-sous .p-sens {
  margin: 0 6px 0 0; padding: 0 6px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink-2); font-weight: 600;
}

/* --- Rang à gauche, partout pareil (28 novembre 2026) ----------------------
   La liste des joueurs prend le rang devant le carré d'initiales, à la même
   largeur et dans le même gris que la colonne du classement : les deux
   listes se lisent de la même façon. */
.carte-joueur.ltr .ltr-rang {
  flex: none; width: 34px; margin-right: -8px; font-size: var(--texte-14); font-weight: 600;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
/* L'aperçu de l'accueil : le nom et, dessous, le pays et l'autre classement. */
#landing-classement .lc-texte { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#landing-classement .lc-texte .lien-joueur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#landing-classement .lc-texte .meta { font-size: var(--texte-13); color: var(--muted); }
/* Fiche : « estimé (i) » sous le rang ATP déduit. Le rond reste petit dans
   la petite ligne, et la règle des intitulés de la grille (span gris) ne
   s'applique pas à son « i ». */
.fiche-cles-app small .info-rond { width: 18px; height: 18px; margin-left: 2px; vertical-align: -4px; font-size: var(--texte-12); }
.fiche-cles-app .info-rond span { color: inherit; font-size: inherit; }
.fiche-cles-app + .info-texte { margin: 6px 0 0; }

/* --- Le drapeau d'un joueur (revue UX du 28 novembre 2026, point 8) ------
   Le drapeau de son pays dans le cadre fin des initiales (htmlAvatarJoueur,
   base.js), à 60 % de la taille du cadre comme dans l'app. La taille suit le
   cadre (40, 36, 52 px…) grâce à l'unité cqw ; 22 px pour un navigateur qui
   ne la connaît pas. */
.avatar.avatar-drapeau { container-type: size; font-family: inherit; }
.avatar.avatar-drapeau > i { font-style: normal; font-size: 22px; font-size: 60cqw; line-height: 1; }

/* « Sens · stars engagées » / « Valeur · gain » au-dessus de Mes joueurs :
   dit une fois, au lieu de « ★ engagées » sur chaque ligne. */
.lignes-entete { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0 6px; color: var(--muted); font-size: var(--texte-12); }

/* Fiche en page, sur téléphone : la barre « Hausse / Baisse » se pose
   au-dessus des onglets. Le bas de la page (les liens légaux) doit passer
   au-dessus des deux, plus seulement des onglets (revue UX du 28 novembre
   2026, point 13). */
@media (max-width: 760px) {
  .coque:has(.vue[data-vue="joueur"]:not([hidden]) .fiche-identite ~ .cta-sens) {
    padding-bottom: calc(48px + 72px + var(--hauteur-onglets) + var(--encoche-bas));
  }
}

/* --- Le parcours d'arrivée (arrivee.js, 28 novembre 2026) ----------------
   « Bonjour » puis « Crée ton compte » : deux écrans pleins, sur le papier
   de la découverte, une colonne de téléphone sur ordinateur. Le grand mot est
   à l'encre (le violet est réservé au bouton principal et aux liens) et ne
   change que onze fois, une seule fois : rien ne tourne en boucle. */
.bienvenue, .arrivee-compte {
  position: fixed; inset: 0; z-index: 221;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  padding: calc(16px + var(--encoche-haut)) 28px calc(24px + var(--encoche-bas));
  overflow-y: auto; overscroll-behavior: contain;
}
.bienvenue[hidden], .arrivee-compte[hidden] { display: none; }
.bienvenue:focus, .arrivee-compte:focus { outline: none; }
body.arrivee-ouverte { overflow: hidden; }
.bv-corps, .ac-corps {
  flex: 1 0 auto; width: 100%; max-width: 420px; margin-inline: auto;
  display: flex; flex-direction: column; justify-content: center;
}
.bv-corps { align-items: center; text-align: center; }
.bv-logo { width: 64px; height: 64px; margin-bottom: 28px; }
/* Un seul mot, « Bienvenue » ou « Welcome » : il apparaît une fois à
   l'ouverture (un changement, donc un mouvement permis), puis ne bouge plus.
   La taille tient « Bienvenue », le plus long des deux, sur un iPhone SE. */
.bv-mot {
  margin: 0; min-height: 1.15em;
  font-family: var(--police-romain); font-weight: 700; line-height: 1.15;
  font-size: clamp(48px, 14vw, 80px); letter-spacing: -0.02em; color: var(--ink);
  animation: bv-entree var(--duree-longue) var(--courbe) both;
}
@keyframes bv-entree { from { opacity: 0; transform: translateY(8px); } }
.bv-sous { margin: 6px 0 14px; font-size: 22px; font-weight: 600; color: var(--muted); }
.bv-texte { margin: 0; font-size: 17px; line-height: 1.45; color: var(--muted); }
.bv-actions {
  width: 100%; max-width: 420px; margin-inline: auto; padding-top: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.bv-actions .btn-principal, .ac-corps .btn-principal { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .bv-mot { animation: none; }
}
/* La croix : grise, sans fond, dans un coin ; sa zone fait 44 px au toucher. */
.ac-fermer {
  position: absolute; top: calc(8px + var(--encoche-haut)); right: 8px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer;
}
.ac-fermer:hover { color: var(--ink); }
.ac-fermer:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.ac-logo { width: 56px; height: 56px; margin-bottom: 18px; }
.ac-corps .dc-texte { margin-bottom: 6px; }
.ac-corps .connexion-externe { margin: 4px 0 0; }
.ac-corps .dc-lien { margin-top: 4px; }
@media (min-width: 761px) {
  .bienvenue, .arrivee-compte { padding-top: 32px; }
}
/* « Exemple » sur l'équipe d'exemple de la visite d'un visiteur (jouer.js) :
   neutre, pour qu'on ne la prenne pas pour une vraie équipe. */
.pastille-exemple {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--line); color: var(--ink-2); font-size: var(--texte-12);
  letter-spacing: 0; text-transform: none; vertical-align: 1px;
}

/* Le nom d'un joueur dans une liste, suivi de son pays : « Jannik Sinner
   (ITA) » (htmlNomPays, base.js ; 28 novembre 2026, plus de drapeau dans les
   listes). Le nom se coupe s'il est trop long, le code jamais ; le code est
   gris et sans gras, pour que l'œil lise d'abord le nom. */
.nom-et-pays {
  display: inline-flex; align-items: baseline; gap: .3em;
  max-width: 100%; min-width: 0; vertical-align: bottom;
}
.nom-texte { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nom-pays { flex: none; font-weight: 400; color: var(--muted); }

/* --- Les récaps du matin (29 novembre 2026, web/js/recaps.js) ------------
   La page d'un jour : un titre romain comme la fiche d'un match, puis les
   3 à 5 points en filets. Un point de match se touche (il ouvre la fiche du
   match) ; une actualité porte ses sources en petit, en liens. */
.vue[data-vue="recaps"], .vue[data-vue="recap"] { max-width: 720px; }
.vue[data-vue="recap"] h1 { font-family: var(--police-romain); font-size: 28px; font-weight: 700; margin: 4px 0 12px; line-height: 1.15; }
.rc-points { list-style: none; margin: 0 0 18px; padding: 0; border-top: 2px solid var(--filet-fort); }
.rc-point { border-bottom: 1px solid var(--line); font-size: var(--texte-15); line-height: 1.4; }
.rc-point > a, .rc-point > span { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--ink); text-decoration: none; }
.rc-point > a:hover { color: var(--violet); }
.rc-actu { padding: 12px 0; }
.rc-actu > span { padding: 0; }
.rc-sources { display: block; margin-top: 4px; color: var(--muted); font-size: var(--texte-12-5); }
.rc-source { color: var(--violet); }
.rc-joueur { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rc-joueur .hausse { color: var(--up-texte); }
.rc-joueur .baisse { color: var(--down-texte); }
.rc-note { margin-top: 18px; font-size: var(--texte-12-5); }
.rc-liste { list-style: none; margin: 0; padding: 0; }
.rc-liste a { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rc-liste a > strong { flex: none; font-weight: 600; }
.rc-liste a { flex-wrap: wrap; }
.rc-liste a small { flex-basis: 100%; order: 3; color: var(--muted); font-size: var(--texte-12-5); }
.rc-liste a .chevron { order: 2; }
.rc-liste a:hover strong { color: var(--violet); }

/* Pages légales en anglais (29 novembre 2026) : l'avertissement « la version
   française seule fait foi », en tête, encadré pour qu'on ne le manque pas. */
.avis-traduction {
  border: 1px solid var(--ligne, #e4e0ea);
  border-left: 3px solid var(--violet);
  padding: 10px 14px;
  margin: 8px 0 18px;
}

/* Le pays suivi dans Matchs (2 décembre 2026) : une ligne du menu d'un
   visiteur ou d'un essai (le libellé, puis la liste), et une liste dans les
   Préférences d'un compte. */
.menu-choix { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 10px;
  font-size: var(--texte-14-5); font-weight: 600; color: var(--ink); }
.menu-choix label { display: flex; align-items: center; gap: 12px; flex: none; }
.menu-choix select { flex: 1; min-width: 0; min-height: 40px; font: inherit; font-weight: 500; }
#bloc-pays select { width: 100%; max-width: 360px; min-height: 44px; font: inherit; }

/* --- Fenêtre réduite sur ordinateur (5 décembre 2026) -------------------
   Retour de Roms' sur Mac : hors plein écran, « on voit pas tout ».

   1. La barre du haut d'un compte connecté débordait sous 800 px de large :
      Jouer, Analyser, Matchs, la capsule avec le prénom (jusqu'à 120 px) et
      Menu ne tenaient plus, et Menu sortait de la fenêtre (la page défilait
      de côté). Entre 761 et 1 000 px, la capsule garde le solde et le rond
      des initiales, comme sur téléphone ; le nom complet reste en tête du
      menu du compte. */
@media (min-width: 761px) and (max-width: 1000px) {
  .bouton-compte .nom-compte, .chevron-compte { display: none; }
  .bouton-compte { padding: 0; }
}

/* 2. La découverte avance seule toutes les six secondes, ou d'un toucher à
      droite de l'écran : rien ne le montre à une souris. Avec une souris, un
      bouton « Suivant » se pose sous les trois premières pages, là où la
      quatrième a « Continuer ». Il passe au-dessus des deux zones de
      toucher invisibles (.dc-zones). */
.dc-suivant { display: none; }
@media (hover: hover) and (pointer: fine) {
  .dc-suivant { display: flex; position: relative; z-index: 2; }
}

/* 3. Fenêtre basse : la découverte et le parcours d'arrivée se resserrent
      pour que le bouton du bas reste à l'écran sans défiler. */
@media (max-height: 760px) {
  .decouverte { padding-top: calc(8px + var(--encoche-haut)); padding-bottom: calc(12px + var(--encoche-bas)); }
  .dc-nav { margin-top: 4px; }
  .dc-page, .dc-page.finale { padding-top: 8px; }
  .dc-illustration { min-height: 0; margin-bottom: 14px; }
  .dc-elo strong { font-size: 32px; }
  .dc-courbe { height: 110px; margin-top: 8px; }
  .dc-hb { gap: 12px; }
  .dc-titre { font-size: 28px; margin-bottom: 8px; }
  .dc-texte { font-size: 17px; margin-bottom: 12px; }
  .dc-actions { padding-top: 14px; }
}
@media (max-height: 620px) {
  .dc-courbe { height: 80px; }
  .dc-hb-carte { min-height: 84px; }
  .dc-stars strong { font-size: 48px; }
}

/* --- Open d'Australie (5 décembre 2026) ---------------------------------------
   La page /open-d-australie (backend/open_australie.py), écrite par le
   serveur. Même lecture que les Statistiques : des filets, pas de cartes ;
   le chiffre qui compte (la chance face aux autres favoris) en gras. */
#oa-corps > p, #oa-corps > ul { max-width: 68ch; }
#oa-corps h2 { margin-top: 28px; }
#oa-corps h3 { margin: 18px 0 8px; font-size: var(--texte-15); }
.oa-favoris td:nth-child(2) { white-space: nowrap; }
.oa-favoris small { color: var(--muted); }
#oa-corps .oa-note { margin: 8px 0 0; font-size: var(--texte-13); color: var(--muted); }
.oa-affiche { margin: 12px 0 0; }
.oa-jeu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px; }
#oa-corps .oa-jeu small { color: var(--muted); font-size: var(--texte-13); }
/* Les liens des pages écrites par le serveur à la couleur des liens du site
   (le violet), pas au bleu par défaut du navigateur. */
#oa-corps a:not(.btn-principal), #stats-corps a { color: var(--violet-dark); }
.oa-score { white-space: nowrap; }
/* Sur ordinateur, le rang a sa colonne ; sur téléphone, il passe sous le nom
   et la forme disparaît, pour que la chance reste à l'écran sans défiler. */
.oa-sous { display: none; }
@media (max-width: 760px) {
  .oa-favoris .oa-large { display: none; }
  .oa-favoris .oa-sous { display: block; font-size: var(--texte-12-5); }
  .oa-favoris th, .oa-favoris td { padding: 8px 6px; }
  /* Les colonnes de chiffres prennent la largeur de leur contenu ; leur
     en-tête passe à la ligne : le nom garde la place. */
  .oa-favoris .num { width: 1%; }
  .oa-favoris th { white-space: normal; vertical-align: bottom; }
}
