/* ============================================================
   CalcInvest — Design System v2
   Clean white · fintech premium · Finary-inspired
   Inspiration : Finary / Linear / Stripe
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* ── Palette principale — Clean White ─────────────────────── */
  --bg:          #F7F8FA;   /* off-white neutre, reposant */
  --bg-2:        #EFF1F5;   /* sidebar / zones secondaires */
  --bg-3:        #E4E7EF;   /* sub-panels / thead tables */
  --bg-card:     #FFFFFF;   /* cartes — pur blanc */
  --bg-elev:     #FFFFFF;   /* modals, dropdowns */
  --bg-hover:    #F0F2F6;   /* hover states */

  --border:        #E2E5EC;
  --border-soft:   #EAECF2;
  --border-strong: #C8CDD9;

  --text:        #111827;   /* near-black neutre */
  --text-2:      #374151;
  --text-3:      #6B7280;
  --text-4:      #9CA3AF;

  /* Accent emerald — légèrement plus saturé sur fond blanc */
  --accent:      #059669;
  --accent-2:    #047857;
  --accent-soft: rgba(5, 150, 105, 0.08);
  --accent-mid:  rgba(5, 150, 105, 0.18);
  --accent-glow: rgba(5, 150, 105, 0.22);

  /* Signals */
  --red:         #DC2626;
  --red-soft:    rgba(220, 38, 38, 0.07);
  --yellow:      #D97706;
  --yellow-soft: rgba(217, 119, 6, 0.07);
  --purple:      #7C3AED;
  --purple-soft: rgba(124, 58, 237, 0.07);
  --blue:        #2563EB;
  --blue-soft:   rgba(37, 99, 235, 0.07);
  --orange:      #EA580C;

  /* Typography */
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Radius — généreux */
  --r-sm:        8px;
  --r:           12px;
  --r-lg:        16px;
  --r-xl:        24px;
  --r-full:      999px;

  /* Shadows — multi-couches très subtiles, élévation sans agressivité */
  --shadow-sm:   0 1px 2px rgba(26, 26, 25, 0.04);
  --shadow:      0 1px 2px rgba(26, 26, 25, 0.04), 0 4px 12px rgba(26, 26, 25, 0.04);
  --shadow-md:   0 2px 4px rgba(26, 26, 25, 0.04), 0 8px 24px rgba(26, 26, 25, 0.06);
  --shadow-lg:   0 4px 12px rgba(26, 26, 25, 0.06), 0 16px 40px rgba(26, 26, 25, 0.08);
  --shadow-glow: 0 0 0 1px rgba(5, 150, 105, 0.10), 0 0 24px rgba(5, 150, 105, 0.12);

  /* Transitions */
  --t-fast:      140ms cubic-bezier(0.4, 0, 0.2, 1);
  --t:           240ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:      360ms cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --sidebar-w:   272px;
  --topbar-h:    64px;
  --content-max: 1100px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

/* SVG safety net — empêche tout SVG sans size d'envahir la page (FOUC) */
svg:not([width]):not([height]) {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  font-feature-settings: 'cv11', 'ss01', 'ss03', 'cv02';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Gradient très subtil — touche premium sans distraction */
  background-image:
    radial-gradient(ellipse 1400px 500px at 60% -60px, rgba(5, 150, 105, 0.055) 0%, transparent 70%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
h1 { letter-spacing: -0.035em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent-mid); color: var(--text); }

/* Scrollbar — fine et discrète */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26, 26, 25, 0.12); border-radius: 4px; transition: background var(--t-fast); }
::-webkit-scrollbar-thumb:hover { background: rgba(26, 26, 25, 0.22); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  background: rgba(247, 248, 250, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  /* CSS grid : colonne gauche/droite égales → nav TOUJOURS centré */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  flex-shrink: 0;
}
.topbar-center {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

/* Nav links dans le topbar (landing) */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.topbar-nav-link {
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-3);
  border-radius: var(--r);
  transition: var(--t-fast);
  white-space: nowrap;
}
.topbar-nav-link:hover { color: var(--text); background: var(--bg-hover); }
.topbar-nav-link.active { color: var(--text); font-weight: 600; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.logo-icon svg { width: 20px; height: 20px; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text-main { font-size: 15px; }
.logo-text-sub {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* Topbar toggle (Bourse / Crypto / Composés / Immobilier / FIRE) */
.segmented {
  display: inline-flex;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 4px;
  gap: 2px;
  white-space: nowrap;
}
.segmented-btn {
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
  border-radius: calc(var(--r) - 4px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--t-fast);
  text-decoration: none;
  letter-spacing: -0.005em;
}
.segmented-btn:hover { color: var(--text); background: var(--bg-hover); }
.segmented-btn.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.segmented-btn.active:hover { background: var(--bg-card); }
.segmented-btn svg { width: 13px; height: 13px; opacity: 0.85; }
.segmented-btn.active svg { color: var(--accent); opacity: 1; }

/* Topbar secondary button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: var(--t-fast);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-elev); }
.btn-ghost svg { width: 14px; height: 14px; }
.btn-ghost .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow);
}

/* ---------- Layout shell (sidebar + main) ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: calc(100vh - var(--topbar-h));
}
.sidebar {
  padding: 32px 18px;
  background: transparent;       /* fusion visuelle avec le canvas/body */
  border-right: 1px solid var(--border-soft);
}
.sidebar-section { margin-bottom: 28px; }
.sidebar-title {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--text-4);
  text-transform: uppercase;
  padding: 0 12px;
  margin-bottom: 10px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--r);
  color: var(--text-2);
  font-weight: 500;
  font-size: 13px;
  border: 1px solid transparent;
  transition: var(--t-fast);
  margin-bottom: 1px;
  position: relative;
}
.sidebar-link:hover {
  color: var(--text);
  background: var(--bg-hover);
}
.sidebar-link.active {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.sidebar-link.active .sidebar-icon {
  background: var(--accent-soft);
  border-color: var(--accent-mid);
  color: var(--accent);
}
.sidebar-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--text-3);
  transition: var(--t-fast);
}
.sidebar-icon svg { width: 14px; height: 14px; }
.sidebar-link:hover .sidebar-icon { color: var(--text-2); background: var(--bg-card); }
.sidebar-link-text { display: flex; flex-direction: column; gap: 1px; }
.sidebar-link-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-4);
  text-transform: uppercase;
  font-weight: 600;
}
.sidebar-link-title { font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }

/* ---------- Main content ---------- */
.main {
  padding: 56px 64px 96px;
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}
.page-header { margin-bottom: 48px; }
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 18px;
  padding: 5px 10px 5px 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
}
.page-eyebrow-icon {
  width: 22px; height: 22px;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.page-eyebrow-icon svg { width: 11px; height: 11px; }
.page-title {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--text) 0%, #2D2D2C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-lede {
  color: var(--text-2);
  font-size: 16px;
  max-width: 680px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

/* ---------- Accordion (sections) ---------- */
.accordion {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.accordion:hover { box-shadow: var(--shadow); }
.accordion-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  user-select: none;
  transition: background var(--t-fast);
}
.accordion-header:hover { background: var(--bg-hover); }
.accordion-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.accordion-icon svg { width: 18px; height: 18px; }
.accordion-titles { flex: 1; min-width: 0; }
.accordion-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.015em; }
.accordion-summary {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.accordion-chevron {
  color: var(--text-4);
  transition: transform var(--t), color var(--t-fast);
  flex-shrink: 0;
}
.accordion-chevron svg { width: 18px; height: 18px; }
.accordion-header:hover .accordion-chevron { color: var(--text-2); }
.accordion.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.accordion.open .accordion-body { max-height: 4000px; }
.accordion-body-inner { padding: 8px 26px 26px; }

/* Subsection (inside accordion body) */
.subsection {
  padding: 24px 0;
  border-top: 1px solid var(--border-soft);
}
.subsection:first-child { padding-top: 12px; border-top: none; }
.subsection-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.subsection-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.subsection-icon svg { width: 13px; height: 13px; }
.subsection-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.subsection-hint {
  font-size: 12px;
  color: var(--text-3);
  margin-left: 6px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

/* ---------- Fields & Steppers ---------- */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}
.field-hint {
  font-size: 11px;
  color: var(--text-3);
}

/* Stepper (base input with ± buttons and unit) */
.stepper {
  display: grid;
  grid-template-columns: 38px 1fr auto 38px;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stepper:hover { border-color: var(--border-strong); }
.stepper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-sm);
}
.stepper-btn {
  display: grid; place-items: center;
  color: var(--text-3);
  font-size: 16px;
  font-weight: 400;
  transition: var(--t-fast);
  user-select: none;
}
.stepper-btn:hover { color: var(--text); background: var(--bg-hover); }
.stepper-btn:active { background: var(--bg-3); }
.stepper-input {
  background: transparent;
  border: none;
  outline: none;
  padding: 11px 4px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  width: 100%;
  min-width: 0;
  -moz-appearance: textfield;
  font-variant-numeric: tabular-nums;
}
.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stepper-unit {
  display: grid; place-items: center;
  padding: 0 10px 0 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Select (same look as stepper) */
.select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 11px 38px 11px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23A3A3A0'><path d='M4 6l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  transition: var(--t-fast);
  width: 100%;
  box-shadow: var(--shadow-sm);
}
.select:hover { border-color: var(--border-strong); }
.select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-sm);
}

