/* ── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #09090f;
  --bg-card:     #111218;
  --bg-elevated: #16181f;
  --border:      rgba(255,255,255,0.08);
  --border-md:   rgba(255,255,255,0.12);

  --blue:      #e74d00;
  --blue-10:   rgba(79,195,247,0.10);
  --blue-20:   rgba(79,195,247,0.20);
  --blue-50:   rgba(79,195,247,0.50);
  --blue-glow: rgba(79,195,247,0.18);

  --green:     #66bb9a;
  --green-10:  rgba(102,187,154,0.10);

  --w100: #ffffff;
  --w80:  rgba(255,255,255,0.80);
  --w60:  rgba(255,255,255,0.60);
  --w40:  rgba(255,255,255,0.40);
  --w20:  rgba(255,255,255,0.20);
  --w08:  rgba(255,255,255,0.08);

  --font:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-3xl:  40px;
  --tx:     0.2s ease;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--w80);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Reveal animations ──────────────────────────────────────────────────────── */
.reveal, .reveal-slow {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-slow { transition-duration: 0.9s; }
.revealed    { opacity: 1; transform: none; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-xl);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--tx);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #06090f;
}
.btn-primary:hover {
  background: #79d4fb;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79,195,247,0.30);
}
.btn-ghost {
  background: transparent;
  color: var(--w60);
  border: 1px solid var(--border-md);
}
.btn-ghost:hover {
  background: var(--w08);
  color: var(--w80);
  border-color: var(--w20);
}
.btn-lg  { padding: 14px 26px; font-size: 15px; border-radius: var(--r-2xl); }
.btn-xl  { padding: 17px 36px; font-size: 17px; font-weight: 700; border-radius: var(--r-2xl); }

/* ── Section headers ────────────────────────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--blue-10);
  border: 1px solid var(--blue-20);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--w100);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--w60);
  line-height: 1.7;
}

/* ── Screenshot placeholders ────────────────────────────────────────────────── */
.screenshot-ph {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 360px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(79,195,247,0.04) 0%, transparent 70%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(255,255,255,0.015) 20px,
      rgba(255,255,255,0.015) 21px
    );
  border: 1.5px dashed rgba(79,195,247,0.25);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
}
.screenshot-ph-large { min-height: 500px; }
.screenshot-ph-icon  { font-size: 40px; margin-bottom: 4px; opacity: 0.6; }
.screenshot-ph-label { font-size: 14px; font-weight: 600; color: var(--w60); }
.screenshot-ph-hint  { font-size: 11px; color: var(--blue); opacity: 0.6; font-family: monospace; }

/* ══════════════════════════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--tx), border-color var(--tx), backdrop-filter var(--tx);
}
.nav.scrolled {
  background: rgba(9,9,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo img { height: 28px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--w60);
  border-radius: var(--r-md);
  transition: color var(--tx), background var(--tx);
}
.nav-links a:hover { color: var(--w100); background: var(--w08); }
.nav-cta { margin-left: 8px; padding: 9px 18px; font-size: 13.5px; }
.nav-mobile-toggle { display: none; }

/* ══════════════════════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(79,195,247,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--blue-10);
  border: 1px solid var(--blue-20);
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 900;
  color: var(--w100);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;*/
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, #a8e6ff 50%, var(--blue) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.low-subtitle {
  font-size: clamp(30px, 4.5vw, 42px);
  display: inline-block; /* ou block */
  line-height: 1.2;      /* exemple */
}
.hero-subtitle {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--w60);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* Browser mockup */
.hero-browser {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--r-2xl);
  border: 1px solid var(--border-md);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 40px 80px rgba(0,0,0,0.6),
    0 0 120px rgba(79,195,247,0.06);
}
.browser-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.browser-url-bar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 14px;
  font-size: 12px;
  color: var(--w40);
  max-width: 360px;
  margin: 0 auto;
}
.browser-controls { display: flex; gap: 8px; }
.browser-btn {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--w08);
}
.browser-content {
  background: var(--bg-card);
  min-height: 460px;
  position: relative;
  overflow: hidden;
}
.browser-content img { width: 100%; height: auto; display: block; }
.browser-glow {
  position: absolute;
  bottom: -80px; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 120px;
  background: radial-gradient(ellipse, rgba(79,195,247,0.20) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ══════════════════════════════════════════════════════════════════════════════
   BROKERS STRIP
══════════════════════════════════════════════════════════════════════════════ */
.brokers-strip {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.brokers-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--w40);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.brokers-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.broker-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--w80);
  transition: border-color var(--tx), transform var(--tx);
}
.broker-chip:hover { border-color: var(--w20); transform: translateY(-2px); }
.broker-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════════════════════════════ */
.stats { padding: 80px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  transition: border-color var(--tx), transform var(--tx);
}
.stat-card:hover { border-color: var(--blue-20); transform: translateY(-3px); }
.stat-number {
  font-size: 52px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 14px;
  color: var(--w40);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════════════════════════════════ */
.features { padding: 80px 0 120px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  transition: border-color var(--tx), transform var(--tx), background var(--tx);
}
.feature-card:hover {
  border-color: var(--blue-20);
  background: var(--bg-elevated);
  transform: translateY(-4px);
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
  line-height: 1;
}
.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--w100);
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 14px;
  color: var(--w60);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════════════════════
   DASHBOARD SHOWCASE
══════════════════════════════════════════════════════════════════════════════ */
.showcase { padding: 80px 0 120px; }
.showcase-main {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.showcase-frame {
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--border-md);
  background: var(--bg-card);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 80px rgba(79,195,247,0.05);
  min-height: 500px;
}
.showcase-frame img { width: 100%; height: auto; display: block; }

/* ── Portefeuilles strip ── */
.showcase-pf-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 56px auto 0;
}
.showcase-pf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--blue);
  border-radius: var(--r-lg);
  padding: 24px 22px 22px;
  transition: border-color var(--tx-base), transform var(--tx-base);
}
.showcase-pf-card:hover {
  border-top-color: rgba(79,195,247,0.9);
  transform: translateY(-2px);
}
.showcase-pf-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--blue-10);
  border: 1px solid var(--blue-20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 16px;
}
.showcase-pf-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--w90);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.showcase-pf-desc {
  font-size: 13.5px;
  color: var(--w50);
  line-height: 1.7;
}
@media (max-width: 768px) {
  .showcase-pf-strip { grid-template-columns: 1fr; }
}

