/* Observatoire du roller hockey, mise en page. Couleurs et polices : charte.css */
:root { --orh-orange-texte: #B84A0F; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--orh-glace); color: var(--orh-encre); font: 400 15px/1.5 var(--police-texte); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--orh-bleu); }
a:hover { color: #174A8A; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--orh-orange); outline-offset: 2px; }
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 12px; top: 12px; z-index: 20; background: #fff; padding: 10px 14px; border-radius: 8px; }
.largeur { max-width: 1180px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* Bandeau */
.tete { padding-bottom: 44px; }
/* Les suggestions de recherche débordent du bandeau sur le corps de page : pas de rognage vertical,
   et le contenu du bandeau (sans fond) passe au-dessus du corps, qui chevauche le bas du bandeau */
.tete { overflow-x: clip; overflow-y: visible; }
.tete > .largeur { z-index: 3; }
.tete .largeur { display: flex; flex-direction: column; gap: 28px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; padding-top: 10px; }
.nav a { color: #DDE2F5; text-decoration: none; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a.actif { color: #fff; border-bottom-color: #FFB48A; }
.nav .marque { font: 800 22px/1 var(--police-titre); text-transform: uppercase; color: #fff; margin-right: auto; }
/* Liens du menu : rangés dans la barre sur grand écran, derrière le bouton burger sur téléphone */
.nav .menu { display: contents; }
.burger { display: none; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; position: relative; transition: transform .2s, background .2s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.nav.ouvert .burger span { background: transparent; }
.nav.ouvert .burger span::before { top: 0; transform: rotate(45deg); }
.nav.ouvert .burger span::after { top: 0; transform: rotate(-45deg); }
.surtitre { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #C6CDEA; }
.h1 { font: 800 clamp(36px, 8.5vw, 62px)/.95 var(--police-titre); text-transform: uppercase; letter-spacing: .01em; margin: 6px 0 0; overflow-wrap: anywhere; }
.h1 em { font-style: normal; color: #FFB48A; }
.chapeau { margin: 12px 0 0; font-size: 17px; color: #DDE2F5; max-width: 720px; }
.tete-ligne { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; }
.tete label { font-size: 12px; color: #C6CDEA; display: block; margin-bottom: 6px; }
.tete select { min-height: 44px; border-radius: 8px; border: 0; padding: 0 12px; font-weight: 600; }

/* Recherche */
.recherche { position: relative; max-width: 760px; }
.recherche form { display: flex; flex-wrap: wrap; gap: 10px; }
.recherche input { flex: 1 1 200px; min-width: 0; min-height: 52px; border: 0; border-radius: 10px; padding: 0 18px; font-size: 16px; color: var(--orh-encre); }
.bouton { min-height: 48px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--orh-orange-texte); color: #fff; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.bouton:hover { background: #9A3D0C; color: #fff; }
.bouton.secondaire { background: #fff; color: var(--orh-encre); border: 1px solid var(--orh-ligne); }
.bouton.sombre { background: var(--orh-nuit); }
.suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 10px; box-shadow: var(--ombre); list-style: none; margin: 0; padding: 6px; z-index: 10; max-height: 60vh; overflow: auto; }
.suggestions a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--orh-encre); min-height: 44px; }
.suggestions a:hover, .suggestions a:focus { background: var(--orh-bleu-clair); }
.suggestions .type { grid-row: span 2; align-self: center; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #fff; background: var(--orh-bleu); border-radius: 4px; padding: 3px 6px; }
.suggestions .type.arbitre { background: var(--orh-nuit-2); }
.suggestions .type.equipe { background: var(--orh-teal); }
.suggestions .type.club, .suggestions .type.entente { background: var(--orh-orange-texte); }
.suggestions small { color: var(--orh-encre-2); }

/* Corps */
.corps { margin-top: -24px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 26px; flex: 1; outline: none; }
.carte { background: var(--orh-carte); border: 1px solid var(--orh-ligne); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 22px 24px; min-width: 0; }
.carte > .orh-h2:first-child { margin-top: 0; }
.encart { background: var(--orh-bleu-clair); border-color: #C9D1E2; box-shadow: none; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.tuile { padding: 18px 20px; }
.tuile .orh-chiffre { color: var(--orh-bleu); font-size: 40px; }
.rangee { display: flex; flex-wrap: wrap; gap: 24px; }
.rangee > * { flex: 1 1 440px; }
.note { font-size: 13px; color: var(--orh-encre-2); margin: 6px 0 0; }
.txt { font-size: 14px; color: var(--orh-encre-2); margin: 0 0 12px; }
.vide { padding: 30px; text-align: center; color: var(--orh-encre-2); }

/* Barres : la largeur est proportionnelle à la donnée */
.barres { display: flex; flex-direction: column; gap: 8px; }
/* Colonnes fixes : toutes les pistes d'un bloc ont la même longueur, donc la même échelle */
.barre { display: grid; grid-template-columns: clamp(110px, 28%, 230px) 1fr 64px; gap: 12px; align-items: center; font-size: 14px; text-decoration: none; color: var(--orh-encre); min-height: 30px; }
a.barre { min-height: 44px; border-radius: 6px; padding: 0 6px; margin: 0 -6px; }
a.barre:hover { background: var(--orh-bleu-clair); color: var(--orh-encre); }
.barre .piste { height: 16px; background: #EEF2F9; border-radius: 4px; position: relative; overflow: visible; }
.barre .plein { display: block; height: 100%; background: var(--orh-bleu); border-radius: 4px; }
.barre .plein.gris { background: var(--orh-encre-3); }
.barre .plein.accent { background: var(--orh-orange); }
.barre .ic { position: absolute; top: 50%; height: 2px; background: var(--orh-nuit); transform: translateY(-50%); }
.barre .milieu { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: var(--orh-nuit); opacity: .55; }
.barre b { font-variant-numeric: tabular-nums; text-align: right; }
.barre .n { color: var(--orh-encre-2); font-size: 12px; }
.barre .sous { display: block; font-size: 12px; color: var(--orh-encre-2); font-weight: 400; }
.barres.large .barre { grid-template-columns: clamp(110px, 22%, 200px) 1fr 190px; }
.corps { position: relative; z-index: 2; }

/* Histogrammes */
.histo { display: flex; align-items: flex-end; gap: 4px; height: 180px; border-bottom: 1px solid var(--orh-encre-3); }
.histo div { flex: 1; background: var(--orh-bleu); border-radius: 4px 4px 0 0; min-height: 1px; }
.histo div.accent { background: var(--orh-orange); }
.axe { position: relative; height: 18px; font-size: 12px; color: var(--orh-encre-2); }
.axe span { position: absolute; }

/* Tableaux */
.defile { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { font-size: 12px; font-weight: 600; color: var(--orh-encre-2); text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--orh-ligne); white-space: nowrap; }
td { font-size: 15px; text-align: right; padding: 0 12px; height: 46px; border-bottom: 1px solid #E8EBF2; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.g, td.g { text-align: left; }
tr.moi td { background: var(--orh-orange-clair); }
td a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
td a:hover { text-decoration: underline; }

/* Filtres */
.filtres { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filtres label { display: block; font-size: 12px; color: var(--orh-encre-2); margin-bottom: 4px; }
.filtres > div { flex: 1 1 150px; min-width: 0; }
.filtres select { width: 100%; min-height: 44px; border: 1px solid var(--orh-ligne); border-radius: 8px; padding: 0 10px; background: #fff; max-width: 100%; }
.bouton.plus { margin-top: 12px; min-height: 44px; }
td.eq { white-space: normal; min-width: 140px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--orh-encre-2); }
.filtres .coche { flex: 1 1 100%; }
.filtres .coche label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: 14px; color: var(--orh-encre); cursor: pointer; }
.filtres .coche input { width: 20px; height: 20px; accent-color: var(--orh-bleu); margin: 0; }
.lecture { margin-top: 10px; padding: 12px 14px; background: var(--orh-bleu-clair); border-radius: 8px; font-size: 14px; color: var(--orh-encre); }
.lecture p { margin: 0; }
.lecture details { margin-top: 6px; font-size: 13px; color: var(--orh-encre-2); }
.lecture summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; color: var(--orh-bleu); font-weight: 600; }
.lecture details p { margin: 4px 0 0; }
.cellule-joueur a { min-height: 0; padding-top: 10px; }
.sous-cellule { display: block; padding-bottom: 10px; font-size: 13px; color: var(--orh-encre-2); white-space: normal; }
th a.tri { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
th[aria-sort] a.tri { color: var(--orh-encre); text-decoration: underline; font-weight: 700; }
.records { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; align-items: start; }
.record .orh-h2 { font-size: 20px; }
.record-tete { display: flex; gap: 16px; align-items: flex-start; }
.record-tete .orh-chiffre { color: var(--orh-bleu); font-size: 48px; line-height: 1; min-width: 56px; }
.record-tete .unite { font-size: 13px; color: var(--orh-encre-2); }
.record-tete p { margin: 2px 0 0; }
.detenteur { font-size: 17px; font-weight: 700; }
.actions-record { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.actions-record .bouton { margin: 0; }
.record .orh-h2 a { color: inherit; text-decoration: none; }
.record .orh-h2 a:hover { text-decoration: underline; }
.top-record td.g:first-child { width: 44px; }
.sous-cellule a { display: inline; min-height: 0; }
.marque-record { color: var(--orh-encre); }
.records-fiche { width: 100%; }
.records-fiche td:last-child, .records-fiche th:last-child { width: 1%; min-width: 96px; white-space: normal; }
.onglets { display: flex; gap: 8px; flex-wrap: wrap; }
.onglets a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; border: 1px solid #C9D1E2; background: #fff; text-decoration: none; color: var(--orh-encre); font-weight: 600; }
.onglets a[aria-current="page"] { background: var(--orh-nuit); color: #fff; border-color: var(--orh-nuit); }

/* Pied et dialogue */
.pied { border-top: 1px solid var(--orh-ligne); background: #fff; }
.pied-club { padding: 18px 20px 0; display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--orh-encre); }
.pied-club p { margin: 0; }
.pied-club .liens-club a { min-height: 44px; display: inline-flex; align-items: center; color: var(--orh-bleu); font-weight: 600; }
.liens-club { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.carte.club { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.carte.club > div { flex: 1 1 380px; }
.carte.club .txt { margin: 0; }
.carte.club .liens-club { gap: 10px 12px; }
.carte.club .lien-sec { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.surtitre-carte { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orh-encre-2); }
.pied-l { padding: 20px; display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; font-size: 13px; color: var(--orh-encre-2); }
.lien-bouton { background: none; border: 0; padding: 0; color: var(--orh-bleu); text-decoration: underline; cursor: pointer; min-height: 44px; }
dialog { border: 0; border-radius: 14px; padding: 24px; width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(20,22,58,.35); }
dialog::backdrop { background: rgba(20,22,58,.55); }
dialog label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
dialog textarea, dialog input, dialog select { width: 100%; border: 1px solid var(--orh-ligne); border-radius: 8px; padding: 10px 12px; }
dialog .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
/* Invitation Instagram : encart en bas d'écran, n'empêche pas de lire la fiche */
.invitation { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: min(380px, calc(100vw - 32px)); background: var(--orh-nuit); color: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 16px 40px rgba(20,22,58,.35); }
.invitation p { margin: 0 0 14px; color: #DDE2F5; font-size: 14px; }
.invitation .inv-titre { margin-bottom: 6px; font: 700 21px/1.1 var(--police-titre); text-transform: uppercase; color: #fff; }
.invitation .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.invitation .bouton.secondaire { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.invitation .fermer-inv { color: #C6CDEA; padding: 0 6px; }
/* Carte discrète vers Instagram (1.74.8) : en bas de page, ne bloque rien, se ferme d'un geste. Armada d'abord, l'auteur ensuite */
.carte-ig { position: fixed; left: 20px; bottom: 20px; z-index: 29; width: min(400px, calc(100vw - 32px)); box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 14px 52px 14px 16px; background: var(--orh-nuit); color: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(20,22,58,.35); animation: carte-ig-entree .35s ease-out both; }
.carte-ig[hidden] { display: none; }
.carte-ig p { margin: 0; }
.carte-ig-sur { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #AEB7E0; }
.carte-ig-titre { margin-top: 2px; font: 700 19px/1.15 var(--police-titre); text-transform: uppercase; color: #fff; }
.carte-ig .bouton { white-space: nowrap; min-height: 44px; }
.carte-ig-fermer { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: #DDE2F5; cursor: pointer; }
.carte-ig-fermer:hover { background: rgba(255,255,255,.12); color: #fff; }
.carte-ig-fermer:focus-visible, .carte-ig .bouton:focus-visible { outline: 3px solid #9CC3F2; outline-offset: 2px; }
@keyframes carte-ig-entree { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .carte-ig { animation: none; } }
@media (max-width: 640px) { .carte-ig { left: 12px; right: 12px; bottom: 12px; width: auto; grid-template-columns: 1fr; padding: 12px 52px 12px 14px; } .carte-ig .bouton { justify-self: start; } }
#pub-bhg .orh-h2 { margin-top: 0; }
#pub-bhg p:not(.surtitre-carte) { margin: 0; font-size: 15px; color: var(--orh-encre-2); }
.chargement { padding: 60px 0; text-align: center; color: var(--orh-encre-2); }

/* Écran d'attente : palet qui glisse sur la glace, cartes fantômes qui scintillent, barre fine en haut de l'écran */
.attente { padding: 36px 0 8px; text-align: center; color: var(--orh-encre-2); }
.attente .glace { position: relative; width: min(340px, 80%); height: 24px; margin: 0 auto 16px; border-bottom: 2px solid var(--orh-ligne); }
.attente .glace::before, .attente .glace::after { content: ""; position: absolute; bottom: -6px; width: 2px; height: 10px; background: var(--orh-ligne); }
.attente .glace::before { left: 0; } .attente .glace::after { right: 0; }
.attente .palet { position: absolute; bottom: 2px; left: 0; width: 30px; height: 11px; border-radius: 50%; background: var(--orh-encre);
  box-shadow: 0 3px 0 -1px var(--orh-encre-3); animation: glisse 1.5s cubic-bezier(.45,0,.55,1) infinite alternate; }
.attente .palet::after { content: ""; position: absolute; top: 3px; right: 100%; width: 70px; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--orh-bleu)); opacity: .45; animation: sillage 1.5s cubic-bezier(.45,0,.55,1) infinite alternate; }
.attente .message { margin: 0; font-weight: 600; color: var(--orh-encre); min-height: 1.4em; transition: opacity .25s; }
.attente .sous-message { margin: 4px 0 0; font-size: 14px; min-height: 1.3em; }
.attente .fantomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 28px; text-align: left; }
.attente .fantome { height: 92px; border-radius: 14px; background: linear-gradient(100deg, var(--orh-carte) 30%, var(--orh-ligne) 50%, var(--orh-carte) 70%);
  background-size: 250% 100%; animation: scintille 1.4s linear infinite; opacity: 0; animation-name: scintille, apparait; animation-duration: 1.4s, .4s;
  animation-timing-function: linear, ease-out; animation-iteration-count: infinite, 1; animation-fill-mode: none, forwards; }
.attente .fantome.large { grid-column: 1 / -1; height: 230px; }
.attente .fantome:nth-child(2) { animation-delay: .1s, .12s; } .attente .fantome:nth-child(3) { animation-delay: .2s, .24s; }
.attente .fantome:nth-child(4) { animation-delay: .3s, .36s; } .attente .fantome:nth-child(5) { animation-delay: .4s, .48s; }
#barre-attente { position: fixed; top: 0; left: 0; right: 0; height: 3px; overflow: hidden; z-index: 50; pointer-events: none; display: none; }
#barre-attente::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 35%; background: linear-gradient(90deg, var(--orh-bleu), var(--orh-orange)); animation: file 1.1s ease-in-out infinite; }
body.en-attente #barre-attente { display: block; }
body.en-attente #tete-contenu { display: none; }  /* en-tête de la page précédente masqué : l'attente reste visible sur téléphone */
@keyframes glisse { from { left: 0; } to { left: calc(100% - 30px); } }
@keyframes sillage { from { transform: scaleX(.2); transform-origin: right; } 50% { transform: scaleX(1); } to { transform: scaleX(.2); } }
@keyframes scintille { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes apparait { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes file { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) {
  .attente .palet { animation: none; left: calc(50% - 15px); } .attente .palet::after { display: none; }
  .attente .fantome { animation: none; opacity: 1; } #barre-attente::before { animation: none; width: 100%; opacity: .5; }
}

@media (max-width: 600px) {
  .barre, .barres.large .barre { grid-template-columns: 1fr auto; row-gap: 6px; }
  .tete .largeur { gap: 20px; }
  .nav .marque { flex: 1 1 0; min-width: 0; font-size: 19px; }
  .burger { display: inline-flex; }
  .nav .menu { display: none; }
  .nav.ouvert .menu { display: flex; flex-direction: column; flex-basis: 100%; margin-top: 8px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.18); }
  .nav.ouvert .menu a { min-height: 48px; font-size: 17px; }
  .nav.ouvert .menu a.actif { border-bottom-color: transparent; box-shadow: inset 3px 0 #FFB48A; padding-left: 12px; }
  .recherche input { flex-basis: 120px; padding: 0 14px; }
  .recherche .bouton { padding: 0 16px; }
  .tuiles { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
  .barre .piste { grid-column: 1 / -1; order: 3; }
  .carte { padding: 18px 16px; }
  .tuile .orh-chiffre { font-size: 32px; }
  .records { grid-template-columns: 1fr; }
  .record-tete .orh-chiffre { font-size: 40px; }
  .nav { gap: 0 16px; }
  .filtres > div { flex-basis: calc(50% - 6px); }
  .invitation { left: 16px; right: 16px; bottom: 16px; width: auto; }
  /* En-têtes sur plusieurs lignes et cellules resserrées : la valeur classée reste visible sans défiler */
  th { white-space: normal; min-width: 44px; padding: 8px 8px; vertical-align: bottom; }
  td { padding: 0 8px; }
  td.g { white-space: normal; min-width: 96px; }
  td.g:first-child { min-width: 0; }
  td.cellule-joueur { min-width: 150px; }
}
/* Grands écrans et ultra-wide, sur choix du visiteur (classe html.ultra, interrupteur du pied de page) : la grille s'élargit par paliers, jamais à l'infini. Les cartes étroites se rangent
   côte à côte, les tableaux larges et les filtres gardent toute la largeur, les paragraphes une largeur de lecture. */
@media (min-width: 1700px) {
  html.ultra .largeur { max-width: 1560px; }
  html.ultra .corps { display: grid; grid-template-columns: repeat(auto-fill, minmax(620px, 1fr)); align-items: start; align-content: start; }
  html.ultra .corps > * { grid-column: 1 / -1; }
  html.ultra .corps > .rangee { display: contents; }
  html.ultra .corps > .rangee > *, html.ultra .corps > .carte:not(:has(.filtres, th:nth-child(6), td:nth-child(6))) { grid-column: auto; }
  html.ultra .txt, html.ultra .note, html.ultra .lecture p, html.ultra .carte > p, html.ultra .chapeau { max-width: 100ch; }
  html.ultra .top-record:not(.records-fiche) { max-width: 1200px; }
  html.ultra .filtres > div { flex: 0 1 340px; }
  html.ultra .tuiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
  /* Une carte étroite remonte combler la place laissée à côté d'une autre */
  html.ultra .corps { grid-auto-flow: row dense; }
}
@media (min-width: 2400px) { html.ultra .largeur { max-width: 2240px; } }
/* Au-delà, le texte grossit avec l'écran pour rester lisible à distance */
@media (min-width: 3200px) { html.ultra { zoom: 1.2; } html.ultra .largeur { max-width: 2300px; } }
@media (min-width: 4400px) { html.ultra { zoom: 1.6; } }
/* Interrupteur Standard / Ultra-large : seulement sur un écran où la mise en page ultra-large s'applique */
.bascule-ecran { display: none; align-items: center; gap: 6px; }
.bascule-ecran button { font: inherit; font-size: 13px; padding: 4px 10px; min-height: 32px; border: 1px solid var(--orh-bleu); background: transparent; color: var(--orh-bleu); border-radius: 999px; cursor: pointer; }
.bascule-ecran button[aria-pressed="true"] { background: var(--orh-bleu); color: #fff; }
@media (min-width: 1700px) { .bascule-ecran { display: inline-flex; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .suggestions, :root:not([data-theme="light"]) .pied { background: var(--orh-carte); }
}
.suggestions .vide.plus { padding: 10px 12px; text-align: left; font-size: 13px; }
td.saison { white-space: nowrap; }
td.parcours { min-width: 150px; white-space: normal; }
td.parcours .sous { display: block; font-size: 12px; color: var(--orh-encre-2); }
/* Parcours : la saison est un bouton qui déplie le détail par compétition */
.deplier { font: inherit; font-weight: 600; color: var(--orh-bleu); background: none; border: 0; padding: 0 18px 0 0; min-height: 44px; cursor: pointer; position: relative; white-space: nowrap; }
.deplier::after { content: ""; position: absolute; right: 3px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.deplier[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -1px; }
tr.detail-parcours td { background: var(--orh-fond-2, rgba(31, 95, 174, .04)); font-size: 13px; }
.estime { font-size: 11px; font-weight: 600; color: var(--orh-encre-2); border-bottom: 1px dotted currentColor; cursor: help; white-space: nowrap; }

/* Bloc replié « Ses records » en tête de fiche : tout le titre est cliquable, le résumé donne le meilleur rang */
details.replie > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 2px; min-height: 44px; padding-right: 28px; position: relative; }
details.replie > summary::-webkit-details-marker { display: none; }
details.replie > summary .orh-h2 { margin: 0; }
details.replie > summary .resume { font-size: 14px; color: var(--orh-encre-2); min-width: 0; overflow-wrap: anywhere; }
details.replie > summary::after { content: ""; position: absolute; right: 6px; top: 14px; width: 9px; height: 9px; border-right: 2px solid var(--orh-bleu); border-bottom: 2px solid var(--orh-bleu); transform: rotate(45deg); transition: transform .15s; }
details.replie[open] > summary::after { transform: rotate(-135deg); top: 18px; }
details.replie > summary:focus-visible { outline: 2px solid var(--orh-bleu); outline-offset: 4px; }
details.replie .records-fiche { max-width: 900px; }

/* Comparaison de joueurs : colonnes qui défilent sur téléphone, libellés de ligne fixés à gauche */
.tete-ligne .comparer { margin-top: 10px; min-height: 40px; }
.choisis { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.choisi { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px; border: 1px solid var(--orh-bleu); border-radius: 999px; }
.choisi .retirer { font-size: 13px; color: var(--orh-encre-2); min-height: 36px; display: inline-flex; align-items: center; }
.comparer-ajout { position: relative; max-width: 420px; }
.comparer-ajout label { display: block; font-size: 13px; margin-bottom: 4px; }
.comparer-ajout input { width: 100%; box-sizing: border-box; font-size: 16px; }  /* 16 px : pas de zoom automatique sur iPhone */
.comparaison-joueurs th:not(.g), .comparaison-joueurs td { min-width: 110px; }
.comparaison-joueurs th[scope="row"] { position: sticky; left: 0; background: var(--orh-carte); z-index: 1; }
.comparaison-joueurs td.texte { white-space: normal; text-align: left; font-size: 13px; }
.comparaison-joueurs td .sous { display: block; font-size: 12px; color: var(--orh-encre-2); }
.records-comparaison td { min-width: 180px; vertical-align: top; }
.comparaison-joueurs .mieux { color: var(--orh-bleu); }
.duels { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.duels li { display: flex; flex-direction: column; gap: 2px; }

/* Jauges de couverture (page Méthode) */
#sources .h3 { font-size: 16px; margin: 18px 0 6px; }
.replie-simple { margin-top: 8px; }
.replie-simple > summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; color: var(--orh-bleu); font-weight: 600; font-size: 14px; }

/* Bandeau « Résultat partiel » du classement avec l'ancien site */
.partiel { margin-top: 14px; padding: 12px 14px; border-left: 4px solid var(--orh-orange, #E8590C); background: rgba(232, 89, 12, .08); border-radius: 6px; }
.partiel b { display: block; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.partiel p { margin: 4px 0 0; font-size: 14px; }

/* Tri par les en-têtes : bouton sur toute la largeur de l'en-tête, petit triangle dessiné selon aria-sort */
.tri-colonne { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; text-transform: inherit; letter-spacing: inherit; min-height: 32px; text-decoration: underline dotted; text-underline-offset: 3px; }
th[aria-sort] .tri-colonne { color: var(--orh-encre); text-decoration: underline; font-weight: 700; }
.tri-colonne:focus-visible, th a.tri:focus-visible { outline: 2px solid var(--orh-bleu); outline-offset: 2px; }
th[aria-sort] .tri-colonne::after, th[aria-sort] a.tri::after { content: ""; display: inline-block; margin-left: 5px; vertical-align: middle; border-left: 4px solid transparent; border-right: 4px solid transparent; }
th[aria-sort="descending"] .tri-colonne::after, th[aria-sort="descending"] a.tri::after { border-top: 5px solid currentColor; }
th[aria-sort="ascending"] .tri-colonne::after, th[aria-sort="ascending"] a.tri::after { border-bottom: 5px solid currentColor; }

/* Comparaison jusqu'à 10 joueurs : suggestions, ajout d'équipe, vue en lignes et matrices */
.suggestions-comparer { margin: 4px 0 12px; }
.suggestions-comparer .note { margin: 0 0 6px; }
.suggestion { display: inline-flex; flex-direction: column; padding: 6px 12px; border: 1px dashed var(--orh-bleu); border-radius: 12px; text-decoration: none; color: var(--orh-bleu); font-weight: 600; min-height: 44px; justify-content: center; }
.suggestion small { font-weight: 400; color: var(--orh-encre-2); font-size: 12px; }
.ajouts { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; }
.ajout-equipe { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.ajout-equipe label { display: block; font-size: 13px; margin-bottom: 4px; }
.ajout-equipe select { max-width: 220px; font-size: 16px; }
.comparaison-large td.texte { white-space: normal; text-align: left; font-size: 13px; min-width: 160px; }
.comparaison-large td .sous, .matrice td .sous { display: block; font-size: 11px; color: var(--orh-encre-2); }
.matrice th:not(.g), .matrice td { min-width: 64px; text-align: center; }
.matrice th[scope="row"] { position: sticky; left: 0; background: var(--orh-carte); z-index: 1; white-space: nowrap; }
.matrice .vide-matrice { background: var(--orh-ligne); }

/* Podiums compacts de la fiche équipe : listes empilées, même piste pour toutes les barres */
/* Podiums de la fiche équipe : deux par rangée quand la carte est assez large, un seul sur téléphone */
.podiums { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 24px; row-gap: 14px; align-content: start; }
.podiums > :not(.podium) { grid-column: 1 / -1; }
.podiums .podium { padding-top: 12px; border-top: 1px solid var(--orh-ligne); min-width: 0; }
.podiums .barre { grid-template-columns: minmax(0, 1.7fr) minmax(40px, 1fr) 36px; gap: 8px; font-size: 13px; }
.podiums .h3 { font-size: 14px; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .03em; }
.podiums .barre { min-height: 26px; }
.podiums .barre > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podiums .voir-plus { display: inline-block; margin-top: 4px; font-size: 13px; min-height: 32px; line-height: 32px; }

/* Répartition des matchs de la fiche joueur : deux anneaux côte à côte, empilés sur téléphone */
.anneaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px 32px; margin-top: 8px; }
.anneau .orh-h3 { font-size: 14px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .03em; }
.anneau-corps { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.anneau svg { width: 150px; height: 150px; flex: none; }
.anneau svg a circle { cursor: pointer; }
.anneau svg circle { transition: stroke-width .15s; }
.anneau svg circle:hover { stroke-width: 26; }
.anneau .centre { font-size: 26px; font-weight: 800; fill: var(--orh-encre); font-variant-numeric: tabular-nums; }
.anneau .centre-lib { font-size: 11px; fill: var(--orh-encre-2); }
.anneau .legende { list-style: none; margin: 0; padding: 0; flex: 1 1 180px; min-width: 0; font-size: 13px; }
.anneau .legende li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 42px; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--orh-ligne); }
.anneau .legende li:last-child { border-bottom: 0; }
.anneau .legende i { width: 12px; height: 12px; border-radius: 3px; }
.anneau .legende .nom { overflow: hidden; text-overflow: ellipsis; }
.anneau .legende .sous { display: block; font-size: 11px; color: var(--orh-encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anneau .legende b, .anneau .legende .pc { text-align: right; font-variant-numeric: tabular-nums; }
.anneau .legende .pc { color: var(--orh-encre-2); }
.bulle-anneau { position: fixed; z-index: 50; max-width: 320px; padding: 6px 10px; border-radius: 6px; background: var(--orh-nuit); color: #fff; font-size: 13px; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.2); }

/* Complétude du parcours : pastille de la fiche joueur, marqueur des classements toutes saisons */
.completude { margin: 0 0 18px; }
.completude .note { margin: 6px 0 0; }
.pastille-completude { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--orh-carte); border: 1px solid var(--orh-ligne); cursor: help; }
.pastille-completude .marque-completude { margin: 0; }
.marque-completude { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; margin-left: 6px; vertical-align: middle; box-sizing: border-box; cursor: help; }
.marque-completude.mc-complet { background: var(--orh-teal); }
.marque-completude.mc-attente { border: 2px solid var(--orh-teal); }
.marque-completude.mc-partiel { background: linear-gradient(90deg, var(--orh-orange) 50%, transparent 50%); border: 1.5px solid var(--orh-orange); }
.marque-completude.mc-rolskanet { border: 2px solid var(--orh-encre-3); }
.legende-completude .marque-completude { margin-left: 0; }

/* Panneau compact des classements : sélecteurs sur une ligne, cases en puces sur la suivante, détails repliés */
.filtres.compact { row-gap: 8px; }
.filtres.compact > div:not(.coche) { flex: 1 1 140px; }
.filtres.compact .saut { flex-basis: 100%; height: 0; order: 1; }
.filtres.compact .coche, .filtres.compact .legende-mini { order: 2; }
.filtres.compact .coche { flex: 0 0 auto; }
.filtres.compact .coche label { min-height: 34px; gap: 6px; padding: 0 12px; border: 1px solid var(--orh-ligne); border-radius: 999px; font-size: 13px; background: var(--orh-carte); }
.filtres.compact .coche label:has(input:checked) { border-color: var(--orh-bleu); background: var(--orh-bleu-clair); }
.filtres.compact .coche input { width: 15px; height: 15px; }
.legende-mini { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; color: var(--orh-encre-2); }
.legende-mini > span { display: inline-flex; align-items: center; gap: 4px; }
.legende-mini .marque-completude { margin: 0; }
.resume-classement { margin: 10px 0 0; }
.partiel.compact { margin-top: 8px; padding: 6px 10px; font-size: 13px; }
.partiel.compact b { display: inline; font-size: 12px; margin-right: 6px; }
.apropos { margin-top: 6px; font-size: 13px; color: var(--orh-encre-2); }
.apropos summary { cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; color: var(--orh-bleu); font-weight: 600; }
.apropos p { margin: 6px 0 0; max-width: 100ch; }

/* Tendances : cartes compactes par famille de mesures, courbe par saison, vue détaillée */
.famille-tendances { margin-top: 18px; }
.grille-tendances { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.carte.tendance { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.carte.tendance .h3 { font-size: 14px; margin: 0; }
.carte.tendance .h3 a { color: var(--orh-encre); text-decoration: none; }
.carte.tendance .h3 a:hover { color: var(--orh-bleu); text-decoration: underline; }
.tendance-valeur { display: flex; align-items: baseline; gap: 8px; }
.tendance-valeur b { font-size: 26px; font-weight: 800; color: var(--orh-bleu); font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 46px; }
.spark circle, .courbe-tendance circle { fill: var(--orh-bleu); }
.spark circle.creux, .courbe-tendance circle.creux { fill: var(--orh-carte); stroke: var(--orh-bleu); stroke-width: 1.5; }
.liens-dim { margin: 0; font-size: 12px; line-height: 1.6; }
.courbe-tendance { width: 100%; height: auto; max-height: 260px; margin-top: 10px; }
.courbe-tendance .moyenne { stroke: var(--orh-encre-3); stroke-dasharray: 4 4; }
.courbe-tendance .repere { stroke: var(--orh-ligne); }
.courbe-tendance .moyenne-lib, .courbe-tendance .axe-lib { font-size: 11px; fill: var(--orh-encre-2); }
tr.petit-n td { color: var(--orh-encre-3); }
tr.petit-n td b { font-weight: 600; }

/* Tendances, vue par saison : deux séries par source, axe depuis zéro, saisons faibles hors du tracé */
.courbe-tendance .trait { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.courbe-tendance .trait.rolskanet { stroke: var(--orh-bleu); }
.courbe-tendance .trait.federal { stroke: var(--orh-orange); stroke-dasharray: 6 5; }
.courbe-tendance circle.point.rolskanet { fill: var(--orh-bleu); }
.courbe-tendance circle.point.federal { fill: var(--orh-carte); stroke: var(--orh-orange); stroke-width: 2; }
.courbe-tendance circle.point.faible { fill: var(--orh-carte); stroke: var(--orh-encre-3); stroke-width: 1.5; }
.courbe-tendance .zero { stroke: var(--orh-encre-3); }
.courbe-tendance .coupure { stroke: var(--orh-encre-2); stroke-dasharray: 3 3; }
.courbe-tendance .coupure-lib, .courbe-tendance .axe-unite { font-size: 11px; fill: var(--orh-encre-2); }
.pastille-serie { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 8px; vertical-align: middle; }
.pastille-serie.rolskanet { background: var(--orh-bleu); margin-left: 0; }
.pastille-serie.federal { border: 2px solid var(--orh-orange); }
.pastille-serie.faible { border: 1.5px solid var(--orh-encre-3); }
.explication-tendance { margin: 12px 0 0; font-size: 15px; color: var(--orh-encre); }
.explication-carte { margin: 0; font-size: 12px; color: var(--orh-encre-2); line-height: 1.35; }
.choix-courbe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.choix-courbe .puce { display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; border: 1px solid var(--orh-ligne); border-radius: 999px; font-size: 13px; color: var(--orh-encre); text-decoration: none; background: var(--orh-carte); }
.choix-courbe .puce.active { border-color: var(--orh-bleu); background: var(--orh-bleu-clair); font-weight: 700; }

/* Story de carrière : lecteur plein écran, image au format 9:16 centrée */
dialog.story { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border-radius: 0; background: #07081A; color: #fff; overflow: hidden; }
dialog.story::backdrop { background: #07081A; }
.story [hidden] { display: none !important; }  /* .bouton impose display: inline-flex, qui passerait devant hidden */
dialog.story[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.story-scene { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); aspect-ratio: 9 / 16; flex: none; }
dialog.story.fin .story-scene { width: min(100vw, calc((100dvh - 160px) * 9 / 16)); }  /* au récap, l'image rapetisse pour laisser les actions dessous */
.story-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story-barres { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 2; }
.story-barres span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.story-barres i { display: block; height: 100%; width: 0; background: #fff; }
.story-zone { position: absolute; top: 0; bottom: 0; width: 35%; background: none; border: 0; cursor: pointer; z-index: 1; }
.story-zone.gauche { left: 0; } .story-zone.droite { right: 0; width: 65%; }
.story-zone.suite::after { content: "\203A"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.3); color: #fff; font-size: 28px; line-height: 32px; text-align: center; }  /* la story n'avance pas seule : flèche pour la suite */
.story-fermer { position: absolute; top: 20px; right: 12px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.story-etat { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 24px; text-align: center; font-weight: 600; }
.story-fin { width: min(100%, 520px); flex: none; padding: 8px 12px 12px; text-align: center; }
.story-fin p { margin: 0 0 8px; font-size: 13px; color: #DDE2F5; }
.story-fin .actions { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; justify-content: center; }
.story-fin .bouton { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.story-fin .bouton:not(.secondaire) { background: #3F82D6; border-color: #3F82D6; color: #fff; }
.story-fin .lien-bouton { color: #9CC3F2; }
.story-reduite { position: fixed; z-index: 1000; pointer-events: none; transform-origin: center; box-shadow: 0 10px 40px rgba(0,0,0,.45); }

/* Licences Rolskanet sur la fiche joueur (1.57.0) */
.licences-titre { font-size: 16px; margin: 18px 0 6px; }
ul.licences { list-style: none; margin: 0; padding: 0; }
/* Qui sommes-nous : photo à gauche du texte, au-dessus sur téléphone */
.carte.qui { display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: 24px; align-items: start; }
.qui figure { margin: 0; }
.qui img { display: block; width: 100%; height: auto; border-radius: 12px; }
.qui figcaption { margin-top: 6px; font-size: 12px; color: var(--orh-encre-2); }
@media (max-width: 600px) { .carte.qui { grid-template-columns: 1fr; } .qui img { max-height: 420px; object-fit: cover; object-position: 50% 15%; } }
/* Frise des licences : un trait vertical, une pastille à la couleur du club par période */
ol.frise { list-style: none; margin: 8px 0 0; padding: 0; }
ol.frise .periode { --club: var(--orh-bleu); position: relative; padding: 0 0 14px 22px; border-left: 3px solid var(--club); margin-left: 6px; }
ol.frise .periode:last-child { padding-bottom: 2px; }
ol.frise .periode::before { content: ""; position: absolute; left: -9px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--club); box-shadow: 0 0 0 3px var(--orh-carte); }
.club-frise { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 0 10px; align-items: baseline; }
.club-frise span { color: var(--orh-encre-2); font-size: 13px; font-variant-numeric: tabular-nums; }
ul.saisons-frise { list-style: none; margin: 0; padding: 0; }
ul.saisons-frise li { display: flex; gap: 12px; padding: 3px 0; font-size: 14px; border-top: 1px dashed var(--orh-ligne); }
ul.saisons-frise .saison { flex: 0 0 6.5em; color: var(--orh-encre-2); font-variant-numeric: tabular-nums; }
ul.saisons-frise li.sans-match { color: var(--orh-encre-3); }
ul.saisons-frise li.sans-match .saison { flex-basis: auto; min-width: 6.5em; }
.sous-frise { color: var(--orh-encre-2); font-size: 12px; }
@media (max-width: 600px) { ul.saisons-frise li { flex-direction: column; gap: 0; } ul.saisons-frise .saison { flex: none; font-size: 12px; } }
ul.licences li { display: flex; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--orh-ligne); font-size: 14px; }
ul.licences .saison { flex: 0 0 11.5em; min-width: 0; color: var(--orh-encre-2); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { ul.licences li { flex-direction: column; gap: 0; } ul.licences .saison { flex: none; font-size: 12px; } }

/* Recherche : lien vers tous les résultats, page de résultats, champ de recherche des clubs (1.68.0) */
.suggestions li.tous a { font-weight: 600; color: var(--orh-bleu); justify-content: center; }
.liste-resultats { list-style: none; margin: 8px 0 0; padding: 0; }
.liste-resultats li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--orh-ligne); }
.liste-resultats li:first-child { border-top: 0; }
.liste-resultats a { font-weight: 600; }
.filtres .cherche-club { flex: 1 1 100%; }
.filtres .cherche-club span { display: flex; gap: 8px; }
.filtres .cherche-club input { flex: 1 1 auto; min-width: 0; min-height: 44px; border: 1px solid var(--orh-ligne); border-radius: 8px; padding: 0 12px; background: #fff; font: inherit; }
