:root {
  --bg: #ffffff;
  --bg-alt: #f3f7f9;
  --card: #ffffff;
  --ink: #17262f;
  --muted: #546570;
  --line: #dde6eb;
  --brand: #0b5a78;
  --brand-dark: #08415a;
  --brand-soft: #e6f2f7;
  --accent: #e8590c;
  --accent-dark: #c94b08;
  --accent-ink: #ffffff;
  --ok: #18845c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 42, 56, .06), 0 8px 24px -12px rgba(16, 42, 56, .18);
  --deep: #08415a;
  --band: #0b5a78;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f171c; --bg-alt: #141f26; --card: #18252d; --ink: #e8eef1; --muted: #a3b2bb; --line: #26363f;
    --brand: #5fb3d6; --brand-dark: #8fcbe4; --brand-soft: #16303c; --accent: #ff7a33; --accent-dark: #ff8f52; --accent-ink: #1a0d05; --ok: #4cc795;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    --deep: #0a1115; --band: #123a4c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0f171c; --bg-alt: #141f26; --card: #18252d; --ink: #e8eef1; --muted: #a3b2bb; --line: #26363f;
    --brand: #5fb3d6; --brand-dark: #8fcbe4; --brand-soft: #16303c; --accent: #ff7a33; --accent-dark: #ff8f52; --accent-ink: #1a0d05; --ok: #4cc795;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    --deep: #0a1115; --band: #123a4c; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 var(--font); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { color: var(--brand-dark); line-height: 1.25; letter-spacing: -0.015em; font-weight: 750; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: .3em 0 .45em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 2em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.5em 0 .4em; }
p, ul, ol { margin: 0 0 1em; }
strong { font-weight: 650; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px; z-index: 10; }

/* Bandeau d'information */
.topbar { background: var(--deep); color: #dbeaf1; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar b { color: #fff; font-weight: 600; }

/* En-tête */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 66px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.12rem; }
.logo svg { color: var(--brand); flex: none; }
.logo b { color: var(--brand); font-weight: 800; }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { background: var(--brand-soft); color: var(--brand-dark); }
.nav .nav-cta { background: var(--accent); color: var(--accent-ink); font-weight: 650; margin-left: 6px; }
.nav .nav-cta:hover { background: var(--accent-dark); color: var(--accent-ink); }
.nav-toggle { display: none; margin-left: auto; background: var(--brand-soft); color: var(--brand-dark); border: 0; border-radius: 8px; padding: 8px 14px; font: 600 .95rem var(--font); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-open .nav { display: flex; }
}

/* Fil d'Ariane */
.crumbs ol { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* Accroche */
.lead { font-size: 1.12rem; color: var(--muted); max-width: 44em; }
.updated { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--ok); font-weight: 600; background: color-mix(in srgb, var(--ok) 10%, transparent); padding: 3px 10px; border-radius: 999px; margin: 14px 0 4px; }
.updated::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero-band { background: linear-gradient(180deg, var(--brand-soft), var(--bg)); margin: 0 -16px; padding: 8px 16px 28px; }
.hero { display: grid; grid-template-columns: 1fr 460px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; gap: 20px; } }
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.trust li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; margin-top: 2px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi span { font-size: .88rem; color: var(--muted); }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; border-radius: 12px; padding: 14px 22px; font-weight: 700; line-height: 1.2; text-align: center; }
.btn-cta { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px -6px rgba(232, 89, 12, .7); }
.btn-cta:hover { background: var(--accent-dark); color: var(--accent-ink); }
.cta-band { display: flex; gap: 24px; align-items: center; justify-content: space-between; background: var(--band); color: #e6f2f7; border-radius: 18px; padding: 26px 28px; margin: 40px 0; }
.cta-band p { margin: 0 0 .3em; }
.cta-band .cta-title { font-weight: 750; font-size: 1.3rem; color: #fff; }
@media (max-width: 720px) { .cta-band { flex-direction: column; align-items: stretch; } }

/* Simulateur */
.sim { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--brand); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.sim h2, .sim h3 { margin: 0 0 4px; font-size: 1.3rem; }
.sim .sim-sub { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.step { margin: 0 0 16px; border: 0; padding: 0; }
.step-title { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: .96rem; margin-bottom: 8px; padding: 0; }
.step-title i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: .8rem; font-weight: 800; display: grid; place-items: center; flex: none; }
.sim .row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; }
.sim input[type=text], .sim input[type=number], .sim select {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); min-height: 48px;
}
.sim input:focus, .sim select:focus, .stepper button:focus-visible, .seg label:focus-within { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 1px; border-color: var(--brand); }
.stepper { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; }
.stepper input { text-align: center; font-weight: 700; font-size: 1.15rem !important; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button { border: 1.5px solid var(--line); background: var(--bg-alt); color: var(--brand-dark); border-radius: 10px; font: 700 1.3rem var(--font); cursor: pointer; }
.stepper button:hover { border-color: var(--brand); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--bg-alt); padding: 4px; border-radius: 12px; }
.seg label { position: relative; text-align: center; padding: 9px 6px; border-radius: 9px; cursor: pointer; font-size: .9rem; font-weight: 550; line-height: 1.25; color: var(--muted); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--card); color: var(--brand-dark); font-weight: 700; box-shadow: 0 1px 3px rgba(16,42,56,.15); }
.hint { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.sim-result { margin-top: 6px; }
.sim-total { background: var(--brand-soft); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.sim-total span { display: block; color: var(--muted); font-size: .9rem; }
.sim-total strong { display: block; font-size: 2.5rem; font-weight: 800; color: var(--brand-dark); font-variant-numeric: tabular-nums; line-height: 1.15; margin: 2px 0 4px; }
.sim-total .sim-split { color: var(--accent-dark); font-weight: 700; font-size: 1rem; }
.sim-detail { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 8px; }
.sim-detail th { text-align: left; font-weight: 500; padding: 7px 0; }
.sim-detail th small { display: block; color: var(--muted); font-size: .8rem; }
.sim-detail td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.sim-detail tr + tr { border-top: 1px solid var(--line); }
.sim-notes { font-size: .88rem; padding-left: 18px; color: var(--ok); }
.sim-small, .sim-hint { font-size: .82rem; color: var(--muted); }
.sim-hint { background: var(--bg-alt); border-radius: 10px; padding: 12px; margin: 0; }
.sim .btn-cta { width: 100%; font-size: 1.05rem; }
.plate { background: var(--bg-alt); border-radius: 12px; padding: 12px; margin-bottom: 16px; }
.plate .row2 { display: flex; gap: 8px; }
.plate button { font: inherit; border: 0; border-radius: 10px; background: var(--brand); color: #fff; padding: 0 16px; cursor: pointer; font-weight: 650; }

/* Tableaux */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 0 0 1.4em; box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--bg-alt); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
table.data tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg-alt) 55%, transparent); }
table.data tbody tr:hover td { background: var(--brand-soft); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tr.hl td { background: var(--brand-soft); font-weight: 700; }
table.data a { font-weight: 600; text-decoration: none; }
table.data a:hover { text-decoration: underline; }
.up { color: var(--accent-dark); font-weight: 650; }
.bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--brand); vertical-align: middle; margin-right: 10px; opacity: .55; }
.flag { font-size: .78rem; color: var(--muted); font-weight: 400; }

