/* Nexus Coaching — feuille de style commune
   Palette « Pierre et sable » (sombre, accents beige), assortie à la page d'accueil · Newsreader (titres) + Hanken Grotesk (texte) */

/* Polices hébergées sur le site (aucune requête vers Google) */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("/assets/fonts/newsreader.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 400; font-display: swap; src: url("/assets/fonts/newsreader-italic.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/hanken-400.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/hanken-500.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/hanken-600.woff2") format("woff2"); }

:root {
  /* Les noms d'origine sont conservés pour ne rien casser : « olive » désigne désormais l'accent sable */
  --bg: #1E1D1B;
  --paper: #282622;
  --sand: #24221F;
  --line: #3B3832;
  --ink: #F6F1E4;
  --ink-2: #D6D1C8;
  --muted: #A8A196;
  --olive: #D9CBB0;
  --olive-hover: #F6F1E4;
  --olive-text: #D9CBB0;
  --olive-tint: rgba(217, 203, 176, .12);
  --sage: #C9A77F;
  --forest: #151412;
  --forest-2: #1A1916;
  --on-dark: #F6F1E4;
  --on-dark-2: #BDB6AA;
  --danger: #E58C6E;
  color-scheme: dark;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--olive-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--olive-tint); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.012em; font-optical-sizing: auto; }
h1 { font-size: clamp(42px, 6.2vw, 78px); letter-spacing: -0.022em; line-height: 1.02; }
h2 { font-size: clamp(32px, 4.2vw, 50px); }
h3 { font-size: clamp(22px, 2.2vw, 27px); line-height: 1.2; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--sans); letter-spacing: 0.005em;
  padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--olive); color: var(--bg); }
.btn-primary:hover { background: var(--olive-hover); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--olive); color: var(--olive); }
.btn-light { background: var(--on-dark); color: var(--forest); }
.btn-light:hover { background: #fff; color: var(--forest); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(30, 29, 27, 0.9); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { font-family: var(--serif); font-size: 26px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; display: inline-flex; align-items: baseline; gap: 8px; }
.brand small { font-family: var(--sans); font-size: 12px; letter-spacing: 0.02em; color: var(--muted); }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--olive); }
.nav .btn { padding: 12px 20px; font-size: 14px; color: var(--bg); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-block; }
  .nav { position: fixed; inset: 72px 0 auto 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 18px; border-bottom: 0; padding: 16px; font-size: 15px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(56px, 7vw, 88px) 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--forest); color: var(--on-dark); }
.section-dark .lede, .section-dark .muted { color: var(--on-dark-2); }
.section-dark a:not(.btn) { color: var(--on-dark); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { margin: 0; color: var(--ink-2); max-width: 32em; }
.section-dark .section-head p { color: var(--on-dark-2); }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { max-width: 11.5em; }
.hero .lede { margin: 28px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--muted); padding: 0; list-style: none; }
.hero-meta li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); margin-right: 10px; vertical-align: middle; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Carte « semaine type » */
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 22px; box-shadow: 0 1px 0 rgba(46, 42, 31, .04), 0 24px 48px -32px rgba(58, 63, 46, .35); }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan-top strong { font-family: var(--serif); font-weight: 400; font-size: 23px; }
.plan-top span { font-size: 13px; color: var(--muted); }
.plan-progress { height: 4px; background: var(--sand); border-radius: 4px; margin: 14px 0 18px; overflow: hidden; }
.plan-progress i { display: block; height: 100%; width: 41.6%; background: var(--olive); border-radius: 4px; }
.plan-days { list-style: none; margin: 0; padding: 0; }
.plan-days li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; align-items: baseline; }
.plan-days b { font-weight: 600; color: var(--muted); font-size: 13px; }
.plan-days em { font-style: normal; font-size: 13px; color: var(--muted); }
.plan-days .done span { text-decoration: line-through; text-decoration-color: var(--olive); color: var(--ink-2); }
.plan-food { margin-top: 6px; padding: 14px 16px; background: var(--olive-tint); border-radius: var(--r-md); font-size: 14px; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); display: flex; gap: 12px; align-items: flex-start; }
.plan-note .av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: var(--on-dark); display: grid; place-items: center; font: 500 14px var(--serif); }

