/* HERIVERA – feuille de style
   Direction : la sobriété d'une étude, la chaleur de l'or du logo. Bleu nuit pour le cadre, or pour les repères,
   papier froid pour la lecture. Cormorant Garamond pour les titres, Figtree pour le texte. */

:root {
  --navy: #0B1430;
  --navy-2: #121E44;
  --navy-3: #1B2A5A;
  --gold: #C6A15B;
  --gold-2: #E2C68C;
  --gold-ink: #8A6A2C;
  --paper: #F5F6F9;
  --white: #FFFFFF;
  --ink: #141B2D;
  --muted: #5A6278;
  --line: #DFE3EC;
  --ok: #2F7A5B;
  --warn: #9A6A12;
  --crit: #A3392F;
  --f-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 14px;
  --shadow: 0 1px 0 rgba(11,20,48,.04), 0 18px 40px -24px rgba(11,20,48,.35);
  --wrap: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; color: var(--navy); text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 760px; }
.eyebrow { font: 600 .78rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .7rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--gold-2); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.6rem; border-radius: 999px; font: 600 .98rem/1 var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); color: var(--white); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost-light { border-color: rgba(226,198,140,.6); color: var(--gold-2); background: transparent; }
.btn-ghost-light:hover { background: rgba(226,198,140,.1); color: var(--white); }
.btn-sm { padding: .7rem 1.15rem; font-size: .9rem; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,20,48,.97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid rgba(198,161,91,.25); padding-top: env(safe-area-inset-top); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 600 1.55rem/1 var(--f-display); letter-spacing: .14em; color: var(--gold-2); }
.brand-sub { font: 500 .66rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: .35rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .95rem; padding: .4rem 0; border-bottom: 1px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--gold-2); border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold-2); margin: 5px 0; transition: transform .2s; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 1.2rem max(20px, env(safe-area-inset-left)) 1.6rem; gap: 1rem; border-bottom: 1px solid rgba(198,161,91,.3); transform: translateY(-120%); transition: transform .25s ease; max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav.open { transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Héros */
.hero { position: relative; background: radial-gradient(1200px 520px at 85% -10%, rgba(198,161,91,.16), transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero-inner { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 3rem; align-items: center; padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero .lead { color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero-facts div { min-width: 140px; }
.hero-facts b { display: block; font: 600 1.9rem/1 var(--f-display); color: var(--gold-2); }
.hero-facts span { font-size: .85rem; color: rgba(255,255,255,.65); }
.tree { width: 100%; max-width: 440px; justify-self: end; }
.tree line, .tree path { stroke: rgba(226,198,140,.55); stroke-width: 1.2; fill: none; }
.tree circle { fill: var(--navy-2); stroke: var(--gold); stroke-width: 1.4; }
.tree circle.on { fill: var(--gold); }
.tree text { fill: rgba(255,255,255,.75); font: 500 11px var(--f-body); letter-spacing: .06em; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: minmax(0,1fr); } .tree { justify-self: center; max-width: 360px; } }

/* Sections */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: rgba(255,255,255,.85); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 2.4rem; align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.card .num { font: 600 1rem/1 var(--f-display); color: var(--gold-ink); letter-spacing: .1em; }
.card p { color: var(--muted); margin: 0; }
.card ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.card .card-foot { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--navy); }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(198,161,91,.14); color: var(--gold-ink); margin-bottom: .4rem; }
.icon svg { width: 24px; height: 24px; }

/* Problème / constat */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 3.5rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0,1fr); gap: 2rem; } }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .8rem; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: .8rem; }
.checklist li::before { content: ""; width: 18px; height: 18px; margin-top: .3rem; border-radius: 50%; border: 1.5px solid var(--gold); background: radial-gradient(circle, var(--gold) 0 3px, transparent 4px); }
.quote { border-left: 2px solid var(--gold); padding: .4rem 0 .4rem 1.4rem; font: italic 500 1.45rem/1.4 var(--f-display); color: var(--navy); }

/* Étapes */
.steps { counter-reset: s; display: grid; gap: 0; position: relative; }
.step { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 1.4rem; padding-bottom: 2.4rem; position: relative; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; font: 600 1.15rem var(--f-display); color: var(--gold-ink); background: var(--white); position: relative; z-index: 1; }
.step::after { content: ""; position: absolute; left: 26px; top: 52px; bottom: 0; width: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--muted); margin: 0; }
.step .who { display: inline-block; margin-top: .5rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }

/* Diagnostic express */
.diag { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.6rem); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 2.4rem; }
@media (max-width: 900px) { .diag { grid-template-columns: minmax(0,1fr); } }
.q { margin-bottom: 1.3rem; border: 0; padding: 0; }
.q legend, .q > label { font-weight: 600; color: var(--navy); margin-bottom: .55rem; display: block; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .93rem; background: var(--paper); transition: all .15s; }
.chips input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.range-row { display: flex; align-items: center; gap: 1rem; }
.range-row input[type=range] { flex: 1; accent-color: var(--gold-ink); }
.range-row output { font: 600 1.25rem var(--f-display); color: var(--navy); min-width: 56px; text-align: right; }
.result { background: var(--navy); color: rgba(255,255,255,.85); border-radius: 16px; padding: 2rem; display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.result h3 { color: var(--gold-2); margin: 0; font-size: 1.7rem; }
.result .tag { align-self: flex-start; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; background: rgba(198,161,91,.18); color: var(--gold-2); }
.result ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; }
.result .small { font-size: .82rem; color: rgba(255,255,255,.55); }