/* Pills (presets row below a stepper) */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.pill {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  transition: var(--t-fast);
  cursor: pointer;
}
.pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-hover);
}
.pill.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r);
  transition: var(--t-fast);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #FFFFFF;
  border: 1px solid var(--accent-2);
  box-shadow: 0 1px 2px rgba(5, 150, 105, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--accent-2) 0%, #036A4F 100%);
  border-color: #036A4F;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-mid);
}
.btn-outline:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-danger {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid var(--red);
}
.btn-danger:hover { background: var(--red); color: white; }

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ---------- Stats row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), border-color var(--t-fast), transform var(--t-fast);
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(5, 150, 105, 0.025) 100%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.stat:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stat:hover::before { opacity: 1; }
.stat-label {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.stat-value {
  position: relative;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-value-sm { font-size: 20px; }
.stat-sub {
  position: relative;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.stat-value.pos { color: var(--accent); }
.stat-value.neg { color: var(--red); }
.stat-value.warn { color: var(--yellow); }
.stat-value.info { color: var(--purple); }

/* ---------- Card (panel) ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-soft);
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 11px;
  letter-spacing: -0.01em;
}
.card-title-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.card-title-icon svg { width: 14px; height: 14px; }
.card-meta {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.card-body { padding: 24px; }
.card-body.no-pad { padding: 0; }

/* ---------- Chart ---------- */
.chart-wrap {
  position: relative;
  height: 320px;
  width: 100%;
}
.chart-wrap canvas { display: block; width: 100%; height: 100%; }
.chart-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 12px 22px 18px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-2);
  font-family: var(--font-mono);
}
.legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------- Table ---------- */
.data-table {
  font-family: var(--font-mono);
  font-size: 12px;
}
.data-table thead {
  position: sticky;
  top: 0;
  background: var(--bg-3);
  z-index: 1;
}
.data-table th {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  text-align: right;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.data-table th:first-child { text-align: left; }
.data-table td {
  padding: 9px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.data-table td:first-child { text-align: left; color: var(--text); font-weight: 500; }
.data-table tbody tr:hover { background: var(--bg-hover); }
.data-table .pos { color: var(--accent); }
.data-table .neg { color: var(--red); }
.table-scroll {
  max-height: 440px;
  overflow-y: auto;
}

/* ---------- Tabs ---------- */
.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 18px;
}
.tab-btn {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: calc(var(--r) - 4px);
  transition: var(--t-fast);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  background: var(--bg-elev);
  color: var(--text);
}

/* ---------- Info box ---------- */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 14px 18px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}
.info-box-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-box ul { margin: 6px 0 0; padding-left: 18px; }
.info-box li { margin-bottom: 4px; }
.info-box strong { color: var(--text); font-weight: 600; }
.info-box.warn { border-left-color: var(--yellow); }
.info-box.warn .info-box-title { color: var(--yellow); }

/* ---------- Insight box (lecture d'analyse, généré dynamiquement) ---------- */
.insight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--accent-soft) 100%);
  border: 1px solid var(--accent-mid);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  margin-top: 14px;
  margin-bottom: 22px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.005em;
  box-shadow: var(--shadow-sm);
}
.insight-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  margin-top: 1px;
  box-shadow: 0 1px 2px rgba(5, 150, 105, 0.20);
}
.insight-icon svg { width: 14px; height: 14px; }
.insight-text { flex: 1; min-width: 0; }
.insight strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.insight em { font-style: normal; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.insight .pos { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.insight .neg { color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }
.insight .warn { color: var(--yellow); font-weight: 600; font-variant-numeric: tabular-nums; }
.insight .muted { color: var(--text-3); }
.insight:empty { display: none; }

/* ---------- Tool cards (landing) — v2 Finary style ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

/* Catégorie d'outils */
.tools-category {
  margin-bottom: 48px;
}
.tools-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.tools-category-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.tools-category-icon svg { width: 14px; height: 14px; }
.tools-category-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.tools-category-count {
  font-size: 11px;
  color: var(--text-4);
  font-family: var(--font-mono);
  margin-left: auto;
}

.tool-card {
  --card-color: var(--accent);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: box-shadow var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.tool-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.tool-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--card-color);
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.tool-card:hover::after { opacity: 1; }

.tool-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--card-color) 10%, transparent);
  color: var(--card-color);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform var(--t-fast);
}
.tool-card:hover .tool-card-icon { transform: scale(1.08); }
.tool-card-icon svg { width: 20px; height: 20px; }

.tool-card-body { flex: 1; min-width: 0; }
.tool-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.tool-card-desc {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.55;
  margin-bottom: 10px;
}
.tool-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
}
.tool-card-tag .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.tool-card.locked {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* Flèche hover */
.tool-card-arrow {
  flex-shrink: 0;
  color: var(--text-4);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast);
  align-self: center;
}
.tool-card:hover .tool-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Toast ---------- */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  font-size: 13px;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastIn var(--t-slow);
  max-width: 360px;
}
.toast.error { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--yellow); }
.toast.out { animation: toastOut var(--t) forwards; }
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  to { transform: translateX(100%); opacity: 0; }
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn var(--t);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn var(--t-slow);
}
@keyframes modalIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 15px; font-weight: 600; }
.modal-close {
  color: var(--text-3);
  padding: 4px;
  line-height: 0;
  transition: var(--t-fast);
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px 22px; }
.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------- Hero (landing) ---------- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  max-width: 760px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  margin-bottom: 28px;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow span:first-child {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  font-size: 0;
}
.hero-title {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text) 0%, #2D2D2C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #2563EB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.hero-lede {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 620px;
  letter-spacing: -0.005em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.1;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.hero-stat-num em {
  font-style: normal;
  color: var(--accent);
}

/* Section eyebrow / heading (entre hero et grid) */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-mono);
}
.section-eyebrow span {
  width: 24px;
  height: 1px;
  background: var(--border-strong);
}
.section-heading {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 12px;
  max-width: 720px;
}
.section-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}

/* ---------- Shared interactive components ---------- */
/* Used across DCA, Locatif, FIRE, Compound — moved out of DCA inline styles */

.mode-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.mode-toggle button {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  border-radius: calc(var(--r) - 4px);
  transition: var(--t-fast);
  letter-spacing: -0.005em;
}
.mode-toggle button:hover { color: var(--text); }
.mode-toggle button.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.toggle-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.toggle-row-text { flex: 1; min-width: 0; }
.toggle-row-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; letter-spacing: -0.01em; }
.toggle-row-sub { font-size: 11px; color: var(--text-3); }

.switch {
  position: relative;
  width: 40px;
  height: 22px;
  background: var(--border-strong);
  border-radius: 999px;
  transition: var(--t-fast);
  flex-shrink: 0;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: var(--t);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}
.switch.on { background: var(--accent); }
.switch.on::after { left: 20px; }
.switch.disabled { opacity: 0.5; cursor: not-allowed; }

.placeholder-card {
  padding: 40px 22px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  color: var(--text-3);
}
.placeholder-card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.placeholder-card-title { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.placeholder-card-desc { font-size: 13px; max-width: 440px; margin: 0 auto; line-height: 1.5; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 80px;
  padding: 30px 48px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
}
.footer a { color: var(--text-2); transition: var(--t-fast); }
.footer a:hover { color: var(--accent); }

/* ---------- Utility ---------- */
.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }
.text-pos { color: var(--accent) !important; }
.text-neg { color: var(--red) !important; }
.text-warn { color: var(--yellow) !important; }
.text-muted { color: var(--text-3) !important; }

