/* Mon Bilan Combles : feuille de style de la landing.
   Les valeurs ci-dessous recopient les tokens du design system (tokens.json).
   Si un token change dans le design system, le changer ici aussi, et nulle part ailleurs. */

@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Variable.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --sapin: #173f35; --sapin-700: #2c5347; --sapin-500: #4d6259;
  --laine: #f0b429; --laine-foncee: #d99a0b; --laine-sombre: #c08508; --laine-pale: #fcefc7; --sur-laine: var(--sapin);
  --mousse: #2d6a56; --mousse-pale: #dcebe3;
  --lin: #f6f4ec; --lin-fonce: #e9e5d6; --blanc: #ffffff;
  --erreur: #a01a4a; --erreur-pale: #f9e1ea;
  --bordure: #6c7a72; --ligne: #d9d4c3; --focus: var(--sapin);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --ombre-carte: 0 1px 2px rgba(23, 63, 53, 0.06), 0 6px 16px rgba(23, 63, 53, 0.06);
  --ombre-formulaire: 0 2px 4px rgba(23, 63, 53, 0.06), 0 18px 40px rgba(23, 63, 53, 0.14);
  --font-titre: Fraunces, Georgia, "Times New Roman", serif;
  --font-texte: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lin); color: var(--sapin); font-family: var(--font-texte); font-size: 17px; line-height: 27px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--mousse); text-underline-offset: 3px; }
a:hover { color: var(--sapin); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-titre); font-weight: 600; margin: 0; }
p { margin: 0; }
sup { font-size: .65em; line-height: 0; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.conteneur { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-16) 0; }
.section--alt { background: var(--lin-fonce); }
.section--pale { background: var(--laine-pale); }
.section--blanc { background: var(--blanc); }
.section--mousse { background: var(--mousse-pale); }
.surtitre { margin-bottom: var(--space-4); font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mousse); }
.titre-1 { font-size: 30px; line-height: 36px; letter-spacing: -.01em; margin-bottom: var(--space-4); max-width: 880px; }
.titre-1 em { font-style: normal; background: linear-gradient(transparent 64%, var(--laine) 64%, var(--laine) 92%, transparent 92%); }
.titre-3 { font-size: 20px; line-height: 26px; }
.intro { max-width: 680px; font-size: 18px; line-height: 28px; color: var(--sapin-700); margin-bottom: var(--space-8); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.note { margin-top: var(--space-6); max-width: 880px; font-size: 14px; line-height: 21px; color: var(--sapin-500); }
.carte { background: var(--blanc); border-radius: var(--radius-lg); box-shadow: var(--ombre-carte); padding: var(--space-6); }
.appel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-8); }
.appel span { font-size: 15px; line-height: 22px; color: var(--sapin-700); }
.lien-evitement { position: absolute; left: var(--space-4); top: -100px; background: var(--sapin); color: var(--lin); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); z-index: 10; }
.lien-evitement:focus { top: var(--space-4); color: var(--lin); outline-color: var(--laine); }

/* ---------- Bouton ---------- */
.mbc-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 56px; padding: 0 var(--space-6); border: 0; border-radius: var(--radius-md); background: var(--laine-foncee); color: var(--blanc); font-family: var(--font-texte); font-size: 17px; line-height: 24px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
.mbc-btn:hover { background: var(--laine-sombre); color: var(--blanc); }
.mbc-btn--bloc { display: flex; width: 100%; }
.mbc-btn--secondaire { background: transparent; color: var(--sapin); box-shadow: inset 0 0 0 2px var(--sapin); }
.mbc-btn--secondaire:hover { background: var(--sapin); color: var(--lin); }
.mbc-btn[disabled] { background: var(--ligne); color: var(--sapin-700); cursor: wait; }
.mbc-lien-retour { display: block; margin: var(--space-4) auto 0; background: none; border: 0; padding: var(--space-2); font: inherit; font-size: 15px; font-weight: 600; color: var(--sapin-700); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mbc-lien-retour[hidden] { display: none; }

/* ---------- Champ ---------- */
.mbc-champ { display: grid; gap: var(--space-2); }
.mbc-champ__label { font-size: 15px; line-height: 22px; font-weight: 700; }
.mbc-champ__input { height: 56px; width: 100%; padding: 0 var(--space-4); border: 1.5px solid var(--bordure); border-radius: var(--radius-md); background: var(--blanc); color: var(--sapin); font-family: var(--font-texte); font-size: 17px; line-height: 24px; }
.mbc-champ__input::placeholder { color: var(--sapin-500); opacity: 1; }
.mbc-champ__input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--sapin); }
.mbc-champ__erreur { display: none; align-items: flex-start; gap: var(--space-1); font-size: 14px; line-height: 21px; font-weight: 600; color: var(--erreur); }
.mbc-champ__erreur .ico { width: 16px; height: 16px; margin-top: 3px; }
.mbc-champ--erreur .mbc-champ__input { border: 2px solid var(--erreur); }
.mbc-champ--erreur .mbc-champ__erreur { display: flex; }
.mbc-case { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); align-items: start; font-size: 14px; line-height: 21px; color: var(--sapin-700); }
.mbc-case input { width: 24px; height: 24px; margin: 0; accent-color: var(--sapin); }

