/* ==========================================================================
   KoraGen — Design System
   Premium editorial minimalism · Bleu nuit + Or · Plus Jakarta Sans
   ========================================================================== */

/* -------------------------------- Tokens -------------------------------- */
:root {
  /* Color — Night Blue */
  --navy-950: #000d28;
  --navy-900: #04224e;
  --navy-100: #eef2f8;

  /* Color — Gold / Bronze */
  --gold-500: #b77723; /* decorative: large numerals, rules, icons, borders */
  --gold-600: #875200; /* accessible text/button gold (>=4.5:1 on white) */
  --gold-300: #fcb259; /* soft gold surface / badge background */
  --gold-100: #fdf3e7;

  /* Neutrals / surfaces */
  --surface: #ffffff;
  --surface-dim: #f8f9fb;
  --surface-tint: #f4f3ed;
  --ink: var(--navy-900);
  --ink-soft: #44474f;
  --outline: #dfe1e8;
  --outline-strong: #c4c6d0;

  /* Feedback */
  --error: #ba1a1a;
  --error-bg: #fdecea;
  --success: #1a7a4c;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --size-display: clamp(2.5rem, 1.7rem + 4.2vw, 5.5rem);
  --size-h1: clamp(2.1rem, 1.6rem + 2.2vw, 3.5rem);
  --size-h2: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --size-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --size-lede: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --size-body: 1rem;
  --size-label: 0.875rem;
  --size-eyebrow: 0.75rem;
  --size-stat: clamp(2.75rem, 2rem + 3vw, 5.5rem);

  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  /* Spacing (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --container-max: 1280px;
  --gutter: clamp(1.25rem, 1rem + 1.5vw, 3rem);
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);

  /* Radius — sharp, editorial (soft only on form inputs) */
  --radius-none: 0;
  --radius-input: 6px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 220ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
}

/* -------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* scroll-padding-top : le header collant masquait la cible des ancres */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  font-size: var(--size-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: var(--lh-tight); letter-spacing: -0.01em; }

:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  z-index: 1000;
  font-weight: 600;
  font-size: var(--size-label);
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* -------------------------------- Layout --------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.55); }
.section--dark { background: var(--navy-900); color: #fff; }
.section--deep { background: var(--navy-950); color: #fff; }
.section--tint { background: var(--surface-dim); }
.section--bordered { border-top: 1px solid var(--outline); }
.section--relative { position: relative; overflow: hidden; }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.col-span-5 { grid-column: span 12; }
.col-span-7 { grid-column: span 12; }
@media (min-width: 900px) {
  .col-span-5 { grid-column: span 5; }
  .col-span-7 { grid-column: span 7; }
}
.sticky-aside { position: sticky; top: 7.5rem; align-self: start; }

/* ------------------------------ Typography -------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--size-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.section--dark .eyebrow, .section--deep .eyebrow { color: var(--gold-300); }

.display {
  font-size: var(--size-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  color: var(--navy-900);
}
.section--dark .display, .section--deep .display { color: #fff; }

h2.h1, .h1 { font-size: var(--size-h1); color: var(--navy-900); }
h2.h2, .h2 { font-size: var(--size-h2); color: var(--navy-900); }
h3.h3, .h3 { font-size: var(--size-h3); color: var(--navy-900); }
.section--dark .h1, .section--dark .h2, .section--dark .h3,
.section--deep .h1, .section--deep .h2, .section--deep .h3 { color: #fff; }

.lede { font-size: var(--size-lede); color: var(--ink-soft); line-height: var(--lh-relaxed); }
.section--dark .lede, .section--deep .lede { color: rgba(255,255,255,0.82); }

.text-gold { color: var(--gold-600); }
.section--dark .text-gold, .section--deep .text-gold { color: var(--gold-300); }
.text-soft { color: var(--ink-soft); }

.rule {
  width: 100%;
  height: 1px;
  background: var(--outline);
  border: 0;
}
.rule--gold { background: var(--gold-500); height: 1px; width: 3rem; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-9);
  border-bottom: 1px solid var(--outline);
}
.section--dark .section-head, .section--deep .section-head { border-bottom-color: rgba(255,255,255,0.15); }

/* -------------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.95rem 2rem;
  font-size: var(--size-label);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy-900); color: #fff; }
.btn--primary:hover { background: var(--gold-600); }
.btn--secondary { background: var(--gold-600); color: #fff; }
.btn--secondary:hover { background: var(--navy-900); }
.btn--outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn--outline:hover { background: var(--navy-900); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--outline-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--ghost { background: transparent; color: var(--ink-soft); padding: 0.75rem 1.25rem; }
.btn--ghost:hover { color: var(--navy-900); background: var(--surface-tint); }
.btn--pill { border-radius: var(--radius-pill); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.15rem 2.5rem; }
@media (min-width: 600px) { .btn--auto-sm { width: auto; } }
.btn .icon { font-size: 1.1em; transition: transform var(--dur) var(--ease); }
.btn:hover .icon--forward { transform: translateX(3px); }
.btn:hover .icon--back { transform: translateX(-3px); }

/* --------------------------------- Header --------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--outline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 5.5rem;
}
.nav__brand { display: flex; align-items: center; gap: var(--space-3); }
.nav__logo { height: 2.5rem; width: auto; }
.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-7);
  font-size: var(--size-label);
  font-weight: 600;
}
.nav__links a { color: var(--navy-900); padding-block: var(--space-2); border-bottom: 2px solid transparent; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.nav__links a:hover { color: var(--gold-600); }
.nav__links a[aria-current="page"] { color: var(--gold-600); border-bottom-color: var(--gold-500); }
.nav__actions { display: none; align-items: center; gap: var(--space-5); }
.nav__actions a.link-cta { font-size: var(--size-label); font-weight: 700; color: var(--navy-900); }
.nav__actions a.link-cta:hover { color: var(--gold-600); }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  background: transparent;
  border: 1px solid var(--outline);
  color: var(--navy-900);
}
@media (min-width: 960px) {
  .nav__links, .nav__actions { display: flex; }
  .nav__toggle { display: none; }
}
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5) 0 var(--space-6);
  border-top: 1px solid var(--outline);
}
.nav__mobile[data-open="true"] { display: flex; }
.nav__mobile a { padding: var(--space-3) 0; font-weight: 600; font-size: 1.05rem; color: var(--navy-900); }
.nav__mobile a[aria-current="page"] { color: var(--gold-600); }
.nav__mobile .btn { margin-top: var(--space-3); }
@media (min-width: 960px) { .nav__mobile { display: none !important; } }

/* --------------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 5.5rem;
}
.hero__inner {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding-block: clamp(3rem, 3rem + 5vw, 6rem);
  min-height: 88vh;
}
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.15fr 0.85fr; } }
.hero__quote {
  border-left: 1px solid var(--gold-500);
  padding-left: var(--space-6);
  display: grid;
  gap: var(--space-5);
  max-width: 42rem;
}
.hero__highlight {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: var(--gold-100);
}
.hero__highlight .material-symbols-outlined {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  color: var(--gold-500);
  font-size: 1.75rem;
}
.hero__highlight p { color: var(--navy-900); line-height: var(--lh-relaxed); }
.hero__highlight strong { color: var(--gold-600); font-weight: 700; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--outline);
  font-size: var(--size-label);
  font-weight: 600;
  color: var(--navy-900);
}
.hero__meta li { display: flex; align-items: center; gap: var(--space-2); }
.hero__meta .material-symbols-outlined { font-size: 1.35rem; color: var(--gold-500); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); padding-top: var(--space-5); }

.kora-strings { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.kora-strings span {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(183,119,35,0.22), transparent);
}
.kora-arc {
  position: absolute;
  border: 1px solid rgba(183,119,35,0.14);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.media-frame {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-950) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-frame::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(183,119,35,0.16) 0 1px, transparent 1px 64px);
}
.media-frame img.mark { width: 34%; opacity: 0.92; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35)); position: relative; z-index: 1; }
.media-frame img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.media-frame--wide { aspect-ratio: 16/10; }
.media-frame--square { aspect-ratio: 1/1; }
.media-caption {
  position: absolute;
  bottom: var(--space-4); left: var(--space-4); right: var(--space-4);
  font-size: var(--size-eyebrow);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

/* ------------------------------- Le principe -------------------------------- */
.principle-row { display: grid; grid-template-columns: 1fr; gap: var(--space-8) var(--gutter); }
@media (min-width: 700px) { .principle-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .principle-row { grid-template-columns: repeat(4, 1fr); } }
.principle { display: grid; gap: var(--space-4); align-content: start; }
.principle__icon {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--gold-300);
  font-size: 2.25rem;
}
.principle__meter {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: clamp(2.5rem, 2rem + 1.5vw, 3.5rem);
}
.principle__num {
  font-size: clamp(2.5rem, 2rem + 1.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.principle__num--text { font-size: var(--size-h2); }
.principle__lbl {
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  min-height: calc(2em * var(--lh-normal));
}
/* Le trait relie deux items en passant par la gouttière, jamais par le chiffre. */
.principle__line { display: none; }
@media (min-width: 1100px) {
  .principle__line {
    display: block;
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.25);
    margin-right: calc(var(--space-4) - var(--gutter));
  }
}

/* --------------------------- Numbered editorial rows ----------------------- */
.numbered-rows { border-top: 1px solid var(--outline); }
.section--dark .numbered-rows, .section--deep .numbered-rows { border-top-color: rgba(255,255,255,0.15); }
.numbered-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--outline);
  transition: background-color var(--dur) var(--ease);
}
@media (min-width: 700px) { .numbered-row { flex-direction: row; align-items: baseline; gap: var(--space-6); } }
.numbered-row:hover { background: var(--surface-dim); }
.numbered-row .num {
  font-size: var(--size-h2);
  font-weight: 700;
  color: var(--outline-strong);
  min-width: 3.5rem;
  transition: color var(--dur) var(--ease);
}
.numbered-row:hover .num { color: var(--gold-600); }