/* Cartes et listes */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0 0 1.5em; padding: 0; list-style: none; }
.grid-cards a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); height: 100%; transition: border-color .15s, transform .15s; }
.grid-cards a:hover { border-color: var(--brand); transform: translateY(-2px); }
.grid-cards strong { display: block; color: var(--brand-dark); font-size: 1.05rem; margin-bottom: 4px; }
.grid-cards span { font-size: .9rem; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.pills a { display: inline-block; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-size: .92rem; color: var(--ink); }
.pills a:hover { border-color: var(--brand); color: var(--brand-dark); }
.box { background: var(--brand-soft); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 1.4em; border-left: 4px solid var(--brand); }
.box p:last-child { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 400px; gap: 44px; align-items: start; }
.two-col > aside { position: sticky; top: 86px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } .two-col > aside { position: static; } }
.prose { max-width: 44em; }
.prose li { margin-bottom: .45em; }
.changes { list-style: none; padding: 0; display: grid; gap: 10px; max-width: 44em; }
.changes li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 6px; color: var(--muted); }

/* Graphique */
.chart { width: 100%; height: auto; display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.chart text { fill: var(--muted); font: 12px var(--font); }
.chart .lbl { font-weight: 700; }

/* Pied de page */
.site-footer { margin-top: 72px; background: var(--deep); color: #cfe0e8; padding: 40px 0 24px; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid a { display: block; text-decoration: none; margin-bottom: 7px; color: #e3eef3; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-grid p a { display: inline; text-decoration: underline; }
.footer-logo { font-weight: 800; font-size: 1.15rem; color: #fff; }
.footer-title { font-weight: 700; color: #fff; }
.legal-note { color: #a9c3cf; font-size: .82rem; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .topbar .wrap > span:last-child { display: none; }
  .topbar { font-size: .76rem; }
  .hero .trust { display: none; }
  .hero .lead { font-size: 1.02rem; }
  .sim { padding: 18px 16px; }
}

/* Boutons « Commandez maintenant » */
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 6px 0 28px; }
.cta-inline > span { font-size: .88rem; color: var(--muted); }
.cta-inline > span::before { content: "✓ "; color: var(--ok); font-weight: 800; }

/* Bannière latérale */
.promo-side { display: none; }
@media (min-width: 1400px) {
  .promo-side {
    position: fixed; right: max(16px, calc((100vw - 1120px) / 2 - 196px)); top: 130px; width: 168px; z-index: 4;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
    background: linear-gradient(165deg, #ff7a2e 0%, #e8590c 55%, #c94b08 100%); color: #fff; text-decoration: none;
    border-radius: 18px; padding: 18px 14px 16px; box-shadow: 0 14px 34px -14px rgba(201, 75, 8, .75);
    transition: transform .2s, box-shadow .2s; overflow: hidden;
  }
  .promo-side::after { content: ""; position: absolute; inset: -40% auto auto -60%; width: 60%; height: 180%; background: rgba(255,255,255,.18); transform: rotate(20deg); animation: promo-shine 4.5s ease-in-out infinite; }
  .promo-side:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(201, 75, 8, .9); color: #fff; }
}
@keyframes promo-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .promo-side::after { animation: none; display: none; } }
.promo-tag { background: #fff; color: #c94b08; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 2px 10px; border-radius: 999px; }
.promo-big { font-size: 4.2rem; font-weight: 900; line-height: .95; letter-spacing: -0.04em; }
.promo-big small { font-size: 2.4rem; font-weight: 800; }
.promo-free { font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-top: -4px; }
.promo-text { font-size: .9rem; line-height: 1.35; font-weight: 600; opacity: .95; }
.promo-list { display: flex; flex-direction: column; gap: 2px; font-size: .74rem; line-height: 1.35; opacity: .95; margin: 4px 0 6px; text-align: left; }
.promo-btn { background: #fff; color: #c94b08; font-weight: 800; font-size: .88rem; padding: 10px 12px; border-radius: 10px; width: 100%; line-height: 1.2; }
.promo-site { font-size: .72rem; opacity: .9; font-weight: 600; }

/* Barre fixe mobile et écrans moyens */
.promo-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: min(760px, calc(100% - 20px)); z-index: 6; display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg, #c94b08, #ff7a2e); border-radius: 16px; box-shadow: 0 14px 34px -12px rgba(201, 75, 8, .85); padding: 8px 8px 8px 16px; }
.promo-bar a { color: #fff; text-decoration: none; }
.promo-bar > a:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.promo-bar .pb-q { font-size: .82rem; font-weight: 600; opacity: .95; }
.promo-bar .pb-q b { font-weight: 800; }
.promo-bar .pb-main { font-size: 1.12rem; font-weight: 900; letter-spacing: -0.01em; }
.promo-bar .pb-main em { font-style: normal; background: #fff; color: #c94b08; padding: 0 6px; border-radius: 6px; }
.promo-bar .pb-sub { font-size: .74rem; opacity: .92; font-weight: 600; }
.promo-bar .pb-btn { flex: none; background: #fff; color: #c94b08; font-weight: 800; padding: 12px 16px; border-radius: 11px; white-space: nowrap; animation: pb-pulse 2.4s ease-in-out infinite; }
.promo-bar .pb-btn:hover { color: #8f3405; }
@keyframes pb-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .promo-bar .pb-btn { animation: none; } }
@media (max-width: 520px) { .promo-bar .pb-sub { display: none; } .promo-bar .pb-main { font-size: 1rem; } .promo-bar .pb-btn { padding: 10px 12px; font-size: .85rem; } }
@media (min-width: 1400px) { .promo-bar { left: calc(50% - 110px); } }
body.has-promo { padding-bottom: 92px; }

/* Logo image */
.logo img { display: block; height: 44px; width: auto; }
.footer-logo { display: inline-flex; background: #fff; border-radius: 12px; padding: 8px 14px; }
.footer-logo img { display: block; height: 38px; width: auto; }
@media (max-width: 440px) { .site-header .logo img { height: 36px; } }

/* Étape suivante après le résultat du simulateur (audit 2026-10) */
.sim-next { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.08); }
.sim-next > p:first-child { margin: 0 0 8px; font-weight: 650; }
.sim-next .sim-small { margin: 8px 0 0; }
.cross { border-left: 4px solid var(--brand); background: var(--card, #fff); padding: 12px 16px; border-radius: 0 12px 12px 0; margin: 24px 0; }
.cross p { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 24px; padding: 0; margin: 0 0 24px; list-style: none; }
.facts li { border-bottom: 1px solid rgba(0,0,0,.08); padding: 6px 0; }
.facts b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; }
