/* =============================================================
   ECOVIDALIM — Design system unique
   Un seul :root, partagé par toutes les pages.
   Remplace les deux forks index.html / ateliers.html.
   ============================================================= */

:root {
  /* --- Surfaces ------------------------------------------------ */
  --surface-base:    #f5efe0;
  --surface-sunk:    #ebe1cb;
  --surface-raised:  #faf6ee;
  --surface-invert:  #1a2e23;

  /* --- Bordures (modèle alpha unique) -------------------------- */
  --border-subtle:   rgba(26, 46, 35, 0.12);
  --border-strong:   rgba(26, 46, 35, 0.24);

  /* --- Texte (tous ≥ 4,5:1 sur base ET sunk) ------------------- */
  --text-strong:     #1a2e23;
  --text-body:       #40584a;
  --text-muted:      #54685c;
  --text-invert:     #f5efe0;
  --text-invert-dim: rgba(245, 239, 224, 0.72);

  /* --- Terracotta : deux rôles strictement séparés -------------- */
  --accent:          #d17a5d;  /* DÉCORATIF uniquement : traits, puces, bordures */
  --accent-text:     #9a4f2f;  /* tout texte terracotta */
  --accent-solid:    #a8532f;  /* fond de bouton portant du blanc */
  --accent-on-dark:  #e8a58c;
  --accent-wash:     rgba(209, 122, 93, 0.09);

  --sage:            #7a9582;  /* décoratif uniquement — jamais de texte */

  /* --- Sémantique ---------------------------------------------- */
  --danger:          #a8231f;
  --success:         #2f6b47;

  /* --- Typographie --------------------------------------------- */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:  'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;

  --fs-2xs: 0.6875rem;   /* 11px — plancher absolu */
  --fs-xs:  0.75rem;
  --fs-sm:  0.875rem;    /* plancher des labels de formulaire */
  --fs-md:  0.9375rem;
  --fs-base:1rem;
  --fs-lg:  1.125rem;
  --fs-xl:  1.375rem;
  --fs-2xl: 1.625rem;
  --fs-3xl: clamp(1.75rem, 4vw, 2.75rem);
  --fs-4xl: clamp(2.5rem, 6vw, 4.5rem);
  --fs-num: clamp(2.25rem, 5vw, 3.5rem);

  --lh-tight: 1.15;
  --lh-snug:  1.4;
  --lh-base:  1.65;
  --ls-mono:  0.15em;

  /* --- Espacement (échelle 4px) --------------------------------- */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem;  --sp-8: 2rem;    --sp-10: 2.5rem;
  --sp-12: 3rem;   --sp-16: 4rem;   --sp-20: 5rem;   --sp-24: 6rem;

  --section-y: clamp(3.5rem, 8vw, 6rem);
  --section-x: clamp(1.25rem, 4vw, 1.5rem);
  --container: 1180px;

  /* --- Formes, ombres, mouvement -------------------------------- */
  --r-sm: 6px;  --r-md: 12px;  --r-lg: 20px;  --r-pill: 9999px;

  --shadow-sm: 0 1px 2px rgba(26, 46, 35, 0.05);
  --shadow-md: 0 6px 24px -8px rgba(26, 46, 35, 0.12), 0 2px 6px -2px rgba(26, 46, 35, 0.05);
  --shadow-lg: 0 24px 60px -20px rgba(26, 46, 35, 0.18), 0 8px 24px -8px rgba(26, 46, 35, 0.08);

  --t-fast: 0.18s cubic-bezier(.32, .72, .32, 1);
  --t-base: 0.28s cubic-bezier(.32, .72, .32, 1);
  --t-slow: 0.55s cubic-bezier(.32, .72, .32, 1);

  --focus-ring:        0 0 0 3px rgba(26, 46, 35, 0.85);
  --focus-ring-invert: 0 0 0 3px rgba(245, 239, 224, 0.9);

  --nav-h: 68px;
}

