@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: optional;
}

:root {
  --days-height: 50px;
  color-scheme: dark;
  --bg: oklch(0.175 0.017 165);
  --raised: oklch(0.21 0.019 165);
  --raised-2: oklch(0.25 0.02 165);
  --line: oklch(0.3 0.018 165);
  --ink: oklch(0.955 0.014 95);
  --soft: oklch(0.8 0.016 120);
  --muted: oklch(0.66 0.018 150);
  --brass: oklch(0.82 0.105 85);
  --brass-ink: oklch(0.2 0.03 85);
  --regional: oklch(0.78 0.075 185);
  --blue: oklch(0.75 0.1 240);
  --red: oklch(0.72 0.135 28);
  --bar-height: 60px;
  --gutter: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-synthesis: none;
}

* { box-sizing: border-box; }

/* La barre de defilement reste reservee : la page ne change jamais de largeur. */
html { overflow-y: scroll; scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.45 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brass); color: var(--brass-ink); }

/* Aucun lien souligne : le survol passe par la couleur. */
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 3px; }
main:focus { outline: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--brass);
  color: var(--brass-ink);
  border-radius: 6px;
}
.skip:focus { top: 10px; }

/* Barre */

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1240px;
  height: var(--bar-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Logo vectorise (livrables/logo-first-rift) : « F/RST R/FT », les barres laiton remplacent les I. */
.wordmark { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.wordmark svg { display: block; height: 15px; width: auto; }
.wm-ink { fill: var(--ink); }
.wm-brass { fill: var(--brass); }

.search { position: relative; flex: 0 1 360px; display: flex; align-items: center; margin-left: auto; }
.search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 38px;
  padding: 0 40px 0 36px;
  background: var(--raised);
  border: 1px solid transparent;
  border-radius: 8px;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
  appearance: none;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search input:hover { border-color: var(--line); }
.search input:focus { outline: none; border-color: var(--brass); background: var(--bg); }
.search kbd {
  position: absolute;
  right: 10px;
  padding: 0 6px;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  pointer-events: none;
}
.search input:focus ~ kbd { display: none; }

/* Le panneau prolonge la barre : il part de sa bordure basse, sans vide ni second trait. */
.search-results {
  position: absolute;
  top: calc(38px + (var(--bar-height) - 38px) / 2 + 1px);
  left: 0;
  right: 0;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 6px 0 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
}
.search-group {
  padding: 10px 14px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.search-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  text-decoration: none;
  cursor: pointer;
}
.search-option b { font-weight: 600; }
.search-option span { min-width: 0; font-size: 13px; color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-option:hover, .search-option[aria-selected="true"] { background: var(--raised-2); }
.search-empty { margin: 0; padding: 14px; color: var(--soft); }

.spoiler {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--soft);
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 150ms ease-out, color 150ms ease-out, background-color 150ms ease-out;
}
.spoiler:hover { border-color: var(--muted); color: var(--ink); }
.spoiler svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.spoiler .eye-off { display: none; }
.spoiler[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); font-weight: 600; }
.spoiler[aria-pressed="true"] .eye-off { display: block; }

.b-double { display: grid; gap: 22px; min-width: max-content; }
.b-double-label { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--soft); }
.b-double-wrap { display: flex; align-items: center; gap: 28px; }
.b-double-final { flex: none; width: 210px; }
.b-double-final h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--brass); }

.keys-open {
  flex: none;
  width: 38px;
  height: 38px;
  font-size: 14px;
  font-weight: 600;
  color: var(--soft);
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 150ms ease-out, color 150ms ease-out;
}
.keys-open:hover { border-color: var(--muted); color: var(--ink); }
.lang-switch {
  flex: none;
  height: 38px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--soft);
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 150ms ease-out, color 150ms ease-out;
}
.lang-switch:hover { border-color: var(--muted); color: var(--ink); }
@media (hover: none) { .keys-open { display: none; } }

.keys {
  width: min(640px, calc(100vw - 32px));
  padding: 24px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.keys::backdrop { background: oklch(0.1 0.01 165 / 0.7); }
.keys-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.keys-head h2 { margin: 0; font-size: 20px; font-weight: 650; }
.keys-close { padding: 4px 10px; font-size: 13px; color: var(--soft); background: none; border: 1px solid var(--line); border-radius: 6px; }
.keys-close:hover { border-color: var(--muted); color: var(--ink); }
.keys-groups { display: grid; gap: 18px; }
.keys h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.keys dl { margin: 0; }
.keys dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 34px; border-top: 1px solid var(--line); }
.keys dt { font-size: 13px; color: var(--muted); }
.keys dd { margin: 0; font-size: 14px; }
.keys kbd { display: inline-block; min-width: 22px; padding: 1px 6px; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink); text-align: center; background: var(--raised); border: 1px solid var(--line); border-radius: 4px; }
@media (max-width: 480px) { .keys dl > div { grid-template-columns: 120px minmax(0, 1fr); } }