/* Floating KPI cards */
.float-card {
  position: absolute;
  background: rgba(17,18,24,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  padding: 16px 20px;
  min-width: 180px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.float-card-tl { top: 32px; left: -28px; }
.float-card-br { bottom: 32px; right: -28px; }
.float-card-label { font-size: 11px; color: var(--w40); font-weight: 500; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.float-card-value { font-size: 22px; font-weight: 800; color: var(--w100); letter-spacing: -0.5px; margin-bottom: 4px; }
.float-card-delta { font-size: 12px; font-weight: 600; }
.float-card-sub   { font-size: 11px; color: var(--w40); }
.positive { color: var(--green); }

/* ══════════════════════════════════════════════════════════════════════════════
   TOOLS
══════════════════════════════════════════════════════════════════════════════ */
.tools { padding: 40px 0 120px; }

.tool-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 120px;
}
.tool-row:last-child { margin-bottom: 0; }
.tool-row-reverse { direction: rtl; }
.tool-row-reverse > * { direction: ltr; }

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--blue-10);
  border: 1px solid var(--blue-20);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 20px;
}
.tool-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--w100);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.tool-desc {
  font-size: 16px;
  color: var(--w60);
  line-height: 1.7;
  margin-bottom: 24px;
}
.tool-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-list li {
  font-size: 14px;
  color: var(--w60);
  padding: 8px 12px;
  background: var(--w08);
  border-radius: var(--r-md);
}
.tool-frame {
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--border-md);
  background: var(--bg-card);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(79,195,247,0.04);
  min-height: 320px;
}
.tool-frame img { width: 100%; height: auto; display: block; }

/* ── Illustration rééquilibrage ──────────────────────────────────────────────── */
.rebal-frame { padding: 24px 24px; }

.rebal-viz {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.rebal-viz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rebal-viz-title {
  font-size: 12px;
  color: var(--w40);
  font-weight: 500;
}

.rebal-viz-mode-pill {
  font-size: 11px;
  font-weight: 700;
  color: rgba(79,195,247,0.8);
  background: rgba(79,195,247,0.08);
  border-radius: 99px;
  padding: 3px 10px;
}

.rebal-groups { display: flex; flex-direction: column; gap: 7px; }
.rebal-groups-4 .rebal-gc { padding: 8px 12px; gap: 6px; }

.rebal-gc {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rebal-gc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rebal-gc-name { font-size: 13px; font-weight: 600; color: var(--w70); }

.rebal-badge {
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
  padding: 3px 10px;
}
.rebal-ok   { color: var(--green);           background: rgba(102,187,154,0.1); }
.rebal-buy  { color: rgba(79,195,247,0.9);   background: rgba(79,195,247,0.1);  }
.rebal-sell { color: rgba(240,96,96,0.9);    background: rgba(240,96,96,0.1);   }

.rebal-gc-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rebal-gc-pct, .rebal-gc-cible {
  font-size: 11px;
  color: var(--w40);
  min-width: 34px;
  font-weight: 600;
}
.rebal-gc-cible { text-align: right; }

.rebal-gc-track {
  flex: 1;
  height: 5px;
  background: var(--w08);
  border-radius: 99px;
  overflow: hidden;
}

.rebal-gc-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}
.rebal-fill-ok   { background: rgba(102,187,154,0.7); }
.rebal-fill-buy  { background: rgba(79,195,247,0.7);  }
.rebal-fill-over { background: rgba(240,96,96,0.65);  }

.rebal-gc-action {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(79,195,247,0.8);
  padding-top: 2px;
}
.rebal-gc-action strong { font-weight: 700; }

.rebal-viz-summary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rebal-sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rebal-sum-label { font-size: 12px; color: var(--w40); }
.rebal-sum-val   { font-size: 13px; font-weight: 700; color: var(--w80); }
.rebal-sum-buy   { color: rgba(79,195,247,0.9); }
.rebal-sum-sell  { color: rgba(240,96,96,0.85); }
.rebal-sum-zero  { color: var(--green); }

.rebal-gc-action-sell { color: rgba(240,96,96,0.85); }

/* ── Animations illustration rééquilibrage ──────────────────────────────────── */
/* ── Animation en boucle — Rééquilibrage ── */
/* Keyframes : opacity minimum 0.08 → le cadre n'est jamais vide */
@keyframes rebalCardLoop {
  0%,3%    { opacity: 0.08; transform: translateY(7px); }
  17%      { opacity: 1; transform: translateY(0); }
  76%      { opacity: 1; }
  90%,100% { opacity: 0.08; transform: translateY(0); }
}
@keyframes rebalBarLoop {
  0%,7%    { transform: scaleX(0.02); }
  27%      { transform: scaleX(1); }
  76%      { transform: scaleX(1); }
  90%,100% { transform: scaleX(0.02); }
}
@keyframes rebalSumLoop {
  0%,25%   { opacity: 0.08; transform: translateY(4px); }
  38%      { opacity: 1; transform: translateY(0); }
  76%      { opacity: 1; }
  90%,100% { opacity: 0.08; }
}
@keyframes rebalSellLoop {
  0%,19%   { opacity: 0.08; }
  26%      { opacity: 1; }
  33%      { opacity: 0.4; }
  40%      { opacity: 1; }
  48%      { opacity: 0.4; }
  56%      { opacity: 1; }
  64%      { opacity: 0.4; }
  72%      { opacity: 1; }
  76%      { opacity: 1; }
  90%,100% { opacity: 0.08; }
}

/* Animations actives seulement via .viz-animated — avant IO : éléments à opacity:1 naturelle */
.rebal-frame.viz-animated .rebal-gc {
  animation-name: rebalCardLoop;
  animation-duration: 10s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
  animation-delay: -6s; /* démarre en phase hold */
}
.rebal-frame.viz-animated .rebal-gc-fill {
  transform-origin: left center;
  animation-name: rebalBarLoop;
  animation-duration: 10s;
  animation-timing-function: cubic-bezier(0.4,0,0.2,1);
  animation-iteration-count: infinite;
  animation-delay: -6s;
}
.rebal-frame.viz-animated .rebal-viz-summary {
  animation-name: rebalSumLoop;
  animation-duration: 10s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
  animation-delay: -5.5s;
}
.rebal-frame.viz-animated .rebal-badge.rebal-sell {
  animation-name: rebalSellLoop;
  animation-duration: 10s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-delay: -5.5s;
}
/* Stagger cartes (calc sur le délai négatif de base) */
.rebal-frame.viz-animated .rebal-groups-4 .rebal-gc:nth-child(1) { animation-delay: calc(-6s + 0.00s); }
.rebal-frame.viz-animated .rebal-groups-4 .rebal-gc:nth-child(2) { animation-delay: calc(-6s + 0.11s); }
.rebal-frame.viz-animated .rebal-groups-4 .rebal-gc:nth-child(3) { animation-delay: calc(-6s + 0.22s); }
.rebal-frame.viz-animated .rebal-groups-4 .rebal-gc:nth-child(4) { animation-delay: calc(-6s + 0.33s); }
/* Stagger barres */
.rebal-frame.viz-animated .rebal-groups-4 .rebal-gc:nth-child(1) .rebal-gc-fill { animation-delay: calc(-6s + 0.17s); }
.rebal-frame.viz-animated .rebal-groups-4 .rebal-gc:nth-child(2) .rebal-gc-fill { animation-delay: calc(-6s + 0.28s); }
.rebal-frame.viz-animated .rebal-groups-4 .rebal-gc:nth-child(3) .rebal-gc-fill { animation-delay: calc(-6s + 0.39s); }
.rebal-frame.viz-animated .rebal-groups-4 .rebal-gc:nth-child(4) .rebal-gc-fill { animation-delay: calc(-6s + 0.50s); }

/* ── Illustration Portefeuilles ──────────────────────────────────────────────── */
.pf-frame { padding: 20px 22px 22px; }
.pf-viz { display: flex; flex-direction: column; }

.pf-viz-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.pf-viz-tab {
  flex: 1;
  padding: 6px 8px;
  border-radius: var(--r-md);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  color: var(--w40);
  background: transparent;
  border: 1px solid var(--border);
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(1, end);
}
.pf-viz-tab-1 { animation-name: pfTabAct1; }
.pf-viz-tab-2 { animation-name: pfTabAct2; }
.pf-viz-tab-3 { animation-name: pfTabAct3; }

.pf-viz-panels {
  position: relative;
  height: 158px;
}
.pf-viz-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  opacity: 0;
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: ease;
}
.pf-viz-p1 { animation-name: pfPanelShow1; }
.pf-viz-p2 { animation-name: pfPanelShow2; }
.pf-viz-p3 { animation-name: pfPanelShow3; }

