/* ============================================================
   KAIROS — design system v2 (3 parcours)
   Charte officielle : navy #203F84 / gold #DFB100 / cream #F8F3EE · DM Serif Text + DM Sans
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #203F84;
  --navy-light: #3F5796;
  --navy-deep: #142451;
  --gold: #DFB100;
  --gold-light: #f2c94c;
  --gold-pale: #f6e7a6;
  --cream: #F8F3EE;
  --cream-dark: #F0E9DF;
  --cream-stage: #EAE2D5;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-body: #2c2c2c;
  --text-muted: #6b6b6b;
  --red-cortisol: #c95c4a;
  --green-sero: #4a8c6a;
  --hairline: rgba(32, 63, 132, 0.14);
  --shadow-sm: 0 2px 8px rgba(20, 36, 81, 0.06);
  --shadow-md: 0 8px 32px rgba(20, 36, 81, 0.10);
  --shadow-lg: 0 20px 60px -20px rgba(20, 36, 81, 0.18);
  --radius: 14px;
  --radius-lg: 24px;
  --max-w: 1100px;
  --max-w-text: 720px;
}

html { scroll-behavior: smooth; font-size: 17px; }
@media (min-width: 1024px) { html { font-size: 18px; } }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Text', Georgia, serif;
  color: var(--navy);
  line-height: 1.18;
  font-weight: 500;
}

h1 em, h2 em, h3 em, .lede em { color: var(--gold); font-style: italic; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
strong { color: var(--navy); font-weight: 600; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: var(--max-w-text); margin: 0 auto; padding: 0 28px; }

/* Souligné gold « à la main » */
.u-gold {
  background-image: linear-gradient(to top, rgba(223, 177, 0, 0.32) 0 0.34em, transparent 0.34em);
  padding: 0 0.06em;
}

/* ============================================================
   KICKER (DM Sans, capitales espacées)
   ============================================================ */
.kicker {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.kicker--bare::before { display: none; }
.on-dark .kicker { color: var(--gold-pale); }
.on-dark .kicker::before { background: var(--gold-pale); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.nav-brand {
  display: inline-flex;
  line-height: 0;
  transition: transform 0.25s ease;
  flex: none;
}
.nav-brand:hover { transform: translateY(-1px); }
.nav-brand img { height: 76px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
}
.nav-links a { position: relative; padding: 4px 0; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* CTA nav — aligné sur le pill gold du landing v1 (cohérence inter-pages) */
.nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: var(--navy-deep);
  background: var(--gold);
  border: none;
  border-radius: 100px;
  padding: 10px 20px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(223, 177, 0, 0.32);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  background: var(--gold-light);
  color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(223, 177, 0, 0.42);
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--hairline); border-radius: 8px;
  width: 42px; height: 38px; cursor: pointer; color: var(--navy);
  font-size: 1.05rem; line-height: 1;
}

@media (max-width: 880px) {
  .nav-inner { gap: 10px; padding: 0 20px; }
  .nav-brand img { height: 52px; }
  .nav-cta { padding: 8px 13px; font-size: 0.64rem; letter-spacing: 0.04em; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    padding: 10px 28px 18px;
    box-shadow: var(--shadow-md);
  }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--hairline); }
  .nav-links a:last-of-type { border-bottom: none; }
  .nav.open .nav-links { display: flex; }
}
@media (max-width: 374px) {
  .nav-cta { display: none; } /* très petits écrans : le CTA reste présent dans la page */
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--cream-dark); }
.section--dark { background: var(--navy-deep); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark p { color: rgba(250, 247, 240, 0.82); }
@media (max-width: 700px) { .section { padding: 68px 0; } .section--tight { padding: 52px 0; } }

.section-head { max-width: var(--max-w-text); margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.65rem, 4vw, 2.3rem); margin-bottom: 14px; }
.lede { font-size: 1.08rem; color: var(--text-muted); }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 100px;
  padding: 16px 32px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.btn--gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 10px 28px -10px rgba(223, 177, 0, 0.55); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(223, 177, 0, 0.65); background: var(--gold-light); }
