:root {
  --bg: #EBE4D1; --bg-2: #E1D6BD; --surface: rgb(255 253 247 / .86); --surface-solid: #FFFDF7;
  --text: #14150D; --soft: #33321F; --muted: #5E5A45;
  --line: rgb(20 21 13 / .11); --border: #B3A783; --acid: #C8F14E; --acid-ink: #3F6212; --on-acid: #10130A;
  --chaud: #E8742A; --froid: #4F8FB0;
  /* maison */
  --m-trait: #7E765C; --m-trait-fin: #C2B795;
  --m-dessus: #FFFDF7; --m-face: #F1EBDA; --m-cote: #DDD3BA;
  --m-toit-a: #E8E0CB; --m-toit-b: #D1C6AA; --m-verre-a: #DCE8EE; --m-verre-b: #AFC6D2;
  --m-isolant: #F3E7B4; --m-hachure: #C9B66A; --m-ombre: rgb(17 20 16 / .18);
  /* fond */
  --f-1: rgb(200 241 78 / .30); --f-2: rgb(255 253 247 / .55); --f-3: rgb(238 142 31 / .14); --f-grille: rgb(20 21 13 / .03);
  --shadow: 0 24px 60px -30px rgb(40 32 12 / .30);
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1712; --bg-2: #211D16; --surface: rgb(38 33 25 / .86); --surface-solid: #262119;
    --text: #F2EDDE; --soft: #DCD5C2; --muted: #A9A18A; --line: rgb(242 237 222 / .10); --border: #4A4232; --acid-ink: #C8F14E;
    --m-trait: #8E856B; --m-trait-fin: #3D3629;
    --m-dessus: #2E281F; --m-face: #241F18; --m-cote: #1A1712;
    --m-toit-a: #312B21; --m-toit-b: #1F1B15; --m-verre-a: #2B4552; --m-verre-b: #15232B;
    --m-isolant: #4A4424; --m-hachure: #8A7D3C; --m-ombre: rgb(0 0 0 / .55);
    --f-1: rgb(200 241 78 / .12); --f-2: rgb(242 237 222 / .05); --f-3: rgb(238 142 31 / .10); --f-grille: rgb(242 237 222 / .035);
    --shadow: 0 30px 80px -30px rgb(0 0 0 / .7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1712; --bg-2: #211D16; --surface: rgb(38 33 25 / .86); --surface-solid: #262119;
  --text: #F2EDDE; --soft: #DCD5C2; --muted: #A9A18A; --line: rgb(242 237 222 / .10); --border: #4A4232; --acid-ink: #C8F14E;
  --m-trait: #8E856B; --m-trait-fin: #3D3629;
  --m-dessus: #2E281F; --m-face: #241F18; --m-cote: #1A1712;
  --m-toit-a: #312B21; --m-toit-b: #1F1B15; --m-verre-a: #2B4552; --m-verre-b: #15232B;
  --m-isolant: #4A4424; --m-hachure: #8A7D3C; --m-ombre: rgb(0 0 0 / .55);
  --f-1: rgb(200 241 78 / .12); --f-2: rgb(242 237 222 / .05); --f-3: rgb(238 142 31 / .10); --f-grille: rgb(242 237 222 / .035);
  --shadow: 0 30px 80px -30px rgb(0 0 0 / .7); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--bg); }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; background: transparent; color: var(--text); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--acid-ink); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--acid); color: var(--on-acid); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--acid-ink); outline-offset: 3px; border-radius: 6px; }