.pf-viz-row {
  display: grid;
  grid-template-columns: 78px 1fr 30px;
  align-items: center;
  gap: 8px;
}
.pf-viz-name {
  font-size: 12px;
  color: var(--w50);
  white-space: nowrap;
}
.pf-viz-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}
.pf-viz-bar {
  height: 100%;
  border-radius: 99px;
}
.pf-viz-pct {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--w55);
  text-align: right;
}
.pf-viz-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}
.pf-viz-foot-label { font-size: 11px; color: var(--w35); flex: 1; }
.pf-viz-foot-val   { font-size: 13px; font-weight: 700; }
.pf-pos            { color: var(--green); }
.pf-viz-eq         { font-size: 11px; color: var(--green); font-weight: 600; }

/* ── Keyframes tabs ── */
@keyframes pfTabAct1 {
  0%    { background: rgba(79,195,247,0.12); color: rgba(79,195,247,0.9); border-color: rgba(79,195,247,0.3); }
  33%   { background: rgba(79,195,247,0.12); color: rgba(79,195,247,0.9); border-color: rgba(79,195,247,0.3); }
  33.1% { background: transparent; color: var(--w40); border-color: var(--border); }
  100%  { background: transparent; color: var(--w40); border-color: var(--border); }
}
@keyframes pfTabAct2 {
  0%    { background: transparent; color: var(--w40); border-color: var(--border); }
  33%   { background: transparent; color: var(--w40); border-color: var(--border); }
  33.1% { background: rgba(79,195,247,0.12); color: rgba(79,195,247,0.9); border-color: rgba(79,195,247,0.3); }
  66%   { background: rgba(79,195,247,0.12); color: rgba(79,195,247,0.9); border-color: rgba(79,195,247,0.3); }
  66.1% { background: transparent; color: var(--w40); border-color: var(--border); }
  100%  { background: transparent; color: var(--w40); border-color: var(--border); }
}
@keyframes pfTabAct3 {
  0%    { background: transparent; color: var(--w40); border-color: var(--border); }
  66%   { background: transparent; color: var(--w40); border-color: var(--border); }
  66.1% { background: rgba(79,195,247,0.12); color: rgba(79,195,247,0.9); border-color: rgba(79,195,247,0.3); }
  99%   { background: rgba(79,195,247,0.12); color: rgba(79,195,247,0.9); border-color: rgba(79,195,247,0.3); }
  99.1% { background: transparent; color: var(--w40); border-color: var(--border); }
  100%  { background: transparent; color: var(--w40); border-color: var(--border); }
}

/* ── Keyframes panels ── */
@keyframes pfPanelShow1 {
  0%   { opacity: 1; transform: translateY(0); }
  29%  { opacity: 1; transform: translateY(0); }
  33%  { opacity: 0; transform: translateY(-6px); }
  99%  { opacity: 0; transform: translateY(6px); }
  100% { opacity: 0; }
}
@keyframes pfPanelShow2 {
  0%   { opacity: 0; transform: translateY(6px); }
  33%  { opacity: 0; transform: translateY(6px); }
  37%  { opacity: 1; transform: translateY(0); }
  62%  { opacity: 1; transform: translateY(0); }
  66%  { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 0; transform: translateY(6px); }
}
@keyframes pfPanelShow3 {
  0%   { opacity: 0; transform: translateY(6px); }
  66%  { opacity: 0; transform: translateY(6px); }
  70%  { opacity: 1; transform: translateY(0); }
  97%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* ── Illustration fiscalité ──────────────────────────────────────────────────── */
.tax-frame { padding: 32px 28px; }

.tax-viz {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.tax-viz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tax-mode-pill {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,167,38,0.9);
  background: rgba(255,167,38,0.1);
  border-radius: 99px;
  padding: 3px 10px;
}

.tax-viz-label {
  font-size: 12px;
  color: var(--w40);
  font-weight: 500;
}

.tax-table {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.tax-thead, .tax-trow {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.8fr 0.9fr 1fr;
  gap: 4px;
  padding: 8px 12px;
}

.tax-thead {
  font-size: 10px;
  font-weight: 700;
  color: var(--w40);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--border);
}

.tax-trow {
  font-size: 12px;
  color: var(--w65);
  border-bottom: 1px solid var(--border);
}
.tax-trow:last-child { border-bottom: none; }

.tax-neg { color: #f06060; font-weight: 600; }

.tax-summary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tax-sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--w50);
}

.tax-sum-total {
  border-top: 1px solid var(--border);
  padding-top: 6px;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--w80);
}

.tax-mode-note {
  font-size: 10px;
  color: var(--w28);
  text-align: center;
  padding-top: 2px;
}

/* ── Illustration conseiller ─────────────────────────────────────────────────── */
.adv-frame { padding: 28px 24px; }

.adv-viz {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.adv-kpi-row { display: flex; flex-direction: column; gap: 8px; }

.adv-kpi-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 16px;
}

.adv-kpi-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--w40);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.adv-kpi-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--w100);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.adv-kpi-delta { font-size: 12px; color: var(--green); margin-top: 3px; }
.adv-val-red   { color: #f06060; }
.adv-delta-red { color: rgba(240,96,96,0.7); }

.adv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.adv-leg {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--w50);
}

.adv-leg-line {
  width: 16px;
  height: 2px;
  border-radius: 99px;
  flex-shrink: 0;
}
.adv-leg-dashed {
  background: repeating-linear-gradient(to right,
    rgba(255,167,38,0.7) 0px, rgba(255,167,38,0.7) 4px,
    transparent 4px, transparent 7px);
  background-color: transparent !important;
  height: 2px;
}

.adv-chart-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 10px 10px 4px;
}

.adv-chart-svg { width: 100%; height: auto; display: block; }

/* ── Illustration historique ─────────────────────────────────────────────────── */
.hist-frame { padding: 28px 24px; }

.hist-viz {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.hist-viz-hero {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
}

.hist-hero-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--w40);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.hist-hero-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--w100);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.hist-hero-delta { font-size: 13px; color: var(--green); margin-top: 4px; font-weight: 600; }

.hist-viz-tabs {
  display: flex;
  gap: 6px;
}

