/* ============================================================
   BourseSavoir · Redesign homepage
   Système : navy ↔ blanc cassé, bleu actif, or stat, mono data
   ============================================================ */

:root {
  /* Palette */
  --navy-900: #0A1628;
  --navy-850: #0D1B2A;
  --navy-800: #0F2036;
  --navy-700: #16294a;
  --blue: #2563EB;
  --blue-bright: #1A56DB;
  --blue-soft: #3b82f6;
  --offwhite: #F8F9FC;
  --paper: #FFFFFF;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --slate-ink: #334155;
  --amber: #F59E0B;
  --red: #EF4444;
  --green: #0f8a5b;
  --violet: #a855f7;
  --cyan: #22d3ee;

  /* Type */
  --f-title: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Motion (driven by Tweaks intensity, 0..1) */
  --intensity: 0.68;

  --hairline: linear-gradient(90deg, transparent, rgba(148,163,184,.45) 18%, rgba(148,163,184,.45) 82%, transparent);
  --maxw: 1280px;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--offwhite);
  color: var(--navy-900);
  overflow-x: hidden;
  cursor: none;
}
@media (pointer: coarse) { body { cursor: auto; } }

h1, h2, h3, h4 { font-family: var(--f-title); margin: 0; line-height: 1.02; letter-spacing: -0.02em; }
/* Anti-rognage des mots en dégradé (background-clip:text + italique coupe le bord
   droit de chaque fin de ligne) : on clone la décoration sur chaque fragment. */
h1 em, h2 em, .hero h1 .accent {
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
h1 em, h2 em { padding-right: .06em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; }
@media (pointer: coarse) { button, a { cursor: pointer; } }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .wrap { padding: 0 22px; } }

.mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.on-dark { color: var(--cyan); }

/* hairline divider */
.hair { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: #fff; margin: -3px 0 0 -3px; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(255,255,255,.7);
  transition: width .25s, height .25s, margin .25s, border-color .25s, background .25s;
}
.cursor-ring.hot {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  background: rgba(255,255,255,.08);
  border-color: #fff;
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: 76px;
  display: flex; align-items: center;
  transition: background .4s ease, box-shadow .4s ease, height .4s ease;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav.scrolled {
  background: rgba(248,249,252,.86);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(15,32,54,.08), 0 12px 40px -28px rgba(10,22,40,.5);
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; display: block; }
.brand .word {
  font-family: var(--f-title); font-weight: 800; font-size: 19px; letter-spacing: -0.03em;
  color: #fff; transition: color .4s;
}
.nav.scrolled .brand .word { color: var(--navy-900); }
.brand .word b {
  background: linear-gradient(120deg, var(--violet), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800;
}

.nav-links { display: flex; align-items: center; gap: 6px; position: relative; }
@media (max-width: 1040px) { .nav-links .navlink { display: none; } }
.navlink {
  position: relative; padding: 10px 16px; font-size: 14.5px; font-weight: 500;
  color: rgba(255,255,255,.82); display: inline-block; line-height: 1.3;
  transition: color .3s;
}
.nav.scrolled .navlink { color: var(--slate-ink); }
.navlink span { display: block; position: relative; transition: color .3s; }
.navlink:hover span, .navlink.current span { color: var(--blue); }
.nav-ink {
  position: absolute; top: 0; height: 2px; border-radius: 2px;
  background: var(--blue);
  transition: left .4s cubic-bezier(.7,0,.2,1), width .4s cubic-bezier(.7,0,.2,1), top .4s cubic-bezier(.7,0,.2,1), opacity .3s;
  opacity: 0; pointer-events: none;
}
.nav-cta {
  margin-left: 14px; padding: 10px 20px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.4); color: #fff; font-weight: 600; font-size: 14px;
  background: transparent; transition: background .3s, border-color .3s, color .3s, transform .2s;
}
.nav.scrolled .nav-cta { border-color: var(--navy-900); color: var(--navy-900); }
.nav-cta:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.nav-burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.4); background: transparent; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-burger i { width: 18px; height: 1.6px; background: #fff; display: block; }
.nav.scrolled .nav-burger { border-color: var(--navy-900); }
.nav.scrolled .nav-burger i { background: var(--navy-900); }
@media (max-width: 1040px) { .nav-burger { display: flex; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; background: var(--navy-900);
  color: #fff; overflow: hidden; display: flex; align-items: center;
  padding: 120px 0 80px;
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; opacity: .9; }
.hero-mesh {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 22%, rgba(37,99,235,.30), transparent 70%),
    radial-gradient(50% 50% at 12% 80%, rgba(168,85,247,.16), transparent 70%),
    radial-gradient(40% 40% at 90% 90%, rgba(34,211,238,.12), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 35%, transparent 80%);
}
.hero .wrap { position: relative; z-index: 3; width: 100%; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  font-size: 13px; color: var(--slate-light); margin-bottom: 26px;
}
.hero-badge b { color: #fff; font-weight: 600; }
.hero-badge .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(15,138,91,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15,138,91,.6);} 70% { box-shadow: 0 0 0 9px rgba(15,138,91,0);} 100% { box-shadow: 0 0 0 0 rgba(15,138,91,0);} }

