/* ───────── 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(3, 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; }

/* 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; }

/* 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) { display: none; }
  .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; }
}
