/* Trading Lab : DA "Éclipse" (2026-10-29). Le noir de l'espace, une seule lumière : la
   couronne orange d'une éclipse qui se lève en bas de l'écran (eclipse.js, WebGL maison).
   Une police (Inter), du verre sombre aux bords chauds, des pilules. Retenue partout
   ailleurs : un seul visuel fort, pas de néons ni de lignes partout. */

@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-700.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  --bg: #000;
  --ink: #fff;
  --ink-2: #bcbcbe;
  --ink-3: #85858b;
  --ink-4: #5b5b61;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --warm-line: rgba(255, 190, 140, 0.16);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)), #070605; /* opaque : l'horizon ne traverse jamais le texte */
  --glass-solid: rgba(14, 12, 11, 0.82);
  --sunk: rgba(255, 255, 255, 0.06);
  --accent: #ee7f20;
  --accent-hi: #f28a2a;
  --accent-lo: #e06d12;
  --peach: #f7c69b;
  --brand: #f28a2a;
  --brand-bg: rgba(238, 127, 32, 0.14);
  --up: #3ddc97;
  --up-bg: rgba(61, 220, 151, 0.12);
  --down: #ff6b81;
  --down-bg: rgba(255, 107, 129, 0.12);
  --wait: #f7c69b;
  --wait-bg: rgba(247, 198, 155, 0.12);
  --r: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { margin: 0; color: var(--ink); font: 16px/1.5 var(--font); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { min-height: 100dvh; font-variant-numeric: tabular-nums; overflow-x: hidden; overflow-x: clip; }
[hidden] { display: none !important; }
a { color: var(--peach); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -0.04em; }
h2 { font-size: 22px; }
h3 { font-size: 17px; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: rgba(238, 127, 32, 0.45); color: #fff; }
.up { color: var(--up); }
.down { color: var(--down); }
.soft { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.small { font-size: 14px; }
.error { color: var(--down); min-height: 1.3em; font-size: 15px; }

/* ---------- navigation */
.nav { position: fixed; z-index: 40; inset: 0 0 auto 0; height: calc(68px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) clamp(16px, 4.7vw, 68px) 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; transition: background 0.3s, backdrop-filter 0.3s; }
.nav.solid { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); justify-self: start; white-space: nowrap; }
.brand img, .brand svg { width: 30px; height: 30px; flex: none; }
.links { display: none; gap: 36px; }
.links a { position: relative; color: #d6d6d9; font-size: 15px; font-weight: 600; padding: 8px 0; transition: color 0.2s; }
.links a:hover { color: #fff; }
.links a.on { color: #fff; }
.links a.on::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent), 0 0 22px rgba(238, 127, 32, 0.7); }
.nav-pill { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; color: #000; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.nav-pill:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1); }
.nav-pill:active { transform: scale(0.97); }
.nav-pill.ghost { background: rgba(255, 255, 255, 0.06); color: var(--peach); box-shadow: inset 0 0 0 1px var(--warm-line); }
@media (max-width: 899px) { .nav-pill { height: 36px; padding: 0 14px; font-size: 13.5px; } .brand { font-size: 18px; } }

/* téléphone : barre d'onglets flottante en verre */
.dock { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 66px; display: flex; justify-content: space-between; padding: 6px; border-radius: 26px; background: rgba(16, 13, 11, 0.72); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.6); }
.dock a { flex: 1 1 auto; min-width: 54px; padding: 0 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 20px; color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; transition: color 0.2s, background 0.25s; }
.dock a svg { width: 22px; height: 22px; }
.dock a.on { color: #fff; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.dock a.on svg { color: var(--accent-hi); filter: drop-shadow(0 0 6px rgba(238, 127, 32, 0.6)); }
.dock a:active { transform: scale(0.95); }
@media (min-width: 900px) {
  .links { display: flex; }
  .dock { display: none; }
}

/* ---------- horizon : petite éclipse en bas de chaque page, sous le contenu (pur CSS) */
.horizon { position: relative; height: calc(210px + env(safe-area-inset-bottom)); overflow: hidden; pointer-events: none; }
.horizon::before { content: ""; position: absolute; left: 50%; top: 130px; width: max(170vw, 1100px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #000; box-shadow: 0 0 0 1px rgba(255, 214, 170, 0.34), 0 -2px 16px rgba(255, 150, 60, 0.6), 0 -14px 70px rgba(238, 127, 32, 0.42), 0 -40px 130px rgba(238, 127, 32, 0.22); }
body.page-home .horizon, body.on-login .horizon { display: none; }
@media (max-width: 899px) { .horizon { height: calc(290px + env(safe-area-inset-bottom)); } }

/* ---------- vue */
.view { position: relative; outline: none; min-height: calc(100dvh - 290px); padding: calc(96px + env(safe-area-inset-top)) 16px 30px; }
.view.page-home { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.wrap { max-width: 1080px; margin: 0 auto; }
.view.page-home { padding-top: 0; }
.view > .wrap > * { animation: enter 0.6s var(--ease) both; }
.view > .wrap > *:nth-child(2) { animation-delay: 0.05s; }
.view > .wrap > *:nth-child(3) { animation-delay: 0.1s; }
.view > .wrap > *:nth-child(n+4) { animation-delay: 0.15s; }
.view.still > .wrap > *, .view.still .face, .view.still .seq { animation: none !important; }
.view.still .meter > span, .view.still .bar > span, .view.still .split span { transition: none; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 900px) { .view { min-height: calc(100dvh - 210px); padding: 120px clamp(16px, 4.7vw, 68px) 30px; } .view.page-home { padding-bottom: 90px; } }

.page-head { margin: 8px 0 28px; }
.page-head h1 { max-width: 16ch; }
.page-sub { color: var(--ink-2); font-size: 18px; line-height: 1.5; margin-top: 12px; max-width: 60ch; }
.page-title { margin-bottom: 6px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); margin-bottom: 18px; padding: 6px 0; font-size: 15px; }
.back:hover { color: #fff; }
.back svg { width: 18px; height: 18px; }

/* ---------- héros (accueil et connexion) */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(104px + env(safe-area-inset-top)) 16px 0; overflow: hidden; margin: 0 -16px; }
@media (min-width: 900px) { .hero { padding-top: 132px; margin: 0 calc(-1 * clamp(16px, 4.7vw, 68px)); } }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1000px; }
.eclipse { position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 58%; pointer-events: none; }
.eclipse::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 22%); }
.eclipse-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.eclipse-on .eclipse-canvas { opacity: 1; }
.eclipse-static::before { content: ""; position: absolute; left: 50%; bottom: 0; width: max(130vw, 900px); aspect-ratio: 1; transform: translate(-50%, 64%); border-radius: 50%; background: #000; box-shadow: 0 0 0 1px rgba(255, 220, 180, 0.7), 0 -3px 22px rgba(255, 160, 70, 0.9), 0 -16px 90px rgba(238, 127, 32, 0.6), 0 -60px 200px rgba(238, 127, 32, 0.3); }
.hero-fade { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000); pointer-events: none; }
@media (max-width: 699px) { .eclipse { height: 46%; } }

.badge { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px 0 15px; border-radius: 999px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; background: radial-gradient(130% 160% at 0% 100%, rgba(238, 127, 32, 0.24), rgba(30, 18, 10, 0) 58%), rgba(22, 16, 12, 0.7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 0 20px rgba(238, 127, 32, 0.1), 0 10px 30px rgba(0, 0, 0, 0.5); white-space: nowrap; max-width: 100%; }
.badge::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(28deg, rgba(255, 150, 60, 0.95), rgba(255, 150, 60, 0.18) 38%, rgba(255, 255, 255, 0.07) 68%, rgba(255, 255, 255, 0.22)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.badge b { color: #fff; font-weight: 600; }
.badge span { overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--peach); box-shadow: 0 0 8px var(--peach), 0 0 18px rgba(238, 127, 32, 0.75); animation: breathe 3.2s ease-in-out infinite; }
.dot.fear { background: #ffb08a; box-shadow: 0 0 8px #ff9a6b, 0 0 18px rgba(255, 90, 60, 0.8); }
@keyframes breathe { 50% { opacity: 0.55; transform: scale(0.85); } }

.hero-label { margin-top: 30px; color: var(--ink-2); font-size: 16px; font-weight: 500; }
.hero-title { margin-top: 26px; font-size: clamp(42px, 7.6vw, 80px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.hero-title span { display: block; text-wrap: balance; }
.login .hero { margin: 0; }
@media (max-width: 520px) { .hero-title { font-size: 37px; letter-spacing: -0.04em; } .hero-sub { text-wrap: pretty; } }
.hero-money { margin: 6px 0 14px; font-size: clamp(58px, 12.5vw, 132px); line-height: 0.95; letter-spacing: -0.055em; font-weight: 700; background: linear-gradient(180deg, #fff 52%, #ffd7b3 115%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 18px; max-width: 640px; color: var(--ink-2); font-size: clamp(16px, 2vw, 20px); line-height: 1.6; letter-spacing: 0.012em; }
.hero-sub b { color: #fff; font-weight: 600; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .when { margin-top: 18px; }

/* séquence d'entrée, une seule fois */
.seq { animation: rise 0.9s var(--ease) both; }
.seq.d1 { animation-delay: 0.08s; } .seq.d2 { animation-delay: 0.18s; } .seq.d3 { animation-delay: 0.3s; }
.seq.d4 { animation-delay: 0.42s; } .seq.d5 { animation-delay: 0.52s; } .seq.d6 { animation-delay: 0.62s; } .seq.d7 { animation-delay: 0.76s; }
.badge.seq { animation-name: settle; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } }
@keyframes settle { from { opacity: 0; transform: translateY(-8px) scale(0.94); filter: blur(4px); } }
.nav.seq { animation: fade 0.9s ease both; }
@keyframes fade { from { opacity: 0; } }

/* ---------- boutons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font-weight: 600; font-size: 16px; letter-spacing: -0.005em; color: #fff; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.15s var(--ease), box-shadow 0.25s, background 0.25s, color 0.2s; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 19px; height: 19px; }
.btn.main { background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px rgba(238, 127, 32, 0.25); text-shadow: 0 1px 1px rgba(90, 30, 0, 0.35); }
.btn.main:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 28px rgba(242, 138, 42, 0.6), 0 0 70px rgba(238, 127, 32, 0.35); }
.btn.line { background: linear-gradient(#000, #000) padding-box, linear-gradient(110deg, rgba(255, 255, 255, 0.42), rgba(160, 160, 165, 0.25) 45%, rgba(214, 102, 24, 0.9)) border-box; border: 1px solid transparent; box-shadow: none; color: #e9e9eb; }
.btn.line:hover { color: #fff; background: linear-gradient(#0b0806, #0b0806) padding-box, linear-gradient(110deg, rgba(255, 255, 255, 0.7), rgba(200, 200, 205, 0.4) 45%, rgba(242, 138, 42, 1)) border-box; }
.btn.danger { color: var(--down); box-shadow: inset 0 0 0 1px rgba(255, 107, 129, 0.45); background: rgba(255, 107, 129, 0.06); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: 0.5; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .hero-actions { width: 100%; flex-wrap: nowrap; } .hero-actions .btn { flex: 1 1 0; padding: 0 12px; font-size: 15px; } }

/* ---------- bandeau défilant en verre (prix suivis) */
.ticker { position: relative; z-index: 2; width: min(892px, 100%); height: 56px; margin-top: 44px; border-radius: 999px; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)), rgba(12, 9, 7, 0.55); border: 1px solid var(--warm-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; width: max-content; height: 100%; align-items: center; animation: marquee 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; color: #a7a7ad; font-size: 15px; font-weight: 600; white-space: nowrap; letter-spacing: -0.01em; }
.tick i { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: #c9c9ce; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0; }
.tick b { color: #ececee; font-weight: 600; }
.tick small { font-size: 13.5px; font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 699px) {
  .ticker { width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; border-radius: 0; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; height: 48px; margin-top: 34px; }
  .tick { padding: 0 18px; font-size: 14px; }
}

/* ---------- blocs */
.block { margin-top: 44px; }
.block-s { margin-top: 8px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-head h2 { font-size: 22px; }
.block-head a { font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--peach); }
.eyebrow { color: var(--peach); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.card { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.card.warm { border-color: var(--warm-line); background: radial-gradient(120% 90% at 0% 100%, rgba(238, 127, 32, 0.1), rgba(0, 0, 0, 0) 60%), var(--glass); }
.card.tight { padding: 4px 20px; }
.card + .card { margin-top: 12px; }
.lead { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.lead b { color: #fff; }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 0 18px; } .grid-2.top > * { align-self: start; } .grid-2 > section:not(.block) { margin-top: 0; } }

/* ---------- argent */
.money-label { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.money { font-size: clamp(46px, 10vw, 76px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.02; margin: 4px 0 10px; }
.delta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; padding: 6px 14px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); }
.delta.up { background: var(--up-bg); color: var(--up); }
.delta.down { background: var(--down-bg); color: var(--down); }

/* ---------- message d'état */
.status { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.status .icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-bg); color: var(--accent-hi); }
.status .icon svg { width: 24px; height: 24px; }
.status.ok .icon { background: var(--up-bg); color: var(--up); }
.status.warn .icon { background: var(--wait-bg); color: var(--wait); }
.status h3 { margin-bottom: 4px; }
.status p { color: var(--ink-2); }
.when { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; color: #e6e6e8; background: var(--sunk); padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.when svg { width: 17px; height: 17px; color: var(--peach); }

/* ---------- barre de répartition */
.split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--sunk); gap: 2px; }
.split span { display: block; height: 100%; min-width: 4px; width: 0; transition: width 0.9s var(--ease); }
.legend { display: grid; gap: 10px; margin-top: 16px; }
.legend div { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; color: var(--ink-2); }
.legend b { color: #fff; font-weight: 600; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.c0 { background: #3a3a3f; } .c1 { background: #f28a2a; } .c2 { background: #f7c69b; } .c3 { background: #b4532a; } .c4 { background: #e9e2d8; } .c5 { background: #8f6a4e; } .c6 { background: #ffb36b; }

/* ---------- listes */
.list { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item.noicon { grid-template-columns: 1fr auto; }
.item.go { cursor: pointer; transition: opacity 0.2s; }
.item.go:hover .item-title { color: #fff; }
.item.go:active { opacity: 0.7; }
.item-main { min-width: 0; }
.item-title { font-weight: 600; overflow-wrap: anywhere; color: #f1f1f3; }
.item-sub { color: var(--ink-3); font-size: 14.5px; margin-top: 2px; overflow-wrap: anywhere; }
.item-sub b { color: var(--ink-2); font-weight: 600; }
.item-end { text-align: right; font-weight: 600; white-space: nowrap; }
.item-end .item-sub { font-weight: 500; }
.empty { color: var(--ink-3); padding: 16px 0; }
.ic-box { width: 36px; height: 36px; border-radius: 12px; background: var(--brand-bg); color: var(--accent-hi); display: grid; place-items: center; }
.ic-box svg { width: 19px; height: 19px; }
.ic-box.up { background: var(--up-bg); color: var(--up); }
.ic-box.wait { background: var(--wait-bg); color: var(--wait); }
.pts { font-weight: 700; white-space: nowrap; }

/* ---------- visages */
.face { flex: none; display: block; animation: pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
.face .head { fill: rgba(255, 255, 255, 0.07); stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }
.face .eye { fill: #d0d0d4; }
.face .mouth { fill: none; stroke: #d0d0d4; stroke-width: 2.6; stroke-linecap: round; }
.face.contente .head { fill: rgba(61, 220, 151, 0.13); stroke: rgba(61, 220, 151, 0.3); } .face.contente .eye { fill: var(--up); } .face.contente .mouth { stroke: var(--up); }
.face.triste .head { fill: rgba(255, 107, 129, 0.12); stroke: rgba(255, 107, 129, 0.3); } .face.triste .eye { fill: var(--down); } .face.triste .mouth { stroke: var(--down); }
@keyframes pop { from { transform: scale(0.7); opacity: 0; } }

/* ---------- méthodes en entraînement */
.agents { display: grid; gap: 12px; }
.agents > .card + .card, .principles > .card + .card { margin-top: 0; }
@media (min-width: 900px) { .agents { grid-template-columns: 1fr 1fr; } }
.agent { display: grid; gap: 16px; cursor: pointer; transition: transform 0.2s var(--ease), border-color 0.25s; }
.agent:hover { border-color: var(--warm-line); }
.agent:active { transform: scale(0.99); }
.agent-top { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.agent-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.agent-method { color: var(--ink-2); }
.agent-pnl { font-size: 19px; font-weight: 700; text-align: right; white-space: nowrap; }
.agent-pnl small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.agent-note { color: var(--ink-2); font-size: 15px; }
.agent-note b { color: #fff; font-weight: 600; }
.score { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.meter { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.meter > span { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: #8b8b92; width: 0; transition: width 1s var(--ease); }
.meter > span.good { background: linear-gradient(90deg, #1f9e6b, var(--up)); box-shadow: 0 0 12px rgba(61, 220, 151, 0.45); }
.meter > span.bad { background: linear-gradient(90deg, #b8324a, var(--down)); }
.meter > span.gold { background: linear-gradient(90deg, var(--accent-lo), var(--peach)); box-shadow: 0 0 12px rgba(238, 127, 32, 0.5); }
.meter > i { position: absolute; top: -5px; bottom: -5px; width: 2px; border-radius: 1px; background: var(--down); opacity: 0.7; }
.score-num { font-weight: 700; white-space: nowrap; }
.score-num small { font-weight: 500; color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.pill.up { background: var(--up-bg); color: var(--up); }
.pill.down { background: var(--down-bg); color: var(--down); }
.pill.wait { background: var(--wait-bg); color: var(--wait); }
.pill.brand { background: var(--brand-bg); color: var(--accent-hi); }
.pill svg { width: 14px; height: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- chiffres clés */
.nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .nums.four { grid-template-columns: repeat(4, 1fr); } .nums.three { grid-template-columns: repeat(3, 1fr); } }
.num-box { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-width: 0; }
.num-box b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.num-box span { color: var(--ink-3); font-size: 14.5px; }

/* ---------- parcours d'une idée et barres */
.step { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.step:last-child { border-bottom: 0; }
.step-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); font-weight: 700; color: var(--ink-3); }
.step.reached .step-n { background: var(--brand-bg); color: var(--accent-hi); box-shadow: inset 0 0 0 1px rgba(238, 127, 32, 0.35); }
.step > b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.bars { display: grid; gap: 16px; }
.bar-row { display: grid; gap: 7px; }
.bar-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.bar-row b { white-space: nowrap; color: #fff; font-weight: 600; }
.bar { height: 6px; background: rgba(255, 255, 255, 0.07); border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--down); border-radius: 3px; width: 0; transition: width 1s var(--ease); }
.bar.brand > span { background: linear-gradient(90deg, var(--accent-lo), var(--peach)); }
.bar.up > span { background: var(--up); }

/* ---------- examens d'une expérience */
.exam { display: grid; grid-template-columns: 28px 1fr; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.exam:last-child { border-bottom: 0; }
.exam svg { width: 24px; height: 24px; grid-row: span 2; }
.exam .ok { color: var(--up); } .exam .ko { color: var(--down); }
.exam span { font-weight: 600; }
.exam small { color: var(--ink-3); font-size: 14px; }
.verdict { display: flex; align-items: center; gap: 16px; }
.verdict b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.verdict .icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--sunk); color: var(--ink-2); }
.verdict .icon svg { width: 26px; height: 26px; }
.verdict.up .icon { background: var(--up-bg); color: var(--up); }
.verdict.down .icon { background: var(--down-bg); color: var(--down); }
.verdict.wait .icon { background: var(--wait-bg); color: var(--wait); }

/* ---------- le cerveau */
.mood { display: grid; gap: 22px; align-items: center; }
@media (min-width: 760px) { .mood { grid-template-columns: 300px 1fr; } }
.gauge { width: 100%; max-width: 300px; margin: 0 auto; display: block; }
@media (max-width: 759px) { .gauge { max-width: 250px; } }
.gauge .track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 14; stroke-linecap: round; }
.gauge .fill { fill: none; stroke: url(#gauge-grad); stroke-width: 14; stroke-linecap: round; }
.gauge .needle { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.gauge .hub { fill: #fff; }
.gauge text { fill: var(--ink-3); font: 600 12px var(--font); }
.mood-name { font-size: 38px; font-weight: 700; letter-spacing: -0.04em; }
.quote { position: relative; margin: 16px 0 0; padding: 14px 18px; border-radius: 16px; background: rgba(238, 127, 32, 0.07); box-shadow: inset 2px 0 0 var(--accent); color: #ececee; font-size: 16px; line-height: 1.55; }
.quote cite { display: block; margin-top: 6px; color: var(--peach); font-style: normal; font-size: 13.5px; font-weight: 600; }
.principles { display: grid; gap: 12px; }
@media (min-width: 760px) { .principles { grid-template-columns: 1fr 1fr; } }
.principle h3 { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.principle h3 small { color: var(--peach); font-size: 13px; font-weight: 600; }
.principle blockquote { margin: 10px 0 14px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.principle .bar-row > div:first-child { font-size: 14px; }
.wisdom svg { width: 14px; height: 14px; }
.wisdom { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; color: var(--peach); background: rgba(238, 127, 32, 0.1); box-shadow: inset 0 0 0 1px rgba(238, 127, 32, 0.22); white-space: nowrap; }
.tiles { display: grid; gap: 12px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { padding: 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.tile .eyebrow { margin-bottom: 6px; }
.tile b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.04em; }
.tile p { color: var(--ink-3); font-size: 14.5px; margin-top: 4px; }
.rules { display: grid; gap: 0; }

/* ---------- formulaires, fenêtres */
label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 12px 0 7px; }
input { width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); color: #fff; border-radius: 16px; padding: 15px 16px; font: 16px var(--font); transition: border-color 0.2s, box-shadow 0.2s; }
input:focus { outline: none; border-color: rgba(242, 138, 42, 0.7); box-shadow: 0 0 0 4px rgba(238, 127, 32, 0.18); }
.switch { position: relative; width: 50px; height: 30px; border-radius: 15px; border: 0; background: rgba(255, 255, 255, 0.14); flex: none; transition: background 0.25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.switch.on { background: var(--accent); box-shadow: 0 0 14px rgba(238, 127, 32, 0.45); }
.switch.on::after { transform: translateX(20px); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.chip { border: 0; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; background: var(--sunk); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.chip.on { background: #fff; color: #000; box-shadow: none; }
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.2s ease; }
.modal-panel { width: min(520px, 100%); background: #0e0c0b; border: 1px solid var(--warm-line); border-radius: 26px 26px 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 12px; animation: up 0.3s var(--ease); max-height: 90dvh; overflow: auto; box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6); }
.modal-panel p { color: var(--ink-2); }
@media (min-width: 600px) { .modal { align-items: center; padding: 16px; } .modal-panel { border-radius: 26px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #fff; color: #000; padding: 12px 20px; border-radius: 999px; z-index: 70; font-weight: 600; max-width: calc(100% - 32px); animation: up 0.25s var(--ease); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 18px; background: var(--wait-bg); color: #fff; margin-bottom: 16px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(247, 198, 155, 0.2); }
.banner.bad { background: var(--down-bg); box-shadow: inset 0 0 0 1px rgba(255, 107, 129, 0.25); }
.banner svg { width: 21px; height: 21px; flex: none; margin-top: 1px; }
.hero .banner { position: relative; z-index: 3; margin: 0 0 18px; text-align: left; }

/* ---------- connexion */
.login-form { position: relative; z-index: 2; margin-top: 30px; display: flex; gap: 10px; width: min(460px, 100%); padding: 6px; border-radius: 999px; background: rgba(20, 16, 13, 0.7); border: 1px solid var(--warm-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.login-form input { flex: 1; min-width: 0; border: 0; background: none; border-radius: 999px; padding: 0 18px; height: 50px; box-shadow: none; }
.login-form input:focus { box-shadow: none; }
.login-form .btn { min-height: 50px; padding: 0 24px; }
.login-form:focus-within { border-color: rgba(242, 138, 42, 0.55); box-shadow: 0 0 0 4px rgba(238, 127, 32, 0.14); }
.login .error { position: relative; z-index: 2; margin-top: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- détails pour les experts */
details.more { margin-top: 10px; border-top: 1px solid var(--line); }
details.more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; padding: 16px 0; color: var(--ink-2); }
details.more > summary:hover { color: #fff; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
details.more[open] > summary svg { transform: rotate(180deg); }
details.more h3 { margin: 20px 0 8px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-weight: 600; color: var(--ink-3); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: #e4e4e7; }
td.r, th.r { text-align: right; }
td.nw { white-space: nowrap; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 9px 18px; font-size: 15px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; color: #e4e4e7; }
.code { font-family: ui-monospace, "SF Mono", monospace; font-size: 13px; }

/* ---------- menu "Plus" */
.menu a, .menu button { display: grid; grid-template-columns: 44px 1fr 18px; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: #fff; }
.menu > :last-child { border-bottom: 0; }
.menu .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--sunk); display: grid; place-items: center; color: var(--peach); }
.menu .ic svg { width: 22px; height: 22px; }
.menu b { display: block; font-weight: 600; }
.menu small { color: var(--ink-3); font-size: 14.5px; }
.chev { width: 18px; height: 18px; color: var(--ink-4); }

/* ---------- graphiques */
.chart { margin-top: 12px; min-height: 180px; position: relative; }
.chart .uplot { font-family: var(--font); }
.chart .u-legend { display: none; }
.chart-note { font-size: 14px; color: var(--ink-3); margin-top: 8px; }

.skeleton { height: 16px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); margin: 16px 0; animation: breathe 1.4s ease-in-out infinite; }
.skeleton.big { height: 56px; width: 60%; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-track { transform: none; }
}
