/* ==========================================================================
   Formation ACACED en ligne — récit intime d'un changement de vie
   Palette : parchemin chaud, encre brune, ocre brûlé, olive sourd
   Typo : Newsreader (récit) + Karla (interface)
   ========================================================================== */

:root {
  /* --- Papier & encre --- */
  --paper:        #f7f0e2;
  --paper-warm:   #efe4cd;
  --paper-deep:   #e6d8ba;
  --sheet:        #fffcf4;
  --sheet-alt:    #fdf8ec;

  --ink:          #2e2618;
  --ink-soft:     #554833;
  --ink-mute:     #7c6c53;
  --ink-faint:    #a2937a;

  /* --- Accents --- */
  --ocre:         #b9662a;
  --ocre-deep:    #96501f;
  --ocre-light:   #d9924f;
  --olive:        #63713a;
  --olive-deep:   #4b5729;
  --olive-light:  #8b9a5e;

  --rule:         rgba(94, 76, 48, 0.16);
  --rule-soft:    rgba(94, 76, 48, 0.09);
  --danger:       #a63a2c;

  /* --- Typo --- */
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans:  'Karla', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* --- Mesures --- */
  --measure: 66ch;
  --shell: 1140px;
  --rail: 84px;

  /* --- Ombres chaudes multi-couches --- */
  --lift-1: 0 1px 2px rgba(62, 46, 24, .05),
            0 3px 8px rgba(62, 46, 24, .045);
  --lift-2: 0 1px 2px rgba(62, 46, 24, .05),
            0 6px 16px rgba(62, 46, 24, .06),
            0 18px 40px -18px rgba(62, 46, 24, .18);
  --lift-3: 0 2px 4px rgba(62, 46, 24, .06),
            0 10px 28px rgba(62, 46, 24, .08),
            0 34px 64px -26px rgba(62, 46, 24, .26);
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.98rem + 0.42vw, 1.1875rem);
  line-height: 1.78;
  color: var(--ink);
  background-color: var(--paper);
  font-optical-sizing: auto;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Texture papier : grain très discret + halos chauds, purement CSS */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58rem 42rem at 12% -8%,  rgba(217, 146, 79, .16), transparent 62%),
    radial-gradient(52rem 40rem at 92% 22%,  rgba(139, 154, 94, .14), transparent 60%),
    radial-gradient(46rem 38rem at 30% 108%, rgba(185, 102, 42, .10), transparent 60%),
    linear-gradient(174deg, #f9f3e7 0%, var(--paper) 42%, #f2e9d5 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image:
    repeating-linear-gradient(0deg,   rgba(120, 96, 60, .022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg,  rgba(120, 96, 60, .018) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 22% 34%, rgba(120, 96, 60, .05) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 71%, rgba(120, 96, 60, .045) 0 1px, transparent 2px);
  background-size: auto, auto, 37px 41px, 53px 47px;
}

img, svg { max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* --- Titres --- */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 {
  /* 5.5rem écrasait le titre du hero sur 4 lignes dans sa colonne de 34ch. */
  font-size: clamp(2.35rem, 1.5rem + 3.1vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 400;
}

h2 {
  font-size: clamp(1.75rem, 1.25rem + 1.7vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 400;
}

h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.014em;
}

h4 {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin: 2.2em 0 .55em;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ocre-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }

::selection { background: rgba(185, 102, 42, .2); color: var(--ink); }

:focus-visible {
  outline: 2.5px solid var(--ocre);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  font-family: var(--sans);
  font-size: .9rem;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus-visible { top: 0; }

/* Petits libellés d'interface */
.eyebrow {
  font-family: var(--sans);
  font-size: .715rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ocre-deep);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .8em;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: .55;
  flex: none;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn {
  --btn-bg: var(--ocre);
  --btn-fg: #fffaf1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  font-family: var(--sans);
  font-size: .955rem;
  font-weight: 700;
  letter-spacing: .012em;
  line-height: 1;
  padding: 1.02em 1.85em;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: transform .28s cubic-bezier(.22,.9,.3,1),
              box-shadow .28s ease,
              background-color .28s ease,
              color .28s ease,
              border-color .28s ease;
}
.btn svg { flex: none; transition: transform .3s cubic-bezier(.22,.9,.3,1); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(168deg, var(--ocre-light) -22%, var(--ocre) 48%, var(--ocre-deep) 132%);
  color: var(--btn-fg);
  box-shadow: 0 1px 1px rgba(255,255,255,.28) inset,
              0 2px 5px rgba(150, 80, 31, .26),
              0 12px 26px -10px rgba(150, 80, 31, .52);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 1px rgba(255,255,255,.3) inset,
              0 4px 10px rgba(150, 80, 31, .28),
              0 20px 38px -12px rgba(150, 80, 31, .58);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--rule);
  box-shadow: var(--lift-1);
}
.btn-ghost:hover {
  background: var(--sheet);
  color: var(--ink);
  border-color: rgba(94, 76, 48, .3);
  transform: translateY(-2px);
  box-shadow: var(--lift-2);
}

.btn-block { width: 100%; }

/* Lien-flèche narratif */
.link-arrow {
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  color: var(--olive-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  border-bottom: 1px solid rgba(99, 113, 58, .35);
  padding-bottom: 2px;
  transition: color .25s ease, border-color .25s ease, gap .25s ease;
}
.link-arrow:hover { color: var(--ocre-deep); border-color: var(--ocre); gap: .8em; }

/* ==========================================================================
   Barre de progression du récit
   ========================================================================== */

.timeline-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: rgba(94, 76, 48, .10);
  z-index: 220;
}
.timeline-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--olive) 0%, var(--olive-light) 38%, var(--ocre-light) 72%, var(--ocre) 100%);
  box-shadow: 0 0 12px rgba(185, 102, 42, .45);
  transition: width .12s linear;
}

