/* ==========================================================================
   Versus — site vitrine
   Un seul fichier, organisé dans l'ordre de la page.
   Les couleurs de marque arrivent en variables sur <body> (voir build.mjs).
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */

/* Déclarer --accent permet de l'animer : sans cette règle, la rotation des
   sports ferait sauter la couleur du hero d'un coup au lieu de la fondre. */
@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #FF6D2E;
}

:root {
  /* valeurs de repli : build.mjs pose --accent et --surface sur <body> */
  --accent: #FF6D2E;
  --surface: #FBFAFA;

  /* Rotation des sports : le mot et la couleur du hero doivent bouger
     ensemble. Une seule durée pour les deux — app.js la reprend (FADE). */
  --rot-fade: .26s;

  --ink: #201E1D;
  --ink-soft: #4F4F4F;
  --ink-label: #605D5D;
  --muted: #9B9797;
  --muted-light: #C7C3C3;
  --line: #EAE7E7;
  --wash: #F7F6F5;
  --wash-warm: #FDFAFA;
  --dark: #201E1D;
  --dark-2: #2B2826;
  --dark-3: #34312F;
  --on-dark: #B5AFAB;
  --on-dark-2: #D0CBC8;
  --on-dark-3: #E4E1DF;

  --good: #227d46;
  --warn: #a76a00;
  --mid: #c2510a;
  --bad: #c02418;
  --bad-ink: #7d1610;

  --sh-sm: 0 10px 24px rgba(32, 30, 29, .07);
  --sh-md: 0 14px 30px rgba(32, 30, 29, .14);
  --sh-lg: 0 18px 50px rgba(32, 30, 29, .07);

  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Poppins', system-ui, sans-serif;

  /* marge fluide : 64px minimum, contenu plafonné à 1312px */
  --gutter: max(64px, calc((100% - 1312px) / 2));
  --sec-y: 136px;
}

/* ---------------------------------------------------------------- 2. Reset */

*, *::before, *::after { box-sizing: border-box; }

/* Ces trois teintes dérivent de --accent et doivent être redéclarées sur
   CHAQUE élément qui redéfinit --accent : calculées une seule fois sur :root,
   elles resteraient figées sur l'orange de repli. D'où la présence du hero
   ici — c'est lui qui change de couleur pendant la rotation des sports. */