/* ---------- Option : une réponse par carte ---------- */
.mbc-options { display: grid; gap: var(--space-3); }
.mbc-option { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 60px; padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2); border-radius: var(--radius-md); background: var(--lin); box-shadow: inset 0 0 0 1.5px var(--ligne); cursor: pointer; transition: box-shadow .15s ease, background-color .15s ease; }
.mbc-option:hover { box-shadow: inset 0 0 0 1.5px var(--bordure); }
.mbc-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.mbc-option__icone { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: var(--radius-md); }
.mbc-option__icone--laine { background: var(--laine); }
.mbc-option__icone--mousse { background: var(--mousse-pale); }
.mbc-option__icone--lin { background: var(--lin-fonce); }
.mbc-option__texte { flex: 1; display: grid; padding-left: var(--space-2); line-height: 22px; }
.mbc-option__icone + .mbc-option__texte { padding-left: 0; }
.mbc-option__texte b { font-weight: 600; }
.mbc-option__texte small { font-size: 14px; line-height: 20px; color: var(--sapin-500); }
.mbc-option__rond { width: 24px; height: 24px; flex: none; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 2px var(--bordure); }
.mbc-option:has(input:checked) { background: var(--laine-pale); box-shadow: inset 0 0 0 2px var(--sapin); }
.mbc-option:has(input:checked) .mbc-option__rond { background: var(--sapin); box-shadow: inset 0 0 0 5px var(--laine-pale), 0 0 0 2px var(--sapin); }
.mbc-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Réassurance ---------- */
.mbc-pastille { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3); border-radius: var(--radius-pill); background: var(--mousse-pale); color: var(--sapin); font-size: 15px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.mbc-pastille .ico { width: 18px; height: 18px; color: var(--mousse); stroke-width: 2.5; }
.mbc-liste-coches { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.mbc-liste-coches li { display: flex; align-items: flex-start; gap: var(--space-3); }
.mbc-liste-coches .ico { width: 22px; height: 22px; margin-top: 3px; color: var(--mousse); stroke-width: 2.5; }

/* ---------- En-tête ---------- */
.entete.conteneur { display: flex; align-items: center; padding-top: var(--space-6); padding-bottom: var(--space-6); }
.entete__logo img { display: block; height: 36px; width: auto; }

/* ---------- Accroche ---------- */
.hero { position: relative; margin: 0 var(--space-2); padding: var(--space-8) 0; border-radius: calc(var(--radius-lg) * 1.5); background: var(--sapin); color: var(--lin); overflow: hidden; }
.hero__grille { position: relative; display: grid; gap: var(--space-8); padding-left: var(--space-4); padding-right: var(--space-4); }
.hero h1 { font-size: 34px; line-height: 40px; letter-spacing: -.01em; margin-bottom: var(--space-4); }
.hero h1 em { font-style: normal; color: var(--laine); }
.hero__texte p { max-width: 520px; font-size: 18px; line-height: 28px; }
.hero__texte p + p { margin-top: var(--space-3); }
.hero__texte .hero__chiffre { margin-top: var(--space-6); font-weight: 600; }
.hero__texte .hero__source { margin-top: var(--space-1); font-size: 14px; line-height: 21px; opacity: .8; }

/* ---------- Formulaire ---------- */
.form { background: var(--blanc); color: var(--sapin); border-radius: var(--radius-lg); box-shadow: var(--ombre-formulaire); padding: var(--space-6); scroll-margin-top: var(--space-4); }
.form__progres { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.form__segments { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-1); }
.form__segments i { height: 6px; border-radius: var(--radius-pill); background: var(--lin-fonce); transition: background-color .2s ease; }
.form__segments i.est-fait { background: var(--mousse); }
.form__duree { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--sapin-500); white-space: nowrap; }
.form__pas { display: none; gap: var(--space-4); border: 0; padding: 0; margin: 0; min-width: 0; }
.form__pas.est-actif { display: grid; }
.form__question { padding: 0; font-family: var(--font-titre); font-weight: 600; font-size: 24px; line-height: 30px; letter-spacing: -.005em; }
legend.form__question { margin-bottom: var(--space-3); }
.form__pourquoi { font-size: 15px; line-height: 22px; color: var(--sapin-500); }
.form__piege { position: absolute; left: -9999px; }
.form__message { display: none; padding: var(--space-4); border-radius: var(--radius-md); background: var(--erreur-pale); color: var(--erreur); font-size: 15px; line-height: 23px; font-weight: 600; }
.form__message.est-visible { display: block; }
.form__merci { display: none; gap: var(--space-4); justify-items: start; }
.form__merci.est-visible { display: grid; }
.form__merci .ico { width: 48px; height: 48px; padding: var(--space-3); border-radius: var(--radius-pill); background: var(--mousse-pale); color: var(--mousse); stroke-width: 2.5; }
.form__merci h2 { font-size: 24px; line-height: 30px; }