/* Rubriques */

.site-nav-mobile { display: none; }
.site-nav-inner { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.site-nav a { flex: none; font-size: 14px; font-weight: 550; color: var(--muted); text-decoration: none; transition: color 150ms ease-out; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }

.view-tabs { display: flex; align-items: center; gap: 22px; min-height: 22px; margin-top: 16px; }
.view-tabs a { font-size: 14px; font-weight: 550; color: var(--muted); text-decoration: none; transition: color 150ms ease-out; }
.view-tabs a:hover { color: var(--ink); }
.view-tabs a[aria-current="true"] { color: var(--brass); }
.view-hint { font-size: 13px; color: var(--muted); }

/* Chargement : rien ne saute, rien ne clignote. */
main { min-height: 72vh; transition: opacity 120ms ease-out 80ms; }
main.is-stale { opacity: 0.45; pointer-events: none; }
.sk { display: inline-block; height: 12px; background: var(--raised-2); border-radius: 4px; }
.sk-grow { flex: 1; }
.sk-row { display: flex; align-items: center; gap: 24px; height: 60px; padding-inline: 12px; border-top: 1px solid var(--line); }
.sk-day { width: 52px; height: 48px; }
.sk-title { display: block; width: 180px; height: 22px; margin-bottom: 14px; }
.sk-h1 { width: 280px; height: 44px; }
.sk-select { width: 120px; height: 36px; border-radius: 8px; background: var(--raised); }
.sk-facts { display: flex; gap: 32px; margin-top: 22px; }
.sk-facts .sk { width: 92px; height: 40px; }

.team-mark {
  display: grid;
  place-items: center;
  width: var(--size, 28px);
  height: var(--size, 28px);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--raised-2);
  border-radius: 6px;
}
.team-a.lost .team-mark, .team-b.lost .team-mark { opacity: 0.7; }

.action {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 150ms ease-out;
}
.action:hover { border-color: var(--muted); }

/* Tableaux de stats */

.panel { padding-top: 32px; }
.panel h2 { margin: 0 0 6px; font-size: 18px; font-weight: 700; font-stretch: 104%; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.panel-head h2 { margin: 0; }
.panel-note { margin: 0 0 12px; font-size: 13px; color: var(--muted); max-width: 70ch; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 8px; text-align: right; white-space: nowrap; }
.data-table .text { text-align: left; }
.data-table thead th { padding-block: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.data-table thead button { padding: 3px 0; font-size: 12px; font-weight: 500; color: var(--muted); background: none; border: 0; transition: color 150ms ease-out; }
.data-table thead button:hover { color: var(--ink); }
.data-table thead th[aria-sort] button { color: var(--brass); }
.data-table tbody tr { border-top: 1px solid var(--line); transition: background-color 150ms ease-out; }
.data-table tbody tr:hover { background: var(--raised); }
.data-table tbody th { font-weight: 600; }
.data-table a { font-weight: 600; text-decoration: none; }
.data-table a:hover { color: var(--brass); }
.data-table small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.data-table b { font-weight: 700; }
.rank { color: var(--muted); }
.with-logo-link { display: inline-flex; align-items: center; gap: 9px; }
.with-logo-link:hover span, .player-team .with-logo-link:hover { color: var(--brass); }

.presence { display: inline-block; vertical-align: middle; width: 56px; height: 4px; margin-right: 8px; background: var(--raised-2); border-radius: 2px; overflow: hidden; }
.presence i { display: block; height: 100%; background: var(--brass); }

.table-more {
  display: block;
  margin-top: 12px;
  padding: 8px 14px;
  font-size: 14px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 150ms ease-out;
}
.table-more:hover { border-color: var(--muted); }

.masked-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 32px; padding: 18px 20px; background: var(--raised); border-radius: 10px; }
.masked-panel p { margin: 0; color: var(--soft); }
.masked-panel button { padding: 7px 14px; font-weight: 600; color: var(--brass-ink); background: var(--brass); border: 0; border-radius: 8px; }

.triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 10px; }
.triple .section-label { margin-top: 18px; }
h2.section-label { font-weight: 600; }
.champ-pool a { text-decoration: none; }
.champ-pool a:hover { color: var(--brass); }

/* Comparateur */