.hist-tab {
  font-size: 12px;
  font-weight: 700;
  color: var(--w40);
  background: var(--w08);
  border-radius: var(--r-sm);
  padding: 5px 14px;
  cursor: default;
}
/* Etat actif par défaut avant que l'animation IO ne prenne la main */
.hist-tab-active,
.hist-frame:not(.viz-animated) .hist-tab-t1 {
  background: rgba(79,195,247,0.15);
  color: rgba(79,195,247,0.9);
}

.hist-viz-perf {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hist-perf-val { font-size: 18px; font-weight: 800; color: var(--green); }
.hist-perf-sub { font-size: 12px; color: var(--w40); }

.hist-chart-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 10px 10px 4px;
}

.hist-chart-svg { width: 100%; height: auto; display: block; }

/* ── Illustration synchronisation ───────────────────────────────────────────── */
.sync-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 36px;
}

.sync-viz {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 320px;
}

.sync-viz-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-viz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(102,187,154,0.4);
  animation: syncPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes syncPulse {
  0%   { box-shadow: 0 0 0 0   rgba(102,187,154,0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(102,187,154,0);   }
  100% { box-shadow: 0 0 0 0   rgba(102,187,154,0);   }
}

.sync-viz-status-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.sync-viz-brokers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sync-viz-broker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--w60);
  background: var(--w08);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 12px;
}

.sync-viz-broker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(79,195,247,0.8);
  flex-shrink: 0;
}
.sync-dot-d { background: rgba(102,187,154,0.8); }
.sync-dot-l { background: rgba(255,167,38,0.8);  }
.sync-dot-b { background: rgba(171,71,188,0.8);  }

.sync-viz-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sync-viz-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sync-viz-label {
  font-size: 13px;
  color: var(--w40);
}

.sync-viz-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--w80);
}
.sync-val-green { color: var(--green); }

.sync-viz-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--w40);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ── Illustration projection ─────────────────────────────────────────────────── */
.proj-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
}

.proj-viz {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 340px;
}

.proj-viz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proj-viz-title {
  font-size: 12px;
  color: var(--w40);
  font-weight: 500;
}

.proj-viz-amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--w100);
  letter-spacing: -0.5px;
}

.proj-viz-chart-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 14px 14px 10px;
}

.proj-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.proj-viz-stats {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  padding: 14px 0;
}

.proj-viz-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.proj-viz-stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

.proj-viz-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--w90);
  letter-spacing: -0.3px;
}

.proj-viz-stat-label {
  font-size: 10px;
  color: var(--w40);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ── Illustration Budget & Revenus ──────────────────────────────────────────── */
.budget-frame { padding: 24px 22px; }

.budget-viz {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.budget-viz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.budget-viz-title {
  font-size: 12px;
  color: var(--w40);
  font-weight: 500;
}

.budget-viz-savings {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: rgba(102,187,154,0.1);
  border-radius: 99px;
  padding: 3px 10px;
}

.budget-viz-cats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.budget-viz-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.budget-viz-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.budget-viz-cat-name {
  font-size: 12px;
  color: var(--w55);
  flex: 1;
}

.budget-viz-cat-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--w70);
}

.budget-viz-bar {
  height: 5px;
  background: var(--w08);
  border-radius: 99px;
  overflow: hidden;
}

.budget-viz-fill {
  height: 100%;
  border-radius: 99px;
}

.budget-viz-divider {
  height: 1px;
  background: var(--border);
}

.budget-viz-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.budget-viz-foot-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.budget-viz-foot-label {
  font-size: 10px;
  color: var(--w35);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.budget-viz-foot-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--w70);
}

.budget-pos { color: var(--green); }

/* ── Illustration Multi-profil ─────────────────────────────────────────────── */
.profil-frame { padding: 24px 22px; }

.profil-viz {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.profil-viz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profil-viz-title {
  font-size: 12px;
  color: var(--w40);
  font-weight: 500;
}

.profil-viz-badge {
  font-size: 11px;
  font-weight: 700;
  color: rgba(206,147,216,0.9);
  background: rgba(206,147,216,0.1);
  border-radius: 99px;
  padding: 3px 10px;
}

.profil-viz-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profil-viz-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profil-viz-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.profil-viz-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.profil-viz-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--w70);
}

.profil-viz-amount {
  font-size: 11px;
  color: var(--w45);
}

.profil-viz-pct {
  font-size: 12px;
  font-weight: 700;
}

.profil-pos { color: var(--green); }

.profil-viz-divider {
  height: 1px;
  background: var(--border);
}

.profil-viz-shared {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profil-viz-shared-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--w50);
}

.profil-viz-shared-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--w45);
}

.profil-viz-shared-val {
  font-weight: 700;
  color: var(--w70);
}

.profil-viz-shared-split {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--w40);
}

.profil-viz-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.profil-viz-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elevated);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  padding: 12px 14px;
}

.profil-viz-total-label {
  font-size: 12px;
  color: var(--w40);
  font-weight: 500;
}

.profil-viz-total-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--w100);
  letter-spacing: -0.3px;
}

/* ── Illustration Matrice Macro ────────────────────────────────────────────── */
.macro-frame { padding: 24px 22px; }

.macro-viz {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.macro-viz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.macro-viz-title {
  font-size: 12px;
  color: var(--w40);
  font-weight: 500;
}

.macro-viz-zone {
  font-size: 11px;
  font-weight: 600;
  color: var(--w50);
}

.macro-viz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.macro-viz-cell {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.3s, background 0.3s;
}

.macro-viz-cell--active {
  border-color: rgba(231,77,0,0.35);
  background: rgba(231,77,0,0.06);
}

.macro-viz-cell-icon {
  font-size: 16px;
  line-height: 1;
}

.macro-viz-cell-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--w65);
}

.macro-viz-cell-score {
  font-size: 10px;
  color: var(--w35);
  font-weight: 500;
}

.macro-viz-cell--active .macro-viz-cell-name { color: var(--w90); }
.macro-viz-cell--active .macro-viz-cell-score { color: rgba(231,77,0,0.8); font-weight: 700; }

.macro-viz-reco {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.macro-viz-reco-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--w40);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.macro-viz-reco-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.macro-viz-reco-bar {
  display: grid;
  grid-template-columns: 100px 1fr 30px;
  align-items: center;
  gap: 8px;
}

.macro-viz-reco-name {
  font-size: 11px;
  color: var(--w50);
  white-space: nowrap;
}

.macro-viz-reco-track {
  height: 5px;
  background: var(--w08);
  border-radius: 99px;
  overflow: hidden;
}

.macro-viz-reco-fill {
  height: 100%;
  border-radius: 99px;
}

.macro-viz-reco-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--w55);
  text-align: right;
}

/* ══════════════════════════════════════════════════════════════════════════════
   COPILOT
══════════════════════════════════════════════════════════════════════════════ */
.copilot-section { padding: 100px 0 120px; }

.copilot-hero-symbol { display: flex; justify-content: center; margin-bottom: 32px; }
.copilot-hero-symbol-img { width: 88px; height: 88px; object-fit: contain; opacity: 0.9; filter: drop-shadow(0 0 28px rgba(231, 77, 0, 0.35)); }