/* ---------- Garanties ---------- */
.garanties { display: grid; gap: var(--space-3); margin: var(--space-6) 0 var(--space-12); padding: 0; list-style: none; }
.garanties li { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--blanc); box-shadow: inset 0 0 0 1px var(--ligne); line-height: 22px; }
.garanties li span:last-child { display: grid; }
.garanties b { font-weight: 700; }
.garanties small { font-size: 14px; line-height: 20px; color: var(--sapin-500); }
.garanties__icone { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: var(--radius-md); }
.garanties__icone--laine { background: var(--laine); }
.garanties__icone--mousse { background: var(--mousse-pale); }
.garanties__icone--lin { background: var(--lin-fonce); }

/* ---------- Le constat ---------- */
.constat { display: grid; gap: var(--space-4); align-items: start; }
.carte__titre { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-4); margin-bottom: var(--space-6); font-weight: 700; }
.carte__titre span { font-size: 14px; font-weight: 400; color: var(--sapin-500); }
.barres { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.barres li { display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-4); font-size: 15px; line-height: 22px; }
.barres b { font-weight: 600; }
.barres span { color: var(--sapin-500); font-weight: 600; font-variant-numeric: tabular-nums; }
.barres i { grid-column: 1 / -1; height: 10px; border-radius: var(--radius-pill); background: var(--lin); overflow: hidden; }
.barres i::before { content: ""; display: block; height: 100%; width: var(--part); border-radius: var(--radius-pill); background: var(--mousse); }
.barres li.est-toit span { padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--laine-pale); color: var(--sapin); }
.barres li.est-toit i::before { background: var(--laine); }
.carte--sombre { background: var(--sapin); color: var(--lin); box-shadow: var(--ombre-formulaire); overflow: hidden; }
.carte__photo { display: block; width: calc(100% + 2 * var(--space-6)); max-width: none; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-6); }
.carte__photo { aspect-ratio: 3 / 2; }
.carte--sombre .surtitre { color: var(--laine); }
.carte--sombre h3 { font-size: 28px; line-height: 34px; letter-spacing: -.01em; margin-bottom: var(--space-4); }