/* ---------- Piliers ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillar { padding: 32px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar h3 { margin-bottom: 14px; }
.pillar p { color: var(--ink-2); font-size: 16px; }
.pillar ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: 15px; color: var(--ink-2); }
.pillar li { padding: 8px 0; border-top: 1px dashed var(--line); }
.pillars.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pillars.two .pillar:nth-child(3) { border-left: 0; padding-left: 0; }
.pillars.two .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
.section-dark .pillars, .section-dark .pillar, .section-dark .pillar li { border-color: rgba(241, 237, 223, .16); }
.section-dark .pillar p, .section-dark .pillar ul { color: var(--on-dark-2); }
@media (max-width: 860px) {
  .pillars, .pillars.two { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0 8px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
}

/* ---------- Parcours (séquence réelle) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 28px 0 0; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; font: 400 19px var(--serif); margin-bottom: 22px; background: var(--forest); position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 20px; left: 40px; right: 0; height: 1px; background: rgba(241, 237, 223, .25); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 22px; margin-bottom: 10px; }
.steps p { font-size: 15.5px; color: var(--on-dark-2); margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0 0 0 64px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li::after { left: 20px; top: 44px; bottom: -28px; right: auto; width: 1px; height: auto; }
}

/* ---------- Escalier des offres ---------- */
.ladder-wrap { position: relative; }
.ladder-axis { display: flex; justify-content: flex-end; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.ladder-axis svg { flex: none; }
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.offer { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px 24px; display: flex; flex-direction: column; }
.offer:nth-child(1) { margin-top: 132px; }
.offer:nth-child(2) { margin-top: 88px; }
.offer:nth-child(3) { margin-top: 44px; }
.offer-group { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.offer h3 { font-size: 24px; margin-bottom: 10px; min-height: 2.4em; }
.offer .offer-short { font-size: 15px; color: var(--ink-2); margin: 0 0 22px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: auto 0 4px; }
.price b { font-family: var(--serif); font-weight: 400; font-size: 58px; line-height: 1; letter-spacing: -0.03em; }
.price span { font-size: 16px; color: var(--ink-2); }
.offer .offer-note { font-size: 13px; color: var(--muted); margin: 0 0 20px; min-height: 2.9em; }
.offer ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: 14.5px; border-top: 1px solid var(--line); }
.offer li { padding: 10px 0 10px 24px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); }
.offer li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 6px; border-left: 1.5px solid var(--olive); border-bottom: 1.5px solid var(--olive); transform: rotate(-45deg); }
.offer .btn { margin-top: auto; }
.offer-featured { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.offer-featured .offer-group, .offer-featured .offer-note { color: var(--on-dark-2); }
.offer-featured .offer-short, .offer-featured li, .offer-featured .price span { color: var(--on-dark); }
.offer-featured ul, .offer-featured li { border-color: rgba(241, 237, 223, .16); }
.offer-featured li::before { border-color: var(--olive); }
.offer-badge { align-self: flex-start; font-size: 12.5px; font-weight: 600; background: var(--olive); color: var(--bg); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.ladder-base { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.ladder-base div { border-top: 2px solid var(--ink); padding-top: 12px; font-size: 14px; color: var(--ink-2); }
.ladder-base strong { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
@media (max-width: 1040px) {
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer:nth-child(n) { margin-top: 0; }
  .ladder-axis, .ladder-base { display: none; }
}
@media (max-width: 620px) { .ladder { grid-template-columns: 1fr; } .offer h3 { min-height: 0; } .offer .offer-note { min-height: 0; } }

/* Tableau comparatif */
.compare { margin-top: 48px; border-top: 1px solid var(--line); }
.compare summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: "+"; font: 300 28px/1 var(--serif); color: var(--olive-text); }
.compare[open] summary::after { content: "−"; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.compare tbody th { font-weight: 400; color: var(--ink-2); width: 28%; }
.compare td.yes { color: var(--olive-text); font-weight: 600; }
.compare td.no { color: var(--muted); }

/* ---------- Timeline 12 semaines ---------- */
.timeline { display: grid; grid-template-columns: 2fr 6fr 4fr; gap: 0; border-top: 1px solid var(--line); }
.phase { padding: 28px 24px 0 0; }
.phase + .phase { padding-left: 24px; border-left: 1px solid var(--line); }
.phase-weeks { font-family: var(--serif); font-size: 19px; color: var(--olive-text); margin-bottom: 6px; }
.phase h3 { margin-bottom: 12px; }
.phase p { font-size: 15.5px; color: var(--ink-2); }
.timeline-bar { display: grid; grid-template-columns: 2fr 6fr 4fr; height: 8px; margin-bottom: 0; }
.timeline-bar i:nth-child(1) { background: var(--olive-tint); }
.timeline-bar i:nth-child(2) { background: var(--muted); }
.timeline-bar i:nth-child(3) { background: var(--olive); }
@media (max-width: 820px) {
  .timeline, .timeline-bar { grid-template-columns: 1fr; }
  .timeline-bar { display: none; }
  .phase, .phase + .phase { padding: 24px 0 0; border-left: 0; }
  .phase + .phase { border-top: 1px solid var(--line); }
}

/* ---------- Coach ---------- */
.coach-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.portrait { aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--forest); position: relative; }
.portrait img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: var(--on-dark); background:
  radial-gradient(120% 80% at 80% 10%, rgba(217, 203, 176, .22), transparent 60%),
  repeating-linear-gradient(135deg, rgba(241, 237, 223, .05) 0 2px, transparent 2px 14px), var(--forest); }
.portrait-fallback span { font-family: var(--serif); font-size: 30px; }
.portrait-fallback small { color: var(--on-dark-2); font-size: 14px; }
.quote { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; margin: 0 0 24px; }
@media (max-width: 860px) { .coach-grid { grid-template-columns: 1fr; } .portrait { max-width: 420px; } }

/* ---------- Liste d'articles ---------- */
.article-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.article-list li { border-bottom: 1px solid var(--line); }
.article-list a { display: grid; grid-template-columns: 150px minmax(0, 1fr) 120px; gap: 24px; padding: 22px 0; text-decoration: none; color: var(--ink); align-items: baseline; }
.article-list a:hover h3 { color: var(--olive-text); }
.article-list .cat { font-size: 14px; color: var(--olive-text); font-weight: 600; }
.article-list h3 { font-size: 23px; transition: color .15s; }
.article-list .src { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; font-family: var(--sans); }
.article-list .time { font-size: 14px; color: var(--muted); text-align: right; }
@media (max-width: 720px) {
  .article-list a { grid-template-columns: 1fr; gap: 6px; }
  .article-list .time { text-align: left; }
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: 500 15px var(--sans); background: transparent; border: 1px solid var(--line); color: var(--ink-2); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative; font-family: var(--serif); font-size: clamp(20px, 2vw, 23px); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 30px/1 var(--serif); color: var(--olive-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 24px; color: var(--ink-2); max-width: 44em; }
.faq .answer ul { padding-left: 20px; }
.faq .answer li { margin-bottom: 6px; }
.faq-group { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--muted); margin: 48px 0 8px; }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 14px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(217, 203, 176, .2); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.field .err { display: none; color: var(--danger); font-size: 13px; margin-top: 6px; }
.field.has-err .err { display: block; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choices label { font-weight: 500; margin: 0; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; font-size: 15px; transition: background-color .15s, border-color .15s; }
.choices input:checked + span { background: var(--olive); border-color: var(--olive); color: var(--bg); }
.choices input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 14.5px; color: var(--ink-2); align-items: start; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--olive); }
.form-msg { padding: 14px 16px; border-radius: var(--r-md); font-size: 15px; margin-top: 16px; display: none; }
.form-msg.show { display: block; }
.form-msg.error { background: rgba(229, 140, 110, .14); color: #F2BBA8; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Page commande ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.checkout-aside { position: sticky; top: 96px; }
.recap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.recap h2 { font-size: 26px; margin-bottom: 6px; }
.recap .price b { font-size: 46px; }
.recap ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: 14.5px; color: var(--ink-2); }
.recap li { padding: 8px 0 8px 22px; position: relative; border-top: 1px solid var(--line); }
.recap li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 5px; border-left: 1.5px solid var(--olive); border-bottom: 1.5px solid var(--olive); transform: rotate(-45deg); }
.switcher { margin-top: 18px; display: grid; gap: 8px; }
.switcher label { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; font-size: 14.5px; background: var(--bg); }
.switcher label:has(input:checked) { border-color: var(--olive); background: var(--olive-tint); }
.switcher input { accent-color: var(--olive); margin: 0; }
.switcher b { font-weight: 600; white-space: nowrap; }
.assurances { list-style: none; padding: 0; margin: 18px 0 0; font-size: 14px; color: var(--muted); display: grid; gap: 8px; }
.form-step { padding: 0 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.form-step h2 { font-size: 28px; margin-bottom: 6px; }
.form-step > p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 22px; }
.done-panel { display: none; }
.done-panel.show { display: block; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .checkout-aside { position: static; order: -1; } }