/* Breakpoints de référence (documentaires) : 600px / 900px / 1200px */

/* =============================================================
   RESET & BASE
   ============================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }

body {
  font-family: var(--font-sans);
  background: var(--surface-base);
  color: var(--text-body);
  line-height: var(--lh-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Texture papier — portée sur toutes les pages */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.30  0 0 0 0 0.20  0 0 0 0 0.10  0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.045;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* =============================================================
   TYPOGRAPHIE
   ============================================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--text-strong);
  letter-spacing: -0.015em;
  line-height: var(--lh-tight);
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: var(--fs-4xl); font-variation-settings: "opsz" 144, "SOFT" 50; }
h2 { font-size: var(--fs-3xl); font-variation-settings: "opsz" 96, "SOFT" 40; }
h3 { font-size: var(--fs-xl);  font-variation-settings: "opsz" 60, "SOFT" 30; font-weight: 500; }
h4 { font-size: var(--fs-lg);  font-variation-settings: "opsz" 40; font-weight: 500; }

/* Signature de marque : le mot-clé en italique terracotta. */
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--accent-text);
  font-weight: 400;
}

p { color: var(--text-body); }
p + p { margin-top: var(--sp-4); }
strong { color: var(--text-strong); font-weight: 600; }
.mono { font-family: var(--font-mono); }
.lead { font-size: var(--fs-lg); color: var(--text-body); }
.small { font-size: var(--fs-sm); }

/* =============================================================
   ACCESSIBILITÉ TRANSVERSE
   ============================================================= */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 10000;
  background: var(--surface-invert);
  color: var(--text-invert);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-4); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }
.section--invert :focus-visible,
.footer :focus-visible { box-shadow: var(--focus-ring-invert); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =============================================================
   LAYOUT
   ============================================================= */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--section-x);
  position: relative;
  z-index: 2;
}
.container--narrow { max-width: 780px; }

.section {
  padding-block: var(--section-y);
  position: relative;
  z-index: 2;
}
.section--base   { background: var(--surface-base); }
.section--sunk   { background: var(--surface-sunk); }
.section--raised { background: var(--surface-raised); }
.section--invert {
  background: var(--surface-invert);
  color: var(--text-invert-dim);
}
.section--invert h1, .section--invert h2,
.section--invert h3, .section--invert h4 { color: var(--text-invert); }
.section--invert p { color: var(--text-invert-dim); }
.section--invert h2 em { color: var(--accent-on-dark); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

.section__head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { margin-top: var(--sp-4); font-size: var(--fs-lg); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}
.section__head--center .eyebrow::after {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}
.section--invert .eyebrow { color: var(--accent-on-dark); }

.divider {
  display: flex;
  justify-content: center;
  padding-block: var(--sp-8);
  color: var(--sage);
  opacity: 0.5;
}
.divider svg { width: 120px; height: 16px; }

/* Grilles utilitaires */
.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* =============================================================
   BOUTONS — 1 composant, 4 variantes, 3 tailles
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 var(--sp-6);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base),
              border-color var(--t-base), transform var(--t-base),
              box-shadow var(--t-base);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--sm { min-height: 36px; font-size: var(--fs-sm); padding-inline: var(--sp-4); }
.btn--lg { min-height: 52px; font-size: var(--fs-base); padding-inline: var(--sp-8); }
.btn--block { width: 100%; }

