/* ============================================================
   MOVRz — Design System v0.1
   Palette : ink / crème / indigo / or / signaux risque
   Typo    : Space Grotesk (headings) · Inter (body) · JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --ink:        #0F172A;
  --ink-soft:   #475569;
  --ink-xsoft:  #94A3B8;
  --surface:    #F8F7F4;
  --surface-2:  #F1F0EC;
  --white:      #FFFFFF;
  --accent:     #4F46E5;
  --accent-lt:  #818CF8;
  --accent-dk:  #3730A3;
  --gold:       #C9A96E;
  --gold-lt:    #E8D5B0;
  --gold-dk:    #9E7C44;
  --line:       rgba(201,169,110,0.3);

  /* Risk levels */
  --vert:       #10B981;
  --vert-bg:    rgba(16,185,129,0.1);
  --jaune:      #F59E0B;
  --jaune-bg:   rgba(245,158,11,0.1);
  --orange:     #F97316;
  --orange-bg:  rgba(249,115,22,0.1);
  --rouge:      #EF4444;
  --rouge-bg:   rgba(239,68,68,0.1);
  --noir-risk:  #1F2937;
  --noir-bg:    rgba(31,41,55,0.15);

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.08);
  --shadow:    0 4px 16px rgba(15,23,42,0.10);
  --shadow-lg: 0 8px 32px rgba(15,23,42,0.14);
  --shadow-xl: 0 16px 48px rgba(15,23,42,0.18);

  /* Radius */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t:      220ms ease;
  --t-slow: 350ms ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--ink-soft); line-height: 1.7; }
.lead { font-size: 1.125rem; color: var(--ink-soft); }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; }
.tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-xsoft);
  margin-bottom: var(--sp-3);
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

section { padding: var(--sp-24) 0; }
section.section-dark {
  background: var(--ink);
  color: var(--white);
}
section.section-dark h1,
section.section-dark h2,
section.section-dark h3,
section.section-dark h4 { color: var(--white); }
section.section-dark p   { color: var(--ink-xsoft); }
section.section-ink {
  background: #0a0f1e;
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-16);
}
.section-header .tag { margin-bottom: var(--sp-3); display: block; }
.section-header h2   { margin-bottom: var(--sp-4); }
.section-header p    { max-width: 580px; margin: 0 auto; }

/* Gold decorative line (TRiVAL pattern) */
.gold-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: var(--sp-4) auto;
}
.gold-line-left { margin: var(--sp-4) 0; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(248,247,244,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.nav-spacer { height: 64px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--t-fast);
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dk);
  border-color: var(--gold-dk);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-sm {
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.8rem;
}
.btn-lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: 1rem;
}
.btn-group {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: transform var(--t), box-shadow var(--t);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  background: rgba(79,70,229,0.08);
  flex-shrink: 0;
}
.card h3 { margin-bottom: var(--sp-2); }
.card p  { font-size: 0.9rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

/* ── Risk Pills ─────────────────────────────────────────────── */
.risk-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.risk-pill::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.risk-vert   { color: var(--vert);   background: var(--vert-bg);   }
.risk-vert::before   { background: var(--vert);   }
.risk-jaune  { color: #92400E; background: var(--jaune-bg); }
.risk-jaune::before  { background: var(--jaune);  }
.risk-orange { color: #9A3412; background: var(--orange-bg);}
.risk-orange::before { background: var(--orange); }
.risk-rouge  { color: var(--rouge);  background: var(--rouge-bg);  }
.risk-rouge::before  { background: var(--rouge);  }
.risk-noir   { color: var(--white);  background: var(--noir-risk); }
.risk-noir::before   { background: #9CA3AF; }

/* ── Sphere Badges ──────────────────────────────────────────── */
.sphere-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(79,70,229,0.12);
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
}
.sphere-badge-sm {
  width: 22px; height: 22px;
  font-size: 0.65rem;
}

/* ── Phase Steps ────────────────────────────────────────────── */
.phase-step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
}
.phase-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Score Display ──────────────────────────────────────────── */
.score-display {
  background: var(--white);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.score-formula {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-4);
  text-align: center;
}
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
}
.score-label {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink-soft);
  min-width: 80px;
}
.score-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--surface-2);
  border-radius: var(--r-full);
  overflow: hidden;
}
.score-bar {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--accent);
  transition: width 0.6s ease;
}
.score-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 36px;
  text-align: right;
}

/* ── Decay Bar ──────────────────────────────────────────────── */
.decay-bar {
  height: 6px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--rouge), var(--jaune), var(--vert));
  position: relative;
}
.decay-indicator {
  position: absolute;
  top: -4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
  transform: translateX(-50%);
  transition: left 0.5s ease;
}

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid rgba(15,23,42,0.08); }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--ink); }
thead th {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
tbody tr { border-bottom: 1px solid rgba(15,23,42,0.05); transition: background var(--t-fast); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(79,70,229,0.03); }
tbody td {
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.9rem;
  color: var(--ink-soft);
  vertical-align: top;
}
tbody td:first-child { color: var(--ink); font-weight: 500; }
.check { color: var(--vert); font-size: 1rem; }
.cross { color: var(--ink-xsoft); }

/* ── KPI Grid ───────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
}
.kpi-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  text-align: center;
}
.kpi-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.kpi-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--sp-5); }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}
.form-control {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid rgba(15,23,42,0.15);
  border-radius: var(--r);
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475569' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.78rem; color: var(--ink-xsoft); margin-top: var(--sp-1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px;
  border: 1.5px solid rgba(15,23,42,0.2);
  border-radius: 4px;
  accent-color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Step progress */
.step-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-10);
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--surface-2);
  z-index: 0;
}
.step-item.active:not(:last-child)::after,
.step-item.done:not(:last-child)::after {
  background: var(--accent);
}
.step-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-xsoft);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
  transition: all var(--t);
}
.step-item.active .step-dot {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.2);
}
.step-item.done .step-dot {
  background: var(--accent-dk);
  color: var(--white);
}
.step-label {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink-xsoft);
  margin-top: var(--sp-2);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.step-item.active .step-label { color: var(--accent); }

