/* ===========================================================
   RénoAides — feuille de style commune
   Thème clair, vert forêt + accent lime. Fait main, vanilla.
   =========================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Couleurs */
  --brand: #14532D;        /* vert forêt */
  --brand-dark: #0E3A1F;
  --accent: #84CC16;       /* lime / énergie */
  --accent-dark: #65A30D;
  --bg: #F5F3EC;           /* sable chaud */
  --surface: #FFFFFF;
  --surface-2: #FBFAF5;
  --ink: #1B1B16;          /* texte */
  --muted: #5C5B52;        /* atténué */
  --border: #E3DFD3;
  --brand-tint: #E9F1EA;   /* fond vert très clair */
  --accent-tint: #F0F7DE;  /* fond lime très clair */
  --danger: #B42318;
  --danger-tint: #FDECEA;

  /* Typo */
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Échelle d'espacement (4/8) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Rayons & ombres (sobres) */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(27, 27, 22, .06);
  --shadow-md: 0 6px 20px rgba(20, 83, 45, .08);

  --maxw: 1120px;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 var(--s-4);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); letter-spacing: -0.01em; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.2em; }
li { margin-bottom: var(--s-2); }

/* ---------- Accessibilité focus ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -60px;
  background: var(--brand);
  color: #fff;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm);
  z-index: 200;
  transition: top .15s ease;
}
.skip-link:focus { top: var(--s-4); color: #fff; }

/* ---------- Layout utilitaires ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--s-5); padding-right: var(--s-5); }
.section { padding: var(--s-9) 0; }
.section--tight { padding: var(--s-7) 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--s-3);
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.text-muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease, color .16s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--accent);
  color: #14361A;
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn--brand {
  background: var(--brand);
  color: #fff;
}
.btn--brand:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--brand); color: var(--brand); }
.btn--lg { padding: 18px 32px; font-size: 1.08rem; }
.btn--block { width: 100%; justify-content: center; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 236, .92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--brand);
  border-radius: 9px;
}
.brand__mark svg { width: 20px; height: 20px; }
.brand b { color: var(--brand); }

.nav { display: flex; align-items: center; gap: var(--s-2); }
.nav a {
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  font-size: .98rem;
}
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav__cta { margin-left: var(--s-2); }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--s-3) var(--s-5) var(--s-5);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 8px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav a:last-of-type { border-bottom: none; }
  .nav__cta { margin: var(--s-3) 0 0; }
  .nav .btn { width: 100%; justify-content: center; }
}

/* ---------- Disclaimer bandeau ---------- */
.disclaimer {
  background: var(--accent-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
  color: #44521f;
}
.disclaimer .wrap { display: flex; gap: var(--s-3); align-items: flex-start; padding-top: var(--s-3); padding-bottom: var(--s-3); }
.disclaimer svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; color: var(--accent-dark); }
.disclaimer a { color: var(--brand-dark); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--brand-tint), var(--bg) 70%); border-bottom: 1px solid var(--border); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--s-8);
  align-items: center;
  padding: var(--s-9) 0;
}
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-6) 0 var(--s-5); }
.hero__reassure {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  font-size: .92rem; color: var(--muted);
}
.hero__reassure span { display: inline-flex; align-items: center; gap: 7px; }
.hero__reassure svg { width: 16px; height: 16px; color: var(--accent-dark); }

/* carte estimation dans le hero */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--s-6);
}
.hero-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }
.hero-card__top .tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent-tint); color: var(--accent-dark);
  padding: 5px 10px; border-radius: 999px;
}
.hero-card__amount {
  font-family: var(--font-display);
  font-size: 2.7rem; font-weight: 700; color: var(--brand);
  letter-spacing: -0.03em; line-height: 1;
}
.hero-card__amount small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.bar-row { margin: var(--s-4) 0; }
.bar-row__label { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 6px; }
.bar-row__label b { color: var(--ink); }
.bar {
  height: 9px; background: var(--brand-tint); border-radius: 999px; overflow: hidden;
}
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar.bar--brand > span { background: var(--brand); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-6); padding: var(--s-7) 0; }
}