.hero h1 {
  font-size: clamp(44px, 7vw, 92px); font-weight: 800; letter-spacing: -0.035em; line-height: .98;
}
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero h1 .word > span { display: inline-block; }
.hero h1 .accent {
  position: relative;
  background: linear-gradient(110deg, var(--blue-soft), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.hero h1 .accent .ul { position: absolute; left: 0; right: 0; bottom: .04em; height: 5px; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: left; }
.hero-sub {
  margin-top: 26px; max-width: 540px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6;
  color: var(--slate-light);
}
.hero-sub b { color: #fff; font-weight: 600; }

.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 14px; font-weight: 600; font-size: 15.5px;
  border: 0; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s;
  will-change: transform;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 18px 40px -16px rgba(37,99,235,.7); }
.btn-primary:hover { background: var(--blue-bright); box-shadow: 0 24px 50px -14px rgba(37,99,235,.85); }
.btn-primary .arr { transition: transform .3s; }
.btn-primary:hover .arr { transform: translateX(4px); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.clip-reveal { clip-path: inset(0 100% 0 0); }

.hero-proof { display: flex; gap: 30px; margin-top: 44px; flex-wrap: wrap; }
.hero-proof .item { display: flex; flex-direction: column; gap: 2px; }
.hero-proof .n { font-family: var(--f-mono); font-size: 26px; font-weight: 700; color: #fff; }
.hero-proof .n.amber { color: var(--amber); }
.hero-proof .l { font-size: 12.5px; color: var(--slate-light); letter-spacing: .01em; }

/* review carousel panel */
.review-rail {
  position: relative; align-self: center; justify-self: center;
  width: 100%; max-width: 350px; aspect-ratio: 9 / 16;
  border-radius: 28px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(148,163,184,.18); background: var(--navy-900);
  box-shadow: 0 50px 100px -45px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.04);
}
@media (max-width: 980px) { .review-rail { max-width: 300px; } }
.review-rail .rr-track { position: absolute; inset: 0; display: flex; will-change: transform;
  transition: transform .85s cubic-bezier(.65,.02,.18,1); }
.review-rail .rr-img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-user-drag: none; user-select: none; }
.review-rail .rr-glow { position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(120% 60% at 50% 0%, rgba(37,99,235,.22), transparent 55%),
              linear-gradient(180deg, transparent 60%, rgba(8,15,30,.45) 100%);
  mix-blend-mode: screen; opacity: .9; }
.review-rail .rr-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3;
  display: flex; justify-content: center; gap: 8px; }
.review-rail .rr-dot { width: 7px; height: 7px; padding: 0; border: none; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.34); transition: width .35s, background .35s; }
.review-rail .rr-dot.is-active { width: 24px; background: linear-gradient(90deg, var(--cyan), var(--blue)); }