/* ---------- Anim enter ---------- */
.fade-in {
  animation: slideUp var(--t-slow) both;
}
@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky;
    top: var(--topbar-h);
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 14px;
    overflow-x: auto;
    background: var(--bg);
    z-index: 20;
  }
  .sidebar-section { display: inline-block; margin-right: 20px; margin-bottom: 0; vertical-align: top; }
  .main { padding: 24px 20px 60px; }
  .page-title { font-size: 28px; }
  .hero-title { font-size: 36px; }
  .hero { padding: 30px 0; }
  .field-grid { grid-template-columns: 1fr; gap: 12px; }
  .topbar { padding: 0 14px; }
  .topbar-center { position: static; transform: none; }
  .logo-text-sub { display: none; }
  /* Pack 5 buttons tighter on small screens */
  .segmented-btn { padding: 6px 9px; font-size: 12px; gap: 5px; }
  /* Hero responsive */
  .hero { padding: 40px 0 30px; }
  .hero-title { font-size: 40px; letter-spacing: -0.03em; }
  .hero-lede { font-size: 16px; }
  .hero-stats { gap: 18px 28px; margin-top: 28px; padding-top: 20px; }
  .hero-stat-num { font-size: 22px; }
  .section-heading { font-size: 24px; }
  .section-sub { font-size: 14px; }
}
@media (max-width: 640px) {
  .topbar-center { display: none; }
  .topbar-right .btn-ghost span { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer { padding: 24px 20px; flex-direction: column; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .sidebar, .footer, .btn-row, .card-header button, .tabs { display: none !important; }
  .shell { grid-template-columns: 1fr; }
  .main { padding: 0; max-width: 100%; }
  body { background: white; color: black; }
  .card, .stat, .accordion { border-color: #ccc; background: white; page-break-inside: avoid; }
  .accordion-body { max-height: none !important; }
  .stat-value { color: black; }
}

/* ---------- Glossary terms (tooltips) ---------- */
.term {
  border-bottom: 1px dashed var(--accent);
  cursor: help;
  font-style: normal;
}
.term:hover {
  background: rgba(52, 211, 153, 0.08);
  border-bottom-style: solid;
}

/* ---------- Comparison bar (mes-projets) ---------- */
#compare-bar {
  font-family: var(--font);
}

@media print {
  .term { border-bottom: none; }
  .ci-tooltip { display: none !important; }
}

/* ============================================================
   DARK THEME (toggle via [data-theme="dark"] sur <html>)
   ============================================================
   Palette dark cohérente avec l'identité Stone Warm :
   tonalités gris-bleu profondes, accent emerald-400 plus clair
   pour conserver le contraste WCAG AA sur fond sombre.
   ============================================================ */
[data-theme="dark"] {
  --bg:          #0F1419;
  --bg-2:        #161C23;
  --bg-3:        #1F2731;
  --bg-card:     #161C23;
  --bg-elev:     #1F2731;
  --bg-hover:    #242E3A;

  --border:        #2A3441;
  --border-soft:   #1F2731;
  --border-strong: #3A4554;

  --text:        #ECEEF1;
  --text-2:      #BAC2CC;
  --text-3:      #8893A2;
  --text-4:      #5C6878;

  --accent:      #34D399;
  --accent-2:    #10B981;
  --accent-soft: rgba(52, 211, 153, 0.10);
  --accent-mid:  rgba(52, 211, 153, 0.20);
  --accent-glow: rgba(52, 211, 153, 0.25);

  --red:         #F87171;
  --red-soft:    rgba(248, 113, 113, 0.12);
  --yellow:      #FBBF24;
  --yellow-soft: rgba(251, 191, 36, 0.12);
  --purple:      #A78BFA;
  --purple-soft: rgba(167, 139, 250, 0.12);
}

/* Theme toggle button (injecté dans .topbar-right par JS) */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--bg-elev);
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  margin-right: 6px;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.theme-toggle svg { width: 16px; height: 16px; }

/* Smooth transition au switch (sauf prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  body, .card, .accordion, .stat, .stepper, .pill, .btn, .insight, .info-box, .ci-tooltip {
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
  }
}

/* ============================================================
   LANDING PAGE — Hero, stats, catégories (v2)
   ============================================================ */

/* Hero */
.landing-hero {
  text-align: center;
  padding: 80px 16px 64px;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  width: 20px; height: 20px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent);
}
.hero-badge-dot svg { width: 10px; height: 10px; }

.landing-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--text);
}
.landing-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #10B981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.landing-hero p {
  font-size: 17px;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-btn {
  font-size: 14px;
  padding: 12px 24px;
}

/* Stats bar sous le hero */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
}
.hero-stat {
  flex: 1;
  min-width: 160px;
  padding: 18px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
}
.hero-stat-num em { font-style: normal; color: var(--accent); }
.hero-stat-label {
  font-size: 11.5px;
  color: var(--text-4);
  font-weight: 500;
}

/* Section heading pour les catégories */
.section-heading-wrap {
  margin-bottom: 28px;
}
.section-eyebrow-v2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-heading-v2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
}
.section-sub-v2 {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 580px;
}

/* Séparateur de catégorie */
.category-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 48px 0 24px;
}
.category-divider-icon {
  width: 36px; height: 36px;
  border-radius: var(--r);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}
.category-divider-icon svg { display: block; }
.category-divider-text { flex: 1; min-width: 0; }
.category-divider-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.category-divider-desc {
  font-size: 12.5px;
  color: var(--text-4);
  margin-top: 1px;
}
.category-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.category-divider-count {
  font-size: 11px;
  color: var(--text-4);
  font-family: var(--font-mono);
  background: var(--bg-3);
  padding: 3px 9px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
}

/* Feature strip (social proof) */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin: 56px 0;
}
.feature-strip-item {
  background: var(--bg-card);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-strip-icon {
  width: 40px; height: 40px;
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.feature-strip-icon svg { width: 18px; height: 18px; }
.feature-strip-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; letter-spacing: -0.01em; }
.feature-strip-desc  { font-size: 12.5px; color: var(--text-3); line-height: 1.55; }

/* CTA premium inline */
.premium-strip {
  background: linear-gradient(135deg, var(--text) 0%, #1F2937 100%);
  border-radius: var(--r-xl);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 56px 0;
  flex-wrap: wrap;
}
.premium-strip-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.premium-strip-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
}
.premium-strip-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #FFFFFF;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--r);
  transition: var(--t-fast);
  white-space: nowrap;
}
.btn-white:hover { background: #F3F4F6; transform: translateY(-1px); }
.btn-white-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--t-fast);
  white-space: nowrap;
}
.btn-white-outline:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* Footer v2 */
.footer-v2 {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 48px 48px 32px;
}
.footer-v2-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand-desc { font-size: 13px; color: var(--text-3); line-height: 1.65; max-width: 240px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13.5px; color: var(--text-3); transition: var(--t-fast); }
.footer-links a:hover { color: var(--text); }
.footer-v2-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-4);
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

/* Landing main wrapper */
.landing-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

/* ============================================================
   AUTH — Topbar user zone
   ============================================================ */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent-2);
  border-radius: var(--r);
  transition: var(--t-fast);
  white-space: nowrap;
}
.btn-accent:hover { background: var(--accent-2); }

/* User menu */
.user-menu-wrap { position: relative; }
.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--r);
  transition: var(--t-fast);
}
.user-avatar-btn:hover { background: var(--bg-hover); }
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent-mid);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.user-badge-premium {
  font-size: 11px;
  color: var(--yellow);
  margin-left: -2px;
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
}
.user-dropdown.open { display: block; }

.user-dropdown-header { padding: 14px 16px 12px; }
.user-dropdown-email { font-size: 13px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown-plan {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.user-dropdown-plan.gratuit { background: var(--bg-3); color: var(--text-3); }
.user-dropdown-plan.premium { background: rgba(217,119,6,0.12); color: var(--yellow); }

.user-dropdown-divider { height: 1px; background: var(--border-soft); margin: 0; }

.user-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-align: left;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--t-fast);
}
.user-dropdown-item:hover { background: var(--bg-hover); color: var(--text); }
.user-dropdown-item.accent { color: var(--accent); font-weight: 600; }
.user-dropdown-item.danger { color: var(--red); }
.user-dropdown-item.danger:hover { background: var(--red-soft); }

/* ============================================================
   PAYWALL — overlay sur sections premium
   ============================================================ */
.paywall-wrapped { position: relative; overflow: hidden; min-height: 220px; border-radius: var(--r-lg); }

.paywall-content-blur {
  filter: blur(6px);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
  min-height: 200px;
  overflow: hidden;
  max-height: 340px;
}

.paywall-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    rgba(241,237,229,0.1) 0%,
    rgba(241,237,229,0.92) 40%,
    rgba(241,237,229,0.98) 100%
  );
  z-index: 10;
  padding: 24px;
}

.paywall-card {
  text-align: center;
  max-width: 360px;
}

.paywall-icon {
  font-size: 28px;
  color: var(--yellow);
  margin-bottom: 12px;
}

.paywall-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.paywall-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.55;
  margin-bottom: 20px;
}

.paywall-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.paywall-btn-primary {
  display: inline-block;
  padding: 11px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--r);
  text-decoration: none;
  transition: var(--t-fast);
  letter-spacing: -0.01em;
}
.paywall-btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow); }

.paywall-btn-ghost {
  font-size: 12.5px;
  color: var(--text-3);
  text-decoration: none;
  transition: var(--t-fast);
}
.paywall-btn-ghost:hover { color: var(--accent); }