/* ---------- Questionnaire ---------- */
.quiz { max-width: 720px; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 40px; }
.quiz-progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background-color .25s; }
.quiz-progress i.on { background: var(--olive); }
.q { display: none; }
.q.active { display: block; }
.q h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 28px; }
.q-options { display: grid; gap: 10px; }
.q-options button { text-align: left; font: 500 17px var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; transition: border-color .15s, background-color .15s; }
.q-options button small { font-weight: 400; color: var(--muted); font-size: 14px; display: block; margin-top: 3px; }
.q-options button:hover { border-color: var(--olive); }
.q-options button[aria-pressed="true"] { border-color: var(--olive); background: var(--olive-tint); }
.quiz-nav { margin-top: 28px; display: flex; justify-content: space-between; }
.quiz-back { background: none; border: 0; font: 600 15px var(--sans); color: var(--ink-2); cursor: pointer; padding: 8px 0; }
.result-card { background: var(--forest); color: var(--on-dark); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); }
.result-card h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 6px 0 12px; }
.result-card .price span { color: var(--on-dark-2); }
.result-card ul { list-style: none; padding: 0; margin: 20px 0 28px; }
.result-card li { padding: 9px 0 9px 24px; border-top: 1px solid rgba(241, 237, 223, .16); position: relative; font-size: 15.5px; }
.result-card li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 10px; height: 6px; border-left: 1.5px solid var(--olive); border-bottom: 1.5px solid var(--olive); transform: rotate(-45deg); }