/* ── Result Panels ──────────────────────────────────────────── */
.result-panel {
  background: var(--white);
  border: 1.5px solid rgba(79,70,229,0.2);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  margin-top: var(--sp-6);
  display: none;
}
.result-panel.visible { display: block; }
.result-panel h4 {
  font-size: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-5);
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(15,23,42,0.05);
  font-size: 0.875rem;
}
.result-row:last-child { border-bottom: none; }
.result-key { color: var(--ink-soft); font-weight: 500; }
.result-val { color: var(--ink); font-weight: 600; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; }

/* COI ID display */
.coi-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(79,70,229,0.06);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--r);
  text-align: center;
  margin: var(--sp-4) 0;
  letter-spacing: 0.1em;
  border: 1px solid rgba(79,70,229,0.2);
}

/* ── Venn Visual ────────────────────────────────────────────── */
.venn-vars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.venn-var {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1.5px solid transparent;
  transition: all var(--t-fast);
  text-align: center;
}
.venn-var.active {
  background: rgba(79,70,229,0.08);
  border-color: var(--accent);
}
.venn-var.active-high {
  background: rgba(239,68,68,0.08);
  border-color: var(--rouge);
}
.venn-key {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.venn-label {
  font-size: 0.65rem;
  color: var(--ink-xsoft);
  line-height: 1.3;
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: var(--sp-24) 0 var(--sp-20);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(79,70,229,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 70%, rgba(201,169,110,0.12) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 { color: var(--white); margin-bottom: var(--sp-6); }
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--accent-lt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { color: rgba(255,255,255,0.65); max-width: 560px; font-size: 1.1rem; margin-bottom: var(--sp-8); }
.hero .btn-group { margin-bottom: var(--sp-16); }

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,0.3);
  font-size: 0.72rem;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.8; transform: translateX(-50%) translateY(4px); }
}

/* ── Sphere SVG Visual ──────────────────────────────────────── */
.spheres-visual {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

/* ── Quote / Blockquote ─────────────────────────────────────── */
blockquote {
  border-left: 3px solid var(--gold);
  padding: var(--sp-4) var(--sp-6);
  background: rgba(201,169,110,0.06);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--ink-soft);
  margin: var(--sp-6) 0;
}
blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-xsoft);
  margin-top: var(--sp-2);
}

/* ── Toast ──────────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--r-lg);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--t);
  max-width: 320px;
}
#toast.show {
  transform: translateY(0);
  opacity: 1;
}
#toast.success { border-left: 3px solid var(--vert); }
#toast.error   { border-left: 3px solid var(--rouge); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: var(--sp-12) 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-6);
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.footer-logo span { color: var(--accent-lt); }
.footer-links {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; }

/* ── Divider ────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--line); margin: var(--sp-12) 0; }

/* ── Highlight Box ──────────────────────────────────────────── */
.highlight-box {
  background: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(201,169,110,0.06));
  border: 1px solid rgba(79,70,229,0.15);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  text-align: center;
}

/* ── Page Header (inner pages) ──────────────────────────────── */
.page-hero {
  background: var(--ink);
  padding: var(--sp-24) 0 var(--sp-16);
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: var(--sp-4); }
.page-hero p  { color: rgba(255,255,255,0.6); max-width: 560px; margin: 0 auto; }

/* ── Accordion / FAQ ────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(15,23,42,0.08);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: var(--sp-5) 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  transition: color var(--t-fast);
}
.faq-q:hover { color: var(--accent); }
.faq-q .icon { transition: transform var(--t); font-size: 1.2rem; color: var(--ink-xsoft); }
.faq-item.open .faq-q .icon { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--t-slow);
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p {
  padding-bottom: var(--sp-5);
  font-size: 0.9rem;
}

/* ── Pricing Cards ──────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-5);
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border: 1.5px solid rgba(15,23,42,0.08);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(79,70,229,0.12), var(--shadow-lg);
}
.pricing-card.featured::before {
  content: 'Recommandé';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-full);
}
.pricing-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.pricing-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.pricing-price sup { font-size: 0.9rem; vertical-align: super; }
.pricing-period { font-size: 0.8rem; color: var(--ink-xsoft); margin-bottom: var(--sp-5); }
.pricing-features {
  margin: var(--sp-5) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.pricing-feat {
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}
.pricing-feat::before {
  content: '✓';
  color: var(--vert);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 560px) {
  .container, .container-narrow, .container-wide { padding: 0 var(--sp-4); }
  section { padding: var(--sp-16) 0; }
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .btn-group { flex-direction: column; align-items: flex-start; }
  .venn-vars { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 120px 0 var(--sp-16); }
}