/* Primaire — identique sur TOUTES les pages. 13,35:1 */
.btn--primary {
  background: var(--surface-invert);
  color: var(--surface-raised);
}
.btn--primary:hover { background: #10201a; box-shadow: var(--shadow-md); }

/* Accent — second niveau. #fff sur #a8532f ≥ 4,5:1 */
.btn--accent { background: var(--accent-solid); color: #fff; }
.btn--accent:hover { background: #8e4526; box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: rgba(26, 46, 35, 0.05); border-color: var(--text-strong); }

.btn--quiet {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-subtle);
}
.btn--quiet:hover { color: var(--text-strong); border-color: var(--border-strong); }

.section--invert .btn--ghost,
.footer .btn--ghost {
  color: var(--text-invert);
  border-color: rgba(245, 239, 224, 0.3);
}
.section--invert .btn--ghost:hover { background: rgba(245, 239, 224, 0.08); }
.section--invert .btn--primary {
  background: var(--surface-base);
  color: var(--surface-invert);
}

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* Lien texte souligné (CTA tertiaire) */
.link {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 600;
}
.link:hover { text-decoration-thickness: 2px; }
.section--invert .link { color: var(--accent-on-dark); }

/* =============================================================
   BADGES — statut, distinct de .eyebrow
   ============================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
}
.badge--neutral { background: var(--surface-sunk); color: var(--text-muted); border-color: var(--border-subtle); }
.badge--accent  { background: var(--accent-wash); color: var(--accent-text); border-color: rgba(209,122,93,0.28); }
.badge--solid   { background: var(--accent-solid); color: #fff; }
.badge--pending { background: transparent; color: var(--text-muted); border: 1px dashed var(--border-strong); }
.badge--ok      { background: rgba(47,107,71,0.1); color: var(--success); border-color: rgba(47,107,71,0.3); }

/* =============================================================
   CARTES — 4 élévations, sémantique unique
   ============================================================= */
.card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-8);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: var(--sp-3); }
.card p { font-size: var(--fs-md); }

.card--featured {
  background: var(--surface-invert);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  color: var(--text-invert-dim);
  position: relative;
  overflow: hidden;
}
.card--featured h3, .card--featured h4 { color: var(--text-invert); }
.card--featured p, .card--featured li { color: var(--text-invert-dim); }
.card--featured::after {
  content: '';
  position: absolute;
  inset: auto -30% -40% auto;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(209,122,93,0.22), transparent 70%);
  pointer-events: none;
}

.card--outline { border-color: var(--border-strong); box-shadow: none; }

/* Le pointillé signifie « indisponible ». Usage exclusif. */
.card--pending {
  border: 1px dashed var(--border-strong);
  box-shadow: none;
  background: transparent;
}

.card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.card__body { flex: 1; }
.card__foot { margin-top: var(--sp-6); }

/* Listes à puce feuille */
.list-check { list-style: none; display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.list-check li {
  position: relative;
  padding-left: var(--sp-6);
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
}
.list-check li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.card--featured .list-check li::before { background: var(--accent-on-dark); }

/* =============================================================
   NAVIGATION — identique sur toutes les pages, burger inclus
   ============================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--t-base), box-shadow var(--t-base), backdrop-filter var(--t-base);
}
.nav.is-scrolled {
  background: rgba(245, 239, 224, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-subtle);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--section-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--text-strong);
  flex-shrink: 0;
}
.brand svg { width: 30px; height: 30px; }
.brand__name {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variation-settings: "opsz" 40;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
}
.nav__links a:not(.btn) {
  text-decoration: none;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-body);
  padding: var(--sp-2) 0;
  transition: color var(--t-fast);
}
.nav__links a:not(.btn):hover,
.nav__links a[aria-current="page"] { color: var(--text-strong); }
.nav__links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  cursor: pointer;
  color: var(--text-strong);
}
.nav__toggle svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: var(--sp-6);
    background: var(--surface-base);
    transform: translateY(-100%);
    transition: transform var(--t-base);
    z-index: 200;
    padding: var(--sp-16) var(--section-x);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a:not(.btn) { font-size: var(--fs-xl); font-family: var(--font-serif); }
  .nav__close { display: inline-flex !important; position: absolute; top: var(--sp-5); right: var(--section-x); }
}
.nav__close { display: none; }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  padding-top: calc(var(--nav-h) + clamp(3rem, 9vw, 6.5rem));
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.hero__inner { max-width: 46rem; }
.hero h1 { margin-bottom: var(--sp-6); }
.hero__sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  max-width: 40rem;
  margin-bottom: var(--sp-8);
}
.hero__meta {
  margin-top: var(--sp-6);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  align-items: center;
}
.hero__botanical {
  position: absolute;
  right: -2rem; bottom: -3rem;
  width: min(280px, 30vw);
  color: var(--sage);
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 900px) { .hero__botanical { display: none; } }

/* =============================================================
   BANDEAU DE RÉASSURANCE
   ============================================================= */
.trustbar {
  background: var(--surface-raised);
  border-block: 1px solid var(--border-subtle);
  padding-block: var(--sp-5);
}
.trustbar__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  align-items: center;
  justify-content: center;
  list-style: none;
}
.trustbar__list li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-body);
  font-weight: 500;
}
.trustbar__list svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.trustbar__list a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================
   FORMULAIRES
   ============================================================= */