/* ==========================================================================
   En-tête
   ========================================================================== */

.site-header {
  position: sticky;
  top: 3px;
  z-index: 200;
  background: rgba(247, 240, 226, .84);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-stuck {
  background: rgba(250, 245, 234, .94);
  border-bottom-color: var(--rule-soft);
  box-shadow: 0 8px 26px -18px rgba(62, 46, 24, .5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding-block: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.logo svg { display: block; }
.logo span {
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 500;
  letter-spacing: -.012em;
  line-height: 1.15;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.main-nav a {
  font-family: var(--sans);
  font-size: .905rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding-block: 4px;
  transition: color .22s ease;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ocre);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .32s cubic-bezier(.22,.9,.3,1);
}
.main-nav a:not(.nav-cta):hover { color: var(--ink); }
.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  background: linear-gradient(168deg, var(--ocre-light) -20%, var(--ocre) 50%, var(--ocre-deep) 130%);
  color: #fffaf1 !important;
  padding: .72em 1.35em !important;
  border-radius: 999px;
  font-weight: 700 !important;
  font-size: .88rem !important;
  box-shadow: 0 2px 5px rgba(150, 80, 31, .24), 0 10px 22px -12px rgba(150, 80, 31, .5);
  transition: transform .26s cubic-bezier(.22,.9,.3,1), box-shadow .26s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(150, 80, 31, .28), 0 16px 30px -12px rgba(150, 80, 31, .56); }

@media (max-width: 880px) {
  .main-nav a:not(.nav-cta) { display: none; }
}
/* Règle de base AVANT la requête média : placée après, elle l'emportait et
   masquait les deux libellés, laissant un bouton vide sur mobile. */
.nav-cta .cta-short { display: none; }
/* En dessous de ~420px, le nom du site et le bouton ne tiennent plus côte à
   côte : le bouton dépassait de la fenêtre (398px pour 390 disponibles). */
@media (max-width: 560px) {
  .header-inner { gap: 10px; }
  .logo span { font-size: .9rem; }
  /* « Faire le premier pas » ne tient pas à côté du nom du site : le bouton
     sortait de la fenêtre. On raccourcit le libellé sur petit écran. */
  .nav-cta { padding-inline: .85rem; font-size: .8rem; white-space: nowrap; }
  .nav-cta .cta-long { display: none; }
  .nav-cta .cta-short { display: inline; }
}
@media (max-width: 360px) {
  .logo span { display: none; }
}

/* ==========================================================================
   Ouverture (hero)
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(3rem, 5vw, 5rem) clamp(2.5rem, 4.5vw, 4.5rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 130%;
  z-index: 0;
  pointer-events: none;
}
.hero-bg .path-motif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
}
.hero-bg .path-motif path,
.hero-bg .path-motif circle { vector-effect: non-scaling-stroke; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero-text { max-width: 42ch; }
.hero h1 {
  margin-bottom: .32em;
  background: linear-gradient(172deg, var(--ink) 8%, #4b3c25 62%, var(--ocre-deep) 138%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
}

.hero-lead {
  font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.32rem);
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 2rem;
}
.hero-lead strong { font-weight: 600; color: var(--ink); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-meta {
  margin-top: 2.1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.4rem;
  font-family: var(--sans);
  font-size: .855rem;
  color: var(--ink-mute);
}
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta b {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}

/* Le "carnet" — composition SVG d'ouverture */
.hero-figure {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(166deg, var(--sheet) 0%, var(--sheet-alt) 58%, #f7efdd 100%);
  border: 1px solid var(--rule);
  border-radius: 3px 3px 3px 22px;
  padding: clamp(1.6rem, 3vw, 2.3rem);
  box-shadow: var(--lift-3);
  transform: rotate(-1.35deg);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--rule-soft);
  border-radius: 2px 2px 2px 14px;
  pointer-events: none;
}
/* pages empilées derrière */
.hero-card::after {
  content: "";
  position: absolute;
  inset: 8px -9px -9px 8px;
  background: var(--sheet-alt);
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  z-index: -1;
  transform: rotate(2.4deg);
  box-shadow: var(--lift-1);
}
.hero-card figcaption {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
}
.hero-card svg { display: block; width: 100%; height: auto; }

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { max-width: 100%; }
  .hero-lead { max-width: 56ch; }
  .hero-figure { order: -1; }
  .hero-card { max-width: 340px; transform: rotate(-1deg); }
}

/* ==========================================================================
   Bandeau de réassurance
   ========================================================================== */

.reassurance {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(255,252,244,.7), rgba(253,248,236,.45));
}
.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.reassurance-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.35rem clamp(.9rem, 2vw, 1.6rem);
  position: relative;
}
.reassurance-item + .reassurance-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--rule);
}
.reassurance-item svg { flex: none; color: var(--olive); }
.reassurance-item span {
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .reassurance-grid { grid-template-columns: repeat(2, 1fr); }
  .reassurance-item:nth-child(odd)::before { display: none; }
  .reassurance-item:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 460px) {
  .reassurance-grid { grid-template-columns: 1fr; }
  .reassurance-item::before { display: none; }
  .reassurance-item + .reassurance-item { border-top: 1px solid var(--rule); }
}