/* ---------- Les aides ---------- */
.aides { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.aide { padding: var(--space-6); border-radius: var(--radius-lg); font-size: 15px; line-height: 23px; }
.aide--laine { background: var(--laine); }
.aide--mousse { background: var(--mousse-pale); }
.aide--lin { background: var(--lin-fonce); }
.aide--sapin { background: var(--sapin); color: var(--lin); }
.aide__icone { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: var(--space-4); border-radius: var(--radius-md); background: var(--blanc); color: var(--sapin); }
.aide__chiffre { font-family: var(--font-titre); font-weight: 600; font-size: 36px; line-height: 40px; letter-spacing: -.015em; }
.aide__nom { margin: var(--space-1) 0 var(--space-2); font-size: 16px; font-weight: 700; }

/* ---------- Étapes ---------- */
.etapes { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.etapes li { position: relative; counter-increment: etape; background: var(--blanc); border-radius: var(--radius-lg); padding: var(--space-6); font-size: 15px; line-height: 23px; }
.etapes li::before { content: counter(etape); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: var(--space-4); border-radius: var(--radius-md); background: var(--sapin); color: var(--lin); font-weight: 700; font-size: 17px; }
.etapes li > .ico { position: absolute; top: var(--space-6); right: var(--space-6); width: 24px; height: 24px; margin-top: 6px; color: var(--sapin-500); stroke-width: 2; }
.etapes li.est-cle { background: var(--laine); }
.etapes li.est-cle > .ico { color: var(--sapin); }
.etapes h3 { margin-bottom: var(--space-2); }
.etapes p { color: var(--sapin-700); }
.etapes li.est-cle p { color: var(--sapin); }

/* ---------- Perdus ou aménagés ---------- */
.types { display: grid; gap: var(--space-4); }
.type { display: grid; gap: var(--space-4); align-content: start; font-size: 15px; line-height: 23px; overflow: hidden; }
.type__photo { display: block; width: calc(100% + 2 * var(--space-6)); max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-6); }
.faq details { border-bottom: 1px solid var(--bordure); }
.faq details:first-of-type { border-top: 1px solid var(--bordure); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; font-family: var(--font-titre); font-weight: 600; font-size: 20px; line-height: 26px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: var(--space-1); border-right: 2.5px solid var(--sapin); border-bottom: 2.5px solid var(--sapin); transform: rotate(45deg) translate(-3px, -3px); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 var(--space-6); color: var(--sapin-700); max-width: 680px; }

/* ---------- Appel final ---------- */
.final { position: relative; background: var(--sapin); color: var(--lin); text-align: center; }
.final .conteneur { position: relative; }
.final h2 em { font-style: normal; color: var(--laine); background: none; box-shadow: none; }
.final h2 { color: var(--lin); margin-left: auto; margin-right: auto; }
.final h2 { margin-bottom: var(--space-4); }
.final .intro { margin: 0 auto var(--space-8); color: var(--lin); }
.final .mbc-btn:focus-visible { outline-color: var(--laine); }

/* ---------- Pied de page ---------- */
.pied { background: var(--sapin); color: var(--lin); border-top: 1px solid var(--sapin-700); padding: var(--space-12) 0; font-size: 14px; line-height: 21px; }
.pied__grille { display: grid; gap: var(--space-6); }
.pied img { display: block; height: 36px; width: auto; }
.pied a { color: var(--lin); }
.pied a:hover { color: var(--laine); }
.pied a:focus-visible { outline-color: var(--laine); }
.pied nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.pied__mention { max-width: 560px; margin-top: var(--space-4); }
.pied__sources { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--sapin-700); font-size: 13px; line-height: 20px; color: var(--mousse-pale); }
.pied__sources p { max-width: 960px; }
.pied__sources p + p { margin-top: var(--space-3); }

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; padding-top: var(--space-8); padding-bottom: var(--space-16); }
.legal h1 { font-size: 36px; line-height: 42px; letter-spacing: -.01em; margin-bottom: var(--space-6); }
.legal h2 { font-size: 24px; line-height: 30px; margin: var(--space-12) 0 var(--space-4); }
.legal p, .legal ul { margin: 0 0 var(--space-4); }
.legal ul { padding-left: var(--space-6); }
.legal mark { background: var(--laine-pale); color: var(--sapin); padding: 2px var(--space-1); border-radius: 3px; font-weight: 600; }
.legal__alerte { background: var(--laine-pale); border-radius: var(--radius-md); padding: var(--space-4); margin-bottom: var(--space-8); font-size: 15px; line-height: 23px; }