.field { margin-bottom: var(--sp-5); }
.field__label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: var(--sp-2);
}
.field__req { color: var(--accent-text); }

.field__control {
  width: 100%;
  min-height: 44px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  color: var(--text-strong);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field__control::placeholder { color: var(--text-muted); opacity: 1; }
.field__control:focus-visible {
  outline: none;
  border-color: var(--surface-invert);
  box-shadow: var(--focus-ring);
}
.field__control:user-invalid { border-color: var(--danger); }

select.field__control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23a8532f' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 12px;
  padding-right: var(--sp-10);
  cursor: pointer;
}
textarea.field__control { min-height: 120px; resize: vertical; line-height: var(--lh-base); }

.field__hint { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--text-body); }
.field__error { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--danger); font-weight: 600; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

fieldset { border: 0; }
legend {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--sp-4);
  font-weight: 500;
}

.checkbox {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  cursor: pointer;
  padding: var(--sp-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  background: var(--surface-base);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.checkbox:hover { border-color: var(--border-strong); }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-solid); flex-shrink: 0; cursor: pointer; }
.checkbox__text { font-size: var(--fs-sm); color: var(--text-body); line-height: var(--lh-snug); }
.checkbox__text strong { display: block; color: var(--text-strong); margin-bottom: 2px; }

.form-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* Bloc de total : accent, PAS de pointillé (réservé à « indisponible ») */
.total-box {
  background: var(--accent-wash);
  border: 1px solid rgba(209, 122, 93, 0.35);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  text-align: center;
  margin-block: var(--sp-6);
}
.total-box__label {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--sp-2);
}
.total-box__value {
  font-family: var(--font-serif);
  font-size: var(--fs-num);
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1;
  font-variation-settings: "opsz" 120;
}
.total-box__unit { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--text-body); }
.total-box__note { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--text-muted); }

/* Statut de soumission */
.form-status {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok    { background: rgba(47,107,71,0.08);  border: 1px solid rgba(47,107,71,0.3);  color: var(--success); }
.form-status--error { background: rgba(168,35,31,0.06);  border: 1px solid rgba(168,35,31,0.3);  color: var(--danger); }

/* Honeypot anti-bot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Étapes du configurateur */
.steps { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-8); }
.steps__item {
  flex: 1;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--border-subtle);
  transition: background var(--t-base);
}
.steps__item.is-done { background: var(--accent); }
.steps__legend {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}
.step { display: none; }
.step.is-active { display: block; animation: fadeUp var(--t-base) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =============================================================
   TIMELINE (déroulé d'une journée)
   ============================================================= */
.timeline { position: relative; display: grid; gap: var(--sp-8); }
.timeline::before {
  content: '';
  position: absolute;
  left: 21px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-strong) 12%, var(--border-strong) 88%, transparent);
}
.timeline__item { display: grid; grid-template-columns: 44px 1fr; gap: var(--sp-5); align-items: start; }
.timeline__bullet {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--accent-text);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.timeline__item h3 { margin-bottom: var(--sp-2); font-size: var(--fs-lg); }
.timeline__item p { font-size: var(--fs-md); }
@media (max-width: 600px) {
  .timeline::before { left: 17px; }
  .timeline__item { grid-template-columns: 36px 1fr; gap: var(--sp-4); }
  .timeline__bullet { width: 36px; height: 36px; font-size: 0.5625rem; }
}