.paywall-features {
  display: flex;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-3);
  flex-wrap: wrap;
  justify-content: center;
}
.paywall-features span { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   AUTH PAGES — formulaires connexion/inscription
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: 36px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.025em;
}
.auth-logo-icon {
  width: 40px; height: 40px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.auth-title { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 6px; text-align: center; }
.auth-sub   { font-size: 13.5px; color: var(--text-3); text-align: center; margin-bottom: 28px; }

.auth-field { margin-bottom: 16px; }
.auth-label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.auth-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--text);
  transition: var(--t-fast);
  outline: none;
}
.auth-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-input.error { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

.auth-btn {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  transition: var(--t-fast);
  margin-top: 8px;
  letter-spacing: -0.01em;
}
.auth-btn:hover:not(:disabled) { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-error {
  padding: 10px 14px;
  background: var(--red-soft);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: var(--r);
  font-size: 13px;
  color: var(--red);
  margin-bottom: 16px;
  display: none;
}
.auth-error.visible { display: block; }

.auth-success {
  padding: 10px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  border-radius: var(--r);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
  display: none;
  text-align: center;
}
.auth-success.visible { display: block; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-4); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-link { font-size: 13px; color: var(--text-3); text-align: center; margin-top: 20px; }
.auth-link a { color: var(--accent); font-weight: 500; }
.auth-link a:hover { text-decoration: underline; }

.auth-terms { font-size: 11.5px; color: var(--text-4); text-align: center; margin-top: 16px; line-height: 1.6; }
.auth-terms a { color: var(--text-3); text-decoration: underline; }

/* ============================================================
   PRICING PAGE — abonnement.html
   ============================================================ */
.pricing-hero {
  text-align: center;
  padding: 60px 16px 48px;
  max-width: 640px;
  margin: 0 auto;
}
.pricing-hero h1 { font-size: 36px; letter-spacing: -0.04em; margin-bottom: 12px; }
.pricing-hero p  { font-size: 16px; color: var(--text-3); line-height: 1.6; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 16px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

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

.pricing-plan-name { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.pricing-price { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; color: var(--text); line-height: 1; }
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--text-3); }
.pricing-price-sub { font-size: 12.5px; color: var(--text-4); margin-top: 4px; margin-bottom: 24px; }

.pricing-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-features li.off { color: var(--text-4); }
.pricing-features li.off::before { content: '—'; color: var(--text-4); }

.pricing-btn {
  display: block;
  width: 100%;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border-radius: var(--r);
  transition: var(--t-fast);
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.pricing-btn-accent { background: var(--accent); color: #fff; }
.pricing-btn-accent:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.pricing-btn-outline { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.pricing-btn-outline:hover { border-color: var(--border-strong); background: var(--bg-hover); }

/* Note sécurité sous bouton */
.pricing-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-4);
  text-align: center;
  margin-top: 12px;
}

.pricing-faq { max-width: 620px; margin: 0 auto 60px; padding: 0 16px; }
.pricing-faq h2 { font-size: 22px; margin-bottom: 20px; text-align: center; }
.pricing-faq .accordion { margin-bottom: 8px; }

/* ============================================================
   LANDING — fixes section spacing
   ============================================================ */
#outils { padding-top: 56px; }

/* ============================================================
   PRICING PAGE v2 — abonnement.html
   ============================================================ */
.pricing-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Hero */
.pricing-hero-v2 {
  text-align: center;
  padding: 72px 16px 60px;
  max-width: 680px;
  margin: 0 auto;
}
.pricing-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-family: var(--font-mono);
}
.pricing-hero-v2 h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 18px;
}
.pricing-hero-v2 h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #10B981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pricing-hero-v2 > p {
  font-size: 16px;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto;
}

/* Plans */
.pricing-plans-wrap {
  max-width: 840px;
  margin: 0 auto 80px;
}

/* Feature unlock grid */
.pricing-unlock-wrap {
  max-width: 880px;
  margin: 0 auto 80px;
}
.pricing-unlock-head {
  text-align: center;
  margin-bottom: 36px;
}
.pricing-unlock-head h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.pricing-unlock-head p {
  font-size: 14px;
  color: var(--text-3);
}
.pricing-unlock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pricing-unlock-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.pricing-unlock-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pricing-unlock-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.pricing-unlock-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pricing-unlock-icon svg { width: 18px; height: 18px; }
.pricing-unlock-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.pricing-unlock-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pricing-unlock-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}
.pricing-unlock-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Trust signals */
.pricing-trust-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 840px;
  margin: 0 auto 80px;
}
.pricing-trust-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.pricing-trust-icon {
  width: 48px; height: 48px;
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin: 0 auto 14px;
}
.pricing-trust-icon svg { width: 22px; height: 22px; }
.pricing-trust-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.pricing-trust-desc  { font-size: 12.5px; color: var(--text-3); line-height: 1.55; }

/* FAQ v2 — div-based (not <details>) */
.pricing-faq-wrap {
  max-width: 640px;
  margin: 0 auto 80px;
}
.pricing-faq-wrap h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 32px;
}
.pricing-faq-wrap .accordion-header {
  padding: 18px 22px;
}
.pricing-faq-wrap .accordion-header span {
  flex: 1;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.pricing-faq-wrap .accordion-body-inner {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
  padding: 4px 22px 22px;
}

/* Final CTA */
.pricing-cta-final {
  text-align: center;
  padding: 0 16px 96px;
  max-width: 520px;
  margin: 0 auto;
}
.pricing-cta-final h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.pricing-cta-final p {
  font-size: 15px;
  color: var(--text-3);
  margin-bottom: 28px;
}
.pricing-cta-sub {
  font-size: 12px;
  color: var(--text-4);
  margin-top: 12px;
}

/* Banners success/cancel */
.pricing-banner-success {
  display: none;
  margin: 24px auto;
  padding: 16px 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  border-radius: var(--r-lg);
  text-align: center;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  max-width: 640px;
}
.pricing-banner-cancel {
  display: none;
  margin: 24px auto;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  max-width: 640px;
}

/* Paywall overlay — fix background pour palette clean white */
.paywall-overlay {
  background: linear-gradient(
    to bottom,
    rgba(247, 248, 250, 0.10) 0%,
    rgba(247, 248, 250, 0.92) 40%,
    rgba(247, 248, 250, 0.98) 100%
  );
}

/* Responsive pricing */
@media (max-width: 768px) {
  .pricing-page { padding: 0 16px; }
  .pricing-unlock-grid { grid-template-columns: 1fr; }
  .pricing-trust-wrap { grid-template-columns: 1fr; }
  .pricing-faq-wrap { padding: 0; }
}
@media (max-width: 640px) {
  .topbar { grid-template-columns: auto 1fr auto; padding: 0 16px; }
  .topbar-nav { display: none; }
}

/* ============================================================
   SCROLL ANIMATIONS — reveal on viewport entry
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Smooth scroll natif */
html { scroll-behavior: smooth; scroll-padding-top: 72px; } /* subnav 48 + marge 24 (topbar cachée au scroll) */

/* ============================================================
   TOPBAR — état compact au scroll
   ============================================================ */
.topbar {
  transition: height 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.topbar.is-scrolled {
  height: 56px;
  box-shadow: 0 1px 0 var(--border-soft), 0 4px 14px rgba(15, 23, 42, 0.04);
  background: rgba(247, 248, 250, 0.94);
}
.topbar.is-scrolled .logo-icon { width: 32px; height: 32px; }
.topbar.is-scrolled .logo-icon svg { width: 18px; height: 18px; }
.topbar.is-scrolled .logo-text-main { font-size: 14px; }

/* ============================================================
   HERO — barre d'action immédiate (style pokeventes)
   ============================================================ */
.hero-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 8px 8px 8px 22px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 8px 28px rgba(15,23,42,0.05);
  margin-top: 28px;
  max-width: 580px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.hero-action-bar:hover {
  box-shadow: 0 2px 4px rgba(15,23,42,0.06), 0 12px 32px rgba(15,23,42,0.08);
  transform: translateY(-1px);
}
.hero-action-bar select {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236B7280'><path d='M4 6l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 14px;
  padding-right: 24px;
}
.hero-action-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  border: none;
  padding: 12px 22px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: var(--t-fast);
  box-shadow: 0 1px 2px rgba(5,150,105,0.18), inset 0 1px 0 rgba(255,255,255,0.18);
  white-space: nowrap;
}
.hero-action-bar button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(5,150,105,0.25), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* ============================================================
   PERSONA SECTION — "Par profil d'investisseur" cliquables
   ============================================================ */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.persona-card {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.persona-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, var(--persona-color, var(--accent)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.persona-card:hover {
  transform: translateY(-4px);
  border-color: var(--persona-color, var(--accent));
  box-shadow: 0 20px 40px rgba(15,23,42,0.08);
}
.persona-card:hover::before { opacity: 0.10; }
.persona-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--persona-color, var(--accent)) 12%, transparent);
  color: var(--persona-color, var(--accent));
  display: grid; place-items: center;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}
.persona-card:hover .persona-card-icon { transform: scale(1.08); }
.persona-card-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 6px;
  position: relative;
}
.persona-card-quote {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 10px;
  position: relative;
}
.persona-card-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.55;
  margin-bottom: 18px;
  position: relative;
}
.persona-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  position: relative;
}
.persona-card-tool {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  background: var(--bg-2);
  padding: 4px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-soft);
}
.persona-card-arrow {
  position: absolute;
  bottom: 22px;
  right: 22px;
  color: var(--persona-color, var(--accent));
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.persona-card:hover .persona-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   TESTIMONIALS — cards de témoignages
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.testimonial-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  color: #F59E0B;
}
.testimonial-quote {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 18px;
  letter-spacing: -0.005em;
}
.testimonial-quote::before {
  content: '«';
  font-size: 32px;
  font-family: Georgia, serif;
  color: var(--accent);
  line-height: 0;
  vertical-align: -10px;
  margin-right: 4px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-3));
  color: var(--accent);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 1px solid var(--accent-mid);
  flex-shrink: 0;
}
.testimonial-author-info { flex: 1; min-width: 0; }
.testimonial-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.testimonial-author-role {
  font-size: 11.5px;
  color: var(--text-4);
  font-family: var(--font-mono);
  margin-top: 1px;
}

