/* =========================================================
   Trading Evolution — styles
   Thème sombre : fond nuit, accent bleu Trading Evolution, orange NinjaTrader
   ========================================================= */
:root {
  color-scheme: dark;
  --blue-50: rgba(59,130,246,.12); --blue-100: rgba(59,130,246,.24); --blue-200: rgba(96,165,250,.5); --blue-300: #8fb4ff;
  --blue: #3b82f6; --blue-600: #2563eb; --blue-700: #93b8ff; --blue-800: #dbe6ff; --blue-900: #0b1f4d;
  --sky: #38a3ff; --sky-2: #60a5fa;
  --ink: #eef2fa; --ink-2: #b9c3d9; --muted: #8a95ae; --muted-2: #6b7690;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.06);
  --surface: #070a12; --surface-2: #0a0e18; --surface-3: rgba(255,255,255,.04);
  --card: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  --panel: #0a0e18; --pop: #0e1322;
  --navy: #0d1424; --navy-2: #121a2e;
  --pos: #22c55e; --neg: #f87171; --amber: #f59e0b;
  --f-disp: 'Clash Display', 'Satoshi', system-ui, sans-serif;
  --f-body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --t-xs: .75rem; --t-sm: .8125rem; --t-base: .9375rem;
  --t-lg: clamp(1rem, .95rem + .3vw, 1.0625rem);
  --t-xl: clamp(1.05rem, 1rem + .5vw, 1.1875rem);
  --t-h3: clamp(1.05rem, 1rem + .4vw, 1.1875rem);
  --t-h2: clamp(1.85rem, 1.3rem + 2.4vw, 2.75rem);
  --t-h1: clamp(2.2rem, 1.3rem + 2.7vw, 3.4rem);
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.25rem; --s-6: 1.5rem;
  --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem; --s-24: 6rem;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-full: 9999px;
  --sh-sm: 0 1px 2px rgba(0,0,0,.35);
  --sh-md: 0 12px 32px rgba(0,0,0,.35);
  --sh-lg: 0 24px 60px rgba(0,0,0,.45);
  --sh-xl: 0 50px 110px rgba(0,0,0,.55);
  --ease: cubic-bezier(.16,1,.3,1);
  --d-fast: 150ms; --d-base: 250ms; --d-slow: 400ms;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: var(--t-base); line-height: 1.55;
  color: var(--ink); background: var(--surface);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
/* lien d'évitement : masqué au-dessus de la page (pas à gauche, sinon débordement en arabe RTL) */
.skip { position: absolute; top: 8px; inset-inline-start: 8px; transform: translateY(-200%); background: var(--blue); color: #fff; padding: .5rem .8rem; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--blue-200); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  border: 0; cursor: pointer; font-weight: 700; font-size: var(--t-base); border-radius: var(--r-md);
  padding: .75rem 1.15rem; display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; min-height: 44px;
  transition: transform var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease), background var(--d-base) var(--ease), border-color var(--d-base) var(--ease), color var(--d-base) var(--ease);
}
.btn-pri { background: linear-gradient(135deg, #2f6fe8 0%, #3b82f6 55%, #5aa2ff 100%); color: #fff; box-shadow: 0 8px 24px rgba(59,130,246,.35); }
.btn-pri:hover { background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(59,130,246,.45); }
.btn-gh { background: rgba(255,255,255,.04); color: var(--ink); border: 1px solid var(--line); }
.btn-gh:hover { border-color: var(--blue-200); background: rgba(255,255,255,.08); color: #fff; transform: translateY(-2px); }
.btn-g { background: rgba(255,255,255,.06); color: var(--ink); border: 1px solid rgba(255,255,255,.14); }
.btn-g:hover { border-color: var(--blue-200); background: rgba(255,255,255,.1); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.35); }
.btn-white { background: #fff; color: #070a12; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.btn-white:hover { transform: translateY(-2px); background: #e8efff; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn.big { padding: .95rem 1.6rem; font-size: var(--t-lg); }

/* ---------- Eyebrow / chips ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: var(--t-sm); letter-spacing: .02em;
  color: var(--ink-2); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: var(--r-full); padding: .45rem 1rem; margin-bottom: var(--s-5); font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(22,87,214,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,87,214,.45); } 70% { box-shadow: 0 0 0 9px rgba(22,87,214,0); } 100% { box-shadow: 0 0 0 0 rgba(22,87,214,0); } }
.chip { display: inline-block; font-size: var(--t-xs); font-weight: 700; color: var(--blue-700); background: var(--blue-50); border-radius: var(--r-full); padding: .25rem .7rem; margin-bottom: var(--s-3); }
.tag { display: inline-block; font-size: var(--t-xs); font-weight: 700; color: var(--blue); background: var(--blue-50); border-radius: 6px; padding: .2rem .5rem; }
.fine { font-size: var(--t-sm); color: var(--muted); }
.fine.light { color: rgba(255,255,255,.7); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: var(--s-6);
  padding: var(--s-3) var(--s-8); background: rgba(7,10,18,.72); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid transparent; transition: all var(--d-base) var(--ease);
}
.nav.small { border-bottom-color: var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.35); padding-block: var(--s-2); }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--f-disp); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; box-shadow: 0 4px 12px rgba(10,22,40,.25); }
.brand-name span { background: linear-gradient(92deg, #3b82f6, #7cc4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: .15rem; margin-inline-start: var(--s-2); }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: var(--t-base); padding: .5rem .8rem; white-space: nowrap; border-radius: var(--r-sm); transition: all var(--d-fast) var(--ease); }
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.06); color: #fff; }
.nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: .6rem; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: rgba(255,255,255,.05); border-radius: var(--r-sm); flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--d-base) var(--ease), opacity var(--d-base); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: var(--s-16) 0 var(--s-12); background: var(--surface); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 14s ease-in-out infinite; }
.orb-a { width: 520px; height: 520px; right: -140px; top: -120px; background: radial-gradient(circle, rgba(33,150,243,.35), rgba(22,87,214,0) 70%); }
.orb-b { width: 420px; height: 420px; left: -160px; bottom: -120px; background: radial-gradient(circle, rgba(22,87,214,.22), rgba(22,87,214,0) 70%); animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-24px) } }
.grid-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.grid-lines path { stroke: var(--line); stroke-width: 1; fill: none; }
.hero-in { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-8); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: var(--s-8); align-items: center; }
.hero-copy { max-width: 35rem; }
.h1 { font-family: var(--f-disp); font-size: var(--t-h1); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; margin-bottom: var(--s-5); color: #fff; }
.grad { background: linear-gradient(92deg, #3b82f6 0%, #7cc4ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: var(--t-xl); color: var(--ink-2); line-height: 1.6; margin-bottom: var(--s-6); }
.lead strong { color: var(--ink); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-4); }
.cta-row.center { justify-content: center; }

/* ---------- Terminal mock ---------- */
.terminal { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 50px 110px rgba(0,0,0,.55), 0 0 90px rgba(59,130,246,.12); overflow: hidden; }
#heroTerminal { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); transition: transform .8s var(--ease); }
#heroTerminal:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.term-bar { display: flex; align-items: center; gap: .4rem; padding: .65rem .95rem; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); color: var(--muted); }
.tdot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.tdot:nth-child(1) { background: #ff5f57; } .tdot:nth-child(2) { background: #febc2e; } .tdot:nth-child(3) { background: #28c840; }
.term-title { margin-inline-start: .6rem; font-size: var(--t-xs); opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live { margin-inline-start: auto; display: inline-flex; align-items: center; gap: .35rem; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: #8fd3ff; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #2ee6a6; box-shadow: 0 0 0 0 rgba(46,230,166,.6); animation: pulse 1.6s infinite; }
.term-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5) var(--s-2); }
.pair { display: flex; align-items: center; gap: .7rem; }
.pair img { width: 28px; height: 28px; border-radius: 8px; }
.pair strong { display: block; font-size: 1rem; }
.pair small { color: var(--muted); font-size: var(--t-xs); }
.price-box { text-align: end; }
.price { display: block; font-size: 1.35rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.chg { font-size: var(--t-xs); font-weight: 700; }
.chg.up { color: var(--pos); } .chg.down { color: var(--neg); }
.term-modes, .eco-tabs { display: flex; gap: .3rem; padding: 0 var(--s-5) var(--s-3); flex-wrap: wrap; }
.term-modes button, .eco-tabs button {
  border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: var(--r-full); padding: .35rem .8rem; font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}
.term-modes button:hover, .eco-tabs button:hover { border-color: var(--blue-200); color: #fff; }
.term-modes button[aria-selected="true"], .eco-tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.term-chart { position: relative; height: 300px; background: var(--panel); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.term-chart.tall { height: 360px; }
.term-chart canvas { width: 100%; height: 100%; }
.legend { position: absolute; top: .6rem; left: .9rem; display: flex; gap: .9rem; font-size: 10px; color: var(--muted); pointer-events: none; }
.legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-inline-end: .3rem; border-radius: 2px; }
.term-foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: var(--s-3) var(--s-5) var(--s-4); }
.kpi small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.kpi strong { display: block; font-size: var(--t-base); }
.sig { color: var(--pos); }
.sig.sell { color: var(--neg); }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--surface-2); overflow: hidden; padding: .7rem 0; position: relative; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, #0a0e18, rgba(10,14,24,0)); }
.ticker::after { right: 0; background: linear-gradient(270deg, #0a0e18, rgba(10,14,24,0)); }
.ticker-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.tk { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-mono); font-size: var(--t-sm); white-space: nowrap; }
.tk strong { color: var(--ink); }
.tk .p { color: var(--ink-2); }
.tk .c { font-weight: 700; padding: .1rem .4rem; border-radius: 6px; font-size: var(--t-xs); }
.tk .c.up { color: var(--pos); background: rgba(18,146,76,.1); } .tk .c.down { color: var(--neg); background: rgba(224,65,63,.1); }

/* ---------- Sections ---------- */
.sec { max-width: var(--wrap); margin: 0 auto; padding: var(--s-24) var(--s-8); }
.sec.alt { max-width: none; background: radial-gradient(900px 420px at 88% 0%, rgba(59,130,246,.10), transparent 60%), var(--surface-2); border-block: 1px solid var(--line-2); }
.sec.alt > * { max-width: var(--wrap); margin-inline: auto; }
.sh { text-align: center; max-width: 44rem; margin: 0 auto var(--s-12); }
.sh h2 { font-family: var(--f-disp); font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; color: #fff; }
.sh h2 span, .cta h2 span { background: linear-gradient(92deg, #3b82f6 0%, #7cc4ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sh p { color: var(--muted); font-size: var(--t-lg); margin-top: var(--s-3); line-height: 1.6; }
h3 { font-family: var(--f-disp); font-size: var(--t-h3); font-weight: 600; letter-spacing: -.01em; }

/* ---------- Listes à coches ---------- */
.ticks li { position: relative; padding-inline-start: 1.5rem; color: var(--ink-2); font-size: var(--t-sm); margin: .35rem 0; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .32rem; width: 14px; height: 14px; border-radius: 50%; background: var(--blue-50); border: 1px solid var(--blue-200); }
.ticks li::after { content: ""; position: absolute; inset-inline-start: 4px; top: .55rem; width: 6px; height: 3px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

/* SVG art (bleu & blanc) */
.draw .lbl { font-family: var(--f-mono); font-size: 9px; fill: var(--blue-700); font-weight: 700; }
.ln { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ln-price { stroke: var(--blue-800); }
.ln-ema { stroke: var(--sky); }
.ln-sma { stroke: var(--blue-300); stroke-dasharray: 5 4; }
.pt { fill: var(--panel); stroke: var(--blue); stroke-width: 2.5; }
.hbars rect { fill: var(--blue); opacity: .9; transform-origin: bottom; }

/* Modules */
.modules { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-md); overflow: hidden; }
.mod-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.mod-tabs::-webkit-scrollbar { display: none; }
.mod-tabs button { flex: 0 0 auto; border: 0; background: none; padding: 1rem 1.2rem; font-weight: 700; font-size: var(--t-sm); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--d-fast), border-color var(--d-fast); white-space: nowrap; }
.mod-tabs button:hover { color: var(--blue); }
.mod-tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.mod-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-8); padding: var(--s-8); align-items: center; animation: fadeUp .5s var(--ease); }
.mod-panel[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
.mod-text h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); margin-bottom: .6rem; }
.mod-text p { color: var(--ink-2); margin-bottom: var(--s-4); }
.mod-meta { display: flex; gap: 1rem; margin-top: var(--s-5); font-size: var(--t-xs); color: var(--muted); }
.mod-meta span::before { content: "•"; color: var(--blue); margin-inline-end: .4rem; }
.mod-fig { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4); }
.draw { width: 100%; height: auto; }
.draw .grid path { stroke: var(--line); stroke-width: 1; fill: none; }
.draw .ln-price { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.draw .ln-ema, .draw .ln-sma { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.draw .marks circle { fill: var(--panel); stroke: var(--blue); stroke-width: 2.5; opacity: 0; }
.draw .marks text { font-family: var(--f-mono); font-size: 12px; font-weight: 700; fill: var(--blue-800); opacity: 0; }
.draw .dash { stroke: var(--blue-300); stroke-dasharray: 5 5; stroke-width: 1.5; fill: none; opacity: 0; }
.draw .dash.liq { stroke: var(--neg); }
.draw .box, .draw .ob, .draw .fvg { fill: rgba(22,87,214,.12); stroke: var(--blue); stroke-width: 1.2; opacity: 0; }
.draw .fvg { fill: rgba(33,150,243,.18); stroke-dasharray: 3 3; }
.draw .zone-r { fill: rgba(22,87,214,.14); } .draw .zone-s { fill: rgba(33,150,243,.14); }
.draw .arrow { stroke: var(--neg); stroke-width: 2; opacity: 0; }
.draw .hbars rect { transform: scaleY(0); }
.draw .lbl { opacity: 0; }
.draw .lg-ema { fill: var(--sky); opacity: 1; } .draw .lg-sma { fill: var(--blue-300); opacity: 1; }
.draw.go .ln-price { animation: drawLine 2.2s var(--ease) forwards; }
.draw.go .ln-ema { animation: drawLine 2.2s .3s var(--ease) forwards; }
.draw.go .ln-sma { animation: drawLine 2.2s .5s var(--ease) forwards; }
.draw.go .marks circle, .draw.go .marks text, .draw.go .dash, .draw.go .box, .draw.go .ob, .draw.go .fvg, .draw.go .arrow, .draw.go .lbl { animation: fadeIn .6s 1.2s var(--ease) forwards; }
.draw.go .hbars rect { animation: growY .9s var(--ease) forwards; }
.draw.go .hbars rect:nth-child(2) { animation-delay: .08s } .draw.go .hbars rect:nth-child(3) { animation-delay: .16s } .draw.go .hbars rect:nth-child(4) { animation-delay: .24s }
.draw.go .hbars rect:nth-child(5) { animation-delay: .32s } .draw.go .hbars rect:nth-child(6) { animation-delay: .40s } .draw.go .hbars rect:nth-child(7) { animation-delay: .48s } .draw.go .hbars rect:nth-child(8) { animation-delay: .56s }
@keyframes drawLine { to { stroke-dashoffset: 0 } }
@keyframes fadeIn { to { opacity: 1 } }
@keyframes growY { to { transform: scaleY(1) } }

.curriculum { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); margin-top: var(--s-6); }
.cur-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4) var(--s-5); display: grid; gap: .2rem; transition: border-color var(--d-fast), transform var(--d-base) var(--ease); }
.cur-item:hover { border-color: var(--blue-200); transform: translateY(-2px); }
.cur-item > span { font-size: var(--t-xs); color: var(--blue); font-weight: 700; }
.cur-item strong { font-size: var(--t-base); }
.cur-item small { color: var(--muted); font-size: var(--t-xs); }

/* ---------- Indicateur ---------- */
.indi { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: var(--s-6); align-items: start; }
.indi-feats { display: grid; gap: var(--s-3); }
.feat { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4) var(--s-5); align-items: start; transition: border-color var(--d-fast), transform var(--d-base) var(--ease); }
.feat:hover { border-color: var(--blue-200); transform: translateX(4px); }
.feat h3 { grid-column: 2; font-size: 1rem; margin-bottom: .2rem; }
.feat p { grid-column: 2; color: var(--ink-2); font-size: var(--t-sm); }
.ico { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); border: 1px solid var(--blue-100); display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.indi-cta { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-2); }

/* ---------- Marchés ---------- */
.markets { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.mk { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-5); box-shadow: var(--sh-sm); transition: transform var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease), border-color var(--d-base); }
.mk:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--blue-200); }
.mk-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--s-3); }
.mk-top strong { display: block; font-family: var(--f-disp); font-size: 1.15rem; }
.mk-top small { color: var(--muted); font-size: var(--t-xs); }
.mk svg { width: 100%; height: 64px; margin: var(--s-2) 0 var(--s-3); }
.mk svg path.area { fill: url(#sparkFill); }
.mk svg path.line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; }
.mk.go svg path.line { animation: drawLine 1.8s var(--ease) forwards; }
.mk-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; font-size: var(--t-xs); color: var(--muted); }
.mk-meta b { display: block; color: var(--ink); font-family: var(--f-mono); font-size: var(--t-sm); }
.mk p { color: var(--ink-2); font-size: var(--t-sm); margin-top: var(--s-3); }