/* ── Showcase principal (frame chat) ── */
.copilot-showcase {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 80px;
}
.copilot-showcase-frame {
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--border-md);
  background: var(--bg-card);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 80px rgba(79,195,247,0.05);
}

/* ── Demo chat ── */
.cop-demo { display: flex; min-height: 420px; }
.cop-demo-side {
  width: 200px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cop-demo-side-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--w80);
}
.cop-demo-logo-img { width: 18px; height: 18px; opacity: 0.8; }
.cop-demo-side-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cop-demo-action {
  font-size: 12px;
  color: var(--w45);
  padding: 7px 10px;
  border-radius: var(--r-md);
  cursor: default;
  transition: background var(--tx);
}
.cop-demo-action-active {
  background: rgba(255,255,255,0.06);
  color: var(--w80);
  font-weight: 600;
}
.cop-demo-side-profile {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cop-demo-profile-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  color: var(--w45);
  font-weight: 500;
}

/* ── Zone chat ── */
.cop-demo-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  gap: 24px;
}
.cop-demo-msg-user { text-align: right; }
.cop-demo-bubble {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  color: var(--w85);
  padding: 12px 18px;
  border-radius: 18px 18px 4px 18px;
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 80%;
  text-align: left;
}
.cop-demo-msg-ai { display: flex; gap: 12px; align-items: flex-start; }
.cop-demo-ai-avatar {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.cop-demo-ai-avatar img { width: 16px; height: 16px; opacity: 0.7; }
.cop-demo-ai-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cop-demo-ai-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--w80);
}
.cop-demo-ai-line {
  font-size: 13px;
  color: var(--w60);
  line-height: 1.65;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.cop-demo-check { color: #66bb6a; font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.cop-demo-warn  { color: #ffb74d; font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.cop-demo-ai-actions {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px;
}
.cop-demo-ai-chip {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--w50);
  cursor: default;
}
.cop-demo-input {
  margin-top: auto;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 12px 16px;
}
.cop-demo-input-text {
  flex: 1;
  font-size: 13px;
  color: var(--w30);
}
.cop-demo-input-send {
  color: var(--w30);
}

/* ── Feature blocks 2 colonnes ── */
.copilot-features {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
}
.copilot-feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.copilot-feat-row-reverse { direction: rtl; }
.copilot-feat-row-reverse > * { direction: ltr; }

.copilot-feat-frame {
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--border-md);
  background: var(--bg-card);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(79,195,247,0.04);
  padding: 24px;
}

/* ── Illustration : profil investisseur ── */
.cop-ill-profile-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--w50);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.cop-ill-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.cop-ill-card {
  padding: 14px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--tx);
}
.cop-ill-card-active {
  border-color: rgba(79,195,247,0.4);
  background: rgba(79,195,247,0.06);
}
.cop-ill-card-icon {
  color: var(--w40);
  margin-bottom: 8px;
}
.cop-ill-card-active .cop-ill-card-icon { color: rgba(79,195,247,0.8); }
.cop-ill-card-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--w70);
  margin-bottom: 2px;
}
.cop-ill-card-active .cop-ill-card-label { color: var(--w90); }
.cop-ill-card-desc {
  font-size: 11px;
  color: var(--w35);
}
.cop-ill-profile-params {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cop-ill-profile-params span {
  font-size: 11px;
  color: var(--w40);
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--r-md);
}
.cop-ill-profile-params strong {
  color: var(--w65);
}

/* ── Illustration : contexte patrimonial ── */
.cop-ill-ctx-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--w65);
  margin-bottom: 16px;
}
.cop-ill-ctx-icon { color: var(--w40); }
.cop-ill-ctx-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.cop-ill-ctx-section {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.cop-ill-ctx-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.cop-ill-ctx-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--w70);
}
.cop-ill-ctx-detail {
  font-size: 11px;
  color: var(--w35);
  margin-top: 1px;
}
.cop-ill-ctx-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--w30);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── Illustration : modes d'analyse ── */
.cop-ill-modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.cop-ill-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-size: 11px;
  color: var(--w45);
  text-align: center;
}
.cop-ill-mode-active {
  border-color: rgba(79,195,247,0.35);
  background: rgba(79,195,247,0.06);
  color: var(--w80);
  font-weight: 600;
}
.cop-ill-mode-icon { color: var(--w40); }
.cop-ill-mode-active .cop-ill-mode-icon { color: rgba(79,195,247,0.8); }
.cop-ill-modes-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cop-ill-modes-preview-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--w55);
  line-height: 1.5;
}

/* ── Illustration : deux modes (export + chat) ── */
.cop-ill-dual {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.cop-ill-dual-card {
  flex: 1;
  padding: 20px 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.cop-ill-dual-icon { color: var(--w45); }
.cop-ill-dual-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--w80);
}
.cop-ill-dual-desc {
  font-size: 11px;
  color: var(--w40);
  line-height: 1.5;
}
.cop-ill-dual-targets {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.cop-ill-dual-targets span {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  color: var(--w45);
}
.cop-ill-dual-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(76,175,138,0.12);
  color: rgba(76,175,138,0.9);
  margin-top: auto;
}
.cop-ill-dual-badge-pro {
  background: rgba(79,195,247,0.12);
  color: rgba(79,195,247,0.9);
}
.cop-ill-dual-sep {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: var(--w25);
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cop-demo-side { display: none; }
}
@media (max-width: 768px) {
  .copilot-feat-row,
  .copilot-feat-row-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }
  .copilot-features { gap: 64px; }
  .cop-ill-cards { grid-template-columns: 1fr 1fr; }
  .cop-ill-modes-grid { grid-template-columns: repeat(2, 1fr); }
  .cop-ill-dual { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PRIVACY
══════════════════════════════════════════════════════════════════════════════ */
.privacy { padding: 80px 0; }
.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-3xl);
  padding: 72px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.privacy-card::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(79,195,247,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.privacy-icon {
  font-size: 48px;
  margin-bottom: 20px;
}
.privacy-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--w100);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.privacy-desc {
  font-size: 17px;
  color: var(--w60);
  max-width: 560px;
  margin: 0 auto 52px;
  line-height: 1.7;
}
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
}
.privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.privacy-item-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.privacy-item-title { font-size: 14px; font-weight: 700; color: var(--w100); margin-bottom: 4px; }
.privacy-item-desc  { font-size: 13px; color: var(--w50, var(--w60)); line-height: 1.55; }