/* ============================================================
   BLOG TEASER
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: block;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.blog-card-cover {
  height: 140px;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.blog-card-cover svg { opacity: 0.6; transition: transform 0.4s ease, opacity 0.4s ease; }
.blog-card:hover .blog-card-cover svg { transform: scale(1.1); opacity: 0.85; }
.blog-card-body { padding: 20px 22px; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-4);
  font-family: var(--font-mono);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.blog-card-meta-tag {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 9px;
  border-radius: var(--r-full);
  font-weight: 600;
}
.blog-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-bottom: 10px;
}
.blog-card-excerpt {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.55;
}
.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
  transition: gap 0.2s ease;
}
.blog-card:hover .blog-card-link { gap: 9px; }

/* ============================================================
   RELATED TOOLS — interconnectivité bas de page simulateur
   ============================================================ */
.related-tools {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-tools-head {
  margin-bottom: 20px;
}

/* ============================================================
   HOVER LIFT — pour tool-card, stat, etc.
   ============================================================ */
.tool-card,
.stat,
.testimonial-card,
.blog-card,
.persona-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.25s ease;
}

/* ============================================================
   FLOATING CTA — bouton flottant qui apparaît au scroll
   ============================================================ */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 12px 16px;
  background: var(--text);
  color: var(--bg-card);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15,23,42,0.22), 0 2px 4px rgba(15,23,42,0.12);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-cta:hover {
  background: var(--accent);
  color: #fff;
}
.floating-cta-icon {
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  transition: background 0.2s ease;
}
.floating-cta:hover .floating-cta-icon { background: rgba(255,255,255,0.2); }
@media (max-width: 640px) {
  .floating-cta { bottom: 16px; right: 16px; padding: 10px 16px 10px 12px; font-size: 12.5px; }
}

/* ============================================================
   HOME V3 — Hero full-bleed style pokeventes (adapté finance)
   ============================================================ */

/* Wrapper full-bleed avec gradient background pour le hero */
.v3-hero-bg {
  position: relative;
  margin: 0;
  padding: 96px 0 120px;
  overflow: hidden;
  /* Background subtil avec accents emerald + sombre du bas */
  background:
    radial-gradient(ellipse 1200px 600px at 80% 20%, rgba(5, 150, 105, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 800px 500px at 10% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
}
/* Pattern watermark subtil de pièces / graphes au fond du hero */
.v3-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(5,150,105,0.04) 1.5px, transparent 2px),
    radial-gradient(circle at 75% 70%, rgba(37,99,235,0.03) 1.5px, transparent 2px);
  background-size: 60px 60px, 80px 80px;
  background-position: 0 0, 30px 30px;
  pointer-events: none;
  opacity: 0.6;
}
.v3-hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-card) 100%);
  pointer-events: none;
}
.v3-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Pill badge style pokeventes */
.v3-hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--bg-card);
  border: 1px solid var(--accent-mid);
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.005em;
  margin-bottom: 32px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 6px 20px rgba(5,150,105,0.06);
}
.v3-hero-pill-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(5,150,105,0.18);
  flex-shrink: 0;
}

/* Titre ÉNORME */
.v3-hero-title {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 640px;
}
.v3-hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #10B981 50%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.v3-hero-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-mid), transparent);
  border-radius: 2px;
}

.v3-hero-lede {
  font-size: 17px;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 32px;
  letter-spacing: -0.005em;
}
.v3-hero-lede strong { color: var(--text); font-weight: 600; }

.v3-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.v3-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  border: 1px solid var(--accent-2);
  border-radius: var(--r-full);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(5,150,105,0.18),
              0 12px 30px rgba(5,150,105,0.22),
              inset 0 1px 0 rgba(255,255,255,0.20);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.v3-hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(5,150,105,0.22),
              0 18px 40px rgba(5,150,105,0.30),
              inset 0 1px 0 rgba(255,255,255,0.20);
}
.v3-hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.v3-hero-btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

/* Hero stats inline mini */
.v3-hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.v3-hero-stat-mini { display: flex; flex-direction: column; gap: 2px; }
.v3-hero-stat-mini-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.v3-hero-stat-mini-num em { font-style: normal; color: var(--accent); }
.v3-hero-stat-mini-label {
  font-size: 11.5px;
  color: var(--text-4);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Hero showcase à droite — mockups dashboard flottants */
.v3-hero-showcase {
  position: relative;
  height: 480px;
  perspective: 1200px;
}
.v3-mock {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04),
              0 24px 48px rgba(15,23,42,0.10),
              0 8px 24px rgba(15,23,42,0.06);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.v3-mock-chart {
  width: 380px;
  top: 20px;
  right: 0;
  transform: rotate(3deg);
  z-index: 3;
}
.v3-mock-chart:hover { transform: rotate(0deg) translateY(-8px); }
.v3-mock-stats {
  width: 280px;
  top: 250px;
  left: 0;
  transform: rotate(-4deg);
  z-index: 2;
}
.v3-mock-stats:hover { transform: rotate(0deg) translateY(-8px); }
.v3-mock-pill-float {
  position: absolute;
  bottom: 40px;
  right: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(5,150,105,0.32);
  z-index: 4;
  transform: rotate(2deg);
  animation: floatPill 4s ease-in-out infinite;
}
@keyframes floatPill {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%      { transform: rotate(2deg) translateY(-8px); }
}
.v3-mock-pill-float-icon {
  width: 24px; height: 24px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: grid; place-items: center;
}

/* Chrome de fenêtre dans les mocks */
.v3-mock-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-2);
}
.v3-mock-chrome-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.v3-mock-chrome-title { font-size: 11px; font-weight: 600; color: var(--text-3); margin-left: 8px; font-family: var(--font-mono); }

/* Chart mock body */
.v3-mock-chart-body { padding: 14px 18px 18px; }
.v3-mock-chart-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}
.v3-mock-chart-stat-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-4);
  text-transform: uppercase;
}
.v3-mock-chart-stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}
.v3-mock-chart-stat-delta {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
}
.v3-mock-chart-svg {
  height: 130px;
  width: 100%;
}

/* Stats mock body */
.v3-mock-stats-body { padding: 16px 18px; display: grid; gap: 12px; }
.v3-mock-stats-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}
.v3-mock-stats-item:last-child { border-bottom: none; padding-bottom: 0; }
.v3-mock-stats-key {
  font-size: 12px;
  color: var(--text-3);
}
.v3-mock-stats-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.v3-mock-stats-val.pos { color: var(--accent); }

/* Responsive hero v3 */
@media (max-width: 980px) {
  .v3-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .v3-hero-bg { padding: 56px 0 80px; }
  .v3-hero-showcase { height: 380px; }
  .v3-mock-chart { width: 340px; }
  .v3-mock-stats { width: 240px; top: 200px; }
}
@media (max-width: 640px) {
  .v3-hero-showcase { display: none; } /* trop chargé sur mobile */
  .v3-hero-title { font-size: 38px; letter-spacing: -0.035em; }
  .v3-hero-lede { font-size: 15px; }
}

/* ============================================================
   PROCESS TIMELINE ZIGZAG (style pokeventes)
   ============================================================ */
.v3-process {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 0 16px;
}
/* Pattern de fond subtil */
.v3-process::before {
  content: '';
  position: absolute;
  inset: -40px -200px;
  background-image:
    radial-gradient(circle at center, var(--border-soft) 1px, transparent 1.5px);
  background-size: 30px 30px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 15%, black 85%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, black 15%, black 85%, transparent 100%);
}
/* Ligne verticale au centre */
.v3-process::after {
  content: '';
  position: absolute;
  top: 60px; bottom: 60px;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--border) 8%,
    var(--border) 92%,
    transparent 100%);
  transform: translateX(-50%);
  z-index: 1;
}
.v3-process-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  margin-bottom: 64px;
  z-index: 2;
}
.v3-process-step:last-child { margin-bottom: 0; }
.v3-process-step-dot {
  grid-column: 2;
  display: grid;
  place-items: center;
  position: relative;
}
.v3-process-step-dot-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--step-color, var(--accent));
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--step-color, var(--accent));
  box-shadow: 0 0 0 6px var(--bg-card), 0 0 0 7px var(--border-soft);
  position: relative;
  z-index: 2;
}
.v3-process-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
}
.v3-process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15,23,42,0.08);
}
.v3-process-step:nth-child(odd) .v3-process-card  { grid-column: 1; margin-right: 24px; }
.v3-process-step:nth-child(even) .v3-process-card { grid-column: 3; margin-left: 24px; }
.v3-process-card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--step-color, var(--accent)) 12%, transparent);
  color: var(--step-color, var(--accent));
  display: grid; place-items: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--step-color, var(--accent)) 18%, transparent);
}
.v3-process-card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.v3-process-card-desc {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.6;
}
.v3-process-card-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--step-color, var(--accent));
  background: color-mix(in srgb, var(--step-color, var(--accent)) 10%, transparent);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
}
@media (max-width: 760px) {
  .v3-process::after { left: 22px; }
  .v3-process-step { grid-template-columns: 44px 1fr; }
  .v3-process-step-dot { grid-column: 1; }
  .v3-process-step:nth-child(odd) .v3-process-card,
  .v3-process-step:nth-child(even) .v3-process-card {
    grid-column: 2;
    margin: 0 0 0 16px;
  }
}

