/* ============================================================
   Maison de l'énergie — design system
   Porté depuis la maquette Claude Design (.dc.html)
   ============================================================ */

:root {
  --navy: #002750;
  --navy-dark: #001B36;
  --orange: #E77229;
  --orange-light: #F0A15E;
  --bg: #F6F7F9;
  --surface: #fff;
  --line: rgba(0, 39, 80, .08);
  --line-strong: rgba(0, 39, 80, .12);
  --ink-60: rgba(0, 39, 80, .62);
  --ink-68: rgba(0, 39, 80, .68);
  --ink-55: rgba(0, 39, 80, .55);
  --ink-45: rgba(0, 39, 80, .45);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1180px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: "Inter Tight", system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--ink-68);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: clip;
}

a { color: var(--navy); text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }
input, button, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: #fff; }

@keyframes mdeMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mdePulse { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.5); opacity: 0; } }
@keyframes mdeSpin { to { transform: rotate(360deg); } }

/* ---------- Layout ---------- */
.wrap { max-width: var(--container); margin: 0 auto; }
.section { padding: clamp(64px, 9vw, 160px) 20px 0; }
.section--tight { padding: clamp(48px, 6vw, 96px) 20px 0; }
.section--last { padding-bottom: clamp(64px, 9vw, 160px); }
.page-head { padding: 168px 20px 0; }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--orange); }
.italic { font-style: italic; color: var(--orange); }
.muted { color: rgba(0, 39, 80, .42); }

h1, .h1 {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -.02em;
}
h2, .h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.18;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -.015em;
}
.h3 {
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.2;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -.015em;
}
.lead { font-size: 18px; line-height: 28px; color: var(--ink-68); }
.body { font-size: 17px; line-height: 27px; color: var(--ink-68); }
.small { font-size: 16px; line-height: 25px; color: var(--ink-60); }
.kicker {
  font-size: 13px; font-weight: 600; line-height: 18px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--orange);
}

