/* Le Classement. Audit de nick du 23 octobre 2026 (lot C) : plus d'introduction, de légende ni de FAQ ; son texte court et les deux
   grands rectangles de la bascule, un ruban illustré en tête de chaque tableau, le reste agrandi. Jetons seulement, 14 px au moins. */
.bascule-mode:not([hidden]) { display: grid; gap: var(--esp-3); margin: var(--esp-5) 0 var(--esp-4); }
.bascule-texte { margin: 0; max-width: var(--largeur-prose); font: 600 clamp(19px, 2.2vw, 22px)/1.4 var(--font-texte); color: var(--parchemin); }
.bascule-choix { display: grid; grid-template-columns: 1fr 1fr; }
.bascule-choix .vue { display: flex; align-items: center; justify-content: center; gap: var(--esp-2); min-height: 76px; padding: var(--esp-3); border: 2px solid var(--or); background: var(--ardoise); color: var(--or-clair); font: 800 clamp(20px, 3vw, 30px)/1.1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.bascule-choix .vue:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.bascule-choix .vue:last-child { border-left: 0; border-radius: 0 var(--r-md) var(--r-md) 0; }
.bascule-choix .vue:hover { background: var(--or-voile); }
.bascule-choix .vue[aria-pressed="true"] { background: var(--or-fond); color: var(--sur-or); }
.bascule-choix .vue:focus-visible { outline-offset: 3px; }
.vue-coche { visibility: hidden; }
.vue[aria-pressed="true"] .vue-coche { visibility: visible; }
.tableau-bloc { margin-top: var(--esp-7); }
.tableau-bloc > .tableau-nick { margin: 0 0 var(--esp-4); max-width: var(--largeur-prose); font: italic 19px/1.45 var(--font-texte); color: var(--parchemin); }
.tableaux .tableau table { font-size: 17px; }
.tableaux .tableau .g { font-size: 17px; }
.tableaux .tableau th { font-size: 15px; }
.tableau-sources { margin-top: var(--esp-2); }
.tableau-sources p { margin: 0 0 var(--esp-2); max-width: var(--largeur-prose); font: 14px/1.5 var(--font-texte); color: var(--parchemin); }
/* Les rubans : le titre (h2) écrit en grand à gauche, le dessin à droite (components/_ruban.html) ; au téléphone, l'un sous l'autre. */
.rubans-defs { position: absolute; width: 0; height: 0; overflow: hidden; color: var(--parchemin); }
.ruban { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: var(--esp-4); min-height: 168px; margin: 0 0 var(--esp-4); padding: var(--esp-3) var(--esp-5); border: 1px solid var(--cadre); border-top: 5px solid var(--or); border-radius: var(--r-lg); background: linear-gradient(100deg, var(--ardoise) 35%, var(--ardoise-2)); overflow: hidden; }
.ruban .ruban-titre { margin: 0; font: 800 clamp(40px, 6vw, 68px)/.95 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--or-clair); overflow-wrap: anywhere; }
.ruban-dessin { display: block; width: 100%; height: auto; max-height: 190px; }
.r-or { color: var(--or-clair); } .r-clair { color: var(--parchemin); } .r-b { color: var(--bordeaux-clair); } .r-vert { color: var(--bande-3); }
.r-faible { opacity: .55; }
.r-sol { fill: none; stroke: var(--cadre); stroke-width: 3; }
.r-ballon-fond { fill: var(--parchemin); stroke: var(--nuit); }
.r-ballon-pan { fill: var(--nuit); }
.r-podium { fill: var(--ardoise-2); stroke: var(--or); stroke-width: 2; }
.r-trainee { fill: var(--or-clair); opacity: .45; }
.r-vitesse, .r-trajet, .r-fleche, .r-lignes, .r-croix, .r-montee, .r-manche { fill: none; stroke: var(--parchemin); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.r-trajet { stroke-dasharray: 7 7; }
.r-trajet-or, .r-montee { stroke: var(--or-clair); stroke-width: 4; }
.r-orbite { fill: var(--or-voile); stroke: var(--or); stroke-width: 2; stroke-dasharray: 4 8; }
.r-barre { fill: var(--or); opacity: .85; }
.r-tableau { fill: var(--ardoise-2); stroke: var(--cadre); stroke-width: 2; }
.r-lignes { stroke: var(--cadre); stroke-width: 2; }
.r-croix { stroke: var(--bordeaux-clair); stroke-width: 3.5; }
.r-rond { fill: none; stroke: var(--or-clair); stroke-width: 3.5; }
.r-loupe { fill: var(--or-voile); stroke: var(--or-clair); stroke-width: 7; }
.r-manche { stroke: var(--or-clair); stroke-width: 12; }
@media (max-width: 640px) {
  .ruban { grid-template-columns: 1fr; gap: var(--esp-2); min-height: 0; padding: var(--esp-3) var(--esp-4); }
  .ruban .ruban-titre { font-size: 40px; }
  .ruban-dessin { max-height: 120px; }
  .bascule-choix .vue { min-height: 64px; font-size: 19px; }
}
.tableau-stats th { white-space: normal; min-width: 6.5em; line-height: 1.2; vertical-align: bottom; }
.tableau-stats th.g, .tableau-stats td.g { min-width: 10em; }
.tableau-stats td.lecture { white-space: normal; min-width: 16em; font-size: 16px; }
.tableaux [data-meilleur] .tri { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--esp-1); min-height: var(--cible); min-width: var(--cible); padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit; color: inherit; cursor: pointer; }
.tableaux [data-meilleur] .tri:hover, .tableaux [aria-sort] .tri { color: var(--or-clair); }
.tableaux .tri .fleche { display: inline-block; min-width: 1ch; }
.tableaux [aria-sort="descending"] .fleche::after { content: "↓"; }
.tableaux [aria-sort="ascending"] .fleche::after { content: "↑"; }
/* Téléphone : la colonne club reste fixe, le reste défile dans le tableau (jamais la page) ; au général, le rang aussi, et Pts à droite. */
.tableau-stats td.g, .tableau-stats th.g { position: sticky; left: 0; z-index: 1; background: var(--ardoise); }
@media (max-width: 760px) {
  .tableau-general .classement th:first-child, .tableau-general .classement td.rang { position: sticky; left: 0; z-index: 1; width: 2.75rem; min-width: 2.75rem; background: var(--ardoise); }
  .tableau-general .classement th.g, .tableau-general .classement td.g { position: sticky; left: 2.75rem; z-index: 1; background: var(--ardoise); }
  .tableau-general .classement th.pts, .tableau-general .classement td.pts { position: sticky; right: 0; z-index: 1; background: var(--ardoise); }
  .tableau-stats th.g, .tableau-stats td.g { min-width: 8.5em; max-width: 8.5em; white-space: normal; }
}
.tableaux .rg { display: none; }
.mode-rangs td.classee .val, .mode-rangs td.classee.montre .rg { display: none; }
.mode-rangs td.classee .rg, .mode-rangs td.classee.montre .val { display: inline; }
.mode-rangs .stats-clubs td, .mode-rangs .classement td { height: var(--cible); }
.mode-rangs .classement td.g a::after { content: none; }
.tableaux.mode-rangs td.classee { font-weight: 600; color: var(--sur-rang-sombre); }
.tableaux.mode-rangs td.pas-13, .tableaux.mode-rangs td.pas-14, .tableaux.mode-rangs td.pas-15, .tableaux.mode-rangs td.pas-16, .tableaux.mode-rangs td.pas-17, .tableaux.mode-rangs td.pas-18 { color: var(--sur-rang-clair); }
.tableaux.mode-rangs td.pas-1 { background: var(--rang-1); } .tableaux.mode-rangs td.pas-2 { background: var(--rang-2); } .tableaux.mode-rangs td.pas-3 { background: var(--rang-3); }
.tableaux.mode-rangs td.pas-4 { background: var(--rang-4); } .tableaux.mode-rangs td.pas-5 { background: var(--rang-5); } .tableaux.mode-rangs td.pas-6 { background: var(--rang-6); }
.tableaux.mode-rangs td.pas-7 { background: var(--rang-7); } .tableaux.mode-rangs td.pas-8 { background: var(--rang-8); } .tableaux.mode-rangs td.pas-9 { background: var(--rang-9); }
.tableaux.mode-rangs td.pas-10 { background: var(--rang-10); } .tableaux.mode-rangs td.pas-11 { background: var(--rang-11); } .tableaux.mode-rangs td.pas-12 { background: var(--rang-12); }
.tableaux.mode-rangs td.pas-13 { background: var(--rang-13); } .tableaux.mode-rangs td.pas-14 { background: var(--rang-14); } .tableaux.mode-rangs td.pas-15 { background: var(--rang-15); }
.tableaux.mode-rangs td.pas-16 { background: var(--rang-16); } .tableaux.mode-rangs td.pas-17 { background: var(--rang-17); } .tableaux.mode-rangs td.pas-18 { background: var(--rang-18); }
.stats-clubs td.g a { padding-block: 5px; margin-block: -5px; min-width: var(--cible); } /* lot 5 du 28 oct. : toute la hauteur de la ligne (28 px) sans mordre sur la voisine ; le mode « rangs » donne 44 px */
/* lot 5 du 28 oct. (5.1) : les derniers tableaux derrière un bouton */
.tous-classements > summary { list-style: none; cursor: pointer; margin-block: var(--esp-5); }
.tous-classements > summary::-webkit-details-marker { display: none; }