/* Tarifs */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.4rem; }
.price { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; display: flex; flex-direction: column; gap: .6rem; box-shadow: var(--shadow); }
.price.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.price .amount { font: 600 2.6rem/1 var(--f-display); color: var(--navy); }
.price .amount small { font: 500 .9rem var(--f-body); color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); font-weight: 600; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.note { font-size: .88rem; color: var(--muted); }
.callout { border: 1px solid rgba(198,161,91,.5); background: rgba(198,161,91,.08); border-radius: var(--r); padding: 1.3rem 1.5rem; }
.callout b { color: var(--navy); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.faq summary { cursor: pointer; list-style: none; font: 600 1.25rem/1.3 var(--f-display); color: var(--navy); display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--f-body); color: var(--gold-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .9rem 0 0; color: var(--muted); max-width: 70ch; }

/* Page intérieure */
.page-hero { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: rgba(255,255,255,.8); padding-block: clamp(3.4rem, 7vw, 5.2rem); position: relative; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.page-hero .lead { color: rgba(255,255,255,.75); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.4rem; font-size: 2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* Formulaire */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,161,91,.2); }
.field .err { color: var(--crit); font-size: .85rem; }
.consent { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: .7rem; font-size: .9rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--gold-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: 1.4rem; }
.alert-ok { background: #E7F3ED; color: #1E5A41; border: 1px solid #B9DCCB; }
.alert-err { background: #F8E7E5; color: #7C2A22; border: 1px solid #E8C1BC; }
.contact-side { background: var(--navy); color: rgba(255,255,255,.82); border-radius: 18px; padding: 2.2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.contact-side h3 { color: var(--gold-2); }
.contact-side a { color: var(--gold-2); }

/* Bandeau d'appel et pied de page */
.cta-band { background: linear-gradient(120deg, var(--navy-2), var(--navy)); color: rgba(255,255,255,.8); border-top: 1px solid rgba(198,161,91,.3); }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 3.6rem; }
.cta-inner h2 { color: var(--white); margin-bottom: .4rem; }
.cta-inner > div:first-child { max-width: 640px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.site-footer { background: #070D20; color: rgba(255,255,255,.65); font-size: .93rem; padding-bottom: env(safe-area-inset-bottom); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.4rem; padding-block: 3.6rem 2.4rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0,1fr); } }
.footer-brand img { width: 220px; border-radius: 10px; }
.footer-brand .slogan { margin-top: 1rem; font: italic 500 1.15rem/1.4 var(--f-display); color: var(--gold-2); }
.site-footer h3 { font: 600 .78rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer address { font-style: normal; line-height: 1.8; }
.zones { margin-top: .8rem; font-size: .82rem; letter-spacing: .06em; color: rgba(255,255,255,.5); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.6rem; font-size: .82rem; color: rgba(255,255,255,.45); display: grid; gap: .5rem; }
.footer-legal a { color: rgba(255,255,255,.6); }
.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: #1F9D55; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); z-index: 40; }

/* Apparition douce (le contenu reste visible sans script) */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal.pending { opacity: 0; transform: translateY(14px); }
.result p { margin: 0; } .result .score { font-size: 1.05rem; color: var(--white); } .result .score b { font: 600 2rem/1 var(--f-display); color: var(--gold-2); margin-right: .3rem; }
.result-form .field label { color: rgba(255,255,255,.8); }
.result-form .field input { background: rgba(255,255,255,.96); border-color: transparent; }
.result-form .consent { color: rgba(255,255,255,.75); font-size: .88rem; }
.result-form .consent a { color: var(--gold-2); }
.result-form .btn { align-self: stretch; }
.result .alert { margin: 0; }
.chips span small { color: inherit; opacity: .7; font-size: .8em; }

/* ---------- Responsive : petits écrans ---------- */
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, p, li, a, td, th, label, legend, summary { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 640px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .section { padding-block: 3.2rem; }
  .card, .price, .contact-side, .result { padding: 1.4rem; }
  .diag { padding: 1.1rem; gap: 1.6rem; }
  .hero-facts { gap: 1.2rem; }
  .hero-facts div { min-width: 0; flex: 1 1 40%; }
  .hero-actions .btn, .cta-actions .btn, .form .btn, .result .btn, .note-actions .btn, .price .btn { width: 100%; justify-content: center; text-align: center; white-space: normal; }
  .chips span { padding: .5rem .85rem; font-size: .9rem; }
  .price .amount { font-size: 2.2rem; }
  .quote { font-size: 1.2rem; }
  .step { grid-template-columns: 46px minmax(0,1fr); gap: 1rem; }
  .step::before { width: 40px; height: 40px; font-size: 1rem; }
  .step::after { left: 20px; top: 40px; }
  .cta-inner { flex-direction: column; align-items: stretch; }
  .faq summary { font-size: 1.1rem; }
  th, td { padding: .7rem .75rem; }
}
@media (max-width: 380px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.15rem; }
}