/* ---------- Bandeau de chiffres ---------- */
.stats {
  background: var(--brand);
  color: #EAF3EC;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  padding: var(--s-7) 0;
}
.stat { padding-left: var(--s-4); border-left: 2px solid rgba(132, 204, 22, .55); }
.stat dt { font-size: .85rem; color: #B9D2BF; margin-bottom: 4px; }
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; color: #fff;
}
.stat dd span { color: var(--accent); }
@media (max-width: 760px) { .stats__grid { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); } }
@media (max-width: 380px) { .stats__grid { grid-template-columns: 1fr; } }

/* ---------- Sections éditoriales ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s-6); } .split--reverse .split__media { order: 0; } }

/* travaux financés — liste à structure variée (pas 3 cartes identiques) */
.works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.work {
  padding: var(--s-6);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex; gap: var(--s-4);
}
.work:nth-child(2n) { border-right: none; }
.work:nth-last-child(-n+1):nth-child(odd) { /* dernier impair occupe seul une ligne */ }
.work__icon {
  width: 46px; height: 46px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--brand-tint);
  border-radius: var(--r-md);
  color: var(--brand);
}
.work__icon svg { width: 24px; height: 24px; }
.work h3 { margin-bottom: 6px; font-size: 1.15rem; }
.work p { margin: 0; font-size: .96rem; color: var(--muted); }
.work__amount { margin-top: var(--s-3); font-weight: 600; font-size: .9rem; color: var(--brand); }
@media (max-width: 720px) {
  .works { grid-template-columns: 1fr; }
  .work { border-right: none; }
}

/* étapes "comment ça marche" */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
}
.step__num {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  margin-bottom: var(--s-4);
}
.step h3 { font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* témoignages */
.quotes {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--s-5);
}
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.quote--feature { background: var(--brand); color: #EAF3EC; border-color: var(--brand); }
.quote--feature cite, .quote--feature .quote__role { color: #B9D2BF; }
.quote p { font-size: 1.12rem; line-height: 1.55; }
.quote--feature p { font-size: 1.25rem; }
.quote footer { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); }
.quote__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-tint); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 700;
}
.quote--feature .quote__avatar { background: var(--accent); color: #14361A; }
.quote cite { font-style: normal; font-weight: 600; }
.quote__role { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* CTA bandeau plein largeur */
.cta-band {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-8);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: var(--s-6);
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: var(--s-3); }
.cta-band p { color: #C9DDCE; margin: 0; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; text-align: left; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: var(--s-3);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: var(--s-4) var(--s-5);
  font-weight: 600;
  font-family: var(--font-display);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--accent-dark); line-height: 1;
  transition: transform .15s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 var(--s-5) var(--s-5); color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Encarts génériques ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.note {
  background: var(--accent-tint);
  border: 1px solid #DCE9B8;
  border-left: 4px solid var(--accent-dark);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  font-size: .96rem;
}
.note strong { color: var(--brand-dark); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; background: var(--surface); }
table.data caption { text-align: left; padding: var(--s-3) var(--s-4); color: var(--muted); font-size: .85rem; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.data thead th { background: var(--brand-tint); color: var(--brand-dark); font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-dark);
  color: #C4D6C9;
  margin-top: var(--s-9);
}
.site-footer a { color: #DCEAE0; }
.site-footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-6);
  padding: var(--s-8) 0 var(--s-6);
}
.footer__brand .brand { color: #fff; }
.footer__brand .brand b { color: var(--accent); }
.footer__brand p { color: #9FBCA6; max-width: 38ch; font-size: .95rem; margin-top: var(--s-4); }
.footer h4 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--s-4); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--s-3); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: var(--s-5) 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  font-size: .88rem; color: #9FBCA6;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ===========================================================
   SIMULATEUR
   =========================================================== */
.sim-head { background: var(--brand-tint); border-bottom: 1px solid var(--border); }
.sim-head .wrap { padding-top: var(--s-7); padding-bottom: var(--s-7); }
.sim-shell { padding: var(--s-7) 0 var(--s-9); }