/* ── Fond vivant ─────────────────────────────────────────────── */
.fond { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.tache { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; }
.tache--1 { background: radial-gradient(circle, var(--f-1) 0%, transparent 62%); top: -30vmax; left: -18vmax; animation: derive-1 26s ease-in-out infinite alternate; }
.tache--2 { background: radial-gradient(circle, var(--f-2) 0%, transparent 62%); top: 10vmax; right: -30vmax; animation: derive-2 32s ease-in-out infinite alternate; }
.tache--3 { background: radial-gradient(circle, var(--f-3) 0%, transparent 62%); bottom: -40vmax; left: 20vmax; animation: derive-3 38s ease-in-out infinite alternate; }
@keyframes derive-1 { to { transform: translate(18vmax, 14vmax) scale(1.15); } }
@keyframes derive-2 { to { transform: translate(-22vmax, 10vmax) scale(.9); } }
@keyframes derive-3 { to { transform: translate(-16vmax, -18vmax) scale(1.2); } }
.grille { position: absolute; inset: -60px; background-image: linear-gradient(var(--f-grille) 1px, transparent 1px), linear-gradient(90deg, var(--f-grille) 1px, transparent 1px);
          background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
          animation: grille 40s linear infinite; }
@keyframes grille { to { transform: translate(56px, 56px); } }
#particules { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── Navigation ──────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
       background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
/* Marque : pictogramme maison + étiquette énergie, et nom */
.marque { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.marque__icone { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; box-shadow: 0 6px 16px -8px rgb(20 21 13 / .45); transition: transform .3s var(--ease); }
.marque:hover .marque__icone { transform: rotate(-6deg) scale(1.05); }
.marque__nom { font: 700 27px/1 var(--display); letter-spacing: -0.035em; }
.marque__nom span { color: var(--acid-ink); }
.marque--grande { gap: 16px; margin-bottom: 6px; flex-basis: 100%; }
footer a.marque { color: var(--text); width: fit-content; }
.marque--grande .marque__icone { width: 72px; height: 72px; border-radius: 18px; }
.marque--grande .marque__nom { font-size: clamp(40px, 7vw, 64px); }
@media (max-width: 640px) { .marque__icone { width: 36px; height: 36px; border-radius: 10px; } .marque__nom { font-size: 24px; } }
.nav__liens { display: flex; gap: 22px; margin-left: 12px; }
.nav__liens a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav__liens a:hover { color: var(--text); }
.nav__droite { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
       font: 600 15px var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn--acid { background: var(--acid); color: var(--on-acid); box-shadow: 0 8px 24px -10px rgb(160 200 40 / .8); }
.btn--acid:hover { background: #c6ea4f; box-shadow: 0 12px 30px -10px rgb(160 200 40 / .9); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--surface-solid); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
@media (max-width: 860px) { .nav__liens { display: none; } .nav .btn--ghost { display: none; } }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 5vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "titre maison" "suite maison"; column-gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__titre { grid-area: titre; align-self: end; }
.hero__suite { grid-area: suite; align-self: start; }
.hero__maison { grid-area: maison; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--body); color: var(--muted); padding: 6px 12px 6px 10px; border-radius: 99px;
           background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; backdrop-filter: blur(8px); }
.eyebrow i { width: 7px; height: 7px; border-radius: 99px; background: var(--acid); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acid) 30%, transparent); animation: battement 2.4s ease-in-out infinite; }
@keyframes battement { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--acid) 0%, transparent); } }
.hero h1 { font-size: clamp(1.85rem, 1.3rem + 1.8vw, 2.75rem); font-weight: 600; letter-spacing: -0.02em; }
.hero h1 span { color: var(--muted); }
.hero .lede { font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); color: var(--muted); margin-top: 18px; max-width: 32em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.hero__note strong { color: var(--text); font-weight: 600; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; grid-template-areas: "titre" "maison" "suite"; }
  .hero__titre { text-align: left; }
}

