/* Divorcial — design system
   Calme, chaleureux, digne de confiance. Ivoire + vert profond + terracotta (CTA uniquement). */
:root {
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --sand: #F3EDE3;
  --line: #E3DACB;
  --ink: #12302D;        /* titres */
  --text: #24302F;       /* corps */
  --muted: #56625F;      /* secondaire — 5,9:1 sur --bg */
  --primary: #1D5A52;
  --primary-soft: #E3EEEA;
  --accent: #B3471F;     /* CTA — blanc dessus 5,4:1 */
  --accent-hover: #983A17;
  --accent-light: #E89A76;
  --error: #B42318;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --r-sm: 8px; --r: 14px; --r-lg: 20px;
  --shadow: 0 1px 2px rgba(18,48,45,.06), 0 8px 24px rgba(18,48,45,.07);
  --shadow-lg: 0 2px 4px rgba(18,48,45,.06), 0 20px 48px rgba(18,48,45,.12);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); text-wrap: balance; }
h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
p { margin: 0; }
a { color: var(--primary); }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease); touch-action: manipulation; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251,248,243,.9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 600 1.375rem/1 var(--serif); }
.nav { display: none; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 8px 0; }
.nav a:hover { color: var(--primary); }

/* Hero */
.hero { padding: 36px 0 56px; background:
  radial-gradient(900px 420px at 85% 0%, rgba(29,90,82,.08), transparent 70%),
  radial-gradient(600px 300px at 0% 100%, rgba(179,71,31,.05), transparent 70%); }
.hero-grid { display: grid; gap: 32px; align-items: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.hero h1 { margin-top: 18px; font-size: clamp(2.1rem, 7.4vw, 3.6rem); }
.hero h1 em { font-style: italic; color: var(--primary); }
.lead { margin-top: 18px; font-size: 1.125rem; color: var(--muted); max-width: 34em; }
.hero-proof { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.hero-proof li { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; }
.hero-proof svg, .checklist svg { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Simulateur */
.sim-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 22px; }
.sim-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sim-head h2 { font-size: 1.5rem; }
.sim-time { font-size: .8125rem; color: var(--muted); }
.q { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.q legend { font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; font-size: .9375rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-weight: 500; cursor: pointer; transition: all .18s var(--ease); background: var(--bg); }
.seg label:hover { border-color: var(--primary); }
.seg input:checked + label { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; box-shadow: inset 0 0 0 1px var(--primary); }
.seg input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 2px; }
.immo-detail { margin-top: 12px; }
.immo-detail label, .field label { display: block; font-weight: 500; font-size: .9375rem; margin-bottom: 6px; color: var(--ink); }
.input-euro { position: relative; }
.input-euro input { padding-right: 36px; }
.input-euro span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input:not([type]) { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: 400 1rem var(--sans); color: var(--text); background: var(--surface); transition: border-color .18s; }
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,90,82,.15); }
input[aria-invalid=true] { border-color: var(--error); }
.help { font-size: .8125rem; color: var(--muted); margin-top: 6px; }

.sim-result { margin: 18px 0 16px; padding: 18px; border-radius: var(--r); background: var(--sand); }
.formula { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
.total-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 4px; }
.per { white-space: nowrap; }
.total { font: 500 clamp(2.4rem, 9vw, 3rem)/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; transition: opacity .2s; }
.total.flash { animation: flash .35s var(--ease); }
@keyframes flash { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.per { color: var(--muted); font-weight: 500; }
.couple { margin-top: 6px; font-size: .9375rem; color: var(--text); }
.breakdown { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed #D4C8B5; display: grid; gap: 6px; font-size: .875rem; }
.breakdown div { display: flex; justify-content: space-between; gap: 12px; }
.breakdown dt { color: var(--muted); }
.breakdown dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); white-space: nowrap; }
.breakdown .note dd { font-weight: 500; color: var(--muted); white-space: normal; }
.reassure { text-align: center; font-size: .8125rem; color: var(--muted); margin-top: 10px; }