/* ==========================================================================
   Le récit : rail vertical + chapitres
   ========================================================================== */

.story-wrap {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem);
}

/* Rail : trait tracé à la main, colonne de gauche */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - min(50vw, var(--shell) / 2) + clamp(20px, 5vw, 40px) + 21px);
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0,
    var(--rule) 3rem,
    var(--rule) calc(100% - 6rem),
    transparent 100%);
  z-index: 0;
}
.timeline-line::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--rail-progress, 0%);
  background: linear-gradient(180deg, var(--olive) 0%, var(--olive-light) 45%, var(--ocre) 100%);
  border-radius: 2px;
  transition: height .18s linear;
}

.chapter {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.chapter-inner { position: relative; z-index: 1; }

/* Colonne : marqueur (rail) + contenu */
.chapter-grid {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

/* --- Marqueur de chapitre --- */
.chapter-marker {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
  padding-top: .35rem;
}
.chapter-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, var(--sheet), var(--sheet-alt) 72%, #f3e9d5);
  border: 1px solid var(--rule);
  box-shadow: 0 0 0 6px var(--paper), var(--lift-1);
  color: var(--olive-deep);
  transition: transform .5s cubic-bezier(.22,.9,.3,1), border-color .5s ease, color .5s ease, box-shadow .5s ease;
}
.chapter-icon svg { display: block; }
.chapter.in-view .chapter-icon {
  border-color: rgba(185, 102, 42, .4);
  color: var(--ocre-deep);
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px rgba(185, 102, 42, .16), var(--lift-1);
}
.chapter-num {
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
  white-space: nowrap;
}

/* --- Corps de chapitre : la page --- */
.chapter-body {
  padding-left: clamp(1.2rem, 3vw, 2.6rem);
  max-width: 100%;
}
.chapter-body > p,
.chapter-body > h2,
.chapter-body > .eyebrow,
.chapter-body > blockquote,
.chapter-body > .chapter-close {
  max-width: var(--measure);
}
.chapter-body > p { color: var(--ink-soft); }

.chapter-title-line {
  display: block;
  width: 3.2rem;
  height: 2px;
  background: var(--ocre);
  border-radius: 2px;
  margin-bottom: 1.4rem;
}

/* Lettrine */
.dropcap::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 4.05em;
  line-height: .78;
  margin: .06em .1em -.02em 0;
  color: var(--ocre-deep);
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

.lede {
  font-size: 1.14em;
  line-height: 1.66;
  color: var(--ink) !important;
}

/* Citations mises en scène */
blockquote {
  position: relative;
  margin: clamp(2.4rem, 5vw, 3.4rem) 0;
  padding: 0 0 0 clamp(1.6rem, 3.4vw, 2.6rem);
  font-size: clamp(1.28rem, 1.06rem + .82vw, 1.72rem);
  line-height: 1.42;
  font-style: italic;
  font-weight: 300;
  letter-spacing: -.012em;
  color: var(--ink);
  border-left: 2px solid var(--ocre);
}
blockquote::before {
  content: "\201C";
  position: absolute;
  left: clamp(.7rem, 1.6vw, 1.1rem);
  top: -.34em;
  font-size: 3.6em;
  line-height: 1;
  color: rgba(185, 102, 42, .16);
  font-style: normal;
  pointer-events: none;
  z-index: -1;
}

/* Clôture de chapitre : CTA dans la voix du récit */
.chapter-close {
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  padding-top: 1.9rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.chapter-close p {
  margin: 0;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-mute);
  flex: 1 1 15rem;
  max-width: 34ch;
}

@media (max-width: 780px) {
  .chapter-grid { grid-template-columns: 44px minmax(0, 1fr); }
  .chapter-marker { position: static; }
  .chapter-num { display: none; }
  .chapter-body { padding-left: 1.1rem; }
  .timeline-line { left: calc(clamp(20px, 5vw, 40px) + 21px); }
  .dropcap::first-letter { font-size: 3.4em; }
}
@media (max-width: 520px) {
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-marker { flex-direction: row; align-items: center; margin-bottom: 1.5rem; }
  .chapter-num { display: block; writing-mode: horizontal-tb; }
  .chapter-body { padding-left: 0; }
  .timeline-line { display: none; }
}

/* ==========================================================================
   Chapitre 2 — les 3 formations en cartes comparables
   ========================================================================== */

.offers {
  margin: clamp(2.4rem, 5vw, 3.4rem) 0 0;
}
.offers-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  margin-bottom: 1.6rem;
}
.offers-head h3 { margin: 0; }
.offers-head .offers-hint {
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--ink-mute);
  margin: 0;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
  align-items: stretch;
}

