@font-face {
  font-family: "Inter Display";
  src: url("assets/fonts/inter-display-black.woff") format("woff");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #06080f;
  --ink: #f4f5fb;
  --mute: #aeb4cc;
  --line: rgba(190, 192, 220, .2);
  --gold: #ffcd3c;
  --red: #f0404c;
  --green: #00be5a;
  --sky: #6ebeff;
  --blue: #285af0;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --label: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 760px at 74% 340px, #1a2147 0, rgba(26, 33, 71, 0) 72%),
    radial-gradient(700px 500px at 8% 1200px, #141a38 0, rgba(20, 26, 56, 0) 72%),
    var(--bg);
  font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
/* les petites étincelles de la bannière de la chaîne */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1100px;
  pointer-events: none;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cg%3E%3Ccircle cx='40' cy='70' r='1.5' fill='%236ebeff'/%3E%3Ccircle cx='128' cy='22' r='1.2' fill='%23fff'/%3E%3Ccircle cx='210' cy='140' r='1.6' fill='%23ffcd00'/%3E%3Ccircle cx='320' cy='60' r='1.2' fill='%2300be5a'/%3E%3Ccircle cx='470' cy='110' r='1.6' fill='%23e61e2d'/%3E%3Ccircle cx='92' cy='238' r='1.2' fill='%23ffcd00'/%3E%3Ccircle cx='260' cy='300' r='1.2' fill='%23fff'/%3E%3Ccircle cx='404' cy='258' r='1.5' fill='%236ebeff'/%3E%3Ccircle cx='28' cy='402' r='1.5' fill='%2300be5a'/%3E%3Ccircle cx='170' cy='446' r='1.2' fill='%23e61e2d'/%3E%3Ccircle cx='350' cy='420' r='1.6' fill='%23fff'/%3E%3Ccircle cx='494' cy='380' r='1.2' fill='%23ffcd00'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
main, footer { position: relative; }
img, canvas { display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: #10121c; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---- haut de page ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  grid-template-areas: "text match" "rules match";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(32px, 6vh, 72px) 24px;
}
.hero-text { grid-area: text; container-type: inline-size; }
.match { grid-area: match; }
.rules { grid-area: rules; }

.handle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 .9375rem/1 var(--label);
  color: var(--mute);
  text-decoration: none;
}
.handle img { border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 0 28px rgba(255, 205, 60, .25); }
.handle:hover span { color: var(--ink); }

h1 {
  margin: 28px 0 0;
  font: 900 min(12.1vw, 4.9rem)/.96 var(--display);
  font-size: min(14.1cqi, 4.9rem);   /* SIMULATIONS tient toujours dans sa colonne */
  letter-spacing: -.012em;
  text-transform: uppercase;
}
h1 span { display: block; }
.gold { color: var(--gold); text-shadow: 0 0 44px rgba(255, 205, 60, .28); }

.tagline {
  margin: 20px 0 0;
  font: 700 clamp(.75rem, 3.75cqi, 1.0625rem)/1.5 var(--label);
  color: #c9cde0;
}
.tagline span { white-space: nowrap; }   /* si ça passe à la ligne, jamais au milieu d'un format */
.tagline i { font-style: normal; margin-inline: .3em; color: var(--mute); }
.lead { margin: 18px 0 0; max-width: 34em; color: var(--mute); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  font: 700 1rem/1 var(--label);
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); border-color: #fff; }
.btn-main { background: var(--gold); border-color: var(--gold); color: #12131b; }
.btn-main:hover { background: #ffd964; border-color: #ffd964; }

/* ---- le match ---- */
.match { margin: 0; min-width: 0; }
.match-status {
  margin: 0 0 12px;
  text-align: center;
  font: 700 clamp(.9375rem, 1.6vw, 1.125rem)/1.3 var(--label);
}
#arena {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  height: auto;
  margin-inline: auto;
  transition: opacity .4s ease;
}
.board {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2.2vw, 22px);
  min-height: 56px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.board li {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 38px;
  font: 700 .8125rem/1 var(--label);
  font-variant-numeric: tabular-nums;
  transition: opacity .3s ease;
}
.board img { border-radius: 50%; }
.board .out { opacity: .4; }
.board .out img { filter: grayscale(1); }
.board .won { color: var(--gold); }

.rules { margin-top: clamp(28px, 5vh, 52px); align-self: end; padding-bottom: 8px; }
.rules h2 {
  margin: 0 0 12px;
  font: 700 .875rem/1.3 var(--label);
  color: var(--mute);
}
.rules ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rules li {
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle 4px at 5px 50%, var(--c) 98%, transparent) no-repeat;
}
.rules b { font-weight: 700; }

/* ---- vidéos ---- */
.videos { padding-block: clamp(40px, 7vh, 80px) clamp(44px, 8vh, 88px); }
.videos-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
h2 { text-wrap: balance; }
.videos h2 {
  margin: 0;
  font: 900 clamp(1.625rem, 3.2vw, 2.25rem)/1.1 var(--display);
  letter-spacing: -.005em;
}
.more {
  flex: none;
  font: 700 .9375rem/1.3 var(--label);
  color: var(--gold);
  text-decoration: none;
}
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

.shelf {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.shelf a { display: block; text-decoration: none; }
.shelf img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 14px;
  background: #10131f;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.shelf a:hover img { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--gold), 0 14px 34px rgba(0, 0, 0, .55); }
.shelf small {
  display: block;
  margin-top: 12px;
  font: 700 .75rem/1.3 var(--label);
  color: var(--gold);
}
.shelf strong {
  display: block;
  margin-top: 4px;
  font: 700 .9375rem/1.32 var(--label);
}

/* ---- pied de page ---- */
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  padding-block: 22px 34px;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  color: var(--mute);
}
.foot-name { margin: 0; font: 700 .9375rem/1.4 var(--label); color: var(--ink); }
footer ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
footer a { text-decoration: none; overflow-wrap: anywhere; }
footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal { flex-basis: 100%; margin: 6px 0 0; font-size: .8125rem; line-height: 1.5; }
.legal span { white-space: nowrap; }

/* ---- tablettes et téléphones ---- */
@media (max-width: 1040px) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "text" "match" "rules";
    padding-top: 24px;
  }
  body { background: radial-gradient(700px 620px at 50% 640px, #1a2147 0, rgba(26, 33, 71, 0) 72%), var(--bg); }
  h1 { margin-top: 22px; }
  .match { margin-top: 34px; }
  .rules { margin-top: 30px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn { flex: 1 1 auto; }
  footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .btn:hover, .shelf a:hover img { transform: none; }
}