/* =============================================================
   FAQ (details/summary natif = accessible par défaut)
   ============================================================= */
.faq { display: grid; gap: var(--sp-3); }
.faq__item {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq__item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq__q {
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  min-height: 44px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '';
  width: 12px; height: 12px;
  flex-shrink: 0;
  background: currentColor;
  color: var(--accent-text);
  clip-path: polygon(45% 0, 55% 0, 55% 45%, 100% 45%, 100% 55%, 55% 55%, 55% 100%, 45% 100%, 45% 55%, 0 55%, 0 45%, 45% 45%);
  transition: transform var(--t-base);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 var(--sp-6) var(--sp-6); font-size: var(--fs-md); }
.faq__a p + p { margin-top: var(--sp-3); }

/* =============================================================
   BLOC « LE CADRE » — définitions
   ============================================================= */
.framework { display: grid; gap: 0; }
.framework__row {
  display: grid;
  grid-template-columns: minmax(150px, 200px) 1fr;
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--border-subtle);
  align-items: start;
}
.framework__row:last-child { border-bottom: 1px solid var(--border-subtle); }
.framework__key {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 500;
  padding-top: 3px;
}
.framework__val { font-size: var(--fs-md); color: var(--text-body); }
.framework__val a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
@media (max-width: 600px) {
  .framework__row { grid-template-columns: 1fr; gap: var(--sp-2); }
}

/* =============================================================
   PROCESSUS (étapes numérotées)
   ============================================================= */
.process { counter-reset: step; display: grid; gap: var(--sp-5); }
.process__item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--sp-5);
  align-items: start;
}
.process__item::before {
  content: counter(step);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-wash);
  border: 1px solid rgba(209,122,93,0.3);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-text);
}
.process__item h3 { font-size: var(--fs-base); font-family: var(--font-sans); font-weight: 700; color: var(--text-strong); margin-bottom: var(--sp-1); }
.process__item p { font-size: var(--fs-md); }

/* =============================================================
   CITATION / ENCADRÉ
   ============================================================= */
.callout {
  background: var(--surface-raised);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--sp-6) var(--sp-8);
}
.callout--invert { background: rgba(245,239,224,0.06); border-left-color: var(--accent-on-dark); }
.quote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: var(--lh-snug);
  color: var(--text-strong);
  text-wrap: balance;
}
.quote__attr {
  margin-top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* =============================================================
   PRICING / FORMATS
   ============================================================= */
.price { display: flex; align-items: baseline; gap: var(--sp-2); margin-block: var(--sp-4); }
.price__amount {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1;
  font-variation-settings: "opsz" 120;
}
.card--featured .price__amount { color: var(--text-invert); }
.price__unit { font-size: var(--fs-sm); color: var(--text-muted); }
.card--featured .price__unit { color: var(--text-invert-dim); }
.price__per {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-text);
  letter-spacing: 0.04em;
}
.card--featured .price__per { color: var(--accent-on-dark); }

.spec {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-snug);
}
.card--featured .spec { border-top-color: rgba(245,239,224,0.15); color: var(--text-invert-dim); }

/* =============================================================
   BARRE STICKY MOBILE (conversion)
   ============================================================= */
.stickybar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--section-x);
  background: rgba(245, 239, 224, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-strong);
  padding-bottom: max(var(--sp-3), env(safe-area-inset-bottom));
}
.stickybar__price { font-size: var(--fs-xs); color: var(--text-body); line-height: 1.3; }
.stickybar__price strong { display: block; font-size: var(--fs-sm); color: var(--text-strong); }
@media (max-width: 900px) {
  .stickybar.is-enabled { display: flex; }
  body.has-stickybar { padding-bottom: 76px; }
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: var(--surface-invert);
  color: var(--text-invert-dim);
  padding-block: var(--sp-16) var(--sp-8);
  position: relative;
  z-index: 2;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(245, 239, 224, 0.14);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); } }