.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(168deg, var(--sheet) 0%, var(--sheet-alt) 100%);
  border: 1px solid var(--rule);
  border-radius: 4px 4px 4px 18px;
  padding: 1.7rem 1.5rem 1.5rem;
  box-shadow: var(--lift-1);
  transition: transform .38s cubic-bezier(.22,.9,.3,1), box-shadow .38s ease, border-color .38s ease;
}
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lift-2);
  border-color: rgba(94, 76, 48, .28);
}

.offer-card.is-featured {
  border-color: rgba(185, 102, 42, .42);
  background: linear-gradient(168deg, #fffdf6 0%, #fdf5e6 100%);
  box-shadow: 0 0 0 1px rgba(185, 102, 42, .12), var(--lift-2);
}
.offer-card.is-featured:hover { box-shadow: 0 0 0 1px rgba(185, 102, 42, .18), var(--lift-3); }

.offer-badge {
  position: absolute;
  top: -.72rem;
  left: 1.4rem;
  font-family: var(--sans);
  font-size: .655rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fffaf1;
  background: linear-gradient(160deg, var(--ocre-light), var(--ocre-deep));
  padding: .42em .9em;
  border-radius: 999px;
  box-shadow: 0 3px 10px -3px rgba(150, 80, 31, .6);
  white-space: nowrap;
}

.offer-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #fdf6e6, var(--paper-warm));
  border: 1px solid var(--rule-soft);
  margin-bottom: 1rem;
}
.offer-card h4 {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -.012em;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 .18em;
  line-height: 1.2;
}
.offer-kicker {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-mute);
  margin: 0 0 1rem;
}

