/* LOTO·SYSTÈMES — « Studio du tirage ». Thème sombre (nuit de studio) et thème clair (papier), chacun conçu pour lui-même.
   Graphiques : palette validée (séries #3987e5 / #d95926 sur #10172b ; #2a78d6 / #eb6834 sur blanc). */

:root {
  color-scheme: dark;
  --font-text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bahnschrift", "DIN Alternate", "Barlow", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --bg: #05060d;
  --bg-2: #0b1023;
  --text-primary: #f2f4ff;
  --text-secondary: #b4bcdb;
  --text-muted: #7d86a8;
  --surface-1: #10172b;
  --surface-2: #161e38;
  --surface-3: #1e2847;
  --glass: rgba(14, 19, 40, 0.62);
  --glass-2: rgba(22, 29, 58, 0.72);
  --glass-nav: rgba(9, 12, 28, 0.55);
  --border: rgba(150, 165, 255, 0.12);
  --border-strong: rgba(160, 175, 255, 0.22);
  --border-hover: rgba(150, 185, 255, 0.4);
  --accent: #7f8cff;
  --accent-2: #41e2d3;
  --accent-grad: linear-gradient(115deg, #a78bfa 0%, #6d8bff 42%, #38d9cf 100%);
  --accent-ink: #060816;
  --gold-grad: linear-gradient(100deg, #f2c55c 0%, #fff1c4 18%, #f0b73e 36%, #c98a14 52%, #ffe7a3 70%, #e5a62c 86%, #f2c55c 100%);
  --track: rgba(150, 165, 255, 0.14);
  --spot: rgba(130, 150, 255, 0.12);
  --series-1: #3987e5;
  --series-2: #d95926;
  --mark-muted: #3a4466;
  --grid: #1f2844;
  --axis: #2c3657;
  --good: #22c55e;
  --good-ink: #4ade80;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #ff5470;
  --shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.75);
  --shadow-soft: 0 16px 40px -18px rgba(0, 0, 0, 0.6);
  --paper: #fbf7ee;
  --print: #d6506c;
  --ink: #1c2b7a;
  --radius: 24px;
  --radius-sm: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2eee6;
  --bg-2: #e8e1d3;
  --text-primary: #15131d;
  --text-secondary: #4b4759;
  --text-muted: #7b7687;
  --surface-1: #ffffff;
  --surface-2: #f7f4ee;
  --surface-3: #ece7dd;
  --glass: rgba(255, 253, 249, 0.8);
  --glass-2: rgba(255, 255, 255, 0.92);
  --glass-nav: rgba(255, 253, 248, 0.72);
  --border: rgba(45, 35, 15, 0.09);
  --border-strong: rgba(45, 35, 15, 0.17);
  --border-hover: rgba(79, 70, 229, 0.38);
  --accent: #4f46e5;
  --accent-2: #0d9488;
  --accent-grad: linear-gradient(115deg, #7c3aed 0%, #4f46e5 42%, #0e9f97 100%);
  --accent-ink: #ffffff;
  --gold-grad: linear-gradient(100deg, #9a6b00 0%, #d39b1c 22%, #f0c75a 40%, #b8800c 60%, #e6b23a 80%, #9a6b00 100%);
  --track: rgba(45, 35, 15, 0.08);
  --spot: rgba(79, 70, 229, 0.07);
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --mark-muted: #c8ccdb;
  --grid: #e6e8f0;
  --axis: #c9cddb;
  --good: #16a34a;
  --good-ink: #15803d;
  --warning: #b7791f;
  --serious: #c2410c;
  --critical: #be123c;
  --shadow: 0 30px 70px -30px rgba(70, 50, 20, 0.38);
  --shadow-soft: 0 14px 34px -20px rgba(70, 50, 20, 0.32);
  --paper: #fffdf7;
}

/* ------------------------------------------------------------------------------------------- bases */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: 96px; }
body {
  font-family: var(--font-text);
  color: var(--text-primary);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: color-mix(in oklab, var(--accent) 45%, transparent); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 10px; }
.icon { flex: none; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hide-sm { }
h1, h2, h3, h4 { margin: 0; }

/* ------------------------------------------------------------------------------------------ décor */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(1200px 700px at 50% -10%, color-mix(in oklab, var(--bg-2) 90%, #2b2a8f 10%), transparent 70%),
  linear-gradient(180deg, var(--bg-2), var(--bg) 60%); }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.32; animation: drift 30s ease-in-out infinite alternate; }
.g1 { width: 52vmax; height: 52vmax; left: -16vmax; top: -22vmax; background: #4b3bdb; }
.g2 { width: 44vmax; height: 44vmax; right: -16vmax; top: 18vh; background: #0fb3a6; opacity: 0.22; animation-duration: 36s; }
.g3 { width: 40vmax; height: 40vmax; left: 28vw; bottom: -26vmax; background: #b0249f; opacity: 0.14; animation-duration: 42s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(5vmax, 4vmax, 0) scale(1.12); } }
.stars { position: absolute; inset: 0; opacity: 0.55; background-image:
  radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55), transparent 60%), radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.45), transparent 60%),
  radial-gradient(1.5px 1.5px at 38% 64%, rgba(180,200,255,.5), transparent 60%), radial-gradient(1px 1px at 86% 72%, rgba(255,255,255,.4), transparent 60%),
  radial-gradient(1px 1px at 22% 86%, rgba(255,255,255,.35), transparent 60%), radial-gradient(1.2px 1.2px at 58% 34%, rgba(160,255,240,.45), transparent 60%);
  background-size: 640px 640px; }
.grain { position: absolute; inset: -50%; opacity: 0.07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
[data-theme="light"] .backdrop { background:
  radial-gradient(900px 520px at 85% -5%, rgba(124, 58, 237, .10), transparent 70%),
  radial-gradient(900px 600px at 0% 30%, rgba(14, 159, 151, .08), transparent 70%),
  linear-gradient(180deg, #f7f3ec, var(--bg)); }
[data-theme="light"] .glow { opacity: 0.10; }
[data-theme="light"] .stars { display: none; }
[data-theme="light"] .grain { opacity: 0.05; }

/* ----------------------------------------------------------------------------------- barre du haut */
.topbar { position: sticky; top: 12px; z-index: 40; max-width: 1300px; margin: 12px auto 0; display: flex; align-items: center; gap: 14px;
  padding: 7px 8px 7px 12px; border-radius: 999px; background: var(--glass-nav); border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); transition: background .3s, box-shadow .3s; }
.topbar.scrolled { background: var(--glass-2); box-shadow: var(--shadow-soft); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding-right: 6px; }
.brand-ball { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 32% 26%, #fff 0%, #c8bfff 30%, #6d5bf0 70%, #2a1d84 100%);
  box-shadow: inset -3px -4px 8px rgba(20, 10, 80, .45), 0 6px 18px -6px rgba(109, 91, 240, .8); animation: spin-in 1s var(--ease) both; }
.brand-ball b { width: 18px; height: 18px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 700 12px/1 var(--font-display); color: #11152e; }
@keyframes spin-in { from { transform: rotate(-200deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.brand-name { font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; white-space: nowrap; }
.brand-name i { font-style: normal; color: var(--accent-2); margin: 0 1px; }
.nav { position: relative; display: flex; gap: 2px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; z-index: 1; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600;
  color: var(--text-secondary); white-space: nowrap; transition: color .3s; }
.nav a:hover { color: var(--text-primary); }
.nav a.active { color: var(--accent-ink); }
.nav-pill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 999px; background: var(--accent-grad); opacity: 0; z-index: 0;
  box-shadow: 0 8px 26px -8px color-mix(in oklab, var(--accent) 70%, transparent); transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.data-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: color-mix(in oklab, var(--surface-1) 60%, transparent); white-space: nowrap; }
.data-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 color-mix(in oklab, var(--good) 60%, transparent); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--good) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.theme-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: color-mix(in oklab, var(--surface-1) 60%, transparent);
  display: grid; place-items: center; cursor: pointer; color: var(--text-secondary); transition: color .2s, border-color .2s, transform .4s var(--ease); }
.theme-btn:hover { color: var(--text-primary); border-color: var(--border-hover); transform: rotate(25deg); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; grid-area: 1 / 1; transition: opacity .3s, transform .5s var(--ease); }
.theme-btn .moon { fill: currentColor; stroke: none; }
:root:not([data-theme="light"]) .theme-btn .moon, [data-theme="light"] .theme-btn .sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ------------------------------------------------------------------------------------------- vue */
.view { max-width: 1300px; margin: 0 auto; padding: 18px clamp(16px, 3.4vw, 44px) 60px; outline: none; transition: opacity .3s; }
.view.enter > * { animation: page-in .6s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.view.is-loading { opacity: .5; pointer-events: none; }
.view.is-loading::after { content: "Recalcul de la fiche…"; position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px;
  background: var(--glass-2); border: 1px solid var(--border-strong); font-size: 13px; font-weight: 600; color: var(--text-primary); box-shadow: var(--shadow-soft); }
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }

.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 11.5px; font-weight: 700; color: var(--text-muted); }
.lead { color: var(--text-secondary); font-size: 18px; max-width: 70ch; margin: 14px 0 0; }
.page-head { margin: 46px 0 34px; }
.page-head h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(42px, 6vw, 84px); line-height: .95; letter-spacing: -.02em; margin-top: 12px;
  font-stretch: 87.5%; }
.page-head .callout { margin-top: 22px; max-width: 980px; }
.gold-text { background: var(--gold-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 220% 50%; } }
.panel { position: relative; background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: var(--shadow-soft); }
.spot { position: relative; isolation: isolate; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 48%); }
.spot:hover { border-color: var(--border-hover); }
.spot:hover::after { opacity: 1; }
.callout { border-radius: var(--radius-sm); padding: 14px 18px; font-size: 14.5px; color: var(--text-secondary);
  background: color-mix(in oklab, var(--accent) 9%, var(--glass)); border: 1px solid color-mix(in oklab, var(--accent) 28%, transparent); }
.callout strong { color: var(--text-primary); }

/* ----------------------------------------------------------------------------------------- boutons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: color-mix(in oklab, var(--surface-1) 55%, transparent); cursor: pointer; font-weight: 650; font-size: 14.5px;
  text-decoration: none; white-space: nowrap; overflow: hidden; transition: transform .3s var(--ease), border-color .2s, box-shadow .3s, background .2s; }
.btn:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.primary { background: var(--accent-grad); color: var(--accent-ink); border-color: transparent;
  box-shadow: 0 14px 34px -12px color-mix(in oklab, var(--accent) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn.primary:hover::after { transform: translateX(120%); }
.btn.ghost { background: transparent; }
.btn.glass { background: var(--glass-2); backdrop-filter: blur(10px); }
.btn.lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn.small { height: 32px; padding: 0 14px; font-size: 13px; }
.btn .spin { display: none; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .8s linear infinite; }
.btn.busy .spin { display: inline-block; }
.btn.busy .icon { display: none; }
@keyframes rot { to { transform: rotate(360deg); } }
.linkish { background: none; border: 0; padding: 0; color: var(--text-muted); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--text-primary); }
.table-toggle { margin-top: 14px; }
.table-toggle .table-wrap { margin-top: 10px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--border-strong); color: var(--text-secondary); background: color-mix(in oklab, var(--surface-2) 70%, transparent); }
.badge.accent { background: var(--accent-grad); color: var(--accent-ink); border-color: transparent; }
.badge.good { color: var(--good-ink); border-color: color-mix(in oklab, var(--good) 45%, transparent); }
.badge.warn { color: var(--warning); border-color: color-mix(in oklab, var(--warning) 45%, transparent); }
.badge.cold { color: var(--series-1); border-color: color-mix(in oklab, var(--series-1) 45%, transparent); }
.badge.gold { color: #3a2600; border-color: transparent; background: var(--gold-grad); background-size: 220% 100%; animation: shimmer 7s linear infinite; }
.badge.clickable { cursor: pointer; border: 0; }

/* ------------------------------------------------------------------------------------------- boules */
.balls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ball { --s: 46px; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; position: relative; flex: none;
  background: radial-gradient(circle at 32% 26%, #ffffff 0%, #f4f6fd 22%, #cfd7f0 58%, #8e9cc9 100%);
  box-shadow: inset -5px -7px 12px rgba(20, 28, 80, .32), inset 3px 4px 8px rgba(255, 255, 255, .75), 0 12px 20px -10px rgba(0, 0, 0, .6);
  animation: drop .75s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(min(var(--i, 0), 16) * 55ms); transition: transform .3s var(--ease); }
.ball b { position: relative; z-index: 1; font: 700 calc(var(--s) * .42)/1 var(--font-display); color: #11152e; letter-spacing: -.02em; }
.ball::after { content: ""; position: absolute; top: 11%; left: 20%; width: 32%; height: 20%; border-radius: 50%; transform: rotate(-28deg);
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0)); }
.ball:hover { transform: translateY(-3px) rotate(-8deg); }
.ball.chance { background: radial-gradient(circle at 32% 26%, #ffe3ea 0%, #ff8ea6 24%, #e8365f 62%, #8d0f33 100%);
  box-shadow: inset -5px -7px 12px rgba(80, 0, 20, .4), inset 3px 4px 8px rgba(255, 255, 255, .35), 0 12px 24px -10px rgba(232, 54, 95, .75); }
.ball.chance b { color: #fff; text-shadow: 0 1px 2px rgba(80, 0, 20, .4); }
.ball.md { --s: 40px; }
.ball.sm { --s: 32px; }
.plus { color: var(--text-muted); font-weight: 700; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-22px) scale(.6) rotate(-60deg); } 100% { opacity: 1; transform: none; } }
[data-theme="light"] .ball { box-shadow: inset -5px -7px 12px rgba(20, 28, 80, .22), inset 3px 4px 8px rgba(255,255,255,.8), 0 10px 18px -10px rgba(40, 30, 10, .45); }

/* --------------------------------------------------------------------------------------------- héros */
.hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; min-height: min(780px, calc(100vh - 100px)); padding: 26px 0 10px; }
.eyebrow-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-secondary); background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); flex: none; animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent-2) 70%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
.hero-title { font-family: var(--font-display); font-weight: 700; font-stretch: 87.5%; font-size: clamp(60px, 7.4vw, 120px); line-height: .86; letter-spacing: -.035em; margin: 20px 0 12px; }
.hero-title span { display: block; }
.hero-title .wd { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em; }
.hero-sub { font-size: 18px; color: var(--text-secondary); margin: 0; }
.hero-sub strong { color: var(--text-primary); }
.jackpot { margin-top: 24px; }
.jp-label { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.jp-tag { letter-spacing: .04em; text-transform: none; font-weight: 600; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-secondary); }
.jp-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(50px, 6.3vw, 96px); line-height: 1.02; letter-spacing: -.02em; margin-top: 6px;
  font-variant-numeric: tabular-nums; background: var(--gold-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite; filter: drop-shadow(0 10px 30px rgba(240, 180, 60, .22)); }