/* barre de progression par étapes */
.progress { margin-bottom: var(--s-6); }
.progress__bar { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress__bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .25s ease; }
.progress__steps { display: flex; justify-content: space-between; margin-top: var(--s-3); list-style: none; padding: 0; gap: var(--s-2); }
.progress__steps li { font-size: .82rem; color: var(--muted); flex: 1; }
.progress__steps li b { display: block; color: var(--ink); font-weight: 600; }
.progress__steps li.is-active b { color: var(--brand); }
.progress__steps li.is-done b { color: var(--accent-dark); }
@media (max-width: 560px) { .progress__steps li span.lbl { display: none; } }

.sim-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--s-7);
  max-width: 820px;
  margin: 0 auto;
}
.sim-step { display: none; }
.sim-step.is-active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sim-step h2 { font-size: 1.55rem; }
.sim-step__intro { color: var(--muted); margin-top: -8px; margin-bottom: var(--s-6); }

.field { margin-bottom: var(--s-5); }
.field > label, .field > legend, .field-label {
  display: block; font-weight: 600; margin-bottom: var(--s-3); font-size: .98rem;
}
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 3px; }
.input, select.input {
  width: 100%;
  font-family: inherit; font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
}
.input:focus-visible, select.input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent-dark); }
fieldset { border: none; margin: 0; padding: 0; }

/* options cliquables (radios / checkboxes stylés) */
.options { display: grid; gap: var(--s-3); }
.options--2 { grid-template-columns: 1fr 1fr; }
.options--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .options--2, .options--3 { grid-template-columns: 1fr; } }
.opt {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--s-4) var(--s-4) var(--s-4) 50px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.opt:hover { border-color: var(--brand); }
.opt input { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; accent-color: var(--brand); cursor: pointer; }
.opt input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt b { display: block; font-weight: 600; }
.opt span.opt__desc { font-size: .88rem; color: var(--muted); }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.opt__amount { position: absolute; right: 16px; top: 14px; font-size: .85rem; font-weight: 600; color: var(--accent-dark); }

.sim-actions { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-6); }
.sim-actions .btn--ghost[hidden] { display: none; }

.error-msg {
  display: none;
  background: var(--danger-tint);
  border: 1px solid #F1C7C2;
  color: var(--danger);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  font-size: .92rem; font-weight: 500;
  margin-bottom: var(--s-4);
}
.error-msg.is-visible { display: block; }
.input.has-error, select.has-error { border-color: var(--danger); }

