/* Freefight, maquette jetable. Fond de la nuit du jeu, couleurs des corps comme couleurs d'équipe. */
:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--nuit);
  color: var(--encre);
  font:
    400 1rem/1.5 'Barlow',
    'DejaVu Sans',
    sans-serif;
  font-variant-numeric: tabular-nums;
}
a {
  color: var(--clair);
  text-decoration-color: var(--filet);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: currentColor;
}
a:focus-visible {
  outline: 2px solid var(--etincelle);
  outline-offset: 2px;
  border-radius: 2px;
}
img {
  display: block;
}
h1,
h2,
h3 {
  font-family: 'Barlow Condensed', 'DejaVu Sans', sans-serif;
  color: var(--clair);
  margin: 0;
  line-height: 1.05;
}
small {
  color: var(--gris);
}
.gris {
  color: var(--gris);
}
.n {
  text-align: right;
}

/* En-tête : la marque et la bande des huit couleurs */
.entete-in {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 16px 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.marque {
  font:
    italic 800 2.1rem/1 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
  color: var(--clair);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.entete nav {
  display: flex;
  gap: 22px;
  font:
    700 1.1rem/1 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
}
.entete nav a {
  text-decoration: none;
  color: var(--gris);
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
}
.entete nav a[aria-current='page'] {
  color: var(--clair);
  border-bottom-color: var(--clair);
}
.evitement {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--clair);
  color: var(--nuit);
  padding: 8px 12px;
  z-index: 10;
}
.evitement:focus {
  left: 16px;
}
.bande span {
  background: var(--c);
}
.bande {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  height: 5px;
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* L'affiche du jour : le carton « VS » de la vidéo, en page */
.affiche {
  margin: 24px 0 8px;
  background: linear-gradient(
    104deg,
    var(--a) 0 49.6%,
    var(--nuit) 49.6% 50.4%,
    var(--b) 50.4% 100%
  );
  color: var(--nuit);
  padding: 18px clamp(16px, 4vw, 40px) 20px;
}
.affiche a {
  color: var(--nuit);
  text-decoration-color: var(--nuit);
}
.aff-meta {
  margin: 24px 0 8px;
  font:
    700 1.15rem/1.3 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
  color: var(--clair);
}
.aff-meta + .affiche {
  margin-top: 0;
}
.aff-duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.aff-cote {
  display: grid;
  justify-items: start;
  text-decoration: none;
  gap: 2px;
}
.aff-cote.b {
  justify-items: end;
  text-align: right;
}
.aff-buste {
  width: 132px;
  height: 132px;
  background: var(--nuit);
  border-radius: 50%;
  margin-bottom: 6px;
  padding: 8px 0 0 14px;
}
.aff-nom {
  font:
    italic 800 clamp(3.2rem, 9vw, 7.5rem)/0.9 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
  letter-spacing: -0.02em;
}
.aff-signe {
  font-weight: 600;
}
.aff-chiffres {
  font-size: 0.95rem;
}
.aff-chiffres b {
  font:
    700 1.25rem/1 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
  margin-left: 6px;
}
.aff-chiffres b:first-child {
  margin-left: 0;
}
.aff-contre {
  font:
    700 1.2rem/1 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
  background: var(--nuit);
  color: var(--clair);
  padding: 8px 10px;
}
.aff-bas {
  margin: 14px 0 0;
  font-weight: 400;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.bouton {
  display: inline-block;
  background: var(--nuit);
  color: var(--clair) !important;
  text-decoration: none;
  font:
    700 1.05rem/1 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
  padding: 10px 14px;
}

/* Grille de l'accueil */
.grille {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0 40px;
}
.grille .hier,
.grille .semaine-en-cours,
.grille .derniers {
  grid-column: 1;
}
.grille .classement {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.grille .palm {
  grid-column: 2;
  grid-row: 3;
}
.bloc {
  margin-top: 32px;
}
.bloc > h2 {
  font-size: 1.6rem;
  font-weight: 700;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--filet);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.bloc > h2 small {
  font:
    400 0.95rem 'Barlow',
    'DejaVu Sans',
    sans-serif;
}
.phrase {
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--clair);
  margin: 0 0 8px;
  max-width: 40em;
}
.elo-mvt {
  margin: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font:
    700 1.1rem 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
}
.elo-mvt span {
  border-left: 4px solid var(--c);
  padding-left: 6px;
  color: var(--clair);
}
.note {
  color: var(--gris);
  font-size: 0.95rem;
}
.live {
  color: var(--etincelle);
}

/* Noms en couleur d'équipe */
a.nom {
  text-decoration: none;
  font-weight: 600;
  color: var(--clair);
  border-bottom: 2px solid var(--c);
}
a.nom:hover {
  color: var(--c);
}

/* Tableaux de stats */
table.stats {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.stats th {
  font:
    700 0.95rem/1.2 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
  color: var(--gris);
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--filet);
}
.stats tbody th {
  font:
    400 0.98rem/1.5 'Barlow',
    'DejaVu Sans',
    sans-serif;
  color: var(--encre);
  padding: 8px;
  border-bottom: 1px solid var(--filet);
}
.stats td {
  padding: 8px;
  border-bottom: 1px solid var(--filet);
  vertical-align: middle;
}
.stats tbody tr td:first-child {
  border-left: 5px solid var(--c, var(--filet));
}
.stats td small,
.stats th small {
  display: block;
  font-size: 0.82rem;
}
.stats .rang {
  font:
    700 1.3rem/1 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
  color: var(--gris);
  width: 3em;
}
.stats .fort {
  font:
    700 1.45rem/1 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
  color: var(--clair);
}
.stats .qui {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stats .qui small {
  margin-top: 2px;
}
.stats .quand {
  white-space: nowrap;
}
.qui-v {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bat {
  color: var(--gris);
}
.mini {
  width: 36px;
  height: 36px;
  background: var(--panneau);
  border-radius: 50%;
  padding: 2px 0 0 4px;
  flex: none;
}
.res {
  font:
    700 1.05rem 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
}
.res.v {
  color: var(--clair);
}
.res.d {
  color: var(--gris);
}

/* Tableau de la semaine */
.stats caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tableau {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.b-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.b-liste {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 12px;
}
.b-col h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gris);
}
.b-match {
  background: var(--panneau);
}
.b-match.du-jour {
  outline: 2px solid var(--etincelle);
}
.b-tete,
.b-pied {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  font:
    700 0.9rem/1.2 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
  color: var(--gris);
}
.b-tete a {
  color: var(--clair);
  font-weight: 700;
  text-decoration: none;
}
.b-tete span::first-letter {
  text-transform: uppercase;
}
.b-pied {
  border-top: 1px solid var(--filet);
  font-weight: 700;
}
.b-ligne {
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  padding: 5px 8px;
  border-left: 5px solid var(--c, var(--filet));
  align-items: center;
}
.b-ligne + .b-ligne {
  border-top: 1px solid var(--filet);
}
.b-buste {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  padding: 2px 0 0 3px;
}
.b-nom {
  font:
    700 1.2rem/1.05 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
  color: var(--clair);
  text-decoration: none;
}
.b-signe {
  font-size: 0.8rem;
  color: var(--gris);
  line-height: 1.2;
}
.b-ligne.perd .b-nom {
  color: var(--gris);
}
.b-ligne.perd .b-buste {
  opacity: 0.5;
}
.b-ligne.vide {
  min-height: 52px;
  color: var(--gris);
}
.b-ligne.vide .b-nom {
  color: var(--gris);
  font-weight: 700;
  grid-column: 1 / -1;
}

/* Palmarès */
.palmares {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.palmares ol,
.palmares ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.titres li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--filet);
}
.titres .n {
  margin-left: auto;
  font:
    700 1.6rem/1 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
  color: var(--clair);
}
.champions li {
  padding: 6px 0;
  border-bottom: 1px solid var(--filet);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
}
.champions li > a:first-child {
  color: var(--gris);
  font:
    700 1rem 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
  min-width: 6em;
}
.champions .gris {
  font-size: 0.88rem;
}

/* Pages intérieures */
.titre-page {
  margin: 28px 0 0;
}
.titre-page h1 {
  font:
    italic 800 clamp(2.4rem, 7vw, 4.4rem)/0.95 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
}
.titre-page p {
  margin: 6px 0 0;
  color: var(--gris);
  font-size: 1.05rem;
}
.champion {
  margin: 18px 0 0;
  display: flex;
  gap: 12px;
  align-items: center;
  border-left: 6px solid var(--c);
  background: var(--panneau);
  padding: 10px 14px;
  color: var(--clair);
  font-size: 1.1rem;
}
.champion.en-cours {
  border-left-color: var(--etincelle);
}
.image-tableau img {
  width: min(100%, 460px);
  height: auto;
}
.pagin {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  font:
    700 1.15rem 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
}

.titre-accueil h1 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-style: normal;
  color: var(--gris);
  line-height: 1.2;
}

/* Fiche */
.fiche-tete {
  margin-top: 24px;
  background: var(--c);
  color: var(--nuit);
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 3vw, 32px);
  padding: 18px clamp(16px, 3vw, 32px);
}
.fiche-buste {
  width: 168px;
  height: 168px;
  background: var(--nuit);
  border-radius: 50%;
  padding: 12px 0 0 18px;
  flex: none;
}
.fiche-id h1 {
  color: var(--nuit);
  font:
    italic 800 clamp(3.4rem, 11vw, 7rem)/0.85 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
  letter-spacing: -0.02em;
}
.fiche-id p {
  margin: 6px 0 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.prochain {
  margin: 14px 0 0;
  color: var(--clair);
  border-left: 4px solid var(--etincelle);
  padding-left: 10px;
}
.chiffres {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 20px 0 0;
  border-bottom: 2px solid var(--filet);
}
.chiffres div {
  padding: 8px 12px 12px 0;
}
.chiffres div + div {
  border-left: 1px solid var(--filet);
  padding-left: 12px;
}
.chiffres dt {
  color: var(--gris);
  font:
    700 0.95rem 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
}
.chiffres dd {
  margin: 2px 0 0;
  font:
    700 2.6rem/1 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
  color: var(--clair);
}
.chiffres dd small {
  font:
    700 1rem 'Barlow Condensed',
    'DejaVu Sans',
    sans-serif;
  margin: 0 4px 0 2px;
}
.chiffres dd.serie {
  font-size: 1.5rem;
  line-height: 1.1;
}
.courbe {
  width: 100%;
  height: auto;
  max-width: 760px;
}
.courbe .g {
  stroke: var(--filet);
  stroke-width: 1;
}
.courbe .g-depart {
  stroke: var(--gris);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.courbe .g-s {
  stroke: var(--filet);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.courbe .g-t {
  fill: var(--gris);
  font:
    400 12px 'Barlow',
    'DejaVu Sans',
    sans-serif;
}
.courbe .l {
  fill: none;
  stroke: var(--c);
  stroke-width: 3;
  stroke-linejoin: round;
}
.courbe circle {
  fill: var(--c);
}

.pied {
  border-top: 2px solid var(--filet);
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  color: var(--gris);
  font-size: 0.92rem;
}
.pied a + a {
  margin-left: 16px;
}
.pied p {
  margin: 0 0 4px;
  max-width: 46em;
}

@media (max-width: 900px) {
  .grille {
    display: block;
  }
  .tableau {
    grid-template-columns: 1fr 1fr;
  }
  .tableau .b-col:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 620px) {
  .entete nav {
    gap: 16px;
    font-size: 1rem;
  }
  .affiche {
    background: linear-gradient(
      176deg,
      var(--a) 0 49.4%,
      var(--nuit) 49.4% 50.6%,
      var(--b) 50.6% 100%
    );
  }
  .aff-duel {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .aff-cote.b {
    justify-items: start;
    text-align: left;
  }
  .aff-contre {
    justify-self: start;
  }
  .aff-buste {
    width: 96px;
    height: 96px;
    padding: 6px 0 0 10px;
  }
  .tableau {
    grid-template-columns: 1fr;
  }
  .secondaire {
    display: none;
  }
  .stats td,
  .stats th {
    padding: 7px 5px;
  }
  .palmares {
    grid-template-columns: 1fr;
  }
  .chiffres {
    grid-template-columns: repeat(2, 1fr);
  }
  .chiffres div + div {
    border-left: 0;
    padding-left: 0;
  }
  .chiffres div:nth-child(even) {
    border-left: 1px solid var(--filet);
    padding-left: 12px;
  }
  .fiche-tete {
    flex-direction: column;
    align-items: flex-start;
  }
  .fiche-buste {
    width: 120px;
    height: 120px;
    padding: 8px 0 0 12px;
  }
}
