/* NBA MVP Predictor — site vitrine
   Monde : habillage de retransmission en soirée d'arena. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #07080c;
  --ink-2: #0b0d14;
  --ink-3: #11141e;
  --text: #eef0f6;
  --muted: #a2a9bc;
  --dim: #7f879c;
  --orange: #ff7a2f;
  --orange-soft: #ffb58a;
  --blue: #4d8bff;
  --blue-soft: #9dbdff;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(16, 19, 29, 0.58);
  --glass-strong: rgba(14, 16, 25, 0.78);
  --radius: 14px;
  --radius-s: 9px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Archivo", "Helvetica Neue", sans-serif;
  --body: "Archivo", "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  scrollbar-color: #2a2f40 var(--ink);
}
::selection { background: rgba(255, 122, 47, 0.35); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #262b3a; border-radius: 10px; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: #343a4e; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration-color: rgba(255, 122, 47, 0.6); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
strong { font-weight: 650; color: #fff; }
em { font-style: normal; color: #fff; font-weight: 550; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.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: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--orange); color: #12080a; border-radius: 8px; font-weight: 650; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Typographie de tableau d'affichage */
.display, .title {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.display { font-size: clamp(2.75rem, 7vw, 6rem); }
.display span { display: block; }
.title { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 0.96; }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); max-width: 52ch; margin: 0; }
.lede strong { font-variant-numeric: tabular-nums; }

/* Verre façon bandeau TV : flou + filet 1px */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

/* Boutons */
.btn {
  --b-bg: transparent;
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 22px;
  border-radius: 999px;
  font: 650 15px/1 var(--body);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, border-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary {
  background: linear-gradient(180deg, #ff8b47, var(--orange));
  color: #1a0b03;
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); background: linear-gradient(180deg, #ff9a5e, #ff8640); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover { border-color: rgba(77, 139, 255, 0.55); background: rgba(77, 139, 255, 0.08); transform: translateY(-2px); }
.btn--small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--large { height: 58px; padding: 0 28px; font-size: 16px; }
.icon-btn {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03); color: var(--text);
  cursor: pointer; transition: border-color .2s, background-color .2s, transform .5s var(--ease-out);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--orange); background: rgba(255, 122, 47, 0.1); }
.icon-btn:hover svg { transform: rotate(-40deg); transition: transform .5s var(--ease-out); }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.nav__inner {
  pointer-events: auto;
  max-width: calc(var(--wrap) - 2 * 24px);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .4s, border-color .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
.nav.is-scrolled .nav__inner, .nav.is-open .nav__inner {
  background: var(--glass-strong);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: 0.01em; }
.brand b { font-weight: 800; font-stretch: 112%; }
.brand__mark { width: 28px; height: 28px; color: var(--text); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 14.5px; transition: color .2s, background-color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: max(100svh, 680px);
  display: flex;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1200px 600px at 85% 15%, rgba(77, 139, 255, 0.12), transparent 60%),
    radial-gradient(900px 500px at 10% 100%, rgba(255, 122, 47, 0.08), transparent 60%),
    radial-gradient(1400px 900px at 50% 40%, rgba(46, 38, 96, 0.35), transparent 70%),
    var(--ink);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 160px; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--ink));
}
.hero__field, .hero__race { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__field { z-index: 0; }
.hero__race { z-index: 1; }
.hero__inner {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(48px, 11vh, 120px)) var(--gutter) clamp(40px, 7vh, 72px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.hero__copy { max-width: 720px; position: relative; }
.hero__copy::before {
  content: ""; position: absolute; inset: -80px -120px -60px -200px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 8, 12, 0.85), rgba(7, 8, 12, 0.4) 60%, transparent);
}
.hero .display { margin-bottom: 28px; }
.hero .display span:last-child { color: transparent; -webkit-text-stroke: 1.5px rgba(238, 240, 246, 0.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Bandeau en verre (lower third) */
.ticker { width: min(100%, 400px); padding: 16px 18px 14px; }
.ticker__head { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.ticker__date { margin-left: auto; color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; }
.live-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
.ticker__rows { list-style: none; margin: 12px 0 10px; padding: 0; display: grid; gap: 2px; }
.ticker__rows li {
  display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px;
  height: 30px; font-size: 14.5px; position: relative;
}
.ticker__rows .rk { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.ticker__rows .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; }
.ticker__rows .nm small { color: var(--dim); font-size: 12px; margin-left: 6px; letter-spacing: 0.04em; }
.ticker__rows .pc { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14px; position: relative; z-index: 1; }
.ticker__rows .bar { position: absolute; left: 28px; right: 0; bottom: 3px; height: 2px; border-radius: 2px; background: var(--c, var(--blue)); opacity: 0.85; transform-origin: left; }
.ticker__rows li:first-child .nm { font-weight: 650; }
.ticker__scrub { display: flex; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ticker__scrub input { flex: 1; }
.ticker__note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); min-height: 1.45em; }

input[type="range"] { -webkit-appearance: none; appearance: none; height: 24px; background: transparent; cursor: pointer; --p: 0%; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--orange) var(--p), rgba(255, 255, 255, 0.12) var(--p)); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
input[type="range"]::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--orange); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6.5px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(255, 122, 47, 0.25), 0 2px 6px rgba(0, 0, 0, 0.6); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(255, 122, 47, 0.25); }