.jp-note { margin: 6px 0 0; font-size: 13px; color: var(--text-muted); max-width: 50ch; }
.hero-stats { display: flex; align-items: center; gap: 26px; margin-top: 26px; }
.hero-stats .hs-list { flex: 1 1 auto; min-width: 0; }
.hs-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 16px; align-items: baseline; }
.hs { display: contents; }
.hs strong { font: 700 26px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.hs span { font-size: 13.5px; color: var(--text-muted); }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.hero-stage { position: relative; display: grid; justify-items: center; }
.orbits { position: absolute; left: 50%; top: 40%; width: 0; height: 0; pointer-events: none; }
.orbits i { position: absolute; border-radius: 50%; border: 1px solid var(--border); left: 50%; top: 50%; transform: translate(-50%, -50%); animation: orbit 60s linear infinite; }
.orbits i:nth-child(1) { width: 620px; height: 620px; border-style: dashed; opacity: .6; }
.orbits i:nth-child(2) { width: 760px; height: 760px; opacity: .45; animation-duration: 90s; animation-direction: reverse; }
.orbits i:nth-child(3) { width: 900px; height: 900px; border-style: dotted; opacity: .3; animation-duration: 120s; }
@keyframes orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
.drum-wrap { position: relative; width: min(100%, 540px); }
.drum-wrap::before { content: ""; position: absolute; left: 12%; right: 12%; top: 8%; height: 70%; border-radius: 50%; filter: blur(60px);
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 40%, transparent), transparent 70%); opacity: .55; z-index: -1; }
.drum { display: block; width: 100%; aspect-ratio: 1 / 1.07; cursor: crosshair; }
.tray { position: relative; margin-top: -6px; display: grid; justify-items: center; gap: 8px; padding: 12px 18px 10px; border-radius: 26px;
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(14px); box-shadow: var(--shadow-soft); }
.slots { display: flex; align-items: center; gap: 9px; }
.slot { width: 40px; height: 40px; border-radius: 50%; border: 1.5px dashed var(--border-strong); display: grid; place-items: center; transition: border-color .3s; }
.slot.ch { border-color: color-mix(in oklab, #e8365f 55%, transparent); }
.slot.filled { border-color: transparent; }
.slot-plus { color: var(--text-muted); font-weight: 700; }
.tray-label { font-size: 12.5px; color: var(--text-secondary); min-height: 19px; text-align: center; }
.stage-controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.grid-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.gchip { height: 32px; min-width: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--glass); cursor: pointer;
  font: 700 12.5px var(--font-display); color: var(--text-secondary); transition: all .25s var(--ease); }
.gchip:hover { color: var(--text-primary); border-color: var(--border-hover); }
.gchip.on { background: var(--accent-grad); color: var(--accent-ink); border-color: transparent; }
.stage-legend { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 16px; font-size: 12px; color: var(--text-muted); }
.stage-legend span { display: inline-flex; align-items: center; gap: 6px; }
.stage-legend i.lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.stage-legend i.cold { background: radial-gradient(circle at 35% 30%, #b9cdfd, #2f6df6 60%, #173a8a); }
.stage-legend i.mid { background: radial-gradient(circle at 35% 30%, #fff, #e9ecf5 60%, #9aa2b8); }
.stage-legend i.hot { background: radial-gradient(circle at 35% 30%, #ffd2c0, #f0612e 60%, #8a2a0c); }
.stage-legend i.halo { background: transparent; box-shadow: 0 0 0 2px #6eecff, 0 0 10px 2px rgba(110, 236, 255, .6); }
.stage-note { margin: 10px 0 0; font-size: 12px; color: var(--text-muted); text-align: center; max-width: 54ch; }

.ticker { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; padding: 14px 22px; border-radius: 22px; margin-top: 30px;
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(14px); }
.tk-label { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; font-weight: 800; color: var(--text-secondary); }
.tk-date { font-weight: 650; }
.tk-info, .tk-second { font-size: 13.5px; color: var(--text-secondary); }
.tk-second b { color: var(--text-primary); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ------------------------------------------------------------------------------------------- blocs */
.block { margin-top: 110px; }
.block.tight { margin-top: 64px; }
.block-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 22px; align-items: end; margin-bottom: 28px; }
.block-num { font: 700 72px/.78 var(--font-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.2px var(--border-hover); }
.block-head h2 { font: 700 clamp(28px, 3.2vw, 40px)/1.05 var(--font-display); letter-spacing: -.015em; font-stretch: 87.5%; }
.block-head p { margin: 8px 0 0; color: var(--text-muted); font-size: 15px; max-width: 72ch; }

/* aperçu de la fiche */
.glance { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 26px; align-items: center; }
.glance-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kpi { display: grid; gap: 12px; align-content: start; justify-items: start; padding: 22px; border-radius: var(--radius); background: var(--glass);
  border: 1px solid var(--border); backdrop-filter: blur(14px); box-shadow: var(--shadow-soft); }
.kpi h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); font-weight: 700; }
.kpi p { margin: 0; font-size: 13.5px; color: var(--text-secondary); }
.kpi .ring { justify-self: center; }
.big-num { font: 700 42px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lossviz, .bev { display: grid; gap: 12px; width: 100%; }
.stack { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--track); gap: 2px; }
.stack i { display: block; width: var(--w); animation: bar-in 1.2s var(--ease) both; transform-origin: left; }
.s-ev { background: var(--series-1); }
.s-loss { background: repeating-linear-gradient(135deg, var(--mark-muted) 0 4px, color-mix(in oklab, var(--mark-muted) 55%, transparent) 4px 8px); }
.stack-legend, .bev-legend { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.stack-legend span { display: inline-flex; align-items: center; gap: 6px; }
.stack-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bev-track { position: relative; height: 10px; border-radius: 999px; background: var(--track); }
.bev-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 999px; background: var(--gold-grad); animation: bar-in 1.2s var(--ease) both; transform-origin: left; }
.bev-mark { position: absolute; left: var(--x); top: -6px; width: 2px; height: 22px; border-radius: 2px; background: var(--text-primary); }
@keyframes bar-in { from { transform: scaleX(0); } }

.fan { position: relative; height: 430px; }
.fan .ticket { position: absolute; left: 50%; top: 14px; width: min(276px, 74%); transform: translateX(calc(-50% + var(--tx, 0%))) rotate(var(--rot));
  transition: transform .6s var(--ease); }
.fan .ticket:nth-child(1) { --tx: -26%; z-index: 1; }
.fan .ticket:nth-child(2) { --tx: 0%; z-index: 3; top: 0; }
.fan .ticket:nth-child(3) { --tx: 26%; z-index: 2; }
.fan:hover .ticket:nth-child(1) { --tx: -44%; }
.fan:hover .ticket:nth-child(3) { --tx: 44%; }
.fan-meta { display: grid; justify-items: center; gap: 6px; text-align: center; margin-top: -12px; }
.fan-meta strong { font: 700 24px/1.1 var(--font-display); }
.fan-meta > span { font-size: 13.5px; color: var(--text-muted); margin-bottom: 8px; }

/* ----------------------------------------------------------------------------------- bulletin papier */
.ticket { --paper-line: color-mix(in oklab, var(--print) 14%, transparent); position: relative; padding: 16px 14px 12px; border-radius: 12px; color: #3a2f2a;
  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,0) 30%), repeating-linear-gradient(0deg, transparent 0 23px, var(--paper-line) 23px 24px), var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 2px rgba(0, 0, 0, .2), 0 22px 44px -18px rgba(0, 0, 0, .65);
  transform: rotate(var(--rot, 0deg)); transition: transform .5s var(--ease), box-shadow .5s;
  animation: ticket-in .8s var(--ease) both; animation-delay: var(--d, 0s); }
.ticket::before { content: ""; position: absolute; left: 10px; right: 10px; top: -5px; height: 10px;
  background: radial-gradient(circle at 5px 5px, var(--bg) 3.2px, transparent 3.6px) 0 0 / 14px 10px repeat-x; opacity: .9; }
@keyframes ticket-in { from { opacity: 0; transform: translateY(30px) rotate(calc(var(--rot, 0deg) * 3)); } }
.tickets .ticket:hover { transform: rotate(0) translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 30px 60px -22px rgba(0, 0, 0, .7); }
[data-theme="light"] .ticket { box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(60, 40, 10, .18), 0 22px 40px -20px rgba(70, 50, 20, .45); }
.t-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.t-label { text-transform: uppercase; letter-spacing: .2em; font-size: 10px; font-weight: 800; color: var(--print); }
.t-index { font: 700 24px/1 var(--font-display); color: var(--print); }
.t-bul { margin-left: auto; font-size: 10.5px; color: #8b7d72; font-weight: 600; }
.t-grid, .t-chance { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.tc { position: relative; aspect-ratio: 1 / 1.12; border: 1px solid color-mix(in oklab, var(--print) 50%, transparent); border-radius: 3px; display: grid; place-items: center;
  font: 600 9.5px/1 var(--font-display); color: var(--print); background: rgba(255, 255, 255, .55); }
.tc.ch { border-color: color-mix(in oklab, #d93a6a 60%, transparent); color: #c42d5c; }
.tc i { font-style: normal; }
.tc.on i { opacity: .55; }
.ink { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); overflow: visible; }
.ink path { fill: none; stroke: var(--ink); stroke-width: 2.7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: ink .32s ease-out forwards; animation-delay: calc(var(--d, 0s) + .55s + var(--k, 0) * .16s); }
.ink path + path { animation-delay: calc(var(--d, 0s) + .67s + var(--k, 0) * .16s); }
@keyframes ink { to { stroke-dashoffset: 0; } }
.t-sub { margin: 10px 0 5px; text-transform: uppercase; letter-spacing: .18em; font-size: 9.5px; font-weight: 800; color: #c42d5c; }
.t-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed color-mix(in oklab, var(--print) 35%, transparent); }
.t-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: var(--print); text-transform: uppercase; letter-spacing: .06em; }
.t-box { position: relative; width: 13px; height: 13px; border: 1px solid var(--print); border-radius: 2px; background: rgba(255,255,255,.6); }
.t-pop { font-size: 10.5px; color: #8b7d72; }
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 28px 24px; padding: 6px 4px 10px; }

/* vue « boules » */
.rows { display: grid; gap: 16px; }
.slip { padding: 16px 18px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(14px); }
.slip-head { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; }
.grid-row { display: flex; align-items: center; gap: 14px; padding: 9px 8px; border-radius: 14px; flex-wrap: wrap; transition: background .2s; }
.grid-row:hover { background: color-mix(in oklab, var(--surface-2) 60%, transparent); }
.grid-index { width: 34px; font: 700 13px var(--font-display); color: var(--text-muted); }
.grid-meta { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--track); color: var(--text-secondary); white-space: nowrap; }
.tag.opt { background: color-mix(in oklab, var(--accent-2) 22%, transparent); color: var(--text-primary); }

/* ------------------------------------------------------------------------------------- tirages à venir */
.stubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stub { --notch: 196px; position: relative; display: grid; cursor: pointer; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--border);
  backdrop-filter: blur(14px); box-shadow: var(--shadow-soft);
  -webkit-mask: radial-gradient(circle 13px at 0 var(--notch), transparent 12.5px, #000 13px) left / 51% 100% no-repeat,
                radial-gradient(circle 13px at 100% var(--notch), transparent 12.5px, #000 13px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 13px at 0 var(--notch), transparent 12.5px, #000 13px) left / 51% 100% no-repeat,
        radial-gradient(circle 13px at 100% var(--notch), transparent 12.5px, #000 13px) right / 51% 100% no-repeat; }
.stub:hover { transform: translateY(-4px); }
.stub.sel { border-color: color-mix(in oklab, var(--accent) 55%, transparent); }
.stub-top { height: var(--notch); padding: 22px 24px 0; }
.stub-row { display: flex; justify-content: space-between; align-items: center; }
.stub-date { font: 700 30px/1.1 var(--font-display); margin-top: 10px; }
.stub-jp { font: 700 60px/1 var(--font-display); letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stub-note { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.stub-perf { height: 0; border-top: 2px dashed var(--border-strong); margin: 0 18px; }
.stub-bottom { padding: 18px 24px 20px; display: grid; gap: 14px; }
.prob-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.prob-head b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.mbar { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.mbar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--series-1); transform-origin: left; animation: bar-in 1.1s var(--ease) both; }
.mbar.alt i { background: color-mix(in oklab, var(--series-1) 55%, var(--mark-muted)); }
.mbar.ref i { background: var(--mark-muted); }
.stub-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-muted); }
.stub-go { display: inline-flex; align-items: center; gap: 6px; color: var(--text-primary); font-weight: 650; transition: gap .3s var(--ease); }
.stub:hover .stub-go { gap: 10px; }

/* arguments */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fig { padding: 26px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(14px); display: grid; gap: 10px; align-content: start; min-height: 300px; }
.fig.skeleton { background: linear-gradient(90deg, var(--glass), color-mix(in oklab, var(--surface-3) 60%, transparent), var(--glass)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.fig-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--accent-2);
  background: color-mix(in oklab, var(--accent) 16%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); }
.fig-value { font: 700 66px/1 var(--font-display); letter-spacing: -.03em; margin-top: 8px; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fig h3 { font: 700 21px/1.2 var(--font-display); }
.fig p { margin: 0; color: var(--text-secondary); font-size: 14.5px; }
.fig-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; font-weight: 650; text-decoration: none; color: var(--accent-2); transition: gap .3s var(--ease); }
.fig-link:hover { gap: 10px; }

/* ------------------------------------------------------------------------------------------- fiche */
.console { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-end; padding: 20px 24px; border-radius: var(--radius); background: var(--glass);
  border: 1px solid var(--border); backdrop-filter: blur(16px) saturate(140%); box-shadow: var(--shadow-soft); }
.field { display: grid; gap: 8px; min-width: 0; }
.field-label { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .12em; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 16px; background: color-mix(in oklab, var(--surface-1) 55%, transparent); border: 1px solid var(--border); }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 8px 13px; border-radius: 12px; cursor: pointer;
  font-size: 13px; font-weight: 650; color: var(--text-secondary); white-space: nowrap; transition: color .2s, background .25s; }
.seg button:hover { color: var(--text-primary); }
.seg button.on { background: var(--accent-grad); color: var(--accent-ink); box-shadow: 0 6px 18px -8px color-mix(in oklab, var(--accent) 80%, transparent); }
.seg.small button { padding: 6px 11px; font-size: 12.5px; }
.input { height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border-strong); background: color-mix(in oklab, var(--surface-1) 70%, transparent); min-width: 0; }
.input:focus { border-color: var(--accent); outline: none; }
.input.num { width: 92px; font-variant-numeric: tabular-nums; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a93b3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.budget { display: flex; align-items: center; gap: 10px; }
.budget .unit { color: var(--text-muted); }
.range { -webkit-appearance: none; appearance: none; width: 200px; height: 6px; border-radius: 999px; outline-offset: 6px;
  background: linear-gradient(90deg, var(--accent) var(--p, 10%), var(--track) var(--p, 10%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; cursor: grab;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 45%, transparent), 0 4px 12px rgba(0,0,0,.4); }
.range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 45%, transparent); }

.verdict { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 26px; padding: 28px 30px;
  border-radius: 28px; background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(16px); box-shadow: var(--shadow-soft); overflow: hidden; }
.verdict::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background: radial-gradient(600px 240px at 0% 50%, color-mix(in oklab, var(--vc) 22%, transparent), transparent 70%); }
.verdict.go { --vc: var(--good); border-color: color-mix(in oklab, var(--good) 35%, transparent); }
.verdict.stop { --vc: var(--critical); border-color: color-mix(in oklab, var(--critical) 35%, transparent); }
.verdict-icon { position: relative; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--vc) 60%, #fff), var(--vc) 60%, color-mix(in oklab, var(--vc) 70%, #000));
  box-shadow: 0 0 0 8px color-mix(in oklab, var(--vc) 14%, transparent), 0 18px 40px -12px color-mix(in oklab, var(--vc) 80%, transparent); }
.verdict-body { position: relative; }
.verdict-body h2 { font: 700 clamp(30px, 3.4vw, 44px)/1 var(--font-display); letter-spacing: -.02em; margin: 8px 0 8px; font-stretch: 87.5%; }
.verdict-body > p { margin: 0; color: var(--text-secondary); }
.warnings { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--text-secondary); }
.warnings li { display: flex; gap: 8px; align-items: flex-start; }
.warnings .icon { margin-top: 3px; color: var(--warning); }
.verdict-actions { position: relative; display: flex; gap: 8px; }
.act { display: grid; justify-items: center; gap: 4px; width: 74px; padding: 12px 6px; border-radius: 18px; border: 1px solid var(--border); background: var(--glass-2);
  cursor: pointer; text-decoration: none; font-size: 12px; font-weight: 650; color: var(--text-secondary); transition: all .25s var(--ease); }
.act:hover { color: var(--text-primary); border-color: var(--border-hover); transform: translateY(-2px); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.kpis .kpi { justify-items: center; text-align: center; }
.kpis .kpi .lossviz { text-align: left; }

/* anneaux */
.ring { position: relative; width: var(--size); height: var(--size); flex: none; }
.ring svg { display: block; overflow: visible; }
.ring-track { stroke: var(--track); }
.ring-val { transition: stroke-dashoffset 1.6s var(--ease); filter: drop-shadow(0 0 6px color-mix(in oklab, var(--series-1) 45%, transparent)); }
.ring-cmp { filter: none; }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-center strong { font: 700 calc(var(--size) * .2)/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ring-center span { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.rings-duo { display: flex; justify-content: space-around; gap: 20px; flex-wrap: wrap; padding: 10px 0; }
.rings-duo > div { display: grid; justify-items: center; gap: 12px; font-size: 13px; font-weight: 650; color: var(--text-secondary); }

/* série */
.series { position: relative; width: var(--size); height: var(--size); flex: none; cursor: help; }
.series svg { display: block; overflow: visible; }
.seg.past, .seg.now, .seg.future, .seg.last { fill: none; stroke-width: 7; stroke-linecap: round; }
.series .seg { animation: seg-in .5s var(--ease) both; animation-delay: calc(var(--k) * 22ms); }
.series .past { stroke: var(--series-1); }
.series .now { stroke: var(--accent-2); animation: seg-in .5s var(--ease) both, blink 1.6s ease-in-out infinite 1s; filter: drop-shadow(0 0 6px var(--accent-2)); }
.series .future { stroke: var(--track); }
.series .last { stroke: #e5a62c; filter: drop-shadow(0 0 5px rgba(229, 166, 44, .7)); }
@keyframes seg-in { from { opacity: 0; } }
@keyframes blink { 50% { opacity: .35; } }
.series-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.series-center strong { font: 700 calc(var(--size) * .24)/1 var(--font-display); }
.series-center span { font-size: 10.5px; color: var(--text-muted); max-width: 9em; margin: 3px auto 0; }
.series-center em { font-style: normal; font-size: 10.5px; color: #e5a62c; font-weight: 700; margin-top: 2px; }

/* comparaison */
.vs-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.versus { display: grid; gap: 20px; }
.vs-legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--text-secondary); }
.vs-legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.sw.a { background: var(--series-1); }
.sw.b { background: var(--mark-muted); }
.vs-row { display: grid; gap: 8px; }
.vs-label { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.vs-win { font-size: 11.5px; font-weight: 700; color: var(--good-ink); }
.vs-lose { font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.vs-bars { display: grid; gap: 5px; }
.vs-bar { display: grid; grid-template-columns: minmax(0, 1fr) 84px; align-items: center; gap: 10px; }
.vs-bar i { display: block; height: 11px; width: var(--w); border-radius: 0 6px 6px 0; animation: bar-in 1.2s var(--ease) both; transform-origin: left; }
.vs-bar.a i { background: var(--series-1); }
.vs-bar.b i { background: var(--mark-muted); }
.vs-bar b { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.vs-bar.b b { font-weight: 500; color: var(--text-secondary); }
.backtest { display: grid; gap: 14px; align-content: start; }
.keyfig { display: grid; gap: 8px; }
.keyfig strong { font: 700 clamp(56px, 6vw, 88px)/.95 var(--font-display); letter-spacing: -.03em; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.keyfig.gold strong { background: var(--gold-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; animation: shimmer 7s linear infinite; }
.keyfig span { font-size: 14.5px; color: var(--text-secondary); max-width: 40ch; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------------------------------ tableaux */
.table-wrap { overflow: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.table-wrap.tall { max-height: 560px; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: middle; }
.table th { position: sticky; top: 0; z-index: 1; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 800;
  background: color-mix(in oklab, var(--surface-2) 92%, transparent); backdrop-filter: blur(8px); }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sorted { color: var(--text-primary); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover td { background: color-mix(in oklab, var(--accent) 7%, transparent); }
.table tr.chosen td { background: color-mix(in oklab, var(--accent) 13%, transparent); }
.table.compact { font-size: 13px; }
.table.compact th, .table.compact td { padding: 9px 11px; }
.cell-sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.cellbar { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.cellbar .mbar { flex: 1; max-width: 130px; }
.cellbar b { font-size: 13px; font-variant-numeric: tabular-nums; }
.check { display: inline-flex; align-items: center; gap: 5px; color: var(--good-ink); font-weight: 750; }
.pair-bars { display: grid; gap: 5px; min-width: 210px; }
.pair-bars > div { display: grid; grid-template-columns: 120px auto; align-items: center; gap: 10px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pair-bars span { color: var(--text-muted); }

/* ---------------------------------------------------------------------------------------- pourquoi */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.toc a { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 9px; border-radius: 999px; text-decoration: none; font-size: 13.5px; font-weight: 600;
  color: var(--text-secondary); background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(10px); transition: all .25s var(--ease); }
.toc a:hover { color: var(--text-primary); border-color: var(--border-hover); transform: translateY(-2px); }
.toc b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 700 11.5px var(--font-display); background: var(--accent-grad); color: var(--accent-ink); }
.chapter { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(26px, 4vw, 60px); align-items: start; margin-top: 110px; scroll-margin-top: 96px; }
.chapter.flip .ch-side { order: 2; }
.ch-side { position: sticky; top: 104px; display: grid; gap: 16px; }
.ch-num { font: 700 clamp(84px, 9vw, 132px)/.78 var(--font-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--border-hover);
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; opacity: .9; }
[data-theme="light"] .ch-num { -webkit-text-stroke: 0; }
.ch-side h2 { font: 700 clamp(30px, 3.2vw, 44px)/1.02 var(--font-display); letter-spacing: -.02em; font-stretch: 87.5%; }
.ch-text { margin: 0; font-size: 16.5px; color: var(--text-secondary); line-height: 1.65; }
.ch-visual { padding: 26px; }
.stack-v { display: grid; gap: 36px; }
.vis-title { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); font-weight: 800; margin-bottom: 16px; }
.vis-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.vis-note { margin: 12px 0 0; font-size: 13px; color: var(--text-muted); }
.series-inline { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.series-inline p { margin: 0; font-size: 14px; color: var(--text-secondary); }

/* carte des 49 numéros */
.ballmap { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.bm { --f: var(--fd); --t: var(--id); position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; cursor: default; color: var(--t);
  background: radial-gradient(circle at 32% 26%, color-mix(in oklab, var(--f) 45%, #fff) 0%, var(--f) 48%, color-mix(in oklab, var(--f) 72%, #000) 100%);
  box-shadow: inset -3px -4px 8px rgba(0, 0, 0, .25), 0 8px 16px -10px rgba(0, 0, 0, .6); animation: pop .55s var(--ease) both; animation-delay: calc(var(--k) * 11ms);
  transition: transform .25s var(--ease); }
[data-theme="light"] .bm { --f: var(--fl); --t: var(--il); box-shadow: inset -3px -4px 8px rgba(0, 0, 0, .12), 0 6px 12px -8px rgba(60, 40, 10, .4); }
.bm b { font: 700 clamp(12px, 1.25vw, 16px)/1 var(--font-display); }
.bm:hover, .bm:focus-visible { transform: scale(1.12); z-index: 2; }
.bm.sel { box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 4.5px var(--accent-2), 0 0 18px 2px color-mix(in oklab, var(--accent-2) 55%, transparent); }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
.scale { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); margin-top: 14px; }
.scale .bar { flex: 1; min-width: 120px; height: 8px; border-radius: 999px; background: var(--gd); }
[data-theme="light"] .scale .bar { background: var(--gl); }
.scale-sel { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.scale-sel i { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 2px var(--accent-2); }

/* barres horizontales */
.hbars { display: grid; gap: 14px; }
.hb { display: grid; grid-template-columns: minmax(210px, 1.2fr) minmax(0, 1fr) 64px; gap: 16px; align-items: center; }
.hb-label { font-weight: 700; font-size: 14px; display: grid; }
.hb-label em { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--text-muted); }
.hb-track { height: 12px; border-radius: 999px; background: var(--track); overflow: hidden; }
.hb-track i { display: block; height: 100%; width: var(--w); background: var(--mark-muted); border-radius: inherit; transform-origin: left; animation: bar-in 1.2s var(--ease) both; animation-delay: var(--d); }
.hb.hi .hb-track i { background: var(--series-1); }
.hb b { text-align: right; font-size: 14px; }

/* ------------------------------------------------------------------------------------------ graphiques */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--text-muted); font-size: 12px; font-family: var(--font-text); }
.chart .tick { fill: var(--text-muted); }
.chart .lab-1 { fill: var(--text-primary); font-weight: 700; }
.chart .lab-2 { fill: var(--text-secondary); }
.chart .lab-good { fill: var(--good-ink); font-weight: 650; font-size: 11.5px; }
.chart .halo { paint-order: stroke; stroke: var(--surface-1); stroke-width: 5px; stroke-linejoin: round; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .gridline.v { stroke-dasharray: 2 4; }
.chart .axisline { stroke: var(--axis); stroke-width: 1; }
.chart .refline { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 4 4; }
.chart .refline.strong { stroke: var(--text-secondary); stroke-dasharray: none; }
.chart .marker-line { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .zone-good { fill: color-mix(in oklab, var(--good) 8%, transparent); }
.chart .bar { fill: var(--mark-muted); transform-box: fill-box; transform-origin: bottom; animation: grow .9s var(--ease) both; animation-delay: var(--d); }
.chart .bar.hi { fill: var(--series-1); }
@keyframes grow { from { transform: scaleY(0); } }
.chart .line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink 1.8s var(--ease) forwards; animation-delay: var(--d); }
.chart .ref-curve { stroke: var(--mark-muted); stroke-width: 2; stroke-dasharray: 6 5; }
.chart .dot { stroke: var(--surface-1); stroke-width: 2; }
.chart .pop { transform-box: fill-box; transform-origin: center; animation: pop .5s var(--ease) both; animation-delay: var(--d); }
.chart .cross { stroke: var(--text-muted); stroke-width: 1; }
.chart .noise-band { fill: color-mix(in oklab, var(--accent) 9%, transparent); }
.chart .hit { fill: transparent; }
.chart .mark { transition: opacity .2s, filter .2s; }
.chart .mark.hover { filter: brightness(1.25) drop-shadow(0 0 6px color-mix(in oklab, var(--series-1) 60%, transparent)); }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-secondary); }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-legend i.box { width: 11px; height: 11px; border-radius: 50%; }

/* ---------------------------------------------------------------------------------------- statistiques */
.seals { display: grid; grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 16px; }
.seal { padding: 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(14px); display: grid; gap: 6px; align-content: start; }
.seal-badge { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 6px;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--good) 55%, #fff), var(--good) 60%, color-mix(in oklab, var(--good) 70%, #000));
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--good) 14%, transparent); }
.seal.warn .seal-badge { background: var(--warning); box-shadow: 0 0 0 6px color-mix(in oklab, var(--warning) 14%, transparent); }
.seal h4 { font-size: 14.5px; line-height: 1.3; }
.seal-pop { font-size: 12px; color: var(--text-muted); }
.seal-p { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-secondary); }
.seal-p b { font: 700 20px var(--font-display); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.seal-p em { font-style: normal; font-size: 11.5px; color: var(--text-muted); }
.summary { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 14.5px; color: var(--good-ink); font-weight: 600; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; align-items: stretch; }
.split .ballmap-wrap { max-width: 560px; margin: 0 auto; }
.facts { display: grid; gap: 4px; align-content: center; }
.fact { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.fact:last-child { border-bottom: 0; }
.fact span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); font-weight: 700; }
.fact strong { font: 700 40px/1.05 var(--font-display); letter-spacing: -.02em; }
.fact em { font-style: normal; font-size: 13px; color: var(--text-secondary); }
.fact.good strong { color: var(--good-ink); }

/* ------------------------------------------------------------------------------------------ systèmes */
.filterbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; }

/* ----------------------------------------------------------------------------------------- historique */
.head-actions { display: grid; justify-items: start; gap: 8px; margin-top: 24px; }
.head-actions p { margin: 0; font-size: 13px; color: var(--text-muted); }
.timeline-v { position: relative; display: grid; gap: 14px; }
.timeline-v::before { content: ""; position: absolute; left: 165px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), color-mix(in oklab, var(--accent-2) 60%, transparent), transparent); opacity: .5; }
.tl-item { display: grid; grid-template-columns: 140px 52px minmax(0, 1fr); align-items: center; }
.tl-date { display: grid; justify-items: end; text-align: right; line-height: 1.25; }
.tl-date strong { font: 700 16px var(--font-display); }
.tl-date span { font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tl-date em { font-style: normal; font-size: 11px; color: var(--warning); }
.tl-dot { justify-self: center; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--accent); position: relative; z-index: 1; }
.tl-dot.won { border-color: #e5a62c; background: #e5a62c; box-shadow: 0 0 14px rgba(229, 166, 44, .8); }
.tl-card { padding: 14px 18px; border-radius: 20px; background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(14px); }
.tl-main { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.tl-jp { font-size: 13px; color: var(--text-muted); }
.tl-pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pay { display: inline-flex; align-items: baseline; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--track); font-size: 12.5px; }
.pay em { font-style: normal; color: var(--text-muted); }
.pay b { font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------------------------------------- méthode */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 10px 0 64px; }
.pipeline::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 34px; height: 2px; background: var(--accent-grad); opacity: .55; }
.pipe-step { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 8px; }
.pipe-icon { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-2); background: var(--glass-2); border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px); box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 10%, transparent), var(--shadow-soft); }
.pipe-step b { font: 700 12px var(--font-display); color: var(--text-muted); letter-spacing: .12em; margin-top: 4px; }
.pipe-step h4 { font: 700 20px var(--font-display); }
.pipe-step p { margin: 0; font-size: 13.5px; color: var(--text-secondary); max-width: 28ch; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.principle { padding: 26px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(14px); display: grid; gap: 12px; align-content: start; }
.principle h3 { font: 700 21px/1.2 var(--font-display); }
.principle p { margin: 0; font-size: 14.5px; color: var(--text-secondary); }

/* ------------------------------------------------------------------------------------------- bilan */
.ball.hit { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--good), 0 0 18px 3px color-mix(in oklab, var(--good) 60%, transparent); }
.ball.miss { opacity: .38; filter: saturate(.4); }
.status-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; }
.status-bar .chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 12.5px; color: var(--text-secondary);
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.status-bar .chip b { color: var(--text-primary); font-weight: 650; }
.status-bar .chip.on i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: ping 2.4s infinite; }
.status-bar .chip.off i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.status-bar .chip.err { color: var(--warning); border-color: color-mix(in oklab, var(--warning) 40%, transparent); }
.agg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.agg .kpi { justify-items: start; }
.agg-sub { font-size: 13px; color: var(--text-secondary); }
.pending { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; }
.pending .fan { height: 400px; }
.proof { display: grid; gap: 10px; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px; }
.pending-title { font: 700 30px/1.05 var(--font-display); letter-spacing: -.01em; }
.reviews { display: grid; gap: 22px; }
.review { padding: 24px 26px; border-radius: 26px; background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(16px); box-shadow: var(--shadow-soft); }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.review-date strong { display: block; font: 700 22px/1.1 var(--font-display); }
.review-date span { font-size: 12.5px; color: var(--text-muted); }
.review-net { margin-left: auto; display: grid; justify-items: end; gap: 2px; }
.review-net strong { font: 700 34px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.review-net strong.pos { color: var(--good-ink); }
.review-net strong.neg { color: var(--text-primary); }
.review-net span { font-size: 12.5px; color: var(--text-muted); }
.review-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 26px; margin-top: 18px; }
.rgrids { display: grid; gap: 6px; }
.rgrid { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 12px; }
.rgrid.won { background: color-mix(in oklab, var(--good) 9%, transparent); }
.rgrid .gain { font: 700 15px var(--font-display); font-variant-numeric: tabular-nums; text-align: right; }
.rgrid .gain em { display: block; font: 500 11px var(--font-text); color: var(--text-muted); font-style: normal; }
.rgrid .gain.zero { color: var(--text-muted); font-weight: 500; }
.claims { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.claims li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.claim-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.claim-ico.ok { background: var(--good); }
.claim-ico.attention { background: var(--warning); }
.claim-ico.info { background: var(--mark-muted); }
.claims b { font-size: 14px; }
.claims p { margin: 2px 0 0; font-size: 13px; color: var(--text-secondary); }
.claims p.ann { color: var(--text-muted); }
.review-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.review-foot code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.empty-state { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 24px; }
.empty-state strong { font: 700 22px var(--font-display); }
.empty-state p { margin: 0; color: var(--text-secondary); max-width: 60ch; }
.home-proof { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); text-decoration: none; margin-top: 6px; }
.home-proof:hover { color: var(--text-primary); }
.home-proof .icon { color: var(--good-ink); }
@media (max-width: 1100px) { .agg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .review-body, .pending { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .agg { grid-template-columns: minmax(0, 1fr); } .review-net { margin-left: 0; justify-items: start; } }

/* ------------------------------------------------------------------------------- dépôt de fichiers */
.uploader { display: grid; gap: 12px; }
.dropzone { display: grid; justify-items: center; gap: 6px; padding: 30px 20px; border-radius: 20px; border: 2px dashed var(--border-strong); cursor: pointer;
  text-align: center; background: color-mix(in oklab, var(--surface-1) 40%, transparent); transition: border-color .25s, background .25s, transform .3s var(--ease); }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 9%, transparent); }
.dropzone.over { transform: scale(1.01); }
.dropzone.busy { opacity: .6; pointer-events: none; }
.dropzone strong { font: 700 19px var(--font-display); }
.dropzone > span:not(.drop-icon) { font-size: 13px; color: var(--text-muted); }
.drop-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--accent-2); margin-bottom: 4px;
  background: color-mix(in oklab, var(--accent) 16%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); }