.offer-price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin: 0 0 .3rem;
  padding-top: .9rem;
  border-top: 1px dashed var(--rule);
}
.offer-price .amount {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 2rem + 1.3vw, 2.95rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--ocre-deep);
}
.offer-price .cur {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ocre-deep);
}
.offer-price .ttc {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-left: auto;
}
.offer-duration {
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 600;
  color: var(--olive-deep);
  margin: 0 0 1.15rem;
}

.offer-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .58rem;
  flex: 1;
}
.offer-list li {
  position: relative;
  padding-left: 1.6rem;
  font-family: var(--sans);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .16em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: rgba(99, 113, 58, .13);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2 4.7 8.3 9.4 3.6' fill='none' stroke='%2363713a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 78%;
}

.offer-card .btn { margin-top: auto; }
.offer-note {
  font-family: var(--sans);
  font-size: .74rem;
  color: var(--ink-faint);
  text-align: center;
  margin: .75rem 0 0;
}

/* --- Détail dépliable d'une formation (les 7 sections) --- */
.formation-story {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,252,244,.82), rgba(253,248,236,.55));
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.formation-story[open] {
  border-color: rgba(94, 76, 48, .26);
  box-shadow: var(--lift-1);
}
.formation-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem clamp(1rem, 2.4vw, 1.6rem);
  font-family: var(--sans);
  transition: background-color .25s ease;
}
.formation-summary::-webkit-details-marker { display: none; }
.formation-summary:hover { background: rgba(230, 216, 186, .28); }
.formation-summary .formation-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #fdf6e6, var(--paper-warm));
  border: 1px solid var(--rule-soft);
}
.formation-summary .sum-text { flex: 1; min-width: 0; }
.formation-summary h3 {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.25;
}
.formation-price {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--ocre-deep);
  margin: .2em 0 0;
}
.formation-summary .chev {
  flex: none;
  color: var(--ink-faint);
  transition: transform .35s cubic-bezier(.22,.9,.3,1), color .25s ease;
}
.formation-story[open] .formation-summary .chev { transform: rotate(180deg); color: var(--ocre); }

.formation-detail {
  padding: .4rem clamp(1rem, 2.4vw, 1.6rem) 1.7rem;
  border-top: 1px dashed var(--rule);
}
.formation-detail > p {
  font-size: .98rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.formation-detail h4 { margin-top: 1.85em; }
.formation-detail h4:first-of-type { margin-top: 1.2em; }
.formation-detail ul {
  margin: 0 0 1.15em;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .5rem;
}
.formation-detail ul li {
  position: relative;
  padding-left: 1.3rem;
  font-size: .96rem;
  color: var(--ink-soft);
}
.formation-detail ul li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .68em;
  width: .5rem;
  height: 1px;
  background: var(--ocre);
}

/* ==========================================================================
   Chapitre 3 — le parcours en étapes numérotées + méthode
   ========================================================================== */

.steps {
  margin: clamp(2.2rem, 4.5vw, 3.2rem) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
  counter-reset: step;
}
.step {
  position: relative;
  counter-increment: step;
  padding: 1.5rem 1.3rem 1.4rem;
  background: linear-gradient(168deg, var(--sheet) 0%, var(--sheet-alt) 100%);
  border: 1px solid var(--rule);
  border-radius: 4px 4px 4px 16px;
  box-shadow: var(--lift-1);
  transition: transform .35s cubic-bezier(.22,.9,.3,1), box-shadow .35s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--lift-2); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(185, 102, 42, .34);
  margin-bottom: .55rem;
}
.step h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -.008em;
  color: var(--ink);
  margin: 0 0 .4em;
}
.step p {
  font-family: var(--sans);
  font-size: .875rem;
  line-height: 1.58;
  color: var(--ink-mute);
  margin: 0;
}
/* liaison pointillée entre les étapes (desktop) */
@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.35rem;
    right: calc(-1 * clamp(1rem, 2.4vw, 1.6rem) - 1px);
    width: clamp(1rem, 2.4vw, 1.6rem);
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--rule) 0 4px, transparent 4px 8px);
  }
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
  margin: clamp(2rem, 4vw, 2.8rem) 0;
}
.method-card {
  padding: 1.5rem 1.4rem;
  background: rgba(255, 252, 244, .6);
  border: 1px solid var(--rule-soft);
  border-left: 2px solid var(--olive-light);
  border-radius: 0 4px 4px 0;
  transition: background-color .3s ease, border-left-color .3s ease, transform .3s ease;
}
.method-card:hover {
  background: var(--sheet);
  border-left-color: var(--ocre);
  transform: translateX(3px);
}
.method-card h3 {
  font-size: 1.09rem;
  font-weight: 500;
  margin: 0 0 .45em;
}
.method-card p {
  font-family: var(--sans);
  font-size: .885rem;
  line-height: 1.62;
  color: var(--ink-mute);
  margin: 0;
}