/* Maison */
.hero__maison svg { width: 100%; height: auto; max-height: min(66vh, 640px); display: block; overflow: visible; margin-inline: auto; }
@media (max-width: 900px) { .hero__maison svg { max-height: 58vh; } }
.flotte { animation: flotte 7s ease-in-out infinite alternate; }
@keyframes flotte { to { transform: translateY(-10px); } }
.f { stroke: var(--m-trait); stroke-width: .9; stroke-linejoin: round; transition: fill .5s, stroke .5s, stroke-width .5s, opacity .5s; }
.ft { fill: var(--m-dessus); } .fy { fill: var(--m-face); } .fx { fill: var(--m-cote); }
.verre { fill: url(#g-verre); } .toit { fill: url(#g-toit); } .isolant { fill: url(#g-isolant); }
.fin { stroke: var(--m-trait-fin); stroke-width: .8; fill: none; }
.tuile { stroke: var(--m-trait-fin); stroke-width: .9; fill: none; }
.pt { stroke: var(--m-trait); stroke-width: 2.2; stroke-dasharray: 2 6; stroke-linecap: round; fill: none; opacity: .5; transition: stroke .5s, opacity .5s; }
.flux { fill: none; stroke: var(--chaud); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 9; opacity: .55; animation: flux 2.4s linear infinite; }
.flux--air { stroke: var(--froid); }
@keyframes flux { to { stroke-dashoffset: -24; } }
.couche { transition: transform 1.5s var(--ease); }
.eclate .c-toit { transform: translateY(-138px); }
.eclate .c-combles { transform: translateY(-70px); }
.eclate .c-plancher { transform: translateY(70px); }
.eclate .c-equip { transform: translate(158px, 86px); }
.el .f { transition: fill .5s, stroke .5s, stroke-width .5s; }
.el.on .f { fill: var(--acid); stroke: var(--acid-ink); stroke-width: 1.4; }
.el.on .f.ft { fill: color-mix(in srgb, var(--acid) 80%, white); }
.el.on .f.fx { fill: color-mix(in srgb, var(--acid) 75%, black); }
.el.on .pt { stroke: var(--acid-ink); opacity: 1; stroke-width: 3; }
.el.on { filter: drop-shadow(0 0 14px rgb(212 243 107 / .6)); }
.repere { opacity: 0; transition: opacity .4s; }
.el.on .repere { opacity: 1; }
.repere circle:first-child { fill: var(--acid); stroke: var(--on-acid); stroke-width: 1.5; }
.repere circle:last-child { fill: none; stroke: var(--acid); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: onde 1.8s ease-out infinite; }
@keyframes onde { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.ombre { fill: var(--m-ombre); }

/* Bulle du poste en cours */
.bulle { position: relative; margin: -4px auto 0; width: min(460px, 100%); display: flex; align-items: center; gap: 14px;
         padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
         backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.bulle__n { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--acid); color: var(--on-acid); display: grid; place-items: center; font: 700 15px var(--display); }
.bulle__t { font: 600 16px var(--display); }
.bulle__d { color: var(--muted); font-size: 13.5px; }
.bulle__texte { min-width: 0; transition: opacity .3s; }
.bulle__texte.change { opacity: 0; }
.points { display: flex; gap: 5px; margin-left: auto; padding-left: 8px; }
.points i { width: 6px; height: 6px; border-radius: 99px; background: var(--border); transition: background .3s, width .3s; }
.points i.on { background: var(--acid-ink); width: 16px; }
@media (max-width: 560px) { .points { display: none; } }

/* ── Sections ────────────────────────────────────────────────── */
section { padding: clamp(56px, 8vw, 110px) 0; }
.titre-section { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.titre-section h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); font-weight: 600; }
.titre-section p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }
.kicker { font: 600 13px var(--body); color: var(--acid-ink); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.verre-carte { background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }

/* Postes */
.postes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.poste { border-radius: 20px; padding: 20px; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; transition: transform .3s var(--ease), border-color .3s; }
.poste:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--acid) 60%, transparent); }
.poste__n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 700 14px var(--display); color: var(--acid-ink);
            background: color-mix(in srgb, var(--acid) 22%, transparent); }
.poste h3 { font-size: 1.05rem; margin-bottom: 4px; }
.poste p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .postes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .postes { grid-template-columns: 1fr; } }

