/* ============================================================================
   PREDIPLAN — SITE VITRINE
   Style « Notion » — typo nette, espaces généreux, sections alternées,
   primaire teal #12938e cohérent avec l'outil.
   ============================================================================ */

/* ────────────────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  /* Couleurs */
  --c-primary:        #12938e;
  --c-primary-dark:   #0f766e;
  --c-primary-light:  #5ddbd6;

  --c-text:           #111827;
  --c-text-muted:     #4b5563;
  --c-text-subtle:    #6b7280;
  --c-text-faint:     #9ca3af;

  --c-bg:             #ffffff;
  --c-bg-alt:         #f7f8fa;
  --c-bg-dark:        #0f172a;

  --c-border:         #e5e7eb;
  --c-border-strong:  #d1d5db;

  --c-success:        #10b981;
  --c-danger:         #ef4444;
  --c-warning:        #f59e0b;
  --c-info:           #3b82f6;

  /* Typo */
  --ff-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
             "Helvetica Neue", Arial, sans-serif;

  /* Rayons */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 24px 56px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);

  /* Layout */
  --header-h: 64px;
  --container-max: 1200px;
  --container-narrow: 820px;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.22s ease;
}

/* ────────────────────────────────────────────────────────────────────────────
   2. RESET & BASE
   ──────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ────────────────────────────────────────────────────────────────────────────
   3. LAYOUT UTILS
   ──────────────────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: var(--container-narrow); }

.section {
  padding: 96px 0;
  position: relative;
}

.section-alt    { background: var(--c-bg-alt); }
.section-dark   { background: var(--c-bg-dark); color: #e5e7eb; }
.section-cta    { background: linear-gradient(180deg, var(--c-bg-alt) 0%, #ffffff 100%); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head-light h2 { color: #fff; }
.section-head-light .section-subtitle { color: rgba(255,255,255,0.72); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 14px;
}

.eyebrow-light { color: var(--c-primary-light); }

.text-accent { color: var(--c-primary); }

/* Typo titres */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--c-text);
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1rem; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  margin-top: 14px;
  line-height: 1.6;
}

.lead {
  font-size: 1.15rem;
  color: var(--c-text-muted);
  margin: 20px 0 32px;
  line-height: 1.6;
  max-width: 540px;
}

/* ────────────────────────────────────────────────────────────────────────────
   4. BOUTONS
   ──────────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 1rem;
  border-radius: var(--r-md);
}

.btn-primary {
  background: var(--c-primary);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(18, 147, 142, 0.25);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(18, 147, 142, 0.32);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border-strong);
}
.btn-ghost:hover {
  background: var(--c-bg-alt);
  border-color: var(--c-text-faint);
}

/* ────────────────────────────────────────────────────────────────────────────
   5. HEADER STICKY
   ──────────────────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast),
              box-shadow var(--t-fast);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--c-text);
  flex-shrink: 0;
}
.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--c-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 2px 8px rgba(18, 147, 142, 0.4);
}

/* Nav primaire (desktop) */
.nav-primary ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--c-text); background: rgba(0,0,0,0.04); }
.nav-link.active { color: var(--c-primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Burger */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Nav mobile */
.nav-mobile {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-base);
}
.nav-mobile.open { max-height: 480px; }
.nav-mobile ul {
  display: flex;
  flex-direction: column;
  padding: 12px 24px 20px;
}
.nav-mobile li { border-bottom: 1px solid var(--c-border); }
.nav-mobile li:last-child { border-bottom: none; padding-top: 12px; }
.nav-mobile a {
  display: block;
  padding: 14px 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-text);
}
.nav-mobile .mobile-cta {
  background: var(--c-primary);
  color: #fff;
  text-align: center;
  border-radius: var(--r-md);
  padding: 14px 20px;
}

/* ────────────────────────────────────────────────────────────────────────────
   6. SECTION HERO
   ──────────────────────────────────────────────────────────────────────────── */