.btn--ghost { border-color: var(--hairline); color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.on-dark .btn--ghost { border-color: rgba(250, 247, 240, 0.35); color: var(--cream); }
.on-dark .btn--ghost:hover { border-color: var(--cream); }

.btn-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
}
.on-dark .btn-note { color: rgba(250, 247, 240, 0.55); }

/* ============================================================
   HERO ACCUEIL
   ============================================================ */
.hero { padding: 84px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; top: -180px; right: -180px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 177, 0, 0.10), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.05rem, 5.2vw, 3.3rem); margin-bottom: 26px; }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 32em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.hero-figure { position: relative; }
.hero-figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero-figure::after {
  content: "";
  position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid rgba(223, 177, 0, 0.4);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.hero-caption {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(250, 247, 240, 0.92);
  background: linear-gradient(to top, rgba(20, 36, 81, 0.78), transparent);
  padding: 38px 16px 12px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
@media (max-width: 880px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-figure { max-width: 420px; }
}

/* ============================================================
   SIGNAUX (la fracture)
   ============================================================ */
.signals { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.signal {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  font-size: 0.94rem;
  line-height: 1.6;
}
.signal .mono {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red-cortisol);
  display: block; margin-bottom: 12px;
}

/* ============================================================
   PORTES (3 cartes d'identification)
   ============================================================ */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .doors { grid-template-columns: 1fr; } }

.door {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.door:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.door-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.66rem; letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.door h3 {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 6px;
}
.door .door-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.door p { font-size: 0.93rem; line-height: 1.65; color: var(--text-body); flex: 1; }
.door-link {
  margin-top: 24px;
  font-size: 0.86rem; font-weight: 600; color: var(--navy);
  display: inline-flex; align-items: center; gap: 8px;
}
.door-link::after { content: "→"; color: var(--gold); transition: transform 0.22s ease; }
.door:hover .door-link::after { transform: translateX(5px); }

/* ============================================================
   PAGE PARCOURS
   ============================================================ */
.parcours-hero {
  padding: 96px 0 80px;
  background: var(--navy-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.parcours-hero::before {
  content: "";
  position: absolute; bottom: -240px; left: -160px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 177, 0, 0.13), transparent 65%);
}
.parcours-hero .container { position: relative; }
.parcours-hero h1 {
  color: var(--cream);
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-style: italic;
  max-width: 14em;
  margin-bottom: 26px;
}
.parcours-hero .lede { color: rgba(250, 247, 240, 0.78); max-width: 36em; }
@media (max-width: 700px) { .parcours-hero { padding: 64px 0 56px; } }

.prose { max-width: var(--max-w-text); }
.prose p + p { margin-top: 1.2em; }
.prose .big {
  font-family: 'DM Serif Text', Georgia, serif;
  font-size: 1.35rem; line-height: 1.45; color: var(--navy);
}

/* Coût du statu quo */
.costs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .costs { grid-template-columns: 1fr; } }
.cost-card {
  border-left: 3px solid var(--red-cortisol);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  font-size: 0.93rem;
}
.cost-card h3 { font-size: 1.04rem; margin-bottom: 10px; }

/* Format — étapes */
.steps { display: grid; gap: 0; max-width: var(--max-w-text); }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; color: var(--gold);
  padding-top: 5px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { font-size: 0.94rem; color: var(--text-body); }

/* Témoignage / preuve */
.proof {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
  max-width: var(--max-w-text);
  position: relative;
}
.proof::before {
  content: "“";
  font-family: 'DM Serif Text', Georgia, serif;
  font-size: 5rem; line-height: 1;
  color: rgba(223, 177, 0, 0.35);
  position: absolute; top: 18px; left: 28px;
}
.proof blockquote {
  font-family: 'DM Serif Text', Georgia, serif;
  font-size: 1.22rem; line-height: 1.55; color: var(--navy);
  margin-bottom: 18px;
  padding-left: 18px;
}
.proof figcaption {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 18px;
}
@media (max-width: 700px) { .proof { padding: 36px 24px; } }

/* ============================================================
   LISTES « repères » (philosophie, redistribution, identité)
   ============================================================ */
.marks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .marks { grid-template-columns: 1fr; } }
.mark { border-top: 1px solid var(--hairline); padding-top: 20px; }
.section--dark .mark { border-top-color: rgba(250, 247, 240, 0.2); }
.mark h3 { font-size: 1.05rem; margin-bottom: 8px; }
.mark p { font-size: 0.92rem; }

