/* ---------- Thèmes ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f2fd;
  --surface: #ffffff;
  --surface-2: #ece8fc;
  --text: #17122b;
  --text-2: #514a70;
  --line: #e1dbf6;
  --clan: #5b2ee5;
  --clan-strong: #3a1c9c;
  --clan-ink: #3a1c9c;
  --ball: #ff6b1a;
  --ball-text: #a84300;
  --on-ball: #17122b;
  --hero: #3a1c9c;
  --hero-text: #ffffff;
  --card: #17122b;
  --card-text: #ffffff;
  --phone: #0f0b1d;
  --ok: #157a46;
  --err: #b42318;
  --shadow: 0 24px 60px -24px rgba(35, 15, 110, .45);
  --dot-out: #ff6b1a;
  --dot-in: #5b2ee5;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0b1a; --bg-soft: #141027; --surface: #19132f; --surface-2: #221a3e; --text: #f3f0ff; --text-2: #b9b1da;
    --line: #2d2550; --clan: #8f72ff; --clan-strong: #6d4cf5; --clan-ink: #b7a6ff; --ball: #ff7a2e; --ball-text: #ff9b5e;
    --on-ball: #140f24; --hero: #120d24; --hero-text: #f3f0ff; --card: #0b0816; --card-text: #f3f0ff; --phone: #05040b;
    --ok: #4ade80; --err: #ff8a80; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8); --dot-out: #ff7a2e; --dot-in: #9b82ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0b1a; --bg-soft: #141027; --surface: #19132f; --surface-2: #221a3e; --text: #f3f0ff; --text-2: #b9b1da;
  --line: #2d2550; --clan: #8f72ff; --clan-strong: #6d4cf5; --clan-ink: #b7a6ff; --ball: #ff7a2e; --ball-text: #ff9b5e;
  --on-ball: #140f24; --hero: #120d24; --hero-text: #f3f0ff; --card: #0b0816; --card-text: #f3f0ff; --phone: #05040b;
  --ok: #4ade80; --err: #ff8a80; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8); --dot-out: #ff7a2e; --dot-in: #9b82ff;
  color-scheme: dark;
}

:root {
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; overflow-x: clip; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--bg); transition: background .3s, color .3s; }
h1, h2, h3, h4 { font-family: var(--display); line-height: .95; margin: 0 0 .4em; letter-spacing: .005em; }
h1 { font-weight: 900; font-size: clamp(3.1rem, 10.5vw, 8rem); }
h2 { font-weight: 900; font-size: clamp(2.5rem, 5.6vw, 4.2rem); }
h3 { font-weight: 700; font-size: 1.75rem; }
h4 { font-weight: 700; font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ball); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--ball); color: var(--on-ball); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border: 0;
  border-radius: var(--radius); font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: .98rem; }
.btn--block { width: 100%; }
.btn--ball { background: var(--ball); color: var(--on-ball); }
.btn--ball:hover { box-shadow: 0 10px 24px -10px var(--ball); }
.btn--clan { background: var(--clan-strong); color: #fff; }
.btn--ink { background: #17122b; color: #fff; }
.btn--light { background: #fff; color: #2a1680; }
.btn--ghost { background: transparent; color: var(--clan-ink); border: 2px solid var(--clan); }
.btn--ghost:hover { background: var(--clan); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Barre du haut ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--hero); color: var(--hero-text); transition: box-shadow .2s, background .3s; }
.top.is-scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px -18px rgba(0, 0, 0, .6); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { font-family: var(--display); font-weight: 900; font-size: 2rem; text-decoration: none; color: inherit; }
.logo--small { font-size: 1.3rem; }
.top__nav { display: flex; gap: 24px; }
.top__nav a { text-decoration: none; font-weight: 600; opacity: .9; }
.top__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.top__actions { display: flex; align-items: center; gap: 10px; }
.theme { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); background: transparent; color: inherit; cursor: pointer; }
.theme:hover { background: rgba(255, 255, 255, .1); }
.theme__moon { display: none; }
:root[data-theme="dark"] .theme__sun { display: none; }
:root[data-theme="dark"] .theme__moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme__sun { display: none; } :root:not([data-theme="light"]) .theme__moon { display: block; } }
.top__nav a[aria-current="true"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.subnav { display: none; }
@media (max-width: 760px) {
  .top__nav { display: none; }
  .subnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 12px 10px; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { flex: none; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 6px 12px; border-radius: 999px; color: inherit; opacity: .85; }
  .subnav a[aria-current="true"] { background: rgba(255, 255, 255, .16); opacity: 1; }
}
@media (max-width: 400px) {
  .logo { font-size: 1.6rem; }
  .top__actions { gap: 6px; }
  .top__actions .btn--sm { padding: 0 12px; }
  .theme { width: 38px; height: 38px; }
  .kpis { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Hero ---------- */