/* candlestick panel (legacy) */
.candles {
  position: relative; align-self: stretch; min-height: 380px;
  border: 1px solid rgba(148,163,184,.16); border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  backdrop-filter: blur(4px); padding: 22px; overflow: hidden;
}
@media (max-width: 980px) { .candles { min-height: 300px; } }
.candles .chip-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.candles .tk { font-family: var(--f-mono); font-size: 12.5px; color: var(--slate-light); letter-spacing: .08em; }
.candles .px { font-family: var(--f-mono); font-size: 13px; color: var(--green); font-weight: 600; }
.candles svg { width: 100%; height: calc(100% - 26px); display: block; }
.candle-up rect { fill: #1fae6a; }
.candle-up line { stroke: #1fae6a; }
.candle-dn rect { fill: var(--blue-soft); }
.candle-dn line { stroke: var(--blue-soft); }
.candle rect, .candle line { transform-box: fill-box; transform-origin: center; }
.spark { fill: none; stroke: url(#sparkg); stroke-width: 2; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .25em; color: var(--slate-light);
}
.scroll-hint .bar { width: 1px; height: 36px; background: linear-gradient(var(--slate-light), transparent); overflow: hidden; }
.scroll-hint .bar::after { content:""; display:block; width:100%; height:50%; background: var(--cyan); animation: drop 1.8s infinite; }
@keyframes drop { 0%{ transform: translateY(-100%);} 60%,100%{ transform: translateY(200%);} }

/* ============================================================
   MARQUEE
   ============================================================ */
.ticker {
  background: var(--navy-850); border-top: 1px solid rgba(148,163,184,.12);
  border-bottom: 1px solid rgba(148,163,184,.12);
  padding: 16px 0; overflow: hidden; position: relative;
}
.ticker-track { display: flex; gap: 0; width: max-content; will-change: transform; }
.ticker-item { display: inline-flex; align-items: center; gap: 22px; padding: 0 22px; }
.ticker-item .w { font-family: var(--f-title); font-weight: 700; font-size: 19px; color: rgba(255,255,255,.92); white-space: nowrap; }
.ticker-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-soft); }
.ticker-item .w.muted { color: rgba(148,163,184,.6); -webkit-text-stroke: 0; }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--navy-900); color: #fff; padding: 110px 0; position: relative; overflow: hidden; }
.stats .orb { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; }
.stats-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 60px; flex-wrap: wrap; }
.stats-head h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 800; max-width: 640px; }
.stats-head h2 em { font-style: normal; color: var(--cyan); }
.stats-head p { color: var(--slate-light); max-width: 360px; font-size: 15px; line-height: 1.6; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 880px) { .stat-grid { grid-template-columns: repeat(2,1fr); gap: 34px 18px; } }
.stat { padding: 26px 14px 8px 0; border-top: 1px solid rgba(148,163,184,.2); position: relative; min-width: 0; }
.stat .num { font-family: var(--f-mono); font-weight: 700; font-size: clamp(42px, 4.8vw, 84px); line-height: .9; letter-spacing: -0.05em; white-space: nowrap; }
.stat .num.amber { color: var(--amber); }
.stat .num.cyan { color: var(--cyan); }
.stat .num small { font-size: .42em; vertical-align: super; margin-left: 2px; opacity: .8; }
.stat .lab { margin-top: 14px; font-size: 14px; color: var(--slate-light); line-height: 1.45; max-width: 220px; }

/* ============================================================
   SECTION shells (light)
   ============================================================ */
.section { padding: 120px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, #fff, var(--offwhite)); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 60px); font-weight: 800; margin-top: 18px; letter-spacing: -0.03em; }
.section-head h2 em { font-style: italic; color: var(--blue); }
.section-head p { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--slate); max-width: 560px; }

/* ---------- Offers ---------- */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: end; }
@media (max-width: 920px) { .offers { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.offer {
  position: relative; background: var(--paper); border: 1px solid rgba(15,32,54,.08);
  border-radius: 22px; padding: 32px 30px 30px; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
  box-shadow: 0 1px 2px rgba(10,22,40,.04);
}
.offer::before {
  content:""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent, var(--blue)); transform: scaleY(0); transform-origin: top; transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.offer:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -34px rgba(10,22,40,.45); border-color: transparent; }
.offer:hover::before { transform: scaleY(1); }
.offer.feature { padding-top: 44px; box-shadow: 0 30px 70px -36px rgba(37,99,235,.5); border-color: rgba(37,99,235,.22); }
.offer .visual {
  height: 150px; border-radius: 14px; margin-bottom: 24px; overflow: hidden; position: relative;
  background: var(--navy-900);
}
.offer .visual .inner { position: absolute; inset: 0; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.offer:hover .visual .inner { transform: scale(1.06); }
.offer .kicker { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent, var(--blue)); }
.offer h3 { font-size: 25px; font-weight: 700; margin-top: 10px; }
.offer .desc { margin-top: 12px; color: var(--slate); font-size: 14.5px; line-height: 1.55; min-height: 66px; }
.offer .feat-list { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.offer .feat-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--slate-ink); }
.offer .feat-list li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none; margin-top: 1px;
  background: radial-gradient(circle at 50% 50%, var(--accent, var(--blue)) 0 30%, rgba(37,99,235,.14) 31%); }