/* ---------- Économie ---------- */
.eco { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: var(--s-6); }
.eco-tabs { padding-top: var(--s-4); }
.eco-chart { padding: var(--s-2) var(--s-5) var(--s-4); }
.eco-val { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-3); flex-wrap: wrap; }
.eco-val strong { font-size: 2rem; color: var(--blue-700); }
.eco-val span { color: var(--muted); font-size: var(--t-sm); }
#ecoSvg { width: 100%; height: 220px; }
#ecoSvg rect { fill: var(--blue); transform-origin: center bottom; transition: height .7s var(--ease), y .7s var(--ease), fill .4s; }
#ecoSvg rect.neg { fill: var(--blue-300); }
#ecoSvg line.zero { stroke: var(--ink-2); stroke-width: 1; }
#ecoSvg line.grid { stroke: var(--line); stroke-width: 1; }
#ecoSvg text { font-family: var(--f-mono); font-size: 10px; fill: var(--muted); }
.eco-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); padding-top: .4rem; }
.eco-note { padding: 0 var(--s-5) var(--s-4); }
.eco-cards { display: grid; gap: var(--s-3); }
.eco-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4) var(--s-5); transition: border-color var(--d-fast), transform var(--d-base) var(--ease); }
.eco-card:hover { border-color: var(--blue-200); transform: translateX(4px); }
.eco-card h3 { font-size: 1rem; margin: .3rem 0 .3rem; }
.eco-card p { color: var(--ink-2); font-size: var(--t-sm); }

.widget-wrap { margin-top: var(--s-10); }
.widget-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-4); }
.tv-embed { position: relative; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--panel); height: 480px; box-shadow: var(--sh-md); }
.tv-embed .tradingview-widget-container, .tv-embed iframe { width: 100% !important; height: 100% !important; }
.tv-placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: .6rem; justify-items: center; background: var(--panel); }

/* ---------- Actualités ---------- */
.news { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-6); }
.news-feed { height: 100%; min-height: 620px; }
.analyses { display: grid; gap: var(--s-4); align-content: start; }
.an-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-5); display: grid; grid-template-columns: 1fr 120px; gap: var(--s-4); align-items: center; transition: border-color var(--d-fast), transform var(--d-base) var(--ease), box-shadow var(--d-base); }
.an-card:hover { border-color: var(--blue-200); transform: translateY(-3px); box-shadow: var(--sh-md); }
.an-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.an-top .time { color: var(--muted); font-size: var(--t-xs); }
.an-card h3 { font-size: 1.05rem; margin: .2rem 0 .3rem; grid-column: 1; }
.an-card p { color: var(--ink-2); font-size: var(--t-sm); grid-column: 1; }
.spark { grid-column: 2; grid-row: 2 / span 2; width: 120px; height: 50px; }
.spark path { fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.reveal.in .spark path { animation: drawLine 1.8s .3s var(--ease) forwards; }

/* ---------- Steps / Why ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-8) var(--s-6) var(--s-6); }
.num { position: absolute; top: -18px; inset-inline-start: var(--s-6); width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: #fff; font-family: var(--f-disp); font-weight: 700; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(22,87,214,.3); }
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--ink-2); }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.why-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); }
.why-item strong { display: block; font-family: var(--f-disp); font-size: 1.05rem; margin-bottom: .4rem; }
.why-item p { color: var(--ink-2); font-size: var(--t-sm); }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin: 0 auto; display: grid; gap: var(--s-3); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 var(--s-5); transition: border-color var(--d-fast); }
.faq details[open] { border-color: var(--blue-200); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: var(--s-4) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.2rem; color: var(--blue); transition: transform var(--d-base) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); padding-bottom: var(--s-4); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: radial-gradient(900px 480px at 15% 0%, rgba(59,130,246,.30), transparent 60%), radial-gradient(700px 400px at 90% 100%, rgba(56,163,255,.14), transparent 60%), var(--surface-2); border-top: 1px solid var(--line); color: #fff; padding: var(--s-24) var(--s-8); text-align: center; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 75%); }
.cta-in { position: relative; max-width: 42rem; margin: 0 auto; }
.cta-logo { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto var(--s-5); box-shadow: 0 20px 50px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.15); }
.cta h2 { font-family: var(--f-disp); font-size: var(--t-h2); letter-spacing: -.03em; line-height: 1.08; margin-bottom: var(--s-3); }
.cta > .cta-in > p { color: rgba(255,255,255,.8); font-size: var(--t-lg); margin-bottom: var(--s-6); }

/* ---------- Footer ---------- */
.foot { max-width: var(--wrap); margin: 0 auto; padding: var(--s-12) var(--s-8) var(--s-8); }
.foot-in { display: flex; justify-content: space-between; gap: var(--s-8); flex-wrap: wrap; padding-bottom: var(--s-8); border-bottom: 1px solid var(--line); }
.foot-brand { max-width: 24rem; }
.foot-brand p { color: var(--muted); font-size: var(--t-sm); margin-top: var(--s-3); }
.fn { display: flex; gap: var(--s-4); flex-wrap: wrap; align-items: center; }
.fn a { color: var(--ink-2); font-weight: 500; font-size: var(--t-sm); }
.fn a:hover { color: var(--blue); }
.copy { color: var(--muted-2); font-size: var(--t-xs); margin-top: var(--s-4); }

/* ---------- Quant ---------- */
.quant { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-md); overflow: hidden; }
.quant-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.quant-tabs::-webkit-scrollbar { display: none; }
.quant-tabs button { flex: 1 0 auto; border: 0; background: none; padding: 1rem 1.2rem; font-weight: 700; font-size: var(--t-sm); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color var(--d-fast), border-color var(--d-fast); font-family: var(--f-mono); }
.quant-tabs button:hover { color: var(--blue); }
.quant-tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.quant-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: var(--s-6); padding: var(--s-6); align-items: start; }
.quant-term { box-shadow: none; }
.quant-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem .8rem; padding: var(--s-3) var(--s-4); font-size: 10px; color: var(--muted); }
.quant-stats span { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px dashed var(--line); padding: .25rem 0; }
.quant-stats b { color: var(--ink); font-weight: 700; text-align: end; }
.quant-info h3 { font-size: 1.4rem; margin: .3rem 0 .5rem; }
.quant-info > p { color: var(--ink-2); margin-bottom: var(--s-4); line-height: 1.65; }
.quant-info .ticks { margin-bottom: var(--s-5); }
.formula { background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-4); overflow-x: auto; color: var(--blue-800); }
.formula .katex-display { margin: .3rem 0; }
.formula .katex { font-size: 1.05em; }
.formula .f-desc { display: block; font-size: var(--t-xs); color: var(--muted); font-family: var(--f-mono); margin-top: .2rem; }
.formula + .formula { margin-top: -.5rem; }
.quant-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-top: var(--s-6); }
.qcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); transition: border-color var(--d-fast), transform var(--d-base) var(--ease); }
.qcard:hover { border-color: var(--blue-200); transform: translateY(-3px); }
.qcard h3 { font-size: 1.05rem; margin: .4rem 0 .3rem; }
.qcard p { color: var(--ink-2); font-size: var(--t-sm); }
.cur-item.quant-item { border-color: var(--blue-200); background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(255,255,255,.02)); }
@media (max-width: 1100px) { .quant-body { grid-template-columns: 1fr; } .quant-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .quant-body { padding: var(--s-4); } .quant-grid { grid-template-columns: 1fr; } .quant-stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Plateforme partenaire : tunnel NinjaTrader ---------- */
:root { --nt: #ff4a12; --nt-dark: #e03d09; --nt-soft: #ff8a4c; --ntf-bg: #070a12; --ntf-ink: #eef2fa; --ntf-muted: #9aa6c0; --ntf-line: rgba(255,255,255,.09); }
.btn-nt { background: var(--nt); color: #fff; box-shadow: 0 8px 22px rgba(255,74,18,.32); }
.btn-nt:hover { background: var(--nt-dark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255,74,18,.42); }
.ntf-shine { position: relative; overflow: hidden; isolation: isolate; }
.ntf-shine::after { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: ntShine 4.4s var(--ease) infinite; z-index: -1; pointer-events: none; }
@keyframes ntShine { 0%, 58% { left: -70%; } 100% { left: 135%; } }

.ntf { position: relative; overflow: hidden; overflow: clip; isolation: isolate; background: var(--ntf-bg); color: var(--ntf-ink); padding: var(--s-24) var(--s-8); }
.ntf-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.ntf-steps { scroll-margin-top: 88px; }
.ntf-orb { position: absolute; border-radius: 50%; filter: blur(70px); animation: float 16s ease-in-out infinite; }
.ntf-orb.a { width: 640px; height: 640px; right: -180px; top: -220px; background: radial-gradient(circle, rgba(255,74,18,.30), transparent 65%); }
.ntf-orb.b { width: 580px; height: 580px; left: -220px; bottom: -240px; background: radial-gradient(circle, rgba(22,87,214,.36), transparent 65%); animation-delay: -7s; }
.ntf-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 25%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 25%, #000 15%, transparent 72%); }
.ntf-in { max-width: var(--wrap); margin: 0 auto; display: grid; gap: var(--s-16); }

/* 1. Accroche */
.ntf-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: var(--s-10); align-items: center; }
.ntf-badge { display: inline-flex; align-items: center; gap: .75rem; padding: .5rem 1rem; border: 1px solid var(--ntf-line); border-radius: var(--r-full); background: rgba(255,255,255,.04); margin-bottom: var(--s-6); }
.ntf-badge img { height: 14px; width: auto; }
.ntf-badge span { font-size: 11px; font-weight: 700; color: var(--ntf-muted); letter-spacing: .06em; text-transform: uppercase; padding-inline-start: .75rem; border-inline-start: 1px solid var(--ntf-line); }
.ntf h2 { font-family: var(--f-disp); font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.7rem); line-height: 1.02; letter-spacing: -.035em; color: #fff; margin-bottom: var(--s-5); }
.ntf h2 span { background: linear-gradient(92deg, var(--nt) 0%, var(--nt-soft) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ntf-lead { font-size: var(--t-xl); line-height: 1.65; color: #b9c3d9; margin-bottom: var(--s-6); max-width: 34rem; }
.ntf-proof { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s-8); }
.ntf-proof li { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-sm); font-weight: 600; color: var(--ntf-ink); padding: .42rem .85rem; border-radius: var(--r-full); background: rgba(255,255,255,.05); border: 1px solid var(--ntf-line); }
.ntf-proof li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--nt); box-shadow: 0 0 0 4px rgba(255,74,18,.18); }
.ntf-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); }
.ntf-link { color: #c9d3ea; font-weight: 700; font-size: var(--t-sm); border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 2px; transition: color var(--d-fast), border-color var(--d-fast); }
.ntf-link:hover { color: #fff; border-color: var(--nt); }
.ntf-fine { font-size: var(--t-xs); color: #7f8aa5; margin-top: var(--s-4); line-height: 1.6; }
.ntf-fine a { color: #c9d3ea; text-decoration: underline; }

/* Fenêtre plateforme animée */
.ntf-window { background: #0a0e18; border: 1px solid var(--ntf-line); border-radius: 18px; overflow: hidden; box-shadow: 0 50px 110px rgba(0,0,0,.55), 0 0 90px rgba(255,74,18,.12); transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .9s var(--ease); }
.ntf-window:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.ntf-bar { display: flex; align-items: center; gap: .45rem; padding: .65rem .95rem; border-bottom: 1px solid var(--ntf-line); background: rgba(255,255,255,.03); font-size: 11px; color: var(--ntf-muted); }
.ntf-bar .mono { margin-inline-start: .5rem; }
.ntf-live { margin-inline-start: auto; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--nt-soft); }
.ntf-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--nt); animation: ntPulse 1.6s infinite; }
@keyframes ntPulse { 0% { box-shadow: 0 0 0 0 rgba(255,74,18,.6); } 70% { box-shadow: 0 0 0 8px rgba(255,74,18,0); } 100% { box-shadow: 0 0 0 0 rgba(255,74,18,0); } }
.ntf-canvas { position: relative; height: 360px; }
.ntf-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ntf-wfoot { display: flex; flex-wrap: wrap; gap: .4rem var(--s-5); align-items: center; padding: .65rem .95rem; border-top: 1px solid var(--ntf-line); font-size: 11px; color: var(--ntf-muted); }
.ntf-wfoot b { color: #fff; font-weight: 700; margin-inline-start: .35rem; }
.ntf-wfoot .ntf-ill { margin-inline-start: auto; font-size: 10px; opacity: .65; }

/* 2. Bénéfices */
.ntf-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.ntf-feat { position: relative; overflow: hidden; padding: var(--s-6); border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); border: 1px solid var(--ntf-line); transition: transform var(--d-base) var(--ease), border-color var(--d-base), box-shadow var(--d-base); }
.ntf-feat::after { content: ""; position: absolute; right: -70px; bottom: -110px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(255,74,18,.24), transparent 65%); opacity: 0; transition: opacity var(--d-base); pointer-events: none; }
.ntf-feat:hover { transform: translateY(-5px); border-color: rgba(255,74,18,.45); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.ntf-feat:hover::after { opacity: 1; }
.ntf-feats .reveal:nth-child(2) { transition-delay: .08s; } .ntf-feats .reveal:nth-child(3) { transition-delay: .16s; } .ntf-feats .reveal:nth-child(4) { transition-delay: .24s; }
.ntf-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,74,18,.12); border: 1px solid rgba(255,74,18,.3); margin-bottom: var(--s-4); }
.ntf-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--nt-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ntf-feat h3 { color: #fff; font-size: 1.05rem; margin-bottom: .4rem; }
.ntf-feat p { color: #aab4cb; font-size: var(--t-sm); line-height: 1.6; margin-bottom: var(--s-4); }
.ntf-mod { font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: #8fb4ff; }
.ntf-mod:hover { color: #fff; }

/* 3. Étapes */
.ntf-steps-title { font-family: var(--f-disp); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); letter-spacing: -.03em; color: #fff; text-align: center; margin-bottom: var(--s-10); }
.ntf-track { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); position: relative; }
.ntf-track::before, .ntf-track::after { content: ""; position: absolute; top: 23px; left: 16.66%; right: 16.66%; height: 2px; border-radius: 2px; }
.ntf-track::before { background: rgba(255,255,255,.1); }
.ntf-track::after { background: linear-gradient(90deg, var(--nt), var(--nt-soft), #8fb4ff); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .35s; }
.ntf-track.in::after { transform: scaleX(1); }
.ntf-track li { position: relative; text-align: center; padding: 0 var(--s-3); }
.ntf-track .n { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto var(--s-4); border-radius: 50%; background: #0a0e18; border: 2px solid var(--nt); color: #fff; font-family: var(--f-disp); font-weight: 700; box-shadow: 0 0 0 6px rgba(255,74,18,.12), 0 0 30px rgba(255,74,18,.35); }
.ntf-track h4 { font-family: var(--f-disp); font-size: 1.1rem; color: #fff; margin-bottom: .4rem; }
.ntf-track p { color: #aab4cb; font-size: var(--t-sm); line-height: 1.6; max-width: 20rem; margin: 0 auto var(--s-3); }
.ntf-track a { font-weight: 700; font-size: var(--t-sm); color: var(--nt-soft); }
.ntf-track a:hover { color: #fff; }

/* 4. CTA final */
.ntf-final { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--s-10); align-items: center; padding: var(--s-8); border-radius: 26px; background: linear-gradient(135deg, rgba(255,74,18,.16), rgba(22,87,214,.14)); border: 1px solid rgba(255,255,255,.12); }
.ntf-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 240px at 100% 0%, rgba(255,74,18,.2), transparent 70%); pointer-events: none; }
.ntf-final-visual { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.5); transition: transform var(--d-base) var(--ease); }
.ntf-final-visual:hover { transform: translateY(-4px) scale(1.01); }
.ntf-final-visual img { width: 100%; height: auto; }
.ntf-final-copy { position: relative; }
.ntf-final-copy h3 { font-family: var(--f-disp); font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); letter-spacing: -.03em; color: #fff; margin-bottom: var(--s-3); }
.ntf-final-copy > p { color: #b9c3d9; line-height: 1.65; margin-bottom: var(--s-6); max-width: 34rem; }

/* Barre de conversion */
.nt-sticky { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 85; display: flex; align-items: center; gap: .85rem; max-width: calc(100% - 24px); padding-block: .5rem; padding-inline: 1.1rem .5rem; background: rgba(7,10,18,.94); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-full); box-shadow: 0 22px 60px rgba(4,8,20,.45); color: var(--ntf-ink); transform: translate(-50%, 160%); opacity: 0; visibility: hidden; transition: transform .55s var(--ease), opacity .3s, visibility 0s .55s; }
.nt-sticky.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .55s var(--ease), opacity .3s, visibility 0s; }
.nt-sticky img { height: 12px; width: auto; flex: none; }
.nt-sticky-txt { font-size: var(--t-sm); color: #c9d3ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-sticky .btn { min-height: 38px; padding: .5rem 1rem; font-size: var(--t-sm); flex: none; }
.nt-sticky-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #c9d3ea; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.nt-sticky-x:hover { background: rgba(255,255,255,.16); color: #fff; }

/* Points de contact dans l'application */
.nt-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--s-6); align-items: center; margin-top: var(--s-5); padding: var(--s-6); border-radius: var(--r-xl); background: radial-gradient(520px 240px at 100% 0%, rgba(255,74,18,.2), transparent 70%), #0a0e18; color: var(--ntf-ink); border: 1px solid rgba(255,255,255,.08); }
.nt-wm { height: 14px; width: auto; margin-bottom: .8rem; }
.nt-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: .35rem; }
.nt-card p { color: #aab4cb; font-size: var(--t-sm); line-height: 1.6; }
.nt-card .cta-row { margin: var(--s-4) 0 0; }
.nt-card-visual { display: block; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.45); transition: transform var(--d-base) var(--ease); }
.nt-card-visual:hover { transform: translateY(-3px); }
.nt-card-visual img { width: 100%; height: auto; }
.acard.nt-dash { background: radial-gradient(520px 220px at 100% 0%, rgba(255,74,18,.2), transparent 70%), #0a0e18; border-color: rgba(255,255,255,.08); color: var(--ntf-ink); }
.acard.nt-dash h3 { color: #fff; }
.acard.nt-dash p { color: #aab4cb; }
.acard.nt-dash .nt-wm { margin: 0; }
.acard.nt-dash .tag { background: rgba(255,74,18,.15); color: var(--nt-soft); }
.acard.nt-dash .cta-row { align-items: center; margin: .3rem 0 0; }
.acard.nt-dash .ntf-fine { margin: 0; }
.nt-callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; padding: var(--s-5); border-radius: var(--r-lg); background: radial-gradient(420px 180px at 100% 0%, rgba(255,74,18,.22), transparent 70%), #0a0e18; color: var(--ntf-ink); border: 1px solid rgba(255,255,255,.08); }
.nt-callout img { height: 12px; width: auto; margin-bottom: .55rem; display: block; }
.nt-callout strong { display: block; color: #fff; font-family: var(--f-disp); font-size: 1rem; margin-bottom: .25rem; }
.nt-callout p { color: #aab4cb; font-size: var(--t-sm); line-height: 1.55; margin: 0; }
.nt-callout-cta { display: grid; gap: .35rem; justify-items: end; }
.nt-callout small { color: #7f8aa5; font-size: 10px; }

@media (max-width: 1100px) {
  .ntf-hero { grid-template-columns: 1fr; }
  .ntf-window { transform: none; }
  .ntf-feats { grid-template-columns: repeat(2, 1fr); }
  .ntf-final { grid-template-columns: 1fr; }
  .ntf-final-visual { max-width: 428px; }
}
@media (max-width: 860px) {
  .ntf { padding: var(--s-16) var(--s-4); }
  .ntf-in { gap: var(--s-12); }
  .ntf-feats { grid-template-columns: 1fr; }
  .ntf-track { grid-template-columns: 1fr; gap: var(--s-8); }
  .ntf-track::before, .ntf-track::after { top: 24px; bottom: 24px; inset-inline: 23px auto; width: 2px; height: auto; }
  .ntf-track::after { transform: scaleY(0); transform-origin: top; }
  .ntf-track.in::after { transform: scaleY(1); }
  .ntf-track li { text-align: start; padding: 0; padding-inline-start: 68px; }
  .ntf-track .n { position: absolute; inset-inline-start: 0; top: 0; margin: 0; }
  .ntf-track p { margin-inline-start: 0; }
  .ntf-canvas { height: 300px; }
  .ntf-final { padding: var(--s-5); gap: var(--s-6); }
  .ntf-link { width: 100%; text-align: center; border: 0; }
  .nt-card { grid-template-columns: 1fr; padding: var(--s-5); }
  .nt-callout { grid-template-columns: 1fr; }
  .nt-callout-cta { justify-items: start; }
}
@media (max-width: 640px) { .nt-sticky-txt { display: none; } .nt-sticky { gap: .6rem; padding-inline-start: .9rem; } }
@media (prefers-reduced-motion: reduce) { .ntf-window { transform: none; } .ntf-track::after { transform: none; } }

/* ---------- Disclaimers (pied de page) ---------- */
.disclaimers { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.disclaimers h2 { font-family: var(--f-disp); font-size: 1.05rem; font-weight: 700; color: var(--ink); text-align: center; letter-spacing: .01em; margin-bottom: var(--s-5); }
.disclaimers p { color: var(--muted); font-size: var(--t-xs); line-height: 1.7; margin-bottom: var(--s-4); max-width: 68rem; margin-inline: auto; }
.disclaimers p strong { color: var(--ink-2); font-weight: 700; }

@media (max-width: 860px) { .disclaimers p { font-size: 11px; } }

/* ---------- Connexion / Espace membre ---------- */
.user-menu { position: relative; }
.btn-user { display: flex; align-items: center; gap: .5rem; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--r-md); padding-block: .3rem; padding-inline: .3rem .7rem; cursor: pointer; font-weight: 700; font-size: var(--t-sm); color: var(--blue-700); min-height: 40px; max-width: 200px; }
.btn-user img { width: 26px; height: 26px; border-radius: var(--r-full); background: var(--blue-100); }
.btn-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-drop { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 190px; background: var(--pop); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: .4rem; display: grid; z-index: 70; }
.user-drop[hidden] { display: none; }
.user-drop a, .user-drop button { text-align: start; background: none; border: 0; padding: .55rem .7rem; border-radius: var(--r-sm); font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); cursor: pointer; }
.user-drop a:hover, .user-drop button:hover { background: rgba(255,255,255,.06); color: #fff; }
.user-drop button { color: var(--neg); }
.member { max-width: 60rem; margin: 0 auto; }
.member-locked { text-align: center; background: radial-gradient(600px 260px at 50% 0%, rgba(59,130,246,.14), transparent 70%), var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-12) var(--s-8); box-shadow: var(--sh-md); display: grid; justify-items: center; gap: var(--s-3); }
.lock-art { width: 64px; height: 64px; border-radius: 18px; background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue); display: grid; place-items: center; margin-bottom: var(--s-2); }
.lock-art svg { width: 30px; height: 30px; }
.member-locked p { color: var(--ink-2); max-width: 32rem; }
.gsi-wrap { min-height: 44px; display: flex; justify-content: center; }
.gsi-wrap:empty { display: none; }
.member-locked [data-login] { margin-top: var(--s-2); }
.member-dash { display: grid; gap: var(--s-5); }
.member-hello { display: flex; align-items: center; gap: var(--s-4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-5) var(--s-6); flex-wrap: wrap; }
.member-hello img { width: 56px; height: 56px; border-radius: 16px; background: var(--blue-100); }
.member-hello > div { flex: 1; min-width: 200px; }
.member-hello h3 { font-size: 1.25rem; }
.member-hello small { color: var(--muted); font-size: var(--t-xs); }
.member-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.mcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-6); display: grid; gap: .6rem; align-content: start; transition: border-color var(--d-fast), transform var(--d-base) var(--ease), box-shadow var(--d-base); }
.mcard:hover { border-color: var(--blue-200); transform: translateY(-3px); box-shadow: var(--sh-md); }
.mcard .ico { grid-row: auto; }
.mcard p { color: var(--ink-2); font-size: var(--t-sm); }
.mcard .btn { justify-self: start; margin-top: .3rem; }
.prog-bar { height: 8px; border-radius: var(--r-full); background: var(--blue-50); border: 1px solid var(--blue-100); overflow: hidden; }
.prog-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--sky)); transition: width .6s var(--ease); }
.progress-card small { color: var(--muted); font-size: var(--t-xs); }
.prog-list { display: grid; gap: .3rem; margin-top: .3rem; }
.prog-list label { display: flex; align-items: center; gap: .55rem; font-size: var(--t-sm); color: var(--ink-2); cursor: pointer; padding: .3rem .4rem; border-radius: var(--r-sm); }
.prog-list label:hover { background: var(--blue-50); }
.prog-list input { width: 16px; height: 16px; accent-color: var(--blue); }
.prog-list input:checked + span, .prog-list label:has(input:checked) { color: var(--blue-700); text-decoration: line-through; text-decoration-color: var(--blue-200); }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--s-4); }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(3,5,10,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(100%, 26rem); max-height: calc(100vh - 2 * var(--s-4)); max-height: calc(100dvh - 2 * var(--s-4)); overflow: hidden auto; overscroll-behavior: contain; background: var(--pop); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-8) var(--s-6) var(--s-6); text-align: center; box-shadow: var(--sh-xl); display: grid; gap: var(--s-3); justify-items: center; animation: fadeUp .35s var(--ease); }
.modal-card p { color: var(--ink-2); font-size: var(--t-sm); }
.modal-card .fine a { color: var(--blue); text-decoration: underline; }
.modal-logo { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px rgba(10,22,40,.25); }
.modal-x { position: absolute; top: .6rem; inset-inline-end: .6rem; width: 36px; height: 36px; border: 0; background: var(--surface-3); border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink-2); }
.modal-x:hover { background: var(--blue-50); color: var(--blue); }
body.modal-open { overflow: hidden; }
@media (max-width: 400px) { .modal-card { padding-inline: var(--s-3); } } /* le bouton Google (300 px) tient jusqu'à ~356 px */