/* ==========================================================================
   Chapitre 4 — objections & FAQ
   ========================================================================== */

.objections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
  margin: clamp(2rem, 4vw, 2.8rem) 0 clamp(2.4rem, 5vw, 3.2rem);
}
.objection {
  padding: 1.5rem 1.4rem;
  background: linear-gradient(168deg, var(--sheet) 0%, var(--sheet-alt) 100%);
  border: 1px solid var(--rule);
  border-radius: 4px 4px 4px 16px;
  box-shadow: var(--lift-1);
}
.objection .obj-q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-mute);
  margin: 0 0 .7em;
  padding-bottom: .7em;
  border-bottom: 1px dashed var(--rule);
}
.objection .obj-a {
  font-family: var(--sans);
  font-size: .89rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}
.objection .obj-a strong { color: var(--olive-deep); font-weight: 700; }

.faq-list {
  margin-top: 1.8rem;
  max-width: var(--measure);
  border-top: 1px solid var(--rule);
}
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.42;
  color: var(--ink);
  padding: 1.15rem .3rem;
  transition: color .22s ease;
}
.faq-question:hover { color: var(--ocre-deep); }
.faq-question .plus {
  flex: none;
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: .18em;
  border-radius: 50%;
  border: 1px solid var(--rule);
  transition: transform .38s cubic-bezier(.22,.9,.3,1), border-color .3s ease, background-color .3s ease;
}
.faq-question .plus::before,
.faq-question .plus::after {
  content: "";
  position: absolute;
  inset: 50% 25%;
  height: 1.5px;
  margin-top: -.75px;
  background: var(--ocre);
  border-radius: 1px;
  transition: opacity .3s ease;
}
.faq-question .plus::after { transform: rotate(90deg); }
.faq-item.open .faq-question .plus {
  transform: rotate(135deg);
  border-color: rgba(185, 102, 42, .45);
  background: rgba(185, 102, 42, .08);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.22,.9,.3,1);
}
.faq-answer p {
  margin: 0 0 1.3rem;
  padding-right: 2.4rem;
  font-size: .99rem;
  line-height: 1.72;
  color: var(--ink-mute);
}

/* ==========================================================================
   Chapitre 5 — le formulaire
   ========================================================================== */

.form-shell {
  margin-top: clamp(2rem, 4vw, 3rem);
  position: relative;
  background: linear-gradient(168deg, var(--sheet) 0%, var(--sheet-alt) 55%, #f8f1e0 100%);
  border: 1px solid var(--rule);
  border-radius: 4px 4px 4px 24px;
  padding: clamp(1.6rem, 4vw, 2.9rem);
  box-shadow: var(--lift-2);
  max-width: 40rem;
}
.form-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.5), transparent 30%);
}
.form-shell > * { position: relative; }

.form-head { margin-bottom: 1.7rem; }
.form-head h3 { margin: 0 0 .35em; font-size: 1.5rem; }
.form-head p {
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--ink-mute);
  margin: 0;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
}
.form-row { display: flex; flex-direction: column; gap: .38rem; }
.form-row.full { grid-column: 1 / -1; }
.form-row label {
  font-family: var(--sans);
  font-size: .755rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  background: #fffdf7;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: .82rem .9rem;
  width: 100%;
  transition: border-color .24s ease, box-shadow .24s ease, background-color .24s ease;
  box-shadow: inset 0 1px 2px rgba(62, 46, 24, .04);
}
.form-row textarea { resize: vertical; min-height: 6.5rem; line-height: 1.6; }
.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%237c6c53' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  background-size: .8rem;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--ink-faint); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--olive);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 113, 58, .14), inset 0 1px 2px rgba(62, 46, 24, .04);
}
.form-row input:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible { outline: none; }

