/* ==========================================================================
   PORTAIL DES DIRIGEANTS — Design System
   Palette : Blanc Quartz / Gris Albâtre / Noir Zinc / Indigo Électrique /
             Vert Émeraude Profond / Or Brûlé
   ========================================================================== */

:root {
  /* Couleurs */
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --ink: #09090B;
  --ink-2: #27272A;
  --muted: #52525B;
  --muted-2: #71717A;
  --line: rgba(228, 228, 231, 0.6);
  --line-solid: #E4E4E7;

  --indigo: #6366F1;
  --indigo-deep: #4F46E5;
  --indigo-soft: #EEF2FF;
  --emerald: #047857;
  --emerald-soft: #ECFDF5;
  --gold: #A16207;
  --gold-soft: #FEFCE8;
  --danger: #B91C1C;
  --warn: #B45309;

  /* Typographie */
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  /* Géométrie */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 68px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.04), 0 2px 8px rgba(9, 9, 11, 0.04);
  --shadow-md: 0 2px 4px rgba(9, 9, 11, 0.04), 0 12px 32px rgba(9, 9, 11, 0.08);
  --shadow-lg: 0 4px 8px rgba(9, 9, 11, 0.04), 0 24px 64px rgba(9, 9, 11, 0.12);
  --ring: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Lueurs radiales d'arrière-plan très subtiles */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -5%, rgba(99, 102, 241, 0.07), transparent 65%),
    radial-gradient(760px 480px at -8% 30%, rgba(4, 120, 87, 0.05), transparent 60%),
    radial-gradient(680px 420px at 55% 108%, rgba(161, 98, 7, 0.045), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
strong { font-weight: 650; }

::selection { background: rgba(99, 102, 241, 0.18); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typographie ---------- */
.serif { font-family: var(--serif); }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }

.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.h2-serif {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  letter-spacing: -0.015em;
}

.h3-serif {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}

.text-gradient {
  background: linear-gradient(115deg, var(--ink) 35%, var(--indigo) 72%, var(--indigo-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow[data-accent="indigo"]  { color: var(--indigo-deep); }
.eyebrow[data-accent="emerald"] { color: var(--emerald); }
.eyebrow[data-accent="gold"]    { color: var(--gold); }

.lead { font-size: 1.14rem; color: var(--muted); line-height: 1.7; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; }

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background-color 0.25s ease,
              border-color 0.25s ease, color 0.25s ease;
  overflow: hidden;
  white-space: nowrap;
}
.btn:active { transform: scale(0.965); }
.btn svg { flex: none; }

.btn-primary { background: var(--ink); color: #fff; z-index: 0; }
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-deep) 55%, #7C3AED 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(99, 102, 241, 0.32); }

.btn-ghost {
  background: var(--bg);
  border-color: var(--line-solid);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }

.btn-emerald { background: var(--emerald); color: #fff; }
.btn-emerald:hover { background: #065F46; box-shadow: 0 8px 24px rgba(4, 120, 87, 0.3); }

.btn-lg { padding: 16px 30px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 10px 18px; font-size: 0.87rem; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------- Header flottant ---------- */
.site-header {
  position: fixed;
  top: 14px;
  left: 0; right: 0;
  z-index: 100;
  padding: 0 16px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 12px 0 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
body.scrolled .header-inner { box-shadow: var(--shadow-md); background: rgba(255, 255, 255, 0.85); }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink) 55%, var(--indigo-deep));
  color: #fff;
  flex: none;
}
.brand small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--muted-2); letter-spacing: 0.06em; line-height: 1.1; }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.main-nav a:hover { color: var(--ink); background: rgba(9, 9, 11, 0.045); }
.main-nav a.active { color: var(--ink); background: rgba(9, 9, 11, 0.055); font-weight: 620; }

.header-right { display: flex; align-items: center; gap: 14px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 560;
  color: var(--muted);
  background: rgba(248, 250, 252, 0.8);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10B981;
  position: relative;
  flex: none;
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #10B981;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  0%   { transform: scale(0.6); opacity: 0.9; }
  75%, 100% { transform: scale(1.7); opacity: 0; }
}

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; place-items: center; }
.nav-toggle:hover { background: rgba(9, 9, 11, 0.05); }

/* Menu mobile */
.mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--header-h) + 22px);
  left: 16px; right: 16px;
  z-index: 99;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
body.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { padding: 13px 16px; border-radius: 11px; font-weight: 560; }
.mobile-menu a:hover { background: var(--surface); }
.mobile-menu .btn { margin-top: 8px; }

main { padding-top: calc(var(--header-h) + 14px); }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 76px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-copy .display { margin: 22px 0 24px; }
.hero-copy .lead { max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; }
.hero-proof svg { color: var(--emerald); flex: none; }