.pickers { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 16px; margin-top: 22px; }
.versus-word { padding-top: 12px; font-size: 13px; color: var(--muted); }
.picker { min-width: 0; }
.picker.is-chosen { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 12px; background: var(--raised); border-radius: 8px; }
.picker.is-chosen strong { min-width: 0; flex: 1; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker.is-chosen a { flex: none; font-size: 13px; color: var(--muted); }
.picker input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: var(--raised);
  border: 1px solid transparent;
  border-radius: 8px;
  appearance: none;
  transition: border-color 150ms ease-out;
}
.picker input:focus { outline: none; border-color: var(--brass); }
.picker input::placeholder { color: var(--muted); }
.picker input::-webkit-search-cancel-button { display: none; }
.picker-results { margin-top: 2px; border-radius: 8px; overflow: hidden; }

.compare-names { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; font-size: 18px; }
.compare-names strong:last-child { text-align: right; }
.compare-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 16px; }
.compare-row span:last-child { text-align: right; }
.compare-row .lead { font-weight: 700; color: var(--brass); }
.compare-label { font-size: 13px; color: var(--muted); text-align: center; }
.compare-panel h2 { margin-top: 28px; }
.faceoff { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 4px; font-size: 16px; }
.faceoff b { font-size: 34px; font-weight: 700; font-stretch: 72%; }
.faceoff i { font-style: normal; color: var(--muted); }

/* En-tete de page */

.page-head {
  max-width: 1240px;
  margin-inline: auto;
  padding: 30px var(--gutter) 16px;
}
.page-title-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; min-height: 48px; }
h1 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.05;
  font-weight: 750;
  font-stretch: 108%;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.page-sub { margin: 12px 0 0; max-width: 70ch; font-size: 16px; color: var(--soft); text-wrap: pretty; }
.page-sub a { font-weight: 600; color: var(--ink); }
.page-sub a:hover { color: var(--brass); }