/* ══════════════════════════════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════════════════════════════ */
.how { padding: 80px 0 120px; }
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.step-number {
  font-size: 52px;
  font-weight: 900;
  color: var(--blue);
  opacity: 0.25;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 16px;
}
.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--w100);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 14px;
  color: var(--w60);
  line-height: 1.65;
}
.step-arrow {
  font-size: 24px;
  color: var(--w20);
  padding-top: 10px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════════════════════════════════ */
.cta-section { padding: 80px 0 120px; }
.cta-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-3xl);
  padding: 80px 64px;
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(79,195,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--w100);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.cta-desc {
  font-size: 17px;
  color: var(--w60);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.cta-actions { margin-bottom: 20px; }
.cta-note {
  font-size: 12px;
  color: var(--w40);
}

/* ══════════════════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}
.footer-top {
  display: flex;
  gap: 64px;
  margin-bottom: 48px;
}
.footer-brand { flex-shrink: 0; max-width: 220px; }
.footer-logo  { height: 24px; width: auto; margin-bottom: 14px; }
.footer-tagline {
  font-size: 14px;
  color: var(--w40);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 48px;
  margin-left: auto;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--w40);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--w60);
  transition: color var(--tx);
}
.footer-col a:hover { color: var(--w100); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-copy { font-size: 13px; color: var(--w40); }
.footer-url  { color: var(--blue); }
.footer-disclaimer { font-size: 12px; color: var(--w20); }

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .tool-row, .tool-row-reverse { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
  .float-card { display: none; }
  .privacy-card { padding: 48px 32px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0; }
  .footer-top   { flex-direction: column; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 32px; margin-left: 0; }
  .cta-card { padding: 48px 32px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(9,9,15,0.97);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a { padding: 12px 16px; }
  .nav-cta { display: none; }
  .nav-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
  }
  .nav-mobile-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--w80);
    border-radius: 2px;
    transition: all var(--tx);
  }

  .hero { padding: 120px 0 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .hero-browser  { border-radius: var(--r-xl); }
  .browser-chrome { padding: 10px 12px; }
  .browser-url-bar { max-width: 180px; font-size: 10px; }
  .browser-content { min-height: 0; }
  .showcase-frame  { min-height: 0; }
  .cnx-suggest-wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cnx-contributor-wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cnx-filters { gap: 6px; }

  /* CTA bottom : bouton pleine largeur pour tenir dans la carte */
  .cta-card { padding: 48px 20px; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   CONNEXIONS
══════════════════════════════════════════════════════════════════════════════ */
.connexions { padding: 80px 0 100px; }

/* Barre search + filtres */
.cnx-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto 52px;
  max-width: 900px;
}
.cnx-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cnx-search-wrap svg {
  position: absolute;
  left: 16px;
  color: var(--w40);
  pointer-events: none;
}
.cnx-search {
  width: 100%;
  padding: 14px 18px 14px 46px;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  color: var(--w80);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--tx), box-shadow var(--tx);
}
.cnx-search::placeholder { color: var(--w40); }
.cnx-search:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79,195,247,0.08);
}
.cnx-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cnx-filter {
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--w50, var(--w60));
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--tx);
  font-family: var(--font);
}
.cnx-filter:hover { border-color: var(--w20); color: var(--w80); }
.cnx-filter.active {
  background: var(--blue-10);
  border-color: var(--blue-20);
  color: var(--blue);
  font-weight: 600;
}

/* Section labels */
.cnx-section-wrap { margin-bottom: 44px; }
.cnx-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.cnx-label-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cnx-label-active   { background: rgba(102,187,154,0.12); color: #66bb9a; border: 1px solid rgba(102,187,154,0.25); }
.cnx-label-upcoming { background: var(--blue-10); color: var(--blue); border: 1px solid var(--blue-20); }
.cnx-label-count,
.cnx-label-sub { font-size: 13px; color: var(--w40); }

/* Broker grid */
.cnx-broker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.cnx-broker-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color var(--tx), transform var(--tx), background var(--tx);
}
.cnx-broker-card:hover {
  border-color: var(--border-md);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}
.cnx-broker-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cnx-broker-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cnx-broker-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--w100);
  flex: 1;
}
.cnx-broker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cnx-broker-cat {
  font-size: 11px;
  color: var(--w40);
  font-weight: 500;
}
.cnx-badge-available {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #66bb9a;
}

/* Vote button */
.cnx-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--w50, var(--w60));
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tx);
  font-family: var(--font);
  white-space: nowrap;
}
.cnx-vote-btn:hover {
  border-color: var(--blue-20);
  color: var(--blue);
  background: var(--blue-10);
  transform: translateY(-1px);
}
.cnx-vote-btn.voted {
  background: var(--blue-10);
  border-color: var(--blue-20);
  color: var(--blue);
}

/* Empty state */
.cnx-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--w40);
  font-size: 15px;
}

/* Suggest footer */
.cnx-suggest-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
}
.cnx-suggest-title { font-size: 15px; font-weight: 700; color: var(--w100); margin-bottom: 4px; }
.cnx-suggest-desc  { font-size: 13px; color: var(--w50, var(--w60)); }

/* Contributor CTA (connexions section) */
.cnx-contributor-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding: 24px 32px;
  background: rgba(255,167,38,0.04);
  border: 1px solid rgba(255,167,38,0.15);
  border-radius: var(--r-2xl);
}
.cnx-contributor-icon { flex-shrink: 0; color: #ffa726; }
.cnx-contributor-body { flex: 1; }
.cnx-contributor-title { font-size: 15px; font-weight: 700; color: var(--w100); margin-bottom: 4px; }
.cnx-contributor-desc  { font-size: 13px; color: var(--w50); line-height: 1.55; }
.cnx-contributor-btn   { flex-shrink: 0; white-space: nowrap; border-color: rgba(255,167,38,0.35) !important; color: #ffa726 !important; }
.cnx-contributor-btn:hover { background: rgba(255,167,38,0.08) !important; border-color: #ffa726 !important; }

/* Show more / Réduire */
.cnx-show-more {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 20px auto 0;
  padding: 9px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--w50);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--tx-base), border-color var(--tx-base), background var(--tx-base);
}
.cnx-show-more:hover {
  color: var(--w80);
  border-color: var(--w20);
  background: var(--w04);
}
.cnx-show-more svg { flex-shrink: 0; opacity: 0.7; }

/* Dashboard section symbol */
.showcase-symbol {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.showcase-symbol-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 0 28px rgba(231, 77, 0, 0.35));
}

/* ══════════════════════════════════════════════════════════════════════════════
   PRICING
══════════════════════════════════════════════════════════════════════════════ */

.pricing {
  padding: 120px 0 100px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
  align-items: start;
  min-width: 0;
}

/* ── Card base ── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color var(--tx-base);
}
.pricing-card:hover { border-color: var(--w15); }

/* ── Popular card ── */
.pricing-card--popular {
  border-color: rgba(231,77,0,0.45);
  background: linear-gradient(160deg, rgba(231,77,0,0.07) 0%, var(--bg-card) 40%);
  box-shadow: 0 0 40px rgba(231,77,0,0.12);
  transform: translateY(-8px);
}
.pricing-card--popular:hover { border-color: rgba(231,77,0,0.7); }