.hero { background: var(--hero); color: var(--hero-text); padding: clamp(36px, 6vw, 88px) 0 clamp(64px, 8vw, 120px); overflow: hidden; transition: background .3s; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__lead { font-size: 1.25rem; max-width: 31em; opacity: .95; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero__note { opacity: .8; font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

.stage { position: relative; display: grid; justify-items: center; padding: 10px 0; }
.phone {
  width: min(300px, 100%); aspect-ratio: 300 / 612; border-radius: 46px; background: var(--phone); padding: 12px; position: relative;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.phone__notch { position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 92px; height: 24px; border-radius: 14px; background: #000; z-index: 2; }
.phone__screen { height: 100%; border-radius: 36px; background: var(--card); color: var(--card-text); overflow: hidden; display: flex; flex-direction: column; }
.app-bar { display: flex; justify-content: space-between; align-items: center; padding: 50px 18px 6px; font-weight: 700; font-size: .95rem; }
.app-bar__live { font-size: .78rem; font-weight: 600; color: #4ade80; }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 6px 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .66rem; font-weight: 600; opacity: .75; }
.tabbar .is-on { color: var(--ball); opacity: 1; }

/* Baller Card */
.card { margin: 6px 14px 0; padding: 16px 16px 12px; border-radius: 16px; border: 2px solid var(--ball); background: rgba(255, 255, 255, .03); }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; }
.card__ovr { display: flex; align-items: baseline; gap: 5px; }
.card__ovr span { font-family: var(--display); font-weight: 900; font-size: 4.2rem; line-height: .85; color: var(--ball); font-variant-numeric: tabular-nums; }
.card__ovr small { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.card__meta { display: grid; justify-items: end; gap: 6px; }
.card__tier { background: var(--ball); color: #140f24; font-weight: 700; font-size: .85rem; padding: 2px 9px; border-radius: 4px; }
.card__pos { font-weight: 600; font-size: .85rem; opacity: .8; }
.card__crest { display: grid; place-items: center; color: var(--ball); margin: 2px 0; }
.card__name { text-align: center; font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin: 0 0 8px; }
.card__attrs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.card__attrs li { display: grid; grid-template-columns: 64px 1fr 22px; align-items: center; gap: 8px; font-size: .78rem; }
.card__attrs em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bar { display: block; height: 6px; background: rgba(255, 255, 255, .12); border-radius: 4px; overflow: hidden; }
.bar b { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--ball); border-radius: 4px; }
.card__badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 6px; }
.card__badges span { border: 1.5px solid #8f72ff; color: #d3c8ff; padding: 1px 7px; border-radius: 4px; font-size: .74rem; font-weight: 600; }
.card__rel { margin: 0; font-size: .74rem; opacity: .7; }

/* Notifications autour du téléphone */
.toasts { list-style: none; margin: 0; padding: 0; }
.toast {
  position: absolute; z-index: 3; max-width: 240px; padding: 12px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.35;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.toast b { color: var(--clan-ink); }
/* Grand écran : téléphone à droite, notifications en colonne à sa gauche, sans rien cacher */
@media (min-width: 961px) {
  .stage { justify-items: end; }
  .toast { left: 0; max-width: min(230px, calc(100% - 330px)); }
  .toast--a { top: 90px; }
  .toast--b { top: 270px; }
  .toast--c { top: 450px; }
}
/* Écran moyen ou petit : notifications sous le téléphone */
@media (max-width: 960px) {
  .toasts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; width: 100%; }
  .toast { position: static; max-width: none; }
}
@media (max-width: 620px) {
  .toasts { grid-template-columns: minmax(0, 1fr); }
  .phone { width: min(280px, 100%); }
}

/* Séquence d'ouverture (une seule fois) */
.js .phone { opacity: 0; transform: translateY(40px) rotate(-4deg); }
.js .is-ready .phone { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform 1s var(--ease); }
.js .card .bar b { width: 0; }
.js .is-revealed .card .bar b { width: calc(var(--v) * 1%); transition: width .9s var(--ease); }
.js .is-revealed .card__attrs li:nth-child(2) .bar b { transition-delay: .07s; }
.js .is-revealed .card__attrs li:nth-child(3) .bar b { transition-delay: .14s; }
.js .is-revealed .card__attrs li:nth-child(4) .bar b { transition-delay: .21s; }
.js .is-revealed .card__attrs li:nth-child(5) .bar b { transition-delay: .28s; }
.js .is-revealed .card__attrs li:nth-child(6) .bar b { transition-delay: .35s; }
.js .card__tier { transform: scale(0); }
.js .is-revealed .card__tier { animation: pop .45s var(--ease) 1.1s forwards; }
.js .toast { opacity: 0; transform: translateY(14px) scale(.96); }
.js .is-revealed .toast { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.js .is-revealed .toast--a { transition-delay: 1.4s; }
.js .is-revealed .toast--b { transition-delay: 2s; }
.js .is-revealed .toast--c { transition-delay: 2.6s; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------- Les deux moitiés ---------- */
.halves { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.half { display: grid; gap: 6px; align-content: center; min-height: 230px; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px); text-decoration: none; }
.half--clan { background: var(--clan-strong); color: #fff; text-align: right; border-right: 3px solid #fff; padding-right: 120px; }
.half--ball { background: var(--ball); color: #140f24; border-left: 3px solid #fff; padding-left: 120px; }
.half__q { font-family: var(--display); font-weight: 900; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1; }
.half__a { font-weight: 600; font-size: 1.1rem; }
.half:hover .half__q { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 7px; }
.halves__circle { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 150px; height: 150px; border: 6px solid #fff; border-radius: 50%; pointer-events: none; }
@media (max-width: 720px) {
  .halves { grid-template-columns: 1fr; }
  .half--clan { text-align: left; border-right: 0; border-bottom: 3px solid #fff; padding-right: 20px; padding-bottom: 80px; }
  .half--ball { border-left: 0; border-top: 3px solid #fff; padding-left: 20px; padding-top: 80px; }
  .halves__circle { width: 110px; height: 110px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--ball { background: var(--ball); color: #140f24; }
.section--ball h2 { color: #140f24; }
.section__lead { font-size: 1.2rem; max-width: 38em; color: var(--text-2); }
#commish h2, #commish h3 { color: var(--clan-ink); }

/* Planificateur */
.planner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); margin-top: 40px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.planner__controls { padding: clamp(20px, 3vw, 36px); display: grid; gap: 22px; align-content: start; }
.planner__controls h3 { margin: 0; }
.range { display: grid; gap: 8px; font-weight: 600; }
.range span { display: flex; justify-content: space-between; align-items: baseline; }
.range output { font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1; color: var(--clan-ink); }
input[type="range"] { width: 100%; accent-color: var(--clan); height: 28px; }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.seg legend { font-weight: 600; margin-bottom: 8px; padding: 0; width: 100%; }
.seg label, .scout label { position: relative; }
.seg input, .scout input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span, .scout fieldset span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line);
  font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.seg input:checked + span { background: var(--clan); border-color: var(--clan); color: #fff; }
.seg input:focus-visible + span, .scout input:focus-visible + span { outline: 3px solid var(--ball); outline-offset: 2px; }
.planner__result { background: #3a1c9c; color: #fff; padding: clamp(20px, 3vw, 36px); display: grid; align-content: center; }
#commish .planner__result h3 { color: #fff; }
.planner__format { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.05; margin: 0 0 22px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 16px; }
.kpis div { border-top: 3px solid rgba(255, 255, 255, .35); padding-top: 10px; }
.kpis dt { font-size: .9rem; opacity: .85; }
.kpis dd { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.planner__note { margin: 0; font-size: .9rem; opacity: .85; }
@media (max-width: 860px) { .planner { grid-template-columns: minmax(0, 1fr); } }

/* Tirage */
.draw { margin-top: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 32px); }
.draw__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.draw__head h3 { margin: 0; }
.draw__hint { margin: 10px 0 18px; color: var(--text-2); }
.draw__hat { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; padding-bottom: 18px; border-bottom: 2px dashed var(--line); margin-bottom: 18px; }
.draw__pools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pool { background: var(--bg-soft); border-radius: 14px; padding: 12px; }
.pool h4 { color: var(--clan-ink); margin-bottom: 10px; }
.pool__slots { display: grid; gap: 8px; min-height: 188px; align-content: start; }
.chip { display: block; padding: 8px 10px; border: 2px solid var(--clan); border-radius: 8px; background: var(--surface); color: var(--text); font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip--seed { background: var(--ball); border-color: var(--ball); color: #140f24; }
.chip.is-flying { transition: transform .7s var(--ease); position: relative; z-index: 2; }
@media (max-width: 760px) { .draw__pools { grid-template-columns: 1fr 1fr; } }

/* Page publique en direct */
.live { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 72px; }
.live__copy p { color: var(--text-2); }
.browser { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); font-size: .8rem; color: var(--text-2); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser__bar span { margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: var(--surface); }
.browser__body { padding: 18px; }
.live__title { font-family: var(--display); font-weight: 700; font-size: 1.6rem; margin: 0 0 12px; display: flex; align-items: center; gap: 12px; }
.live__dot { font-family: var(--body); font-size: .8rem; font-weight: 700; color: #e11d48; display: inline-flex; align-items: center; gap: 6px; }
.live__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e11d48; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.games { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.game { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); }
.game__team { font-weight: 600; }
.game__team.is-lead { color: var(--clan-ink); }
.game__score { font-family: var(--display); font-weight: 900; font-size: 1.5rem; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.game__score.is-bump { color: var(--ball-text); animation: bump .5s var(--ease); }
.game__meta { grid-column: 1 / -1; font-size: .8rem; color: var(--text-2); }
@keyframes bump { 40% { transform: scale(1.25); } }
@media (max-width: 860px) { .live { grid-template-columns: minmax(0, 1fr); } }

/* Offre */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); margin-top: 72px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.offer__free { background: var(--surface); padding: 30px; }
.offer__free p { color: var(--text-2); }
.offer__pro { background: #140f24; color: #f3f0ff; padding: 30px; }
#commish .offer__pro h3 { color: #ff7a2e; }
.offer__msg { margin: 14px 0 0; font-weight: 600; }
.offer__msg a { color: #ffb38a; }
@media (max-width: 760px) { .offer { grid-template-columns: minmax(0, 1fr); } }

/* Action de fin de section */
.next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 40px; padding: 22px 26px; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--line); }
.next p { margin: 0; font-weight: 600; font-size: 1.1rem; }
.next--ball { background: rgba(255, 255, 255, .9); border-color: transparent; color: #17122b; }
@media (max-width: 560px) { .next .btn { width: 100%; } }

/* ---------- Joueurs ---------- */
.scout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 24px; margin-top: 36px; align-items: stretch; }
.scout__quiz { background: #fff; color: #17122b; border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.scout__quiz h3 { color: #17122b; }
.scout fieldset { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.scout legend { font-weight: 700; margin-bottom: 8px; padding: 0; width: 100%; }
.scout fieldset span { border-color: #e2dcf5; background: #fff; color: #17122b; }
.scout input:checked + span { background: #17122b; border-color: #17122b; color: #fff; }
.scout__err { color: #9b1c12; font-weight: 600; min-height: 1.2em; margin: 0 0 8px; }
.scout__result { background: #140f24; color: #f3f0ff; border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: grid; align-content: center; justify-items: start; }
.scout__ovr { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.scout__ovr span { font-family: var(--display); font-weight: 900; font-size: clamp(5rem, 10vw, 7rem); line-height: .85; color: #ff7a2e; font-variant-numeric: tabular-nums; }
.scout__ovr small { font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.scout__tier { font-family: var(--display); font-weight: 700; font-size: 2rem; margin: 8px 0 4px; }
.scout__range { margin: 0 0 12px; opacity: .9; }
.scout__disc { font-size: .85rem; opacity: .7; }
.scout__result .btn--ink { background: #ff7a2e; color: #140f24; }
.scout__result.is-shown .scout__tier { animation: pop .45s var(--ease); }
@media (max-width: 860px) { .scout { grid-template-columns: minmax(0, 1fr); } }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; }
.features > div { border-top: 4px solid #17122b; padding-top: 14px; }
.features h3 { color: #17122b; }
.features p { margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }

/* ---------- Carte des terrains ---------- */
.map { background: var(--bg); padding: clamp(64px, 9vw, 120px) 0; }
.map__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.map__copy .map__num { font-family: var(--display); font-weight: 900; font-size: clamp(4.5rem, 12vw, 9rem); line-height: .85; color: var(--ball-text); margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.map h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.map__copy p { color: var(--text-2); max-width: 32em; }
.legend { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 20px; font-weight: 600; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend__dot { width: 12px; height: 12px; border-radius: 50%; }
.legend__dot--out { background: var(--dot-out); }
.legend__dot--in { background: var(--dot-in); }
.map__fig { margin: 0; }
.map__fig canvas { width: 100%; height: auto; display: block; aspect-ratio: 600 / 581; }
.map__fig figcaption { font-size: .85rem; color: var(--text-2); margin-top: 8px; }
@media (max-width: 860px) { .map__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Formulaires ---------- */
.forms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 32px; align-items: start; }
@media (max-width: 900px) { .forms { grid-template-columns: minmax(0, 1fr); } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.form--clan { border-top: 8px solid var(--clan-strong); }
.form--ball { border-top: 8px solid var(--ball); }
.form__intro { font-size: .98rem; color: var(--text-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.field { margin: 0 0 14px; min-width: 0; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: .95rem; }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 9px 12px; font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: var(--radius);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--clan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--clan) 25%, transparent); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.field--hp { position: absolute; left: -9999px; }
.field__error { color: var(--err); font-weight: 600; font-size: .9rem; margin: 4px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--clan); }
.form .btn { margin-top: 6px; }
.form__status { margin: 12px 0 0; font-weight: 600; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--err); }

/* ---------- Questions ---------- */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1; color: var(--clan-ink); }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--text-2); }

/* ---------- Pied de page ---------- */
.foot { background: #0b0816; color: #f3f0ff; padding: 30px 0; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 18px; }
.foot__src { width: 100%; font-size: .85rem; opacity: .7; }

/* ---------- Pages légales ---------- */
.legal { padding: 48px 0 80px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
.legal h2 { font-size: 1.8rem; margin-top: 1.4em; }
.todo { background: color-mix(in srgb, var(--ball) 25%, transparent); padding: 0 4px; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .phone, .js .toast { opacity: 1; transform: none; }
  .js .card .bar b { width: calc(var(--v) * 1%); }
  .js .card__tier { transform: none; }
}