/* ============================================================
   SECTION HEADING — h2 style pokeventes (titre gradient centré)
   ============================================================ */
.v3-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.v3-section-head h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.v3-section-head h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #10B981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v3-section-head p {
  font-size: 16px;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

/* Wrappers de section avec margin top harmonisé */
.v3-section { padding: 88px 0; }
.v3-section-tinted {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
  position: relative;
}
.v3-section-tinted::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, var(--border-soft) 1px, transparent 1.5px);
  background-size: 32px 32px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse 800px 400px at center, black 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 800px 400px at center, black 0%, transparent 70%);
  pointer-events: none;
}
.v3-section-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   PREMIUM CTA v3 — style pokeventes parrainage
   ============================================================ */
.v3-premium-cta {
  position: relative;
  background: linear-gradient(135deg, #0E1116 0%, #1A2028 60%, #0E1116 100%);
  border-radius: var(--r-xl);
  padding: 72px 64px;
  overflow: hidden;
  color: #fff;
}
.v3-premium-cta::before {
  content: '';
  position: absolute;
  top: -150px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(5,150,105,0.22) 0%, transparent 60%);
  pointer-events: none;
}
.v3-premium-cta::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.v3-premium-cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.v3-premium-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(5,150,105,0.18);
  border: 1px solid rgba(5,150,105,0.35);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  font-family: var(--font-mono);
}
.v3-premium-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #fff;
}
.v3-premium-title em {
  font-style: normal;
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v3-premium-desc {
  font-size: 15.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 520px;
}
.v3-premium-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.v3-premium-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  color: #0E1116;
  border-radius: var(--r-full);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.v3-premium-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,0.35); }
.v3-premium-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-full);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s ease;
}
.v3-premium-btn-secondary:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* Liste de features dans le CTA */
.v3-premium-features {
  list-style: none;
  padding: 24px;
  margin: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.v3-premium-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.92);
}
.v3-premium-features-check {
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(5,150,105,0.4);
}
.v3-premium-price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.v3-premium-price-num {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1;
}
.v3-premium-price-period {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.v3-premium-price-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.50);
  margin-top: 4px;
}

@media (max-width: 880px) {
  .v3-premium-cta { padding: 48px 32px; }
  .v3-premium-cta-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   SUB-NAV STICKY — navigation contextuelle par catégorie
   ============================================================ */
.v3-subnav {
  position: fixed !important; /* anti-override : reste collée même si parent change */
  top: 0; /* collée au bord du navigateur — la topbar se cache au scroll, la subnav la remplace */
  left: 0; right: 0;
  z-index: 55; /* AU-DESSUS de la topbar (50) pour bien la couvrir si chevauchement */
  background: rgba(247, 248, 250, 0.96);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 var(--border-soft), 0 4px 14px rgba(15, 23, 42, 0.04);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
              opacity 0.35s ease;
  will-change: transform, opacity;
}
.v3-subnav.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
/* Quand la subnav apparaît, la topbar se rétracte vers le haut pour libérer la place */
.topbar.is-scrolled {
  transform: translateY(-100%);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
              opacity 0.25s ease;
}

.v3-subnav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.v3-subnav-inner::-webkit-scrollbar { display: none; }
.v3-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  border-radius: var(--r);
  text-decoration: none;
  transition: var(--t-fast);
  white-space: nowrap;
  flex-shrink: 0;
}
.v3-subnav-link svg { width: 14px; height: 14px; opacity: 0.8; }
.v3-subnav-link:hover {
  color: var(--text);
  background: var(--bg-hover);
}
.v3-subnav-link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.v3-subnav-link.is-active svg { opacity: 1; }
.v3-subnav-spacer { flex: 1; }
.v3-subnav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--r);
  text-decoration: none;
  transition: background var(--t-fast), transform var(--t-fast);
  flex-shrink: 0;
}
.v3-subnav-cta:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  .v3-subnav-inner { padding: 0 16px; }
  .v3-subnav-cta span { display: none; }
}

/* Synchro topbar/subnav gérée par le sélecteur direct `.topbar.is-scrolled ~ .v3-subnav` ci-dessus
   + classe `.compact` ajoutée par JS pour les navigateurs qui ne supportent pas `~` sibling */

/* ============================================================
   MEGA MENU — nav contextuelle 4 catégories (topbar simulateurs)
   ============================================================ */
.megamenu-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 4px;
}
.megamenu {
  position: relative;
  --cat-color: var(--accent);
}
.megamenu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
  background: transparent;
  border: none;
  border-radius: calc(var(--r) - 4px);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  letter-spacing: -0.005em;
  font-family: inherit;
  white-space: nowrap;
}
.megamenu-trigger:hover,
.megamenu:hover .megamenu-trigger,
.megamenu.is-open .megamenu-trigger {
  color: var(--text);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.megamenu.is-active .megamenu-trigger {
  color: var(--cat-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.megamenu.is-active .megamenu-trigger-icon { color: var(--cat-color); opacity: 1; }
.megamenu-trigger-icon { display: inline-flex; opacity: 0.7; transition: opacity var(--t-fast); }
.megamenu:hover .megamenu-trigger-icon { opacity: 1; }
.megamenu-chevron {
  margin-left: 2px;
  display: inline-flex;
  color: var(--text-4);
  transition: transform var(--t-fast);
}
.megamenu:hover .megamenu-chevron,
.megamenu.is-open .megamenu-chevron { transform: rotate(180deg); color: var(--text-2); }

/* Panel */
.megamenu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 340px;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.06);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
/* Buffer transparent au-dessus du panel pour que la souris puisse
   transiter du trigger vers le panel sans perdre le hover */
.megamenu-panel::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}
.megamenu:hover .megamenu-panel,
.megamenu:focus-within .megamenu-panel,
.megamenu.is-open .megamenu-panel {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.megamenu-panel-head {
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 6px;
}
.megamenu-panel-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cat-color);
  font-family: var(--font-mono);
}
.megamenu-panel-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.megamenu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text-2);
  transition: background var(--t-fast);
}
.megamenu-item:hover {
  background: var(--bg-hover);
}
.megamenu-item.is-active {
  background: color-mix(in srgb, var(--cat-color) 10%, transparent);
}
.megamenu-item-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--cat-color) 10%, transparent);
  color: var(--cat-color);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform var(--t-fast);
}
.megamenu-item:hover .megamenu-item-icon { transform: scale(1.06); }
.megamenu-item-text { flex: 1; min-width: 0; }
.megamenu-item-label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.25;
}
.megamenu-item.is-active .megamenu-item-label { color: var(--cat-color); }
.megamenu-item-desc {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.4;
}

/* Responsive : sur mobile, panel sort en pleine largeur sous topbar */
@media (max-width: 880px) {
  .megamenu-nav { flex-wrap: wrap; gap: 2px; padding: 3px; }
  .megamenu-trigger { padding: 6px 10px; font-size: 12px; }
  .megamenu-trigger-icon, .megamenu-chevron { display: none; }
  .megamenu-panel {
    position: fixed;
    top: var(--topbar-h);
    left: 12px; right: 12px;
    transform: translateY(-6px);
    min-width: 0;
    max-width: none;
  }
  .megamenu:hover .megamenu-panel,
  .megamenu.is-open .megamenu-panel { transform: translateY(0); }
}
@media (max-width: 640px) {
  /* Sur très petit écran : la nav du topbar-center prend toute la largeur */
  .topbar { grid-template-columns: auto 1fr auto; }
  .topbar-center { grid-column: span 3; order: 3; padding: 6px 12px 8px; }
}

/* ============================================================
   READING PROGRESS BAR — apparaît en haut des articles & docs
   ============================================================ */
.v3-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #10B981 100%);
  z-index: 100;
  box-shadow: 0 1px 4px rgba(5,150,105,0.30);
  transition: width 0.08s linear, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}
.v3-progress.is-active { opacity: 1; }

/* ============================================================
   SCROLL-TO-TOP FAB (apparaît après 1000px de scroll)
   ============================================================ */
.v3-scroll-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15,23,42,0.10), 0 2px 4px rgba(15,23,42,0.06);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease,
              border-color var(--t-fast), color var(--t-fast);
}
.v3-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.v3-scroll-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
@media (max-width: 640px) {
  .v3-scroll-top { bottom: 80px; left: 16px; width: 40px; height: 40px; }
}

/* ============================================================
   COMMAND PALETTE — recherche universelle Ctrl+K
   ============================================================ */
.cmdk-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: grid;
  place-items: flex-start center;
  padding: 12vh 20px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.cmdk-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cmdk-modal {
  width: 100%;
  max-width: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 80px rgba(15,23,42,0.32);
  overflow: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.cmdk-backdrop.is-open .cmdk-modal { transform: translateY(0) scale(1); }

.cmdk-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.cmdk-search-icon { color: var(--text-4); flex-shrink: 0; }
.cmdk-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15.5px;
  color: var(--text);
  padding: 4px 0;
  letter-spacing: -0.005em;
}
.cmdk-search input::placeholder { color: var(--text-4); }
.cmdk-search kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--bg-3);
  color: var(--text-3);
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid var(--border);
  font-weight: 500;
}