/* badge tranche */
.tranche-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  border: 1px solid var(--border);
}
.tranche-badge::before { content: ""; width: 12px; height: 12px; border-radius: 50%; }
.tranche--bleu { background: #EAF1FB; color: #1E40AF; }   .tranche--bleu::before { background: #2563EB; }
.tranche--jaune { background: #FEF7E0; color: #92600A; }  .tranche--jaune::before { background: #F2B705; }
.tranche--violet { background: #F3EBFB; color: #6B21A8; } .tranche--violet::before { background: #9333EA; }
.tranche--rose { background: #FCEAF2; color: #9D174D; }   .tranche--rose::before { background: #DB2777; }

/* résultat */
.result-total {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: var(--r-lg);
  padding: var(--s-6); margin-bottom: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; justify-content: space-between;
}
.result-total__big { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.result-total__big small { font-size: 1rem; color: #C9DDCE; font-weight: 500; }
.result-total p { margin: 4px 0 0; color: #C9DDCE; font-size: .95rem; }

.result-list { list-style: none; padding: 0; margin: 0 0 var(--s-5); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.result-list li { display: flex; justify-content: space-between; gap: var(--s-4); padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.result-list li:last-child { border-bottom: none; }
.result-list li.subtotal { background: var(--surface-2); font-weight: 600; }
.result-list .amount { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--brand); white-space: nowrap; }
.result-list .label small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }

/* grilles formulaires (simulateur — saisie RFR/personnes) */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* bloc "pour aller plus loin" — maillage interne après résultat */
.go-further { border-top: 2px dashed var(--border); margin-top: var(--s-6); padding-top: var(--s-6); }
.go-further h3 { font-size: 1.25rem; margin-bottom: var(--s-2); }
.go-further > p { color: var(--muted); margin-top: 0; }
.link-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-5);
}
@media (max-width: 560px) { .link-cards { grid-template-columns: 1fr; } }
.link-card {
  display: flex; gap: var(--s-3); align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); padding: var(--s-4) var(--s-5);
  text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.link-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-1px); color: var(--ink); }
.link-card .ico {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: var(--r-sm);
  display: grid; place-items: center; background: var(--brand-tint); color: var(--brand);
}
.link-card .ico svg { width: 20px; height: 20px; }
.link-card b { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.link-card span { font-size: .88rem; color: var(--muted); }

/* ===========================================================
   EMPLACEMENTS PUBLICITAIRES (modèle CPM / RPM)
   Placeholder discret, thème vert/sable, min-height anti-CLS.
   =========================================================== */
.ad-slot {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-2);
  width: 100%;
  margin: var(--s-6) auto;
  padding: var(--s-4);
  background: var(--surface-2);
  border: 1px dashed #C9D6BD;
  border-radius: var(--r-md);
  text-align: center;
  overflow: hidden;
}
.ad-slot .ad-label {
  font-family: var(--font-body);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #9A9A8C;
}
.ad-slot::after {
  content: "Emplacement réservé à une annonce";
  font-size: .8rem; color: #B4B4A6;
}
/* Leaderboard — bandeau large (728×90 / responsive) */
.ad-slot--leaderboard { min-height: 110px; max-width: 970px; }
/* Rectangle — médium (300×250 / 336×280) */
.ad-slot--rectangle { min-height: 280px; max-width: 360px; }
/* In-article — fluide, intégré au fil du contenu */
.ad-slot--inarticle { min-height: 250px; max-width: 100%; background: var(--surface); }
@media (max-width: 560px) {
  .ad-slot--leaderboard { min-height: 100px; }
  .ad-slot--rectangle { min-height: 250px; }
}

/* ---------- Pages contenu (guide / légal) ---------- */
.page-head { background: var(--brand-tint); border-bottom: 1px solid var(--border); }
.page-head .wrap { padding-top: var(--s-7); padding-bottom: var(--s-7); }
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--s-8); align-items: start; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; gap: var(--s-6); } }
.toc {
  position: sticky; top: 88px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); padding: var(--s-5);
  font-size: .94rem;
}
.toc h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3); }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: var(--s-2); }
.toc a { text-decoration: none; color: var(--ink); display: block; padding: 4px 0; }
.toc a:hover { color: var(--brand); }
@media (max-width: 860px) { .toc { position: static; } }

.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--s-8); scroll-margin-top: 90px; padding-top: var(--s-2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-6); }
.prose ul li, .prose ol li { margin-bottom: var(--s-2); }
.prose .note { margin: var(--s-5) 0; }

/* ---------- Page merci ---------- */
.thanks { text-align: center; max-width: 680px; margin: 0 auto; padding: var(--s-9) 0; }
.thanks__icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--accent-tint); color: var(--brand);
  display: grid; place-items: center; margin: 0 auto var(--s-5);
}
.thanks__icon svg { width: 44px; height: 44px; }
.thanks .recap {
  text-align: left; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-6); margin: var(--s-6) 0;
}
.thanks .recap h2 { font-size: 1.2rem; }
.thanks .recap dl { display: grid; grid-template-columns: auto 1fr; gap: 10px var(--s-5); margin: 0; }
.thanks .recap dt { color: var(--muted); }
.thanks .recap dd { margin: 0; font-weight: 600; }
.next-steps { text-align: left; display: grid; gap: var(--s-3); margin: var(--s-6) 0; }
.next-steps li { display: flex; gap: var(--s-4); align-items: flex-start; list-style: none; }
.next-steps { padding: 0; }
.next-steps .n {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: .9rem;
}

/* ---------- Visually hidden ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Print léger pour résultat ---------- */
@media print {
  .site-header, .site-footer, .disclaimer, .sim-actions, .progress, .ad-slot, .go-further { display: none !important; }
}