/* Fonctionnement */
.fonc { display: grid; grid-template-columns: 1fr minmax(320px, 420px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.etapes { display: grid; gap: 14px; }
.etape { border-radius: 22px; padding: 22px 24px; display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.etape__n { width: 44px; height: 44px; border-radius: 13px; background: var(--acid); color: var(--on-acid); font: 700 18px var(--display); display: grid; place-items: center; }
.etape h3 { font-size: 1.2rem; margin-bottom: 6px; }
.etape p { color: var(--muted); }
@media (max-width: 900px) { .fonc { grid-template-columns: 1fr; } }

/* Carte dossier */
.carte { border-radius: 28px; padding: 22px; box-shadow: var(--shadow); width: 100%; position: sticky; top: 90px; }
.carte__tete { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.carte__adr { font: 600 17px var(--display); }
.carte__sous { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.pastille { font: 600 12px var(--body); padding: 5px 10px; border-radius: 99px; background: color-mix(in srgb, var(--acid) 30%, transparent); color: var(--acid-ink); white-space: nowrap; }
.dpe { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--bg-2) 80%, transparent); }
.dpe__lettre { width: 56px; height: 56px; border-radius: 14px; background: #EB8235; color: #fff; font: 700 30px var(--display); display: grid; place-items: center; }
.dpe__val { font: 600 20px var(--display); } .dpe__src { color: var(--muted); font-size: 13px; }
.lignes { list-style: none; margin: 0; padding: 0; }
.lignes li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line); font-size: 15px; }
.lignes span:first-child { color: var(--muted); }
.lignes span:last-child { font-weight: 600; text-align: right; }
.carte__pied { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* Fait / ne fait pas */
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bloc { border-radius: 24px; padding: 28px; }
.bloc h3 { font-size: 1.25rem; margin-bottom: 16px; }
.bloc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bloc li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.bloc li::before { content: "✓"; width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center; font-weight: 700; font-size: 13px;
                   background: color-mix(in srgb, var(--acid) 35%, transparent); color: var(--acid-ink); }
.bloc--non li::before { content: "—"; background: color-mix(in srgb, var(--bg-2) 90%, transparent); color: var(--muted); }
.bloc li span { color: var(--muted); }
.bloc li strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .deux { grid-template-columns: 1fr; } }

/* Tarifs */
.bascule { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 26px; backdrop-filter: blur(8px); }
.bascule button { border: 0; background: transparent; color: var(--muted); font: 600 14px var(--body); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.bascule button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.offre { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 28px; backdrop-filter: blur(14px); }
.offre--vedette { border: 2px solid var(--acid); box-shadow: var(--shadow), 0 0 60px -20px rgb(212 243 107 / .5); }
.offre__badge { position: absolute; top: -13px; left: 24px; background: var(--acid); color: var(--on-acid); font: 600 12px var(--body); padding: 5px 11px; border-radius: 99px; }
.offre h3 { font-size: 1.25rem; }
.prix { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 4px; }
.prix strong { font: 700 clamp(2.4rem, 2rem + 1.4vw, 3rem) var(--display); letter-spacing: -0.03em; }
.prix span { color: var(--muted); }
.offre__sous { color: var(--muted); font-size: 14px; min-height: 2.6em; }
.offre ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 11px; flex: 1; }
.offre li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 15px; }
.offre li::before { content: "✓"; color: var(--acid-ink); font-weight: 700; }
.offre .btn { width: 100%; }
.offre-unique { display: grid; grid-template-columns: 1.4fr .8fr; gap: 18px; align-items: start; max-width: 980px; }
.offre__actions { display: grid; gap: 10px; }
.offre-cabinet { border: 1px dashed var(--border); border-radius: 26px; padding: 28px; background: var(--surface); backdrop-filter: blur(10px); }
.offre-cabinet h3 { font-size: 1.2rem; margin-bottom: 10px; }
.offre-cabinet p { color: var(--muted); margin-bottom: 18px; }
@media (max-width: 860px) { .offre-unique { grid-template-columns: minmax(0, 1fr); } }
.offre-unique > * { min-width: 0; }
.offre .btn { white-space: normal; }
.tarifs__note { margin-top: 20px; color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 600 1.08rem var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 26px var(--body); color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 46em; }

/* Appel final + pied */
.final { text-align: center; }
.final h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); font-weight: 600; max-width: 16em; margin: 0 auto; }
.final p { color: var(--muted); margin: 16px auto 28px; max-width: 36em; font-size: 1.08rem; }
footer { border-top: 1px solid var(--line); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px;
         background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }

.reveal { opacity: 0; transform: translateX(-56px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delai, 0s); }
@media (max-width: 640px) { .reveal { transform: translateX(-32px); } }
.reveal.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } #particules { display: none; }
}

/* ── Guides (articles) ──────────────────────────────────────── */
.article { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); }
.article .wrap { max-width: 780px; }
.fil { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.fil a { color: var(--muted); }
.article h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); font-weight: 600; letter-spacing: -0.025em; }
.article .chapo { font-size: 1.15rem; color: var(--muted); margin-top: 16px; }
.article .meta { font-size: 14px; color: var(--muted); margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.article .corps { margin-top: 34px; }
.article .corps h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); font-weight: 600; margin: 42px 0 12px; }
.article .corps h3 { font-size: 1.15rem; font-weight: 600; margin: 26px 0 8px; }
.article .corps p, .article .corps li { font-size: 1.04rem; color: var(--soft); }
.article .corps p { margin: 0 0 14px; }
.article .corps ul, .article .corps ol { padding-left: 1.3em; margin: 0 0 16px; display: grid; gap: 8px; }
.article .corps strong { color: var(--text); }
.encadre { border-radius: 20px; padding: 20px 22px; margin: 22px 0; }
.encadre p:last-child { margin-bottom: 0; }
.encadre--acid { border: 1px solid color-mix(in srgb, var(--acid) 55%, transparent); background: color-mix(in srgb, var(--acid) 12%, var(--surface)); }
.tableau { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: .98rem; }
.tableau th, .tableau td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tableau th { font: 600 14px var(--body); color: var(--muted); }
.tableau-defile { overflow: visible; }
.tableau td, .tableau th { overflow-wrap: anywhere; }
.sources { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.sources ol { padding-left: 1.2em; display: grid; gap: 6px; }
.sources a { color: var(--muted); word-break: break-word; }
.cta-article { margin-top: 40px; border-radius: 24px; padding: 26px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.cta-article p { color: var(--muted); max-width: 30em; }
.cta-article strong { display: block; color: var(--text); font: 600 1.15rem var(--display); margin-bottom: 4px; }
.liste-guides { display: grid; gap: 14px; margin-top: 30px; }
.carte-guide { display: block; text-decoration: none; color: var(--text); border-radius: 22px; padding: 24px; transition: transform .3s var(--ease), border-color .3s; }
.carte-guide:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--acid) 60%, transparent); }
.carte-guide h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.carte-guide p { color: var(--muted); }
.carte-guide span { display: inline-block; margin-top: 12px; color: var(--acid-ink); font-weight: 600; font-size: 14px; }
.erreur { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.erreur .code { font: 700 clamp(4rem, 3rem + 6vw, 8rem) var(--display); color: var(--acid-ink); letter-spacing: -0.04em; line-height: 1; }
.erreur h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 600; margin: 14px 0 10px; }
.erreur p { color: var(--muted); margin-bottom: 26px; }

main { flex: 1 0 auto; }
.offre__note { color: var(--muted); font-size: 13px; margin-top: 12px; line-height: 1.45; }