.link-btn { background: none; border: 0; color: var(--blue); font-weight: 700; font-size: var(--t-sm); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: .2rem; }
.link-btn:hover { color: var(--blue-700); }
.user-menu { display: flex; align-items: center; gap: .6rem; }
.user-menu[hidden] { display: none; }

/* ---------- Application (/app) ---------- */
.app-body { background: var(--surface); }
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.app-side { position: sticky; top: 0; height: 100vh; background: var(--surface-2); border-inline-end: 1px solid var(--line); padding: var(--s-5) var(--s-4); display: flex; flex-direction: column; gap: var(--s-6); z-index: 80; }
.app-nav { display: grid; gap: .2rem; }
.app-nav a { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: var(--r-md); color: var(--ink-2); font-weight: 600; font-size: var(--t-base); transition: background var(--d-fast), color var(--d-fast); }
.app-nav a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.app-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.app-nav a.active { background: linear-gradient(135deg, #2f6fe8, #3b82f6 60%, #5aa2ff); color: #fff; box-shadow: 0 8px 22px rgba(59,130,246,.32); }
.app-nav a.active svg { opacity: 1; }
.app-side-foot { margin-top: auto; display: grid; gap: .5rem; }
.side-tg { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: var(--r-md); background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-700); font-weight: 700; font-size: var(--t-sm); }
.side-tg svg { width: 18px; height: 18px; }
.side-tg:hover { background: var(--blue-100); }
.side-back { color: var(--muted); font-size: var(--t-sm); padding: .3rem .9rem; }
.side-back:hover { color: var(--blue); }
.app-side-bg { position: fixed; inset: 0; background: rgba(3,5,10,.6); z-index: 75; }
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-top { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-8); background: rgba(7,10,18,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.app-top-title { flex: 1; min-width: 0; }
.app-eyebrow { margin-bottom: .2rem; padding: .2rem .6rem; font-size: var(--t-xs); }
.app-top h1 { font-family: var(--f-disp); font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.1; }
.app-burger { display: none; }
.app-content { padding: var(--s-8); max-width: 1100px; width: 100%; }
.welcome { display: flex; align-items: center; gap: var(--s-5); background: radial-gradient(600px 260px at 100% 0%, rgba(59,130,246,.16), transparent 70%), var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-6); margin-bottom: var(--s-6); box-shadow: var(--sh-md); flex-wrap: wrap; }
.welcome img { width: 64px; height: 64px; border-radius: 18px; background: var(--blue-100); box-shadow: 0 8px 20px rgba(10,22,40,.15); }
.welcome > div { flex: 1; min-width: 240px; }
.welcome h2 { font-family: var(--f-disp); font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: .3rem; }
.welcome p { color: var(--ink-2); }
.acard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-6); display: grid; gap: .5rem; align-content: start; }
.acard .tag { justify-self: start; }
.acard p { color: var(--ink-2); font-size: var(--t-sm); }
.acard .btn { justify-self: start; margin-top: .3rem; }
.settings { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-6); max-width: 40rem; display: grid; gap: .6rem; }
.settings h2 { font-family: var(--f-disp); font-size: 1.3rem; margin-bottom: .4rem; }
.settings-row { display: flex; justify-content: space-between; gap: var(--s-4); padding: .6rem 0; border-bottom: 1px solid var(--line-2); font-size: var(--t-sm); }
.settings-row span { color: var(--muted); }
.settings .fine a { color: var(--blue); text-decoration: underline; }
.settings .btn { justify-self: start; margin-top: .5rem; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .app-side { position: fixed; inset-inline-start: 0; top: 0; width: 280px; max-width: 85vw; transform: translateX(-105%); transition: transform var(--d-slow) var(--ease); box-shadow: var(--sh-xl); }
  .app-side.open { transform: none; }
  .app-burger { display: flex; }
  .app-top { padding: var(--s-3) var(--s-4); }
  .app-content { padding: var(--s-4); }
  .app-top h1 { font-size: 1.15rem; }
}

/* ---------- Pages légales ---------- */
.legal { max-width: 46rem; margin: 0 auto; padding: var(--s-16) var(--s-8) var(--s-24); }
.legal h1 { font-family: var(--f-disp); font-size: var(--t-h2); letter-spacing: -.03em; line-height: 1.1; margin-bottom: var(--s-2); }
.legal h2 { font-family: var(--f-disp); font-size: 1.25rem; margin: var(--s-8) 0 var(--s-3); }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; margin-bottom: var(--s-3); }
.legal ul { padding-inline-start: 1.2rem; list-style: disc; }
.legal-note { margin-top: calc(-1 * var(--s-4)); }
html[lang="fr"] .legal-note { display: none; }
.legal .fine { margin-bottom: var(--s-6); }
.legal a { color: var(--blue); text-decoration: underline; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .why .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3), .why .reveal:nth-child(3) { transition-delay: .2s; }
.why .reveal:nth-child(4) { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: 1fr; gap: var(--s-12); }
  .hero-copy { max-width: none; }
  #heroTerminal { transform: none; }
  .indi, .eco, .news { grid-template-columns: 1fr; }
  .why, .curriculum { grid-template-columns: repeat(2, 1fr); }
  .nav-btn-ghost { display: none; }
  .member-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav { padding: var(--s-2) var(--s-4); gap: var(--s-2); }
  .brand { font-size: 1rem; gap: .5rem; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--pop); flex-direction: column; padding: var(--s-3); border-bottom: 1px solid var(--line); gap: 2px; box-shadow: var(--sh-lg); }
  .nav-links.open a { padding: .8rem; min-height: 48px; display: flex; align-items: center; font-size: var(--t-lg); }
  .burger { display: flex; }
  #loginBtn { padding: .5rem .6rem; min-height: 40px; }
  #loginBtn svg { width: 20px; height: 20px; }
  #signupBtn, .app-link { display: none; }
  .btn-user span { display: none; }
  .btn-user { padding: .3rem; }
  .member-locked { padding: var(--s-8) var(--s-4); }
  .legal { padding: var(--s-8) var(--s-4) var(--s-16); }
  .hero { padding: var(--s-8) 0; }
  .hero-in, .sec, .foot { padding-inline: var(--s-4); }
  .cta-row .btn, .btn.big { width: 100%; justify-content: center; }
  .markets, .steps { grid-template-columns: 1fr; }
  .mod-panel { grid-template-columns: 1fr; padding: var(--s-5); }
  .term-chart { height: 240px; } .term-chart.tall { height: 280px; }
  .term-foot { grid-template-columns: repeat(2, 1fr); }
  .an-card { grid-template-columns: 1fr; }
  .tv-embed { height: 440px; } .news-feed { min-height: 520px; }
  .spark { grid-column: 1; grid-row: auto; width: 100%; }
  .sh { margin-bottom: var(--s-8); }
  .sec { padding-block: var(--s-16); }
  .cta { padding: var(--s-16) var(--s-4); }
  .mk:hover, .step:hover, .btn:hover, .cur-item:hover { transform: none; }
}
@media (max-width: 520px) {
  .why, .curriculum { grid-template-columns: 1fr; }
  .term-head { flex-direction: column; align-items: flex-start; }
  .price-box { text-align: start; }
  .steps { gap: var(--s-8); }
}
@media (max-width: 440px) {
  #loginBtn { font-size: 0; gap: 0; } /* icône seule : le libellé reste le nom accessible */
  .nav-legal .brand-name { display: none; } /* pages légales : le logo suffit, « Retour au site » reste lisible */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .draw .ln-price, .draw .ln-ema, .draw .ln-sma, .mk svg path.line, .spark path { stroke-dashoffset: 0; }
  .draw .marks circle, .draw .marks text, .draw .dash, .draw .box, .draw .ob, .draw .fvg, .draw .arrow, .draw .lbl { opacity: 1; }
  .draw .hbars rect { transform: none; }
}