/* ---------- À partir de 720px ---------- */
@media (min-width: 720px) {
  .conteneur { padding: 0 var(--space-8); }
  .section { padding: var(--space-24) 0; }
  .titre-1 { font-size: 40px; line-height: 46px; }
  .entete__logo img { height: 44px; }
  .hero { margin: 0 var(--space-4); padding: var(--space-12) 0; border-radius: calc(var(--radius-lg) * 2); }
  .form { padding: var(--space-8); }
  .garanties { grid-template-columns: repeat(3, 1fr); }
  .aides, .etapes { grid-template-columns: repeat(2, 1fr); }
  .types { grid-template-columns: repeat(2, 1fr); }
  .pied__grille { grid-template-columns: 1fr auto; align-items: start; }
}

/* ---------- À partir de 1000px ---------- */
@media (min-width: 1000px) {
  .conteneur { padding: 0 var(--space-16); }
  .hero { padding: var(--space-16) 0; }
  .hero__grille { grid-template-columns: 1fr 460px; gap: var(--space-16); align-items: center; padding-left: var(--space-12); padding-right: var(--space-12); }
  .hero h1 { font-size: 56px; line-height: 60px; letter-spacing: -.015em; margin-bottom: var(--space-6); }
  .hero__texte p { font-size: 20px; line-height: 30px; }
  .constat { grid-template-columns: 1.5fr 1fr; align-items: stretch; }
  .constat .carte--sombre { display: flex; flex-direction: column; }
  .constat .carte__photo { flex: 1 1 0; min-height: 200px; aspect-ratio: auto; }
  .aides, .etapes { grid-template-columns: repeat(4, 1fr); }
  .faq { grid-template-columns: 1fr 1.4fr; gap: var(--space-16); align-items: start; }
}

