/* Mr Watt · landing pompe à chaleur */

:root {
  --navy: #04174A;
  --sky: #AED6FD;
  --yellow: #FDCE25;
  --yellow-deep: #D9A800;
  --blue: #1A4FD6;
  --mint: #8EF4EB;
  --fog: #C9D6F5;
  --ink-2: #33426B;
  --ink-3: #4A587F;
  --ice: #F3F8FF;
  --ice-2: #E8F3FF;
  --ice-3: #EEF4FF;
  --field: #F7FAFF;
  --line: #DCE7F5;
  --track: #EEF3FB;
  --red: #D3263F;
  --green: #0E8A62;
  --focus-ring: 0 0 0 4px rgba(26, 79, 214, 0.15);
}

/* ── Base ─────────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--navy); font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
button, input { font-family: inherit; -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }

.page { background: #fff; overflow-x: clip; }
.wrap { max-width: 1180px; margin: 0 auto; }
.section { padding: clamp(64px, 8vw, 112px) 20px; }

.h2 { margin: 0; font-size: clamp(28px, 2.4vw + 16px, 48px); font-weight: 900; line-height: 1.04; letter-spacing: -0.03em; color: var(--navy); }
.lead { margin: 0; font-size: clamp(16.5px, 0.4vw + 14px, 20px); line-height: 1.5; color: var(--ink-2); }
.eyebrow { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }

.hl { background: var(--yellow); padding: 0 0.12em; border-radius: 0.16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl--blue { background: var(--blue); color: #fff; }
.hl--tight { padding: 0 0.1em; border-radius: 0.12em; }
.ast { font-size: 0.5em; vertical-align: super; line-height: 0; font-weight: 800; }

/* ── Boutons ──────────────────────────────────────────────────────── */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: none; border-radius: 999px; background: var(--yellow); color: var(--navy); font-weight: 800; cursor: pointer; }

.btn--cta { min-height: 58px; padding: 0 30px; font-size: 17px; box-shadow: 0 5px 0 var(--yellow-deep), 0 14px 28px -12px rgba(4, 23, 74, 0.35); transition: transform 0.15s ease; }
.btn--cta:hover { transform: translateY(-2px); }
.btn--cta:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--yellow-deep); }
.btn--flat { box-shadow: 0 5px 0 var(--yellow-deep); }
.btn--big { min-height: 60px; padding: 0 34px; font-size: 18px; }

.btn--step { display: flex; width: 100%; min-height: 56px; font-size: 17px; box-shadow: 0 4px 0 var(--yellow-deep); transition: transform 0.15s ease; }
.btn--step:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--yellow-deep); }
.btn--step:disabled { opacity: 0.45; }
.btn--submit { min-height: 58px; margin-top: 4px; font-size: 18px; }
.btn--small { min-height: 54px; font-size: 16.5px; transition: none; }

.btn--notify { flex: 0 0 auto; min-height: 50px; padding: 0 20px; font-size: 16px; box-shadow: 0 3px 0 var(--yellow-deep); }
.btn--sticky { display: flex; width: 100%; min-height: 58px; font-size: 18px; box-shadow: 0 4px 0 var(--yellow-deep), 0 14px 30px -8px rgba(4, 23, 74, 0.45); }

/* ── 01 · Hero ────────────────────────────────────────────────────── */

.hero { position: relative; background: var(--sky); background-image: radial-gradient(55% 60% at 80% 35%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 70%); padding: 0 20px clamp(88px, 9vw, 120px); }

.site-header { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(10px, 1.5vw, 16px) 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 40px; height: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.brand__tagline { font-size: 11.5px; font-weight: 600; margin-top: 4px; color: var(--ink-2); }

.hero__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 56px; padding-top: clamp(0px, 1.5vw, 20px); }
.hero__copy { flex: 1 1 500px; min-width: 0; padding-top: clamp(0px, 6vw - 20px, 76px); }