/* ---------- Buttons (flèche animée de la maquette) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 100px; cursor: pointer;
  padding: 5px 5px 5px 24px;
  font-size: 17px; font-weight: 500; line-height: 26px;
  --ax: 0px;
  transition: background .3s, box-shadow .35s, transform .35s, color .3s;
}
.btn--sm { padding: 4px 4px 4px 20px; font-size: 16px; line-height: 24px; }
.btn__ico {
  width: 44px; height: 44px; border-radius: 100px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.btn--sm .btn__ico { width: 40px; height: 40px; }
.btn__arrow { position: relative; width: 18px; height: 18px; overflow: hidden; display: block; }
.btn--sm .btn__arrow { width: 16px; height: 16px; }
.btn__arrow svg { position: absolute; inset: 0; transition: transform .4s var(--ease); }
.btn__arrow svg:first-child { transform: translate3d(var(--ax), calc(-1 * var(--ax)), 0); }
.btn__arrow svg:last-child { transform: translate3d(calc(var(--ax) - 100%), calc(100% - var(--ax)), 0); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy .btn__ico { background: #fff; }
.btn--navy:hover { background: var(--orange); --ax: 16px; }

.btn--white { background: #fff; color: var(--navy); }
.btn--white .btn__ico { background: var(--navy); }
.btn--white:hover { --ax: 16px; box-shadow: 0 14px 36px rgba(0, 0, 0, .28); transform: translateY(-2px); }

.btn--white-orange { background: #fff; color: var(--navy); }
.btn--white-orange .btn__ico { background: var(--orange); }
.btn--white-orange:hover { --ax: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); transform: translateY(-2px); }

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, .34); color: #fff;
  padding: 14px 26px; background: none;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }

.btn--outline {
  border: 1px solid var(--line-strong); color: var(--navy);
  padding: 13px 26px; background: #fff;
}
.btn--outline:hover { border-color: var(--navy); background: #F4F6F9; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 20px 0; pointer-events: none;
}
.header__inner { max-width: var(--container); margin: 0 auto; pointer-events: auto; }
.header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 10px 10px 10px 24px;
  box-shadow: 0 10px 34px rgba(0, 39, 80, .08);
}
.header__logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  font-size: 15px; font-weight: 500; line-height: 24px;
  padding: 8px 12px; border-radius: 100px;
  color: rgba(0, 39, 80, .72);
  transition: background .25s, color .25s;
  white-space: nowrap;
}
.nav a:hover { background: rgba(0, 39, 80, .05); }
.nav a.is-active { color: var(--orange); }
.burger {
  display: none; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 100px; background: var(--navy); cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff; border-radius: 2px;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,20,42,.72) 0%, rgba(0,20,42,.38) 34%, rgba(0,20,42,.30) 62%, rgba(0,20,42,.78) 100%);
}
.hero__inner {
  position: relative; z-index: 1; width: 100%; max-width: var(--container); margin: 0 auto;
  padding: 190px 20px 96px; flex: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; flex-wrap: wrap;
}
.hero__col { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 660px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 72px); color: #fff; }
.hero h1 .italic { color: var(--orange-light); font-weight: 500; }
.hero p { font-size: 18px; line-height: 28px; color: rgba(255, 255, 255, .82); max-width: 520px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(10px); border-radius: 100px; padding: 8px 16px 8px 12px;
  font-size: 14px; font-weight: 500; line-height: 20px; color: #fff;
}
.dot { position: relative; width: 8px; height: 8px; display: block; flex: none; }
.dot i, .dot b { position: absolute; inset: 0; border-radius: 100px; background: var(--orange); display: block; }
.dot b { animation: mdePulse 2.4s ease-out infinite; }

/* ---------- Cartes ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.card--hover { transition: transform .4s, box-shadow .4s; }
.card--hover:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0, 39, 80, .10); }
.card--navy { background: var(--navy); border-color: transparent; color: rgba(255, 255, 255, .72); }
.card--navy .card__title, .card--navy h2, .card--navy h3 { color: #fff; }
.card__title { font-size: 22px; font-weight: 600; line-height: 30px; color: var(--navy); }
.card__ico {
  width: 56px; height: 56px; border-radius: 100px; background: #F1F4F8; flex: none;
  display: flex; align-items: center; justify-content: center;
}

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 20px; }

/* Carte média (services) */
.mcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  --sc: 1; --ax: 0px; transition: box-shadow .4s, transform .4s;
}
.mcard:hover { box-shadow: 0 26px 54px rgba(0, 39, 80, .12); transform: translateY(-6px); --sc: 1.06; --ax: 14px; }
.mcard__media { height: 230px; overflow: hidden; background: #E9ECF0; }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--sc)); transition: transform .8s cubic-bezier(.2, 0, .2, 1); }
.mcard__body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.mcard__title { font-size: 24px; font-weight: 500; line-height: 32px; color: var(--navy); }
.mcard__foot { display: flex; align-items: center; gap: 8px; padding-top: 6px; font-size: 16px; font-weight: 500; color: var(--navy); }

/* Chiffres */
.stat__num { font-size: clamp(34px, 4vw, 52px); line-height: 1; font-weight: 500; color: var(--navy); display: flex; align-items: flex-end; gap: 2px; }
.stat__label { font-size: 15px; line-height: 22px; color: var(--ink-55); }

/* Liste à puces check */
.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 500; color: var(--navy); }
.checks svg { flex: none; margin-top: 3px; }
ul.checks { list-style: none; margin: 0; padding: 0; }

/* ---------- Accordéons (services + FAQ) ---------- */
.acc__item { border-top: 1px solid var(--line-strong); padding: 22px 0; cursor: pointer; }
.acc__item:last-child { border-bottom: 1px solid var(--line-strong); }
.acc__head { display: flex; align-items: baseline; gap: 16px; }
.acc__num { font-size: 16px; font-weight: 600; line-height: 24px; color: var(--ink-45); flex: none; transition: color .3s; }
.acc__title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; line-height: 1.3; color: var(--ink-45); transition: color .3s; }
.acc__panel { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .55s var(--ease), opacity .4s; }
.acc__item.is-open .acc__num { color: var(--orange); }
.acc__item.is-open .acc__title { color: var(--navy); }
.acc__item.is-open .acc__panel { max-height: 420px; opacity: 1; }
.acc__inner { padding: 16px 0 4px 32px; display: flex; flex-direction: column; gap: 16px; }