/* ---------- Confirmation ---------- */
.next-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; border-top: 1px solid var(--line); }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.next-steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--olive); color: var(--olive-text); display: grid; place-items: center; font: 400 19px var(--serif); }
.next-steps h3 { font-size: 22px; margin-bottom: 6px; }
.next-steps p { margin: 0 0 10px; color: var(--ink-2); font-size: 16px; }

/* ---------- Article ---------- */
.article-head { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 14px; margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.article-head h1 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.06; max-width: 15em; }
.article-meta { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; color: var(--muted); }
.article-meta strong { color: var(--olive-text); font-weight: 600; }
.prose { max-width: 700px; padding: clamp(40px, 5vw, 64px) 0; font-size: 18px; line-height: 1.75; }
.prose h2 { font-size: clamp(26px, 2.8vw, 33px); margin: 2.1em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; margin: 1.7em 0 .5em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--olive); }
.prose strong { font-weight: 600; color: var(--ink); }
.stat { margin: 2em 0; padding: 26px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.stat b { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 72px); line-height: 1; color: var(--olive-text); letter-spacing: -0.03em; white-space: nowrap; }
.stat p { margin: 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 560px) { .stat { grid-template-columns: 1fr; gap: 12px; } }
.key { margin: 2em 0; padding: 22px 24px; background: var(--olive-tint); border-radius: var(--r-md); font-size: 16.5px; color: var(--ink); }
.key strong:first-child { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; margin-bottom: 6px; color: var(--olive-text); }
.key p { margin: 0; }
.article-cta { background: var(--forest); color: var(--on-dark); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 40px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-bottom: 48px; }
.article-cta h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 8px; }
.article-cta p { margin: 0; color: var(--on-dark-2); font-size: 15.5px; }
@media (max-width: 720px) { .article-cta { grid-template-columns: 1fr; } }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: clamp(56px, 8vw, 96px); }
.article-nav a { display: block; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.article-nav span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.article-nav strong { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.3; }
.article-nav a:last-child { text-align: right; }
.disclaimer { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 40px; }

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); }
.legal h1 { font-size: clamp(36px, 4.6vw, 54px); margin-bottom: 10px; }
.legal h2 { font-size: 25px; margin: 2em 0 .5em; }
.legal p, .legal li { color: var(--ink-2); font-size: 16.5px; }
.legal .todo { background: #F3E3B5; color: #5B4510; padding: 1px 6px; border-radius: 4px; }

/* ---------- Bandeau CTA final ---------- */
.cta-band { text-align: left; }
.cta-band-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: end; }
.cta-band h2 { max-width: 13em; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) { .cta-band-grid { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--forest); color: var(--on-dark-2); padding: 72px 0 32px; font-size: 15px; }
.section-dark + .site-footer { border-top: 1px solid rgba(241, 237, 223, .12); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer .brand { color: var(--on-dark); }
.site-footer h2 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--on-dark); margin: 0 0 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(241, 237, 223, .12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Mouvement : une seule entrée orchestrée sur le hero ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-in > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-in > *:nth-child(2) { animation-delay: .08s; }
  .hero-in > *:nth-child(3) { animation-delay: .16s; }
  .hero-in > *:nth-child(4) { animation-delay: .24s; }
  .plan { animation: rise 1s .3s cubic-bezier(.2, .7, .2, 1) both; }
  .plan-progress i { animation: grow 1.2s .9s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes grow { from { width: 0; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Correctifs formulaires */
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field label.check { display: grid; font-weight: 400; font-size: 14.5px; color: var(--ink-2); margin: 0; }
.recap .offer-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.recap .offer-group { font-size: 13px; color: var(--muted); }

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .skip { display: none !important; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .legal p, .legal li { color: #333; }
  .legal { padding: 0; max-width: none; }
  .legal h2 { break-after: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* Harmonisation avec la page d'accueil immersive */
h1 em, h2 em, .quote em { font-style: italic; color: var(--olive-text); }
.section-dark { border-block: 1px solid var(--line); }
.offer, .plan, .recap, .q-options button, .switcher label, .field input, .field select, .field textarea, .choices span { box-shadow: none; }
.offer-featured { border-color: var(--olive); }