.numbered-grid { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 700px) { .numbered-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .numbered-grid { grid-template-columns: repeat(3, 1fr); } }
.numbered-tile {
  padding-top: var(--space-5);
  border-top: 2px solid var(--outline);
  transition: border-color var(--dur) var(--ease);
}
.numbered-tile:hover { border-top-color: var(--gold-500); }
/* Le chiffre est dans le flux, sous la regle. En position absolue avec un corps
   de 6rem, il traversait le trait du haut et mordait sur la rangee precedente. */
.numbered-tile .num {
  display: block;
  margin-bottom: var(--space-3);
  font-size: var(--size-h3);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--gold-600);
  user-select: none;
}
.section--dark .numbered-tile .num,
.section--deep .numbered-tile .num { color: var(--gold-300); }

/* ---------------------------- Cycle d'apprentissage -------------------------- */
.loop {
  --loop-gap: var(--space-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding: var(--space-7) var(--space-6);
  background: var(--gold-100);
  border: 1px solid var(--gold-500);
}
/* 3 colonnes egales : aucune etape ne se retrouve orpheline sur sa rangee. */
@media (min-width: 700px) {
  .loop { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--loop-gap); row-gap: var(--space-5); }
}
.loop li {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-input);
}
.loop__n {
  flex-shrink: 0;
  font-size: var(--size-label);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-600);
}
.loop__t { font-weight: 600; color: var(--navy-900); line-height: var(--lh-snug); }
.loop__cycle { margin-left: auto; font-size: 1.25rem; color: var(--gold-500); }
/* La fleche se pose dans la gouttiere, jamais en fin de rangee. */
@media (min-width: 700px) {
  .loop li:not(:nth-child(3n))::after {
    content: '\2192';
    position: absolute;
    top: 50%;
    left: calc(100% + (var(--loop-gap) - 1em) / 2);
    transform: translateY(-50%);
    color: var(--gold-600);
    font-weight: 700;
  }
}

/* --------------------------------- Bullet list ------------------------------ */
.bullet-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--outline);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .bullet-list--2col { grid-template-columns: repeat(2, 1fr); column-gap: var(--gutter); } }
.section--dark .bullet-list, .section--deep .bullet-list { border-top-color: rgba(255,255,255,0.15); }
.bullet-list li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--outline);
  font-size: var(--size-h3);
  font-weight: 700;
  color: var(--navy-900);
}
.section--dark .bullet-list li, .section--deep .bullet-list li { border-bottom-color: rgba(255,255,255,0.15); color: #fff; }
.bullet-list li::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  background: var(--gold-500);
  flex-shrink: 0;
}