.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: var(--danger);
  background: #fffaf8;
}
.form-row.has-error input:focus,
.form-row.has-error select:focus,
.form-row.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(166, 58, 44, .13); }

.error-msg {
  font-family: var(--sans);
  font-size: .775rem;
  color: var(--danger);
  min-height: 1.1em;
  line-height: 1.35;
}

.form-actions { grid-column: 1 / -1; margin-top: .3rem; }
.form-actions .btn { width: 100%; padding-block: 1.1em; }
.form-reassure {
  font-family: var(--sans);
  font-size: .795rem;
  color: var(--ink-mute);
  text-align: center;
  margin: .85rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  flex-wrap: wrap;
}
.form-reassure svg { color: var(--olive); flex: none; }

.form-note {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 600;
  margin: 0;
}
.form-note:empty { display: none; }
.form-note.error { color: var(--danger); }
.form-note.pending { color: var(--ink-mute); }

@media (max-width: 620px) {
  .contact-form { grid-template-columns: 1fr; }
}

/* --- État de succès élégant --- */
.form-success {
  display: none;
  text-align: center;
  padding: clamp(1rem, 3vw, 2rem) 0;
}
.form-success.is-visible {
  display: block;
  animation: rise .7s cubic-bezier(.22,.9,.3,1) both;
}
.success-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fdf7e8, var(--paper-warm));
  border: 1px solid rgba(99, 113, 58, .35);
  box-shadow: 0 0 0 8px rgba(99, 113, 58, .07), var(--lift-1);
  color: var(--olive-deep);
}
.success-mark svg path {
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation: draw .8s .25s cubic-bezier(.6,.05,.2,1) forwards;
}
.form-success h3 { font-size: clamp(1.55rem, 1.3rem + 1vw, 2rem); margin-bottom: .4em; }
.form-success p {
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.65;
  color: var(--ink-mute);
  max-width: 34rem;
  margin-inline: auto;
}
.form-success .success-sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ocre-deep);
  margin-top: 1.4rem;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Barre d'action mobile
   ========================================================================== */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  display: none;
  gap: 10px;
  align-items: center;
  padding: 10px clamp(12px, 4vw, 18px) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(249, 243, 232, .93);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -10px 30px -18px rgba(62, 46, 24, .55);
  transform: translateY(110%);
  transition: transform .38s cubic-bezier(.22,.9,.3,1);
}
.action-bar.is-visible { transform: none; }
.action-bar .bar-text {
  flex: 1;
  min-width: 0;
  font-family: var(--sans);
  line-height: 1.25;
}
.action-bar .bar-text b {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
}
.action-bar .bar-text span {
  font-size: .74rem;
  color: var(--ink-mute);
}
.action-bar .btn {
  flex: none;
  font-size: .875rem;
  padding: .88em 1.35em;
}

@media (max-width: 880px) {
  .action-bar { display: flex; }
  body { padding-bottom: 68px; }
}

/* ==========================================================================
   Pied de page
   ========================================================================== */