.select { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.select select {
  height: 36px;
  max-width: 210px;
  padding: 0 28px 0 10px;
  font-size: 14px;
  color: var(--ink);
  background: var(--raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 3.5l4 4 4-4' fill='none' stroke='%23a3ad9c' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center / 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  appearance: none;
  cursor: pointer;
  transition: border-color 150ms ease-out;
}
.select select:hover { border-color: var(--line); }
.select option, .select optgroup { background: var(--raised); color: var(--ink); }

.leagues {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 16px calc(var(--gutter) * -1) 0;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.leagues::-webkit-scrollbar { display: none; }
.league {
  flex: none;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.league:first-child { min-width: 104px; text-align: center; }
.league:hover { background: var(--raised); color: var(--ink); }
.league[aria-current="true"] { background: var(--raised-2); color: var(--ink); }
.selects { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
/* « Comparer » et le filtre d'annee restent sur une ligne, sans se decaler. */
.page-title-row .selects:has(.action) { flex: none; flex-wrap: nowrap; }

/* Barre des jours */

.days-bar {
  position: sticky;
  top: var(--bar-height);
  z-index: 4;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.days-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 1240px;
  height: var(--days-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.days {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  /* Les jours s'estompent au bord au lieu d'etre coupes net. */
  mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
.days::-webkit-scrollbar { display: none; }
.days-month {
  flex: none;
  margin: 0 2px 0 8px;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 650;
  color: var(--soft);
  white-space: nowrap;
  text-transform: capitalize;
  background: none;
  border: 0;
  border-radius: 6px;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.days-month:first-child { margin-left: 0; }
.days-month:hover { background: var(--raised); color: var(--ink); }
.days a {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 38px;
  padding: 3px 0;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease-out, background-color 150ms ease-out;
}
.days a small { font-size: 10px; line-height: 1.2; }
.days a b { font-size: 14px; line-height: 1.2; font-weight: 600; }
.days a:hover { background: var(--raised); color: var(--ink); }
.days a.is-today b { color: var(--brass); }
.days a[aria-current="date"] { background: var(--raised-2); color: var(--ink); }
.day-step, .day-today {
  flex: none;
  height: 32px;
  color: var(--soft);
  background: none;
  border: 0;
  border-radius: 7px;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.day-step { width: 28px; display: grid; place-items: center; }
.day-step svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.day-today { margin-left: 6px; padding: 0 10px; font-size: 13px; font-weight: 550; border: 1px solid var(--line); }
.day-step:hover:not(:disabled), .day-today:hover { background: var(--raised); color: var(--ink); }
.day-step:disabled { color: var(--line); cursor: default; }

/* Phases d'un tournoi */
.stage-tabs { display: flex; gap: 2px; padding-top: 22px; overflow-x: auto; scrollbar-width: none; }

.panel h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--soft); }
.panel h3 small { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; color: var(--muted); }

.m-card { display: block; padding: 3px 0; color: inherit; text-decoration: none; background: var(--raised); border-radius: 8px; transition: background-color 150ms ease-out; }
a.m-card:hover { background: var(--raised-2); }
.m-card.is-planned .m-mark { background: var(--raised-2); border-radius: 6px; }
.m-side { display: grid; grid-template-columns: 22px minmax(0, 1fr) 18px; align-items: center; gap: 8px; height: 30px; padding-inline: 9px; font-size: 13px; }
.m-mark { display: block; width: 22px; height: 22px; }
.m-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-score { text-align: right; font-size: 15px; font-weight: 650; font-stretch: 80%; }
.m-side.won .m-name { font-weight: 650; }
.m-side.lost, .m-side.tbd { color: var(--muted); }
.m-side.lost .team-logo { opacity: 0.6; }
.m-card .team-mark { font-size: 9px; }

.bracket-scroll { padding-bottom: 6px; }
.bracket { display: flex; gap: 20px; min-width: min-content; }
.b-col { flex: 1 1 160px; display: flex; flex-direction: column; min-width: 140px; max-width: 300px; }
.scroll, .days { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.b-body { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.b-pair { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
/* Les traits de l'arbre sont de la donnee : ils relient chaque paire au match suivant. */
.is-balanced .b-pair::after {
  content: "";
  position: absolute;
  top: 25%;
  bottom: 25%;
  right: -16px;
  width: 16px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 6px 6px 0;
}
.is-balanced .has-feed .m-card { position: relative; }
.is-balanced .has-feed .m-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -16px;
  width: 16px;
  border-top: 1px solid var(--line);
}

.swiss { display: grid; grid-template-columns: repeat(var(--rounds), minmax(196px, 1fr)); gap: 24px; min-width: min-content; }
.s-group { margin-bottom: 16px; }
.s-group h4 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.s-group .m-card + .m-card { margin-top: 6px; }
.s-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.s-list ul { margin: 0; padding: 0; list-style: none; }
.s-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 32px; font-size: 13px; border-top: 1px solid var(--line); }
.s-list li span:not(.team-mark) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-list b { font-weight: 600; color: var(--muted); }
.s-list.up h3 { color: var(--brass); }
.s-list .team-mark { font-size: 9px; }

main { display: block; max-width: 1240px; margin-inline: auto; padding: 0 var(--gutter) 40px; }

.state { margin: 0; padding-block: 56px; font-size: 16px; color: var(--soft); }
.state button, .retry {
  margin-left: 8px;
  padding: 4px 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.note { margin: 0; padding-top: 20px; max-width: 70ch; font-size: 14px; color: var(--muted); }

.next-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0;
  padding-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.next-stages b { font-weight: 600; color: var(--soft); }

/* Journee */

.day {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: 24px;
  padding-top: 22px;
}
.day-date {
  position: sticky;
  top: calc(var(--bar-height) + var(--days-height) + 18px);
  align-self: start;
  margin: 0;
  font-weight: 400;
}
/* La derniere journee chargee peut, elle aussi, venir se caler en haut de l'ecran. */
.day:last-of-type { min-height: calc(100vh - var(--bar-height) - var(--days-height)); }
.day-num {
  display: block;
  font-size: 52px;
  line-height: 0.9;
  font-weight: 650;
  font-stretch: 70%;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.day-label { display: block; margin-top: 8px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.day-label span { display: block; }
.day-label span::first-letter { text-transform: uppercase; }
.day.is-today .day-num { color: var(--brass); }
.day.is-today .day-label { color: var(--soft); }

.match + .match { border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 40px 16px 40px minmax(0, 1fr) 150px 16px;
  grid-template-areas: "time a sa sep sb b meta chev";
  column-gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 8px 12px;
  background: none;
  border: 0;
  border-radius: 10px;
  text-align: left;
  transition: background-color 150ms ease-out;
}
.row[role="button"] { cursor: pointer; }
.row[role="button"]:hover, button.row:hover { background: var(--raised); }
a.team-name { color: inherit; text-decoration: none; }
a.team-name:hover { color: var(--brass); }
/* Le curseur du clavier : dessine a l'interieur, il n'est jamais coupe par la barre des jours. */
.row:focus-visible { outline-offset: -2px; border-radius: 10px; background: var(--raised); }
.row.is-open { background: var(--raised); border-radius: 10px 10px 0 0; }
.row.is-masked { grid-template-areas: "time a r r r b meta chev"; }

.time { grid-area: time; font-size: 13px; color: var(--muted); }
.team-a, .team-b {
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-a, .team-b { display: flex; align-items: center; gap: 10px; }
.team-a { grid-area: a; justify-content: flex-end; text-align: right; }
.team-b { grid-area: b; }
.team-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.logo-slot { display: block; flex: none; width: 28px; height: 28px; }
.team-logo { display: block; flex: none; width: var(--size, 28px); height: var(--size, 28px); object-fit: contain; }
.team-logo.on-light { padding: 2px; background: oklch(0.86 0.012 95); border-radius: 6px; }
.team-a.lost .team-logo, .team-b.lost .team-logo { opacity: 0.6; }
.team-a.won, .team-b.won { font-weight: 650; }
.team-a.lost, .team-b.lost, .team-a.tbd, .team-b.tbd { color: var(--muted); }

.num {
  font-size: 28px;
  line-height: 1;
  font-weight: 650;
  font-stretch: 72%;
  text-align: center;
}
.num.a { grid-area: sa; }
.num.b { grid-area: sb; }
.num.lost { color: var(--muted); font-weight: 650; }
.sep { grid-area: sep; text-align: center; color: var(--muted); }

.match { position: relative; }
.watch { position: absolute; left: 12px; top: 39px; display: grid; place-items: center; width: 18px; height: 18px; color: var(--muted); border-radius: 4px; transition: color 150ms ease-out; }
.watch:hover { color: var(--brass); }
.watch svg { width: 11px; height: 11px; fill: currentColor; }
.watch-link { display: inline-block; margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--brass); text-decoration: none; }
.watch-link:hover { color: var(--ink); }

.next-stages a { color: inherit; text-decoration: none; }
.next-stages a:hover b { color: var(--brass); }
.next-stages a:hover { color: var(--brass); }

.pending, .reveal { grid-area: r; text-align: center; font-size: 13px; color: var(--muted); }
.reveal { font-weight: 600; color: var(--brass); }

.meta { grid-area: meta; min-width: 0; text-align: right; font-size: 12px; line-height: 1.35; color: var(--muted); }
.meta b, .meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta b { font-weight: 600; color: var(--soft); }

.chevron {
  grid-area: chev;
  width: 10px;
  height: 10px;
  justify-self: end;
  color: var(--muted);
  transition: transform 180ms var(--ease);
}
.row[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Feuille de match */

.detail {
  padding: 8px 20px 26px;
  margin-bottom: 8px;
  background: var(--raised);
  border-radius: 0 0 10px 10px;
  animation: reveal 200ms var(--ease);
}
.detail-msg { margin: 0; padding-block: 8px; color: var(--soft); }

@keyframes reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 -8px 18px; }
.tabs button {
  padding: 6px 10px;
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 7px;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--raised-2); color: var(--ink); }
.tabs small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }

.detail-note { margin: 0 0 14px; font-size: 13px; color: var(--muted); }

/* L'avant-match reprend les colonnes de la ligne du match : le score tombe sous « à venir », l'equipe de droite sous son logo. */
.detail.is-preview { padding-inline: 12px; }
.preview, .h2h { display: grid; grid-template-columns: 50px minmax(0, 1fr) 40px 16px 40px minmax(0, 1fr) 150px 16px; column-gap: 8px; }
.preview > section:first-child { grid-column: 1 / 3; }
.preview > section:last-child { grid-column: 6 / 9; }
.h2h { margin-bottom: 10px; align-items: center; text-align: center; }
.h2h b { font-size: 30px; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; color: var(--soft); }
.h2h b.is-lead { color: var(--brass); }
.h2h i { grid-column: 4; font-style: normal; color: var(--muted); }
.h2h-a { grid-column: 3; }
.h2h-b { grid-column: 5; }
.h2h-none { margin: 0 0 18px; font-size: 14px; color: var(--soft); }
.h2h-list { margin: 4px 0 26px; padding: 0; list-style: none; }
.h2h-meeting { display: grid; grid-template-columns: 50px minmax(0, 1fr) 40px 16px 40px minmax(0, 1fr) 150px 16px; column-gap: 8px; padding-block: 6px; text-align: center; }
.h2h-result { grid-column: 3 / 6; display: grid; grid-template-columns: 40px 16px 40px; column-gap: 8px; align-items: center; min-height: 26px; font-size: 15px; color: var(--muted); text-decoration: none; border-radius: 6px; transition: background-color 150ms ease-out; }
.h2h-result:hover { background: var(--raised-2); }
.h2h-result b { font-weight: 650; }
.h2h-result b.is-lead { color: var(--ink); }
.h2h-result i { font-style: normal; }
.h2h-context { grid-column: 2 / 7; display: flex; justify-content: center; gap: 8px; margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.h2h-context a { color: var(--soft); text-decoration: none; }
.h2h-context a:hover { color: var(--brass); }
.preview-team { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 650; }
.preview-team a { text-decoration: none; }
.preview-team a:hover { color: var(--brass); }
.preview h4 { margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--soft); }
.preview h4 small { font-size: 12px; font-weight: 400; color: var(--muted); }
.preview-form { margin: 0; padding: 0; list-style: none; }
.preview-form li { border-top: 1px solid var(--line); }
.preview-form a { display: grid; grid-template-columns: 18px 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 30px; font-size: 14px; color: inherit; text-decoration: none; transition: background-color 150ms ease-out; }
.preview-form a:hover { background: var(--raised-2); }
.preview-form b { font-weight: 700; color: var(--muted); }
.preview-form b.result-V { color: var(--brass); }
.preview-opponent { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-form small { font-size: 12px; color: var(--muted); }
.preview-champs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.preview-champs li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); }
@media (max-width: 960px) {
  .detail.is-preview { padding-inline: 8px; }
  .preview { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .preview > section:first-child, .preview > section:last-child { grid-column: auto; }
  .h2h { grid-template-columns: minmax(0, 1fr) 40px 16px 40px minmax(0, 1fr); }
  .h2h-meeting { grid-template-columns: minmax(0, 1fr) 40px 16px 40px minmax(0, 1fr); }
  .h2h-result { grid-column: 2 / 5; }
  .h2h-context { grid-column: 1 / 6; flex-wrap: wrap; }
  .h2h-a { grid-column: 2; }
  .h2h i { grid-column: 3; }
  .h2h-b { grid-column: 4; }
}
@media (max-width: 720px) { .preview { grid-template-columns: minmax(0, 1fr); row-gap: 24px; } }

.overview { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; margin-bottom: 28px; }
.overview h3, .lineup-head h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--soft); }
.overview > div > h3 { margin-bottom: 10px; }

.curve { display: block; width: 100%; height: auto; overflow: visible; }
.curve text { font: 500 11px "Archivo", sans-serif; fill: var(--muted); }
.curve .value { font-weight: 650; }
.curve .zero { stroke: var(--line); stroke-width: 1; }
.curve .trace { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.curve .dot { fill: var(--ink); }
.curve-legend { display: flex; justify-content: space-between; gap: 16px; margin-top: 6px; font-size: 13px; }
.dot-blue, .dot-red { font-weight: 600; }
.dot-blue { color: var(--blue); }
.dot-red { color: var(--red); }

.tug { margin: 0; }
.tug-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: baseline; column-gap: 8px; margin-bottom: 9px; }
.tug-row dt { grid-column: 2; grid-row: 1; text-align: center; font-size: 12px; color: var(--muted); }
.tug-row dd { margin: 0; grid-row: 1; font-weight: 600; font-size: 15px; }
.tug-row dd.blue { grid-column: 1; text-align: left; }
.tug-row dd.red { grid-column: 3; text-align: right; }
.tug-row dd.behind { font-weight: 400; color: var(--soft); }
.tug-row dd.tug-bar { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 2px; height: 4px; margin-top: 4px; }
.tug-bar i { display: block; min-width: 2px; border-radius: 2px; }
.tug-bar .blue { background: var(--blue); }
.tug-bar .red { background: var(--red); }

.lineups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.lineup-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; min-height: 40px; }
.lineup-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
h1.with-logo { display: flex; align-items: center; gap: 18px; }
.team-list li { display: flex; align-items: center; gap: 9px; }
.search-option b { display: inline-flex; align-items: center; gap: 8px; }
.lineup-name { font-size: 18px; font-weight: 700; text-decoration: none; }
a.lineup-name:hover { color: var(--brass); }
.lineup-side { display: block; font-size: 12px; font-weight: 500; }
.lineup-side.Blue { color: var(--blue); }
.lineup-side.Red { color: var(--red); }
.bans { display: flex; gap: 3px; flex: none; align-items: center; opacity: 0.72; }

.champ {
  display: inline-block;
  flex: none;
  width: var(--size, 34px);
  height: var(--size, 34px);
  border-radius: 6px;
  object-fit: cover;
  background: var(--raised-2);
}
.champ-fallback {
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--soft);
}

.scroll { overflow-x: auto; }
.players { width: 100%; border-collapse: collapse; font-size: 13px; }
.players th, .players td { padding: 7px 4px; text-align: right; white-space: nowrap; }
.players thead th { padding-block: 4px; font-size: 11px; font-weight: 500; color: var(--muted); }
.players tbody tr { border-top: 1px solid var(--line); }
.players .who { text-align: left; font-weight: 400; }
.who-inner { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.who a { display: block; font-size: 14px; font-weight: 600; text-decoration: none; }
.who a:hover { color: var(--brass); }
.who small { display: block; font-size: 12px; color: var(--muted); }
.kda { font-weight: 600; }
.dmg-bar { display: block; height: 2px; margin-top: 3px; background: var(--soft); border-radius: 1px; margin-left: auto; }
.up { color: var(--brass); font-weight: 600; }
.patch { margin: 16px 0 0; font-size: 12px; color: var(--muted); }

.more {
  display: block;
  margin: 36px auto 0;
  padding: 10px 18px;
  font-size: 14px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 150ms ease-out;
}
.more:hover:not(:disabled) { border-color: var(--muted); }
.more:disabled { color: var(--muted); cursor: default; }

/* Fiches equipe et joueur */

.facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 22px 0 0; }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-size: 22px; font-weight: 650; font-stretch: 85%; }
.facts dd.hidden-value { font-size: 15px; font-weight: 500; line-height: 32px; color: var(--muted); }

.side-list { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px; }
.side-list a { font-weight: 600; text-decoration: none; }
.side-list a:hover { color: var(--brass); }
.side-list small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

.champ-pool { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 22px 0 0; padding: 0; list-style: none; }
.champ-pool li { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.champ-pool small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.section-label { margin: 28px 0 0; font-size: 13px; font-weight: 600; color: var(--soft); }
.section-label + ul { margin-top: 10px; }
.people-list { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.people-list a { font-weight: 600; text-decoration: none; }
.people-list a:hover { color: var(--brass); }
.people-list small { display: block; font-size: 12px; color: var(--muted); }
.player-team .with-logo-link { display: inline-flex; align-items: center; gap: 6px; vertical-align: bottom; font-weight: 600; }
.page-head .view-tabs { margin-top: 24px; }
.roster-year { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.roster-year:first-child { margin-top: 12px; }
.roster-year h2 { margin: 0; font-size: 18px; font-weight: 650; }
.roster-year h2 a { text-decoration: none; }
.roster-year h2 a:hover { color: var(--brass); }
@media (max-width: 720px) { .roster-year { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

.page-head .select { margin-top: 24px; }
.page-title-row .selects:has(.action) .select { margin-top: 0; }

.foot { max-width: 1240px; margin: 32px auto 0; padding: 20px var(--gutter) 40px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.foot p { margin: 0 0 6px; text-wrap: pretty; }
.foot-idea, .nav-idea { padding: 0; font: inherit; color: var(--soft); background: none; border: 0; cursor: pointer; }
.foot-idea { font-weight: 600; color: var(--ink); }
.nav-idea:hover { color: var(--ink); }
.foot-idea:hover { color: var(--brass); }
.nav-idea { font-weight: 500; color: var(--muted); white-space: nowrap; }
@media (min-width: 721px) and (max-width: 1000px) { .bar .nav-idea, .keys-open { display: none; } }
.idea form { display: grid; gap: 10px; }
.idea label { font-size: 14px; color: var(--soft); }
.idea textarea { width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.idea textarea:focus { outline: none; border-color: var(--brass); }
.idea-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.idea-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.idea-status { flex: 1; font-size: 13px; color: var(--soft); }
.idea button[type="submit"] { padding: 8px 18px; font-weight: 600; color: var(--brass-ink); background: var(--brass); border: 0; border-radius: 8px; }
.idea button[type="submit"]:disabled { opacity: 0.6; }
.idea-note { margin: 0; font-size: 12px; color: var(--muted); }

/* Apercu des fiches */
.overview-page { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; margin-top: 8px; }
.overview-block { margin-bottom: 34px; }
.overview-block h2 { margin: 0 0 14px; font-size: 18px; font-weight: 650; }
.overview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.overview-head a { font-size: 13px; color: var(--soft); text-decoration: none; }
.overview-head a:hover { color: var(--brass); }
.overview-sub { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--soft); }
.overview-sub small { font-size: 12px; font-weight: 400; color: var(--muted); }
.palmares { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.palmares-tile { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px; color: inherit; text-decoration: none; background: var(--raised); border-radius: 8px; transition: background-color 150ms ease-out; }
.palmares-tile:hover { background: var(--raised-2); }
.palmares-tile b { font-size: 15px; font-weight: 650; }
.palmares-tile.is-international { background: color-mix(in oklch, var(--brass) 13%, var(--raised)); }
.palmares-tile.is-international:hover { background: color-mix(in oklch, var(--brass) 20%, var(--raised)); }
.palmares-tile.is-international b { color: var(--brass); }
.palmares-tile.is-regional b { color: var(--regional); }
.palmares-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.palmares-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--ink); }
.palmares-legend .is-international::before { background: var(--brass); }
.palmares-legend .is-regional::before { background: var(--regional); }
.palmares-tile span { font-size: 13px; color: var(--soft); }
.palmares-tile small { font-size: 12px; color: var(--muted); }
.palmares.is-finals .palmares-tile b { font-size: 14px; font-weight: 600; }
.palmares.is-finals .palmares-tile.is-league b { color: var(--soft); }
.overview-block .panel-note { margin-top: 12px; }
.people-rows, .champ-rows { margin: 0; padding: 0; list-style: none; }
.people-rows li { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; min-height: 32px; border-top: 1px solid var(--line); font-size: 15px; }
.people-rows small { font-size: 12px; color: var(--muted); }
.people-rows a { font-weight: 600; text-decoration: none; }
.people-rows a:hover { color: var(--brass); }
.champ-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; border-top: 1px solid var(--line); font-size: 14px; }
.champ-rows a { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; text-decoration: none; }
.champ-rows a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.champ-rows a:hover span { color: var(--brass); }
.champ-rows small { flex: none; font-size: 12px; color: var(--muted); }
.preview-form small { white-space: nowrap; }
@media (max-width: 1040px) { .overview-page { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* Tablette : les colonnes de la feuille de match s'empilent */

@media (max-width: 1040px) {
  .triple { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .overview, .lineups { grid-template-columns: minmax(0, 1fr); }
  .lineup-head { min-height: 0; }
}

/* Sous cette largeur, tableau d'affichage sur deux lignes : plus aucun nom coupe */

@media (max-width: 960px) {
  .row, .row.is-masked {
    grid-template-columns: 44px minmax(0, 1fr) 34px 12px;
    column-gap: 6px;
    row-gap: 2px;
    min-height: 0;
    padding: 10px 8px;
  }
  .row { grid-template-areas: "time meta meta chev" "a a sa ." "b b sb ."; }
  .row.is-masked { grid-template-areas: "time meta meta chev" "a a r r" "b b r r"; grid-template-columns: 44px minmax(0, 1fr) 62px 12px; }
  .team-a, .team-b { font-size: 16px; white-space: normal; text-align: left; gap: 8px; }
  .team-a { flex-direction: row-reverse; }
  .logo-slot { width: 22px; height: 22px; }
  .logo-slot .team-logo, .logo-slot .team-mark { width: 22px; height: 22px; font-size: 9px; }
  .watch { left: 56px; top: 10px; }
  .keys-open { display: none; }
  .page-title-row { gap: 10px; min-height: 0; }
  .num { font-size: 24px; text-align: right; }
  .sep { display: none; }
  .meta b, .meta span { display: inline; }
  .meta b + span::before { content: " · "; }
  .pending, .reveal { text-align: right; align-self: center; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --bar-height: 56px; }
  .bar .site-nav { display: none; }
  .site-nav-mobile { display: block; border-bottom: 1px solid var(--line); }
  .site-nav-mobile .site-nav-inner { padding: 10px var(--gutter); }
  .bar-inner { gap: 10px; }
  .search { flex: 1 1 auto; margin-left: 0; }
  .wordmark svg { height: 12px; }
  .search kbd { display: none; }
  .search input { padding-right: 10px; }
  .search-results { position: fixed; top: var(--bar-height); left: 0; right: 0; max-height: calc(100vh - var(--bar-height)); border-inline: 0; border-radius: 0 0 10px 10px; }
  .spoiler { width: 38px; padding: 0; justify-content: center; }
  .spoiler span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .page-head { padding-top: 28px; padding-bottom: 14px; }
  .page-sub { font-size: 15px; }
  .leagues { margin-top: 16px; }

  .day { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .day-date {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
  }
  .day-num { font-size: 40px; }
  .day-label { margin-top: 0; }
  .day-label { display: inline-flex; flex-direction: row-reverse; gap: 5px; }
  .day-label span::first-letter { text-transform: none; }

  .days-inner { padding-inline: 8px; gap: 0; }
  .day-today { margin-left: 2px; padding: 0 8px; font-size: 12px; }
  .s-lists { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .b-col { flex-basis: 150px; }
  .pickers { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .versus-word { padding-top: 0; text-align: center; }
  .data-table th, .data-table td { padding: 7px 6px; font-size: 13px; }
  .data-table tbody th.first { position: sticky; left: 0; background: var(--bg); }

  .detail { padding-inline: 12px; }
  /* La vision part en premier : le tableau tient alors sans defilement horizontal. */
  .players th:nth-child(5), .players td:nth-child(5) { display: none; }
  .players th, .players td { padding-inline: 3px; }
  .players .who { white-space: normal; }
  .who-inner { min-width: 118px; gap: 7px; }
  .who .champ { --size: 30px !important; }
  .more { margin-left: 0; width: 100%; }
  .facts { gap: 8px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.day-shift { margin-left: 2px; font-size: 10px; font-weight: 600; color: var(--muted); }

.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.leader { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px; background: var(--raised); border-radius: 8px; transition: background-color 150ms ease-out; }
.leader:hover { background: var(--raised-2); }
.leader span { font-size: 12px; color: var(--muted); }
.leader b { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.leader small { font-size: 13px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader:hover small { color: var(--brass); }
.foot a { color: var(--soft); }
.foot a:hover { color: var(--brass); }