.pastille { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; background: #fff; border-radius: 999px; box-shadow: 0 2px 0 rgba(4, 23, 74, 0.06); font-size: clamp(12.5px, 0.3vw + 11.5px, 14.5px); font-weight: 600; line-height: 1.3; color: var(--navy); }
.pastille__dot { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #D9F4EA; display: flex; align-items: center; justify-content: center; }
.pastille__dot span { width: 8px; height: 8px; border-radius: 50%; background: #12A877; }
.pastille strong { font-weight: 800; }

.hero__title { margin: clamp(16px, 2.4vw, 40px) 0 clamp(14px, 2.4vw, 40px); font-size: clamp(30px, 2.6vw + 21px, 56px); font-weight: 900; line-height: 1.03; letter-spacing: -0.03em; color: var(--navy); text-wrap: balance; }
.hero__title > [data-hero] { display: none; }
html[data-hero="A"] .hero__title > [data-hero="A"],
html[data-hero="B"] .hero__title > [data-hero="B"],
html[data-hero="C"] .hero__title > [data-hero="C"],
html[data-hero="D"] .hero__title > [data-hero="D"],
html[data-hero="E"] .hero__title > [data-hero="E"],
html[data-hero="F"] .hero__title > [data-hero="F"] { display: inline; }

.hero__lead { margin: 0; max-width: 560px; font-size: clamp(16px, 0.5vw + 13.5px, 21px); font-weight: 600; line-height: 1.4; color: #1E2D5C; }

.hero__checks { list-style: none; padding: 0; margin: clamp(20px, 3vw, 52px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; max-width: 560px; }
.hero__checks li { display: flex; align-items: center; gap: 10px; font-size: clamp(13.5px, 0.4vw + 11.5px, 16.5px); font-weight: 700; line-height: 1.25; color: var(--navy); }
.tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: flex; align-items: center; justify-content: center; }

/* ── Quiz ─────────────────────────────────────────────────────────── */

.quiz { flex: 1 1 400px; max-width: 490px; min-width: 0; margin: 0 auto; position: relative; padding-top: clamp(70px, 9.4vw, 122px); }
.quiz__mascot { position: absolute; top: 0; right: 9%; width: clamp(104px, 14vw, 182px); height: auto; z-index: 0; pointer-events: none; user-select: none; transform-origin: 50% 100%; }
.quiz__card { position: relative; z-index: 1; background: #fff; border-radius: 28px; box-shadow: 0 2px 0 rgba(4, 23, 74, 0.05), 0 30px 60px -24px rgba(4, 23, 74, 0.45); overflow: hidden; }
.quiz__body { padding: 20px 20px 22px; min-height: 360px; }
.quiz__confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.quiz__reassure { margin: 14px 0 0; font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--navy); text-align: center; text-wrap: balance; }
.quiz__reassure svg { display: inline-block; vertical-align: -2px; margin-right: 6px; }

/* Bandeau « Vos aides estimées » */
.band { position: relative; background: var(--navy); padding: 14px 20px 17px; color: #fff; }
.band__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.band__main { min-width: 0; }
.band__label { font-size: 12px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--mint); }
.band__amounts { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.band__amount { display: inline-block; transform-origin: left center; font-size: clamp(32px, 1.6vw + 24px, 44px); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; color: var(--yellow); font-variant-numeric: tabular-nums; }
.band__delta { font-size: 14px; font-weight: 800; color: var(--mint); opacity: 0; white-space: nowrap; }
.band__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 1px; }
.band__step { font-size: 13px; font-weight: 700; color: var(--fog); white-space: nowrap; }
.band__back { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px 5px 8px; border-radius: 999px; border: 1.5px solid rgba(201, 214, 245, 0.35); background: transparent; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.band__back:hover { background: rgba(255, 255, 255, 0.1); }
.band__track { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, 0.12); }
.band__fill { height: 100%; width: 4%; background: var(--yellow); border-radius: 0 5px 5px 0; transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* Titres et libellés des étapes */
.q-title { margin: 0; font-size: clamp(20px, 0.6vw + 17px, 24px); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--navy); }
.q-title--exit { letter-spacing: normal; }
.q-hint { margin: 4px 0 16px; font-size: 14.5px; color: var(--ink-3); }
.q-hint--flush { margin-bottom: 0; }
.q-label { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--navy); }
.q-label--top { margin-top: 6px; }
.q-note { margin: 2px 0 4px; font-size: 13px; color: var(--ink-3); }

/* Réponses à toucher */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px 10px 26px; min-height: 204px; background: var(--ice); border: 2px solid var(--line); border-radius: 20px; cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease; }
/* !important : le survol garde la main sur l’animation jouée au clic, comme dans la maquette */
.opt:hover { border-color: var(--blue); background-color: #fff; transform: translateY(-2px) !important; box-shadow: 0 12px 24px -14px rgba(26, 79, 214, 0.55); }
.opt img { width: clamp(76px, 2vw + 66px, 100px); height: auto; }
.opt span { font-size: 17px; font-weight: 800; color: var(--navy); }
.opt.is-selected::after { content: ""; position: absolute; inset: -2px; border: 3px solid var(--blue); border-radius: 20px; background: rgba(26, 79, 214, 0.06); pointer-events: none; }
.opt.is-selected::before { content: ""; position: absolute; z-index: 1; top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4l2.6 2.6L11 4.6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat; pointer-events: none; }

.opts--compact { gap: 10px; }
.opts--compact .opt { gap: 6px; padding: 14px 10px 12px; min-height: 0; }
.opts--compact .opt img { width: 52px; height: 52px; }
.opts--compact .opt span { font-size: 16.5px; }
.opts--compact .opt.is-selected::before { top: 8px; right: 8px; width: 22px; height: 22px; }

/* Étape 4 · code postal */
.q-cp { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.geo { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 2px solid var(--line); background: var(--ice); color: var(--navy); font-size: 14.5px; font-weight: 700; cursor: pointer; }
.geo:hover { border-color: var(--blue); }
.geo img { width: 22px; height: 22px; }
.cp-input { width: 100%; height: 64px; padding: 0 18px; border: 2px solid var(--line); border-radius: 16px; background: var(--field); font-size: 28px; font-weight: 800; letter-spacing: 0.18em; color: var(--navy); outline: none; }
.cp-input.is-error { border-color: var(--red); }
.cp-input:focus { border-color: var(--blue); box-shadow: var(--focus-ring); }
.cp-ok { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--green); }
.cp-err { font-size: 14px; font-weight: 700; color: var(--red); }

/* Étape 5 · foyer fiscal */
.q-foyer { display: flex; flex-direction: column; gap: 12px; }
.persons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.person { height: 50px; border-radius: 14px; border: 2px solid var(--line); background: var(--ice); color: var(--navy); font-size: 18px; font-weight: 800; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease; }
.person.is-on { border-color: var(--navy); background: var(--navy); color: #fff; }
.tranches { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.tranche { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--navy); font-size: 16px; font-weight: 800; text-align: left; cursor: pointer; transition: border-color 0.15s ease; }
.tranche:hover { border-color: var(--blue); }
.tranche.is-selected { border-color: var(--blue); background: var(--ice-3); }
.tranche svg { color: var(--blue); }

/* Étape 6 · coordonnées */
.q-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.q-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.q-form__row--fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span:first-child { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.field input { width: 100%; height: 50px; padding: 0 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--field); font-size: 16px; font-weight: 600; color: var(--navy); outline: none; }
.field input.is-error { border-color: var(--red); }
.field input:focus { border-color: var(--blue); box-shadow: var(--focus-ring); }
.field__err { font-size: 12.5px; font-weight: 700; color: var(--red); }
.field__err--consent { margin-top: -6px; padding: 0 12px; }
.consent { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 14px; background: var(--ice); cursor: pointer; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--navy); }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }

/* Résultat */
.final { position: relative; }
.final__content { display: flex; flex-direction: column; align-items: center; text-align: center; transition: filter 0.5s ease; }
.final__content.is-locked { filter: blur(9px); pointer-events: none; user-select: none; }
.final__content > img { width: 60px; height: 60px; }
.final__hello { margin: 8px 0 0; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.final__aid { display: flex; flex-direction: column; align-items: center; width: 100%; }
.final__upto { margin-top: 8px; font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.final__total { font-size: clamp(46px, 2vw + 38px, 64px); font-weight: 900; line-height: 0.95; letter-spacing: -0.035em; color: var(--navy); white-space: nowrap; }
.final__unit { margin-top: 4px; font-size: 20px; font-weight: 800; color: var(--navy); }
.final__detail { width: 100%; margin-top: 14px; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--ice); text-align: left; }
.final__detail > div { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; font-weight: 700; color: var(--navy); }
.final__noaid { margin: 10px 0 0; font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--navy); }
.final__pill { margin-top: 14px; padding: 12px 22px; border-radius: 999px; background: var(--ice-2); font-size: clamp(18px, 0.6vw + 15px, 22px); font-weight: 900; line-height: 1.25; letter-spacing: -0.01em; color: var(--navy); }
.final__rappel { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.final__call { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; border: 2px solid var(--line); text-align: left; }
.final__call img { flex: none; width: 40px; height: 40px; }
.final__call div { font-size: 14.5px; line-height: 1.4; color: var(--navy); }
.final__call strong { font-weight: 800; }
.final__nocall { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--ink-2); }
.final__legal { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.final__note { margin: 16px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }

/* Vérification du téléphone par SMS */
.otp { position: absolute; inset: -8px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.35); }
.otp__card { width: 100%; max-width: 380px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 20px; border-radius: 24px; background: #fff; box-shadow: 0 24px 50px -20px rgba(4, 23, 74, 0.45); text-align: center; }
.otp__card > img { width: 52px; height: 52px; }
.otp__head { display: flex; flex-direction: column; gap: 6px; }
.otp__head h2 { margin: 0; font-size: clamp(19px, 0.6vw + 16px, 22px); font-weight: 800; line-height: 1.25; color: var(--navy); text-wrap: balance; }
.otp__head p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
.otp__head strong { font-weight: 800; color: var(--navy); white-space: nowrap; }
.otp__demo { margin: 0; padding: 8px 12px; border-radius: 12px; background: #FFF3C4; font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--navy); }
.otp__cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: 100%; }
.otp__cell { width: 100%; min-width: 0; height: 56px; padding: 0; border-radius: 14px; border: 2px solid var(--line); background: var(--ice); text-align: center; font-family: inherit; font-size: 24px; font-weight: 900; color: var(--navy); outline: none; }
.otp__cell.is-filled { border-color: var(--blue); }
.otp__cell:focus { border-color: var(--blue); background: #fff; }
.otp__err { font-size: 13px; font-weight: 700; color: var(--red); }
.otp__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13.5px; font-weight: 700; }
.otp__links button { padding: 0; border: none; background: none; color: var(--blue); font: inherit; cursor: pointer; }

/* Sorties du quiz */
.exit { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.exit > img { width: 60px; height: 60px; }
.exit > p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.exit > .exit__ok { font-weight: 700; line-height: normal; color: var(--green); }
.exit > .exit__small { font-size: 13.5px; }
.exit__badge { padding: 4px 10px; border-radius: 999px; background: #FDE8EB; font-size: 12.5px; font-weight: 800; color: #B01D35; }
.exit__email { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.exit__email input { flex: 1 1 200px; min-width: 0; height: 50px; padding: 0 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--field); font-size: 16px; font-weight: 600; color: var(--navy); outline: none; }
.exit__email input:focus { border-color: var(--blue); }
.exit__err { font-size: 13px; font-weight: 700; color: var(--red); }
.exit__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--navy); color: var(--navy); font-size: 15px; font-weight: 800; text-decoration: none; }
.exit__back { padding: 0; border: none; background: none; color: var(--blue); font-size: 14.5px; font-weight: 800; cursor: pointer; }

/* ── 03 · Preuve ──────────────────────────────────────────────────── */

.proof { position: relative; z-index: 2; padding: 0 20px; margin-top: clamp(-72px, -6vw, -48px); }
.proof__card { max-width: 1180px; margin: 0 auto; background: #fff; border-radius: 24px; box-shadow: 0 24px 50px -28px rgba(4, 23, 74, 0.45); padding: 24px clamp(18px, 3vw, 36px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: center; gap: 22px 32px; }
.proof__stat { text-align: center; }
.proof__big { font-size: clamp(22px, 1.2vw + 16px, 32px); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; color: var(--navy); }
.proof__big span { font-size: 0.6em; font-weight: 800; color: var(--ink-2); }
.proof__sub { margin-top: 4px; font-size: clamp(12.5px, 0.3vw + 11.5px, 15px); font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.proof__labels { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border-radius: 16px; background: var(--ice); }
.proof__logos { display: flex; justify-content: center; gap: 14px; width: 100%; }
.proof__logo { flex: 1 1 0; min-width: 0; max-width: 88px; height: 56px; border-radius: 12px; overflow: hidden; background: rgba(127, 127, 127, 0.08); }
.proof__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.proof__caption { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--navy); text-align: center; }

/* ── 04 · Pourquoi la PAC ─────────────────────────────────────────── */

.why-a, .why-b { background: #fff; }
html[data-pourquoi="A"] .why-b,
html[data-pourquoi="B"] .why-a { display: none; }

/* Version A · avantages */
.why-a__head { max-width: 760px; }
.why-a .h2 { margin-bottom: 16px; text-wrap: balance; }
.why-a__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; margin-top: 40px; }
.why-a__photo { position: relative; min-height: clamp(260px, 30vw, 420px); border-radius: 28px; overflow: hidden; background: var(--ice-2); }
.why-a__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why-a__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.why-a__card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; background: var(--ice); }
.why-a__card img { width: 48px; height: 48px; }
.why-a__card h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; color: var(--navy); }
.why-a__card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.why-a__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 32px; }
.why-a__foot p { margin: 0; max-width: 560px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }

/* Version B · le calcul qui fait mal */
.why-b__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px 56px; align-items: center; }
.why-b__copy { display: flex; flex-direction: column; gap: 24px; }
.why-b .h2 { margin-bottom: 14px; text-wrap: balance; }

