/* ============================================================
   Guide & Conseils — LP monte-escalier
   Public senior : corps de texte large, contrastes forts, palette
   confiance (bleu profond + CTA orange), zéro effet superflu.
   Typo : General Sans (Fontshare) + fallback système.
   ============================================================ */

:root {
  --blue-900: #12395e;
  --blue-700: #1a5085;
  --blue-600: #1f5f9e;
  --blue-050: #eef4fa;
  --orange-600: #e0620d;
  --orange-700: #c85608;
  --green-700: #1e7a46;
  --ink: #212830;
  --ink-soft: #4c5763;
  --line: #d9e1e9;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(18, 57, 94, .10);
  --font: "General Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue-700); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 19px; font-weight: 600;
  padding: 16px 30px; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; transition: background .15s ease, transform .1s ease;
}
.btn--primary { background: var(--orange-600); color: #fff; box-shadow: 0 6px 18px rgba(224, 98, 13, .35); }
.btn--primary:hover { background: var(--orange-700); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--blue-700); border: 2px solid var(--blue-700); }
.btn--ghost:hover { background: var(--blue-050); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header { border-bottom: 1px solid var(--line); background: #fff; }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { font-size: 22px; font-weight: 700; color: var(--blue-900); text-decoration: none; letter-spacing: -.01em; }
.logo span { color: var(--orange-600); }
.header__note { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 640px) { .header__note { display: none; } }

/* ---------- Héro ---------- */
.hero { background: linear-gradient(180deg, var(--blue-050) 0%, #fff 100%); padding: 56px 0 48px; }
.hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; color: var(--blue-900); letter-spacing: -.02em; margin-bottom: 18px; }
.hero p.lead { font-size: 20px; color: var(--ink-soft); margin-bottom: 28px; max-width: 34em; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.hero__trust li { list-style: none; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--green-700); }
.hero__trust svg { flex: none; }

.hero__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.hero__card h2 { font-size: 20px; color: var(--blue-900); margin-bottom: 14px; }
.hero__card ol { padding-left: 0; counter-reset: step; }
.hero__card ol li {
  list-style: none; counter-increment: step; display: flex; gap: 14px;
  padding: 10px 0; font-size: 17px; align-items: flex-start;
}
.hero__card ol li::before {
  content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-050); color: var(--blue-700); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(24px, 3.2vw, 32px); color: var(--blue-900); letter-spacing: -.015em; margin-bottom: 10px; }
.section .sub { font-size: 18px; color: var(--ink-soft); margin-bottom: 32px; max-width: 44em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 19px; color: var(--blue-900); margin: 12px 0 8px; }
.card p { font-size: 16.5px; color: var(--ink-soft); }
.card__ico {
  width: 48px; height: 48px; border-radius: 12px; background: var(--blue-050);
  display: flex; align-items: center; justify-content: center; color: var(--blue-700);
}

/* ---------- Tableau des prix ---------- */
.price-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.prices { width: 100%; border-collapse: collapse; min-width: 560px; }
.prices th, .prices td { padding: 16px 20px; text-align: left; font-size: 17px; }
.prices thead th { background: var(--blue-900); color: #fff; font-weight: 600; }
.prices tbody tr + tr td { border-top: 1px solid var(--line); }
.prices td strong { color: var(--blue-700); white-space: nowrap; }
.price-note { font-size: 15px; color: var(--ink-soft); margin-top: 12px; }

/* ---------- Aides ---------- */
.aides { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .aides { grid-template-columns: 1fr; } }
.aides ul { padding-left: 0; }
.aides ul li { list-style: none; display: flex; gap: 12px; padding: 9px 0; font-size: 17px; align-items: flex-start; }
.aides ul li svg { flex: none; margin-top: 4px; }
.notice {
  background: var(--blue-050); border-left: 4px solid var(--blue-600);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 20px; font-size: 15.5px; color: var(--ink-soft);
}

/* ---------- Régions ---------- */
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.region-btn {
  font-family: inherit; font-size: 16.5px; font-weight: 600; color: var(--blue-700);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 14px 16px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.region-btn:hover { border-color: var(--blue-600); background: var(--blue-050); }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: bigstep; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: bigstep; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before {
  content: counter(bigstep); display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--orange-600); color: #fff;
  font-size: 20px; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 19px; color: var(--blue-900); margin-bottom: 8px; }
.step p { font-size: 16.5px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 600; color: var(--blue-900); padding: 18px 22px; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 24px; color: var(--blue-600); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; color: var(--ink-soft); font-size: 17px; }

/* ---------- Bandeau final ---------- */
.final { background: var(--blue-900); color: #fff; text-align: center; padding: 64px 0; }
.final h2 { color: #fff; font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 12px; }
.final p { color: #c6d6e6; font-size: 19px; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer { background: #0d2a45; color: #9db4ca; font-size: 15px; padding: 36px 0; }
.footer a { color: #cfe0f0; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 16px; }
.footer__links button { background: none; border: none; color: #cfe0f0; font: inherit; cursor: pointer; padding: 0; }
.footer__links button:hover { text-decoration: underline; }
.footer p { margin-bottom: 6px; }

/* ---------- Pages annexes (mentions, confidentialité, merci) ---------- */
.legal { padding: 56px 0; max-width: 800px; }
.legal h1 { font-size: 32px; color: var(--blue-900); margin-bottom: 24px; }
.legal h2 { font-size: 22px; color: var(--blue-900); margin: 32px 0 10px; }
.legal p, .legal li { font-size: 17px; color: var(--ink); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }

/* ---------- Modal générique ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(13, 30, 47, .55); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.is-open { display: flex; }
.modal__box {
  background: #fff; border-radius: 16px; width: 100%; max-width: 560px;
  max-height: 92vh; overflow-y: auto; padding: 30px; position: relative; box-shadow: var(--shadow);
}
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: var(--bg-alt); color: var(--ink-soft); font-size: 20px; cursor: pointer;
}
.modal__close:hover { background: var(--line); }

/* ---------- Assistant de devis ---------- */
.wizard__progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.wizard__progress span { display: block; height: 100%; width: 25%; background: var(--orange-600); transition: width .25s ease; }
.wizard__step { display: none; }
.wizard__step.is-active { display: block; }
.wizard__step h3 { font-size: 21px; color: var(--blue-900); margin-bottom: 18px; }
.choices { display: grid; gap: 12px; }
.choice {
  font-family: inherit; font-size: 17.5px; font-weight: 600; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
  padding: 16px 18px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s;
  display: flex; align-items: center; gap: 12px;
}
.choice:hover { border-color: var(--blue-600); background: var(--blue-050); }
.choice.is-selected { border-color: var(--orange-600); background: #fdf1e7; }
.choice small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 14.5px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--blue-900); }
.field input {
  width: 100%; font-family: inherit; font-size: 18px; padding: 14px 16px;
  border: 2px solid var(--line); border-radius: 10px; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--blue-600); }
.field input.is-invalid { border-color: #c0392b; background: #fdf3f2; }

.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); margin: 14px 0 18px; }
.consent-row input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.form-error { display: none; background: #fdf3f2; color: #c0392b; border-radius: 8px; padding: 12px 14px; font-size: 15.5px; margin-bottom: 14px; }
.form-error.is-visible { display: block; }
#error-consent { display: none; color: #c0392b; font-size: 14.5px; margin: -10px 0 12px; }
#error-consent.is-visible { display: block; }
.form-loading { display: none; text-align: center; color: var(--ink-soft); font-size: 16px; padding: 8px 0; }
.form-loading.is-visible { display: block; }
.wizard__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.wizard__back { background: none; border: none; font: inherit; font-size: 16px; color: var(--ink-soft); cursor: pointer; }
.wizard__back:hover { color: var(--blue-700); }
.wizard__secure { font-size: 13.5px; color: var(--ink-soft); text-align: center; margin-top: 14px; }

/* ---------- Cookies : bandeau + préférences ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #fff;
  border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(18, 57, 94, .12);
  padding: 18px 20px; display: none;
}
.cookie-banner.is-open { display: block; }
.cookie-banner__inner { max-width: 1080px; margin: 0 auto; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cookie-banner p { font-size: 15px; color: var(--ink-soft); flex: 1 1 380px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { font-size: 15.5px; padding: 10px 18px; }
.btn--link { background: none; border: none; color: var(--ink-soft); font: inherit; font-size: 15px; cursor: pointer; text-decoration: underline; }

.cookie-cat { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; }
.cookie-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.cookie-cat h4 { font-size: 16.5px; color: var(--blue-900); }
.cookie-cat p { font-size: 14.5px; color: var(--ink-soft); margin-top: 6px; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i {
  position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .15s; cursor: pointer;
}
.switch i::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.switch input:checked + i { background: var(--green-700); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:disabled + i { background: var(--blue-600); opacity: .5; cursor: default; }