/* ── Bannière À vie (offre de lancement) ── */
.pricing-lifetime-banner {
  position: relative;
  margin-top: 48px;
  padding: 32px 36px;
  border: 2px solid rgba(76,175,138,0.45);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(76,175,138,0.10) 0%, var(--bg-card) 50%);
  box-shadow: 0 0 60px rgba(76,175,138,0.12);
}
.pricing-lifetime-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4caf8a, #2e7d32);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 20px;
  border-radius: 99px;
  white-space: nowrap;
}
.pricing-lifetime-inner {
  display: flex;
  align-items: center;
  gap: 36px;
}
.pricing-lifetime-left {
  flex-shrink: 0;
}
.pricing-lifetime-left .pricing-plan {
  color: #4caf8a;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
.pricing-lifetime-left .pricing-amount {
  font-size: 52px;
  font-weight: 900;
  color: #fff;
}
.pricing-lifetime-left .pricing-billing {
  font-size: 12px;
  color: var(--w40);
  margin-top: 4px;
}
.pricing-lifetime-center {
  flex: 1;
}
.pricing-lifetime-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pricing-lifetime-features li {
  font-size: 14px;
  color: var(--w70);
  padding-left: 20px;
  position: relative;
}
.pricing-lifetime-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4caf8a;
  font-weight: 700;
}
.pricing-lifetime-note {
  font-size: 12px;
  color: var(--w35);
  margin-top: 12px;
}
.pricing-lifetime-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pricing-cta--lifetime {
  background: linear-gradient(135deg, #4caf8a, #2e7d32) !important;
  font-size: 16px !important;
  padding: 14px 32px !important;
  white-space: nowrap;
}
.pricing-cta--lifetime:hover {
  background: linear-gradient(135deg, #66bb6a, #388e3c) !important;
}
.pricing-lifetime-sub {
  font-size: 11px;
  color: var(--w30);
  text-align: center;
  max-width: 180px;
}

/* Compteur de rareté */
.pricing-lifetime-scarcity {
  margin-top: 8px;
  width: 100%;
  max-width: 200px;
}
.lifetime-scarcity-text {
  font-size: 12px;
  font-weight: 600;
  color: #ffa000;
  margin-bottom: 5px;
  text-align: center;
}
.lifetime-scarcity-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.lifetime-scarcity-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #4caf8a, #ffa000, #ef5350);
  transition: width 0.8s ease;
}

/* Bannière offre terminée */
.pricing-lifetime-sold-out {
  position: relative;
  margin-top: 48px;
  padding: 28px 36px;
  border: 2px solid rgba(239,83,80,0.3);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(239,83,80,0.06) 0%, var(--bg-card) 50%);
  text-align: center;
}
.pricing-lifetime-sold-inner { padding: 12px 0; }
.pricing-lifetime-sold-text {
  font-size: 14px;
  color: var(--w60);
  line-height: 1.7;
}

/* 3 colonnes abonnements sous la bannière */
.pricing-grid--3col {
  margin-top: 32px;
}

/* Mensuel — accent bleu */
.pricing-grid--3col .pricing-card:nth-child(2) {
  border-color: rgba(79,195,247,0.25);
  background: linear-gradient(160deg, rgba(79,195,247,0.05) 0%, var(--bg-card) 40%);
}
.pricing-grid--3col .pricing-card:nth-child(2):hover { border-color: rgba(79,195,247,0.45); }
.pricing-grid--3col .pricing-card:nth-child(2) .pricing-plan { color: #4fc3f7; }

/* Annuel — accent orange (meilleur rapport qualité-prix) */
.pricing-grid--3col .pricing-card:nth-child(3) {
  border-color: rgba(231,77,0,0.3);
  background: linear-gradient(160deg, rgba(231,77,0,0.05) 0%, var(--bg-card) 40%);
}
.pricing-grid--3col .pricing-card:nth-child(3):hover { border-color: rgba(231,77,0,0.5); }
.pricing-grid--3col .pricing-card:nth-child(3) .pricing-plan { color: #e74d00; }
.pricing-grid--3col .pricing-card:nth-child(3) .pricing-popular-badge {
  background: linear-gradient(135deg, #e74d00, #ff6d00);
}

@media (max-width: 768px) {
  .pricing-lifetime-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .pricing-lifetime-features li {
    text-align: left;
  }
}

.pricing-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

/* ── Copilot card ── */
.pricing-copilot-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #a78bfa;
  border: 1px solid #a78bfa;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.pricing-card--copilot {
  border-color: rgba(167,139,250,0.2);
}
.pricing-card--copilot:hover { border-color: rgba(167,139,250,0.45); }

/* Contenu mystérieux — header et liste floutés, CTA reste visible */
.pricing-card--copilot .pricing-header,
.pricing-card--copilot .pricing-features {
  filter: blur(6px);
  opacity: 0.5;
  user-select: none;
  pointer-events: none;
}

/* ── Header ── */
.pricing-header { margin-bottom: 24px; }

.pricing-plan {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--w50);
  margin-bottom: 16px;
}
.pricing-card--popular .pricing-plan { color: var(--blue); }
.pricing-card--copilot .pricing-plan { color: #a78bfa; }

/* ── Price row ── */
.pricing-price-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 6px;
}
.pricing-amount {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  color: var(--w100);
  letter-spacing: -0.03em;
}
.pricing-price-meta {
  display: flex;
  flex-direction: column;
  padding-bottom: 6px;
}
.pricing-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--w60);
  line-height: 1;
}
.pricing-period {
  font-size: 13px;
  color: var(--w40);
  line-height: 1.4;
}

.pricing-billing {
  font-size: 12px;
  color: var(--w40);
  margin-bottom: 10px;
  min-height: 18px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--w50);
  line-height: 1.6;
}

/* ── Toggle mensuel / annuel ── */
.pricing-toggle {
  display: flex;
  width: 100%;
  background: var(--bg-deep, #0d0d14);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px;
  gap: 2px;
  margin-bottom: 20px;
}
.ptoggle-btn {
  background: transparent;
  border: none;
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--w40);
  cursor: pointer;
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: background var(--tx-base), color var(--tx-base);
  white-space: nowrap;
}
.ptoggle-btn.active {
  background: var(--blue);
  color: #fff;
}
.ptoggle-save {
  background: rgba(255,255,255,0.18);
  border-radius: 99px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── CTA button ── */
.pricing-cta {
  display: block;
  text-align: center;
  margin-bottom: 28px;
  font-size: 14px;
}
.pricing-cta--copilot {
  border-color: rgba(167,139,250,0.35) !important;
  color: #a78bfa !important;
}
.pricing-cta--copilot:hover {
  background: rgba(167,139,250,0.08) !important;
  border-color: rgba(167,139,250,0.6) !important;
}

/* ── Feature list ── */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pricing-features li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 13.5px;
  color: var(--w60);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.pf-section {
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--w30) !important;
  margin-top: 16px;
  padding-top: 12px !important;
  border-top: 1px solid var(--border) !important;
}
.pf-section:first-child { margin-top: 0; border-top: none !important; }
.pf-section--note {
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: rgba(167,139,250,0.6) !important;
  line-height: 1.6 !important;
}

.pf-check {
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  width: 16px;
}
.pf-check--copilot { color: #a78bfa; }
.pf-dash {
  color: var(--w25);
  font-weight: 400;
  font-size: 13px;
  flex-shrink: 0;
  width: 16px;
}

/* ── Bottom note ── */
.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--w35);
  margin-top: 48px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  /* min-width:0 empêche la carte de grandir au-delà de la colonne 1fr */
  .pricing-card {
    min-width: 0;
    width: 100%;
  }
  .pricing-card--popular { transform: none; }
}