.hero-visual { position: relative; }
.hero-visual .img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
  background: var(--surface);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  font-size: 0.84rem;
  font-weight: 600;
  animation: floaty 6s ease-in-out infinite;
}
.float-badge small { display: block; font-weight: 480; color: var(--muted); font-size: 0.76rem; }
.float-badge .icon-disc {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; flex: none;
}
.fb-1 { top: 8%; left: -9%; }
.fb-2 { bottom: 10%; right: -7%; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.icon-disc.indigo  { background: var(--indigo-soft); color: var(--indigo-deep); }
.icon-disc.emerald { background: var(--emerald-soft); color: var(--emerald); }
.icon-disc.gold    { background: var(--gold-soft); color: var(--gold); }
.icon-disc.zinc    { background: #F4F4F5; color: var(--ink-2); }

/* ---------- Bento Grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.bento-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  padding: 30px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(9, 9, 11, 0.14); }
.bento-card .kpi {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.bento-card .kpi sup { font-size: 0.45em; top: -0.8em; }
.bento-card h3 { font-size: 1.02rem; font-weight: 650; margin-top: 12px; }
.bento-card p { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.bento-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 18px;
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.row-2 { grid-row: span 2; }

.bento-card.feature {
  background: linear-gradient(160deg, #0B0B10 0%, #17171E 70%, #1E1B34 100%);
  color: #FAFAFA;
  border-color: rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; justify-content: space-between;
}
.bento-card.feature p { color: #A1A1AA; }
.bento-card.feature .kpi { background: linear-gradient(115deg, #FFF 40%, #A5B4FC); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.bento-card .card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 220px at 85% -10%, rgba(99, 102, 241, 0.12), transparent 70%);
}
.bento-img { position: relative; padding: 0; min-height: 240px; }
.bento-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-img .img-caption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  padding: 14px 18px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.86rem; font-weight: 600;
}
.img-caption small { display: block; font-weight: 480; color: var(--muted); }

/* ---------- Cartes de parcours ---------- */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.path-card {
  --accent: var(--indigo);
  --accent-soft: var(--indigo-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  padding: 30px 26px;
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}
.path-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(340px 200px at 50% -8%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 72%);
}
.path-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 38%, var(--line-solid)); }
.path-card:hover::after { opacity: 1; }
.path-card[data-accent="emerald"] { --accent: var(--emerald); --accent-soft: var(--emerald-soft); }
.path-card[data-accent="gold"]    { --accent: var(--gold); --accent-soft: var(--gold-soft); }
.path-card[data-accent="zinc"]    { --accent: #3F3F46; --accent-soft: #F4F4F5; }

.path-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
}
.path-card h3 { font-family: var(--serif); font-size: 1.42rem; margin-bottom: 10px; }
.path-card > p { font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; }
.path-card ul { display: grid; gap: 8px; margin-bottom: 26px; }
.path-card li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-2); }
.path-card li svg { color: var(--accent); flex: none; margin-top: 3px; }
.path-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 640; font-size: 0.92rem;
  color: var(--accent);
}
.path-cta svg { transition: transform 0.25s ease; }
.path-card:hover .path-cta svg { transform: translateX(4px); }

/* Autres services (accueil) */
.services-extra { margin-top: 22px; }
.services-extra-label {
  display: block;
  font-size: 0.74rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.services-extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.service-mini {
  display: flex; align-items: center; gap: 15px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.service-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: rgba(9,9,11,0.14); background: var(--bg); }
.service-mini-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.service-mini-ico.gold { background: var(--gold-soft); color: var(--gold); }
.service-mini-ico.indigo { background: var(--indigo-soft); color: var(--indigo-deep); }
.service-mini-body { flex: 1; }
.service-mini-body strong { display: block; font-size: 0.96rem; font-weight: 640; }
.service-mini-body small { display: block; font-size: 0.83rem; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.service-mini-arrow { color: var(--muted-2); flex: none; transition: transform 0.25s ease, color 0.25s ease; }
.service-mini:hover .service-mini-arrow { transform: translateX(4px); color: var(--ink); }
@media (max-width: 720px) { .services-extra-grid { grid-template-columns: 1fr; } }

/* ---------- Frise 3 actes ---------- */
.acts { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.acts-nav { display: grid; gap: 6px; position: relative; }
.acts-nav::before {
  content: "";
  position: absolute;
  left: 27px; top: 34px; bottom: 34px;
  width: 1px;
  background: var(--line-solid);
}
.act-btn {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  text-align: left;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.act-btn:hover { background: var(--surface); }
.act-btn.active { background: var(--bg); border-color: var(--line); box-shadow: var(--shadow-sm); }
.act-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-solid);
  background: var(--bg);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.02rem;
  flex: none;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}
.act-btn.active .act-num { background: var(--ink); color: #fff; border-color: var(--ink); }
.act-btn h3 { font-size: 1.05rem; font-weight: 650; }
.act-btn p { font-size: 0.87rem; color: var(--muted); margin-top: 4px; }

.acts-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  padding: 42px;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}
.act-pane { display: none; animation: fadeSlide 0.45s ease; }
.act-pane.active { display: block; }
.act-pane .act-illu { margin-bottom: 28px; }
.act-pane h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 14px; }
.act-pane p { color: var(--muted); }
.act-pane .act-points { margin-top: 22px; display: grid; gap: 10px; }
.act-pane .act-points li { display: flex; gap: 10px; font-size: 0.92rem; }
.act-pane .act-points svg { color: var(--emerald); flex: none; margin-top: 4px; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  text-align: left;
  font-weight: 620;
  font-size: 1.02rem;
  transition: background-color 0.2s ease;
}
.faq-q:hover { background: var(--surface); }
.faq-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-solid);
  display: grid; place-items: center;
  flex: none;
  color: var(--muted);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);           /* + devient × */
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 28px 26px; color: var(--muted); max-width: 720px; }