/* ---------- Thème sombre : finitions ---------- */
html { background: var(--surface); }
::selection { background: rgba(59,130,246,.35); color: #fff; }
.ntf { border-top: 1px solid var(--line-2); }
.hero .orb { opacity: .75; }
.num { box-shadow: 0 0 0 6px rgba(59,130,246,.12), 0 0 28px rgba(59,130,246,.35); }
.tag { color: #8fb4ff; }
.link-btn, .legal a, .modal-card .fine a, .settings .fine a { color: #8fb4ff; }
.cta h2, .modal-card h3, .member-hello h3, .welcome h2 { color: #fff; }
.faq details[open] { background: linear-gradient(180deg, rgba(59,130,246,.08), rgba(255,255,255,.015)); }
.mk:hover, .mcard:hover, .an-card:hover { box-shadow: 0 24px 60px rgba(0,0,0,.45); }

/* ---------- Navigation : repli automatique (classes posées par app.js selon la place réelle) ---------- */
.nav.nav-tight .nav-btn-ghost { display: none; }
.nav.nav-compact .nav-links { display: none; }
.nav.nav-compact .burger { display: flex; }
.nav.nav-compact .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--pop); flex-direction: column; padding: var(--s-3); border-bottom: 1px solid var(--line); gap: 2px; box-shadow: var(--sh-lg); }
.nav.nav-compact .nav-links.open a { padding: .8rem; min-height: 48px; display: flex; align-items: center; font-size: var(--t-lg); }

/* ---------- Langues : sélecteur à drapeaux ---------- */
.lang-switch { position: relative; flex: none; }
.lang-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255,255,255,.04); color: var(--ink); font-weight: 700; font-size: var(--t-sm); cursor: pointer; transition: border-color var(--d-fast), background var(--d-fast); }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--blue-200); background: rgba(255,255,255,.08); }
.flag { width: 22px; height: 15px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.2); overflow: hidden; }
.lang-code { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; }
.lang-caret { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: transform var(--d-base) var(--ease); }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 220px; margin: 0; padding: .35rem; list-style: none; display: grid; gap: 2px; background: var(--pop); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-lg); z-index: 90; animation: fadeUp .2s var(--ease); }
.lang-menu button { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 44px; padding: .55rem .7rem; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); font-size: var(--t-sm); font-weight: 600; text-align: start; cursor: pointer; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: rgba(255,255,255,.06); color: #fff; }
.lang-menu [aria-selected="true"] button { background: var(--blue-50); color: #fff; }
.lang-menu button[lang="ar"] { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; font-size: var(--t-base); }
.lang-check { width: 16px; height: 16px; margin-inline-start: auto; fill: none; stroke: var(--sky-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .lang-code, .lang-caret { display: none; } .lang-btn { padding: .35rem .55rem; } }

/* ---------- Arabe : police, graisse et interlignage ---------- */
html[lang="ar"] { --f-body: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif; --f-disp: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif; }
html[lang="ar"] body { line-height: 1.75; }
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; }
html[lang="ar"] :is(h1, h2, h3, h4) { line-height: 1.4 !important; }
html[lang="ar"] .formula .f-desc { font-family: var(--f-body); font-size: var(--t-sm); }

/* ---------- Sens droite-à-gauche (arabe) ----------
   Mise en page en miroir grâce aux propriétés logiques ; graphiques, formules et
   bandeaux de cotations restent de gauche à droite (axe du temps). */
[dir="rtl"] :is(canvas, svg, .term-chart, .ticker, .eco-axis, .katex, .katex-display, .tv-embed) { direction: ltr; }
[dir="rtl"] .formula { direction: ltr; } /* sinon une formule large ne défile pas en arabe */
[dir="rtl"] .formula .f-desc { direction: rtl; }
[dir="rtl"] :is(.mono, .price, .chg, .kpi strong, .eco-val strong, .quant-stats b, .nav-badge, .mk-meta b) { unicode-bidi: plaintext; }
[dir="rtl"] svg:has(> path[d^="M5 12h14"]) { transform: scaleX(-1); }
[dir="rtl"] .feat:hover, [dir="rtl"] .eco-card:hover { transform: translateX(-4px); }
@media (min-width: 861px) {
  [dir="rtl"] .ntf-track::after { background: linear-gradient(270deg, var(--nt), var(--nt-soft), #8fb4ff); transform-origin: right; }
}
@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
  [dir="rtl"] #heroTerminal { transform: perspective(1400px) rotateY(4deg) rotateX(2deg); }
  [dir="rtl"] .ntf-window { transform: perspective(1400px) rotateY(6deg) rotateX(3deg); }
  [dir="rtl"] #heroTerminal:hover, [dir="rtl"] .ntf-window:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
}
@media (max-width: 900px) {
  [dir="rtl"] .app-side { transform: translateX(105%); }
  [dir="rtl"] .app-side.open { transform: none; }
}
/* ---------- Indicateurs gratuits pour NinjaTrader ---------- */
.fi { position: relative; }
.fi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-5); }
.fi-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  transition: transform var(--d-base) var(--ease), border-color var(--d-base), box-shadow var(--d-base);
}
.fi-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: linear-gradient(135deg, rgba(59,130,246,.9), transparent 42%, transparent 58%, rgba(236,72,153,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity var(--d-base);
}
.fi-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.fi-card:hover::before { opacity: 1; }
.fi-shot { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--panel); border-bottom: 1px solid var(--line-2); }
.fi-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.fi-card:hover .fi-shot img { transform: scale(1.06); }
.fi-sheen {
  position: absolute; inset: 0; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.14) 50%, transparent 62%);
}
.fi-card:hover .fi-sheen { animation: fiSheen 1.1s var(--ease) forwards; }
@keyframes fiSheen { to { transform: translateX(100%); } }
.fi-body { display: flex; flex-direction: column; gap: .5rem; padding: var(--s-4) var(--s-5) var(--s-5); flex: 1; }
.fi-body h3 { font-size: 1rem; line-height: 1.25; color: #fff; }
.fi-body > p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; flex: 1; }
.fi-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.fi-tags li { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--blue-300); background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--r-full); padding: .2rem .55rem; }
.fi-get { width: 100%; justify-content: center; margin-top: .3rem; }
.fi-foot { margin-top: var(--s-6); text-align: center; color: var(--muted); font-size: var(--t-xs); }
.fi-grid .reveal:nth-child(5n+2) { transition-delay: .06s; }
.fi-grid .reveal:nth-child(5n+3) { transition-delay: .12s; }
.fi-grid .reveal:nth-child(5n+4) { transition-delay: .18s; }
.fi-grid .reveal:nth-child(5n+5) { transition-delay: .24s; }

/* Modal de téléchargement en deux étapes */
.dl-card { width: min(100%, 30rem); text-align: start; justify-items: stretch; padding: 0; overflow: hidden; }
.dl-body { display: grid; gap: var(--s-3); justify-items: stretch; padding: var(--s-8) var(--s-6) var(--s-6); max-height: calc(100vh - 2 * var(--s-4) - 2px); max-height: calc(100dvh - 2 * var(--s-4) - 2px); overflow-y: auto; overscroll-behavior: contain; }
.dl-card .modal-x { inset-inline-end: 1.25rem; } /* laisse libre la barre de défilement sur ordinateur */
@media (max-width: 400px) { .dl-body { padding-inline: var(--s-3); } }
.dl-shot { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line-2); max-height: 190px; }
.dl-card h3 { color: #fff; font-size: 1.15rem; }
.dl-steps { display: grid; gap: .8rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.dl-step { display: grid; grid-template-columns: 30px 1fr; gap: .8rem; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255,255,255,.03); transition: opacity var(--d-base), border-color var(--d-base); }
.dl-step strong { display: block; color: #fff; font-size: .95rem; }
.dl-step p { color: var(--ink-2); font-size: var(--t-sm); margin: .2rem 0 .6rem; }
.dl-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-300); font-weight: 800; font-size: .85rem; }
.dl-step.done { border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.06); }
.dl-step.done .dl-n { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.4); color: #4ade80; font-size: 0; }
.dl-step.done .dl-n::after { content: "✓"; font-size: .9rem; }
.dl-step.locked { opacity: .55; }
.dl-step.locked .btn { pointer-events: none; }
.dl-step .btn { width: 100%; justify-content: center; }
.dl-note { display: block; margin-top: .55rem; color: var(--muted-2); font-size: 11px; line-height: 1.5; }
.dl-note a { color: var(--blue-300); text-decoration: underline; }
.dl-soon { color: var(--amber) !important; font-size: var(--t-sm); margin: 0 !important; }

@media (max-width: 860px) {
  .fi-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-4); }
  .fi-card:hover { transform: none; }
  .dl-shot { max-height: 150px; }
}
@media (prefers-reduced-motion: reduce) { .fi-card:hover .fi-shot img { transform: none; } .fi-sheen { display: none; } }
/* Paramètres d'un indicateur (fenêtre de téléchargement) */
.dl-params { border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255,255,255,.03); padding: 0 var(--s-4); }
.dl-params summary { cursor: pointer; list-style: none; font-weight: 700; font-size: var(--t-sm); color: #fff; padding: .7rem 0; display: flex; justify-content: space-between; align-items: center; }
.dl-params summary::-webkit-details-marker { display: none; }
.dl-params summary::after { content: "+"; font-family: var(--f-mono); color: var(--blue-300); font-size: 1.1rem; transition: transform var(--d-base) var(--ease); }
.dl-params[open] summary::after { transform: rotate(45deg); }
.dl-params ul { display: grid; gap: .35rem; padding: 0 0 var(--s-4); max-height: 260px; overflow: auto; }
.dl-params li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .8rem; align-items: baseline; font-size: var(--t-xs); color: var(--ink-2); padding: .3rem 0; border-bottom: 1px dashed var(--line-2); }
.dl-params li b { color: #fff; font-weight: 700; }
.dl-params li i { font-style: normal; font-family: var(--f-mono); color: var(--blue-300); white-space: nowrap; }
.dl-params li small { grid-column: 1 / -1; color: var(--muted); }
.dl-params .grp { grid-column: 1 / -1; margin-top: .4rem; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-300); border: 0; }