.cmdk-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 6px;
}
.cmdk-group { padding: 4px 0 2px; }
.cmdk-group-label {
  padding: 8px 12px 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
}
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.1s ease;
}
.cmdk-item:hover, .cmdk-item.is-focused {
  background: var(--bg-hover);
}
.cmdk-item.is-focused {
  background: var(--accent-soft);
}
.cmdk-item-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--item-color, var(--text-4)) 12%, transparent);
  color: var(--item-color, var(--text-3));
  display: grid; place-items: center;
  flex-shrink: 0;
}
.cmdk-item-text { flex: 1; min-width: 0; }
.cmdk-item-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.cmdk-item-desc {
  font-size: 11.5px;
  color: var(--text-3);
}
.cmdk-item-cat {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-4);
  font-family: var(--font-mono);
  background: var(--bg-3);
  padding: 2px 8px;
  border-radius: var(--r-full);
  flex-shrink: 0;
}
.cmdk-empty {
  padding: 32px;
  text-align: center;
  color: var(--text-4);
  font-size: 13px;
}

/* Petit bouton de déclenchement dans la topbar */
.cmdk-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: var(--t-fast);
  font-family: inherit;
  min-width: 180px;
}
.cmdk-trigger:hover {
  border-color: var(--border-strong);
  background: var(--bg-card);
  color: var(--text);
}
.cmdk-trigger-text { flex: 1; text-align: left; }
.cmdk-trigger kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-card);
  color: var(--text-4);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ============================================================
   DARK MODE TOGGLE — bouton dans le topbar
   ============================================================ */
.darkmode-toggle {
  width: 34px; height: 34px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--text-3);
  transition: var(--t-fast);
}
.darkmode-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-card);
}
.darkmode-toggle .sun { display: block; }
.darkmode-toggle .moon { display: none; }
[data-theme="dark"] .darkmode-toggle .sun { display: none; }
[data-theme="dark"] .darkmode-toggle .moon { display: block; }

/* ============================================================
   RECENT TOOLS — sur la home
   ============================================================ */
.recent-tools-wrap {
  margin-top: 36px;
}
.recent-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.recent-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--text);
  transition: var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.recent-tool:hover {
  border-color: var(--cat-color, var(--accent));
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.recent-tool-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cat-color, var(--text-4));
  font-family: var(--font-mono);
  flex-shrink: 0;
  padding: 3px 8px;
  background: color-mix(in srgb, var(--cat-color, var(--text-4)) 10%, transparent);
  border-radius: var(--r-full);
}
.recent-tool-label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.recent-tool-arrow {
  color: var(--cat-color, var(--text-4));
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.recent-tool:hover .recent-tool-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   SKELETON LOADERS
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-3) 50%, var(--bg-2) 100%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--r-sm);
  display: inline-block;
}
@keyframes skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-line   { height: 1em; width: 100%; }
.skeleton-title  { height: 1.4em; width: 60%; }
.skeleton-value  { height: 1.8em; width: 70%; }

/* ============================================================
   ARTICLE — page de blog single
   ============================================================ */
.article-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 48px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .article-shell { grid-template-columns: 1fr; gap: 24px; }
  .article-toc, .article-aside { position: static !important; }
  .article-aside { display: none; }
}

.article-toc {
  position: sticky;
  top: 84px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  font-size: 12.5px;
  box-shadow: var(--shadow-sm);
}
.article-toc-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 10px;
  padding: 0 8px;
}
.article-toc a {
  display: block;
  color: var(--text-3);
  text-decoration: none;
  padding: 6px 8px;
  margin: 1px 0;
  border-radius: var(--r-sm);
  transition: var(--t-fast);
  font-weight: 500;
  line-height: 1.4;
}
.article-toc a:hover { color: var(--text); background: var(--bg-hover); }
.article-toc a.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.article-aside {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.article-aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.article-aside-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 8px;
}
.article-aside-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 8px;
  border-radius: var(--r);
  transition: var(--t-fast);
}
.article-aside-tool:hover { background: var(--bg-hover); color: var(--accent); }
.article-aside-tool-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* Hero de l'article (couverture pleine largeur) */
.article-hero {
  position: relative;
  padding: 88px 0 56px;
  background:
    radial-gradient(ellipse 1200px 500px at 50% 0%, rgba(5, 150, 105, 0.10) 0%, transparent 65%),
    var(--bg);
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 25% 30%, rgba(5,150,105,0.04) 1.5px, transparent 2px);
  background-size: 60px 60px;
  opacity: 0.5;
  pointer-events: none;
}
.article-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.article-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 24px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.article-breadcrumb a {
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--t-fast);
}
.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb-sep { color: var(--text-4); }
.article-category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: var(--r-full);
  margin-bottom: 18px;
  border: 1px solid var(--accent-mid);
}
.article-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 18px;
}
.article-subtitle {
  font-size: 18px;
  color: var(--text-3);
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto 28px;
  letter-spacing: -0.005em;
}
.article-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 12.5px;
  color: var(--text-3);
  box-shadow: var(--shadow-sm);
}
.article-meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.article-meta-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid var(--accent-mid);
}
.article-meta-sep { color: var(--border-strong); }

/* Contenu de l'article */
.article-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
  letter-spacing: -0.003em;
}
.article-content > p:first-of-type {
  font-size: 18px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 28px;
  font-weight: 500;
}
.article-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 56px 0 16px;
  color: var(--text);
  scroll-margin-top: 96px;
}
.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
  color: var(--text);
}
.article-content p { margin-bottom: 20px; }
.article-content strong { color: var(--text); font-weight: 600; }
.article-content em { font-style: italic; color: var(--accent-2); }
.article-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-mid);
  transition: var(--t-fast);
}
.article-content a:hover { border-bottom-color: var(--accent); }
.article-content ul, .article-content ol {
  margin: 0 0 24px;
  padding-left: 22px;
}
.article-content li { margin-bottom: 10px; }
.article-content blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 17px;
  color: var(--text);
  font-style: italic;
  line-height: 1.55;
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content code {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  padding: 1px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
}
.article-content table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.article-content thead { background: var(--bg-2); }
.article-content th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.article-content td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-2);
}
.article-content tbody tr:last-child td { border-bottom: none; }
.article-content tbody tr:hover { background: var(--bg-hover); }
.article-content tbody td.pos { color: var(--accent); font-weight: 600; }
.article-content tbody td.neg { color: var(--red); font-weight: 600; }
.article-content tbody td.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Callout box (info/warning/success) */
.article-callout {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.article-callout-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.article-callout-title svg { color: var(--accent); }
.article-callout p { margin-bottom: 8px; font-size: 14.5px; }
.article-callout p:last-child { margin-bottom: 0; }
.article-callout.warn { border-left-color: var(--yellow); }
.article-callout.warn .article-callout-title svg { color: var(--yellow); }

/* Related articles à la fin */
.article-related {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.article-related-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 20px;
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* ============================================================
   v3 — PREMIUM LANDING (Ramify-inspired)
   ============================================================ */

/* Body — section alternées, supprimer le radial global */
body.v3-landing {
  background: var(--bg-card);
  background-image: none;
}

/* Section wrapper utility */
.v3-section {
  width: 100%;
  padding: 96px 0;
  position: relative;
}
.v3-section-alt { background: var(--bg); }
.v3-section-dark { background: #0E1116; color: rgba(255,255,255,0.92); }
.v3-section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}
.v3-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 14px;
}
.v3-section-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}
.v3-section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
  max-width: 720px;
}
.v3-section-sub {
  font-size: 16px;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 620px;
  margin-bottom: 56px;
}
.v3-section-dark .v3-section-title { color: #fff; }
.v3-section-dark .v3-section-sub   { color: rgba(255,255,255,0.6); }

/* ── HERO SPLIT ── */
.v3-hero {
  padding: 72px 0 88px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.v3-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(5,150,105,0.08) 0%, transparent 60%);
  z-index: 0;
}
.v3-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.v3-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.v3-hero-badge-dot {
  width: 20px; height: 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
}
.v3-hero h1 {
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--text);
  margin-bottom: 22px;
}
.v3-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #10B981 60%, #0891B2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v3-hero-p {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 36px;
}
.v3-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.v3-hero-actions .btn {
  padding: 14px 26px;
  font-size: 14.5px;
  border-radius: var(--r-lg);
}
.v3-hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-3);
}
.v3-hero-trust-stars {
  display: inline-flex;
  gap: 2px;
  color: #F59E0B;
}
.v3-hero-trust-stars svg { width: 14px; height: 14px; fill: currentColor; }
.v3-hero-trust strong { color: var(--text); font-weight: 600; }

/* HERO VISUAL — Faux dashboard */
.v3-hero-visual {
  position: relative;
}
.v3-mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow:
    0 30px 80px -20px rgba(5, 22, 18, 0.18),
    0 8px 24px -8px rgba(5, 22, 18, 0.08);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.v3-mock:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translateY(-4px); }