.section-hero {
  padding: calc(var(--header-h) + 80px) 0 96px;
  background:
    radial-gradient(ellipse at top right, rgba(18, 147, 142, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(93, 219, 214, 0.06) 0%, transparent 50%),
    #ffffff;
}

.hero-grid {
  display: grid;
  /* Image dominante à droite (~2/3 de la largeur) pour rester lisible */
  grid-template-columns: minmax(360px, 1fr) minmax(0, 1.7fr);
  gap: 48px;
  align-items: center;
}

/* Container légèrement élargi pour le hero uniquement */
.container-hero {
  max-width: 1340px;
}

.hero-text h1 { margin-top: 8px; }
.hero-text h1 br { display: block; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta {
  font-size: 0.88rem;
  color: var(--c-text-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.hero-meta-sep {
  white-space: nowrap;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.dot-green { background: var(--c-success); }
.dot-teal  { background: var(--c-primary); }
.dot-amber { background: var(--c-warning); }

/* Visuel hero */
.hero-visual {
  width: 100%;
}

.hero-visual-frame,
.feature-visual-frame {
  margin: 0;
  width: 100%;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #ffffff 0%, #f4fbfa 100%);
  border: 1px solid var(--c-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 30px 70px -20px rgba(18, 147, 142, 0.35),
    0 10px 28px -10px rgba(15, 23, 42, 0.20);
  padding: 12px;
  overflow: hidden;
}

.hero-visual-img,
.feature-visual-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--r-xl) - 6px);
  border: 1px solid rgba(18, 147, 142, 0.12);
}

/* Cohérence visuelle des 3 captures de la section Fonctionnalités.
   Toutes les captures source doivent être exportées au ratio 16/9 (ex. 1600x900).
   Le cadre est uniforme ; l'image remplit le cadre sans déformation. */
.feature-visual-frame {
  aspect-ratio: 16 / 9;
  display: block;
}
.feature-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.visual-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(18, 147, 142, 0.04),
      rgba(18, 147, 142, 0.04) 12px,
      rgba(18, 147, 142, 0.07) 12px,
      rgba(18, 147, 142, 0.07) 24px
    ),
    linear-gradient(135deg, #f7fdfc 0%, #ecfaf9 100%);
  border: 1px dashed rgba(18, 147, 142, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.placeholder-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-primary-dark);
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(18, 147, 142, 0.2);
  letter-spacing: 0.01em;
}

/* ────────────────────────────────────────────────────────────────────────────
   7. SECTION PROBLÈME
   ──────────────────────────────────────────────────────────────────────────── */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform var(--t-base), box-shadow var(--t-base),
              border-color var(--t-base);
}
.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-strong);
}

.problem-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(239, 68, 68, 0.08);
  color: var(--c-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.problem-icon svg { width: 22px; height: 22px; }

.problem-card h3 { margin-bottom: 10px; }
.problem-card p { color: var(--c-text-muted); font-size: 0.96rem; }

/* ────────────────────────────────────────────────────────────────────────────
   8. SECTION CONCEPT
   ──────────────────────────────────────────────────────────────────────────── */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 72px;
}

.compare-col {
  border-radius: var(--r-lg);
  padding: 32px 28px;
  border: 1px solid var(--c-border);
  background: #fff;
}

.compare-old {
  background: #fafafa;
  opacity: 0.92;
}

.compare-new {
  border-color: rgba(18, 147, 142, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #f7fdfc 100%);
  box-shadow: var(--shadow-md);
}

.compare-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: #f3f4f6;
  color: var(--c-text-subtle);
  margin-bottom: 14px;
}

.compare-tag-new {
  background: var(--c-primary);
  color: #fff;
}

.compare-col h3 { margin-bottom: 18px; }

.compare-list { display: flex; flex-direction: column; gap: 10px; }
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}
.compare-list .check { color: var(--c-primary); font-weight: 700; flex-shrink: 0; }
.compare-list .x     { color: var(--c-text-faint); flex-shrink: 0; }