@media (max-width: 480px) {
  /* Padding réduit pour gagner de la place */
  .pricing-card { padding: 24px 16px 20px; }

  /* Montant : "14,99" en 52px est trop large sur 320px */
  .pricing-amount { font-size: 40px; }

  /* Toggle : boutons plus compacts + badge masqué */
  .pricing-toggle { padding: 3px; gap: 1px; }
  .ptoggle-btn { font-size: 10px; padding: 5px 4px; gap: 2px; }
  .ptoggle-save { display: none; }

  /* CTA : retour à la ligne autorisé */
  .pricing-cta { font-size: 13px; padding-left: 12px; padding-right: 12px; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════════════════════════ */

.faq { padding: 100px 0; }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin-top: 64px;
  align-items: start;
}

.faq-col { display: flex; flex-direction: column; }

/* ── Item ── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

/* ── Question button ── */
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--w80);
  text-align: left;
  line-height: 1.4;
  transition: color var(--tx-base);
}
.faq-q:hover { color: var(--w100); }
.faq-q[aria-expanded="true"] { color: var(--w100); }

.faq-arrow {
  flex-shrink: 0;
  opacity: 0.45;
  transition: transform 250ms ease, opacity var(--tx-base);
}
.faq-q[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* ── Answer panel ── */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms ease;
}
.faq-a.open { grid-template-rows: 1fr; }

.faq-a > p,
.faq-a > div {
  overflow: hidden;
}
.faq-a p {
  padding-bottom: 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--w55);
  margin: 0;
}
.faq-a p strong { color: var(--w80); font-weight: 600; }
.faq-a code {
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 12.5px;
  background: var(--w06, rgba(255,255,255,0.06));
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--w70);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .faq-col:last-child .faq-item:first-child { border-top: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ✦ TOP BANNER (Supabase-driven marketing bar — banner.js)
═══════════════════════════════════════════════════════════════════════════════ */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  height: 44px;
  background: linear-gradient(90deg, #e74d00 0%, #ff7a33 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  max-width: 1160px;
  width: 100%;
  justify-content: center;
}
.top-banner-text {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-banner-cta {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: #fff;
  color: #e74d00;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.top-banner-cta:hover { background: #f0f0f0; }
.top-banner-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.top-banner-close:hover { color: #fff; }

@media (max-width: 600px) {
  .top-banner-inner { gap: 8px; }
  .top-banner-text { font-size: 11px; }
  .top-banner-cta { font-size: 11px; padding: 4px 10px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ✦ SHARED MODAL STYLES (used by Contact modal)
═══════════════════════════════════════════════════════════════════════════════ */
@keyframes soonFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes soonSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.soon-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--w08);
  border: none;
  border-radius: var(--r-md);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--w40);
  cursor: pointer;
  transition: background var(--tx), color var(--tx);
}
.soon-close:hover { background: var(--w15); color: var(--w80); }
.soon-icon  { font-size: 44px; margin-bottom: 20px; line-height: 1; }
.soon-title { font-size: 22px; font-weight: 800; color: var(--w100); letter-spacing: -0.3px; margin-bottom: 12px; }
.soon-desc  { font-size: 14px; color: var(--w55); line-height: 1.75; margin-bottom: 20px; }
.soon-hint  { font-size: 12px; color: var(--w35); font-style: italic; margin-top: 10px; }

.soon-form { display: flex; flex-direction: column; gap: 10px; }
.soon-captcha { display: flex; align-items: center; gap: 10px; }
.soon-captcha-label { font-size: 13px; color: var(--w40); flex: 1; text-align: left; }
.soon-captcha-label strong { color: var(--w60); }
.soon-captcha-input {
  width: 72px;
  flex-shrink: 0;
  padding: 9px 10px;
  background: var(--bg-deep, #0d0d14);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  color: var(--w80);
  font-size: 14px;
  font-family: var(--font);
  text-align: center;
  outline: none;
  transition: border-color var(--tx), box-shadow var(--tx);
  -moz-appearance: textfield;
  appearance: textfield;
}
.soon-captcha-input::-webkit-outer-spin-button,
.soon-captcha-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.soon-captcha-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,195,247,0.10); }
.soon-captcha-input.soon-captcha-error { border-color: rgba(240,96,96,0.7); box-shadow: 0 0 0 3px rgba(240,96,96,0.10); }
.soon-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-deep, #0d0d14);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  color: var(--w80);
  font-size: 14px;
  font-family: var(--font);
  text-align: center;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--tx), box-shadow var(--tx);
}
.soon-input::placeholder { color: var(--w30); }
.soon-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,195,247,0.10); }
.soon-submit { width: 100%; justify-content: center; }

.soon-success {
  margin: 8px 0 16px;
  padding: 20px 16px;
  background: rgba(76,175,138,0.08);
  border: 1px solid rgba(76,175,138,0.22);
  border-radius: var(--r-lg);
}
.soon-success-icon { font-size: 28px; color: #81c784; font-weight: 700; margin-bottom: 8px; }
.soon-success-msg  { font-size: 14px; color: #81c784; font-weight: 600; line-height: 1.5; }
/* ✦ FIN SHARED MODAL STYLES ✦ */

/* ── CONTACT MODAL ───────────────────────────────────────────────────────────── */
.contact-backdrop { position: fixed; inset: 0; background: rgba(6,9,15,0.78); backdrop-filter: blur(8px); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; animation: soonFadeIn 0.18s ease; }
.contact-backdrop[hidden] { display: none; }
.contact-modal { position: relative; background: var(--bg-elevated); border: 1px solid var(--border-md); border-radius: var(--r-2xl); padding: 52px 40px 40px; max-width: 440px; width: 100%; text-align: center; box-shadow: 0 40px 100px rgba(0,0,0,0.65); animation: soonSlideUp 0.24s cubic-bezier(0.34,1.56,0.64,1); }
.contact-textarea { resize: vertical; min-height: 100px; text-align: left; font-family: inherit; line-height: 1.6; }
/* ── FIN CONTACT MODAL ───────────────────────────────────────────────────────── */

/* ── REFERRAL WELCOME BANNER ────────────────────────────────────────────────── */
.ref-welcome-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  background: linear-gradient(90deg, rgba(79,195,247,0.15), rgba(76,175,80,0.15));
  border-bottom: 1px solid rgba(79,195,247,0.3);
  backdrop-filter: blur(12px);
  animation: refBannerSlide 0.4s ease;
}
@keyframes refBannerSlide { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.ref-welcome-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ref-welcome-icon { color: var(--accent, #4fc3f7); display: flex; align-items: center; }
.ref-welcome-text { flex: 1; font-size: 14px; color: #e0e0e0; line-height: 1.5; }
.ref-welcome-text strong { color: #4fc3f7; }
.ref-welcome-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
}
.ref-welcome-close:hover { color: #fff; }
/* ── FIN REFERRAL BANNER ────────────────────────────────────────────────────── */