.faq__item { border-bottom: 1px solid var(--line-strong); padding: 24px 0; cursor: pointer; }
.faq__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.faq__q { font-size: 19px; font-weight: 500; line-height: 28px; color: var(--navy); }
.faq__plus { width: 28px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center; transition: transform .4s var(--ease); }
.faq__item.is-open .faq__plus { transform: rotate(135deg); }
.faq__a { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .5s var(--ease), opacity .35s; }
.faq__item.is-open .faq__a { max-height: 320px; opacity: 1; }
.faq__a p { padding-top: 12px; font-size: 16px; line-height: 26px; color: var(--ink-60); max-width: 620px; }

/* Visuel synchronisé avec l'accordéon */
.svcmedia { flex: 1 1 420px; position: relative; border-radius: var(--radius); overflow: hidden; min-height: 540px; background: #E9ECF0; }
.svcmedia img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.svcmedia img.is-on { opacity: 1; }

/* Onglets valeurs */
.tabs { display: flex; gap: 28px; flex-wrap: wrap; }
.tab { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 17px; font-weight: 500; color: var(--ink-45); transition: color .3s; background: none; border: 0; padding: 0; }
.tab i { width: 8px; height: 8px; border-radius: 100px; background: var(--orange); display: none; }
.tab.is-on { color: var(--navy); }
.tab.is-on i { display: block; }
.tabpanels { position: relative; min-height: 128px; }
.tabpanels p { position: absolute; inset: 0; font-size: 16px; line-height: 26px; color: var(--ink-60); opacity: 0; transition: opacity .45s; pointer-events: none; }
.tabpanels p.is-on { opacity: 1; pointer-events: auto; }

/* Bandeau défilant */
.marquee { overflow: hidden; padding: 22px 0; border-top: 1px solid rgba(0,39,80,.09); border-bottom: 1px solid rgba(0,39,80,.09); }
.marquee__track { display: flex; width: max-content; animation: mdeMarquee 32s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee__group span { font-size: 22px; font-weight: 500; color: rgba(0, 39, 80, .34); white-space: nowrap; }
.marquee__group i { width: 7px; height: 7px; border-radius: 100px; background: var(--orange); flex: none; }

/* ---------- Tarifs ---------- */
.price {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 20px;
  transition: transform .4s, box-shadow .4s, border-color .3s;
}
.price:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(0, 39, 80, .12); }
.price--best { border-color: var(--orange); box-shadow: 0 20px 44px rgba(231, 114, 41, .14); }
.price__tag {
  position: absolute; top: -13px; left: 32px;
  background: var(--orange); color: #fff; border-radius: 100px;
  padding: 5px 14px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.price__name { font-size: 20px; font-weight: 600; line-height: 28px; color: var(--navy); }
.price__amount { font-size: clamp(32px, 3.4vw, 42px); line-height: 1.05; font-weight: 600; color: var(--navy); letter-spacing: -.02em; }
.price__amount small { font-size: 16px; font-weight: 500; color: var(--ink-55); letter-spacing: 0; }
.price ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 23px; color: var(--ink-60); }
.price ul li svg { flex: none; margin-top: 3px; }

/* ---------- Étapes ---------- */
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line-strong); }
.step:last-child { border-bottom: 1px solid var(--line-strong); }
.step__n {
  width: 46px; height: 46px; flex: none; border-radius: 100px;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: var(--orange);
}
.step__t { font-size: 20px; font-weight: 500; line-height: 28px; color: var(--navy); }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 220px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--navy); }
.input, textarea.input, select.input {
  width: 100%; border: 1px solid rgba(0, 39, 80, .16); border-radius: 10px;
  padding: 13px 16px; font-size: 16px; background: #FAFBFC; outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.input:focus { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(0, 39, 80, .06); }
textarea.input { resize: vertical; line-height: 24px; font-family: inherit; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(0, 39, 80, .16); border-radius: 100px; padding: 9px 16px;
  font-size: 15px; font-weight: 500; color: var(--navy); cursor: pointer;
  background: #fff; transition: border-color .25s, background .25s, color .25s;
}
.chip:hover { border-color: var(--navy); background: #F4F6F9; }
.chip input { accent-color: var(--orange); width: 15px; height: 15px; }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.form-note { font-size: 14px; line-height: 21px; color: rgba(0, 39, 80, .5); max-width: 300px; }
.error { font-size: 13px; color: #C4381B; display: none; }
.field.has-error .input { border-color: #C4381B; background: #FEF6F4; }
.field.has-error .error { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); padding: clamp(56px, 7vw, 100px) 20px 40px; }
.footer .wrap { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.footer__top { display: flex; gap: clamp(32px, 5vw, 64px); flex-wrap: wrap; justify-content: space-between; }
.footer__news { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; max-width: 400px; }
.footer__news > div:first-child { font-size: 22px; font-weight: 500; line-height: 30px; color: #fff; }
.footer__field {
  display: flex; align-items: center; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 100px; padding: 6px 6px 6px 20px; gap: 12px;
}
.footer__field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 16px; color: #fff; }
.footer__field input::placeholder { color: rgba(255, 255, 255, .5); }
.footer__field button {
  background: var(--orange); border: 0; border-radius: 100px; padding: 11px 22px;
  font-size: 15px; font-weight: 500; color: #fff; cursor: pointer; flex: none; transition: background .3s, color .3s;
}
.footer__field button:hover { background: #fff; color: var(--navy); }
.footer__cols { display: flex; gap: clamp(32px, 5vw, 72px); flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 16px; }
.footer__col > div:first-child { font-size: 17px; font-weight: 600; color: #fff; }
.footer__col nav { display: flex; flex-direction: column; gap: 12px; }
.footer a, .footer__col div:not(:first-child) { font-size: 16px; color: rgba(255, 255, 255, .66); transition: color .25s; }
.footer a:hover { color: var(--orange-light); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 32px;
}
.footer__logo { height: 32px; width: auto; display: block; }
.footer__legal { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 15px; color: rgba(255, 255, 255, .55); }
.footer__legal a { font-size: 15px; color: rgba(255, 255, 255, .55); }
.footer__legal a:hover { color: #fff; }
.footer__legal i { width: 5px; height: 5px; border-radius: 100px; background: rgba(255, 255, 255, .3); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translate3d(0, 26px, 0); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2,0,.2,1), transform .8s cubic-bezier(.2,0,.2,1); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__bar { padding: 10px 10px 10px 20px; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 78px; left: 20px; right: 20px;
    background: #fff; border: 1px solid var(--line); border-radius: 24px;
    padding: 12px; box-shadow: 0 20px 50px rgba(0, 39, 80, .14);
  }
  .nav.is-open a { padding: 12px 16px; font-size: 17px; }
}
@media (max-width: 720px) {
  .hero__inner { padding: 150px 20px 64px; }
  .page-head { padding: 130px 20px 0; }
  .header__cta { display: none; }
  .card, .price, .mcard__body { padding: 24px; }
  .step { gap: 16px; }
  .acc__inner { padding-left: 0; }
}

/* ============================================================
   Parcours simulateur — écran plein, une question par étape
   (structure inspirée des parcours de tunnel type Effy,
    habillée aux couleurs Maison de l'énergie)
   ============================================================ */

body.is-funnel { background: #EEF2F8; }

.funnel { display: flex; flex-direction: column; min-height: 100vh; }

/* --- Barre supérieure ------------------------------------------------ */
.fnl__top {
  position: sticky; top: 0; z-index: 20; background: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 24px;
}
.fnl__brand { display: flex; align-items: center; gap: 20px; min-width: 0; }
.fnl__brand img { height: 30px; width: auto; }
.fnl__sect { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.fnl__sect b { font-size: 15px; font-weight: 700; color: var(--navy); }
.fnl__sect span { font-size: 15px; font-weight: 500; color: var(--orange); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fnl__phone {
  display: flex; align-items: center; gap: 8px; flex: none;
  background: var(--orange); color: #fff; border-radius: 12px;
  padding: 11px 16px; font-size: 15px; font-weight: 600;
  transition: background .25s, transform .25s;
}
.fnl__phone:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }
.fnl__phone span { display: none; }
@media (min-width: 720px) { .fnl__phone span { display: inline; } }

.fnl__progress { height: 4px; background: #DCE4EF; position: sticky; top: 58px; z-index: 20; }
.fnl__progress i { display: block; height: 100%; width: 0; background: var(--navy); transition: width .45s var(--ease); }

/* --- Corps ------------------------------------------------------------ */
.fnl__body { flex: 1; padding: 0 20px 140px; }
.fnl__back {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer;
  padding: 20px 0 0; font-size: 16px; font-weight: 600; color: var(--navy);
  transition: color .25s;
}
.fnl__back:hover { color: var(--orange); }
.fnl__back[hidden] { display: none; }

.fnl__stage { max-width: 470px; margin: 0 auto; padding-top: clamp(24px, 6vh, 64px); }
.fnl__stage.is-wide { max-width: 720px; }

.fnl__pill {
  display: inline-block; background: rgba(231, 114, 41, .12); color: var(--orange);
  border-radius: 100px; padding: 6px 14px; font-size: 14px; font-weight: 600; margin-bottom: 18px;
}
.fnl__q {
  font-size: clamp(21px, 2.6vw, 26px); line-height: 1.3; font-weight: 700;
  color: var(--navy); letter-spacing: -.01em;
}
.fnl__sub { font-size: 17px; font-weight: 600; color: var(--navy); margin-top: 26px; }
.fnl__note {
  background: #FDF4EA; border: 1px solid #F5DEC5; border-radius: 12px;
  padding: 16px 18px; margin-top: 20px;
  font-size: 15px; line-height: 23px; color: #7A5326;
}
.fnl__note strong { color: #5E3D17; }
.fnl__group { font-size: 16px; font-weight: 700; color: var(--navy); margin: 26px 0 12px; }

/* --- Lignes-options --------------------------------------------------- */
.fnl__opts { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.fnl__opt {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  background: #fff; border: 1px solid transparent; border-radius: 14px;
  padding: 14px 18px; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 39, 80, .06);
  transition: background .2s, border-color .2s, box-shadow .25s, transform .2s;
}
.fnl__opt:hover { background: #E9EFF8; border-color: rgba(0, 39, 80, .18); transform: translateY(-1px); }
.fnl__opt:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fnl__opt__ico {
  width: 42px; height: 42px; flex: none; border-radius: 12px; background: #F1F4F9;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.fnl__opt__txt { flex: 1; min-width: 0; }
.fnl__opt__t { display: block; font-size: 17px; font-weight: 500; color: var(--navy); }
.fnl__opt__d { display: block; font-size: 14px; line-height: 20px; color: var(--ink-55); margin-top: 2px; }
.fnl__opt__mark {
  width: 24px; height: 24px; flex: none; border: 1.5px solid rgba(0, 39, 80, .3);
  border-radius: 100px; position: relative; transition: border-color .2s, background .2s;
}
.fnl__opt--multi .fnl__opt__mark { border-radius: 7px; }
.fnl__opt__mark::after {
  content: ""; position: absolute; inset: 4px; border-radius: inherit;
  background: var(--orange); transform: scale(0); transition: transform .2s var(--ease);
}
.fnl__opt.is-on { border-color: var(--navy); background: #E9EFF8; }
.fnl__opt.is-on .fnl__opt__mark { border-color: var(--navy); }
.fnl__opt.is-on .fnl__opt__mark::after { transform: scale(1); }

/* --- Champs ----------------------------------------------------------- */
.fnl__field { margin-top: 26px; }
.fnl__field label { display: block; font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.fnl__input {
  width: 100%; background: #fff; border: 1px solid transparent; border-radius: 12px;
  padding: 16px 18px; font-size: 18px; font-weight: 500; color: var(--navy);
  box-shadow: 0 2px 10px rgba(0, 39, 80, .06); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.fnl__input::placeholder { color: rgba(0, 39, 80, .32); font-weight: 400; }
.fnl__input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0, 39, 80, .08); }
.fnl__input.is-bad { border-color: #C4381B; box-shadow: 0 0 0 4px rgba(196, 56, 27, .1); }
.fnl__unit { position: relative; }
.fnl__unit em {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: 16px; font-weight: 500; color: var(--ink-55);
}
.fnl__skip {
  display: inline-block; margin-top: 16px; background: none; border: 0; padding: 0;
  font-size: 15px; font-weight: 600; color: var(--orange); cursor: pointer; text-decoration: underline;
}
.fnl__err { display: none; margin-top: 8px; font-size: 14px; color: #C4381B; }
.fnl__err.is-on { display: block; }

/* --- Barre d'action collée en bas ------------------------------------- */
.fnl__bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 39, 80, .08);
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  display: flex; justify-content: center;
}
.fnl__bar[hidden] { display: none; }
.fnl__next {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 260px; border: 0; border-radius: 100px; cursor: pointer;
  background: var(--navy); color: #fff; padding: 15px 30px;
  font-size: 17px; font-weight: 600;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.fnl__next:hover:not([disabled]) { background: var(--orange); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(231, 114, 41, .3); }
.fnl__next[disabled] { background: #D7DEE8; color: #93A2B5; cursor: default; }

/* --- Réassurance ------------------------------------------------------ */
.fnl__trust {
  max-width: 470px; margin: 40px auto 0; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 10px 20px;
  font-size: 14px; color: var(--ink-55);
}
.fnl__trust span { display: inline-flex; align-items: center; gap: 6px; }
.fnl__trust b { color: var(--navy); }
.fnl__trust i { width: 4px; height: 4px; border-radius: 100px; background: rgba(0, 39, 80, .25); margin-right: 8px; }

/* --- Écran de résultat ------------------------------------------------ */
.res {
  background: #fff; border-radius: 20px; padding: clamp(24px, 3.4vw, 40px);
  box-shadow: 0 8px 40px rgba(0, 39, 80, .09);
}
.res__hat { font-size: 16px; font-weight: 500; color: var(--ink-60); }
.res__big {
  font-size: clamp(44px, 7vw, 68px); line-height: 1; font-weight: 700;
  color: var(--navy); letter-spacing: -.03em; margin: 10px 0 6px;
}
.res__sub { font-size: 16px; line-height: 24px; color: var(--ink-60); }
.res__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 26px; }
.res__tile { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #FAFBFD; }
.res__tile b { display: block; font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.res__tile span { display: block; font-size: 13px; line-height: 19px; color: var(--ink-60); margin-top: 4px; }
.res__tile--accent { background: #FDF4EA; border-color: #F5DEC5; }
.res__tile--accent b { color: var(--orange); }

.res__bar { height: 14px; border-radius: 100px; background: #E4E9F1; overflow: hidden; display: flex; margin-top: 26px; }
.res__bar i { display: block; height: 100%; transition: width .8s var(--ease); }
.res__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 14px; color: var(--ink-60); }
.res__legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 7px; }
.res__line { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.res__line:last-child { border-bottom: 0; }
.res__line b { color: var(--navy); font-weight: 600; text-align: right; }
.res__warn {
  background: #FDF4EA; border: 1px solid #F5DEC5; border-radius: 12px; padding: 16px 18px;
  margin-top: 22px; font-size: 15px; line-height: 23px; color: #7A5326;
}
.res__form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.res__form .row { gap: 14px; }
.disclaimer { font-size: 13px; line-height: 20px; color: rgba(0, 39, 80, .45); }

@media (max-width: 560px) {
  .fnl__top { padding: 12px 16px; }
  .fnl__progress { top: 54px; }
  .fnl__opt { padding: 12px 14px; gap: 12px; }
  .fnl__opt__ico { width: 38px; height: 38px; font-size: 19px; }
  .fnl__next { width: 100%; min-width: 0; }
}