body, .hero {
  --accent-soft: color-mix(in srgb, var(--accent) 12%, #ffffff);
  --accent-mid:  color-mix(in srgb, var(--accent) 30%, #ffffff);
  --accent-deep: color-mix(in srgb, var(--accent) 72%, #7c1405);
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, blockquote, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }

a { color: var(--ink); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }

img { display: block; max-width: 100%; }
button { font: inherit; }

html { scroll-behavior: smooth; }
:target { scroll-margin-top: 110px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 12px 18px; border-radius: 0 0 12px 0;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ------------------------------------------------------- 3. Blocs communs */

.sec { padding: var(--sec-y) var(--gutter); }

.sec--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.sec--surface { background: var(--surface); }
.sec--dark { background: var(--dark); }

/* La taille suit la largeur de la colonne (cqw, conteneur = .hero__copy) :
   « s'organise tout seul. » tient ainsi toujours sur une seule ligne, donc le
   titre fait toujours 3 lignes. --h1-max plafonne la valeur par palier. */
.h1 {
  font-family: var(--display); font-weight: 800; line-height: 1.02;
  font-size: min(var(--h1-max, 68px), 10.7cqw);
  letter-spacing: -.045em; color: var(--ink);
}
.h1__line { display: block; }
.h2 {
  font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1.06;
  letter-spacing: -.04em; color: var(--ink); text-wrap: balance;
}
.h2--sm  { font-size: 42px; line-height: 1.08; }
.h2--lg  { font-size: 48px; line-height: 1.08; }
.h2--xl  { font-size: 50px; line-height: 1.04; letter-spacing: -.042em; }
.h2--xxl { font-size: 56px; line-height: 1.04; letter-spacing: -.045em; }
.h2--light { color: #fff; }

.accent { color: var(--accent); }

/* Mot du hero en rotation (page générique uniquement — voir app.js).
   Sans JavaScript, le mot écrit dans le HTML s'affiche simplement, figé.
   La couleur, elle, vient de --accent porté par le hero. */
.rotator--live { transition: opacity var(--rot-fade) ease, transform var(--rot-fade) ease; }
.hero__badge .rotator--live { display: inline-block; }
.rotator--live.is-out { opacity: 0; transform: translateY(-.18em); }

.lead { font-size: 17px; max-width: 460px; }
.lead--light { color: var(--on-dark); line-height: 1.6; }
.fineprint { font-size: 13px; color: var(--muted); }

.eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow--accent { color: var(--accent); }
.eyebrow--mid { color: var(--accent-mid); }
.eyebrow--grey { color: var(--muted); letter-spacing: .1em; }

.dot { display: block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.dot--pulse { animation: vsPulse 1.4s ease-in-out infinite; }
.dot--pulse-fast { width: 6px; height: 6px; animation: vsPulse 1s ease-in-out infinite; }
.dot--mid { width: 7px; height: 7px; background: var(--accent-mid); }
.dot--good { width: 7px; height: 7px; background: var(--good); }
.dot--bad { width: 7px; height: 7px; background: var(--bad); }

@keyframes vsFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -11px; } }
@keyframes vsPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .75; transform: scale(1.15); } }

/* cartes */
.card { border-radius: 28px; background: #fff; box-shadow: var(--sh-sm); }
.card--dark { background: var(--dark); color: #fff; box-shadow: var(--sh-md); }

.kv { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.kv__k { color: var(--on-dark); }
.kv__v { font-family: var(--display); font-weight: 800; }

/* scènes 3D : les cartes flottantes partagent la même inclinaison */
.stage { position: relative; perspective: 1500px; transform-style: preserve-3d; }
.stage__plate {
  position: absolute; border-radius: 34px; background: var(--surface);
  transform: rotateY(-14deg) rotateX(7deg) rotateZ(-2deg) translateZ(-170px);
}
.fc {
  position: absolute;
  transform: rotateY(-14deg) rotateX(7deg) rotateZ(-2deg) translateZ(var(--z, 0px));
}
.float { animation: vsFloat var(--dur, 6.4s) ease-in-out var(--delay, 0s) infinite; }

/* boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 999px; cursor: pointer;
  font-family: var(--display); font-weight: 800; letter-spacing: -.01em;
  text-decoration: none; transition: background .18s ease, color .18s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; }
.btn--soft { background: var(--wash); color: var(--ink); }
.btn--soft:hover { background: #EAE9E9; color: var(--ink); }

.btn--xs { padding: 11px 18px; font-size: 13px; }
.btn--sm { padding: 13px 22px; font-size: 14px; }
.btn--md { padding: 16px 26px; font-size: 14px; align-self: flex-start; }
.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn--xl { padding: 20px 32px; font-size: 17px; }
.btn--form { align-self: flex-start; margin-top: 6px; padding: 16px 28px; font-size: 15px; }

/* ------------------------------------------------------------------ 4. Nav */

.nav-wrap {
  position: sticky; top: 0; z-index: 60;
  padding: 0 max(24px, calc((100% - 1392px) / 2));
}

.nav {
  display: flex; align-items: center; gap: 40px;
  padding: 26px max(40px, calc((100% - 1312px) / 2));
  border-radius: 0; background: transparent; box-shadow: none;
  transition: padding .25s ease, transform .25s ease, border-radius .25s ease,
              background .25s ease, box-shadow .25s ease;
}

.nav.is-stuck {
  padding: 14px 26px;
  transform: translateY(20px);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 30px rgba(32, 30, 29, .10);
}

.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__login { font-size: 14px; font-weight: 500; }

.burger {
  display: none; flex-direction: column; gap: 4px;
  padding: 10px; border: none; border-radius: 14px; background: var(--wash); cursor: pointer;
}
.burger span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: sticky; top: 64px; z-index: 59;
  display: flex; flex-direction: column; gap: 4px;
  margin: 0 20px; padding: 14px;
  border-radius: 22px; background: #fff;
  box-shadow: 0 18px 40px rgba(32, 30, 29, .14);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 10px 8px; font-size: 15px; font-weight: 600; }
.mobile-menu .btn { margin-top: 8px; }

/* ----------------------------------------------------------------- 5. Hero */

.hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
  padding: 104px var(--gutter) 72px;
  /* le hero porte sa propre couleur d'accent : la rotation des sports la
     change ici, et elle se fond au lieu de sauter (voir @property --accent).
     Même durée que le fondu du mot : les deux arrivent en même temps. */
  transition: --accent var(--rot-fade) ease;
}
/* conteneur de requête : la taille du H1 se calcule sur cette largeur */
.hero__copy {
  display: flex; flex-direction: column; align-items: flex-start; gap: 26px;
  max-width: 640px; container-type: inline-size;
}
.hero__badge {
  display: none; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 12px; font-weight: 700;
}
.hero__lead { font-size: 18px; line-height: 1.55; max-width: 460px; }
.hero__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.stage--hero { height: 440px; perspective-origin: 55% 45%; }
.stage--hero .stage__plate { top: 78px; left: 46px; right: 56px; bottom: 66px; }

/* classement */
.fc--rank { top: 40px; left: 0; width: 300px; padding: 8px; border-radius: 24px; }
.rank__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 12px;
  font-family: var(--display); font-size: 13px; font-weight: 800; letter-spacing: -.02em; color: var(--ink);
}
.rank__count {
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep); font-size: 11px;
}
.rank__body { border-radius: 18px; overflow: hidden; }
.rank__row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.rank__row--lead { background: var(--accent-soft); border-top: none; }
.rank__pos { width: 22px; font-family: var(--display); font-size: 16px; font-weight: 800; color: var(--ink); }
.rank__row--lead .rank__pos { color: var(--accent); }
.rank__pos--out { color: var(--muted); }
.rank__name { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink); }
.rank__pts { font-size: 13px; font-weight: 800; color: var(--accent-deep); }