/* ---------- Pilier : hero ---------- */
.pillar-hero { padding: 72px 0 64px; }
.pillar-hero .hero-grid { gap: 56px; }
.pillar-hero .display { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.pillar-hero .img-frame { aspect-ratio: 4 / 3.4; }

/* ---------- Formulaire assistant ---------- */
.form-section { padding: 40px 0 96px; }
.form-shell {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.form-head {
  padding: 30px 38px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg));
}
.form-head-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.form-head h2 { font-family: var(--serif); font-size: 1.5rem; }
.form-head .step-count { font-size: 0.8rem; font-weight: 640; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.form-head p { font-size: 0.9rem; color: var(--muted); }

.progress-track { height: 4px; background: #EEF0F4; border-radius: 99px; margin-top: 20px; overflow: hidden; }
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--indigo), var(--indigo-deep));
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-body { padding: 36px 38px 38px; }
.form-step { animation: fadeSlide 0.4s ease; }
.form-step h3 { font-size: 1.18rem; font-weight: 650; margin-bottom: 6px; }
.form-step .step-hint { font-size: 0.88rem; color: var(--muted); margin-bottom: 26px; }

/* Choix : grandes cartes cliquables */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-card {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  text-align: left;
  padding: 19px 20px;
  border: 1px solid var(--line-solid);
  border-radius: 14px;
  background: var(--bg);
  transition: all 0.22s ease;
}
.choice-card:hover { border-color: var(--indigo); background: var(--indigo-soft); transform: translateY(-1px); }
.choice-card:active { transform: scale(0.98); }
.choice-card.selected { border-color: var(--indigo); background: var(--indigo-soft); box-shadow: var(--ring); }
.choice-card .c-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--ink-2);
  flex: none;
  transition: all 0.22s ease;
}
.choice-card.selected .c-icon, .choice-card:hover .c-icon { background: var(--indigo); color: #fff; }
.choice-card strong { display: block; font-size: 0.97rem; font-weight: 640; }
.choice-card small { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* Chips multi-sélection */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px;
  border: 1px solid var(--line-solid);
  border-radius: 99px;
  font-weight: 570;
  font-size: 0.93rem;
  transition: all 0.2s ease;
}
.chip:hover { border-color: var(--indigo); }
.chip:active { transform: scale(0.96); }
.chip.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.selected svg { color: #A5B4FC; }

/* Switchs iOS */
.switch-list { display: grid; gap: 10px; }
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  border: 1px solid var(--line-solid);
  border-radius: 14px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
  cursor: pointer;
}
.switch-row:hover { border-color: #C7C9D1; }
.switch-row.on { border-color: color-mix(in srgb, var(--emerald) 45%, var(--line-solid)); background: color-mix(in srgb, var(--emerald-soft) 55%, #fff); }
.switch-row .sw-label { font-weight: 590; font-size: 0.96rem; }
.switch-row .sw-sub { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 450; margin-top: 2px; }
.sw-critical {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 9px;
  padding: 3px 9px;
  border-radius: 99px;
  background: #FEF3C7;
  color: var(--warn);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.ios-switch {
  position: relative;
  width: 50px; height: 30px;
  border-radius: 99px;
  background: #E4E4E7;
  flex: none;
  transition: background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.ios-switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(9, 9, 11, 0.22);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.switch-row.on .ios-switch { background: var(--emerald); }
.switch-row.on .ios-switch::after { transform: translateX(20px); }

/* Enrichissement entreprise (autofill SIREN) */
.siren-lookup { position: relative; margin-bottom: 22px; }
.siren-lookup > label { display: block; font-size: 0.83rem; font-weight: 620; color: var(--ink-2); margin-bottom: 7px; }
.siren-opt { font-weight: 450; color: var(--muted-2); font-size: 0.78rem; }
.siren-field {
  position: relative;
  display: flex; align-items: center;
  border: 1px solid var(--line-solid);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.siren-field:focus-within { border-color: var(--indigo); box-shadow: var(--ring); }
.siren-ico { display: grid; place-items: center; padding-left: 14px; color: var(--muted-2); flex: none; }
.siren-field input { flex: 1; border: none; background: transparent; padding: 13px 12px; font: inherit; font-size: 0.95rem; color: var(--ink); min-width: 0; }
.siren-field input:focus { outline: none; }
.siren-spin { width: 16px; height: 16px; margin-right: 14px; flex: none; border: 2px solid var(--line-solid); border-top-color: var(--indigo); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.siren-results {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 6px);
  z-index: 20;
  border: 1px solid var(--line-solid);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 280px; overflow-y: auto;
}
.siren-opt-row {
  display: flex; flex-direction: column; gap: 2px;
  width: 100%; text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.15s ease;
}
.siren-opt-row:last-child { border-bottom: none; }
.siren-opt-row:hover { background: var(--indigo-soft); }
.siren-opt-row strong { font-size: 0.92rem; font-weight: 620; }
.siren-opt-row small { font-size: 0.78rem; color: var(--muted); }
.siren-empty { padding: 14px 16px; font-size: 0.85rem; color: var(--muted); }

.siren-card {
  border: 1px solid color-mix(in srgb, var(--emerald) 40%, var(--line-solid));
  border-radius: 13px;
  background: color-mix(in srgb, var(--emerald-soft) 60%, #fff);
  padding: 16px 18px;
}
.siren-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.siren-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; font-weight: 680; color: var(--emerald); }
.siren-badge svg { color: var(--emerald); }
.siren-change { font-size: 0.8rem; font-weight: 580; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.siren-change:hover { color: var(--ink); }
.siren-card strong { display: block; font-size: 1rem; font-weight: 660; }
.siren-siren { display: block; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.siren-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.siren-facts span {
  font-size: 0.78rem; font-weight: 550;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid color-mix(in srgb, var(--emerald) 22%, transparent);
  color: #065F46;
}

/* Champs */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.83rem; font-weight: 620; color: var(--ink-2); }
.field input, .field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-solid);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--indigo); box-shadow: var(--ring); }
.field input.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1); }
.field .err-msg { font-size: 0.76rem; color: var(--danger); font-weight: 550; display: none; }
.field.has-error .err-msg { display: block; }

/* Groupes segmentés (volumétrie cession, etc.) */
.seg-group { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btn {
  padding: 11px 18px;
  border: 1px solid var(--line-solid);
  border-radius: var(--radius-sm);
  font-weight: 570;
  font-size: 0.89rem;
  transition: all 0.2s ease;
}
.seg-btn:hover { border-color: var(--indigo); }
.seg-btn:active { transform: scale(0.96); }
.seg-btn.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.fieldset-label { font-size: 0.86rem; font-weight: 640; margin: 22px 0 10px; color: var(--ink-2); }
.fieldset-label:first-child { margin-top: 0; }

/* Case de rebond cross-sell */
.rebound-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 17px 18px;
  border: 1.5px dashed color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 14px;
  background: var(--gold-soft);
  margin-top: 24px;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.rebound-box:hover { border-color: var(--gold); }
.rebound-box.checked { border-style: solid; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(161, 98, 7, 0.12); }
.rebound-box p { font-size: 0.89rem; font-weight: 560; color: #713F12; line-height: 1.5; }
.rebound-box small { display: block; font-weight: 450; color: #854D0E; opacity: 0.85; margin-top: 3px; }

/* Case RGPD */
.consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 4px 2px;
  cursor: pointer;
}
.consent-row p { font-size: 0.79rem; color: var(--muted); line-height: 1.55; }
.consent-row a { text-decoration: underline; text-underline-offset: 2px; }

.checkbox {
  width: 21px; height: 21px;
  border: 1.5px solid #C4C7CF;
  border-radius: 6px;
  flex: none;
  display: grid; place-items: center;
  background: var(--bg);
  transition: all 0.2s ease;
  margin-top: 1px;
}
.checkbox svg { opacity: 0; transform: scale(0.4); transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); color: #fff; }
.checked > .checkbox, .checkbox.checked { background: var(--emerald); border-color: var(--emerald); }
.checked > .checkbox svg, .checkbox.checked svg { opacity: 1; transform: scale(1); }
.consent-row.error-flash .checkbox { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15); }

/* Navigation du formulaire */
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 32px; }
.btn-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 580; font-size: 0.9rem;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 9px;
  transition: all 0.2s ease;
}
.btn-back:hover { color: var(--ink); background: var(--surface); }

.form-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
  padding: 18px 30px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 550;
}
.form-trust span { display: inline-flex; align-items: center; gap: 7px; }
.form-trust svg { color: var(--emerald); flex: none; }

.confid-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  background: #18181B;
  color: #E4E4E7;
  font-size: 0.76rem;
  font-weight: 620;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.confid-badge svg { color: #6EE7B7; }

/* ---------- Simulateur ---------- */
.simulator {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.sim-controls { padding: 36px 38px; }
.sim-controls h3 { font-family: var(--serif); font-size: 1.45rem; margin-bottom: 6px; }
.sim-controls > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 26px; }
.sim-result {
  background: linear-gradient(165deg, #0B0B10, #16161C 60%, #1C1930);
  color: #FAFAFA;
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sim-result .sr-label { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: #A1A1AA; font-weight: 640; }
.sim-amount {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 700;
  margin: 12px 0 6px;
  font-variant-numeric: tabular-nums;
}
.sim-result .sr-note { font-size: 0.82rem; color: #A1A1AA; margin-bottom: 24px; }
.sim-breakdown { display: grid; gap: 9px; margin-bottom: 28px; }
.sim-breakdown li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.84rem;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #D4D4D8;
  font-variant-numeric: tabular-nums;
}
.sim-breakdown li span:last-child { font-weight: 620; color: #fff; }

/* ---------- Articles SEO ---------- */
.articles-section { padding: 90px 0; }
.article-toc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 42px 0 70px;
}
.toc-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--bg);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  transition: all 0.25s ease;
}
.toc-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.toc-card .toc-num { font-family: var(--serif); font-size: 1.3rem; color: var(--muted-2); }

.seo-article { max-width: 780px; margin: 0 auto 84px; scroll-margin-top: 110px; }
.seo-article:last-child { margin-bottom: 0; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 0.78rem; color: var(--muted);
  margin-bottom: 18px;
}
.article-chip {
  padding: 5px 12px;
  border-radius: 99px;
  font-weight: 650;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.article-chip.indigo  { background: var(--indigo-soft); color: var(--indigo-deep); }
.article-chip.emerald { background: var(--emerald-soft); color: var(--emerald); }
.article-chip.gold    { background: var(--gold-soft); color: var(--gold); }
.article-chip.zinc    { background: #F4F4F5; color: var(--ink-2); }

.seo-article h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: 22px; letter-spacing: -0.015em; }
.seo-article h3 { font-size: 1.16rem; font-weight: 660; margin: 34px 0 12px; }
.seo-article p { color: #3F3F46; margin-bottom: 16px; }
.seo-article ul, .seo-article ol { margin: 0 0 18px; display: grid; gap: 9px; }
.seo-article ul li { position: relative; padding-left: 24px; color: #3F3F46; }
.seo-article ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--indigo);
  opacity: 0.75;
}
.seo-article ol { counter-reset: item; }
.seo-article ol li { position: relative; padding-left: 34px; color: #3F3F46; counter-increment: item; }
.seo-article ol li::before {
  content: counter(item);
  position: absolute;
  left: 0; top: 1px;
  width: 23px; height: 23px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-solid);
  display: grid; place-items: center;
  font-size: 0.74rem;
  font-weight: 700;
}
.data-table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 0.89rem; }
.data-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-solid);
  font-weight: 650;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: #3F3F46; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.table-wrap .data-table { margin: 0; }

/* Bannière CTA contextuelle dans les articles */
.article-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 36px 0;
  padding: 28px 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0B0B10 0%, #1A1A22 65%, #232045 100%);
  color: #fff;
  overflow: hidden;
}
.article-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 180px at 90% 0%, rgba(99, 102, 241, 0.28), transparent 70%);
  pointer-events: none;
}
.article-cta .ac-copy { position: relative; }
.article-cta strong { display: block; font-family: var(--serif); font-size: 1.22rem; font-weight: 700; margin-bottom: 5px; }
.article-cta p { font-size: 0.85rem; color: #A1A1AA; margin: 0; }
.article-cta .btn { position: relative; flex: none; background: #fff; color: var(--ink); }
.article-cta .btn:hover { box-shadow: 0 8px 26px rgba(255, 255, 255, 0.22); }
.article-cta[data-tone="emerald"] { background: linear-gradient(135deg, #06251D, #0A3A2C 70%, #0D4A38); }
.article-cta[data-tone="emerald"]::before { background: radial-gradient(360px 180px at 90% 0%, rgba(16, 185, 129, 0.25), transparent 70%); }
.article-cta[data-tone="gold"] { background: linear-gradient(135deg, #1C1917, #292017 70%, #3B2D14); }
.article-cta[data-tone="gold"]::before { background: radial-gradient(360px 180px at 90% 0%, rgba(217, 164, 65, 0.22), transparent 70%); }

/* CTA flottant (apparaît au scroll dans les articles) */
.float-cta {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 90px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 22px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 11, 16, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 560;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
  opacity: 0;
  white-space: nowrap;
}
.float-cta.visible { transform: translate(-50%, 0); opacity: 1; }
.float-cta .btn { padding: 9px 18px; font-size: 0.84rem; }

/* ---------- Bande de réassurance ---------- */
.assurance-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.assurance-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.assurance-item strong { display: block; font-size: 0.93rem; font-weight: 640; }
.assurance-item small { font-size: 0.82rem; color: var(--muted); line-height: 1.5; display: block; margin-top: 3px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr 1fr 1fr 1.5fr;
  gap: 44px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p { font-size: 0.88rem; color: var(--muted); margin: 16px 0 22px; max-width: 300px; }
.footer-charte { display: grid; gap: 9px; }
.footer-charte li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.82rem; color: var(--ink-2); font-weight: 520; }
.footer-charte svg { color: var(--emerald); flex: none; margin-top: 3px; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 0.89rem; color: var(--ink-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--indigo-deep); }
.newsletter p { font-size: 0.86rem; color: var(--muted); margin-bottom: 16px; }
.newsletter-form { display: flex; border: 1px solid var(--line-solid); border-radius: 12px; overflow: hidden; background: var(--bg); transition: box-shadow 0.2s, border-color 0.2s; }
.newsletter-form:focus-within { border-color: var(--indigo); box-shadow: var(--ring); }
.newsletter-form input { flex: 1; border: none; padding: 13px 15px; font: inherit; font-size: 0.9rem; background: transparent; min-width: 0; }
.newsletter-form input:focus { outline: none; }
.newsletter-form button { padding: 0 18px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.86rem; transition: background 0.25s; }
.newsletter-form button:hover { background: var(--indigo-deep); }
.newsletter-ok { display: none; align-items: center; gap: 9px; font-size: 0.88rem; color: var(--emerald); font-weight: 600; padding: 12px 0; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
  padding-top: 28px;
  font-size: 0.79rem;
  color: var(--muted-2);
}
.footer-bottom .status-pill { font-size: 0.72rem; }

/* ---------- Page Merci ---------- */
.thanks-hero { padding: 90px 0 70px; text-align: center; }
.check-anim { width: 96px; height: 96px; margin: 0 auto 32px; }
.check-anim .circle {
  stroke: var(--emerald);
  stroke-dasharray: 290;
  stroke-dashoffset: 290;
  animation: drawCircle 0.9s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.check-anim .tick {
  stroke: var(--emerald);
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawTick 0.5s 0.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.check-anim .halo { fill: var(--emerald-soft); transform-origin: center; animation: haloPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawTick { to { stroke-dashoffset: 0; } }
@keyframes haloPop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.recap-card {
  max-width: 640px;
  margin: 44px auto 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  box-shadow: var(--shadow-md);
  text-align: left;
  overflow: hidden;
}
.recap-card header { padding: 18px 26px; border-bottom: 1px solid var(--line); background: var(--surface); font-weight: 650; font-size: 0.92rem; }
.recap-card ul { padding: 12px 26px; }
.recap-card li { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.recap-card li:last-child { border-bottom: none; }
.recap-card li span:first-child { color: var(--muted); }
.recap-card li span:last-child { font-weight: 600; text-align: right; }

.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 860px; margin: 52px auto 0; text-align: left; }
.next-step { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.next-step .ns-num { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--indigo); }
.next-step strong { display: block; margin: 10px 0 6px; font-size: 0.95rem; }
.next-step p { font-size: 0.84rem; color: var(--muted); }

/* Upsell multi-verticale (page merci) */
.upsell-section { padding: 30px 0 84px; border-top: 1px solid var(--line); margin-top: 40px; }
.upsell-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.upsell-card {
  display: flex; flex-direction: column;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.upsell-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(9,9,11,0.14); }
.upsell-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; }
.upsell-ico.indigo { background: var(--indigo-soft); color: var(--indigo-deep); }
.upsell-ico.emerald { background: var(--emerald-soft); color: var(--emerald); }
.upsell-ico.gold { background: var(--gold-soft); color: var(--gold); }
.upsell-ico.zinc { background: #F4F4F5; color: var(--ink-2); }
.upsell-card strong { font-size: 1.02rem; font-weight: 650; }
.upsell-card small { font-size: 0.86rem; color: var(--muted); margin-top: 6px; line-height: 1.5; flex: 1; }
.upsell-go { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-weight: 620; font-size: 0.88rem; color: var(--indigo-deep); }
.upsell-go svg { transition: transform 0.25s ease; }
.upsell-card:hover .upsell-go svg { transform: translateX(4px); }
@media (max-width: 820px) { .upsell-grid { grid-template-columns: 1fr; } }

/* ---------- Dashboard de scoring (mode test) ---------- */
.scoring-section {
  background: #09090B;
  color: #E4E4E7;
  padding: 76px 0 90px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.scoring-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 340px at 80% 0%, rgba(99, 102, 241, 0.14), transparent 65%),
    radial-gradient(560px 300px at 8% 100%, rgba(16, 185, 129, 0.09), transparent 60%);
}
.test-ribbon {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px;
  border-radius: 99px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #FCD34D;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.scoring-head { position: relative; margin-bottom: 44px; }
.scoring-head h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); color: #FAFAFA; }
.scoring-head p { color: #A1A1AA; margin-top: 10px; max-width: 560px; font-size: 0.94rem; }

.scoring-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.score-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.028);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 28px;
}
.score-card .sc-label {
  font-size: 0.72rem;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #71717A;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.sc-label .live-dot { width: 6px; height: 6px; border-radius: 50%; background: #34D399; animation: blink 1.6s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.lead-category { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; color: #FAFAFA; line-height: 1.2; }
.lead-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lead-tag {
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #A1A1AA;
}
.lead-tag.hot { border-color: rgba(251, 113, 133, 0.4); color: #FDA4AF; background: rgba(251, 113, 133, 0.07); }
.lead-tag.good { border-color: rgba(52, 211, 153, 0.35); color: #6EE7B7; background: rgba(52, 211, 153, 0.06); }
.lead-tag.info { border-color: rgba(129, 140, 248, 0.4); color: #A5B4FC; background: rgba(129, 140, 248, 0.07); }

.gauge-wrap { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.gauge-svg { width: 190px; flex: none; }
.gauge-track { stroke: rgba(255, 255, 255, 0.09); }
.gauge-value {
  stroke: url(#gaugeGradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gauge-figures .g-amount {
  font-family: var(--mono);
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  font-weight: 700;
  color: #FAFAFA;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.gauge-figures .g-range { font-family: var(--mono); font-size: 0.78rem; color: #71717A; margin-top: 8px; }
.gauge-figures .g-note { font-size: 0.8rem; color: #A1A1AA; margin-top: 14px; max-width: 240px; }

.score-factors { display: grid; gap: 9px; margin-top: 6px; }
.score-factors li {
  display: flex; justify-content: space-between; gap: 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #A1A1AA;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.score-factors li span:last-child { color: #6EE7B7; font-weight: 600; }
.score-factors li.neg span:last-child { color: #FDA4AF; }

/* Flux de routage */
.route-flow { display: grid; gap: 0; }
.route-node {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 26px;
  opacity: 0.32;
  transition: opacity 0.5s ease;
}
.route-node.active { opacity: 1; }
.route-node:last-child { padding-bottom: 0; }
.route-node::before {
  content: "";
  position: absolute;
  left: 15px; top: 34px; bottom: 4px;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.route-node:last-child::before { display: none; }
.route-dot {
  width: 31px; height: 31px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid; place-items: center;
  flex: none;
  background: rgba(255, 255, 255, 0.04);
  color: #A5B4FC;
  position: relative;
  z-index: 1;
}
.route-node.active .route-dot { border-color: rgba(129, 140, 248, 0.55); box-shadow: 0 0 18px rgba(99, 102, 241, 0.3); }
.route-node strong { display: block; font-size: 0.88rem; color: #FAFAFA; font-weight: 620; }
.route-node .rn-meta { font-family: var(--mono); font-size: 0.71rem; color: #71717A; margin-top: 3px; display: flex; gap: 12px; flex-wrap: wrap; }
.rn-meta .ok { color: #6EE7B7; }

.payload-view {
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.75;
  color: #A1A1AA;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  padding: 20px 22px;
  overflow-x: auto;
  white-space: pre;
}
.payload-view .k { color: #A5B4FC; }
.payload-view .s { color: #6EE7B7; }
.payload-view .n { color: #FCD34D; }
.payload-view .b { color: #FDA4AF; }

/* ---------- Pages légales ---------- */
.legal-page { padding: 70px 0 100px; }
.legal-page h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 10px; }
.legal-updated { font-size: 0.82rem; color: var(--muted-2); margin-bottom: 44px; }
.legal-page h2 { font-family: var(--serif); font-size: 1.4rem; margin: 40px 0 12px; }
.legal-page p, .legal-page li { color: #3F3F46; font-size: 0.95rem; margin-bottom: 12px; }
.legal-page ul { padding-left: 4px; }
.legal-page ul li { position: relative; padding-left: 22px; }
.legal-page ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--indigo); opacity: 0.7; }

/* ---------- Animations d'apparition & transitions de page ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].revealed { opacity: 1; transform: none; }

body { animation: pageIn 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.page-leave { opacity: 0; transform: translateY(-8px); transition: opacity 0.26s ease, transform 0.26s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .paths-grid { grid-template-columns: repeat(2, 1fr); }
  .span-3, .span-4, .span-5 { grid-column: span 6; }
  .span-7, .span-8 { grid-column: span 12; }
  .assurance-strip { grid-template-columns: repeat(2, 1fr); }
  .article-toc { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .fb-1 { left: 2%; }
  .fb-2 { right: 2%; }
}

@media (max-width: 900px) {
  .main-nav, .header-right .status-pill { display: none; }
  .nav-toggle { display: grid; }
  .mobile-menu { display: flex; }
  .hero-grid, .acts { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .hero-visual { max-width: 480px; }
  .acts-panel { min-height: 0; padding: 32px 26px; }
  .simulator { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .next-steps { grid-template-columns: 1fr; }
  .scoring-grid > * { grid-column: span 12 !important; }
}

@media (max-width: 640px) {
  .brand small { display: none; }
  .brand > span:last-child { white-space: nowrap; }
  .brand { font-size: 0.95rem; gap: 9px; }
  .brand-mark { width: 30px; height: 30px; }
  .header-inner { gap: 10px; }
  .header-right .btn { padding: 10px 14px; font-size: 0.82rem; }
  .header-right { gap: 8px; }
}

@media (max-width: 480px) {
  .header-right > .btn { display: none; } /* CTA disponible dans le menu mobile et le hero */
  .choice-grid, .field-grid { grid-template-columns: 1fr; }
  .span-3, .span-4, .span-5, .span-6 { grid-column: span 12; }
  .paths-grid, .assurance-strip, .article-toc { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-body, .form-head { padding-left: 22px; padding-right: 22px; }
  .article-cta { flex-direction: column; align-items: flex-start; }
  .float-cta { left: 16px; right: 16px; transform: translateY(90px); white-space: normal; justify-content: space-between; }
  .float-cta.visible { transform: translateY(0); }
  .sim-controls, .sim-result { padding: 28px 24px; }
  .header-inner { padding-left: 14px; }
}

/* ---------- Pages SEO locales : maillage & hub ---------- */
.local-links { display: flex; flex-wrap: wrap; gap: 9px; }
.local-links a {
  display: inline-flex; align-items: center;
  padding: 9px 15px;
  border: 1px solid var(--line-solid);
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--ink-2);
  background: var(--bg);
  transition: all 0.2s ease;
}
.local-links a:hover { border-color: var(--indigo); color: var(--indigo-deep); background: var(--indigo-soft); transform: translateY(-1px); }
.hub-grid { display: grid; gap: 44px; }
.hub-block h2 { margin-bottom: 18px; }

/* ---------- Preuve sociale (toasts) ---------- */
.social-proof {
  position: fixed;
  bottom: 22px; left: 22px;
  z-index: 85;
  display: flex; align-items: center; gap: 13px;
  max-width: 340px;
  padding: 13px 16px 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  pointer-events: none;
}
.social-proof.visible { transform: none; opacity: 1; pointer-events: auto; }
.social-proof .sp-ico {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--emerald-soft);
  color: var(--emerald);
}
.social-proof .sp-txt { font-size: 0.85rem; line-height: 1.35; color: var(--muted); }
.social-proof .sp-txt strong { display: block; color: var(--ink); font-weight: 620; font-size: 0.88rem; }
.social-proof .sp-txt small { display: block; font-size: 0.74rem; color: var(--muted-2); margin-top: 2px; }
.social-proof .sp-close {
  position: absolute; top: 6px; right: 9px;
  font-size: 1.1rem; line-height: 1; color: var(--muted-2);
  padding: 2px 4px;
}
.social-proof .sp-close:hover { color: var(--ink); }
@media (max-width: 560px) { .social-proof { left: 12px; right: 12px; max-width: none; bottom: 12px; } }

/* ---------- Exit-intent ---------- */
.exit-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(9, 9, 11, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.exit-overlay.visible { opacity: 1; pointer-events: auto; }
.exit-modal {
  position: relative;
  width: 100%; max-width: 460px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  padding: 40px 38px 32px;
  text-align: center;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.exit-overlay.visible .exit-modal { transform: none; }
.exit-close {
  position: absolute; top: 16px; right: 18px;
  font-size: 1.5rem; line-height: 1; color: var(--muted-2);
  width: 32px; height: 32px; border-radius: 8px;
}
.exit-close:hover { background: var(--surface); color: var(--ink); }
.exit-badge {
  display: inline-flex; align-items: center;
  padding: 6px 13px; border-radius: 99px;
  background: var(--gold-soft); color: var(--gold);
  font-size: 0.72rem; font-weight: 680; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 18px;
}
.exit-modal h3 { font-family: var(--serif); font-size: 1.7rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.exit-modal > p { font-size: 0.95rem; color: var(--muted); line-height: 1.55; margin-bottom: 24px; max-width: 360px; margin-left: auto; margin-right: auto; }
.exit-form { display: flex; flex-direction: column; gap: 10px; }
.exit-form input {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line-solid); border-radius: 11px;
  font: inherit; font-size: 0.95rem; text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.exit-form input:focus { outline: none; border-color: var(--indigo); box-shadow: var(--ring); }
.exit-form .btn { width: 100%; padding: 14px; }
.exit-fine { font-size: 0.76rem; color: var(--muted-2); margin-top: 14px; }
.exit-fine a { text-decoration: underline; text-underline-offset: 2px; }
.exit-ok {
  display: none; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 0 6px;
  font-size: 0.95rem; font-weight: 620; color: var(--emerald);
}

/* ---------- Guides / blog ---------- */
.back-link { display: inline-flex; font-size: 0.88rem; font-weight: 560; color: var(--muted); margin-bottom: 26px; transition: color 0.2s; }
.back-link:hover { color: var(--ink); }
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(9,9,11,0.14); }
.guide-card .article-chip { align-self: flex-start; }
.guide-card strong { font-size: 1.05rem; font-weight: 650; line-height: 1.35; }
.guide-go { margin-top: auto; font-weight: 620; font-size: 0.88rem; color: var(--indigo-deep); }
@media (max-width: 900px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .guides-grid { grid-template-columns: 1fr; } }
