/* ───────── Reconnexion — design system ─────────
   Direction : éditorial chaleureux. Nuit bleutée + papier crème + terre cuite + or doux.
   Lisibilité d'abord (public 55-70 ans) : corps 19px, contrastes AA+, cibles tactiles larges. */

:root {
  --ink: #12202c;
  --ink-2: #1b2f3e;
  --ink-3: #27404f;
  --paper: #fbf7f0;
  --cream: #f3ead9;
  --sand: #e8dcc6;
  --text: #2a2622;
  --muted: #6a6158;
  --terra: #b04a2a;
  --terra-dark: #8f3a1f;
  --gold: #e0a93f;
  --gold-soft: #f4dfae;
  --sage: #3f6a55;
  --sage-soft: #dfe9e1;
  --rose-soft: #f6dcd3;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18,32,44,.06), 0 12px 32px -12px rgba(18,32,44,.22);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 1.1875rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--terra-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--ink); font-variation-settings: 'SOFT' 60, 'WONK' 0; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 500; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
em.accent, h1 em, h2 em { font-style: italic; color: var(--terra); font-weight: 500; }
.on-dark h1 em, .on-dark h2 em { color: var(--gold); }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
section { padding: clamp(64px, 9vw, 120px) 0; }
.eyebrow { font: 700 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--terra); margin-bottom: 1.1rem; display: inline-flex; align-items: center; gap: .7rem; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.3rem; color: var(--muted); max-width: 40ch; }
.on-dark { color: #e9e2d4; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .lead { color: #c5cdd2; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 700 1.05rem/1 var(--sans); text-decoration: none; cursor: pointer; border: 0;
  padding: 1.15rem 1.9rem; border-radius: 999px; min-height: 56px;
  background: var(--terra); color: #fff; transition: transform .18s, background .18s, box-shadow .18s;
  box-shadow: 0 8px 22px -8px rgba(176,74,42,.65);
}
.btn:hover { background: var(--terra-dark); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 22px -8px rgba(224,169,63,.7); }
.btn.gold:hover { background: #ecb84f; }
.btn.ghost { background: transparent; color: inherit; box-shadow: none; border: 2px solid currentColor; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Navigation */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 10; padding: 22px 0; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; letter-spacing: -.02em; }
.logo svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 26px; white-space: nowrap; }
.nav-links a:not(.btn) { color: #d6dde1; text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav .btn { padding: .8rem 1.3rem; min-height: 46px; font-size: .95rem; }

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 700px at 78% 30%, #34566a 0%, transparent 60%), linear-gradient(170deg, var(--ink) 0%, var(--ink-2) 100%); padding: 150px 0 110px; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { margin-bottom: 2rem; }
.door { filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.door .beam { animation: glow 5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes glow { 0%,100% { opacity: .85 } 50% { opacity: 1 } }

/* Formulaire de capture */
.capture { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(6px); max-width: 520px; }
.capture label { display: block; font-size: .9rem; font-weight: 600; color: #d6dde1; margin-bottom: 6px; }
.capture .row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-bottom: 14px; }
.field { width: 100%; padding: 1rem 1.1rem; font: 500 1.05rem var(--sans); border-radius: 12px; border: 2px solid transparent; background: #fff; color: var(--ink); min-height: 54px; }
.field:focus { outline: none; border-color: var(--gold); }
.capture .btn { width: 100%; }
.capture .fine { font-size: .85rem; color: #aebac1; margin: 12px 0 0; line-height: 1.5; }
.capture .msg { margin-top: 12px; font-weight: 600; font-size: 1rem; }
.capture .msg.ok { color: #b6e3c6; } .capture .msg.err { color: #ffb7a5; }
.hp { position: absolute; left: -9999px; }

/* Bandeau chiffres */
.stats { background: var(--ink); color: #fff; padding: 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 34px 28px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 500; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.stat span { color: #c5cdd2; font-size: 1rem; line-height: 1.45; display: block; }

/* Empathie */
.empathy { background: var(--paper); }
.empathy .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.card { background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); border: 1px solid rgba(18,32,44,.06); }
.card .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--rose-soft); color: var(--terra); display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; }
.card p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.empathy .quote { margin-top: 56px; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ink); max-width: 30ch; margin-inline: auto; line-height: 1.3; }
.empathy .quote small { display: block; font: 600 .95rem var(--sans); font-style: normal; color: var(--muted); margin-top: 14px; }

/* Guide gratuit : avant / après */
.guide { background: var(--cream); }
.guide .head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.pairs { display: grid; gap: 18px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.pair > div { padding: 26px 28px; }
.pair .no { background: var(--rose-soft); }
.pair .yes { background: var(--sage-soft); }
.pair small { display: block; font: 800 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.pair .no small { color: #a3301c; } .pair .yes small { color: var(--sage); }
.pair p { margin: 0; font-family: var(--serif); font-size: 1.28rem; line-height: 1.35; color: var(--ink); }
.pair .no p { text-decoration: line-through; text-decoration-color: rgba(163,48,28,.45); text-decoration-thickness: 2px; }
.guide .cta { margin-top: 40px; text-align: center; }

/* Méthode : modules */
.method { background: var(--ink); }
.method .top { max-width: 640px; margin-bottom: 56px; }
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; counter-reset: mod; }
.module { position: relative; background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 34px 28px 30px; }
.module .num { font-family: var(--serif); font-size: 4.4rem; line-height: .8; color: var(--gold); opacity: .9; font-weight: 400; margin-bottom: 14px; display: block; }
.module h3 { font-size: 1.4rem; margin-bottom: 20px; }
.module ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.module li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: 1.02rem; line-height: 1.4; color: #d6dde1; }
.module li i { font: 700 .85rem var(--sans); font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: rgba(224,169,63,.16); color: var(--gold); display: grid; place-items: center; }

/* Lettre */
.letter-sec { background: var(--paper); }
.letter-sec .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.letter { position: relative; background: #fffdf7; padding: 44px 44px 60px; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 30px 60px -20px rgba(60,40,20,.35); transform: rotate(-1.4deg); font-family: var(--serif); font-size: 1.22rem; line-height: 1.75; color: #3a322b; background-image: repeating-linear-gradient(transparent 0 36px, rgba(176,74,42,.05) 36px 37px); }
.letter .tag { position: absolute; top: -14px; left: 32px; background: var(--terra); color: #fff; font: 700 .78rem var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border-radius: 4px; }
.letter::after { content: ''; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(transparent, #fffdf7 78%); border-radius: 0 0 6px 6px; }
.letter mark { background: linear-gradient(transparent 55%, var(--gold-soft) 55%); color: inherit; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.ticks li::before { content: ''; width: 26px; height: 26px; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/16px no-repeat; margin-top: 2px; }

/* Auteur — teaser sur l'accueil */
.author-teaser { background: var(--cream); text-align: center; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.author-teaser .eyebrow { justify-content: center; }
.author-teaser h2 { margin-bottom: .5em; }
.author-teaser .lead { margin: 0 auto 1.8rem; }
.author-teaser .btn.line { border-color: var(--ink); color: var(--ink); }
.author-teaser .btn.line:hover { background: var(--ink); color: #fff; }

/* Tarif */
.pricing { background: var(--cream); }
.price-card { max-width: 640px; margin: 44px auto 0; background: #fff; border-radius: 26px; box-shadow: var(--shadow); border: 2px solid var(--ink); overflow: hidden; }
.price-card .top { background: var(--ink); color: #fff; padding: 34px 40px; text-align: center; }
.price-card .top small { color: var(--gold); font: 700 .8rem var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.price-card .amount { font-family: var(--serif); font-size: 5rem; line-height: 1; margin: 12px 0 6px; font-weight: 500; }
.price-card .amount sup { font-size: 1.8rem; vertical-align: top; position: relative; top: .5rem; margin-left: 4px; }
.price-card .top span { color: #c5cdd2; font-size: 1rem; }
.price-card .body { padding: 34px 40px 40px; }
.price-card .btn { width: 100%; font-size: 1.15rem; }
.price-card .secure { text-align: center; color: var(--muted); font-size: .9rem; margin: 16px 0 0; }

/* FAQ */
.faq { background: var(--paper); }
.faq details { border-bottom: 1px solid rgba(18,32,44,.14); padding: 22px 0; }
.faq summary { font: 600 1.3rem var(--serif); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 2rem/1 var(--sans); color: var(--terra); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--muted); max-width: 62ch; }

/* CTA final + pied de page */
.final { background: linear-gradient(170deg, var(--ink) 0%, var(--ink-2) 100%); text-align: center; }
.final .lead { margin: 0 auto 2rem; }
.footer { background: #0b141c; color: #93a0a8; padding: 44px 0; font-size: .95rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.footer a { color: #b8c3ca; margin-right: 20px; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .disc { flex-basis: 100%; font-size: .85rem; line-height: 1.55; max-width: 78ch; }

/* ───────── Pages d'authentification ───────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, .85fr) 1.15fr; }
.auth-side { position: relative; overflow: hidden; background: radial-gradient(900px 600px at 30% 80%, #34566a 0%, transparent 60%), linear-gradient(170deg, var(--ink) 0%, var(--ink-2) 100%); color: #e9e2d4; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-side .quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.3; color: #fff; max-width: 18ch; margin: 0; }
.auth-side .quote em { color: var(--gold); }
.auth-side .mini-door { width: 170px; opacity: .95; margin-top: 24px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); }
.auth-side .auth-hero { width: max-content; max-width: 100%; align-self: center; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; background: var(--paper); }
.auth-card { width: min(460px, 100%); }
.auth-card .back { display: inline-block; margin-bottom: 26px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .98rem; }
.auth-card .back:hover { color: var(--ink); }
.auth-card h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: .3em; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border-radius: 999px; padding: 5px; margin-bottom: 30px; }
.tabs button { font: 700 1rem var(--sans); padding: .85rem 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; min-height: 48px; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(18,32,44,.14); }
.auth-card label { display: block; font-weight: 700; font-size: .98rem; margin: 0 0 6px; color: var(--ink); }
.auth-card .group { margin-bottom: 18px; }
.auth-card .field { border: 2px solid var(--sand); }
.auth-card .field:focus { border-color: var(--terra); }
.pw { position: relative; }
.pw .field { padding-right: 5.6rem; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--terra-dark); font: 700 .9rem var(--sans); cursor: pointer; padding: .6rem .7rem; border-radius: 8px; }
.pw button:hover { background: var(--rose-soft); }
.hint { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.auth-card .btn { width: 100%; margin-top: 8px; }
.auth-card .btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.linkline { text-align: center; margin: 20px 0 0; font-size: 1rem; }
.linkline button { border: 0; background: none; color: var(--terra-dark); font: 700 1rem var(--sans); text-decoration: underline; cursor: pointer; padding: .3rem; }
.notice { border-radius: 12px; padding: 14px 16px; margin: 0 0 20px; font-weight: 600; font-size: 1rem; line-height: 1.5; }
.notice[hidden] { display: none; }
.notice.err { background: var(--rose-soft); color: #7d2412; }
.notice.ok { background: var(--sage-soft); color: #234a37; }
.auth-foot { margin-top: 28px; font-size: .85rem; color: var(--muted); text-align: center; line-height: 1.5; }
.auth-foot a { color: inherit; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 22px 20px; flex-direction: row; align-items: center; }
  .auth-side .quote, .auth-side .mini-door { display: none; }
}

/* ───────── Espace membre ───────── */
body.app { background: var(--paper); --reader: 1.25rem; }
.app-top { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; }
.app-top .logo { font-size: 1.35rem; }
.app-top .who { display: flex; align-items: center; gap: 14px; font-size: .98rem; color: #c5cdd2; }
.app-top .who button, .app-top .toc-btn { font: 700 .92rem var(--sans); color: #fff; background: rgba(255,255,255,.1); border: 0; border-radius: 999px; padding: .6rem 1.1rem; cursor: pointer; min-height: 42px; }
.app-top .who button:hover, .app-top .toc-btn:hover { background: rgba(255,255,255,.2); }
.app-top .toc-btn { display: none; }
.app-shell { display: grid; grid-template-columns: 340px 1fr; min-height: calc(100vh - 66px); }
.toc { background: var(--cream); border-right: 1px solid rgba(18,32,44,.1); padding: 26px 22px 40px; position: sticky; top: 66px; align-self: start; height: calc(100vh - 66px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.prog { background: #fff; border-radius: 14px; padding: 18px 18px 16px; box-shadow: var(--shadow); margin-bottom: 26px; }
.prog b { font: 600 1.05rem var(--serif); color: var(--ink); }
.prog .bar { height: 10px; background: var(--sand); border-radius: 99px; margin-top: 12px; overflow: hidden; }
.prog .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--terra)); border-radius: 99px; transition: width .5s ease; }
.prog small { display: block; margin-top: 10px; color: var(--muted); font-size: .9rem; }
.mod { margin-bottom: 24px; }
.mod h3 { font: 800 .74rem var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--terra); margin: 0 0 4px; }
.mod .mt { font: 600 1.08rem/1.25 var(--serif); color: var(--ink); margin: 0 0 10px; }
.chap { display: grid; grid-template-columns: 30px 1fr; gap: 10px; width: 100%; text-align: left; align-items: start; padding: 10px 10px; margin-bottom: 2px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; font: 500 1rem/1.35 var(--sans); color: var(--text); }
.chap:hover { background: rgba(255,255,255,.7); }
.chap[aria-current="true"] { background: #fff; box-shadow: 0 2px 10px rgba(18,32,44,.1); font-weight: 700; }
.chap .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem var(--sans); background: var(--sand); color: var(--ink); }
.chap.done .n { background: var(--sage); color: #fff; }
.chap.locked { color: var(--muted); }
.chap.locked .n { background: transparent; border: 2px dashed var(--sand); }
.reader { padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 72px) 96px; max-width: 900px; margin-inline: auto; }
.reader .eyebrow { margin-bottom: .8rem; }
.reader h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.2rem; }
.tools { display: flex; align-items: center; gap: 8px; margin: 0 0 30px; color: var(--muted); font-size: .92rem; }
.tools button { font: 700 .95rem var(--sans); border: 2px solid var(--sand); background: #fff; color: var(--ink); border-radius: 10px; padding: .4rem .8rem; cursor: pointer; min-width: 46px; min-height: 42px; }
.tools button:hover { border-color: var(--terra); }
.prose { font-size: var(--reader); line-height: 1.8; max-width: 66ch; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.7rem; margin: 1.9em 0 .6em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; } .prose li { margin-bottom: .5em; }
.prose strong { color: var(--ink); }
.callout { background: #fff; border-left: 6px solid var(--terra); border-radius: 4px 16px 16px 4px; padding: 22px 26px 6px; margin: 1.6em 0; box-shadow: var(--shadow); font-size: .93em; line-height: 1.7; }
.callout .callout-cap { font: 800 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--terra-dark); margin-bottom: 12px; }
.callout.danger { border-left-color: #b23a2e; background: #fdf3f0; } .callout.danger .callout-cap { color: #a3301c; }
.callout.good { border-left-color: var(--sage); background: #f1f7f3; } .callout.good .callout-cap { color: var(--sage); }
.callout.letter { border-left: 0; border-radius: 6px; background: #fffdf7 repeating-linear-gradient(transparent 0 34px, rgba(176,74,42,.06) 34px 35px); font-family: var(--serif); font-size: 1em; line-height: 1.85; padding: 26px 32px 14px; transform: rotate(-.4deg); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 22px 44px -18px rgba(60,40,20,.35); }
.callout.letter .callout-cap { font-family: var(--sans); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 56px; padding-top: 30px; border-top: 1px solid rgba(18,32,44,.14); }
.pager .btn { width: auto; }
.btn.line { background: transparent; color: var(--ink); box-shadow: none; border: 2px solid var(--ink); } .btn.line:hover { background: var(--ink); color: #fff; }
.btn.done-btn { background: var(--sage); box-shadow: 0 8px 22px -8px rgba(63,106,85,.7); } .btn.done-btn:hover { background: #335848; }
.paywall { max-width: 720px; }
.paywall .price-card { margin: 30px 0 0; max-width: none; }
.skeleton { height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--sand), #f3ead9, var(--sand)); background-size: 200% 100%; animation: sk 1.2s infinite; margin-bottom: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
.congrats { background: linear-gradient(135deg, var(--ink), var(--ink-3)); color: #fff; border-radius: var(--radius); padding: 30px 32px; margin-top: 36px; }
.congrats h3 { color: #fff; font-size: 1.6rem; } .congrats p { color: #d6dde1; margin: 0; }
@media (max-width: 900px) {
  .app-top .toc-btn { display: inline-block; }
  .app-top .who span { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .toc { position: fixed; top: 66px; left: 0; right: 0; height: calc(100vh - 66px); z-index: 25; transform: translateX(-100%); transition: transform .25s; border-right: 0; -webkit-overflow-scrolling: touch; }
  .toc.open { transform: none; }
  body.reader-open { overflow: hidden; }
  .callout { padding: 18px 18px 4px; } .callout.letter { padding: 22px 20px 10px; transform: none; }
}
.app-top .who button, .app-top .toc-btn { white-space: nowrap; }
@media (max-width: 600px) {
  .app-top { padding: 10px 14px; }
  .app-top .logo-t { display: none; }
  .app-top .logo svg { width: 30px; height: 30px; }
}
@media print { .app-top, .toc, .pager, .tools { display: none !important; } .app-shell { display: block; } }

/* ───────── Guide gratuit (page de lecture) ───────── */
.prose mark { background: linear-gradient(transparent 55%, var(--gold-soft) 55%); color: inherit; }
.prose ul { margin: 0 0 1em; }
.doc-top { background: var(--ink); padding: 14px 0; }
.doc-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doc-print { font: 700 .92rem var(--sans); color: #fff; background: rgba(255,255,255,.12); border: 0; border-radius: 999px; padding: .65rem 1.2rem; cursor: pointer; min-height: 44px; }
.doc-print:hover { background: rgba(255,255,255,.22); }
.doc-hero { background: radial-gradient(900px 500px at 80% 20%, #34566a 0%, transparent 60%), linear-gradient(170deg, var(--ink), var(--ink-2)); padding: clamp(48px, 8vw, 96px) 0; }
.doc-hero h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); margin-bottom: .35em; }
.doc-hero .lead { max-width: 34ch; margin: 0; }
.doc { width: min(760px, 100% - 40px); margin: 0 auto; padding: clamp(36px, 6vw, 72px) 0 40px; }
.doc .prose { max-width: none; }
.doc-note { text-align: center; color: var(--muted); font-style: italic; margin: 2em 0 0; }
.intro-line { font-size: 1.2em; line-height: 1.55; color: var(--ink); }
.g-phrase { margin-top: 3.4rem; padding-top: 2.4rem; border-top: 1px solid rgba(18,32,44,.14); }
.g-eyebrow { font: 800 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #a3301c; margin-bottom: .7rem; }
.g-end .g-eyebrow { color: var(--sage); }
.g-phrase h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 .6em; }
.g-phrase h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 800; letter-spacing: .02em; color: var(--terra-dark); margin: 1.6em 0 .5em; }
.doc-cta { margin: 56px 0 0; background: linear-gradient(135deg, var(--ink), var(--ink-3)); border-radius: 22px; padding: clamp(28px, 5vw, 48px); text-align: center; }
.doc-cta h2 { margin-bottom: .3em; } .doc-cta p { color: #c5cdd2; margin-bottom: 1.4rem; }
.doc-cta small { display: block; margin-top: 14px; color: #93a0a8; }
@media print {
  .doc-top, .doc-cta, .footer .wrap div:not(.disc) { display: none !important; }
  body.app { background: #fff; }
  .doc-hero { background: none !important; color: #000; padding: 0 0 16px; }
  .doc-hero h1, .doc-hero .lead, .doc-hero .eyebrow { color: #000 !important; }
  .doc-hero h1 em { color: #8f3a1f !important; }
  .callout, .g-phrase { break-inside: avoid; box-shadow: none; }
  .g-phrase { border-top: 1px solid #ccc; margin-top: 1.6rem; padding-top: 1.2rem; }
  .prose { font-size: 12pt; line-height: 1.6; }
  .footer { background: none; color: #555; padding: 12px 0; }
}

/* ───────── Pages légales ───────── */
.legal .prose { font-size: 1.1rem; line-height: 1.75; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: .3em; }
.legal h2 { font-size: 1.45rem; margin: 2em 0 .6em; }
.legal .legal-meta { color: var(--muted); font-size: 1rem; margin-bottom: 2em; }
.legal .info { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: .55rem 1.2rem; margin: 0 0 1em; }
.legal .info dt { color: var(--muted); font-weight: 600; }
.legal .info dd { margin: 0; }
.legal .todo { background: #ffe8a3; color: #5a3d00; padding: .15em .4em; border-radius: 4px; }
.legal ul { padding-left: 1.3em; }
@media (max-width: 600px) { .legal .info { grid-template-columns: 1fr; gap: .1rem; } .legal .info dd { margin-bottom: .7rem; } }
@media print { .legal .doc { width: 100%; } }

/* Consentements avant paiement */
.consent { display: grid; gap: 14px; margin: 0 0 24px; text-align: left; }
.consent label { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: .98rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--terra); cursor: pointer; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Notes personnelles */
.notes { margin-top: 3.2rem; padding: 26px 28px 24px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); max-width: 66ch; }
.notes h2 { font-size: 1.5rem; margin: 0 0 .3em; }
.notes-hint { color: var(--muted); font-size: 1rem; margin: 0 0 14px; }
.notes-ta { width: 100%; min-height: 180px; padding: 1rem 1.1rem; font: 500 1.05rem/1.65 var(--sans); color: var(--ink); background: var(--paper); border: 2px solid var(--sand); border-radius: 12px; resize: vertical; }
.notes-ta:focus { outline: none; border-color: var(--terra); }
.notes-status { min-height: 1.6em; margin: 8px 0 10px; font-size: .95rem; color: var(--sage); font-weight: 600; }
.notes .btn { width: auto; min-height: 48px; padding: .9rem 1.4rem; font-size: .98rem; }
@media print { .notes { box-shadow: none; border: 1px solid #ccc; } .notes .btn { display: none; } }

/* Apparition douce */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .door .beam { animation: none; } html { scroll-behavior: auto; } .btn { transition: none; }
}

/* Tablette / mobile */
@media (max-width: 920px) {
  .hero { padding: 120px 0 80px; }
  .hero .wrap, .letter-sec .wrap, .guide .head { grid-template-columns: 1fr; gap: 40px; }
  .door { max-width: 300px; margin-inline: auto; order: -1; }
  .empathy .grid, .modules { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 24px 4px; }
  .stat:first-child { border-top: 0; }
  .nav-links a:not(.btn):not(.nav-login) { display: none; }
  .nav-links a.nav-login { display: inline-flex; align-items: center; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .55rem 1.1rem; font-size: .92rem; font-weight: 700; min-height: 40px; }
  .letter { transform: none; padding: 34px 26px 56px; }
}
@media (max-width: 560px) {
  body { font-size: 1.125rem; }
  .capture .row { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .price-card .top, .price-card .body { padding-inline: 24px; }
  .price-card .amount { font-size: 4.2rem; }
}