.drop-status { font-size: 13.5px; color: var(--text-secondary); min-height: 20px; }

/* --------------------------------------------------------------------------------- page de connexion */
.login-wrap { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 22px; padding: 24px 16px; }
.login-card { width: min(420px, 100%); display: grid; gap: 12px; padding: 34px 30px 24px; border-radius: 28px; text-align: center; background: var(--glass);
  border: 1px solid var(--border); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); box-shadow: var(--shadow);
  animation: page-in .7s var(--ease) both; }
.login-card .brand-ball.big { width: 66px; height: 66px; justify-self: center; margin-bottom: 4px; }
.login-card .brand-ball.big b { width: 36px; height: 36px; font-size: 21px; }
.login-card h1 { font: 700 34px/1 var(--font-display); letter-spacing: .07em; text-transform: uppercase; }
.login-card h1 i { font-style: normal; color: var(--accent-2); }
.login-sub { margin: 0 0 8px; color: var(--text-secondary); font-size: 14.5px; }
.login-card .field-label { justify-self: start; }
.login-input { height: 50px; font-size: 16px; }
.login-msg { min-height: 20px; margin: 0; font-size: 13.5px; color: var(--critical); }
.login-foot { margin: 0; font-size: 12px; color: var(--text-muted); text-align: center; max-width: 52ch; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------------------------------------------------------------------------------------------- divers */
.loader { display: grid; place-items: center; gap: 10px; min-height: 360px; text-align: center; color: var(--text-secondary); }
.loader strong { font: 700 20px var(--font-display); color: var(--text-primary); margin-top: 18px; }
.loader > span { font-size: 13.5px; color: var(--text-muted); }
.orbit { position: relative; width: 84px; height: 84px; animation: rot 2.4s linear infinite; }
.orbit i { position: absolute; width: 20px; height: 20px; border-radius: 50%; left: 50%; top: 50%; margin: -10px;
  background: radial-gradient(circle at 32% 26%, #fff, #cfd7f0 58%, #8e9cc9); box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.orbit i:nth-child(1) { transform: rotate(0deg) translateY(-34px); }
.orbit i:nth-child(2) { transform: rotate(120deg) translateY(-34px); }
.orbit i:nth-child(3) { transform: rotate(240deg) translateY(-34px); }
.orbit i.c { width: 28px; height: 28px; margin: -14px; transform: none; background: radial-gradient(circle at 32% 26%, #ffe3ea, #e8365f 62%, #8d0f33); animation: rot 2.4s linear infinite reverse; }
.error-card { margin-top: 30px; border-color: color-mix(in oklab, var(--critical) 45%, transparent); }
.error-card h3 { font: 700 24px var(--font-display); }
.error-card p { color: var(--text-secondary); }

.tooltip { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; min-width: 150px; max-width: 300px; padding: 11px 13px; border-radius: 14px;
  background: var(--glass-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow); backdrop-filter: blur(16px); font-size: 13px; color: var(--text-secondary); }
.tooltip .tv { font: 700 18px/1.2 var(--font-display); color: var(--text-primary); }
.tooltip .tl { margin-top: 2px; }
.tooltip .tr { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.tooltip .tr i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.tooltip .tr strong { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.toast { position: fixed; bottom: 26px; left: 50%; z-index: 110; padding: 13px 20px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); backdrop-filter: blur(16px); font-weight: 650; transform: translateX(-50%); }
.toast.show { animation: toast-in .45s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } }

.footer { margin-top: 90px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1300px; margin: 0 auto; padding: 26px clamp(16px, 3.4vw, 44px) 42px; font-size: 13px; color: var(--text-muted); }
.footer p { margin: 6px 0; max-width: 120ch; }
.footer strong { color: var(--text-secondary); }

/* --------------------------------------------------------------------------------------------- adaptatif */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance { grid-template-columns: minmax(0, 1fr); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-stage { order: 2; }
  .stubs, .figs { grid-template-columns: minmax(0, 1fr); }
  .chapter, .chapter.flip { grid-template-columns: minmax(0, 1fr); }
  .chapter.flip .ch-side { order: 0; }
  .ch-side { position: static; }
  .vs-layout, .split { grid-template-columns: minmax(0, 1fr); }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline::before { display: none; }
  .verdict { grid-template-columns: auto minmax(0, 1fr); }
  .verdict-actions { grid-column: 1 / -1; }
  .block-num { font-size: 52px; }
}
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .topbar { flex-wrap: wrap; border-radius: 24px; top: 8px; margin: 8px 10px 0; }
  .nav { order: 3; width: 100%; margin: 0; }
  .orbits { display: none; }
  .ball { --s: 38px; }
  .ball.sm { --s: 30px; }
  .ball.md { --s: 34px; }
  .slot { width: 34px; height: 34px; }
  .slots { gap: 6px; }
  .kpis, .glance-kpis, .principles { grid-template-columns: minmax(0, 1fr); }
  .block-head { grid-template-columns: minmax(0, 1fr); }
  .block-num { display: none; }
  .console { padding: 16px; }
  .range { width: 140px; }
  .verdict { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .verdict-icon { width: 60px; height: 60px; }
  .fan { height: 380px; }
  .timeline-v::before { display: none; }
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tl-date { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 8px; align-items: baseline; }
  .tl-dot { display: none; }
  .hb { grid-template-columns: minmax(0, 1fr) 60px; }
  .hb-track { grid-column: 1 / -1; grid-row: 2; }
  .pipeline { grid-template-columns: minmax(0, 1fr); }
  .ballmap { gap: 6px; }
  .hs strong { font-size: 22px; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-stats .hs-list { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ink path { stroke-dashoffset: 0; }
  .chart .line.draw { stroke-dashoffset: 0; }
}
@media print {
  .topbar, .footer, .backdrop, .console, .no-print, .hero-stage, .toc { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .panel, .kpi, .verdict, .slip { box-shadow: none; backdrop-filter: none; background: #fff; border: 1px solid #ccc; }
  .ink path { stroke-dashoffset: 0; animation: none; }
  .ticket { break-inside: avoid; transform: none; box-shadow: none; border: 1px solid #ccc; }
}