/* Glossaire */
.concept-glossary {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 40px;
}
.glossary-title {
  text-align: center;
  margin-bottom: 32px;
  font-size: 1.4rem;
}
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
}
.glossary-item {
  position: relative;
  padding-left: 22px;
}
.glossary-dot {
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.glossary-item strong {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--c-text);
}
.glossary-item p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* ────────────────────────────────────────────────────────────────────────────
   9. SECTION FONCTIONNALITÉS
   ──────────────────────────────────────────────────────────────────────────── */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row-reverse .feature-text { order: 2; }
.feature-row-reverse .feature-visual { order: 1; }

/* Variante : visuel dominant pour captures larges (timelines, plannings) */
.feature-row-wide {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1.7fr);
  gap: 48px;
}
/* En mode invers\u00e9, on inverse aussi les proportions pour que le visuel
   reste TOUJOURS dans la colonne large (sinon il appara\u00eet rapetiss\u00e9). */
.feature-row-wide.feature-row-reverse {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
}

.feature-number {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-primary);
  margin-bottom: 12px;
}

.feature-text h3 {
  font-size: 1.7rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.feature-text > p {
  color: var(--c-text-muted);
  font-size: 1.02rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--c-text-muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
}

/* ────────────────────────────────────────────────────────────────────────────
   10. SECTION COMMENT ÇA MARCHE — STEPS
   ──────────────────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.steps { list-style: none; }

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(18, 147, 142, 0.3);
}

.step h3 { margin-bottom: 10px; font-size: 1.15rem; }
.step p { color: var(--c-text-muted); font-size: 0.95rem; }

/* ────────────────────────────────────────────────────────────────────────────
   11. SECTION POUR QUI
   ──────────────────────────────────────────────────────────────────────────── */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.audience-card {
  display: flex;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.audience-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.audience-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.audience-icon svg { width: 24px; height: 24px; }

.audience-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.audience-card p { color: var(--c-text-muted); font-size: 0.94rem; }

/* ────────────────────────────────────────────────────────────────────────────
   12. SECTION IMPACT (DARK)
   ──────────────────────────────────────────────────────────────────────────── */

.section-dark .eyebrow { color: var(--c-primary-light); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.stat {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.02);
}

.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--c-primary-light) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 10px;
}

.stat-note {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
  line-height: 1.5;
}

/* ────────────────────────────────────────────────────────────────────────────
   13. SECTION TARIFS
   ──────────────────────────────────────────────────────────────────────────── */

.pricing-card {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 44px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
}

.pricing-head h3 { font-size: 1.4rem; margin-bottom: 10px; }
.pricing-head p { color: var(--c-text-muted); margin-bottom: 28px; }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 420px;
  margin: 0 auto 32px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  color: var(--c-text-muted);
}
.pricing-features .check { color: var(--c-primary); font-weight: 700; }

/* ────────────────────────────────────────────────────────────────────────────
   14. SECTION FAQ
   ──────────────────────────────────────────────────────────────────────────── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.faq-item:hover { border-color: var(--c-border-strong); }
.faq-item[open] {
  border-color: rgba(18, 147, 142, 0.4);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--c-primary);
  transition: transform var(--t-base);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-body {
  padding: 0 24px 22px;
  color: var(--c-text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ────────────────────────────────────────────────────────────────────────────
   15. SECTION CTA / FORMULAIRE
   ──────────────────────────────────────────────────────────────────────────── */

.cta-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 48px 44px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.cta-card h2 { margin-top: 6px; }
.cta-card > p {
  color: var(--c-text-muted);
  margin: 16px auto 36px;
  max-width: 540px;
}

.lead-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Honeypot — invisible mais reste dans le DOM */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--c-text);
  font-size: 0.96rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(18, 147, 142, 0.18);
}
.form-field textarea { resize: vertical; min-height: 100px; }