.v3-mock-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-2);
}
.v3-mock-dots { display: flex; gap: 6px; }
.v3-mock-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}
.v3-mock-dots span:nth-child(1) { background: #F87171; }
.v3-mock-dots span:nth-child(2) { background: #FBBF24; }
.v3-mock-dots span:nth-child(3) { background: #34D399; }
.v3-mock-url {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.v3-mock-body {
  padding: 20px 22px;
}
.v3-mock-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 10px;
}
.v3-mock-h {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 18px;
}
.v3-mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.v3-mock-stat {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px 14px;
}
.v3-mock-stat-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-4);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.v3-mock-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.v3-mock-stat-val.pos { color: var(--accent); }
.v3-mock-stat-sub {
  font-size: 10.5px;
  margin-top: 2px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.v3-mock-stat-sub.pos { color: var(--accent); font-weight: 600; }

.v3-mock-chart {
  height: 160px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(5,150,105,0.04) 0%, transparent 100%);
  border: 1px solid var(--border-soft);
  padding: 6px 8px;
  position: relative;
}
.v3-mock-chart svg {
  width: 100%; height: 100%;
}

/* Pill floating */
.v3-hero-pill {
  position: absolute;
  bottom: -22px; left: -28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 8px 16px 8px 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  z-index: 2;
}
.v3-hero-pill-icon {
  width: 28px; height: 28px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
}
.v3-hero-pill-icon svg { width: 14px; height: 14px; }
.v3-hero-pill-sub {
  font-size: 10.5px;
  color: var(--text-3);
  font-weight: 500;
  margin-top: -2px;
  letter-spacing: 0.02em;
}

/* ── DATA SOURCES BAND ── */
.v3-sources {
  padding: 36px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.v3-sources-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.v3-sources-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
  font-family: var(--font-mono);
}
.v3-sources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.v3-source-item {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-3);
  opacity: 0.85;
  transition: var(--t-fast);
}
.v3-source-item:hover { color: var(--text); opacity: 1; }

/* ── PROBLEM/SOLUTION ── */
.v3-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.v3-problem-card {
  padding: 32px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.v3-problem-card.bad { background: var(--bg-2); }
.v3-problem-card.good {
  border-color: var(--accent-mid);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--accent-soft) 100%);
}
.v3-problem-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
  margin-bottom: 18px;
}
.v3-problem-tag.bad  { background: rgba(220,38,38,0.08); color: var(--red); }
.v3-problem-tag.good { background: var(--accent); color: #fff; }
.v3-problem-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--text);
}
.v3-problem-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.v3-problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}
.v3-problem-list li svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.bad .v3-problem-list li svg { color: var(--red); }
.good .v3-problem-list li svg { color: var(--accent); }

/* ── HOW IT WORKS ── */
.v3-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px;
  position: relative;
}
.v3-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-strong) 50%, transparent 100%);
  z-index: 0;
}
.v3-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.v3-step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  box-shadow: var(--shadow);
  transition: var(--t);
}
.v3-step:hover .v3-step-num {
  border-color: var(--accent);
  transform: scale(1.06);
}
.v3-step h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}
.v3-step p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}

/* ── WHY US (3 cols) ── */
.v3-why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.v3-why-card {
  padding: 32px;
  border-radius: var(--r-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--t-fast);
}
.v3-why-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.v3-why-icon {
  width: 48px; height: 48px;
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.v3-why-icon svg { width: 22px; height: 22px; }
.v3-why-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}
.v3-why-card p {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ── SOCIAL PROOF / STATS ── */
.v3-proof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.v3-proof-stat {
  padding: 32px 28px;
  text-align: center;
  border-right: 1px solid var(--border-soft);
}
.v3-proof-stat:last-child { border-right: none; }
.v3-proof-stat-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.v3-proof-stat-num em { font-style: normal; color: var(--accent); }
.v3-proof-stat-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

/* ── PREMIUM DARK CTA ── */
.v3-cta-dark {
  background: linear-gradient(135deg, #0E1116 0%, #1A2028 100%);
  border-radius: var(--r-xl);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.v3-cta-dark::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(5,150,105,0.25) 0%, transparent 60%);
}
.v3-cta-dark-text { position: relative; z-index: 1; }
.v3-cta-dark-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: #fff;
  line-height: 1.1;
}
.v3-cta-dark-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 28px;
}
.v3-cta-dark-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.v3-cta-dark-side { position: relative; z-index: 1; }
.v3-cta-dark-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.v3-cta-dark-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.v3-cta-dark-bullets li svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── TOOL CARD V3 — plus généreux ── */
.tool-card { padding: 22px 24px; }
.tool-card-title { font-size: 16px; margin-bottom: 5px; }

/* ── COMPARISON TABLE (pricing) ── */
.v3-compare {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 920px;
  margin: 0 auto 80px;
}
.v3-compare-head {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.v3-compare-head-cell {
  padding: 22px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  border-right: 1px solid var(--border-soft);
}
.v3-compare-head-cell:last-child { border-right: none; }
.v3-compare-head-cell:first-child { text-align: left; color: var(--text); }
.v3-compare-head-cell.featured {
  background: var(--accent);
  color: #fff;
  position: relative;
}
.v3-compare-head-cell.featured::after {
  content: 'Recommandé';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--accent);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--accent);
  letter-spacing: 0.08em;
}
.v3-compare-section {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  border-bottom: 1px solid var(--border-soft);
}
.v3-compare-section:last-child { border-bottom: none; }
.v3-compare-section-title {
  grid-column: 1 / -1;
  padding: 14px 28px;
  background: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border-soft);
}
.v3-compare-row {
  display: contents;
}
.v3-compare-cell {
  padding: 14px 28px;
  font-size: 13.5px;
  color: var(--text-2);
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.v3-compare-cell:first-child { justify-content: flex-start; color: var(--text); font-weight: 500; }
.v3-compare-cell:last-child { border-right: none; }
.v3-compare-row:last-child .v3-compare-cell { border-bottom: none; }
.v3-compare-cell .v3-check {
  color: var(--accent);
  width: 18px; height: 18px;
}
.v3-compare-cell .v3-dash {
  color: var(--text-4);
  font-weight: 500;
}
.v3-compare-cell .v3-mini {
  font-size: 12px;
  color: var(--text-3);
}

/* ── PERSONAS ── */
.v3-personas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.v3-persona {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: var(--t-fast);
}
.v3-persona:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.v3-persona-icon {
  width: 44px; height: 44px;
  border-radius: var(--r);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.v3-persona-icon svg { width: 20px; height: 20px; }
.v3-persona-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 6px;
}
.v3-persona h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.v3-persona p {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 14px;
}
.v3-persona-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.v3-persona-tool {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 3px 10px;
}

/* ── Responsive v3 ── */
@media (max-width: 960px) {
  .v3-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .v3-hero-visual { max-width: 540px; margin: 0 auto; }
  .v3-section { padding: 64px 0; }
  .v3-problem-grid { grid-template-columns: 1fr; }
  .v3-steps { grid-template-columns: 1fr; gap: 36px; }
  .v3-steps::before { display: none; }
  .v3-why { grid-template-columns: 1fr; }
  .v3-proof-stats { grid-template-columns: 1fr 1fr; }
  .v3-proof-stat { border-right: none; border-bottom: 1px solid var(--border-soft); }
  .v3-proof-stat:nth-child(2) { border-right: none; }
  .v3-cta-dark { grid-template-columns: 1fr; padding: 40px 28px; gap: 28px; }
  .v3-personas { grid-template-columns: 1fr; }
  .v3-compare-head, .v3-compare-section { grid-template-columns: 1.4fr 1fr 1fr; }
  .v3-compare-head-cell, .v3-compare-cell { padding: 12px 16px; }
  .v3-sources-inner { gap: 20px; }
  .v3-sources-list { gap: 18px; }
}

/* ============================================================
   PRE-LAUNCH : masquage auth + premium
   Toutes les entrées visuelles vers connexion/inscription/abonnement
   sont masquées. Code backend conservé pour réactivation rapide.
   Pour réactiver : supprimer ce bloc (~30 lignes).
   ============================================================ */
a[href="/abonnement"],
a[href="/connexion"],
a[href="/inscription"],
a[href^="/abonnement"],
a[href^="/connexion"],
a[href^="/inscription"] {
  display: none !important;
}

/* Bouton login dans la topbar */
.topbar-right #ci-user-zone,
.topbar-right .ci-user-zone {
  display: none !important;
}

/* Floating CTA "Découvrir Premium" sur la home */
.floating-cta,
a.floating-cta {
  display: none !important;
}

/* Badges premium sur les sections d'analyses (DCA, etc.) */
section[data-tier="premium"] .premium-badge,
section[data-tier="locked"] .premium-badge,
.tier-badge-premium,
.tier-badge-locked {
  display: none !important;
}

/* Cards "tarifs" et bannière "Débloquez analyses avancées" sur la home */
.pricing-cta,
.premium-banner,
.v3-premium-cta,
.v3-premium-cta-inner,
.v3-premium-eyebrow,
.v3-premium-title,
.v3-premium-desc,
.v3-premium-actions,
.v3-premium-features,
.v3-premium-price-tag,
.v3-premium-btn-primary,
.v3-premium-btn-secondary {
  display: none !important;
}