/* Bandeau confiance */
.trust { background: var(--ink); color: #DCE6E3; padding: 32px 0 22px; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.trust-grid strong { display: block; font: 500 1.875rem/1.1 var(--serif); color: #fff; }
.trust-grid span { font-size: .875rem; line-height: 1.45; }
.trust-note { font-size: .75rem; color: #A9BDB8; margin-top: 18px; }

/* Sections */
.section { padding: 64px 0; }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: #DCE6E3; }
.section-ink h2 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.kicker { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 10px; }
.kicker-light { color: var(--accent-light); }
.sub { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; }
.section-ink .sub { color: #B9CBC6; }

/* Comparatif */
.compare { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.compare-row { display: grid; grid-template-columns: 1fr; padding: 16px 18px; gap: 4px; border-top: 1px solid var(--line); }
.compare-headrow { display: none; }
.compare-row [role=rowheader] { font-weight: 600; color: var(--ink); }
.compare-row [role=cell]:not(.us) { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(86,98,95,.45); font-size: .9375rem; }
.compare-row .us { color: var(--primary); font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.compare-row [role=cell].us::before { content: ""; width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D5A52' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* Tarifs */
.plans { display: grid; gap: 18px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px 22px; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.badge { position: absolute; top: -13px; left: 22px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font: 500 1.625rem/1.1 var(--serif); }
.plan-for { color: var(--muted); font-size: .9375rem; margin-top: 6px; }
.plan-price { margin-top: 18px; color: var(--muted); font-weight: 500; }
.plan-price span { font: 500 2.5rem/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-split { font-size: .8125rem; color: var(--muted); margin-top: 6px; }
.plan ul { list-style: none; padding: 18px 0 0; margin: 18px 0 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: .9375rem; }
.plan li::before { content: ""; width: 16px; height: 16px; margin-top: 4px; flex-shrink: 0; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D5A52' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.plan li:first-child:not(:only-child)::before { opacity: 1; }
.plans-note { margin-top: 22px; font-size: .875rem; color: var(--muted); max-width: 800px; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0 0 0 46px; position: relative; display: grid; gap: 14px; }
.steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; border-left: 2px dashed var(--line); }
.steps li { position: relative; }
.num { position: absolute; left: -46px; top: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--primary); color: var(--primary); font: 600 .8125rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.step-card p { margin-top: 4px; color: var(--muted); font-size: .9375rem; }

/* Avocats */
.lawyers { display: grid; gap: 14px; }
.lawyer { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font: 600 1.125rem var(--serif); flex-shrink: 0; }
.lawyer p { font-size: .9375rem; color: var(--text); }
.lawyer .lawyer-exp { color: var(--muted); font-size: .875rem; }

/* Éligibilité */
.split { display: grid; gap: 28px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.checklist li.no { background: transparent; border-style: dashed; color: var(--muted); }
.checklist li.no svg { stroke: var(--muted); }

/* Transparence */
.transp { display: grid; gap: 14px; font-size: 1.0625rem; }
.transp strong { color: #fff; }
.legal-id { font-size: .875rem; color: #A9BDB8; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }

/* Avis */
.reviews-placeholder { margin-top: 28px; border: 2px dashed var(--line); border-radius: var(--r-lg); padding: 40px 20px; color: var(--muted); font-size: .9375rem; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.faq details[open] { border-color: var(--primary); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 18px; font-weight: 600; color: var(--ink); position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 18px 18px; color: var(--text); }

/* Final */
.final { background: linear-gradient(180deg, var(--bg), var(--primary-soft)); }
.final-grid { display: grid; gap: 28px; align-items: start; }
.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 22px; display: grid; gap: 14px; }
.form-recap { font-size: .875rem; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 10px 12px; border-radius: var(--r-sm); }
.field .opt { color: var(--muted); font-weight: 400; }
.field label span[aria-hidden] { color: var(--accent); }
.err { color: var(--error); font-size: .8125rem; margin-top: 4px; min-height: 0; }
.err:empty { display: none; }
.consent { display: flex; gap: 10px; font-size: .8125rem; color: var(--muted); align-items: flex-start; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--primary); flex-shrink: 0; }
.form-ok { color: var(--primary); font-weight: 600; text-align: center; }

/* Footer */
.footer { background: var(--ink); color: #B9CBC6; padding: 40px 0 100px; font-size: .875rem; }
.footer-grid { display: grid; gap: 22px; }
.logo-light { color: #fff; margin-bottom: 10px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer nav a { color: #DCE6E3; text-decoration: none; padding: 6px 0; }
.footer nav a:hover { text-decoration: underline; }
.disclaimer { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8125rem; color: #A9BDB8; }

/* Barre mobile */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s var(--ease); }
.mobile-bar.show { transform: none; }
.mb-label { display: block; font-size: .75rem; color: var(--muted); }
.mobile-bar strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ≥ 768 */
@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .section { padding: 88px 0; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .compare-headrow { display: grid; background: var(--sand); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-top: 0; }
  .compare-headrow .us { color: var(--primary); }
  .compare-row { grid-template-columns: 1fr 1.2fr 1.2fr; gap: 20px; padding: 18px 24px; align-items: center; }
  .compare-headrow span.us::before { display: none; }
  .lawyers { grid-template-columns: repeat(3, 1fr); }
  .lawyer { flex-direction: column; text-align: center; padding: 26px 18px; }
  .sim-card, .lead-form { padding: 30px; }
}
/* ≥ 1024 */
@media (min-width: 1024px) {
  .nav { display: flex; }
  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .hero-copy { padding-top: 24px; }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .split { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
  .final-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .footer { padding-bottom: 40px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer nav { justify-content: flex-end; }
  .mobile-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Guides (articles) ===== */
.crumbs { font-size: .8125rem; color: var(--muted); padding: 20px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.article-head { padding: 24px 0 8px; }
.article-head h1 { font-size: clamp(2rem, 6vw, 3rem); text-wrap: balance; }
.article-meta { margin-top: 14px; font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.answer { margin: 26px 0 0; padding: 20px 22px; background: var(--primary-soft); border-left: 4px solid var(--primary); border-radius: 0 var(--r) var(--r) 0; font-size: 1.0625rem; color: var(--ink); }
.answer strong { color: var(--primary); }
.toc { margin: 28px 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.toc p { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: .9375rem; }
.prose { padding-bottom: 40px; }
.prose h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); margin: 48px 0 14px; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.125rem; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.7; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 14px 0; display: grid; gap: 8px; }
.prose a { text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--sand); color: var(--ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.callout { margin: 24px 0; padding: 18px 20px; border-radius: var(--r); background: var(--sand); border: 1px solid var(--line); }
.callout-title { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.callout-warn { background: #FBF0EA; border-color: #EFCDBD; }
.example { margin: 24px 0; padding: 18px 20px; border-radius: var(--r); border: 1px dashed var(--primary); background: var(--surface); }
.legal-disclaimer { margin: 36px 0 0; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); font-size: .875rem; color: var(--muted); background: var(--surface); }
.reviewer { display: flex; gap: 14px; align-items: center; margin: 32px 0 0; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.reviewer p { font-size: .9375rem; }
.article-cta { margin: 40px 0 0; padding: 26px; border-radius: var(--r-lg); background: var(--ink); color: #DCE6E3; display: grid; gap: 14px; }
.article-cta h2 { color: #fff; margin: 0; font-size: 1.5rem; }
.article-cta .btn { justify-self: start; }
.sources { margin-top: 40px; font-size: .875rem; color: var(--muted); }
.sources h2 { font-size: 1.25rem; margin: 0 0 10px; }
.sources ul { padding-left: 18px; display: grid; gap: 4px; }
.related { margin-top: 40px; }
.related h2 { font-size: 1.375rem; margin: 0 0 14px; }
.related-grid, .guides-grid { display: grid; gap: 12px; }
.guide-card { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s var(--ease); }
.guide-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.guide-card strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.25; }
.guide-card span { display: block; margin-top: 6px; font-size: .9375rem; color: var(--muted); }
@media (min-width: 768px) { .related-grid { grid-template-columns: 1fr 1fr; } .guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .guides-grid { grid-template-columns: repeat(3, 1fr); } }

.table-wrap caption { caption-side: top; text-align: left; padding: 12px 16px; font-size: .875rem; color: var(--muted); font-weight: 500; }
.nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--accent); }
.guides-theme { font-size: 1.5rem; margin: 48px 0 16px; }
.guides-theme:first-of-type { margin-top: 24px; }
.home-themes { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .home-themes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .home-themes { grid-template-columns: repeat(4, 1fr); } }
.home-theme { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.home-theme h3 { font-size: 1.125rem; margin-bottom: 10px; }
.home-theme h3 a { color: var(--ink); text-decoration: none; }
.home-theme h3 a:hover { color: var(--primary); }
.home-theme ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.home-theme li a { color: var(--text); font-size: .9375rem; line-height: 1.4; text-decoration: none; display: block; padding: 2px 0; }
.home-theme li a:hover { color: var(--primary); text-decoration: underline; }

/* Haut de page : mini-parcours + formulaire condensé */
.hero-steps { list-style: none; margin: 28px 0 0; padding: 18px 20px; display: grid; gap: 14px; background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: var(--r); max-width: 30em; }
.hero-steps li { display: flex; gap: 12px; align-items: flex-start; }
.hs-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 600; font-size: .875rem; }
.hero-steps strong { display: block; color: var(--ink); font-size: .9375rem; }
.hero-steps div span { display: block; color: var(--muted); font-size: .875rem; }
#formulaire { gap: 12px; padding: 20px; }
#formulaire .sim-head { margin-bottom: 2px; }
#formulaire .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#formulaire .q { margin: 0; }
#formulaire .q legend { font-size: .875rem; margin-bottom: 6px; }
#formulaire .seg { gap: 6px; }
#formulaire .seg label { min-height: 44px; }
#formulaire .field label { font-size: .875rem; margin-bottom: 4px; }
#formulaire .field input { min-height: 44px; }

/* Visuel du haut de page, avec le parcours en 3 étapes par-dessus */
.hero-visual { position: relative; margin: 28px 0 0; }
.hero-visual img { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 781; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.hero-visual .hero-steps { margin: 12px 0 0; max-width: none; background: var(--surface); }
@media (min-width: 640px) {
  .hero-visual { padding-bottom: 96px; }
  .hero-visual .hero-steps { position: absolute; left: 20px; right: 20px; bottom: 0; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px 16px; box-shadow: var(--shadow-lg); }
  .hero-visual .hero-steps li { flex-direction: column; gap: 8px; }
}
.hero-visual { margin: 0; }
@media (min-width: 1024px) {
  .hero-copy { grid-column: 1; grid-row: 1; }
  #formulaire { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 96px; }
  .hero-visual { grid-column: 1; grid-row: 2; margin-top: -24px; }
}
@media (min-width: 640px) {
  .hero-visual { padding-bottom: 0; }
  .hero-visual .hero-steps { position: relative; left: auto; right: auto; bottom: auto; margin: -40px 20px 0; }
}

/* Message de remerciement, sans changer de page */
#form-ok { text-align: center; padding: 24px 8px; display: grid; gap: 10px; justify-items: center; outline: none; }
#form-ok[hidden] { display: none; }
#form-ok .ok-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; }
#form-ok .ok-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--primary); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
#form-ok .ok-title { font: 500 1.375rem/1.3 var(--serif); color: var(--ink); }
#form-ok p { max-width: 26em; }

/* Haut de la page Guides : texte + visuel */
.hub-head { display: grid; gap: 24px; align-items: center; }
.hub-head .btn { margin-top: 20px; }
.hub-head img { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 781; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
@media (min-width: 1024px) { .hub-head { grid-template-columns: 1fr 1fr; gap: 56px; } }
.logo-mark { display: block; width: auto; height: 30px; }
.logo-light .logo-mark { filter: drop-shadow(0 0 0 transparent); }

/* Guide gratuit : maquette du PDF, sommaire, aperçus, bloc d'accueil */
.form-ok { text-align: center; padding: 24px 8px; display: grid; gap: 10px; justify-items: center; outline: none; }
.form-ok[hidden] { display: none; }
.form-ok .ok-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; }
.form-ok .ok-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--primary); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.form-ok .ok-title { font: 500 1.375rem/1.3 var(--serif); color: var(--ink); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.guide-mock { position: relative; width: min(340px, 78%); margin: 36px auto 8px; aspect-ratio: 909 / 1287; }
.guide-mock img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; box-shadow: 0 18px 40px rgba(18,48,45,.22); }
.guide-mock .gm-1 { transform: rotate(-9deg) translate(-16%, 4%); opacity: .9; }
.guide-mock .gm-2 { transform: rotate(6deg) translate(14%, 2%); opacity: .95; }
.guide-mock .gm-front { position: relative; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .chapters { grid-template-columns: 1fr 1fr; } }
.chapters li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.chapters li > span { font: 500 1.5rem/1 var(--serif); color: var(--accent); min-width: 2ch; }
.chapters strong { color: var(--ink); display: block; }
.chapters p { margin: 2px 0 0; color: var(--muted); font-size: .9375rem; }
.previews { display: grid; gap: 20px; grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; }
@media (min-width: 640px) { .previews { grid-template-columns: repeat(3, 1fr); } }
.previews figure { margin: 0; text-align: center; }
.previews img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 14px 32px rgba(18,48,45,.16); border: 1px solid var(--line); }
.previews figcaption { margin-top: 10px; color: var(--muted); font-size: .9375rem; }
.home-guide { background: var(--ink); color: #DDE7E4; }
.home-guide h2 { color: #fff; }
.home-guide .kicker { color: var(--accent-light); }
.home-guide .sub { color: #C9D8D4; }
.home-guide-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .home-guide-grid { grid-template-columns: .8fr 1.1fr 1fr; gap: 48px; } }
.home-guide .guide-mock { margin: 0 auto; width: min(260px, 70%); }
.home-guide .hero-proof li { color: #fff; }
.home-guide .hero-proof svg { stroke: var(--accent-light); }
.home-guide .lead-form { color: var(--text); }
@media (min-width: 1024px) {
  .lp-form { grid-column: 2; grid-row: 1 / span 2; }
  .lp-mock { grid-column: 1; grid-row: 2; margin: 8px 0 0 40px; }
}
.home-guide .lead-form h2 { color: var(--ink); }
.site-header .logo-mark { height: 40px; }
.footer .logo-mark { height: 38px; }
/* Menu : jamais sur deux lignes */
.nav a, .header-inner .btn-sm { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1199px) { .nav { gap: 18px; } .nav a { font-size: .875rem; } }