/* ── Démo 3D, profils, fonctionnement ─────────────────────────── */
.demo3d { border-radius: 26px; padding: 14px 16px 16px; }
.demo3d .m3d__scene { height: clamp(270px, 80cqw, 380px); }
.demo3d__legende { margin-top: 10px; text-align: center; color: var(--muted); font-size: 13px; }
.profils { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.profil { border-radius: 22px; padding: 24px; }
.profil h3 { font-size: 1.2rem; margin-bottom: 8px; }
.profil__accroche { color: var(--muted); margin-bottom: 14px; }
.profil ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 15px; }
.fonc--seul { display: block; }
.fonc--seul .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .profils, .fonc--seul .etapes { grid-template-columns: 1fr; }
}
.hero .wrap > * { min-width: 0; }
@media (max-width: 900px) { .hero__maison { margin: 18px 0 8px; } }

/* ─── Pages légales ─────────────────────────────────────────────────────── */
.legal { padding: clamp(24px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); }
.legal__fil { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.legal__fil a { color: var(--muted); text-decoration: none; } .legal__fil a:hover { color: var(--text); }
.legal__tete { max-width: 760px; }
.legal__tete h1 { font: 600 clamp(2.1rem, 1.4rem + 3vw, 3.4rem)/1.04 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.legal__date { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; color: var(--muted); }
.legal__date::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acid) 35%, transparent); }
.legal__chapo { margin-top: 18px; font-size: 1.1rem; line-height: 1.6; color: var(--soft); max-width: 62ch; }
.legal__chapo a, .legal__corps a { color: var(--text); text-decoration: underline; text-decoration-color: var(--acid-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal__onglets { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 clamp(28px, 4vw, 44px); }
.legal__onglets a { padding: 9px 15px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--soft); font: 500 14.5px var(--body); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.legal__onglets a:hover { border-color: var(--border); color: var(--text); }
.legal__onglets a[aria-current="page"] { background: var(--text); color: var(--bg); border-color: transparent; }
.legal__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.legal__sommaire details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 14px 16px; }
.legal__sommaire summary { cursor: pointer; font: 600 15px var(--display); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.legal__sommaire summary::-webkit-details-marker { display: none; }
.legal__sommaire summary::after { content: "+"; font: 400 20px var(--body); color: var(--muted); }
.legal__sommaire details[open] summary::after { content: "−"; }
.legal__sommaire ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.legal__sommaire a { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 7px 8px; border-radius: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.35; text-decoration: none; transition: background .2s, color .2s; }
.legal__sommaire a span { font: 600 12px/1.6 var(--display); color: var(--muted); opacity: .7; }
.legal__sommaire a:hover, .legal__sommaire a[aria-current="true"] { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.legal__sommaire a[aria-current="true"] span { color: var(--acid-ink); opacity: 1; }
.legal__articles { display: grid; gap: 14px; min-width: 0; }
.legal__article { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px; padding: clamp(20px, 3vw, 30px); border-radius: 22px; scroll-margin-top: 90px; }
.legal__num { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--acid); color: var(--on-acid); font: 700 15px var(--display); letter-spacing: -0.02em; }
.legal__corps h2 { font: 600 clamp(1.2rem, 1.05rem + .6vw, 1.45rem)/1.25 var(--display); letter-spacing: -0.02em; margin: 9px 0 14px; }
.legal__corps p, .legal__corps li { font-size: 1rem; line-height: 1.7; color: var(--soft); }
.legal__corps p { margin: 0 0 12px; } .legal__corps p:last-child { margin-bottom: 0; }
.legal__corps strong { color: var(--text); font-weight: 600; }
.legal__corps ul, .legal__corps ol { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 10px; }
.legal__corps ul:last-child { margin-bottom: 0; }
.legal__corps li { position: relative; padding-left: 22px; }
.legal__corps li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 9px; height: 3px; border-radius: 2px; background: var(--acid-ink); }
.legal__contact { margin-top: 10px; font-size: 15px; color: var(--muted); }
.legal__contact a { color: var(--text); }
@media (min-width: 980px) {
  .legal__grille { grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; }
  .legal__sommaire { position: sticky; top: 88px; }
}
@media (max-width: 560px) {
  .legal__article { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .legal__num { width: 38px; height: 38px; border-radius: 11px; font-size: 13.5px; }
  .legal__corps h2 { margin-top: 0; }
}