.form-field input.invalid,
.form-field select.invalid {
  border-color: var(--c-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.form-legal {
  font-size: 0.8rem;
  color: var(--c-text-subtle);
  text-align: center;
  line-height: 1.5;
  max-width: 480px;
}

.form-feedback {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--r-md);
  display: none;
}
.form-feedback.show { display: block; }
.form-feedback.success {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.form-feedback.error {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ────────────────────────────────────────────────────────────────────────────
   16. FOOTER
   ──────────────────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--c-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-tagline {
  font-size: 0.94rem;
  color: rgba(255,255,255,0.6);
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.5);
  gap: 16px;
  flex-wrap: wrap;
}

/* ────────────────────────────────────────────────────────────────────────────
   17. ANIMATIONS REVEAL ON SCROLL
   ──────────────────────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Délais en cascade pour les grilles */
.problem-grid .reveal:nth-child(2),
.audience-grid .reveal:nth-child(2),
.steps .reveal:nth-child(2),
.stats-grid .reveal:nth-child(2) { transition-delay: 0.08s; }

.problem-grid .reveal:nth-child(3),
.audience-grid .reveal:nth-child(3),
.steps .reveal:nth-child(3),
.stats-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

.audience-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ────────────────────────────────────────────────────────────────────────────
   17b. PAGES LÉGALES (CGU, Mentions, Confidentialité)
   ──────────────────────────────────────────────────────────────────────────── */

.page-legal {
  background: var(--c-bg);
}

/* — Hero légal — */
.legal-hero {
  background:
    radial-gradient(900px 380px at 18% 0%, rgba(18, 147, 142, 0.08), transparent 60%),
    linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 100%);
  border-bottom: 1px solid var(--c-border);
  padding: calc(var(--header-h) + 56px) 0 56px;
}

.legal-hero-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.legal-breadcrumb {
  font-size: 0.85rem;
  color: var(--c-text-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.legal-breadcrumb a {
  color: var(--c-text-muted);
  transition: color var(--t-fast);
}
.legal-breadcrumb a:hover { color: var(--c-primary); }
.legal-breadcrumb span[aria-hidden] { color: var(--c-text-faint); }

.legal-hero .eyebrow { margin-bottom: 14px; }

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 14px;
}

.legal-subtitle {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 640px;
  margin-bottom: 28px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--c-text-muted);
  box-shadow: var(--shadow-sm);
}
.legal-badge strong { color: var(--c-text); font-weight: 600; }
.legal-badge-muted {
  background: transparent;
  box-shadow: none;
  color: var(--c-text-subtle);
}

/* — Layout deux colonnes — */
.legal-section {
  padding: 56px 0 96px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

/* — Sommaire collant — */
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding-right: 8px;
}

.legal-toc-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
  margin-bottom: 14px;
  padding-left: 14px;
}

.legal-toc-list {
  list-style: none;
  counter-reset: tocsec;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-toc-link {
  counter-increment: tocsec;
  display: block;
  padding: 7px 14px 7px 36px;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--c-text-muted);
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  position: relative;
}
.legal-toc-link::before {
  content: counter(tocsec);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--c-text-faint);
  font-weight: 600;
  min-width: 14px;
}
.legal-toc-link:hover {
  color: var(--c-text);
  background: var(--c-bg-alt);
}
.legal-toc-link.active {
  color: var(--c-primary);
  border-left-color: var(--c-primary);
  background: rgba(18, 147, 142, 0.06);
  font-weight: 500;
}
.legal-toc-link.active::before { color: var(--c-primary); }

/* — Article — */
.legal-article {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
}

.legal-intro {
  padding: 22px 24px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  margin-bottom: 56px;
}
.legal-intro p { color: var(--c-text-muted); }
.legal-intro p + p { margin-top: 12px; }

.legal-block {
  padding-top: 8px;
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal-block + .legal-block {
  border-top: 1px solid var(--c-border);
  padding-top: 40px;
}

.legal-block-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.legal-block-head h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 650;
  color: var(--c-text);
  margin: 0;
}
.legal-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(18, 147, 142, 0.1);
  color: var(--c-primary);
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.legal-article p {
  color: var(--c-text);
  margin-bottom: 14px;
}
.legal-article strong { color: var(--c-text); font-weight: 600; }
.legal-article a {
  color: var(--c-primary);
  text-decoration: underline;
  text-decoration-color: rgba(18, 147, 142, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-fast);
}
.legal-article a:hover { text-decoration-color: var(--c-primary); }

.legal-note {
  font-size: 0.92rem;
  color: var(--c-text-subtle);
  font-style: italic;
}