.offer .priceline { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.offer .price { position: relative; font-family: var(--f-mono); font-weight: 700; font-size: 32px; color: var(--navy-900); }
.offer .price .pul { position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px; background: var(--accent, var(--blue)); transform: scaleX(0); transform-origin: left; }
.offer .per { color: var(--slate); font-size: 13.5px; }
.offer .ob {
  margin-top: 22px; width: 100%; padding: 14px; border-radius: 12px; font-weight: 600; font-size: 14.5px;
  background: var(--navy-900); color: #fff; border: 0; transition: background .25s, transform .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.offer.feature .ob { background: var(--blue); }
.offer .ob:hover { transform: translateY(-2px); }
.badge-reco {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; color: #fff; background: var(--blue);
  box-shadow: 0 0 0 0 rgba(37,99,235,.55); animation: reco 2.4s infinite;
}
@keyframes reco { 0%{box-shadow:0 0 0 0 rgba(37,99,235,.5);} 70%{box-shadow:0 0 0 12px rgba(37,99,235,0);} 100%{box-shadow:0 0 0 0 rgba(37,99,235,0);} }

/* candle/data chart minigraphics inside offer visuals */
.viz-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 7px; padding: 18px; }
.viz-bars i { flex: 1; background: linear-gradient(180deg, var(--cyan), var(--blue)); border-radius: 3px 3px 0 0; opacity: .85; }
.viz-dots { position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.4px);
  background-size: 16px 16px; }
.viz-line { position: absolute; inset: 0; }