/* match en direct */
.fc--match { top: 0; right: 8px; width: 330px; padding: 6px; border-radius: 22px; box-shadow: 0 14px 30px rgba(32, 30, 29, .09); }
.match__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 10px; }
.match__label { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.match__live { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.match__row { display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 46px; border-radius: 14px; }
.match__row--lead { background: var(--accent-soft); }
.match__name { flex: 1; font-size: 15px; font-weight: 600; color: var(--ink); }
.match__name--out { font-weight: 500; color: var(--muted); }
.score {
  width: 28px; height: 30px; display: grid; place-items: center; border-radius: 9px;
  background: var(--line); color: var(--ink-label);
  font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.score--on { background: var(--accent); color: #fff; }

/* planning */
.fc--plan { top: 262px; right: 74px; width: 290px; padding: 18px 20px; border-radius: 26px; }
.plan__rows { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.plan__row { display: flex; align-items: center; gap: 12px; }
.plan__time { width: 44px; font-family: var(--display); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan__what { flex: 1; font-size: 13px; color: var(--on-dark-2); }

/* ------------------------------------------------------------ 6. Confiance */

.trust { display: flex; align-items: center; gap: 46px; padding: 24px var(--gutter) 104px; }
.trust__label {
  max-width: 130px; line-height: 1.4;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.trust__logos {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--muted-light);
}

/* -------------------------------------------------------------- 7. Formats */

.formats { grid-template-columns: 1fr 1.05fr; gap: 72px; }
.formats__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 520px; }
.formats__copy .lead { max-width: 450px; }
.formats__list {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px;
  width: 100%; max-width: 470px; margin-top: 14px;
}
.formats__item { padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink); }
.formats__item--accent { font-weight: 700; color: var(--accent); }

.formats__ui { display: flex; flex-direction: column; align-items: flex-start; }

.wizard { width: 470px; padding: 26px 28px 28px; border-radius: 32px; }
.wizard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wizard__title { font-family: var(--display); font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.wizard__step { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wizard__bars { display: flex; gap: 5px; margin-top: 14px; }
.wizard__bars span { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.wizard__bars .on { background: var(--accent); }
.wizard__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }

.field-label { margin-top: 22px; font-size: 13px; font-weight: 600; color: var(--ink-label); }
.wizard__head + .wizard__bars + .field-label { margin-top: 24px; }
.wizard__grid .field-label { margin-top: 0; }

.segmented { display: flex; gap: 6px; margin-top: 10px; padding: 4px; border-radius: 999px; background: var(--wash); }
.segmented__opt {
  flex: 1; display: grid; place-items: center; padding: 10px 0; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #7D7979;
}
.segmented__opt--on { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); font-weight: 700; color: var(--ink); }

.stepper {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; padding: 11px 14px; border-radius: 16px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.stepper--on { box-shadow: inset 0 0 0 2px var(--accent); }
.stepper__val { font-family: var(--display); font-size: 15px; font-weight: 800; color: var(--ink); }
.stepper--on .stepper__val { color: var(--accent); }
.stepper__hint { font-size: 11px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { padding: 9px 14px; border-radius: 999px; background: var(--wash); font-size: 12px; font-weight: 600; color: var(--ink-label); }
.chip--on { background: var(--accent); color: #fff; font-weight: 700; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 22px; padding: 14px 16px; border-radius: 18px; background: var(--wash);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.switch { width: 42px; height: 24px; flex: none; display: flex; align-items: center; justify-content: flex-end; padding: 3px; border-radius: 999px; background: var(--accent); }
.switch i { width: 18px; height: 18px; border-radius: 50%; background: #fff; }

.preview { width: 300px; margin: -18px 0 0 200px; padding: 22px 24px; border-radius: 26px; }
.preview__big { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.preview__num { font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.preview__unit { font-size: 13px; color: var(--on-dark); }
.preview__rows { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.preview__ok { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--accent-mid); }

/* --------------------------------------------------- 8. Automatisations IA */

.ai { display: flex; flex-direction: column; gap: 56px; }
.ai__intro { display: flex; flex-direction: column; gap: 18px; max-width: 700px; }
.ai__intro .lead { max-width: 520px; }
.ai__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; align-items: stretch; }
.ai__col { display: flex; flex-direction: column; gap: 26px; }
.ai__card { flex: 1; padding: 22px 24px 24px; }
.ai__legend { flex: none; display: flex; flex-direction: column; gap: 8px; min-height: 92px; }
.ai__num { font-family: var(--display); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ai__text { font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1.12; letter-spacing: -.03em; color: var(--ink); }

.import__sources { display: flex; gap: 10px; }
.source {
  flex: 1; display: flex; flex-direction: column; gap: 3px;
  padding: 13px 14px; border-radius: 16px; background: var(--wash-warm);
  box-shadow: inset 0 0 0 1px var(--line);
}
.source strong { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--ink); }
.source span { font-size: 11px; color: var(--muted); }
.source--on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.source--on strong, .source--on span { color: var(--accent-deep); }

.progress { height: 6px; margin-top: 20px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

.steps { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.step { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; }
.step--done { color: var(--accent-deep); }
.step--now { color: var(--ink); }
.step--todo { color: #BAB6B6; font-weight: 400; }
.step__mark {
  width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 11px;
}
.step__mark--ring { background: none; box-shadow: inset 0 0 0 1px #D7D3D3; }
.step__mark--empty { background: none; box-shadow: inset 0 0 0 1px var(--line); }

.pools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pool { display: flex; flex-direction: column; gap: 7px; padding: 13px; border-radius: 18px; background: var(--wash-warm); }
.pool__label { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bar { height: 9px; border-radius: 999px; background: var(--line); }
.bar--a { background: var(--accent); }
.bar--b { background: var(--accent-mid); }

.seeded {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding: 13px 15px; border-radius: 18px; background: var(--accent-soft);
  font-size: 12px; font-weight: 700; color: var(--accent-deep);
}
.seeded__val { font-family: var(--display); font-size: 12px; font-weight: 800; }

.sched__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sched__courts { font-size: 11px; color: #96908C; }
.sched__rows { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.sched__row { display: grid; grid-template-columns: 46px 1fr 1fr 1fr; gap: 6px; align-items: center; }
.sched__time { font-family: var(--display); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.slot { height: 24px; border-radius: 8px; background: var(--dark-3); }
.slot--on { background: var(--accent); }
.sched__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 12px; color: var(--on-dark);
}
.sched__rest { font-family: var(--display); font-weight: 800; color: var(--accent); }

/* ---------------------------------------------------------------- 9. Météo */

.weather { grid-template-columns: 1fr 1.08fr; }
.weather__copy { display: flex; flex-direction: column; gap: 22px; max-width: 470px; }
.checks { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.checks li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: #EDEAE8; }
.check {
  width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 11px;
}

.wx {
  display: flex; flex-direction: column; gap: 18px;
  padding: 26px 26px 24px; border-radius: 30px; background: #fff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .28);
}
.wx__head { display: flex; align-items: center; gap: 10px; }
.wx__title { font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.wx__sub { font-size: 11.5px; color: var(--muted); }

.wx__ico { flex: none; }
.wx__ico--sun { color: #f5a623; }
.wx__ico--partly { color: #e0902a; }
.wx__ico--cloud { color: #8a9199; }
.wx__ico--rain { color: #2f7bc4; }
.wx__ico--drizzle { color: #4a90d9; }

.wx__week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.wxday {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 6px 9px; border-radius: 13px; border: 1px solid var(--line); background: #fff;
}
.wxday--on { border-color: var(--accent-mid); background: var(--accent-soft); }
.wxday__d { font-size: 11px; font-weight: 700; color: #6E6A69; }
.wxday--on .wxday__d { color: var(--accent-deep); }
.wxday__date { font-size: 10px; color: var(--muted); }
.wxday__t { font-family: var(--display); font-size: 13px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.wxday__t span { margin-left: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
.wxday__p { font-size: 10.5px; font-weight: 700; }
.wxday__p.is-good { color: var(--good); }
.wxday__p.is-warn { color: var(--warn); }
.wxday__p.is-mid { color: var(--mid); }
.wxday__p.is-bad { color: var(--bad); }

.wx__slots { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: var(--wash); }
.wx__slots-head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.wx__slots-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.wx__slots-sub { font-size: 11.5px; color: var(--muted); }
.wx__band { display: flex; height: 30px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.wx__seg { display: grid; place-items: center; }
.wx__seg span { font-size: 10px; font-weight: 800; }
.wx__seg.is-good { background: color-mix(in srgb, var(--good) 13%, transparent); }
.wx__seg.is-good span { color: var(--good); }
.wx__seg.is-bad { background: color-mix(in srgb, var(--bad) 42%, transparent); }
.wx__seg.is-bad span { color: var(--bad-ink); }

.wx__list { display: flex; flex-direction: column; gap: 4px; }
.wx__slot { display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 10px; }
.wx__slot.is-good { background: color-mix(in srgb, var(--good) 7%, transparent); }
.wx__slot.is-bad { background: color-mix(in srgb, var(--bad) 12%, transparent); }
.wx__range { flex: none; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.wx__dur { flex: none; font-size: 11.5px; color: var(--muted); }
.wx__verdict { margin-left: auto; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.wx__slot.is-good .wx__verdict { color: var(--good); }
.wx__slot.is-bad .wx__verdict { color: var(--bad); }
.wx__source { font-size: 11px; color: var(--muted); }

/* ------------------------------------------------- 10. Premier tournoi offert */

.stage--offer { height: 420px; perspective-origin: 50% 45%; }
.fc--photo {
  inset: 0 30px 20px 0; border-radius: 34px; overflow: hidden;
  box-shadow: 0 20px 46px rgba(32, 30, 29, .16);
}
.fc--photo img { width: 100%; height: 100%; object-fit: cover; }

.fc--bracket { top: 6px; left: 0; width: 230px; padding: 18px; border-radius: 24px; box-shadow: 0 14px 30px rgba(32, 30, 29, .12); }
.bracket { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.bracket__col { display: flex; flex-direction: column; gap: 6px; }
.bracket__col--next { justify-content: center; }
.bracket__team { padding: 8px 9px; border-radius: 10px; background: var(--wash); color: var(--muted); font-size: 11px; font-weight: 600; }
.bracket__team--win { background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }
.bracket__col--next .bracket__team { padding: 10px 9px; }
.bracket__team--final { background: var(--dark); color: #fff; font-weight: 700; }

.fc--free { right: 0; bottom: -14px; width: 220px; padding: 22px; border-radius: 24px; box-shadow: 0 14px 30px rgba(32, 30, 29, .16); }
.free__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--display); font-size: 16px; font-weight: 800;
}
.free__title { margin-top: 14px; font-family: var(--display); font-size: 20px; font-weight: 800; line-height: 1.15; }
.free__sub { margin-top: 4px; font-size: 12px; color: var(--on-dark); }

.offer__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 480px; }
.offer__copy .lead { max-width: 420px; }

/* --------------------------------------------------------- 11. Messages */

.messages__copy { display: flex; flex-direction: column; gap: 18px; max-width: 480px; }
.messages__copy .lead { max-width: 420px; }

.tmpl { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 30px; box-shadow: var(--sh-lg); }
.tmpl__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tmpl__title { font-family: var(--display); font-size: 15px; font-weight: 800; color: var(--ink); }
.tmpl__tag { font-size: 11px; color: var(--muted); }
.tmpl__subject {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px;
  background: var(--wash-warm); box-shadow: inset 0 0 0 1px var(--line);
}
.tmpl__subject .eyebrow { letter-spacing: .08em; }
.tmpl__subject-val { font-size: 14px; font-weight: 600; color: var(--ink); }
.tmpl__body { padding: 16px; border-radius: 16px; background: var(--dark); color: var(--on-dark-3); font-size: 13.5px; line-height: 1.6; }
.tmpl__vars { display: flex; flex-wrap: wrap; gap: 8px; }
.var { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.tmpl__foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.tmpl__channels { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------- 12. Live TV */

.live { background-color: #FDFDFD; }
.live__copy { display: flex; flex-direction: column; gap: 18px; max-width: 480px; }
.live__copy .lead { max-width: 440px; }

.stage--live { height: 420px; perspective-origin: 55% 45%; }

.fc--tv { top: 30px; left: 0; width: 380px; padding: 20px; border-radius: 26px; box-shadow: 0 20px 46px rgba(32, 30, 29, .18); }
.tv__head { display: flex; align-items: center; justify-content: space-between; }
.tv__live { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; color: #fff; }
.tv__live .dot { width: 7px; height: 7px; }
.tv__rows { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.tv__row {
  display: grid; grid-template-columns: 50px 1fr 90px; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06);
}
.tv__time { font-family: var(--display); font-size: 13px; font-weight: 800; }
.tv__match { font-size: 13px; color: var(--on-dark-3); }
.tv__court { font-size: 12px; color: var(--muted); }

.fc--next { top: 0; right: 0; width: 220px; padding: 16px; border-radius: 24px; box-shadow: 0 14px 30px rgba(32, 30, 29, .1); }
.next__vs { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); }
.next__vs span { flex: 1; font-size: 14px; font-weight: 700; color: var(--ink); }
.next__when { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.next__time { font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--ink); }
.next__court { font-size: 12px; color: var(--muted); }

.fc--album { right: 10px; bottom: -18px; width: 250px; padding: 18px; border-radius: 24px; box-shadow: 0 14px 30px rgba(32, 30, 29, .1); }
.album__head { display: flex; align-items: center; justify-content: space-between; }
.album__count { font-size: 11px; color: var(--muted); }
.album__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.album__grid img { aspect-ratio: 1; width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }

/* ------------------------------------------- 13. Chiffres + témoignages */

.proof { background: var(--dark); }
.proof__claim { padding: 96px var(--gutter); }
.proof__claim .h2 { max-width: 780px; }

.quotes {
  display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 20px; height: 560px;
  margin: -64px 0 0; padding: 0 var(--gutter) 128px;
}
.quote { margin: 0; }
.quote--main {
  grid-row: 1 / 3; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 24px;
  padding: 44px; border-radius: 32px; background: var(--accent); color: #fff;
}
.quote__mark {
  position: absolute; top: -30px; left: 20px;
  font-family: var(--display); font-size: 200px; font-weight: 800; line-height: 1;
  color: rgba(255, 255, 255, .14);
}
.quote--main blockquote {
  position: relative;
  font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1.28; letter-spacing: -.02em;
}
.quote__photo { flex: 1; min-height: 0; width: 100%; border-radius: 20px; object-fit: cover; }
.quote--main figcaption { position: relative; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.quote--main figcaption strong { display: block; font-size: 15px; }
.quote--main figcaption span { color: rgba(255, 255, 255, .75); }

.quote--side { display: flex; align-items: stretch; gap: 22px; border-radius: 28px; background: var(--dark-2); overflow: hidden; }
.quote__thumb { width: 25%; flex: none; object-fit: cover; }
.quote__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 28px 28px 28px 0; }
.quote--side blockquote { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; color: #fff; }
.quote--side figcaption { font-size: 13px; color: var(--muted); }
.quote--side figcaption strong { display: block; font-size: 14px; color: #fff; }

/* -------------------------------------------------------------- 14. Tarifs */

.pricing__lead { margin: 12px 0 32px; max-width: none; }

.billing {
  display: flex; width: fit-content; align-items: center; gap: 4px;
  padding: 4px; margin: 0 auto 40px; border-radius: 999px; background: var(--wash);
}
.billing__opt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: none; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink);
  font-family: var(--display); font-size: 13px; font-weight: 800;
  transition: background .18s ease, color .18s ease;
}
.billing__opt.is-on { background: var(--ink); color: #fff; }
.billing__badge {
  padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 26px; padding: 34px; border-radius: 30px; box-shadow: var(--sh-lg); }
.plan--featured { box-shadow: 0 30px 70px rgba(32, 30, 29, .24); }
.plan__head { display: flex; flex-direction: column; gap: 22px; }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__name { font-family: var(--display); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan--featured .plan__name { color: var(--accent-mid); }
.plan__flag {
  padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.plan__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan__amount { font-family: var(--display); font-size: 52px; font-weight: 800; letter-spacing: -.05em; color: var(--ink); }
.plan--featured .plan__amount { color: #fff; }
.plan__suffix { font-size: 15px; color: var(--muted); }
.plan--featured .plan__suffix { color: var(--on-dark); }
.plan__note { margin-top: -18px; font-size: 13px; color: var(--muted); }
.plan--featured .plan__note { color: var(--on-dark); }
.plan__note:empty { display: none; }

.plan__feats { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.plan__feats li {
  display: flex; align-items: center; gap: 10px; padding: 12px 0;
  border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink);
}
.plan__feats li:last-child { border-bottom: 1px solid var(--line); }
.plan--featured .plan__feats li { border-color: rgba(255, 255, 255, .14); color: #fff; }
.plan__feats li.is-off { color: #C7C3C1; }
.plan--featured .plan__feats li.is-off { color: #736E6B; }
.tick { color: var(--accent); }
.is-off .tick { color: inherit; }

.pricing__cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 48px; }

/* ----------------------------------------------------------- 15. CTA final */

.final {
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  padding: 144px var(--gutter) 152px; text-align: center;
}
.final .h2 { max-width: 760px; }

/* ------------------------------------------------------------- 16. Contact */

.contact__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 420px; }
.contact__mail { font-size: 14px; color: var(--muted); }

.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field label { font-size: 12px; font-weight: 700; color: var(--ink-label); }
.form input, .form textarea {
  border: none; border-radius: 14px; background: var(--wash);
  font-family: inherit; font-size: 14px; color: var(--ink);
}
.form input { height: 48px; padding: 0 16px; }
.form textarea { padding: 14px 16px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #B4AFAF; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { font-size: 13.5px; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--good); }
.form__status.is-error { color: var(--bad); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* -------------------------------------------------------------- 17. Footer */

.footer { display: flex; align-items: center; gap: 40px; padding: 48px var(--gutter) 56px; background: var(--surface); }
.footer__logo img { height: 20px; width: auto; }
.footer__spacer { flex: 1; }
.footer__links { display: flex; align-items: center; gap: 28px; font-size: 13px; color: var(--muted); }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--accent); }

/* =========================================================== 18. Responsive
   Les scènes 3D se remettent à plat et les colonnes se replient.
   ========================================================================== */

@media (max-width: 1280px) {
  :root { --gutter: max(40px, calc((100% - 1312px) / 2)); --sec-y: 112px; }
  .h1 { --h1-max: 58px; }
  .h2--xxl { font-size: 48px; }
  .h2--xl { font-size: 44px; }
  .h2, .h2--lg { font-size: 40px; }
  .h2--sm { font-size: 38px; }
  .sec--split { gap: 56px; }
  .formats { gap: 48px; }
  .wizard { width: 100%; }
  .preview { margin-left: auto; }
  .ai__grid { gap: 28px; }
  .ai__text { font-size: 21px; }
  .trust__logos { font-size: 17px; }
  .quotes { height: 500px; }
  .quote--main blockquote { font-size: 27px; }
}

@media (max-width: 1024px) {
  :root { --sec-y: 96px; }
  .hero { grid-template-columns: 1fr; gap: 56px; padding: 72px var(--gutter) 40px; }
  .hero__copy { max-width: none; }
  .h1 { --h1-max: 54px; }   /* colonne pleine largeur : on bride la casse */
  .sec--split { grid-template-columns: 1fr; }
  /* sans min-width: 0, un enfant large (la semaine météo) élargirait la colonne */
  .sec--split > *, .hero > * { min-width: 0; }
  .weather, .formats { grid-template-columns: 1fr; }
  .offer__copy { order: -1; }
  .ai__grid { grid-template-columns: 1fr 1fr; }
  .ai__col:last-child { grid-column: span 2; }
  .ai__legend { min-height: 0; }
  .plans { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

  /* les scènes 3D repassent en colonne */
  .stage {
    perspective: none; transform-style: flat;
    height: auto; display: flex; flex-direction: column; gap: 18px;
  }
  .stage__plate { display: none; }
  .fc {
    position: static; width: auto; max-width: 480px;
    transform: none; animation: none;
  }
  .fc--photo { max-width: none; aspect-ratio: 16 / 10; }
  .fc--rank, .fc--match, .fc--bracket, .fc--free, .fc--next, .fc--album { align-self: flex-start; }
  .fc--plan, .fc--tv { align-self: stretch; }
  .stage--live .fc--tv { max-width: none; }
  .preview { width: 100%; max-width: 320px; }

  .quotes { grid-template-columns: 1fr; grid-template-rows: none; height: auto; margin-top: -40px; }
  .quote--main { grid-row: auto; min-height: 480px; }
}

/* la nav complète ne tient plus en dessous de ~900px : on passe au burger */
@media (max-width: 900px) {
  .nav { padding: 18px 4px; gap: 12px; }
  .nav.is-stuck { padding: 12px 18px; transform: translateY(12px); }
  .nav__logo img { height: 22px; }
  .nav__links, .nav__actions { display: none; }
  .burger { display: flex; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --sec-y: 64px; }

  .nav__logo img { height: 20px; }

  .hero { padding: 28px var(--gutter) 32px; gap: 40px; }
  .hero__copy { gap: 20px; }
  .hero__badge { display: inline-flex; }
  .h1 { --h1-max: 34px; line-height: 1.06; letter-spacing: -.03em; }
  .hero__lead { font-size: 16px; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { width: 100%; padding: 16px 20px; font-size: 15px; }

  .h2, .h2--lg, .h2--sm { font-size: 27px; letter-spacing: -.03em; }
  .h2--xl { font-size: 28px; }
  .h2--xxl { font-size: 30px; }
  .lead, .lead--light { font-size: 15.5px; }

  .trust { flex-direction: column; align-items: flex-start; gap: 16px; padding: 8px var(--gutter) 56px; }
  .trust__label { max-width: none; }
  .trust__logos { flex-wrap: wrap; justify-content: flex-start; gap: 8px 20px; font-size: 15px; }

  .formats__list { column-gap: 20px; }
  .formats__item { font-size: 13.5px; }
  .wizard { padding: 20px 20px 22px; border-radius: 26px; }
  .segmented { flex-wrap: wrap; }
  .segmented__opt { flex: 1 0 40%; }
  .preview { max-width: none; margin: -12px 0 0; }

  .ai { gap: 36px; }
  .ai__grid { grid-template-columns: 1fr; gap: 32px; }
  .ai__col:last-child { grid-column: auto; }
  .ai__col { gap: 18px; }
  .ai__text { font-size: 20px; }

  .wx { padding: 18px 18px 16px; border-radius: 24px; }
  /* la semaine défile horizontalement plutôt que de s'écraser */
  .wx__week {
    min-width: 0;
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72px;
    overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .wxday { scroll-snap-align: start; }
  .wx__slot { flex-wrap: wrap; gap: 6px 10px; }
  .wx__verdict { margin-left: 0; flex-basis: 100%; }

  .fc { max-width: none; }
  .stage--offer { gap: 14px; }
  .tmpl { padding: 20px; border-radius: 24px; }
  .tmpl__foot .btn { flex: 1; }
  .tmpl__channels { flex-basis: 100%; }

  .proof__claim { padding: 64px var(--gutter) 56px; }
  .quotes { gap: 14px; margin-top: -24px; padding-bottom: 72px; }
  .quote--main { min-height: 0; padding: 26px; border-radius: 26px; }
  .quote--main blockquote { font-size: 22px; }
  .quote__mark { font-size: 130px; top: -18px; left: 12px; }
  .quote__photo { min-height: 200px; }
  .quote--side { gap: 16px; border-radius: 22px; }
  .quote__thumb { width: 90px; }
  .quote__body { padding: 20px 20px 20px 0; gap: 12px; }
  .quote--side blockquote { font-size: 16px; }

  .billing { width: 100%; margin-bottom: 28px; }
  .billing__opt { flex: 1; justify-content: center; padding: 10px 12px; font-size: 12px; }
  .billing__badge { display: none; }
  .plans { grid-template-columns: 1fr; gap: 16px; }
  .plan { padding: 26px; border-radius: 26px; gap: 20px; }
  .plan__amount { font-size: 42px; }
  .pricing__cta { margin-top: 32px; }
  .pricing__cta .btn { width: 100%; }

  .final { padding: 80px var(--gutter) 88px; gap: 20px; }
  .final .btn { width: 100%; }

  .form__row { grid-template-columns: 1fr; }
  .btn--form { width: 100%; }

  .footer { flex-wrap: wrap; gap: 20px; padding: 36px var(--gutter) 44px; }
  .footer__spacer { display: none; }
  .footer__links { flex-wrap: wrap; gap: 8px 20px; }
}

@media (max-width: 420px) {
  .formats__list { grid-template-columns: 1fr; }
  .bracket { grid-template-columns: 1fr; }
  .tv__row { grid-template-columns: 44px 1fr; }
  .tv__court { display: none; }
}