/* --------------------------------- Stats ---------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-8) var(--gutter); }
@media (min-width: 700px) { .stat-row { grid-template-columns: repeat(5, 1fr); } }
.stat .num { font-size: var(--size-stat); font-weight: 700; color: var(--navy-900); line-height: 1; letter-spacing: -0.02em; }
.section--dark .stat .num, .section--deep .stat .num { color: var(--gold-300); }
.stat .num.stat__num--date { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); letter-spacing: -0.01em; }
.stat .lbl { display: block; margin-top: var(--space-4); font-size: var(--size-eyebrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-600); }
.section--dark .stat .lbl, .section--deep .stat .lbl { color: #fff; }

/* -------------------------------- Split hero-cta --------------------------- */
.split-cta { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--outline); }
@media (min-width: 900px) { .split-cta { grid-template-columns: 1fr 1fr; } }
.split-cta__panel {
  padding: clamp(2.5rem, 2rem + 4vw, 6rem) var(--gutter);
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-6);
}
.split-cta__panel--light { border-bottom: 1px solid var(--outline); }
@media (min-width: 900px) { .split-cta__panel--light { border-bottom: none; border-right: 1px solid var(--outline); } }
.split-cta__panel--dark { background: var(--navy-900); color: #fff; }

/* --------------------------------- Timeline -------------------------------- */
.timeline-h { position: relative; }
.timeline-h__line { display: none; }
@media (min-width: 800px) {
  .timeline-h__line { display: block; position: absolute; top: 1.5rem; left: 0; right: 0; height: 1px; background: var(--outline); }
}
.timeline-h__steps { display: flex; flex-direction: column; gap: var(--space-6); position: relative; z-index: 1; }
@media (min-width: 800px) { .timeline-h__steps { flex-direction: row; justify-content: space-between; gap: var(--space-4); } }
.timeline-h__step { flex: 1; text-align: left; }
@media (min-width: 800px) { .timeline-h__step { text-align: center; } }
.timeline-h__dot {
  width: 3rem; height: 3rem;
  border: 2px solid var(--outline-strong);
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--outline-strong);
  margin-bottom: var(--space-4);
}
@media (min-width: 800px) { .timeline-h__dot { margin-inline: auto; } }
.timeline-h__step--active .timeline-h__dot {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--surface);
}
.timeline-h__step h4 { font-size: var(--size-label); font-weight: 700; }
.timeline-h__step p { font-size: 0.9rem; color: var(--ink-soft); margin-top: var(--space-2); }

.timeline-v { position: relative; padding-left: var(--space-8); border-left: 1px solid var(--outline); }
.timeline-v__step { position: relative; padding-bottom: var(--space-7); }
.timeline-v__step:last-child { padding-bottom: 0; }
.timeline-v__dot {
  position: absolute; left: calc(var(--space-8) * -1 - 1px);
  top: 0.15rem;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: var(--surface-dim);
  border: 2px solid var(--outline-strong);
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}
.timeline-v__step--active .timeline-v__dot { background: var(--gold-500); border-color: var(--gold-500); color: #fff; }
.timeline-v__step h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.timeline-v__step p { color: var(--ink-soft); }
.timeline-v__date {
  display: inline-block;
  margin-top: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: var(--navy-100);
  color: var(--navy-900);
  font-size: var(--size-eyebrow);
  font-weight: 700;
}

/* --------------------------------- FAQ / details ---------------------------- */
.faq-list { border-top: 1px solid var(--outline); }
.faq-item { border-bottom: 1px solid var(--outline); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding-block: var(--space-6);
  cursor: pointer;
  list-style: none;
  font-size: var(--size-h3);
  font-weight: 700;
  color: var(--navy-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-600); }
.faq-item summary .chev { transition: transform var(--dur) var(--ease); color: var(--gold-600); flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-answer { padding-bottom: var(--space-6); color: var(--ink-soft); font-size: var(--size-lede); max-width: 42rem; }

.section-note {
  margin-top: var(--space-7);
  padding-left: var(--space-4);
  border-left: 2px solid var(--gold-500);
  font-size: var(--size-label);
  font-style: italic;
  color: var(--ink-soft);
}

/* --------------------------------- Cards (sparingly) ------------------------- */
.panel {
  background: #fff;
  border: 1px solid var(--outline);
  padding: clamp(1.75rem, 1.5rem + 1.5vw, 3rem);
}
.panel--dark { background: var(--navy-900); color: #fff; border: none; }
.checklist { display: grid; gap: var(--space-4); }
.checklist label { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; }
.checklist input[type="checkbox"] { margin-top: 0.2rem; width: 1.15rem; height: 1.15rem; accent-color: var(--gold-600); }
.checklist span { color: var(--ink-soft); }
.checklist label:hover span { color: var(--navy-900); }

.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--gold-100);
  color: var(--gold-600);
  font-size: var(--size-eyebrow);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

blockquote.pull-quote {
  border-left: 3px solid var(--gold-500);
  padding-left: var(--space-5);
  font-style: italic;
  font-size: var(--size-lede);
  color: var(--navy-900);
  font-weight: 600;
}

/* --------------------------------- Footer ---------------------------------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.85); }
.site-footer .container {
  display: flex; flex-direction: column; gap: var(--space-8);
  padding-block: var(--space-9);
}
@media (min-width: 800px) { .site-footer .container { flex-direction: row; justify-content: space-between; } }
.footer__brand img { height: 2.25rem; margin-bottom: var(--space-5); filter: brightness(0) invert(1); }
.footer__tag { font-size: var(--size-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-300); }
.footer__copy { font-size: 0.9rem; color: rgba(255,255,255,0.55); margin-top: var(--space-2); }
.footer__cols { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.footer__col { display: flex; flex-direction: column; gap: var(--space-4); min-width: 9rem; }
.footer__col span.heading { font-size: var(--size-eyebrow); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: var(--space-1); }
.footer__col a { font-size: 0.95rem; color: rgba(255,255,255,0.8); }
.footer__col a:hover { color: var(--gold-300); }

/* --------------------------------- CTA final -------------------------------- */
.cta-final { text-align: center; display: grid; gap: var(--space-8); }
.cta-final .display { max-width: 56rem; margin-inline: auto; }
.cta-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-5); }