/* ---------- Tools ---------- */
.tools-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
@media (max-width: 920px) { .tools-wrap { grid-template-columns: 1fr; } }
.calc {
  background: var(--paper); border: 1px solid rgba(15,32,54,.08); border-radius: 22px; padding: 30px;
  box-shadow: 0 1px 2px rgba(10,22,40,.04);
}
.calc h3 { font-size: 22px; font-weight: 700; }
.calc .sub { color: var(--slate); font-size: 14px; margin-top: 6px; }
.calc-field { margin-top: 22px; }
.calc-field label { font-size: 12.5px; font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.calc-input {
  margin-top: 8px; position: relative; display: flex; align-items: center;
  border: 1.5px solid rgba(15,32,54,.12); border-radius: 12px; padding: 0 14px; background: var(--offwhite);
  transition: border-color .3s;
}
.calc-input input { flex: 1; border: 0; background: transparent; outline: none; padding: 13px 0; font-family: var(--f-mono); font-size: 16px; color: var(--navy-900); }
.calc-input .u { color: var(--slate); font-family: var(--f-mono); font-size: 14px; }
.calc-input::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.calc-input:focus-within { border-color: rgba(37,99,235,.4); }
.calc-input:focus-within::after { transform: scaleX(1); }
.calc-range { width: 100%; margin-top: 10px; accent-color: var(--blue); }
.calc-out { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(15,32,54,.08); display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.calc-out .lab { font-size: 13px; color: var(--slate); max-width: 140px; }
.calc-out .res { font-family: var(--f-mono); font-weight: 700; font-size: clamp(36px, 5vw, 56px); color: var(--blue); letter-spacing: -.03em; }
.tools-side { display: flex; flex-direction: column; gap: 14px; }
.tool-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--navy-900); color: #fff; border-radius: 18px; padding: 22px 24px; overflow: hidden; position: relative;
  transition: transform .3s; flex: 1;
}
.tool-pill:hover { transform: translateX(6px); }
.tool-pill h4 { font-size: 18px; font-weight: 700; }
.tool-pill p { color: var(--slate-light); font-size: 13px; margin-top: 4px; }
.tool-pill .arr2 { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; flex: none; transition: background .3s; }
.tool-pill:hover .arr2 { background: var(--blue); border-color: var(--blue); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media (max-width: 920px) { .news-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }
.article { background: var(--paper); border: 1px solid rgba(15,32,54,.07); border-radius: 18px; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.article:hover { transform: translateY(-6px); box-shadow: 0 36px 60px -34px rgba(10,22,40,.4); }
.article .thumb { height: 168px; overflow: hidden; position: relative; background: var(--navy-850); }
.article .thumb .inner { position: absolute; inset: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.article:hover .thumb .inner { transform: scale(1.08); }
.article .body { padding: 20px 22px 24px; }
.cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 5px 10px; border-radius: 7px; }
.cat.fiscal { color: #9a6b00; background: rgba(245,158,11,.14); }
.cat.trading { color: var(--blue); background: rgba(37,99,235,.12); }
.cat.marches { color: var(--blue); background: rgba(37,99,235,.12); }
.cat.conseils { color: #0369a1; background: rgba(14,165,233,.13); }
.cat.crypto { color: #7c3aed; background: rgba(124,58,237,.12); }
.cat.retraite { color: var(--green); background: rgba(15,138,91,.12); }
.article h3 { font-size: 19px; font-weight: 700; margin-top: 14px; line-height: 1.25; }
.article .meta { margin-top: 14px; display: flex; gap: 14px; font-family: var(--f-mono); font-size: 12px; color: var(--slate); }

/* ---------- Testimonials ---------- */
.testi { background: var(--navy-900); color: #fff; padding: 120px 0; overflow: hidden; }
.testi-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 60px; flex-wrap: wrap; }
.testi-head h2 { line-height: 1.05; }
.testi-head h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; }
.testi-head h2 em { color: var(--cyan); font-style: normal; }
.drag-hint { font-family: var(--f-mono); font-size: 12px; color: var(--slate-light); display: flex; align-items: center; gap: 10px; }
.testi-viewport { cursor: grab; -webkit-user-select: none; user-select: none; perspective: 1400px; }
.testi-viewport.grabbing { cursor: grabbing; }
.testi-track { display: flex; gap: 22px; width: max-content; will-change: transform; }
.tcard {
  width: 420px; max-width: 78vw; flex: none; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(148,163,184,.16); border-radius: 22px; padding: 30px; transform-style: preserve-3d;
}
.tcard .stars { color: var(--amber); letter-spacing: 3px; font-size: 14px; }
.tcard .quote { font-size: 18px; line-height: 1.55; margin-top: 16px; font-weight: 500; color: #fff; }
.tcard .who { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.tcard .av { width: 46px; height: 46px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--violet), var(--cyan)); display: grid; place-items: center; font-family: var(--f-title); font-weight: 700; color: #fff; }
.tcard .who .nm { font-weight: 600; font-size: 15px; }
.tcard .who .rl { font-size: 12.5px; color: var(--slate-light); font-family: var(--f-mono); }

/* ---------- Parrainage / CTA band ---------- */
.cta-band { background: linear-gradient(180deg, var(--offwhite), #fff); padding: 110px 0; }
.cta-inner {
  position: relative; background: var(--navy-900); border-radius: 28px; padding: 64px; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
@media (max-width: 880px) { .cta-inner { grid-template-columns: 1fr; padding: 40px 30px; } }
.cta-inner .mesh2 { position: absolute; inset: 0; background:
  radial-gradient(50% 60% at 85% 20%, rgba(37,99,235,.4), transparent 70%),
  radial-gradient(40% 60% at 10% 90%, rgba(168,85,247,.22), transparent 70%); }
.cta-inner h2 { position: relative; font-size: clamp(30px, 4vw, 50px); font-weight: 800; color: #fff; }
.cta-inner h2 em { color: var(--cyan); font-style: normal; }
.cta-inner p { position: relative; color: var(--slate-light); margin-top: 16px; font-size: 16px; line-height: 1.6; max-width: 420px; }
.steps { position: relative; display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 18px 0; position: relative; }
.step .dot { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(148,163,184,.4); display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; color: #fff; background: var(--navy-900); z-index: 2; }
.step.active .dot { background: var(--blue); border-color: var(--blue); }
.step .line { position: absolute; left: 21.5px; top: 44px; bottom: -18px; width: 1.5px; background: rgba(148,163,184,.25); }
.step .line .fill { position: absolute; inset: 0; background: var(--cyan); transform: scaleY(0); transform-origin: top; }
.step:last-child .line { display: none; }
.step .st-t { font-weight: 700; font-size: 17px; color: #fff; }
.step .st-d { font-size: 13.5px; color: var(--slate-light); margin-top: 3px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-900); color: #fff; padding: 70px 0 40px; position: relative; }
.footer .topline { position: absolute; top: 0; left: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet)); transform: scaleX(0); transform-origin: left; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
.footer .desc { color: var(--slate-light); font-size: 14px; line-height: 1.6; margin-top: 16px; max-width: 300px; }
.footer .col h5 { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-light); margin: 0 0 16px; font-weight: 600; }
.footer .col a { display: block; color: rgba(255,255,255,.78); font-size: 14.5px; padding: 6px 0; transition: color .2s, transform .2s; }
.footer .col a:hover { color: #fff; transform: translateX(4px); }
.foot-badges { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.foot-badges .b { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-family: var(--f-mono); color: var(--slate-light); border: 1px solid rgba(148,163,184,.22); border-radius: 8px; padding: 7px 11px; }
.foot-badges .b svg { width: 13px; height: 13px; }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(148,163,184,.16); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom .cp { font-family: var(--f-mono); font-size: 12.5px; color: var(--slate-light); }
.footer-bottom .lg { display: flex; gap: 22px; font-size: 13px; color: var(--slate-light); }

/* reveal base states (JS sets .reveal then GSAP animates; fallback shows) */
.reveal { opacity: 1; }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
}