/* ==== Ajouts SEO (22 septembre 2026) : uniquement de nouvelles règles, ajoutées en fin de fichier ==== */
/* Sélecteur de langue en HTML statique : liens <a> avec le même rendu que les boutons */
.lang-menu a { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 44px; padding: .55rem .7rem; border-radius: var(--r-sm); color: var(--ink-2); font-size: var(--t-sm); font-weight: 600; text-align: start; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(255,255,255,.06); color: #fff; }
.lang-menu a[aria-current="page"] { background: var(--blue-50); color: #fff; }
.lang-menu a[lang="ar"] { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; font-size: var(--t-base); }
/* Liens vers la documentation des indicateurs, sous la section des indicateurs gratuits */
.fi-docs { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-8) var(--s-16); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.25rem; font-size: var(--t-sm); color: var(--muted); }
.fi-docs a { color: var(--blue-300); font-weight: 600; text-decoration: underline; text-decoration-color: var(--blue-100); text-underline-offset: 4px; }
.fi-docs a:hover { color: #fff; text-decoration-color: currentColor; }
@media (max-width: 860px) { .fi-docs { padding: 0 var(--s-4) var(--s-12); flex-direction: column; } }

/* ==== Performance (22 septembre 2026) : ajouts en fin de fichier uniquement ==== */
/* Les @font-face sont dans fonts.css, déclarés à un seul endroit : en double (ici et dans le CSS critique
   en ligne de l'accueil), les polices étaient réappliquées à l'arrivée de ce fichier et le texte se
   recomposait sous les yeux du lecteur (décalage CLS 0,165 mesuré sur mobile). */
/* Le hero (élément LCP) s'affiche dès le premier rendu, sans attendre le JavaScript ni l'animation d'apparition */
.hero .reveal { opacity: 1; transform: none; transition: none; }
/* Titres en Clash Display : l'interlettrage serré collait les mots (« etformationICT ») ; sections protégées exclues */
.h1, .sec:not(#indicateurs-gratuits) > .sh h2, .pg-hero h1, .pg-sec h2 { word-spacing: .07em; }
/* Bouton Google : hauteur fixe, sinon son enveloppe provisoire (~62 px) décalait la fenêtre pendant le rendu */
.gsi-wrap { height: 44px; overflow: hidden; align-items: center; }
/* Bandeau des cours : hauteur réservée avant son remplissage par le script (sinon les sections suivantes descendaient) */
.ticker-track { min-height: 22px; }
/* Ligne de copyright : --muted-2 tombait à 4,0:1 sur le fond sombre, sous le seuil WCAG AA */
.copy { color: var(--muted); }
.dl-note { color: var(--muted); }

/* ==== Refonte « finance premium » (23 septembre 2026) : thème clair blanc & bleu par défaut,
   thème sombre (= l'ancien site) via html[data-theme="dark"]. Ajouts en fin de fichier uniquement. ==== */

/* -- Jetons partagés : valeurs sombres sur :root (comme le reste de la feuille), valeurs claires plus bas -- */
:root {
  --f-disp: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text-grad: linear-gradient(92deg, #3b82f6 0%, #7cc4ff 100%);
  --accent-grad: linear-gradient(135deg, #2f6fe8 0%, #3b82f6 55%, #5aa2ff 100%);
  --glass: rgba(13, 19, 34, .62);
  --glass-line: rgba(96, 165, 250, .18);
  --glow: rgba(59, 130, 246, .35);
  --hero-bg: #050814;
  --band: #070a12;
  --nav-bg: rgba(7, 10, 18, .72);
  --cv-bg: #0a0e18; --cv-grid: rgba(255, 255, 255, .06); --cv-axis: #8a95ae; --cv-ink: #eef2fa;
  --cv-up: #22c55e; --cv-down: #f87171; --cv-a: #3b82f6; --cv-b: #38a3ff; --cv-c: #a78bfa; --cv-fill: rgba(59, 130, 246, .16);
}
html[lang="ar"] { --f-disp: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif; }

html:not([data-theme="dark"]) {
  color-scheme: light;
  --blue-50: rgba(37, 99, 235, .07); --blue-100: rgba(37, 99, 235, .14); --blue-200: rgba(37, 99, 235, .34); --blue-300: #1d4ed8;
  --blue: #2563eb; --blue-600: #1d4ed8; --blue-700: #1d4ed8; --blue-800: #1e3a8a; --blue-900: #eff5ff;
  --sky: #0284c7; --sky-2: #2563eb;
  --ink: #0a1628; --ink-2: #3a4a63; --muted: #5d6b82; --muted-2: #7d8aa0;
  --line: rgba(10, 22, 40, .09); --line-2: rgba(10, 22, 40, .06);
  --surface: #ffffff; --surface-2: #f5f8fd; --surface-3: rgba(10, 22, 40, .03);
  --card: linear-gradient(180deg, #ffffff, #fafcff);
  --panel: #ffffff; --pop: #ffffff;
  --navy: #f1f5fc; --navy-2: #e8eef9;
  --pos: #0f9d6a; --neg: #dc2f45; --amber: #c77700;
  --sh-sm: 0 1px 2px rgba(10, 22, 40, .06), 0 1px 1px rgba(10, 22, 40, .04);
  --sh-md: 0 1px 2px rgba(10, 22, 40, .05), 0 12px 32px -8px rgba(10, 22, 40, .12);
  --sh-lg: 0 2px 4px rgba(10, 22, 40, .04), 0 24px 56px -12px rgba(10, 22, 40, .18);
  --sh-xl: 0 4px 8px rgba(10, 22, 40, .04), 0 48px 96px -24px rgba(15, 40, 90, .25);
  --text-grad: linear-gradient(92deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
  --accent-grad: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  --glass: rgba(255, 255, 255, .74);
  --glass-line: rgba(37, 99, 235, .14);
  --glow: rgba(37, 99, 235, .22);
  --hero-bg: #f7faff;
  --band: #f5f8fd;
  --nav-bg: rgba(255, 255, 255, .78);
  --cv-bg: #ffffff; --cv-grid: rgba(10, 22, 40, .06); --cv-axis: #6b7a90; --cv-ink: #0a1628;
  --cv-up: #0f9d6a; --cv-down: #dc2f45; --cv-a: #2563eb; --cv-b: #0ea5e9; --cv-c: #7c3aed; --cv-fill: rgba(37, 99, 235, .10);
}
html:not([data-theme="dark"]), html:not([data-theme="dark"]) body { background: var(--surface); color: var(--ink); }
html:not([data-theme="dark"]) ::selection { background: rgba(37, 99, 235, .18); color: var(--ink); }

/* -- Bouton de thème (soleil / lune), présent dans toutes les barres de navigation -- */
.theme-toggle {
  position: relative; flex: none; width: 40px; height: 40px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-3); color: var(--ink);
  cursor: pointer; transition: border-color var(--d-fast), background var(--d-fast), transform var(--d-base) var(--ease);
}
.theme-toggle:hover { border-color: var(--blue-200); background: var(--blue-50); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease), opacity .3s var(--ease); }
.theme-toggle .ti-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
html[data-theme="dark"] .theme-toggle .ti-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
html[data-theme="dark"] .theme-toggle .ti-sun { opacity: 1; transform: none; }

/* -- Passage d'un thème à l'autre : fondu court, uniquement pendant le clic -- */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, fill .35s ease, stroke .35s ease, box-shadow .35s ease !important;
}
@media (prefers-reduced-motion: reduce) { html.theme-anim, html.theme-anim * { transition: none !important; } }

/* ==== Refonte « finance premium » — fragment A : bases, boutons, navigation, hero, terminal, cotations,
   sections, formation, indicateur, marchés, économie, actualités, étapes, FAQ, bandeau final, pied de page.
   Clair = html:not([data-theme="dark"]). Les améliorations communes (titres, reflets, survols) valent pour
   les deux thèmes. Sections protégées (indicateurs gratuits, NinjaTrader, barre flottante, téléchargement)
   exclues via :where(:not(... *)) : sélecteurs sans poids ajouté, rendu d'origine garanti. ==== */

/* ---------- Communs aux deux thèmes : typographie des titres ---------- */
.h1 { letter-spacing: -.045em; line-height: 1.02; }
.sh h2,
.cta h2 { letter-spacing: -.04em; line-height: 1.05; text-wrap: balance; }
.sh p { text-wrap: pretty; }
h3 { font-weight: 700; letter-spacing: -.02em; }
/* Satoshi est plus large que Clash Display : l'espacement des mots d'origine suffit */
.h1, .sec:not(#indicateurs-gratuits) > .sh h2 { word-spacing: .02em; }
/* mots en couleur : jeton --text-grad (identique à l'ancien dégradé dans le sombre) */
.grad, .brand-name span,
.sh h2 span { background-image: var(--text-grad); }

/* ---------- Communs : boutons (appui, reflet au survol) ---------- */
.btn:active { transform: translateY(0) scale(.98); }
:is(.btn-pri, .btn-white) { position: relative; isolation: isolate; overflow: hidden; }
:is(.btn-pri, .btn-white)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 32%, rgba(255,255,255,.34) 47%, rgba(255,255,255,.1) 55%, transparent 68%);
  transform: translateX(-115%); transition: transform .75s var(--ease);
}
.btn-white::after {
  background: linear-gradient(110deg, transparent 32%, rgba(37,99,235,.14) 48%, transparent 66%);
}
:is(.btn-pri, .btn-white):hover::after { transform: translateX(115%); }

/* ---------- Communs : survol des cartes (souris uniquement, pas sur mobile) ---------- */
.step.in, .why-item.in {
  transition: opacity .7s var(--ease), transform .5s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
@media (hover: hover) and (min-width: 861px) {
  .step:hover, .why-item:hover, .cur-item:hover { transform: translateY(-4px); border-color: var(--blue-200); }
  .step:hover, .why-item:hover { box-shadow: var(--sh-lg); }
}

/* ---------- Communs : lien de navigation (trait sous le lien actif ou survolé) ---------- */
@media (min-width: 861px) {
  .nav:not(.nav-compact) .nav-links a { position: relative; }
  .nav:not(.nav-compact) .nav-links a::after {
    content: ""; position: absolute; inset-inline: .8rem; bottom: .3rem; height: 2px; border-radius: 2px;
    background: var(--accent-grad); opacity: 0; transform: scaleX(.3); transition: transform var(--d-base) var(--ease), opacity var(--d-base) var(--ease);
  }
  .nav:not(.nav-compact) .nav-links a:is(:hover, .active)::after { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.btn-pri, .btn-white)::after { display: none; }
}
/* Téléphones : la barre porte 4 boutons (connexion, thème, langue, menu), on resserre pour que le nom
   de la marque ne touche jamais les boutons (390 px, et 360 px sur les petits Android) */
@media (max-width: 440px) {
  .nav { gap: .375rem; }
  .nav-right { gap: .375rem; }
  .nav .brand { gap: .45rem; }
}
@media (max-width: 380px) {
  .nav { padding-inline: var(--s-3); }
  .nav .brand-mark { width: 30px; height: 30px; }
  .nav .brand-name { font-size: .875rem; }
}

/* =====================================================================================
   THÈME CLAIR
   ===================================================================================== */

/* ---------- Boutons ---------- */
html:not([data-theme="dark"]) .btn-pri {
  background: var(--accent-grad); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(29,78,216,.28), 0 8px 22px -8px rgba(37,99,235,.6);
}
html:not([data-theme="dark"]) .btn-pri:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 45%, #2563eb 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 4px rgba(29,78,216,.22), 0 16px 32px -10px rgba(37,99,235,.62);
}
html:not([data-theme="dark"]) :is(.btn-gh, .btn-g) {
  background: #fff; color: var(--ink); border: 1px solid rgba(10,22,40,.12); box-shadow: 0 1px 2px rgba(10,22,40,.06);
}
html:not([data-theme="dark"]) :is(.btn-gh, .btn-g):hover {
  background: #fff; color: var(--blue-600); border-color: rgba(37,99,235,.38);
  box-shadow: 0 1px 2px rgba(10,22,40,.05), 0 10px 24px -10px rgba(37,99,235,.35);
}
html:not([data-theme="dark"]) .btn-white {
  background: #fff; color: #0b2a6b; border: 1px solid rgba(10,22,40,.08);
  box-shadow: 0 1px 2px rgba(10,22,40,.18), 0 14px 34px -12px rgba(10,22,40,.45);
}
html:not([data-theme="dark"]) .btn-white:hover { background: #f3f7ff; }
/* bouton contour : blanc sur le bandeau bleu, encre ailleurs */
html:not([data-theme="dark"]) .btn-outline:where(:not(.cta *)) { color: var(--ink); border-color: rgba(10,22,40,.22); }
html:not([data-theme="dark"]) .btn-outline:where(:not(.cta *)):hover { color: var(--blue-600); border-color: var(--blue); background: var(--blue-50); }

/* ---------- Pastilles, étiquettes ---------- */
html:not([data-theme="dark"]) .eyebrow {
  color: var(--blue-600); background: linear-gradient(180deg, #fff, #f5f8ff); border-color: rgba(37,99,235,.16);
  box-shadow: 0 1px 2px rgba(10,22,40,.04), 0 6px 16px -8px rgba(37,99,235,.28);
}
html:not([data-theme="dark"]) .chip { color: var(--blue-600); box-shadow: inset 0 0 0 1px var(--blue-100); }
html:not([data-theme="dark"]) .tag { color: var(--blue-600); }
html:not([data-theme="dark"]) .fine.light { color: rgba(255,255,255,.88); }

/* ---------- Navigation : verre blanc ---------- */
html:not([data-theme="dark"]) .nav { background: var(--nav-bg); backdrop-filter: blur(18px) saturate(1.8); -webkit-backdrop-filter: blur(18px) saturate(1.8); }
html:not([data-theme="dark"]) .nav.small { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(10,22,40,.02), 0 10px 30px -16px rgba(10,22,40,.2); }
html:not([data-theme="dark"]) .brand-mark { box-shadow: 0 1px 2px rgba(10,22,40,.12), 0 6px 14px -6px rgba(10,22,40,.35); }
html:not([data-theme="dark"]) .nav-links a:is(:hover, .active) { background: rgba(37,99,235,.06); color: var(--ink); }
html:not([data-theme="dark"]) .nav-links a.active { color: var(--blue-600); }
html:not([data-theme="dark"]) .nav-links.open { background: rgba(255,255,255,.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 24px 48px -20px rgba(10,22,40,.28); }
html:not([data-theme="dark"]) .burger { background: #fff; border-color: rgba(10,22,40,.12); box-shadow: 0 1px 2px rgba(10,22,40,.05); }

/* ---------- Hero : fond clair lumineux ---------- */
html:not([data-theme="dark"]) .hero {
  background:
    radial-gradient(1000px 520px at 82% -8%, rgba(37,99,235,.13), transparent 62%),
    radial-gradient(760px 460px at -6% 105%, rgba(14,165,233,.09), transparent 60%),
    linear-gradient(180deg, var(--hero-bg) 0%, #fff 100%);
}
html:not([data-theme="dark"]) .hero .orb { opacity: .4; }
html:not([data-theme="dark"]) .grid-lines { opacity: .75; -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 75%); }
html:not([data-theme="dark"]) .h1 { color: var(--ink); }

/* ---------- Terminal (aperçu produit) : fenêtre de verre blanc ---------- */
html:not([data-theme="dark"]) .terminal {
  background: rgba(255,255,255,.92); border-color: rgba(10,22,40,.09);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 0 0 5px rgba(255,255,255,.55), 0 0 0 6px rgba(37,99,235,.07), 0 1px 2px rgba(10,22,40,.05),
    0 14px 30px -14px rgba(10,22,40,.14), 0 44px 90px -28px rgba(15,40,90,.28);
}
html:not([data-theme="dark"]) .term-bar {
  background: linear-gradient(180deg, #fcfdff, #f4f7fc); border-bottom-color: var(--line);
}
html:not([data-theme="dark"]) .tdot { box-shadow: inset 0 0 0 .5px rgba(10,22,40,.18); }
html:not([data-theme="dark"]) .live { color: var(--blue-600); }
html:not([data-theme="dark"]) .live i { background: #10b981; }
html:not([data-theme="dark"]) :is(.term-modes, .eco-tabs) button { background: #fff; border-color: rgba(10,22,40,.1); color: var(--ink-2); }
html:not([data-theme="dark"]) :is(.term-modes, .eco-tabs) button:hover { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue-600); }
html:not([data-theme="dark"]) :is(.term-modes, .eco-tabs) button[aria-selected="true"] {
  background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 14px -6px rgba(37,99,235,.6);
}
html:not([data-theme="dark"]) .term-chart { background: var(--cv-bg); }
html:not([data-theme="dark"]) .term-foot { background: linear-gradient(180deg, #fff, #fafcff); }
/* vert / rouge assombris pour rester lisibles (AA) sur fond blanc */
html:not([data-theme="dark"]) :is(.chg.up, .sig) { color: #047857; }
html:not([data-theme="dark"]) :is(.chg.down, .sig.sell) { color: #be123c; }

/* ---------- Bandeau des cours ---------- */
html:not([data-theme="dark"]) .ticker { background: #fff; border-block-color: var(--line); }
html:not([data-theme="dark"]) .ticker::before { background: linear-gradient(90deg, #fff 15%, rgba(255,255,255,0)); }
html:not([data-theme="dark"]) .ticker::after { background: linear-gradient(270deg, #fff 15%, rgba(255,255,255,0)); }
html:not([data-theme="dark"]) .tk .c.up { color: #047857; background: rgba(15,157,106,.1); }
html:not([data-theme="dark"]) .tk .c.down { color: #be123c; background: rgba(220,47,69,.08); }

/* ---------- Sections ---------- */
html:not([data-theme="dark"]) .sec.alt {
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(37,99,235,.07), transparent 60%),
    radial-gradient(700px 380px at 6% 100%, rgba(14,165,233,.05), transparent 60%),
    var(--surface-2);
}
html:not([data-theme="dark"]) .sh h2 { color: var(--ink); }

/* ---------- Formation (modules) ---------- */
html:not([data-theme="dark"]) .modules { border-color: rgba(10,22,40,.08); box-shadow: var(--sh-lg); }
html:not([data-theme="dark"]) .mod-tabs { background: linear-gradient(180deg, #fbfcfe, #f6f9fd); }
html:not([data-theme="dark"]) .mod-tabs button[aria-selected="true"] { color: var(--blue-600); border-bottom-color: var(--blue); background: #fff; }
html:not([data-theme="dark"]) .mod-fig {
  background: radial-gradient(420px 220px at 80% 0%, rgba(37,99,235,.06), transparent 70%), #fbfcff;
  border-color: rgba(10,22,40,.07); box-shadow: inset 0 1px 0 #fff;
}

/* ---------- Cartes : fond blanc, ombre douce, survol bleuté ---------- */
html:not([data-theme="dark"]) :is(.cur-item, .feat, .mk, .eco-card, .an-card, .step, .why-item) {
  border-color: rgba(10,22,40,.08); box-shadow: var(--sh-sm);
}
html:not([data-theme="dark"]) :is(.cur-item, .feat, .eco-card) { transition: border-color var(--d-fast), transform var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease); }
html:not([data-theme="dark"]) :is(.cur-item, .feat, .mk, .eco-card, .an-card, .step, .why-item):hover {
  border-color: rgba(37,99,235,.3); box-shadow: 0 1px 2px rgba(10,22,40,.04), 0 20px 44px -18px rgba(37,99,235,.32);
}
html:not([data-theme="dark"]) .ico { background: linear-gradient(180deg, #eef4ff, #fff); border-color: rgba(37,99,235,.18); box-shadow: 0 4px 10px -4px rgba(37,99,235,.3); }
html:not([data-theme="dark"]) .num { background: var(--accent-grad); box-shadow: 0 0 0 6px rgba(37,99,235,.08), 0 10px 22px -6px rgba(37,99,235,.55); }

/* ---------- Économie ---------- */
html:not([data-theme="dark"]) #ecoSvg rect.neg { fill: #93b4f8; }
html:not([data-theme="dark"]) .tv-placeholder { background: radial-gradient(520px 260px at 50% 0%, rgba(37,99,235,.07), transparent 70%), #fbfcff; }

/* ---------- FAQ ---------- */
html:not([data-theme="dark"]) .faq details { background: #fff; border-color: rgba(10,22,40,.08); box-shadow: var(--sh-sm); transition: border-color var(--d-fast), box-shadow var(--d-base) var(--ease); }
html:not([data-theme="dark"]) .faq details:hover { border-color: rgba(37,99,235,.24); }
html:not([data-theme="dark"]) .faq details[open] {
  background: linear-gradient(180deg, rgba(37,99,235,.045), rgba(255,255,255,0) 55%), #fff;
  border-color: var(--blue-200); box-shadow: var(--sh-md);
}
html:not([data-theme="dark"]) .faq summary { transition: color var(--d-fast); }
html:not([data-theme="dark"]) .faq summary:hover { color: var(--blue-600); }
html:not([data-theme="dark"]) .faq summary::after {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-600); font-size: 1.25rem; font-weight: 500; line-height: 1;
}
html:not([data-theme="dark"]) .faq p a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Bandeau final (#rejoindre) : grande carte bleue ---------- */
html:not([data-theme="dark"]) .cta {
  margin: 0 max(var(--s-6), calc(50% - 680px)) var(--s-12); border: 0; border-radius: 32px; color: #fff;
  background:
    radial-gradient(700px 380px at 12% 0%, rgba(255,255,255,.2), transparent 60%),
    radial-gradient(640px 420px at 92% 110%, rgba(56,189,248,.5), transparent 62%),
    linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 48%, #2563eb 100%);
  box-shadow: 0 2px 4px rgba(29,78,216,.12), 0 40px 90px -36px rgba(29,78,216,.65);
}
html:not([data-theme="dark"]) .cta::before { background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); }
html:not([data-theme="dark"]) .cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
html:not([data-theme="dark"]) .cta h2 { color: #fff; }
html:not([data-theme="dark"]) .cta h2 span { background-image: linear-gradient(92deg, #e3f0ff 0%, #9fd4ff 100%); }
html:not([data-theme="dark"]) .cta > .cta-in > p { color: rgba(255,255,255,.9); }
html:not([data-theme="dark"]) .cta-logo { border-color: rgba(255,255,255,.35); box-shadow: 0 18px 40px -12px rgba(8,20,60,.6); }
@media (max-width: 860px) {
  html:not([data-theme="dark"]) .cta { margin: 0 var(--s-3) var(--s-8); border-radius: 24px; }
}

/* ---------- Pied de page ---------- */
html:not([data-theme="dark"]) .fn a { transition: color var(--d-fast); }

/* ==== Refonte « finance premium » — fragment B : Quant, points de contact NinjaTrader de l'application,
   disclaimers, apparition, menu mobile, finitions, sélecteur de langue. Thème clair sous
   html:not([data-theme="dark"]) ; le sombre garde son rendu (seules les micro-animations sont communes).
   Sections protégées (#indicateurs-gratuits, .fi-docs, #plateforme, #ntSticky, #dlModal) jamais visées. ==== */

/* ---------- Quant : commun aux deux thèmes ---------- */
.quant-info h3, .qcard h3 { font-weight: 700; letter-spacing: -.022em; }
.quant-stats { font-variant-numeric: tabular-nums; }
.quant-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
/* carte : filet dégradé qui se dessine au survol */
.qcard { position: relative; overflow: hidden; transition: border-color var(--d-base) var(--ease), transform var(--d-slow) var(--ease), box-shadow var(--d-slow) var(--ease); }
.qcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--accent-grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); pointer-events: none; }
[dir="rtl"] .qcard::before { transform-origin: right; }
.qcard:hover::before { transform: scaleX(1); }
/* apparition en cascade des quatre cartes (animation, pour ne pas retarder le survol ensuite) */
@keyframes qcIn { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: no-preference) {
  .quant-grid.reveal { transform: none; }
  .quant-grid.reveal:not(.in) .qcard { opacity: 0; }
  .quant-grid.reveal.in .qcard { animation: qcIn .75s var(--ease) backwards; }
  .quant-grid.reveal.in .qcard:nth-child(2) { animation-delay: .08s; }
  .quant-grid.reveal.in .qcard:nth-child(3) { animation-delay: .16s; }
  .quant-grid.reveal.in .qcard:nth-child(4) { animation-delay: .24s; }
}

/* ---------- Quant : thème clair ---------- */
html:not([data-theme="dark"]) .quant {
  background: #fff; border-color: var(--line); border-radius: 24px;
  box-shadow: 0 1px 2px rgba(10, 22, 40, .04), 0 32px 64px -28px rgba(15, 40, 90, .22);
}
/* onglets en contrôle segmenté */
html:not([data-theme="dark"]) .quant-tabs { gap: 4px; padding: 5px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; }
html:not([data-theme="dark"]) .quant > .quant-tabs { margin: var(--s-4) var(--s-6) 0; }
html:not([data-theme="dark"]) .quant-tabs button {
  margin: 0; border: 0; border-radius: 10px; padding: .7rem 1rem; color: var(--muted); font-weight: 600;
  transition: color var(--d-fast), background-color var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease);
}
html:not([data-theme="dark"]) .quant-tabs button:hover { color: var(--ink); background: rgba(255, 255, 255, .75); }
html:not([data-theme="dark"]) .quant-tabs button[aria-selected="true"] {
  color: var(--blue-600); background: #fff; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, .14), 0 1px 2px rgba(10, 22, 40, .06), 0 6px 14px -6px rgba(37, 99, 235, .35);
}
html:not([data-theme="dark"]) .quant-term { box-shadow: 0 1px 2px rgba(10, 22, 40, .05), 0 12px 28px -18px rgba(15, 40, 90, .25); }
html:not([data-theme="dark"]) .quant-stats { background: var(--surface-2); border-top: 1px solid var(--line); color: var(--muted); }
html:not([data-theme="dark"]) .quant-stats span { border-bottom-color: rgba(10, 22, 40, .1); }
html:not([data-theme="dark"]) .quant-stats b { color: var(--ink); }
/* formule : encart bleuté, encre marine lisible */
html:not([data-theme="dark"]) .formula {
  background: linear-gradient(180deg, #f9fbff, #f1f6fe); border-color: rgba(37, 99, 235, .14); color: #10286a;
  box-shadow: inset 0 1px 0 #fff;
}
html:not([data-theme="dark"]) .formula .f-desc { color: var(--muted); }
html:not([data-theme="dark"]) .qcard { background: #fff; border-color: var(--line); box-shadow: var(--sh-sm); }
html:not([data-theme="dark"]) .qcard:hover {
  transform: translateY(-4px); border-color: rgba(37, 99, 235, .28);
  box-shadow: 0 2px 4px rgba(10, 22, 40, .04), 0 22px 44px -18px rgba(37, 99, 235, .32);
}
html:not([data-theme="dark"]) .cur-item.quant-item {
  border-color: rgba(37, 99, 235, .28);
  background: linear-gradient(135deg, rgba(37, 99, 235, .09), rgba(14, 165, 233, .04) 55%, #fff);
}
@media (max-width: 860px) {
  html:not([data-theme="dark"]) .quant > .quant-tabs { margin: var(--s-3) var(--s-3) 0; }
  html:not([data-theme="dark"]) .quant-tabs button { padding: .65rem .9rem; }
}

/* ---------- Points de contact NinjaTrader dans l'application (hors section protégée) : version claire,
   l'orange NinjaTrader reste la signature ---------- */
html:not([data-theme="dark"]) :is(.nt-card, .acard.nt-dash, .nt-callout) {
  background: radial-gradient(520px 240px at 100% 0%, rgba(255, 74, 18, .1), transparent 70%), linear-gradient(180deg, #fff, #fffaf7);
  border: 1px solid rgba(255, 74, 18, .2); color: var(--ink);
  box-shadow: 0 1px 2px rgba(10, 22, 40, .04), 0 18px 40px -22px rgba(255, 74, 18, .35);
}
html:not([data-theme="dark"]) :is(.nt-card h3, .acard.nt-dash h3, .nt-callout strong) { color: var(--ink); }
html:not([data-theme="dark"]) :is(.nt-card p, .acard.nt-dash p, .nt-callout p) { color: var(--ink-2); }
html:not([data-theme="dark"]) :is(.nt-card, .acard.nt-dash) .ntf-fine, html:not([data-theme="dark"]) .nt-callout small { color: var(--muted); }
html:not([data-theme="dark"]) .nt-card .ntf-fine a { color: var(--ink-2); }
html:not([data-theme="dark"]) .acard.nt-dash .tag { background: rgba(255, 74, 18, .1); color: #c2410c; }
html:not([data-theme="dark"]) .nt-card-visual { box-shadow: 0 1px 2px rgba(10, 22, 40, .06), 0 20px 40px -18px rgba(10, 22, 40, .35); }

/* ---------- Disclaimers : encart discret en thème clair ---------- */
.disclaimers h2 { letter-spacing: -.01em; }
html:not([data-theme="dark"]) .disclaimers {
  margin-top: var(--s-10); padding: var(--s-10) var(--s-10) var(--s-6);
  border: 1px solid var(--line); border-radius: 24px;
  background: radial-gradient(640px 180px at 50% 0%, rgba(37, 99, 235, .06), transparent 70%), var(--surface-2);
}
html:not([data-theme="dark"]) .disclaimers h2 { display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--ink); }
html:not([data-theme="dark"]) .disclaimers h2::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-100);
}
html:not([data-theme="dark"]) .disclaimers p { line-height: 1.75; }
html:not([data-theme="dark"]) .disclaimers p strong { color: var(--ink); }
@media (max-width: 860px) {
  html:not([data-theme="dark"]) .disclaimers { padding: var(--s-8) var(--s-5) var(--s-4); border-radius: 18px; }
}

/* ---------- Menu mobile (et menu replié sur ordinateur) ---------- */
/* commun : le panneau part du bord (la marge des liens le décalait de 8 px), défile s'il est trop haut,
   et descend en fondu avec ses liens en cascade */
.nav-links.open { margin-inline-start: 0; max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
@keyframes navDrop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes navItem { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: no-preference) {
  .nav-links.open { animation: navDrop .35s var(--ease); }
  .nav-links.open a { animation: navItem .45s var(--ease) backwards; }
  .nav-links.open a:nth-child(2) { animation-delay: .025s; } .nav-links.open a:nth-child(3) { animation-delay: .05s; }
  .nav-links.open a:nth-child(4) { animation-delay: .075s; } .nav-links.open a:nth-child(5) { animation-delay: .1s; }
  .nav-links.open a:nth-child(6) { animation-delay: .125s; } .nav-links.open a:nth-child(7) { animation-delay: .15s; }
  .nav-links.open a:nth-child(8) { animation-delay: .175s; } .nav-links.open a:nth-child(n+9) { animation-delay: .2s; }
}
/* clair : feuille blanche opaque (un flou imbriqué dans celui de la barre laissait transparaître la page),
   liens en encre, pastille bleue au survol, chevron discret */
html:not([data-theme="dark"]) :is(.nav-links.open, .nav.nav-compact .nav-links.open) {
  background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: 1px solid var(--line); padding: var(--s-2) var(--s-3) var(--s-3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 60px -24px rgba(10, 22, 40, .28);
}
html:not([data-theme="dark"]) :is(.nav-links.open, .nav.nav-compact .nav-links.open) a {
  gap: .75rem; border-radius: 12px; color: var(--ink); font-weight: 600; letter-spacing: -.01em;
  transition: background-color var(--d-fast), color var(--d-fast);
}
html:not([data-theme="dark"]) :is(.nav-links.open, .nav.nav-compact .nav-links.open) a::after {
  content: ""; flex: none; margin-inline-start: auto; width: 7px; height: 7px; border-top: 1.6px solid currentColor; border-inline-end: 1.6px solid currentColor;
  transform: rotate(45deg); opacity: .35; transition: transform var(--d-base) var(--ease), opacity var(--d-fast);
}
[dir="rtl"]:not([data-theme="dark"]) :is(.nav-links.open, .nav.nav-compact .nav-links.open) a::after { transform: rotate(-45deg); }
html:not([data-theme="dark"]) :is(.nav-links.open, .nav.nav-compact .nav-links.open) a:is(:hover, .active, :focus-visible) { background: var(--blue-50); color: var(--blue-600); }
html:not([data-theme="dark"]) :is(.nav-links.open, .nav.nav-compact .nav-links.open) a:hover::after { opacity: 1; transform: translateX(3px) rotate(45deg); }
[dir="rtl"]:not([data-theme="dark"]) :is(.nav-links.open, .nav.nav-compact .nav-links.open) a:hover::after { transform: translateX(-3px) rotate(-45deg); }
/* ordinateur, menu replié : carte flottante sur deux colonnes sous le bouton plutôt qu'une liste pleine largeur */
@media (min-width: 861px) {
  html:not([data-theme="dark"]) .nav.nav-compact .nav-links.open {
    left: auto; right: auto; inset-inline-end: var(--s-8); top: calc(100% + 8px);
    width: min(440px, calc(100vw - 2 * var(--s-8))); display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
    padding: var(--s-2); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 2px 4px rgba(10, 22, 40, .04), 0 32px 64px -20px rgba(10, 22, 40, .28);
  }
  html:not([data-theme="dark"]) .nav.nav-compact .nav-links.open a { min-height: 44px; padding: .6rem .8rem; font-size: var(--t-base); }
}

/* ---------- Finitions : équivalents clairs des retouches propres au sombre ----------
   Spécificité volontairement basse (:where) : une règle plus précise d'un autre fragment l'emporte. */
:where(html:not([data-theme="dark"])) .hero .orb { opacity: .55; }
:where(html:not([data-theme="dark"])) .num { box-shadow: 0 0 0 6px rgba(37, 99, 235, .08), 0 10px 22px -8px rgba(37, 99, 235, .55); }
:where(html:not([data-theme="dark"])) .tag { color: var(--blue-600); }
:where(html:not([data-theme="dark"])) .link-btn,
:where(html:not([data-theme="dark"])) .legal a,
:where(html:not([data-theme="dark"])) .modal-card .fine a,
:where(html:not([data-theme="dark"])) .settings .fine a { color: var(--blue); }
:where(html:not([data-theme="dark"])) .link-btn:hover { color: var(--blue-700); }
:where(html:not([data-theme="dark"])) .cta h2,
:where(html:not([data-theme="dark"])) .modal-card h3,
:where(html:not([data-theme="dark"])) .member-hello h3,
:where(html:not([data-theme="dark"])) .welcome h2 { color: inherit; }
:where(html:not([data-theme="dark"])) .faq details[open] { background: linear-gradient(180deg, rgba(37, 99, 235, .05), rgba(255, 255, 255, 0) 70%), #fff; }
:where(html:not([data-theme="dark"])) .mk:hover,
:where(html:not([data-theme="dark"])) .mcard:hover,
:where(html:not([data-theme="dark"])) .an-card:hover { box-shadow: 0 2px 4px rgba(10, 22, 40, .04), 0 24px 48px -18px rgba(37, 99, 235, .3); }

/* ---------- Sélecteur de langue : thème clair (assorti au bouton de thème) ---------- */
html:not([data-theme="dark"]) .lang-btn { background: var(--surface-3); border-color: var(--line); }
html:not([data-theme="dark"]) .lang-btn:hover, html:not([data-theme="dark"]) .lang-btn[aria-expanded="true"] { background: var(--blue-50); border-color: var(--blue-200); }
html:not([data-theme="dark"]) .flag { box-shadow: 0 0 0 1px rgba(10, 22, 40, .12); }
html:not([data-theme="dark"]) .lang-menu {
  background: #fff; border-color: var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 2px 4px rgba(10, 22, 40, .04), 0 24px 48px -14px rgba(10, 22, 40, .24);
}
html:not([data-theme="dark"]) .lang-menu :is(button, a) { color: var(--ink-2); transition: background-color var(--d-fast), color var(--d-fast); }
html:not([data-theme="dark"]) .lang-menu :is(button, a):is(:hover, :focus-visible) { background: var(--surface-2); color: var(--ink); }
html:not([data-theme="dark"]) .lang-menu [aria-selected="true"] button,
html:not([data-theme="dark"]) .lang-menu a[aria-current="page"] { background: var(--blue-50); color: var(--blue-600); }
/* commun : le menu s'ouvre depuis son bouton */
.lang-menu { transform-origin: top right; }
[dir="rtl"] .lang-menu { transform-origin: top left; }

/* -- Thème clair : connexion, espace membre (accueil), application /app, pages légales -- */
/* Menu utilisateur (barre de l'accueil et de l'application) */
html:not([data-theme="dark"]) .btn-user { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--sh-sm); transition: border-color var(--d-fast), box-shadow var(--d-fast); }
html:not([data-theme="dark"]) .btn-user:hover, html:not([data-theme="dark"]) .btn-user[aria-expanded="true"] { border-color: var(--blue-200); box-shadow: 0 0 0 3px var(--blue-50); }
html:not([data-theme="dark"]) .user-drop { border-color: var(--line); box-shadow: var(--sh-lg); }
html:not([data-theme="dark"]) .user-drop a:hover, html:not([data-theme="dark"]) .user-drop button:hover { background: var(--blue-50); color: var(--ink); }
html:not([data-theme="dark"]) .user-drop button, html:not([data-theme="dark"]) .user-drop button:hover { color: var(--neg); }

/* Espace membre de l'accueil : carte d'accès et tableau de bord du membre */
html:not([data-theme="dark"]) .member-locked { background: radial-gradient(640px 280px at 50% 0%, rgba(37,99,235,.09), transparent 70%), #fff; border-color: var(--line); box-shadow: var(--sh-lg); }
html:not([data-theme="dark"]) .lock-art { background: linear-gradient(180deg, #fff, var(--blue-900)); border-color: var(--blue-100); box-shadow: 0 10px 24px -8px rgba(37,99,235,.35); }
html:not([data-theme="dark"]) .member-hello { background: radial-gradient(520px 220px at 100% 0%, rgba(37,99,235,.08), transparent 70%), #fff; box-shadow: var(--sh-md); }
html:not([data-theme="dark"]) .member-hello h3 { color: var(--ink); }
html:not([data-theme="dark"]) .mcard { background: #fff; box-shadow: var(--sh-sm); }
html:not([data-theme="dark"]) .mcard:hover { border-color: var(--blue-200); box-shadow: 0 2px 4px rgba(10,22,40,.04), 0 24px 48px -16px rgba(37,99,235,.28); }
html:not([data-theme="dark"]) .prog-bar { background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.12); }
html:not([data-theme="dark"]) .prog-bar i { background: var(--accent-grad); }

/* Fenêtre de connexion (uniquement #loginModal : la fenêtre de téléchargement reste sombre, section protégée) */
html:not([data-theme="dark"]) #loginModal .modal-bg { background: rgba(10,22,40,.42); backdrop-filter: blur(8px) saturate(1.2); -webkit-backdrop-filter: blur(8px) saturate(1.2); }
html:not([data-theme="dark"]) #loginModal .modal-card { background: radial-gradient(420px 200px at 50% 0%, rgba(37,99,235,.08), transparent 70%), #fff; border-color: var(--line); box-shadow: var(--sh-xl); }
html:not([data-theme="dark"]) #loginModal .modal-card h3 { color: var(--ink); }
html:not([data-theme="dark"]) #loginModal .modal-card .fine a { color: var(--blue); }
html:not([data-theme="dark"]) #loginModal .modal-logo { box-shadow: 0 12px 28px -8px rgba(37,99,235,.4); }
html:not([data-theme="dark"]) #loginModal .modal-x:hover { background: var(--blue-50); color: var(--blue); }
html:not([data-theme="dark"]) .link-btn { color: var(--blue); }
html:not([data-theme="dark"]) .link-btn:hover { color: var(--blue-800); }

/* Application : fond bleu-gris très clair, barre latérale blanche, cartes blanches en relief léger */
html:not([data-theme="dark"]) .app-body { background: var(--surface-2); }
html:not([data-theme="dark"]) .app-side { background: #fff; border-inline-end-color: var(--line); }
html:not([data-theme="dark"]) .app-nav a:hover { background: var(--blue-50); color: var(--ink); }
html:not([data-theme="dark"]) .app-nav a.active { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 20px -6px rgba(37,99,235,.55), inset 0 1px 0 rgba(255,255,255,.18); }
html:not([data-theme="dark"]) .side-tg { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-600); }
html:not([data-theme="dark"]) .side-tg:hover { background: var(--blue-100); }
html:not([data-theme="dark"]) .app-side-bg { background: rgba(10,22,40,.36); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
html:not([data-theme="dark"]) .app-top { background: var(--nav-bg); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset; }
html:not([data-theme="dark"]) .welcome { background: radial-gradient(620px 280px at 100% 0%, rgba(37,99,235,.10), transparent 70%), radial-gradient(420px 220px at 0% 100%, rgba(14,165,233,.06), transparent 70%), #fff; border-color: var(--line); box-shadow: var(--sh-md); }
html:not([data-theme="dark"]) .welcome h2 { color: var(--ink); }
html:not([data-theme="dark"]) .welcome img { box-shadow: 0 10px 24px -8px rgba(37,99,235,.4); }
html:not([data-theme="dark"]) .acard { background: #fff; box-shadow: var(--sh-sm); }
html:not([data-theme="dark"]) .settings { background: #fff; box-shadow: var(--sh-sm); }
html:not([data-theme="dark"]) .settings-row { border-bottom-color: var(--line); }
html:not([data-theme="dark"]) .settings-row strong { color: var(--ink); }
html:not([data-theme="dark"]) .settings .fine a { color: var(--blue); }

/* Pages légales : liens bleus lisibles sur blanc */
html:not([data-theme="dark"]) .legal h1 { color: var(--ink); }
html:not([data-theme="dark"]) .legal a { color: var(--blue); text-decoration-color: var(--blue-200); text-underline-offset: 3px; }
html:not([data-theme="dark"]) .legal a:hover { color: var(--blue-800); text-decoration-color: currentColor; }

/* -- Indicateurs gratuits, section NinjaTrader, barre flottante, fenêtre de téléchargement (24/09/2026, demande du
      propriétaire : « changer la couleur, pas le contenu ») : thème clair blanc et bleu, l'orange NinjaTrader en
      accent. Le thème sombre garde exactement leur rendu d'origine. -- */
html:not([data-theme="dark"]) { --ntf-bg: #ffffff; --ntf-ink: #0a1628; --ntf-muted: #5d6b82; --ntf-line: rgba(10, 22, 40, .09); }

/* cartes des indicateurs : cartes blanches, visuels inchangés, liseré bleu → orange au survol */
html:not([data-theme="dark"]) .fi-card { background: #fff; box-shadow: var(--sh-sm); }
html:not([data-theme="dark"]) .fi-card::before { background: linear-gradient(135deg, rgba(37, 99, 235, .9), transparent 42%, transparent 58%, rgba(255, 74, 18, .65)); }
html:not([data-theme="dark"]) .fi-card:hover { box-shadow: 0 2px 4px rgba(10, 22, 40, .04), 0 28px 60px -16px rgba(37, 99, 235, .3); }
html:not([data-theme="dark"]) .fi-shot { background: #0a0e18; border-bottom-color: var(--line); }
html:not([data-theme="dark"]) .fi-body h3 { color: var(--ink); }
html:not([data-theme="dark"]) .fi-docs a:hover { color: var(--blue-600); }

/* section NinjaTrader : fond blanc réchauffé d'orange en haut, bleuté en bas */
html:not([data-theme="dark"]) .ntf { background: linear-gradient(180deg, #ffffff 0%, #fff8f3 50%, #f5f8ff 100%); }
html:not([data-theme="dark"]) .ntf-orb.a { background: radial-gradient(circle, rgba(255, 74, 18, .17), transparent 65%); }
html:not([data-theme="dark"]) .ntf-orb.b { background: radial-gradient(circle, rgba(37, 99, 235, .15), transparent 65%); }
html:not([data-theme="dark"]) .ntf-grid { background-image: linear-gradient(rgba(10, 22, 40, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 22, 40, .05) 1px, transparent 1px); }
html:not([data-theme="dark"]) :is(.ntf-badge, .ntf-proof li) { background: #fff; box-shadow: var(--sh-sm); }
html:not([data-theme="dark"]) :is(.ntf h2, .ntf-feat h3, .ntf-steps-title, .ntf-track h4, .ntf-final-copy h3) { color: var(--ink); }
html:not([data-theme="dark"]) .ntf h2 span { background-image: linear-gradient(92deg, #e03d09 0%, #ff4a12 55%, #ff7a3d 100%); }
html:not([data-theme="dark"]) :is(.ntf-lead, .ntf-feat p, .ntf-track p, .ntf-final-copy > p) { color: var(--ink-2); }
html:not([data-theme="dark"]) .ntf-link { color: var(--ink); border-bottom-color: rgba(10, 22, 40, .25); }
html:not([data-theme="dark"]) .ntf-link:hover { color: #c2410c; border-color: var(--nt); }
html:not([data-theme="dark"]) .ntf-fine { color: var(--muted); }
html:not([data-theme="dark"]) .ntf-fine a { color: var(--ink-2); }
/* la fenêtre de la plateforme reste une capture d'interface sombre, comme le vrai logiciel */
html:not([data-theme="dark"]) .ntf-window { --ntf-line: rgba(255, 255, 255, .09); --ntf-muted: #9aa6c0; color: #eef2fa;
  box-shadow: 0 4px 10px rgba(10, 22, 40, .06), 0 50px 100px -30px rgba(15, 40, 90, .38), 0 0 80px rgba(255, 74, 18, .12); }
/* bénéfices */
html:not([data-theme="dark"]) .ntf-feat { background: #fff; box-shadow: var(--sh-sm); }
html:not([data-theme="dark"]) .ntf-feat::after { background: radial-gradient(circle, rgba(255, 74, 18, .13), transparent 65%); }
html:not([data-theme="dark"]) .ntf-feat:hover { box-shadow: 0 2px 4px rgba(10, 22, 40, .04), 0 24px 50px -14px rgba(255, 74, 18, .28); }
html:not([data-theme="dark"]) .ntf-ico { background: rgba(255, 74, 18, .08); border-color: rgba(255, 74, 18, .25); }
html:not([data-theme="dark"]) .ntf-ico svg { stroke: #e03d09; }
html:not([data-theme="dark"]) .ntf-mod { color: var(--blue-600); }
html:not([data-theme="dark"]) .ntf-mod:hover { color: #c2410c; }
/* étapes */
html:not([data-theme="dark"]) .ntf-track::before { background: rgba(10, 22, 40, .1); }
html:not([data-theme="dark"]) .ntf-track::after { background: linear-gradient(90deg, var(--nt), var(--nt-soft), #2563eb); }
html:not([data-theme="dark"]) .ntf-track .n { background: #fff; color: var(--ink); box-shadow: 0 0 0 6px rgba(255, 74, 18, .1), 0 10px 24px rgba(255, 74, 18, .22); }
html:not([data-theme="dark"]) .ntf-track a { color: #c2410c; }
html:not([data-theme="dark"]) .ntf-track a:hover { color: var(--ink); }
/* appel final */
html:not([data-theme="dark"]) .ntf-final { background: linear-gradient(135deg, rgba(255, 74, 18, .08), rgba(37, 99, 235, .08)), #fff; border-color: rgba(10, 22, 40, .08); box-shadow: var(--sh-lg); }
html:not([data-theme="dark"]) .ntf-final::before { background: radial-gradient(600px 240px at 100% 0%, rgba(255, 74, 18, .12), transparent 70%); }
html:not([data-theme="dark"]) .ntf-final-visual { box-shadow: 0 24px 50px -16px rgba(10, 22, 40, .35); }

/* barre flottante */
html:not([data-theme="dark"]) .nt-sticky { background: rgba(255, 255, 255, .95); border-color: rgba(10, 22, 40, .1); box-shadow: 0 20px 50px -12px rgba(10, 22, 40, .3); color: var(--ink); }
html:not([data-theme="dark"]) .nt-sticky-txt { color: var(--ink-2); }
html:not([data-theme="dark"]) .nt-sticky-x { background: rgba(10, 22, 40, .06); color: var(--ink-2); }
html:not([data-theme="dark"]) .nt-sticky-x:hover { background: rgba(10, 22, 40, .12); color: var(--ink); }

/* fenêtre de téléchargement en deux étapes */
html:not([data-theme="dark"]) :is(.dl-card h3, .dl-step strong, .dl-params summary, .dl-params li b) { color: var(--ink); }
html:not([data-theme="dark"]) :is(.dl-step, .dl-params) { background: var(--surface-2); }
html:not([data-theme="dark"]) .dl-step.done { background: rgba(15, 157, 106, .06); border-color: rgba(15, 157, 106, .35); }
html:not([data-theme="dark"]) .dl-step.done .dl-n { background: rgba(15, 157, 106, .12); border-color: rgba(15, 157, 106, .4); color: #0f9d6a; }

/* ==== Bannière d'accueil « hx » : copie centrée, tableaux de bord flottants, terminal en aperçu produit.
   Valeurs sombres par défaut, claires sous html:not([data-theme="dark"]). Animations : transform/opacity/trait. ==== */
.hero.hx {
  --hx-bg: #050814; --hx-ink: #f3f6ff; --hx-ink2: #b9c3d9; --hx-mut: #8f9ab3; --hx-line: rgba(148, 178, 255, .12);
  --hx-grid: rgba(96, 165, 250, .075); --hx-a: #3b82f6; --hx-a2: #60a5fa; --hx-v: #818cf8; --hx-dn: #a78bfa;
  --hx-soft: rgba(59, 130, 246, .14); --hx-track: rgba(148, 178, 255, .12);
  --hx-tg: linear-gradient(92deg, #3b82f6 0%, #38bdf8 55%, #93c5fd 100%);
  --hx-pan: linear-gradient(180deg, rgba(20, 32, 68, .78), rgba(8, 13, 30, .86));
  --hx-pline: rgba(96, 165, 250, .26);
  --hx-psh: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 70px -24px rgba(0, 0, 0, .85), 0 0 44px -12px rgba(59, 130, 246, .55);
  --hx-glow1: rgba(37, 99, 235, .42); --hx-glow2: rgba(99, 102, 241, .22); --hx-hz: rgba(59, 130, 246, .3);
  --hx-w0: rgba(59, 130, 246, .1); --hx-w1: #7dd3fc; --hx-wo: .9;
  --hx-bid: rgba(59, 130, 246, .2); --hx-ask: rgba(244, 63, 94, .17); --hx-bidt: #bfdbfe; --hx-askt: #fecdd3;
  --hx-btn: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  --hx-bsh: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(147, 197, 253, .35), 0 12px 34px -8px rgba(59, 130, 246, .7);
  --hx-b2: rgba(8, 14, 32, .55); --hx-b2l: rgba(96, 165, 250, .42);
  --hx-frame: rgba(148, 178, 255, .05); --hx-fsh: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 90px -20px rgba(59, 130, 246, .4);
  position: relative; isolation: isolate; overflow: hidden; background: var(--hx-bg); color: var(--hx-ink);
  padding: clamp(40px, 4vw, 64px) 0 clamp(56px, 7vw, 104px);
}
html:not([data-theme="dark"]) .hero.hx {
  --hx-bg: #fff; --hx-ink: #0a1628; --hx-ink2: #3a4a63; --hx-mut: #5d6b82; --hx-line: rgba(10, 22, 40, .08);
  --hx-grid: rgba(37, 99, 235, .075); --hx-a: #2563eb; --hx-a2: #2563eb; --hx-v: #6366f1; --hx-dn: #9aa8c0;
  --hx-soft: rgba(37, 99, 235, .08); --hx-track: rgba(37, 99, 235, .1);
  --hx-tg: linear-gradient(92deg, #1d4ed8 0%, #2563eb 50%, #0369a1 100%);
  --hx-pan: linear-gradient(180deg, #fff, #f8fbff);
  --hx-pline: rgba(37, 99, 235, .14);
  --hx-psh: 0 1px 2px rgba(15, 40, 90, .06), 0 14px 30px -12px rgba(15, 40, 90, .16), 0 40px 80px -30px rgba(37, 99, 235, .3);
  --hx-glow1: rgba(37, 99, 235, .13); --hx-glow2: rgba(14, 165, 233, .1); --hx-hz: rgba(37, 99, 235, .08);
  --hx-w0: rgba(37, 99, 235, .08); --hx-w1: rgba(37, 99, 235, .5); --hx-wo: .75;
  --hx-bid: rgba(37, 99, 235, .1); --hx-ask: rgba(220, 47, 69, .08); --hx-bidt: #1d4ed8; --hx-askt: #be123c;
  --hx-bsh: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(15, 40, 90, .12), 0 12px 28px -8px rgba(37, 99, 235, .55);
  --hx-b2: #fff; --hx-b2l: rgba(10, 22, 40, .12);
  --hx-frame: rgba(255, 255, 255, .7); --hx-fsh: 0 2px 6px rgba(15, 40, 90, .05), 0 50px 100px -40px rgba(15, 40, 90, .35), 0 0 0 1px rgba(255, 255, 255, .6) inset;
}

/* -- Fond : lueurs qui dérivent, grille masquée, horizon -- */
.hx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-bg::before, .hx-bg::after { content: ""; position: absolute; border-radius: 50%; }
.hx-bg::before { width: 1100px; height: 760px; inset-inline-start: calc(50% - 550px); top: -380px;
  background: radial-gradient(closest-side, var(--hx-glow1), transparent); animation: hx-drift 16s ease-in-out infinite alternate; }
.hx-bg::after { width: 1400px; height: 520px; inset-inline-start: calc(50% - 700px); top: 470px;
  background: radial-gradient(closest-side, var(--hx-hz), transparent); animation: hx-drift 22s ease-in-out -8s infinite alternate-reverse; }
.hx-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--hx-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hx-grid) 1px, transparent 1px);
  background-size: 56px 56px; background-position: 50% -1px;
  -webkit-mask-image: radial-gradient(ellipse 58% 48% at 50% 34%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 58% 48% at 50% 34%, #000 25%, transparent 75%); }

/* -- Copie centrée -- */
.hx-stage { position: relative; z-index: 0; --hx-g: 352px; }
.hx-copy { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 680px; margin: 0 auto; padding: 0 24px; }
.hx-lock { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; font-family: var(--f-disp); font-weight: 700; font-size: 1.6rem; letter-spacing: -.03em; color: var(--hx-ink); }
.hx-lock img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 0 0 1px var(--hx-pline), 0 10px 24px -8px rgba(37, 99, 235, .55); }
.hx-lock b { font-weight: 700; background: var(--hx-tg); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx .eyebrow { background: var(--hx-soft); border-color: var(--hx-pline); color: var(--hx-ink2); }
html:not([data-theme="dark"]) .hx .eyebrow { background: #fff; box-shadow: 0 1px 2px rgba(15, 40, 90, .06), 0 6px 18px -10px rgba(37, 99, 235, .35); }
.hx-h1 { font-family: var(--f-disp); font-size: clamp(2.3rem, 1rem + 4.2vw, 4.3rem); font-weight: 700; line-height: 1.02; letter-spacing: -.045em;
  color: var(--hx-ink); margin: 0 0 20px; text-wrap: balance; }
.hx-h1 .grad { background: var(--hx-tg); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="ar"] .hx-h1 { line-height: 1.3; }
.hx-sub { max-width: 34rem; font-size: clamp(1.02rem, .94rem + .4vw, 1.22rem); line-height: 1.6; color: var(--hx-ink2); margin: 0 0 32px; text-wrap: pretty; }
.hx-cta { justify-content: center; gap: 12px; margin-bottom: 16px; }
.hx-cta .btn { min-height: 52px; padding: 0 1.5rem; border-radius: 13px; font-size: 1rem; letter-spacing: -.01em; }
.hx-cta .btn-pri { position: relative; overflow: hidden; background: var(--hx-btn); box-shadow: var(--hx-bsh); }
.hx-cta .btn-pri::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-110%); transition: transform .8s var(--ease); }
.hx-cta .btn-pri:hover { background: var(--hx-btn); box-shadow: var(--hx-bsh), 0 18px 40px -10px rgba(37, 99, 235, .6); }
.hx-cta .btn-pri:hover::after { transform: translateX(110%); }
.hx-cta .btn-pri svg { transition: transform var(--d-base) var(--ease); }
.hx-cta .btn-pri:hover svg { transform: translateX(3px); }
[dir="rtl"] .hx-cta .btn-pri:hover svg { transform: scaleX(-1) translateX(3px); }
.hx-cta .btn-g { background: var(--hx-b2); border: 1px solid var(--hx-b2l); color: var(--hx-ink); }
.hx-cta .btn-g:hover { background: var(--hx-soft); border-color: var(--hx-a); color: var(--hx-ink); }
html:not([data-theme="dark"]) .hx-cta .btn-g { box-shadow: 0 1px 2px rgba(15, 40, 90, .06), 0 8px 20px -12px rgba(15, 40, 90, .25); }
.hx .fine { color: var(--hx-mut); text-wrap: balance; }

/* -- Rangée d'atouts -- */
.hx-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(820px, 100vw - 48px); margin-top: 44px; }
.hx-feats li { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 10px; }
.hx-feats li + li { border-inline-start: 1px solid var(--hx-line); }
.hx-ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 9px; border-radius: 12px; color: var(--hx-a2);
  background: var(--hx-soft); border: 1px solid var(--hx-pline); box-shadow: 0 8px 18px -10px var(--hx-glow1); }
.hx-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hx-feats strong { font-family: var(--f-disp); font-size: .9rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; color: var(--hx-ink); }
.hx-feats li > span:last-child { font-size: .78rem; line-height: 1.4; color: var(--hx-mut); text-wrap: pretty; }

/* -- Panneaux flottants (décor) -- */
.hx-panels { position: absolute; inset: 0; pointer-events: none; text-align: start; }
.hx-p { position: absolute; padding: 14px; border-radius: 16px; background: var(--hx-pan); border: 1px solid var(--hx-pline); box-shadow: var(--hx-psh);
  font-size: 10.5px; line-height: 1.3; color: var(--hx-ink2); --ry: 0deg; transform: perspective(1200px) rotateY(var(--ry));
  animation: hx-float 8s ease-in-out infinite alternate; }
.hx-p i, .hx-p b { font-style: normal; }
.hx-ph { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; min-width: 0; }
.hx-ph > b { font-family: var(--f-disp); font-size: 13px; font-weight: 700; letter-spacing: -.01em; color: var(--hx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-ph > :not(b) { margin-inline-start: auto; }
.hx-tag { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 3px 8px; border-radius: 99px; font-size: 9.5px; font-weight: 700; letter-spacing: .03em;
  color: var(--hx-a2); background: var(--hx-soft); border: 1px solid var(--hx-pline); }
.hx-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.hx-chips, .hx-tabs { display: flex; gap: 2px; flex: none; }
.hx-chips i, .hx-tabs i { padding: 2px 6px; border-radius: 6px; font-family: var(--f-mono); font-size: 9.5px; color: var(--hx-mut); white-space: nowrap; }
.hx-tabs i { font-family: var(--f-body); padding: 3px 7px; }
.hx-chips .on, .hx-tabs .on { background: var(--hx-a); color: #fff; }
.hx-tabs .on { background: var(--hx-soft); color: var(--hx-ink); box-shadow: inset 0 0 0 1px var(--hx-pline); }
.hx-tf { margin-bottom: 8px; }
.hx-q { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.hx-eq { width: 100%; height: auto; aspect-ratio: 174 / 112; overflow: visible; }
.hx-gl { stroke: var(--hx-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hx-s1 { stop-color: var(--hx-a); stop-opacity: .3; }
.hx-s0 { stop-color: var(--hx-a); stop-opacity: 0; }
.hx-el { fill: none; stroke: var(--hx-a2); stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hx-draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: hx-draw 2.4s var(--ease) .3s both; }
.hx-ea, .hx-sa { animation: hx-in 1.2s ease 1.2s both; }
.hx-sa { fill: var(--hx-soft); }
.hx-end { fill: var(--hx-a2); }
.hx-halo { fill: var(--hx-a2); opacity: .25; transform-box: fill-box; transform-origin: center; animation: hx-ping 2.4s ease-out 2.6s infinite; }
.hx-met { display: grid; gap: 9px; }
.hx-met div, .hx-stats div { display: grid; gap: 5px; min-width: 0; }
.hx-met span, .hx-stats span { color: var(--hx-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-met i, .hx-stats i { position: relative; display: block; height: 4px; border-radius: 4px; background: var(--hx-track); overflow: hidden; }
.hx-met i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--hx-a), var(--hx-v));
  transform-origin: 0 50%; transform: scaleX(var(--w)); animation: hx-bar 1.4s var(--ease) .6s both; }
[dir="rtl"] .hx-met i::after { transform-origin: 100% 50%; }
.hx-pf { display: flex; justify-content: space-between; gap: 8px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--hx-line); font-size: 9.5px; color: var(--hx-mut); }
.hx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.hx-stats i { height: 8px; width: calc(var(--w) * 100%); background: linear-gradient(90deg, var(--hx-a), var(--hx-v)); opacity: .45; }
.hx-stats i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: hx-shine 2.6s ease-in-out infinite; }
.hx-hist { display: flex; align-items: flex-end; gap: 3px; height: 86px; direction: ltr; }
.hx-hist i { flex: 1; height: 100%; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--hx-v), var(--hx-a) 55%, var(--hx-soft));
  transform-origin: 50% 100%; transform: scaleY(var(--h)); animation: hx-grow 1.1s var(--ease) .2s both; }
.hx-hist i:nth-child(n+8) { animation-delay: .3s; } .hx-hist i:nth-child(n+15) { animation-delay: .4s; } .hx-hist i:nth-child(n+22) { animation-delay: .5s; }
.hx-hist i:nth-child(4n+2) { animation: hx-grow 1.1s var(--ease) .35s both, hx-breathe 2.8s ease-in-out 1.6s infinite alternate; }
.hx-ib { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; }
.hx-cc { position: relative; min-height: 150px; direction: ltr; border-radius: 8px; background: linear-gradient(var(--hx-line) 1px, transparent 1px) 0 0 / 100% 25%; }
.hx-cc svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: hx-in .9s var(--ease) .15s both; }
.hx-cw { fill: none; stroke: var(--hx-a); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hx-cb { fill: none; stroke: var(--hx-a); stroke-width: 4; vector-effect: non-scaling-stroke; }
.hx-dn { stroke: var(--hx-dn); }
.hx-z { position: absolute; display: flex; align-items: center; justify-content: flex-end; padding: 0 4px; min-height: 11px; border-radius: 3px;
  font-size: 8.5px; font-weight: 700; line-height: 1; white-space: nowrap; animation: hx-in .6s var(--ease) 1s both; }
.hx-zp { top: 9.3%; left: 62.5%; right: 0; height: 17.3%; align-items: flex-start; justify-content: flex-start; padding-top: 3px; background: rgba(244, 63, 94, .1); color: #e11d48; box-shadow: inset 0 0 0 1px rgba(244, 63, 94, .28); }
.hx-zd { top: 85.3%; left: 0; right: 0; height: 12%; background: rgba(16, 185, 129, .1); color: #059669; box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .3); }
.hx-zo { top: 78%; left: 40%; width: 33%; height: 5.3%; background: var(--hx-soft); color: var(--hx-a2); box-shadow: inset 0 0 0 1px var(--hx-pline); animation-delay: 1.2s; }
.hx-zf { top: 62.5%; left: 49%; width: 34%; height: 5%; background: rgba(129, 140, 248, .14); color: var(--hx-v); box-shadow: inset 0 0 0 1px rgba(129, 140, 248, .35); animation-delay: 1.35s; }
.hx-ln { height: 12px; min-height: 0; align-items: flex-start; border-bottom: 1px dashed currentColor; border-radius: 0; color: var(--hx-mut); justify-content: flex-start; padding: 0 2px; }
.hx-zl { top: calc(7.3% - 12px); left: 15%; width: 83%; color: var(--hx-a2); }
.hx-zm { top: calc(54% - 12px); left: 18.8%; width: 40.4%; animation-delay: 1.5s; }
.hx-zb { top: calc(34.7% - 12px); left: 74%; width: 14%; animation-delay: 1.65s; }
html[data-theme="dark"] .hx-zp { color: #fda4af; } html[data-theme="dark"] .hx-zd { color: #6ee7b7; }
.hx-side { display: grid; gap: 3px; align-content: start; }
.hx-side i { padding: 3px 7px; border-radius: 6px; border: 1px solid var(--hx-line); font-size: 9.5px; color: var(--hx-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-side .on { color: var(--hx-a2); border-color: var(--hx-pline); background: var(--hx-soft); }
.hx-rg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.hx-rg span { display: block; color: var(--hx-mut); font-size: 9.5px; }
.hx-rg b { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--hx-ink); }
.hx-spk { display: block; width: 100%; height: 46px; }
.hx-of { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 8px; direction: ltr; }
.hx-dom { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.hx-dom i { position: relative; padding: 4px 0; border-radius: 3px; text-align: center; font-family: var(--f-mono); font-size: 9.5px; font-variant-numeric: tabular-nums; }
.hx-dom i:nth-child(odd) { background: var(--hx-bid); color: var(--hx-bidt); }
.hx-dom i:nth-child(even) { background: var(--hx-ask); color: var(--hx-askt); }
.hx-dom .k { font-weight: 700; box-shadow: inset 0 0 0 1px currentColor; }
.hx-dom i:is(:nth-child(3), :nth-child(8), :nth-child(10))::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0; animation: hx-cell 2.6s ease-in-out infinite; }
.hx-dom i:nth-child(8)::after { animation-delay: .9s; } .hx-dom i:nth-child(10)::after { animation-delay: 1.7s; }
.hx-vp { display: grid; gap: 2px; align-content: stretch; }
.hx-vp i { border-radius: 2px; background: linear-gradient(90deg, var(--hx-a), var(--hx-v)); transform-origin: 0 50%; transform: scaleX(var(--w)); animation: hx-bar 1.2s var(--ease) .5s both; }

/* Placement autour de la copie (le bord intérieur de chaque panneau suit la copie) */
.hx-qs { top: 6px; width: 330px; inset-inline-end: calc(50% + var(--hx-g)); --ry: 12deg; animation-duration: 8s; }
.hx-bt { top: 292px; width: 310px; inset-inline-end: calc(50% + var(--hx-g) + 26px); --ry: 12deg; animation-duration: 9.5s; animation-delay: -3s; }
.hx-ict { top: 0; width: 350px; inset-inline-start: calc(50% + var(--hx-g)); --ry: -12deg; animation-duration: 8.8s; animation-delay: -2s; }
.hx-rgm { top: 300px; width: 196px; inset-inline-start: calc(50% + var(--hx-g) - 6px); --ry: -12deg; animation-duration: 10s; animation-delay: -5s; }
.hx-ofp { top: 336px; width: 196px; inset-inline-start: calc(50% + var(--hx-g) + 168px); --ry: -12deg; animation-duration: 7.6s; animation-delay: -1s; z-index: 1; }
[dir="rtl"] .hx-qs, [dir="rtl"] .hx-bt { --ry: -12deg; }
[dir="rtl"] .hx-ict, [dir="rtl"] .hx-rgm, [dir="rtl"] .hx-ofp { --ry: 12deg; }

/* -- Vagues lumineuses -- */
.hx-waves { position: absolute; inset-inline: 0; bottom: -200px; height: 250px; z-index: -1; overflow: hidden; pointer-events: none; opacity: var(--hx-wo);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.hx-waves svg { position: absolute; top: 0; left: 0; width: 200%; height: 100%; animation: hx-wave 26s linear infinite; }
.hx-waves path { fill: none; stroke: url(#hxWv); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.hx-waves .hx-wg { stroke-width: 7; opacity: .25; }
.hx-wv2 { animation-duration: 38s; animation-direction: reverse; }
.hx-waves .hx-wv3 { animation-duration: 31s; opacity: .7; }
.hx-w0 { stop-color: var(--hx-w0); } .hx-w1 { stop-color: var(--hx-w1); }

/* -- Terminal : aperçu produit incliné, qui se redresse au survol ou au défilement -- */
.hx-prev { position: relative; max-width: 1088px; margin: 76px auto 0; padding: 0 24px; perspective: 1800px; }
.hx-prev::before { content: ""; position: absolute; inset: 6% 8% -4%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--hx-glow1), transparent); }
.hx-shot { padding: 9px; border-radius: 26px; background: var(--hx-frame); border: 1px solid var(--hx-pline); box-shadow: var(--hx-fsh);
  transform-origin: 50% 0; transform: rotateX(9deg) scale(.97); transition: transform .9s var(--ease); }
.hx-prev:hover .hx-shot { transform: none; }
.hero.hx #heroTerminal, .hero.hx #heroTerminal:hover { transform: none; transition: none; box-shadow: none; border-radius: 18px; }
@supports (animation-timeline: view()) {
  .hx-shot { animation: hx-untilt linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
}

/* -- Responsive -- */
@media (min-width: 1100px) and (max-width: 1279px) {
  .hx-stage { --hx-g: 318px; }
  .hx-copy { max-width: 640px; }
  .hx-qs { width: 300px; } .hx-bt { width: 290px; } .hx-ict { width: 320px; }
  .hx-rgm { display: none; }
  .hx-ofp { inset-inline-start: calc(50% + var(--hx-g) + 8px); top: 318px; }
}
@media (max-width: 1099px) {
  .hx-lock { display: none; }
  .hx-panels { position: relative; inset: auto; display: grid; width: min(100%, 600px); margin-top: 40px; }
  .hx-p { position: relative; inset: auto; grid-area: 1 / 1; }
  .hx-qs { width: 64%; justify-self: start; --ry: 8deg; }
  .hx-ict { width: 60%; justify-self: end; margin-top: 70px; --ry: -8deg; z-index: 1; }
  [dir="rtl"] .hx-qs { --ry: -8deg; } [dir="rtl"] .hx-ict { --ry: 8deg; }
  .hx-bt, .hx-rgm, .hx-ofp { display: none; }
  .hx-feats { width: min(100%, 720px); }
  .hx-shot, .hx-prev:hover .hx-shot { transform: none; animation: none; }
}
@media (max-width: 860px) {
  .hero.hx { padding: 28px 0 56px; }
  .hx-copy { padding: 0 16px; }
  .hx-cta .btn { width: auto; }
  .hx-prev { margin-top: 48px; padding: 0 16px; }
  .hx-shot { padding: 0; border: 0; background: none; box-shadow: none; }
  .hero.hx #heroTerminal { box-shadow: var(--hx-psh); }
  .hx-waves { bottom: auto; top: 380px; }
}
@media (max-width: 640px) {
  .hx-met, .hx-side, .hx-ict .hx-chips i:nth-child(n+4) { display: none; }
  .hx-q, .hx-ib { grid-template-columns: 1fr; }
  .hx-p { padding: 11px; border-radius: 14px; }
  .hx-cc { min-height: 118px; }
}
@media (max-width: 520px) {
  .hx .eyebrow { display: inline-block; font-size: 10px; letter-spacing: .04em; line-height: 1.5; padding: .45rem .9rem; border-radius: 14px; text-wrap: balance; }
  .hx .eyebrow .dot { display: inline-block; vertical-align: 1px; margin-inline-end: 6px; }
  .hx-cta { width: 100%; flex-direction: column; }
  .hx-cta .btn { width: 100%; justify-content: center; }
  .hx-panels { margin-top: 32px; }
  .hx-feats { grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 36px; }
  .hx-feats li, .hx-feats li + li { align-items: flex-start; text-align: start; padding: 14px; border: 1px solid var(--hx-line); border-radius: 14px; background: var(--hx-soft); }
  html:not([data-theme="dark"]) .hx-feats li { background: #fff; box-shadow: 0 1px 2px rgba(15, 40, 90, .05); }
  .hx-ic { width: 36px; height: 36px; margin-bottom: 8px; }
}

/* -- Animations -- */
@keyframes hx-float { from { transform: perspective(1200px) rotateY(var(--ry)) translateY(0); } to { transform: perspective(1200px) rotateY(var(--ry)) translateY(-12px); } }
@keyframes hx-drift { from { transform: translate3d(-3%, 0, 0) scale(1); } to { transform: translate3d(3%, 4%, 0) scale(1.08); } }
@keyframes hx-draw { from { stroke-dashoffset: 1; } }
@keyframes hx-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes hx-grow { from { transform: scaleY(0); } }
@keyframes hx-breathe { to { transform: scaleY(calc(var(--h) * .8)); } }
@keyframes hx-bar { from { transform: scaleX(0); } }
@keyframes hx-ping { from { transform: scale(.6); opacity: .45; } to { transform: scale(2.4); opacity: 0; } }
@keyframes hx-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes hx-cell { 0%, 100% { opacity: 0; } 50% { opacity: .22; } }
@keyframes hx-wave { to { transform: translateX(-50%); } }
@keyframes hx-untilt { from { transform: rotateX(12deg) scale(.95); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero.hx *, .hero.hx *::before, .hero.hx *::after { animation: none !important; }
  .hx-shot { transition: none; }
}

/* -- Fluidité (24/09/2026) : moins de peinture pendant le défilement, sur PC comme sur mobile -- */
/* animations décoratives en boucle en pause hors de l'écran (classe posée par app.js) */
.anim-off, .anim-off *, .anim-off *::before, .anim-off *::after { animation-play-state: paused !important; }
/* halos flous fixes : animer un flou de 60–70 px sur un disque de 600 px repeignait la zone à chaque image */
.orb, .ntf-orb { animation: none !important; }
/* verre de la barre de navigation : flou plus léger et fond plus couvrant */
.nav { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html[data-theme="dark"] .nav { background: rgba(7, 10, 18, .88); }
html:not([data-theme="dark"]) .nav { background: rgba(255, 255, 255, .9); }
/* grandes fenêtres : fond plein, sans flou de l'arrière-plan */
.terminal { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* apparitions plus vives et plus courtes */
.reveal { transform: translateY(12px); transition-duration: .5s; }
/* changement de thème : fondu limité aux couleurs de fond et de texte */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .25s ease, color .25s ease !important;
}