/* ======================================================================
   FORMS — shared field system
   ====================================================================== */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field--full { grid-column: 1 / -1; }
.field label,
.field legend {
  font-size: var(--size-label);
  font-weight: 700;
  color: var(--navy-900);
}
.field .hint { font-size: 0.85rem; color: var(--ink-soft); }
.field .optional-tag { color: var(--ink-soft); font-weight: 500; }

.input, textarea.input, select.input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  background: #fff;
  /* La bordure est le seul indice visuel du champ : elle doit atteindre 3:1 (WCAG 1.4.11) */
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius-input);
  color: var(--navy-900);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* :hover reste AVANT :focus (même spécificité) pour que le focus l'emporte */
.input:hover { border-color: var(--navy-900); }
.input:focus {
  outline: none;
  border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(183,119,35,0.18);
}
textarea.input { min-height: 7rem; resize: vertical; line-height: var(--lh-relaxed); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2344474f' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 1rem; padding-right: 2.5rem; }

.input-group { display: flex; border: 1px solid var(--ink-soft); border-radius: var(--radius-input); overflow: hidden; background: #fff; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.input-group:focus-within { border-color: var(--gold-600); box-shadow: 0 0 0 3px rgba(183,119,35,0.18); }
.input-group select { border: none; border-right: 1px solid var(--outline); border-radius: 0; min-width: 6.5rem; background-color: var(--surface-tint); }
.input-group input { border: none; border-radius: 0; }
.input-group input:focus, .input-group select:focus { box-shadow: none; outline: none; }

fieldset.field { border: none; padding: 0; }
.option-grid { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .option-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.option {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--outline);
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.option:hover { border-color: var(--gold-500); background: var(--gold-100); }
.option input { margin-top: 0.15rem; width: 1.1rem; height: 1.1rem; accent-color: var(--gold-600); flex-shrink: 0; }
.option span { font-size: 0.95rem; color: var(--navy-900); }
.option:has(input:checked) { border-color: var(--gold-600); background: var(--gold-100); }

.field-row { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }
@media (min-width: 700px) { .field-row--2 { grid-template-columns: repeat(2, 1fr); } }

.word-counter { font-size: 0.8rem; color: var(--ink-soft); text-align: right; }
.word-counter[data-over="true"] { color: var(--error); font-weight: 600; }

.field[data-invalid="true"] .input,
.field[data-invalid="true"] .input-group { border-color: var(--error); }
.field-error { display: none; font-size: 0.85rem; color: var(--error); font-weight: 600; }
.field[data-invalid="true"] .field-error { display: block; }

/* ------------------------------- Application shell --------------------------- */
.app-shell { display: flex; flex-direction: column; padding-top: 5.5rem; }
@media (min-width: 900px) { .app-shell { flex-direction: row; align-items: stretch; min-height: calc(100vh - 5.5rem); } }
.app-shell__media {
  display: none;
  position: sticky;
  top: 5.5rem;
  align-self: flex-start;
  width: 42%;
  height: calc(100vh - 5.5rem);
}
/* L'image du panneau latéral est posée ici en background-image, et non par un <img>
   dans le HTML : .app-shell__media est display:none sous 900 px, mais un <img>
   resterait téléchargé (231 Ko, l'essentiel du poids de la page) par le public
   mobile qui ne le verra jamais — loading="lazy" ne l'empêche pas. Déclarée
   dans cette media query, la requête réseau ne part que là où l'image est affichée.
   Ce n'est donc pas un oubli : ne pas la remettre en HTML. */
@media (min-width: 900px) {
  .app-shell__media {
    display: block;
    background-image: url("../img/hero-mentor-etudiant.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }
}
.app-shell__form { flex: 1; display: flex; flex-direction: column; }
.app-shell__form-inner { flex: 1; width: 100%; max-width: 46rem; margin-inline: auto; padding: var(--space-8) var(--gutter) var(--space-8); display: flex; flex-direction: column; }

.stepper { margin-bottom: var(--space-7); }
.stepper__track { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); }
.stepper__seg { flex: 1; height: 4px; background: var(--outline); border-radius: var(--radius-pill); overflow: hidden; }
.stepper__seg span { display: block; height: 100%; width: 0; background: var(--gold-600); transition: width var(--dur) var(--ease); }
.stepper__seg[data-state="done"] span, .stepper__seg[data-state="current"] span { width: 100%; }
.stepper__meta { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.stepper__count { font-size: var(--size-eyebrow); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.save-later { font-size: var(--size-eyebrow); font-weight: 600; color: var(--ink-soft); background: none; border: none; text-decoration: underline; text-decoration-color: var(--outline-strong); text-underline-offset: 3px; cursor: pointer; padding: var(--space-2) 0; min-height: 24px; }
.save-later:hover { color: var(--gold-600); }

.save-toast {
  position: fixed;
  bottom: var(--space-6); right: var(--space-6);
  background: var(--navy-900); color: #fff;
  padding: var(--space-4) var(--space-5);
  font-size: 0.9rem; font-weight: 600;
  display: flex; align-items: center; gap: var(--space-3);
  transform: translateY(120%);
  opacity: 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  z-index: 200;
  max-width: calc(100vw - 3rem);
}
.save-toast[data-visible="true"] { transform: translateY(0); opacity: 1; }

.form-step { display: none; flex-direction: column; flex: 1; }
.form-step[data-active="true"] { display: flex; }
.form-step__head { margin-bottom: var(--space-7); }
.form-step__head .eyebrow { margin-bottom: var(--space-3); }
.form-step__fields { display: grid; gap: var(--space-6); margin-bottom: var(--space-8); }
.form-step__section-title { font-size: 1.05rem; font-weight: 700; color: var(--navy-900); margin-top: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--outline); }
.form-step__section-title:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.form-nav { margin-top: auto; padding-top: var(--space-6); border-top: 1px solid var(--outline); display: flex; flex-direction: column-reverse; gap: var(--space-4); align-items: center; }
@media (min-width: 640px) { .form-nav { flex-direction: row; justify-content: space-between; } }

.notice-box { border: 1px solid var(--outline); border-left: 3px solid var(--gold-500); padding: var(--space-5) var(--space-6); background: var(--surface-dim); font-size: 0.95rem; color: var(--ink-soft); }
.notice-box strong { color: var(--navy-900); }
.notice-box ol { list-style: decimal; padding-left: 1.25rem; margin-top: var(--space-3); display: grid; gap: var(--space-1); }

.conditional { display: none; }
.conditional[data-visible="true"] { display: flex; flex-direction: column; gap: var(--space-2); }

/* ------------------------------- Confirmation page --------------------------- */
.confirm-icon {
  width: 5rem; height: 5rem;
  border-radius: 50%;
  background: var(--navy-100);
  border: 1px solid var(--gold-300);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-600);
  margin-inline: auto;
}
.confirm-icon .material-symbols-outlined { font-size: 2.25rem; }

/* Material Symbols baseline */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* -------------------------------- Utilities --------------------------------- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.max-w-sm { max-width: 42rem; }
.max-w-md { max-width: 52rem; }
.mx-auto { margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: var(--space-5); }
.stack-lg { display: flex; flex-direction: column; gap: var(--space-8); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

/* ------------------------------- Accessibilité (T9) -------------------------- */

/* Focus visible sur fonds sombres : --gold-600 y tombe à 2,4:1 */
.section--dark :focus-visible,
.section--deep :focus-visible,
.site-footer :focus-visible,
.split-cta__panel--dark :focus-visible {
  outline-color: var(--gold-300);
}