/* Questions piliers (méthode en filigrane) */
.pillar-q {
  font-family: 'DM Serif Text', Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-style: italic;
  color: var(--navy);
  border-left: 2px solid var(--gold);
  padding: 6px 0 6px 26px;
  margin: 26px 0;
}

/* ============================================================
   FORMULAIRES (qualification + test)
   ============================================================ */
.wizard {
  max-width: 660px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 44px 40px;
}
@media (max-width: 700px) { .wizard { padding: 32px 22px; border-radius: var(--radius); } }

.wizard-progress {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.wizard-bar { height: 3px; background: var(--cream-dark); border-radius: 3px; overflow: hidden; margin-bottom: 34px; }
.wizard-bar i { display: block; height: 100%; background: var(--gold); width: 0; transition: width 0.35s ease; }

.wizard h2 { font-size: 1.45rem; margin-bottom: 8px; }
.wizard .hint { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 26px; }

.choice-list { display: grid; gap: 12px; }
.choice {
  display: flex; align-items: flex-start; gap: 14px;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  font-size: 0.95rem; line-height: 1.5;
}
.choice:hover { border-color: rgba(223, 177, 0, 0.6); transform: translateY(-1px); }
.choice input { margin-top: 5px; accent-color: var(--gold); flex: none; }
.choice.selected { border-color: var(--gold); background: rgba(223, 177, 0, 0.07); }
.choice em { font-family: 'DM Serif Text', Georgia, serif; font-style: italic; color: var(--navy); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field input {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 14px 16px;
  border: 1.5px solid var(--hairline);
  border-radius: 10px;
  background: var(--cream);
  color: var(--text-dark);
}
.field input:focus { outline: none; border-color: var(--gold); background: var(--white); }
.field .optional { color: var(--text-muted); font-weight: 400; }

.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; gap: 14px; }
.wizard-back {
  background: none; border: none; cursor: pointer;
  font: inherit; font-size: 0.86rem; color: var(--text-muted);
  padding: 8px 0;
}
.wizard-back:hover { color: var(--navy); }

.reassure {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 22px;
}

/* Résultat du test */
.result-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(223, 177, 0, 0.45);
  border-radius: 100px;
  padding: 8px 18px;
  display: inline-block;
  margin-bottom: 22px;
}
.result-title { font-size: 1.7rem; font-style: italic; margin-bottom: 18px; }
.result-obs { display: grid; gap: 14px; margin: 26px 0 30px; }
.result-obs li {
  list-style: none;
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  font-size: 0.95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-deep);
  color: rgba(250, 247, 240, 0.7);
  padding: 56px 0 40px;
  font-size: 0.84rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex; flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 18px; }
.footer-brand img { height: 42px; border-radius: 8px; background: var(--cream); padding: 8px 13px; }
.footer-brand .who strong { color: var(--cream); display: block; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; font-size: 0.8rem; }
.footer-links a:hover { color: var(--cream); }
.footer-legal {
  width: 100%;
  border-top: 1px solid rgba(250, 247, 240, 0.12);
  padding-top: 22px;
  text-align: center;
  font-size: 0.74rem;
  color: rgba(250, 247, 240, 0.45);
}

/* ============================================================
   RÉVÉLATION AU SCROLL
   (l'état masqué ne s'applique que si JS est là : html.js posé
   dans le <head> — sans JS, tout le contenu reste visible)
   ============================================================ */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
