/* RestoForge — feuille de styles du site
   Direction A « Pilotage », version claire : crème, blanc, encre, cobalt.
   Mobile d'abord. Points de rupture : 720px (tablette) et 1024px (ordinateur). */

:root {
  --cream: #F6F1E7;
  --cream-deep: #E9E0CF;
  --paper: #FFFFFF;
  --ink: #15171E;
  --ink-2: #3A372F;
  --muted: #5E5A52;
  --line: #E3DACB;
  --cobalt: #2639C9;
  --cobalt-hover: #1C2BA3;
  --cobalt-soft: #E8EAFB;
  --ok: #1E7A46;
  --amber: #9A5A06;
  --danger: #B42318;
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --radius: 16px;
  --shadow: 6px 6px 0 var(--cream-deep);
  --max: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); }
a:hover { color: var(--cobalt-hover); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.03em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(36px, 7.2vw, 66px); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(28px, 4.8vw, 44px); line-height: 1.06; font-weight: 800; }
h3 { font-size: clamp(20px, 2.6vw, 24px); line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-paper { background: var(--paper); border-block: 1.5px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.kicker { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--cobalt); }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.mark { background: linear-gradient(transparent 62%, var(--cobalt-soft) 62%); padding: 0 3px; }
.fine { font-size: 13.5px; color: var(--muted); }

/* ---------- En-tête ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--cream); z-index: 60; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(246, 241, 231, 0.94); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1.5px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.nav { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; font-weight: 500; padding: 8px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--cobalt); }
.header-inner .header-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 10px; padding: 10px 14px; min-height: 44px; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.mobile-nav { border-top: 1.5px solid var(--line); background: var(--cream); }
.mobile-nav ul { list-style: none; margin: 0; padding: 12px 0 20px; display: flex; flex-direction: column; }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 18px; width: 100%; }
@media (min-width: 1024px) {
  .nav { display: flex; gap: 26px; align-items: center; }
  .header-inner .header-cta { display: inline-flex; }
  .menu-btn, .mobile-nav { display: none !important; }
}

/* ---------- Boutons ---------- */
.btn { font: inherit; font-weight: 600; font-size: 17px; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 15px 22px; border-radius: 12px; border: 1.5px solid var(--ink); text-decoration: none; cursor: pointer; transition: transform .08s ease, box-shadow .08s ease, background .15s ease, color .15s ease; text-align: center; }
.btn-primary { background: var(--cobalt); color: #FFFFFF; box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { background: var(--cobalt-hover); color: #FFFFFF; }
.btn-primary:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-secondary { background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-secondary:hover { background: var(--cobalt-soft); color: var(--ink); }
.btn-secondary:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-small { min-height: 44px; padding: 10px 16px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.btn-small:active { transform: translate(3px, 3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .btn-row .btn { flex: 0 0 auto; } }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.proof div { border-top: 2px solid var(--ink); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.proof b { font-family: var(--mono); font-weight: 600; font-size: clamp(22px, 3.4vw, 30px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.proof span { font-size: 13.5px; color: var(--muted); line-height: 1.35; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* Carte « lecture d'un mois » */
.readout { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 18px; padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.readout-head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.readout-gauge { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; align-items: center; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 3px; display: inline-block; }
@media (max-width: 479px) {
  .readout-gauge { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .legend { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
}
.rows { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 16px; font-size: 15px; font-variant-numeric: tabular-nums; }
.rows dt { color: var(--ink-2); }
.rows dd { margin: 0; text-align: right; font-family: var(--mono); }
.rows dd.p { color: var(--muted); }
.readout-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1.5px dashed var(--ink); padding-top: 14px; }
.readout-total span { font-size: 14.5px; color: var(--ink-2); }
.readout-total b { font-family: var(--mono); font-size: 24px; font-weight: 600; color: var(--cobalt); white-space: nowrap; }
.g-arc { transition: stroke-dasharray 1.2s cubic-bezier(.2,.8,.2,1); }

/* ---------- Trois parcours ---------- */
.doors { display: grid; gap: 18px; }
@media (min-width: 900px) { .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.door { position: relative; display: flex; flex-direction: column; gap: 16px; background: var(--paper); color: var(--ink); text-decoration: none; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 26px; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease; min-width: 0; }
.door:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--cobalt); }
.door:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.door-name { align-self: flex-start; display: inline-flex; align-items: center; background: var(--ink); color: var(--cream); font-family: var(--display); font-weight: 800; font-size: clamp(19px, 2.2vw, 22px); letter-spacing: -0.01em; line-height: 1.1; padding: 9px 14px; border-radius: 8px; transition: background .15s ease; }
.door:hover .door-name { background: var(--cobalt); }
.door-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cobalt); font-weight: 500; }
.door p { color: var(--muted); font-size: 15.5px; }
.door-viz { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.door-viz small { font-size: 12.5px; color: var(--muted); }
.door-bar { display: flex; height: 12px; border-radius: 3px; overflow: hidden; }
.door-bar span { height: 100%; }
.door-legend { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.door-go { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; border-top: 1.5px solid var(--line); padding-top: 14px; }
.door:hover .door-go { color: var(--cobalt); }
.seg5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; height: 12px; }
.seg5 span { border-radius: 2px; background: var(--cream-deep); }
.seg5 span.on { background: var(--cobalt); }
.track { position: relative; height: 12px; background: var(--cream-deep); border-radius: 3px; }
.track > span { position: absolute; inset: 0 auto 0 0; background: var(--cobalt); border-radius: 3px; }
.track > i { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink); }

/* ---------- Problèmes ---------- */
.problems { display: grid; gap: 14px; }
@media (min-width: 720px) { .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .problems { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.problem { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.problem .tag { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.problem p { color: var(--muted); font-size: 15.5px; }
.problem-highlight { background: var(--cobalt); border-color: var(--cobalt); color: #FFFFFF; }
.problem-highlight h3, .problem-highlight .tag, .problem-highlight p { color: #FFFFFF; }
.problem-highlight .tag { opacity: .85; }

/* ---------- Fondateur ---------- */
.founder-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .founder-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.portrait-wrap { margin: 0; width: 100%; max-width: 420px; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.portrait { width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--cobalt); overflow: hidden; background: var(--cream-deep); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-wrap .caption { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
@media (max-width: 899px) { .portrait-wrap { max-width: 280px; } }
.quote { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.fact b { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.fact span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.morning { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--paper); overflow: hidden; }
.morning li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.morning li:last-child { border-bottom: 0; }
.morning time { font-family: var(--mono); font-weight: 600; color: var(--cobalt); }

/* ---------- Méthode ---------- */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { counter-increment: s; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--muted); }
.step-num::before { content: "0" counter(s); }
.step-bar { display: grid; grid-template-columns: repeat(4, 18px); gap: 3px; }
.step-bar span { height: 8px; border-radius: 2px; background: var(--cream-deep); }
.step-bar span.on { background: var(--cobalt); }
.step p { font-size: 15.5px; color: var(--muted); }
.step .deliv { margin-top: auto; padding-top: 12px; border-top: 1.5px dashed var(--line); font-size: 14px; }
.step .deliv b { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cobalt); font-weight: 500; margin-bottom: 4px; }

/* ---------- Mini-calculateur ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 20px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.calc > * { min-width: 0; }
.calc form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13.5px; color: var(--muted); }
.money { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--ink); border-radius: 12px; padding: 4px 16px; background: var(--paper); }
.money:focus-within { border-color: var(--cobalt); box-shadow: 3px 3px 0 var(--cobalt); }
.money input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--mono); font-weight: 600; font-size: 22px; padding: 10px 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.money span { font-family: var(--mono); font-size: 14px; color: var(--muted); white-space: nowrap; }
.calc-out { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.calc-out .verdict-line { font-size: 16px; color: var(--ink-2); min-height: 3em; }
.calc-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.calc-numbers div { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
@media (max-width: 399px) { .calc-numbers { grid-template-columns: minmax(0, 1fr); } }
.calc-numbers small { font-size: 12.5px; color: var(--muted); }
.calc-numbers b { font-family: var(--mono); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Pourquoi ---------- */
.why { display: grid; gap: 14px; }
@media (min-width: 720px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .why { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.why-item { border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.why-item p { color: var(--muted); font-size: 15.5px; }
.not-list { display: flex; flex-wrap: wrap; gap: 10px; }
.not-list span { font-size: 15.5px; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--cobalt); text-decoration-thickness: 2px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq details { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; font-weight: 600; font-size: 17px; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--cobalt); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 20px; color: var(--ink-2); font-size: 16px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Bandeau final ---------- */
.final { background: var(--cobalt); color: #FFFFFF; border-block: 1.5px solid var(--ink); }
.final h2, .final p { color: #FFFFFF; }
.final .lead { color: #DDE1FA; }
.final-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .final-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.final .btn-secondary { box-shadow: 4px 4px 0 var(--ink); }
.final .btn-ghost-light { background: transparent; color: #FFFFFF; border-color: #FFFFFF; box-shadow: none; }
.final .btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #FFFFFF; }
.final .fine { color: #DDE1FA; }

/* ---------- Pages intérieures ---------- */
.page-hero { padding-block: clamp(40px, 7vw, 84px) clamp(36px, 5vw, 64px); border-bottom: 1.5px solid var(--line); }
.page-hero .hero-copy { max-width: 820px; }
.crumbs { font-family: var(--mono); font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.two-col { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 16.5px; }
.checklist li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--cobalt); transform: translateY(-1px); }
.example { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 18px; padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.example .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.example table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15.5px; }
.example th, .example td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.example td:last-child, .example th:last-child { text-align: right; font-family: var(--mono); }
.example tr.total td { border-bottom: 0; border-top: 1.5px dashed var(--ink); font-weight: 600; }
.example tr.total td:last-child { color: var(--cobalt); font-size: 20px; }
.callout { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.22; letter-spacing: -0.02em; }
.deliverables { display: grid; gap: 14px; }
@media (min-width: 720px) { .deliverables { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .deliverables { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.deliverable { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.deliverable p { color: var(--muted); font-size: 15.5px; }
.deliverable .tag { font-family: var(--mono); font-size: 12px; color: var(--cobalt); letter-spacing: 0.05em; text-transform: uppercase; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; position: relative; }
.timeline li::before { content: attr(data-n); width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: var(--cream); font-family: var(--mono); font-weight: 600; display: grid; place-items: center; position: relative; z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--cream-deep); }
.timeline li:last-child::after { display: none; }
.timeline li:last-child { padding-bottom: 0; }
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 15.5px; }
.for-whom { display: grid; gap: 14px; }
@media (min-width: 720px) { .for-whom { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.box { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.box-muted { border-color: var(--line); background: transparent; }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 18px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.todo { background: #FFF6D8; border: 1.5px dashed var(--amber); color: var(--amber); padding: 2px 6px; border-radius: 6px; font-family: var(--mono); font-size: 14px; }

/* ---------- Formulaire contact ---------- */
@media (max-width: 899px) { .contact-grid > .form { order: -1; } }
.form { display: flex; flex-direction: column; gap: 16px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 18px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea { font: inherit; font-size: 16.5px; width: 100%; padding: 13px 14px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--cobalt); box-shadow: 3px 3px 0 var(--cobalt); }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cobalt); }
.form-error { color: var(--danger); font-weight: 500; font-size: 15px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--cream-deep); border-top: 1.5px solid var(--ink); padding-block: 48px calc(48px + 76px); }
@media (min-width: 1024px) { .site-footer { padding-bottom: 48px; } }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } }
.footer-grid h3 { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.footer-grid a:hover { color: var(--cobalt); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(21,23,30,.15); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13.5px; color: var(--muted); }

/* ---------- Barre d'action mobile ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1.5px solid var(--ink); padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); display: flex; gap: 10px; }
.mobile-bar .btn { flex: 1; min-height: 50px; padding: 12px 14px; font-size: 15.5px; }
.mobile-bar .btn-secondary { flex: 0 0 auto; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* ---------- Mouvement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
  .reveal.pending { transform: translateY(14px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-arc, .door, .btn { transition: none; }
}

/* ---------- Lecture mobile : moins d'éléments au premier écran, listes en carrousel ---------- */
.show-mobile { display: none !important; }
.swipe-hint { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: -12px 0 12px; }
@media (max-width: 719px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: inline-flex !important; }
  p.show-mobile { display: block !important; }
  .section { padding-block: 52px; }
  .hero { padding-block: 32px 44px; }
  .hero-copy { gap: 20px; }
  .lead { font-size: 17px; }
  .section-head { margin-bottom: 24px; gap: 10px; }
  .btn-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .btn-row .link-arrow { align-self: center; font-size: 16px; }
  .door { padding: 20px; gap: 12px; }
  .door h3 { font-size: 20px; }
  .scroller { display: grid !important; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * max(18px, env(safe-area-inset-left, 0px))); padding-inline: max(18px, env(safe-area-inset-left, 0px)); padding-bottom: 10px; scroll-padding-inline: max(18px, env(safe-area-inset-left, 0px)); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .scroller > * { scroll-snap-align: start; }
  .mobile-bar { transform: translateY(110%); transition: transform .25s ease; }
  .mobile-bar.is-visible { transform: none; }
}
@media (max-width: 719px) and (prefers-reduced-motion: reduce) { .mobile-bar { transition: none; } }