/* Listes */
.legal-list {
  list-style: none;
  margin: 6px 0 18px;
  padding: 0;
}
.legal-list li {
  position: relative;
  padding: 4px 0 4px 22px;
  color: var(--c-text);
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
}
.legal-list-deny li::before {
  background: transparent;
  border: 1.5px solid var(--c-danger);
  top: 13px;
}

/* Carte d'identification éditeur */
.legal-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 22px 24px;
  margin: 14px 0 18px;
  box-shadow: var(--shadow-sm);
}

.legal-id {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.legal-id > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--c-border);
}
.legal-id > div:last-child { border-bottom: none; padding-bottom: 0; }
.legal-id dt {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
}
.legal-id dd { color: var(--c-text); margin: 0; }

/* Définitions */
.legal-defs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 6px;
}
.legal-defs > div {
  padding: 16px 18px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.legal-defs dt {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 4px;
}
.legal-defs dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--c-text-muted);
  line-height: 1.65;
}

/* Callouts */
.legal-callout {
  position: relative;
  padding: 16px 18px 16px 20px;
  margin: 18px 0;
  background: rgba(18, 147, 142, 0.06);
  border-left: 3px solid var(--c-primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--c-text);
  font-size: 0.96rem;
  line-height: 1.65;
}
.legal-callout strong { color: var(--c-primary-dark); }
.legal-callout-warn {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--c-warning);
}
.legal-callout-warn strong { color: #b45309; }

/* Footer du document */
.legal-footer-doc {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--c-border);
  font-size: 0.92rem;
  color: var(--c-text-subtle);
}
.legal-footer-doc p + p { margin-top: 6px; }

/* Sélection */
.legal-article ::selection {
  background: rgba(18, 147, 142, 0.18);
}

/* Responsive — pages légales */
@media (max-width: 980px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .legal-toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 18px;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
  }
  .legal-toc-title { padding-left: 0; }
  .legal-toc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
}

@media (max-width: 600px) {
  .legal-hero { padding: calc(var(--header-h) + 36px) 0 36px; }
  .legal-section { padding: 36px 0 64px; }
  .legal-toc-list { grid-template-columns: 1fr; }
  .legal-block + .legal-block { padding-top: 32px; }
  .legal-block-head h2 { font-size: 1.25rem; }
  .legal-id > div { grid-template-columns: 1fr; gap: 4px; }
  .legal-id dt { font-size: 0.72rem; }
}

/* Impression */
@media print {
  .site-header, .site-footer, .legal-toc, .legal-breadcrumb { display: none !important; }
  .legal-layout { grid-template-columns: 1fr; gap: 0; }
  .legal-hero { padding: 0 0 24px; background: none; border-bottom: 1px solid #000; }
  .legal-section { padding: 24px 0; }
  .legal-block { break-inside: avoid; }
  .legal-callout { background: none; border-left: 2px solid #000; }
  body { font-size: 11pt; line-height: 1.5; color: #000; }
}

/* ────────────────────────────────────────────────────────────────────────────
   18. RESPONSIVE
   ──────────────────────────────────────────────────────────────────────────── */

/* Tablette large */
@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .glossary-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { gap: 40px; }
}

/* Tablette */
@media (max-width: 880px) {
  .nav-primary { display: none; }
  .burger { display: flex; }

  .section { padding: 72px 0; }
  .section-hero { padding: calc(var(--header-h) + 48px) 0 72px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .problem-grid,
  .stats-grid,
  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .compare-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }

  .feature-row,
  .feature-row-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
  }
  .feature-row-reverse .feature-text { order: 1; }
  .feature-row-reverse .feature-visual { order: 2; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .concept-glossary { padding: 28px 24px; }
  .glossary-grid { grid-template-columns: 1fr; gap: 22px; }

  .cta-card { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 520px) {
  .container { padding: 0 18px; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }

  .lead { font-size: 1rem; }
  .section-subtitle { font-size: 0.96rem; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .header-actions .btn-primary { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }

  .problem-card,
  .step,
  .audience-card { padding: 24px 20px; }
}