/* ---------- Bandeau cookies ---------- */
.cookies { position: fixed; left: var(--space-2); right: var(--space-2); bottom: var(--space-2); z-index: 20; display: grid; gap: var(--space-2); max-width: 760px; margin: 0 auto; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--blanc); color: var(--sapin); box-shadow: var(--ombre-formulaire), 0 0 0 1px var(--ligne); font-size: 14px; line-height: 20px; }
.cookies[hidden] { display: none; }
.cookies__boutons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.cookies__boutons button { min-height: 44px; padding: 0 var(--space-6); border: 0; border-radius: var(--radius-md); background: var(--sapin); color: var(--lin); font: inherit; font-weight: 700; cursor: pointer; }
.cookies__boutons button:hover { background: var(--sapin-700); }
.pied__cookies { background: none; border: 0; padding: 0; font: inherit; color: var(--lin); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pied__cookies:hover { color: var(--laine); }
.pied__cookies:focus-visible { outline-color: var(--laine); }
@media (min-width: 720px) {
  .cookies { grid-template-columns: 1fr auto; align-items: center; gap: var(--space-6); left: var(--space-4); right: var(--space-4); bottom: var(--space-4); padding: var(--space-4) var(--space-4) var(--space-4) var(--space-6); font-size: 15px; line-height: 22px; }
}

/* ---------- Mobile : la première question tient en entier sur le premier écran ---------- */
@media (max-width: 719px) {
  .entete.conteneur { padding-top: var(--space-3); padding-bottom: var(--space-3); }
  .entete__logo img { height: 32px; }
  .hero { padding: var(--space-4) 0 var(--space-6); }
  .hero__grille { gap: var(--space-4); padding-left: var(--space-3); padding-right: var(--space-3); }
  .hero__texte { display: contents; }
  .hero h1 { font-size: 26px; line-height: 30px; margin: 0; }
  .hero__texte p { order: 2; font-size: 16px; line-height: 24px; }
  .hero__texte .hero__chiffre { margin-top: 0; }
  .hero__texte .hero__source { margin-top: calc(-1 * var(--space-3)); }
  .form { padding: var(--space-4); }
  .form__progres { margin-bottom: var(--space-4); }
  .form__pas { gap: var(--space-3); }
  .form__question { font-size: 22px; line-height: 28px; }
  legend.form__question { margin-bottom: var(--space-2); }
  .mbc-options { gap: var(--space-2); }
  .mbc-option { min-height: 52px; padding-top: var(--space-1); padding-bottom: var(--space-1); }
  .mbc-option__icone { width: 36px; height: 36px; }
  .mbc-option__texte { line-height: 20px; }
  .mbc-option__texte small { font-size: 13px; line-height: 16px; }
}
@media (max-width: 719px) and (max-height: 600px) {
  .hero { padding-top: var(--space-3); }
  .hero h1 { font-size: 22px; line-height: 26px; }
  .form__question { font-size: 19px; line-height: 26px; }
}

/* ---------- Animations à l'apparition (activées par anim.js) ---------- */
.js-anim [data-anim] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; transition-delay: var(--delai, 0ms); }
.js-anim [data-anim].est-vu { opacity: 1; transform: none; }
.js-anim [data-barres] i::before { width: 0; transition: width .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delai, 0ms); }
.js-anim [data-barres].est-vu i::before { width: var(--part); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Fonds de section ----------
   Usage : <section class="section section--pale fond fond--chaleur">. */
:root {
--motif-rangs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='64' viewBox='0 0 48 64'%3E%3Cpath fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M12 22l12-10 12 10M36 54l12-10 12 10M-12 54l12-10 12 10'/%3E%3C/svg%3E");
--motif-tuiles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M0 2a24 24 0 0 0 48 0M-24 26a24 24 0 0 0 48 0M24 26a24 24 0 0 0 48 0M-24 -22a24 24 0 0 0 48 0M24 -22a24 24 0 0 0 48 0'/%3E%3C/svg%3E");
--motif-faitage-toits: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='144' viewBox='0 0 320 144'%3E%3Cpath fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M6 136L160 8L314 136M83 136L160 72L237 136M122 136L160 104L198 136'/%3E%3C/svg%3E");
--motif-faitage-isolant: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='144' viewBox='0 0 320 144'%3E%3Cpath fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M45 136L160 40L275 136'/%3E%3C/svg%3E");
--motif-chaleur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='288' viewBox='0 0 240 288'%3E%3Cpath fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M24 276q-12-16 0-32t0-32t0-32t0-32t0-32t0-32t0-32t0-32t0-32t0-32M72 180q-12-16 0-32t0-32t0-32t0-32t0-32t0-32t0-32M120 244q-12-16 0-32t0-32t0-32t0-32t0-32t0-32t0-32t0-32t0-32M168 148q-12-16 0-32t0-32t0-32t0-32t0-32t0-32M216 212q-12-16 0-32t0-32t0-32t0-32t0-32t0-32t0-32t0-32'/%3E%3C/svg%3E");
--motif-laine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='56' viewBox='0 0 192 56'%3E%3Crect y='40' width='192' height='16'/%3E%3Ccircle cx='-6' cy='40' r='18'/%3E%3Ccircle cx='20' cy='38' r='16'/%3E%3Ccircle cx='48' cy='32' r='20'/%3E%3Ccircle cx='80' cy='38' r='16'/%3E%3Ccircle cx='108' cy='30' r='22'/%3E%3Ccircle cx='140' cy='36' r='18'/%3E%3Ccircle cx='168' cy='32' r='20'/%3E%3Ccircle cx='186' cy='40' r='18'/%3E%3Ccircle cx='198' cy='40' r='18'/%3E%3Ccircle cx='34' cy='8' r='3'/%3E%3Ccircle cx='96' cy='3' r='3'/%3E%3Ccircle cx='150' cy='10' r='4'/%3E%3C/svg%3E");
--motif-pente: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='40' viewBox='0 0 96 40'%3E%3Cpath d='M-6 50L48 5L102 50Z' stroke='%23000' stroke-width='8' stroke-linejoin='round'/%3E%3C/svg%3E");
/* Bord droit du contenu : le motif de coin s'aligne sur le conteneur de 1200px. */
--fond-bord: max(var(--space-6), calc((100% - 1200px) / 2 + var(--space-6)));
}

/* La section devient le repère du motif. Le motif passe sous le contenu, jamais dessus. */
.fond { position: relative; isolation: isolate; }
.fond::before, .fond::after { position: absolute; z-index: -1; pointer-events: none; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* Rangs : petits toits en semis. Sur sapin (hero, appel final). */
.fond--rangs::before, .fond--rangs-mousse::before { content: ""; inset: 0; background: var(--lin); opacity: .07; -webkit-mask: var(--motif-rangs) 0 0 / var(--space-12) var(--space-16); mask: var(--motif-rangs) 0 0 / var(--space-12) var(--space-16); }
/* Rangs sur mousse-pale (étapes). */
.fond--rangs-mousse::before { background: var(--mousse); opacity: .13; }

/* Tuiles : écailles ton sur ton. Sur lin-fonce (FAQ). */
.fond--tuiles::before { content: ""; inset: 0; background: var(--ligne); opacity: .5; -webkit-mask: var(--motif-tuiles) 0 0 / var(--space-12) var(--space-12); mask: var(--motif-tuiles) 0 0 / var(--space-12) var(--space-12); }

/* Faîtage : un grand toit en coin haut droit, avec sa couche d'isolant en laine. Sur blanc (aides). */
.fond--faitage::before, .fond--faitage::after { content: ""; top: 0; right: var(--space-4); width: 142px; height: var(--space-16); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: right top; mask-position: right top; }
.fond--faitage::before { background: var(--lin-fonce); -webkit-mask-image: var(--motif-faitage-toits); mask-image: var(--motif-faitage-toits); }
.fond--faitage::after { background: var(--laine); -webkit-mask-image: var(--motif-faitage-isolant); mask-image: var(--motif-faitage-isolant); }

/* Chaleur : des ondes qui montent et sortent par le haut de la section. Sur laine-pale (constat). */
.fond--chaleur::before { content: ""; top: 0; right: var(--space-2); width: 80px; height: 96px; background: var(--laine); opacity: .55; -webkit-mask: var(--motif-chaleur) right top / contain no-repeat; mask: var(--motif-chaleur) right top / contain no-repeat; }

/* Laine : une couche d'isolant soufflé posée en bas de la section. Sur lin (perdus ou aménagés). */
.fond--laine::before { content: ""; left: 0; right: 0; bottom: 0; height: 42px; background: var(--laine); -webkit-mask: var(--motif-laine) center bottom / 144px 42px repeat-x; mask: var(--motif-laine) center bottom / 144px 42px repeat-x; }

/* Pente : une pointe de toit qui dépasse en haut de la section, dans la couleur de la section. Sur l'appel final. */
.fond--pente::after { content: ""; left: 50%; bottom: calc(100% - 1px); width: var(--space-24); height: 40px; margin-left: calc(var(--space-24) / -2); background-color: inherit; -webkit-mask: var(--motif-pente) center bottom / 100% 100% no-repeat; mask: var(--motif-pente) center bottom / 100% 100% no-repeat; }

@media (min-width: 720px) {
:root { --fond-bord: max(var(--space-8), calc((100% - 1200px) / 2 + var(--space-8))); }
/* Sur tablette, les motifs de coin restent petits ; le titre s'arrête avant les ondes. */
.fond--chaleur .titre-1 { max-width: calc(100% - 80px); }
}
@media (min-width: 1000px) {
:root { --fond-bord: max(var(--space-16), calc((100% - 1200px) / 2 + var(--space-16))); }
.fond--faitage::before, .fond--faitage::after { top: var(--space-6); right: var(--fond-bord); width: 320px; height: 144px; }
.fond--chaleur::before { right: var(--fond-bord); width: 240px; height: 288px; }
/* Le titre et l'intro s'arrêtent avant le grand motif de coin, pour qu'aucun trait ne passe sous le texte. */
.fond--faitage .titre-1 { max-width: calc(100% - 320px - var(--space-6)); }
.fond--chaleur .titre-1 { max-width: calc(100% - 240px - var(--space-6)); }
.fond--chaleur .intro { max-width: min(680px, calc(100% - 240px - var(--space-6))); }
}