.house { padding: 20px; border-radius: 22px; background: var(--ice-2); }
.house .eyebrow { margin-bottom: 14px; }
.house ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px 16px; }
.house li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.house li > span { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; }
.house li img { width: 24px; height: 24px; }

.bill { padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: #fff; border: 2px solid var(--line); box-shadow: 0 30px 60px -36px rgba(4, 23, 74, 0.35); }
.bill .eyebrow { margin-bottom: 22px; }
.bill__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.bill__row--next { margin-top: 26px; }
.bill__name { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--navy); }
.bill__name img { width: 26px; height: 26px; }
.bill__price { font-size: clamp(26px, 1.4vw + 18px, 36px); font-weight: 900; letter-spacing: -0.03em; white-space: nowrap; }
.bill__price span { font-size: 0.5em; letter-spacing: 0; }
.bill__price--bad { color: #C21F38; }
.bill__price--good { color: #0B7A56; }
.bill__bar { height: 22px; border-radius: 11px; }
.bill__bar--bad { background: #E5394F; }
.bill__bar--saved { position: relative; display: flex; overflow: hidden; background: repeating-linear-gradient(135deg, #FFF3C4 0 8px, #FDE68A 8px 16px); }
.bill__bar--saved div { flex: none; width: 28.5%; height: 100%; border-radius: 11px; background: #12A877; }
.bill__gain { display: flex; justify-content: flex-end; margin-top: -2px; }
.bill__gain > div { width: 71.5%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bill__brace { width: 100%; height: 12px; border: 2.5px solid var(--navy); border-top: none; border-radius: 0 0 10px 10px; }
.bill__delta { padding: 8px 16px; border-radius: 999px; background: var(--yellow); font-size: clamp(20px, 0.8vw + 16px, 26px); font-weight: 900; letter-spacing: -0.02em; color: var(--navy); white-space: nowrap; }
.bill__rule { height: 2px; background: var(--track); margin: 24px 0 20px; }
.bill__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 112px), 1fr)); gap: 16px; }
.bill__stats > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bill__num { font-size: clamp(21px, 0.7vw + 16px, 28px); font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--navy); white-space: nowrap; }
.bill__num > span:first-child { display: block; font-size: 0.45em; letter-spacing: 0; margin-bottom: 2px; }
.bill__num > .is-ghost { visibility: hidden; }
.bill__cap { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.bill__note { margin: 20px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); scroll-margin-top: 20px; }

/* ── 05 · Cascade des aides ───────────────────────────────────────── */

.aides { background: var(--navy); color: #fff; }
.aides__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.aides .h2 { margin: 0 auto 16px; max-width: 820px; color: #fff; text-wrap: balance; }
.aides__max { white-space: nowrap; color: var(--yellow); }
.aides .lead { max-width: 600px; font-size: clamp(16.5px, 0.4vw + 14px, 19px); color: var(--fog); text-wrap: pretty; }
.aides__card { width: 100%; margin-top: clamp(28px, 3vw, 44px); background: #fff; color: var(--navy); border-radius: 28px; padding: clamp(14px, 2vw, 22px) clamp(14px, 2.5vw, 32px) clamp(20px, 2.5vw, 32px); text-align: left; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); }

.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 20px; background: var(--ice-3); margin-bottom: 24px; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 12px 10px; border: none; border-radius: 15px; background: transparent; color: var(--navy); text-align: center; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: 0 6px 14px -6px rgba(4, 23, 74, 0.5); }
.tab__label { display: flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 800; line-height: 1.2; }
.tab__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.tab[data-profil="bleu"] .tab__dot { background: #4F8BFF; }
.tab[data-profil="jaune"] .tab__dot { background: #FDCE25; }
.tab[data-profil="violet"] .tab__dot { background: #B28CFF; }
.tab__total { font-size: 17px; font-weight: 900; white-space: nowrap; color: var(--blue); }
.tab[aria-selected="true"] .tab__total { color: var(--yellow); }

.aides__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 22px; }
.aides__chip { padding: 5px 12px; border-radius: 999px; background: var(--ice-3); font-size: 13px; font-weight: 700; color: var(--navy); }

.prime { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.prime__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prime__name > span:first-child { font-size: 16px; font-weight: 800; }
.prime__name > span:last-child { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.prime__amount { font-size: 20px; font-weight: 900; white-space: nowrap; }
.prime__amount--mpr { color: #3D7BF0; }
.prime__amount--cee { color: var(--blue); }
.prime__amount--edf { color: #0B3FB8; }

.gauge { position: relative; height: 14px; margin: 8px 0 18px; border-radius: 7px; background: var(--track); }
.gauge--total { margin: 12px 0 22px; }
.gauge__fill { position: absolute; top: 0; bottom: 0; border-radius: 7px; transition: left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gauge__fill--mpr { background: #7DB4FF; }
.gauge__fill--cee { background: var(--blue); }
.gauge__fill--edf { background: var(--navy); }
.gauge__fill--total { left: 0; background: var(--yellow); }

.aides__rule { height: 2px; background: var(--navy); margin-bottom: 18px; }
.aides__sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.aides__sum > span:first-child { font-size: 18px; font-weight: 900; }
.aides__total { padding: 4px 14px; border-radius: 12px; background: var(--yellow); font-size: clamp(24px, 1vw + 20px, 30px); font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; }

.eyebrow--plus { margin-bottom: 10px; }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 16px; }
.extras > div { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border-radius: 12px; background: var(--ice); }
.extras img { flex: none; width: 26px; height: 26px; }
.extras > div > span { display: flex; flex-direction: column; gap: 2px; }
.extras > div > span > span:first-child { font-size: 14px; font-weight: 800; color: var(--navy); }
.extras > div > span > span:last-child { font-size: 12.5px; line-height: 1.35; color: var(--ink-2); }
.aides__note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.aides__cta { margin-top: 32px; }

/* ── 06 · Comment ça se passe ─────────────────────────────────────── */

.steps { background: #fff; }
.steps__list { position: relative; list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.steps__list::before { content: ""; position: absolute; top: 31px; left: 10%; right: 10%; height: 3px; border-radius: 3px; background: var(--yellow); }
.steps__list li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px 16px; }
.steps__icon { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--ice-2); display: flex; align-items: center; justify-content: center; }
.steps__icon img { width: 38px; height: 38px; }
.steps__icon span { position: absolute; top: -4px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: var(--navy); }
.steps__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.steps__text > span:first-child { font-size: 18px; font-weight: 800; line-height: 1.25; color: var(--navy); }
.steps__text > span:last-child { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.steps__cta { margin-top: 40px; }

/* ── 07 · FAQ ─────────────────────────────────────────────────────── */

.faq { background: var(--ice-2); }
.faq__inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 64px; }
.faq__head { flex: 1 1 300px; min-width: 0; display: flex; align-items: center; gap: clamp(10px, 1.2vw, 18px); }
.faq__head img { flex: none; display: block; width: auto; height: calc(2.08 * clamp(28px, 2.4vw + 16px, 48px)); }
.faq__list { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: #fff; border-radius: 18px; }
.faq__q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: none; background: transparent; text-align: left; cursor: pointer; font-size: 17px; font-weight: 800; color: var(--navy); }
.faq__sign { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ice-2); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; }
.faq__sign::before { content: "+"; }
.faq__q[aria-expanded="true"] .faq__sign { background: var(--yellow); }
.faq__q[aria-expanded="true"] .faq__sign::before { content: "−"; }
.faq__a { margin: 0; padding: 0 20px 20px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.faq__cta { margin-top: 22px; }

/* ── 08 · Bouton final ────────────────────────────────────────────── */

.outro { background: var(--sky); background-image: radial-gradient(50% 70% at 75% 80%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 70%); padding: clamp(56px, 7vw, 96px) 20px 0; overflow: hidden; }
.outro__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 40px; }
.outro__copy { flex: 1 1 480px; min-width: 0; padding-bottom: clamp(16px, 6vw, 96px); }
.outro h2 { margin: 0; font-size: clamp(32px, 2.8vw + 18px, 60px); font-weight: 900; line-height: 1; letter-spacing: -0.035em; text-transform: uppercase; color: var(--navy); text-wrap: balance; }
.outro p { margin: 18px 0 28px; max-width: 540px; font-size: clamp(16.5px, 0.5vw + 14px, 21px); font-weight: 600; line-height: 1.4; color: var(--navy); }
.outro__inner > img { flex: 0 0 auto; display: block; width: clamp(170px, 22vw, 300px); height: auto; margin: 0 auto -6px; }

/* ── Pied de page ─────────────────────────────────────────────────── */

.footer { background: var(--navy); color: var(--fog); padding: clamp(48px, 6vw, 80px) 20px 40px; }
.footer__inner { display: flex; flex-direction: column; gap: 36px; }
.footer__renov { display: block; align-self: center; width: 100%; max-width: 701px; background: #fff; border-radius: 4px; overflow: hidden; }
.footer__renov img { display: block; width: 100%; height: auto; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px 56px; }
.footer__col { display: flex; flex-direction: column; gap: 28px; }
.footer__block { scroll-margin-top: 20px; }
.footer h3 { margin: 0 0 12px; font-size: 16px; font-weight: 800; color: #fff; }
.footer__text { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.6; }
.footer__text p { margin: 0; }
.footer__block > p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.footer__block strong { font-weight: 800; color: #fff; }

.footer__baremes { border-top: 1px solid rgba(201, 214, 245, 0.2); padding-top: 16px; }
.footer__baremes summary { cursor: pointer; font-size: 16px; font-weight: 800; color: #fff; }
.footer__baremes > div { display: flex; flex-direction: column; gap: 18px; margin-top: 14px; font-size: 13px; }
.footer__baremes > div > div > p { margin: 0 0 6px; font-weight: 800; color: #fff; }
.bareme { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.bareme > span:nth-child(-n+4) { font-weight: 700; color: #fff; }
.footer__source { margin: 0; }
.footer__source a { color: var(--mint); }
.footer__block a { color: var(--mint); }

.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; border-top: 1px solid rgba(201, 214, 245, 0.2); }
.footer__about { display: flex; align-items: center; gap: 12px; max-width: 640px; }
.footer__about img { flex: none; width: 40px; height: auto; display: block; }
.footer__about p { margin: 0; font-size: 13px; line-height: 1.5; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; font-weight: 700; }
.footer__nav a { color: #fff; }
.footer__spacer { display: none; height: 72px; }

/* ── Bouton fixe sur mobile ───────────────────────────────────────── */

.sticky { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; }

@media (min-width: 720px) {
  .sticky { display: none; }
}

@media (max-width: 719.98px) {
  .tabs { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }
  .steps__list::before { top: 32px; bottom: 32px; left: 31px; right: auto; width: 3px; height: auto; }
  .steps__list li { flex-direction: row; align-items: flex-start; text-align: left; }
  .steps__text { padding-top: 8px; }
  .footer__spacer { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band__fill, .gauge__fill, .final__content, .opt, .btn { transition: none; }
}