/* Sections */
.section { position: relative; padding: clamp(96px, 14vw, 168px) 0 0; }
.section__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 64px); }
.section__text { margin: 0; color: var(--muted); max-width: 56ch; }

/* Palmarès */
.palmares__body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.seasons { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.tile {
  position: relative; aspect-ratio: 1 / 0.86;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 9px 10px;
  border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font: 500 12px/1 var(--mono);
  text-align: left; cursor: pointer;
  transition: border-color .25s, background-color .25s, color .25s, translate .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.tile b { font: 700 clamp(15px, 1.5vw, 20px)/1 var(--display); font-stretch: 112%; color: var(--text); letter-spacing: -0.01em; }
.tile i { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; }
.tile--hit { background: linear-gradient(160deg, rgba(255, 122, 47, 0.13), rgba(255, 122, 47, 0.02)); border-color: rgba(255, 122, 47, 0.22); }
.tile--hit i { background: var(--orange); }
.tile--miss i { border: 1.5px solid var(--blue); }
.tile:hover, .tile.is-active { translate: 0 -3px; color: var(--text); }
.tile--hit:hover, .tile--hit.is-active { border-color: var(--orange); box-shadow: 0 14px 24px -14px rgba(0, 0, 0, 0.9); }
.tile--miss:hover, .tile--miss.is-active { border-color: var(--blue); background: rgba(77, 139, 255, 0.08); box-shadow: 0 14px 24px -14px rgba(0, 0, 0, 0.9); }
.legend { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend__hint { color: var(--dim); }
.tile-dot { width: 8px; height: 8px; border-radius: 50%; }
.tile-dot--hit { background: var(--orange); }
.tile-dot--miss { border: 1.5px solid var(--blue); }

.season-card { padding: 22px; position: sticky; top: calc(var(--nav-h) + 32px); }
.sc__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sc__season { font: 900 30px/1 var(--display); font-stretch: 125%; letter-spacing: -0.01em; }
.sc__verdict { font-size: 12.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; padding: 5px 10px; border-radius: 999px; }
.sc__verdict--hit { color: var(--orange-soft); background: rgba(255, 122, 47, 0.12); }
.sc__verdict--miss { color: var(--blue-soft); background: rgba(77, 139, 255, 0.12); }
.sc__pair { display: grid; gap: 14px; margin: 22px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.sc__pair dt { font-size: 12.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.sc__pair dd { margin: 4px 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 17px; font-weight: 600; }
.sc__pair dd span:last-child { font-family: var(--mono); font-size: 14px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.sc__note { font-size: 14px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.sc__top5 { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.sc__top5 li { display: grid; grid-template-columns: 1fr 64px 44px; gap: 10px; align-items: center; font-size: 13.5px; }
.sc__top5 .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.sc__top5 li.is-real .nm { color: var(--text); font-weight: 600; }
.sc__top5 .track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.sc__top5 .track span { display: block; height: 100%; border-radius: inherit; background: var(--orange); transform-origin: left; transition: transform .6s var(--ease-out); }
.sc__top5 .pc { font-family: var(--mono); font-size: 12.5px; text-align: right; color: var(--muted); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; perspective: 1400px; }
.feature {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden;
  padding: 28px; min-height: 320px;
  display: flex; flex-direction: column; gap: 24px;
  transform-style: preserve-3d;
  transition: border-color .3s, box-shadow .6s var(--ease-out);
}
.feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 122, 47, 0.13), transparent 60%);
}
.feature:hover { border-color: rgba(255, 255, 255, 0.16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.feature:hover::before { opacity: 1; }
.feature--wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 32px; }
.feature h3 { margin: 0 0 8px; font: 800 22px/1.1 var(--display); font-stretch: 118%; text-transform: uppercase; letter-spacing: 0; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
.feature__text { position: relative; }
.viz { position: relative; margin-top: auto; }
.feature--wide .viz { margin-top: 0; }

.vbar { display: grid; grid-template-columns: 140px 1fr 46px; gap: 12px; align-items: center; font-size: 13.5px; height: 30px; }
.vbar .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.vbar:first-child .nm { color: var(--text); font-weight: 600; }
.vbar .track { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.vbar .track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(255, 122, 47, 0.5), var(--orange)); transform-origin: left; }
.viz--weights .vbar .track span { background: linear-gradient(90deg, rgba(77, 139, 255, 0.45), var(--blue)); }
.viz--weights .vbar { grid-template-columns: 150px 1fr 40px; }
.vbar .pc { font-family: var(--mono); font-size: 12.5px; text-align: right; color: var(--muted); }
.feature .viz-cap { margin: 10px 0 0; font-size: 12.5px; color: var(--dim); }

.pair { display: grid; grid-template-columns: 62px 1fr 20px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.pair:first-child { border-top: 0; }
.pair .yr { font-family: var(--mono); color: var(--dim); font-size: 12.5px; }
.pair .who { display: grid; line-height: 1.3; min-width: 0; }
.pair .who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair .who span:last-child { color: var(--dim); font-size: 12.5px; }
.pair svg { width: 18px; height: 18px; }
.pair .ok { color: var(--orange); }
.pair .ko { color: var(--blue); }

.viz--race { width: 100%; height: 140px; overflow: visible; }

/* Aperçu */
.window { overflow: hidden; padding: 0; transform-origin: 50% 0; }
.window__bar { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.window__dots { display: flex; gap: 7px; }
.window__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.window__url { flex: 1; text-align: center; font-size: 12.5px; color: var(--dim); margin-right: 50px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window__body { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 480px; }
.app-side { padding: 24px 20px; border-right: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); font-size: 13.5px; color: var(--muted); }
.app-side__name { margin: 0 0 6px; color: var(--text); font-weight: 700; font-size: 15px; }
.app-side__meta { margin: 0 0 28px; line-height: 1.5; }
.app-side__stat { margin: 0 0 18px; display: grid; }
.app-side__stat .mono { font-size: 26px; color: var(--text); font-weight: 500; line-height: 1.2; }
.app-main { padding: 22px clamp(18px, 3vw, 32px) 28px; min-width: 0; }
.app-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; font-size: 14px; color: var(--dim); overflow-x: auto; scrollbar-width: none; }
.app-tabs span { padding: 0 0 12px; white-space: nowrap; }
.app-tabs .is-active { color: var(--text); box-shadow: inset 0 -2px 0 var(--orange); }
.app-select { display: inline-grid; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.app-select select {
  -webkit-appearance: none; appearance: none;
  min-width: 200px; height: 42px; padding: 0 40px 0 14px;
  border-radius: var(--radius-s); border: 1px solid var(--line-2);
  background: var(--ink-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%23a2a9bc' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  color: var(--text); font: 500 15px var(--mono); cursor: pointer;
  transition: border-color .2s;
}
.app-select select:hover { border-color: rgba(255, 255, 255, 0.28); }
.app-select select option { background: var(--ink-3); color: var(--text); }
.app-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.metric { margin: 0; padding: 14px 16px; border-radius: var(--radius-s); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); min-width: 0; }
.metric dt { font-size: 12.5px; color: var(--dim); margin-bottom: 6px; }
.metric dd { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.metric dd small { display: block; font: 400 12.5px var(--mono); color: var(--muted); margin-top: 3px; }
.metric--hit dd { color: var(--orange-soft); }
.metric--miss dd { color: var(--blue-soft); }
.app-chart { display: grid; gap: 14px; }
.crow { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: center; }
.crow .nm { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow .nm small { display: block; color: var(--dim); font: 400 12px var(--mono); }
.crow .bars { display: grid; gap: 5px; }
.crow .b { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 10px; align-items: center; }
.crow .b span { height: 9px; border-radius: 9px; transform-origin: left; transition: transform .7s var(--ease-out); }
.crow .b--real span { background: var(--blue); }
.crow .b--pred span { background: var(--orange); }
.crow .b em { font: 400 12px var(--mono); color: var(--muted); text-align: right; }
.app-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.app-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 4px; border-radius: 4px; }
.sw--real { background: var(--blue); }
.sw--pred { background: var(--orange); }
.demo__cta { display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; margin-top: 32px; }
.demo__cta p { margin: 0; color: var(--muted); font-size: 15px; }

/* Méthode */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.pipeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  transform-origin: left; transform: scaleX(var(--line-p, 1)); opacity: 0.6;
}
.step { padding: 0 24px 0 0; position: relative; }
.step__icon { width: 46px; height: 46px; padding: 11px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--text); margin-bottom: 24px; position: relative; }
.step h3 { margin: 0 0 10px; font: 800 19px/1.1 var(--display); font-stretch: 118%; text-transform: uppercase; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.stack { list-style: none; margin: 56px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); transition: color .2s, border-color .2s; }
.stack li:hover { color: var(--text); border-color: var(--line-2); }

/* Conclusion */
.close { position: relative; margin-top: clamp(120px, 16vw, 200px); padding: clamp(96px, 12vw, 150px) 0; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.close__glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 30% 110%, rgba(255, 122, 47, 0.28), transparent 70%),
    radial-gradient(700px 360px at 80% 120%, rgba(77, 139, 255, 0.22), transparent 70%);
}
.close__inner { display: grid; justify-items: start; gap: 28px; }
.display--close { font-size: clamp(2.4rem, 5.6vw, 5rem); max-width: 14ch; }
.nowrap { white-space: nowrap; }

/* Pied de page */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 14.5px; color: var(--muted); background: var(--ink); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer__brand p { margin: 0 0 10px; max-width: 46ch; }
.brand--static { color: var(--text); font-size: 16px; }
.footer__title { margin: 0 0 14px; font-size: 12.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }

/* Page légale */
.legal { padding: calc(var(--nav-h) + 80px) 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 40px; }
.legal h2 { font: 800 18px/1.2 var(--display); font-stretch: 118%; text-transform: uppercase; margin: 40px 0 10px; }
.legal p { color: var(--muted); margin: 0 0 12px; }

/* Responsive */
@media (max-width: 1080px) {
  .palmares__body { grid-template-columns: minmax(0, 1fr); }
  .season-card { position: relative; top: 0; }
  .seasons { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .feature--wide { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 900px) {
  .section__head { grid-template-columns: 1fr; gap: 20px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .feature--wide { grid-column: span 2; }
  .pipeline { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .pipeline::before { display: none; }
  .window__body { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 24px; align-items: end; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 20px; }
  .app-side__meta, .app-side__name { margin: 0; }
  .app-side__name { grid-column: 1; }
  .app-side__meta { grid-column: 1; grid-row: 2; }
  .app-side__stat { margin: 0; grid-row: 1 / span 2; text-align: right; }
  .app-side__stat .mono { font-size: 22px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding-top: 8px; }
  .nav__inner { padding: 0 6px 0 14px; height: 56px; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.04); cursor: pointer;
  }
  .nav__toggle i { display: block; width: 16px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease-out); }
  .nav.is-open .nav__toggle i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(56px + 16px);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border-radius: 20px; border: 1px solid var(--line);
    background: #0c0e16;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .4s var(--ease-out), visibility 0s .4s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease-out); }
  .nav__links a:not(.btn) { padding: 13px 14px; font-size: 16px; color: var(--text); }
  .nav__cta { margin: 8px 0 0; justify-content: center; height: 48px; }
  .hero { min-height: auto; }
  .hero__inner { padding-top: calc(var(--nav-h) + 56px); gap: 40px; }
  .hero__copy::before { inset: -40px -40px -40px -60px; }
  .ticker { width: 100%; }
  .btn { height: 48px; }
  .seasons { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .tile { padding: 7px; aspect-ratio: 1 / 0.9; font-size: 10.5px; }
  .tile i { top: 7px; right: 7px; width: 6px; height: 6px; }
  .bento { grid-template-columns: 1fr; }
  .feature--wide { grid-column: auto; }
  .feature { padding: 22px; min-height: 0; }
  .vbar { grid-template-columns: 96px 1fr 42px; }
  .viz--weights .vbar { grid-template-columns: 124px 1fr 38px; }
  .pipeline { grid-template-columns: 1fr; gap: 32px; }
  .step { display: grid; grid-template-columns: 46px 1fr; gap: 0 18px; padding: 0; }
  .step__icon { grid-row: span 2; margin: 0; }
  .app-side { grid-template-columns: 1fr auto; }
  .app-side__stat:last-child { display: none; }
  .app-metrics { grid-template-columns: 1fr; gap: 8px; }
  .metric { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; }
  .metric dt { margin: 0; flex: none; }
  .metric dd { text-align: right; font-size: 15.5px; }
  .crow { grid-template-columns: 1fr; gap: 6px; }
  .app-select, .app-select select { width: 100%; }
  .window__url { margin-right: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .display { font-size: 2.55rem; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}

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