.footer .brand { color: var(--text-invert); }
.footer__tagline { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--text-invert-dim); max-width: 24rem; }
.footer h2 {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--accent-on-dark);
  font-weight: 500;
  margin-bottom: var(--sp-4);
}
.footer ul { list-style: none; display: grid; gap: var(--sp-3); }
.footer a {
  text-decoration: none;
  font-size: var(--fs-sm);
  color: var(--text-invert-dim);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 24px;
  transition: color var(--t-fast);
}
.footer a:hover { color: var(--text-invert); }
.footer svg { width: 15px; height: 15px; }

.footer__bottom {
  padding-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: rgba(245, 239, 224, 0.62);
}

/* =============================================================
   RÉVÉLATION AU DÉFILEMENT
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   PROSE (pages éditoriales : /le-projet, /ressources)
   ============================================================= */
.prose { max-width: 46rem; }
.prose h2 { margin-top: var(--sp-12); margin-bottom: var(--sp-4); }
.prose h3 { margin-top: var(--sp-8); margin-bottom: var(--sp-3); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--sp-4); font-size: var(--fs-base); }
.prose ul, .prose ol { padding-left: var(--sp-6); }
.prose li { margin-bottom: var(--sp-2); }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* Fil d'Ariane */
.breadcrumb {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding-top: calc(var(--nav-h) + var(--sp-6));
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}
.breadcrumb a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { color: var(--text-strong); }
.breadcrumb__sep { color: var(--accent); }

/* Barre de progression accessible */
.progress {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--border-subtle);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent), var(--accent-solid));
  transition: width 1.2s cubic-bezier(.32,.72,.32,1);
}

/* Tableau simple */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.table th, .table td { text-align: left; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border-subtle); }
.table th { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--ls-mono); text-transform: uppercase; color: var(--accent-text); font-weight: 500; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* =============================================================
   CORRECTIFS DE COMPOSITION — carte sombre, espacements, méta
   ============================================================= */

/* Sur .card--featured (fond sombre), le CTA primaire s'inverse,
   exactement comme dans .section--invert. La règle « un seul style de
   CTA primaire » est ainsi tenue sans sacrifier le contraste. */
.card--featured .btn--primary {
  background: var(--surface-base);
  color: var(--surface-invert);
}
.card--featured .btn--primary:hover { background: #fff; }
.card--featured .btn--ghost {
  color: var(--text-invert);
  border-color: rgba(245, 239, 224, 0.3);
}
.card--featured .btn--ghost:hover { background: rgba(245, 239, 224, 0.08); }

.card--featured .eyebrow { color: var(--accent-on-dark); }
.card--featured .eyebrow::before,
.card--featured .eyebrow::after { background: var(--accent-on-dark); }
.card--featured .link { color: var(--accent-on-dark); }

.card--featured .badge--accent {
  background: rgba(232, 165, 140, 0.16);
  color: var(--accent-on-dark);
  border-color: rgba(232, 165, 140, 0.4);
}
.card--featured .badge--neutral {
  background: rgba(245, 239, 224, 0.1);
  color: var(--text-invert-dim);
  border-color: rgba(245, 239, 224, 0.2);
}

/* Empilement vertical — remplace les marges inline. */
.stack > * + * { margin-top: var(--sp-6); }
.stack--sm > * + * { margin-top: var(--sp-3); }
.stack--lg > * + * { margin-top: var(--sp-10); }
.mt-8  { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }

/* Séparateurs de la ligne méta du hero. */
.hero__meta > * + *::before {
  content: '·';
  color: var(--accent);
  margin-right: var(--sp-4);
}

/* Conteneur droit d'un item de timeline (nommé, pour la maintenance). */
.timeline__content { min-width: 0; }