.site-footer {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(168deg, #38301f 0%, #2b2417 100%);
  color: #e8dcc3;
  padding-block: clamp(2.8rem, 5vw, 4rem);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 146, 79, .5), transparent);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.footer-inner .logo { color: #f3e9d5; }
.footer-inner .logo span { color: #f3e9d5; }
.footer-brand p {
  font-family: var(--sans);
  font-size: .855rem;
  color: rgba(232, 220, 195, .68);
  margin: .7rem 0 0;
  max-width: 34ch;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.6rem;
  font-family: var(--sans);
  font-size: .875rem;
}
.footer-nav a {
  color: rgba(232, 220, 195, .78);
  text-decoration: none;
  transition: color .22s ease;
}
.footer-nav a:hover { color: var(--ocre-light); }
.footer-bottom {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(232, 220, 195, .13);
  font-family: var(--sans);
  font-size: .78rem;
  color: rgba(232, 220, 195, .5);
}

/* ==========================================================================
   Révélation au scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s cubic-bezier(.22,.9,.3,1), transform .85s cubic-bezier(.22,.9,.3,1);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal .chapter-body > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.22,.9,.3,1), transform .7s cubic-bezier(.22,.9,.3,1);
}
.reveal.in-view .chapter-body > * { opacity: 1; transform: none; }
.reveal.in-view .chapter-body > *:nth-child(1) { transition-delay: .06s; }
.reveal.in-view .chapter-body > *:nth-child(2) { transition-delay: .12s; }
.reveal.in-view .chapter-body > *:nth-child(3) { transition-delay: .18s; }
.reveal.in-view .chapter-body > *:nth-child(4) { transition-delay: .24s; }
.reveal.in-view .chapter-body > *:nth-child(n+5) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, .reveal .chapter-body > * { opacity: 1 !important; transform: none !important; }
  .success-mark svg path { stroke-dashoffset: 0; }
  .action-bar { transition: none; }
}

.formation-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.formation-head > div { flex: 1; }

/* ==========================================================================
   Visuels photo
   ========================================================================== */
.media-figure {
  margin: 0;
  border-radius: 3px 3px 3px 22px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper-warm);
  box-shadow: var(--lift-3, 0 18px 40px -24px rgba(46,38,24,.45));
}
.media-figure img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  max-height: 420px;
  object-fit: cover;
}
.media-figure figcaption {
  padding: .85rem 1.2rem;
  font-family: var(--sans);
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--ink-mute);
  background: var(--sheet);
  border-top: 1px solid var(--rule-soft);
}

.hero-visual-figure {
  margin: 0 0 0 auto;
  /* Sans largeur maximale, la colonne du hero étirait la photo sur ~1400px
     de haut et repoussait tout le contenu vers le bas. */
  width: 100%;
  max-width: 380px;
  border-radius: 3px 3px 3px 26px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px -28px rgba(46,38,24,.55);
}
.hero-visual-figure img {
  width: 100%;
  /* height:auto est indispensable : sans lui l'attribut height="1502" du HTML
     l'emporte sur aspect-ratio et la photo s'affiche en pleine hauteur. */
  height: auto;
  display: block;
  /* 3/4 plutôt que 4/5 : l'image source est un portrait 1000×1502, un cadrage
     moins serré garde le chien ET le chat dans le champ. */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 38%;
}
@media (max-width: 860px) {
  .hero-visual-figure { margin-inline: auto; max-width: 320px; }
}

.formation-media {
  margin-bottom: 1.6rem;
  border-radius: 3px 3px 3px 18px;
  overflow: hidden;
  /* Sur toute la largeur du récit, un 16/10 donnait ~660px de haut par photo.
     Un bandeau large reste lisible sans écraser le texte. */
  aspect-ratio: 21 / 8;
  max-height: 320px;
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
}
.formation-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.formation-card:hover .formation-media img,
.path:hover .formation-media img { transform: scale(1.04); }

/* Texte + image */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.duo p { color: var(--ink-soft); }

/* Tableau comparatif */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 2rem; }
.cmp {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--sheet);
  border: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: .9125rem;
}
/* La légende suit la largeur mini du tableau (720px) et débordait donc de la
   fenêtre sur mobile. On la sort du flux de défilement horizontal. */
.cmp caption {
  caption-side: bottom;
  position: sticky;
  left: 0;
  width: 100%;
  max-width: 100vw;
  padding-top: .9rem;
  font-size: .8rem;
  color: var(--ink-faint);
  text-align: left;
}
.cmp th, .cmp td {
  padding: .9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.cmp thead th {
  background: var(--paper-warm);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.cmp td strong { color: var(--ocre-deep); }

/* Réponses courtes (format repris par les moteurs et les IA) */
.answers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.answer {
  background: var(--sheet);
  border: 1px solid var(--rule-soft);
  border-left: 2px solid var(--olive-light);
  padding: 1.3rem 1.5rem;
}
.answer h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 .5rem;
  color: var(--ink);
}
.answer p {
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.6;
}

/* Honeypot anti-spam : masqué aux humains, visible des robots */
.pot-de-miel {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Un display: explicite l'emporte sur l'attribut [hidden] */
[hidden] { display: none !important; }

@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .duo .media-figure { order: -1; }
}
