/* Mon Artisan Isolation — version 3 : de vraies images. Le film du chantier en ouverture, du papier chaud pour le texte,
   de l'ardoise pour les temps forts, la photo en grand. Téléphone d'abord : tout est pensé pour 390 × 700, puis élargi. */

*, *::before, *::after { box-sizing: border-box; }
:root { --fond: #FAF7F2; --fond-2: #F1ECE3; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--fond); color: var(--ardoise); font: 400 16px/1.5 var(--police); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.032em; line-height: 1.02; }
em { font-style: normal; color: var(--brique); }
sup { font-size: .65em; }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 16px; top: 16px; z-index: 99; background: var(--ardoise); color: #fff; padding: 10px 14px; }
:focus-visible { outline: 3px solid var(--brique); outline-offset: 2px; }

/* --- Marque --- */
.sym .maison { fill: var(--ardoise); }
.sym .fenetre { fill: var(--chaux); }
.sym .manteau { fill: none; stroke: var(--brique); stroke-width: 10; stroke-linejoin: miter; stroke-miterlimit: 10; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo .sym { width: 38px; height: 38px; flex: none; }
.mot { display: flex; flex-direction: column; font-weight: 800; letter-spacing: -0.03em; line-height: .9; font-size: 17px; }
.mot b { font-weight: 800; }
.mot b + b { color: var(--brique); }

/* --- Boutons --- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding: 0 24px; border: 0; border-radius: 3px;
  background: var(--brique); color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; text-decoration: none;
  position: relative; overflow: hidden; transition: background .2s, transform .15s;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 8px 18px -10px rgba(147, 53, 26, .6);
}
.bouton:hover { background: var(--brique-fonce); }
.bouton:active { transform: translateY(1px); }
.bouton span { transition: transform .25s; }
.bouton:hover span { transform: translateX(3px); }
.bouton.petit { min-height: 40px; padding: 0 14px; font-size: 14px; box-shadow: none; }
.bouton.clair { background: var(--fond); color: var(--ardoise); box-shadow: none; }
.bouton.clair:hover { background: #fff; }
.bouton[disabled] { opacity: .55; cursor: default; }
.onde { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .35); transform: scale(0); animation: onde .6s ease-out forwards; pointer-events: none; }
@keyframes onde { to { transform: scale(4); opacity: 0; } }

/* --- En-tête --- */
.entete {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 16px; background: rgba(250, 247, 242, .94); border-bottom: 1px solid transparent; transition: border-color .3s;
  -webkit-backdrop-filter: saturate(1.2) blur(8px); backdrop-filter: saturate(1.2) blur(8px);
}
.entete.pose { border-bottom-color: rgba(24, 35, 45, .1); }
.nav { display: none; }
.entete .bouton.petit { display: none; }

/* --- Accueil : le formulaire et le film --- */
.accueil { display: grid; grid-template-columns: minmax(0, 1fr); }
.accueil-texte { padding: 14px 16px 26px; }
.sur { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--gris); display: flex; align-items: center; gap: 10px; }
.trait { display: inline-block; width: 22px; height: 3px; background: var(--brique); flex: none; }
.accueil h1 { font-size: clamp(33px, 9.4vw, 66px); line-height: .98; }
.chapo { margin: 14px 0 0; font-size: 16.5px; color: var(--ardoise-2); max-width: 36em; }
.chapo b { color: var(--ardoise); }
.accueil .chapo { font-size: 16px; }

.carte-depart {
  margin-top: 18px; background: #fff; border-radius: 6px; padding: 16px 14px 12px;
  box-shadow: 0 1px 0 rgba(24, 35, 45, .06), 0 24px 48px -28px rgba(24, 35, 45, .45), 0 0 0 1px rgba(24, 35, 45, .09);
}
.carte-tete { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.num { display: inline-grid; place-items: center; width: 24px; height: 24px; background: var(--ardoise); color: #fff; font-weight: 800; font-size: 13px; border-radius: 3px; }
.duree { margin-left: auto; color: var(--gris); font-weight: 400; font-size: 13px; }
.question { display: block; font-weight: 800; font-size: 22px; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 12px; }
.cp-ligne { display: flex; gap: 8px; }
.cp-ligne input {
  flex: 1; min-width: 0; height: 54px; padding: 0 14px; border: 1.5px solid var(--filet); border-radius: 3px; background: #fff;
  font: 600 20px var(--police); letter-spacing: .08em; color: var(--ardoise);
}
.cp-ligne input::placeholder { letter-spacing: 0; font-weight: 400; color: #9AA0A6; font-size: 17px; }
.cp-ligne input:focus { outline: none; border-color: var(--ardoise); }
.cp-ligne .bouton { padding: 0 16px; }
.cp-info { margin: 8px 0 0; font-size: 13px; color: var(--gris); min-height: 1.5em; }
.cp-info.ok { color: var(--ardoise); font-weight: 600; }
.cp-info.ok::before { content: "✓ "; color: var(--brique); }
.cp-info.ko { color: var(--brique); font-weight: 600; }
.reprise { margin-top: 6px; border: 0; background: none; padding: 6px 0 0; font-weight: 600; font-size: 14px; color: var(--brique); text-decoration: underline; text-underline-offset: 3px; }
.faits { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 13.5px; font-weight: 600; }
.faits li { display: flex; gap: 8px; align-items: center; line-height: 1.3; }
.faits li::before { content: ""; flex: none; width: 12px; height: 7px; border-left: 2.5px solid var(--brique); border-bottom: 2.5px solid var(--brique); transform: rotate(-45deg) translateY(-2px); }

.film { margin: 0; position: relative; background: #1E2A33; overflow: hidden; aspect-ratio: 16 / 10; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-pied { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px 14px; background: var(--ardoise); color: #fff; display: grid; gap: 10px; }
.film-etape { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.film-frise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.film-frise li { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; font-weight: 600; color: #B8C0C8; }
.film-frise i { display: block; height: 3px; background: rgba(255, 255, 255, .18); border-radius: 2px; position: relative; overflow: hidden; }
.film-frise i { transform-origin: left; }
.film-frise li { position: relative; }
.film-frise li::before { content: ""; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); position: absolute; left: 0; right: 0; top: 0; }
.film-frise i { background: #E8835F; transform: scaleX(0); z-index: 1; }
.film-mention { position: absolute; right: 10px; top: 10px; margin: 0; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .92); background: rgba(24, 35, 45, .55); padding: 4px 8px; border-radius: 3px; }

/* --- Bande d'ardoise --- */
.bande { background: var(--ardoise); color: #fff; padding: 8px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.chiffres { display: grid; grid-template-columns: 1fr 1fr; }
.chiffre { padding: 20px 12px 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.chiffre:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .12); }
.chiffre:nth-child(even) { padding-left: 14px; }
.chiffre:nth-last-child(-n+2) { border-bottom: 0; }
.chiffre strong { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.chiffre:nth-child(1) strong { color: #E8835F; }
.chiffre p { margin: 8px 0 0; font-size: 13.5px; color: #B8C0C8; line-height: 1.4; }

/* --- Sections --- */
.section { padding: 72px 16px 0; }
.titre-section { margin-bottom: 28px; max-width: 780px; }
h2 { font-size: clamp(31px, 8.2vw, 54px); }
h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.15; }
.mention { margin: 14px 0 0; font-size: 13px; color: var(--gris); max-width: 46em; }

/* Avant / après */
.comparer { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(24, 35, 45, .55); user-select: none; aspect-ratio: 1600 / 904; background: #ddd; }
.comparer > img, .comparer-avant img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comparer-avant { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.comparer-poignee { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(24, 35, 45, .15); }
.comparer-poignee span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.comparer-poignee span::before, .comparer-poignee span::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; border-left: 2.5px solid var(--ardoise); border-bottom: 2.5px solid var(--ardoise); }
.comparer-poignee span::before { left: 11px; transform: translateY(-50%) rotate(45deg); }
.comparer-poignee span::after { right: 11px; transform: translateY(-50%) rotate(-135deg); }
.comparer-etiquette { position: absolute; top: 12px; font-size: 12.5px; font-weight: 800; padding: 5px 10px; border-radius: 3px; background: var(--ardoise); color: #fff; pointer-events: none; }
.comparer-etiquette.g { left: 12px; }
.comparer-etiquette.d { right: 12px; background: var(--brique); }
.comparer-curseur { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }

.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.etape { position: relative; background: #fff; border-radius: 6px; padding: 22px 20px 24px; box-shadow: 0 0 0 1px rgba(24, 35, 45, .07), 0 18px 40px -30px rgba(24, 35, 45, .35); }
.etape-num { display: block; font-size: 13px; font-weight: 800; color: var(--brique); letter-spacing: .02em; }
.etape-dessin { width: 120px; height: 90px; margin: 10px 0 12px; fill: none; stroke: var(--ardoise); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.etape-dessin .r { stroke: var(--brique); }
.etape p { margin: 8px 0 0; color: var(--ardoise-2); font-size: 15.5px; }
.relance { margin-top: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.relance span { color: var(--gris); font-size: 14px; }

/* --- Le chantier en 3D, piloté par le défilement --- */
.chantier { position: relative; height: 640vh; margin-top: 80px; background: #CFE0EC; }
.chantier-colle { position: sticky; top: 64px; height: calc(100vh - 64px); height: calc(100svh - 64px); display: grid; grid-template-rows: 56% 44%; overflow: hidden; }
.chantier-scene { position: relative; background: linear-gradient(#8DB7E0, #DCE4E6 62%, #A8B08C 62%); }
.chantier-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s; }
.chantier-scene .scene-secours { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .6s; }
.chantier.pret .chantier-scene canvas { opacity: 1; }
.chantier.pret .chantier-scene .scene-secours { opacity: 0; }
.chantier-badge { position: absolute; left: 12px; top: 12px; margin: 0; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(24, 35, 45, .62); padding: 5px 9px; border-radius: 3px; }
.chantier-texte { background: var(--fond); padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; position: relative; }
.chantier-pas { list-style: none; margin: 0; padding: 0; position: relative; flex: 1; }
.chantier-pas li { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.chantier-pas li.actif { opacity: 1; transform: none; pointer-events: auto; }
.chantier-pas li.passe { transform: translateY(-14px); }
.pas-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 3px; background: var(--ardoise); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.chantier-pas li:nth-child(n+2) .pas-num { background: var(--brique); }
.chantier-pas h3 { font-size: 26px; }
.chantier-pas p { margin: 10px 0 0; color: var(--ardoise-2); font-size: 15.5px; max-width: 32em; }
.chantier-jauge { height: 3px; background: rgba(24, 35, 45, .1); border-radius: 2px; overflow: hidden; }
.chantier-jauge span { display: block; height: 100%; background: var(--brique); transform-origin: left; transform: scaleX(0); }
.teintes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.teintes button { width: 34px; height: 34px; border-radius: 3px; border: 0; background: var(--t); box-shadow: inset 0 0 0 1px rgba(24, 35, 45, .18); transition: transform .15s, box-shadow .15s; }
.teintes button:hover { transform: translateY(-2px); }
.teintes button.actif { box-shadow: inset 0 0 0 1px rgba(24, 35, 45, .18), 0 0 0 2px var(--fond), 0 0 0 4px var(--ardoise); }
.chantier.sans-3d { height: auto; padding: 64px 16px; background: none; }
.chantier.sans-3d .chantier-colle { position: static; height: auto; display: block; overflow: visible; }
.chantier.sans-3d .chantier-scene, .chantier.sans-3d .chantier-jauge { display: none; }
.chantier.sans-3d .chantier-texte { background: none; padding: 0; }
.chantier.sans-3d .chantier-pas li { position: static; opacity: 1; transform: none; margin-bottom: 26px; }

/* --- Les gestes en photo --- */
.gestes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.geste { margin: 0; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(24, 35, 45, .07), 0 20px 40px -32px rgba(24, 35, 45, .5); }
.geste img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.geste:hover img { transform: scale(1.04); }
.geste figcaption { display: flex; gap: 10px; padding: 12px 12px 14px; font-size: 13.5px; color: var(--ardoise-2); line-height: 1.4; }
.geste figcaption b { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 3px; background: var(--brique); color: #fff; font-size: 12.5px; }
.geste strong { display: block; color: var(--ardoise); font-size: 15px; letter-spacing: -0.01em; margin-bottom: 2px; }

/* --- La coupe du mur en photo --- */
.coupe-jeu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.coupe-photo { margin: 0; position: relative; border-radius: 6px; overflow: hidden; background: #E9E6E1; }
.coupe-photo img { width: 100%; }
.repere { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid #fff; background: var(--ardoise); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); transition: background .2s, transform .2s; }
.repere.actif { background: var(--brique); transform: scale(1.12); }
.repere.actif::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--brique); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.coupe-onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.onglet {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px; text-align: left;
  background: #fff; border: 1.5px solid var(--filet); border-radius: 4px; font-weight: 600; font-size: 14.5px; line-height: 1.2;
  transition: border-color .2s, background .2s, color .2s;
}
.onglet b { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ardoise); color: #fff; font-size: 13px; }
.onglet.actif { border-color: var(--ardoise); background: var(--ardoise); color: #fff; }
.onglet.actif b { background: var(--brique); }
.coupe-texte { grid-column: 1 / -1; min-height: 110px; padding: 14px 2px 0; font-size: 16.5px; color: var(--ardoise-2); }
.coupe-texte p { margin: 0; }

/* --- Les isolants --- */
.isolants { display: grid; gap: 12px; }
.isolant { background: #fff; border-radius: 6px; padding: 22px 20px; box-shadow: 0 0 0 1px rgba(24, 35, 45, .07); }
.isolant-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ep { font-size: 15px; color: var(--gris); white-space: nowrap; }
.ep strong { font-size: 30px; color: var(--ardoise); letter-spacing: -0.03em; }
.isolant-regle { margin: 16px 0 14px; height: 26px; position: relative; background: repeating-linear-gradient(90deg, rgba(24, 35, 45, .28) 0 1px, transparent 1px calc(100% / 20)); border-bottom: 1.5px solid var(--ardoise); }
.isolant-regle span { position: absolute; left: 0; bottom: 0; height: 14px; width: calc(var(--ep) / 20 * 100%); background: var(--isolant); transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1) .2s; }
.isolant:nth-child(2) .isolant-regle span { background: #B9A47A; }
.isolant:nth-child(3) .isolant-regle span { background: #A9784E; }
.anim .isolant:not(.vu) .isolant-regle span { transform: scaleX(0); }
.isolant p { margin: 0; color: var(--ardoise-2); font-size: 15.5px; }

/* --- Où part la chaleur, sur ardoise --- */
.section-ardoise { background: var(--ardoise); color: #fff; padding-bottom: 72px; margin-top: 80px; }
.section-ardoise .sur { color: #B8C0C8; }
.section-ardoise .chapo { color: #C9CED3; }
.chaleur { display: grid; gap: 26px; }
.fuites { margin: 0; background: var(--fond); color: var(--ardoise); border-radius: 6px; padding: 18px; display: grid; gap: 16px; }
.fuites svg { width: 100%; max-width: 420px; margin: 0 auto; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.f-maison { stroke: var(--ardoise); stroke-width: 3; fill: #F2ECE2; }
.f-sol { stroke: var(--ardoise); stroke-width: 3; }
.f-fenetre { stroke: var(--ardoise); stroke-width: 2.5; fill: #DCE3E8; }
.f-pont { stroke: var(--gris); stroke-width: 2; stroke-dasharray: 3 7; }
.f-fleche path { stroke: var(--gris); stroke-width: 3.5; }
.f-fleche.toit path, .f-fleche.mur path { stroke: var(--brique); stroke-width: 5; }
.fuites-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fuites-liste li { padding: 10px 0; border-top: 1px solid var(--filet); font-size: 14px; color: var(--ardoise-2); display: flex; flex-direction: column; }
.fuites-liste b { font-size: 19px; color: var(--ardoise); letter-spacing: -0.02em; }
.fuites-liste li.fort b { color: var(--brique); }

/* --- Pourquoi --- */
.deux-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.liste-plus { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ardoise); }
.liste-plus li { padding: 15px 0 15px 34px; border-bottom: 1px solid var(--filet); position: relative; font-size: 16px; color: var(--ardoise-2); }
.liste-plus li::before { content: ""; position: absolute; left: 0; top: 19px; width: 18px; height: 10px; border-left: 3px solid var(--brique); border-bottom: 3px solid var(--brique); transform: rotate(-45deg); }
.liste-plus b { color: var(--ardoise); }
.a-savoir { background: var(--fond-2); border-radius: 6px; padding: 24px 22px; }
.a-savoir h3 { margin-bottom: 12px; }
.a-savoir ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 10px; font-size: 15px; color: var(--ardoise-2); }
.a-savoir b { color: var(--ardoise); }
.a-savoir p { margin: 14px 0 0; font-size: 15px; font-weight: 600; }

/* --- Aides --- */
.aides { display: grid; gap: 10px; }
.aide { background: #fff; border-radius: 6px; padding: 20px 18px 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 0 0 1px rgba(24, 35, 45, .07); }
.aide p { margin: 0; font-size: 15px; color: var(--ardoise-2); }
.etat { align-self: flex-start; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.etat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.etat.oui { color: #2F6B4F; }
.etat.sous { color: var(--brique); }

/* --- Artisans --- */
.artisans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.verifs { list-style: none; margin: 18px 0 6px; padding: 0; display: grid; gap: 10px; }
.verifs li { position: relative; padding: 13px 14px 13px 48px; background: #fff; border-radius: 4px; font-size: 15.5px; box-shadow: 0 0 0 1px rgba(24, 35, 45, .07); }
.verifs li::before { content: "✓"; position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; display: grid; place-items: center; background: var(--ardoise); color: #fff; font-weight: 800; font-size: 13px; border-radius: 3px; }
.carte-pro { align-self: start; background: var(--brique); color: #fff; border-radius: 6px; padding: 26px 22px; }
.carte-pro .sur { color: #F6D9CC; }
.carte-pro h3 { font-size: 26px; margin-bottom: 10px; }
.carte-pro p { margin: 0 0 18px; font-size: 15.5px; color: #FBEAE2; }

/* --- FAQ --- */
.faq { border-top: 1.5px solid var(--ardoise); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--brique); border-bottom: 2.5px solid var(--brique); transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { margin: 0; padding: 0 0 18px; color: var(--ardoise-2); font-size: 15.5px; }

/* --- Fin de page sur photo, et pied --- */
.fin-page { position: relative; margin-top: 80px; min-height: 520px; display: flex; align-items: flex-end; padding: 16px; overflow: hidden; }
.fin-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.fin-carte { position: relative; background: var(--fond); border-radius: 6px; padding: 26px 22px; max-width: 520px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.fin-carte h2 { font-size: clamp(28px, 7.4vw, 46px); }
.fin-carte p { margin: 12px 0 20px; color: var(--ardoise-2); }
.pied { padding: 40px 16px 120px; display: grid; gap: 14px; font-size: 13.5px; color: var(--gris); }
.pied p { margin: 0; max-width: 46em; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pied nav a { color: var(--ardoise); font-weight: 600; text-underline-offset: 3px; }
.pied .copy { font-size: 12.5px; }

/* Barre du bas, sur téléphone */
.barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(250, 247, 242, .96); border-top: 1px solid var(--filet); transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.barre-mobile.vue { transform: none; }
.barre-mobile .bouton { width: 100%; }

/* --- Le parcours en plein écran --- */
.flux { position: fixed; inset: 0; z-index: 40; background: var(--fond); display: flex; flex-direction: column; }
.flux[hidden] { display: none; }
.flux-tete { flex: none; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 10px; border-bottom: 1px solid var(--filet); background: var(--fond); }
.flux-btn { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; border-radius: 3px; }
.flux-btn:hover { background: rgba(24, 35, 45, .06); }
.flux-btn[disabled] { opacity: .25; cursor: default; }
.flux-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ardoise); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.progres { flex: 1; height: 5px; background: var(--filet); border-radius: 3px; overflow: hidden; }
.progres span { display: block; height: 100%; width: 0; background: var(--brique); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.flux-corps { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 22px 16px calc(28px + env(safe-area-inset-bottom)); }
.ecran { max-width: 560px; margin: 0 auto; }
.ecran.entre-av { animation: entreAv .42s cubic-bezier(.2, .8, .2, 1); }
.ecran.entre-ar { animation: entreAr .42s cubic-bezier(.2, .8, .2, 1); }
@keyframes entreAv { from { opacity: 0; transform: translateX(28px); } }
@keyframes entreAr { from { opacity: 0; transform: translateX(-28px); } }
.ecran .etiquette { font-size: 13px; font-weight: 600; color: var(--gris); margin: 0 0 8px; }
.ecran h2 { font-size: 30px; line-height: 1.05; }
.ecran .aide-q { margin: 10px 0 18px; color: var(--ardoise-2); font-size: 15px; }
.tuiles { display: grid; gap: 9px; }
.tuiles.deux { grid-template-columns: 1fr 1fr; }
.tuile {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 12px 16px; text-align: left;
  background: var(--papier); border: 1.5px solid var(--filet); border-radius: 3px; transition: border-color .15s, background .15s, color .15s, transform .15s;
  position: relative; overflow: hidden;
}
.tuile:hover { border-color: var(--ardoise); }
.tuile:active { transform: scale(.99); }
.tuile b { display: block; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; line-height: 1.2; }
.tuile small { display: block; margin-top: 2px; font-size: 13px; color: var(--gris); }
.tuile i { flex: none; width: 22px; height: 22px; border: 1.5px solid var(--filet); border-radius: 50%; transition: all .15s; }
.tuile.choisie { background: var(--ardoise); border-color: var(--ardoise); color: #fff; }
.tuile.choisie small { color: #C9CED3; }
.tuile.choisie i { border-color: #fff; background: var(--brique); box-shadow: inset 0 0 0 4px var(--ardoise); }
.tuiles.deux .tuile { min-height: 58px; }
.ecran .cascade > * { animation: monte .5s cubic-bezier(.2, .8, .2, 1) both; }
.ecran .cascade > *:nth-child(2) { animation-delay: .04s; } .ecran .cascade > *:nth-child(3) { animation-delay: .08s; }
.ecran .cascade > *:nth-child(4) { animation-delay: .12s; } .ecran .cascade > *:nth-child(5) { animation-delay: .16s; }
.ecran .cascade > *:nth-child(6) { animation-delay: .2s; }
@keyframes monte { from { opacity: 0; transform: translateY(10px); } }

/* Écran bilan */
.bilan { margin-top: 16px; background: var(--papier); border: 1.5px solid var(--ardoise); border-radius: 4px; overflow: hidden; }
.bilan-tete { background: var(--ardoise); color: #fff; padding: 16px 16px 14px; }
.bilan-tete p { margin: 0 0 4px; font-size: 13px; color: #C9CED3; font-weight: 600; }
.bilan-tete h3 { font-size: 23px; }
.bilan dl { margin: 0; padding: 4px 16px; }
.bilan dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--filet); font-size: 15px; }
.bilan dl div:last-child { border-bottom: 0; }
.bilan dt { color: var(--gris); }
.bilan dd { margin: 0; font-weight: 600; text-align: right; }
.conseil { margin: 14px 0 0; padding: 14px 16px; border-left: 4px solid var(--brique); background: var(--brique-pale); font-size: 15px; }
.conseil b { display: block; margin-bottom: 2px; }
.visite { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.visite li { padding-left: 26px; position: relative; }
.visite li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--brique); border-bottom: 2.5px solid var(--brique); transform: rotate(-45deg); }
.ecran .bouton.plein { width: 100%; margin-top: 20px; min-height: 58px; font-size: 18px; }
.ecran .lien { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--gris); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* Coordonnées */
.champs { display: grid; gap: 12px; margin-top: 18px; }
.champs .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.champ label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.champ label small { font-weight: 400; color: var(--gris); }
.champ input { width: 100%; height: 54px; padding: 0 14px; border: 1.5px solid var(--filet); border-radius: 3px; background: #fff; font: 400 17px var(--police); color: var(--ardoise); }
.champ input:focus { outline: none; border-color: var(--ardoise); }
.champ .msg, .accord .msg { display: none; margin-top: 5px; font-size: 13px; color: var(--brique); font-weight: 600; }
.champ.erreur input { border-color: var(--brique); }
.champ.erreur .msg, .accord.erreur .msg { display: block; }
.accord { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; font-size: 13.5px; color: var(--ardoise-2); line-height: 1.45; }
.accord input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ardoise); }
.accord.erreur { color: var(--brique); }
.securite { margin: 12px 0 0; font-size: 12.5px; color: var(--gris); text-align: center; }
.securite a { color: inherit; }

/* Fin du parcours */
.fini { text-align: left; }
.fini .tampon { width: 64px; height: 64px; margin-bottom: 18px; }
.fini .tampon .manteau { stroke-dasharray: 260; stroke-dashoffset: 260; animation: trace 1s .15s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.creneaux { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.note-fin { margin-top: 18px; font-size: 14.5px; color: var(--ardoise-2); }

/* Bandeau de consentement (mesure.js) */
.cookies { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; max-width: 460px; background: var(--ardoise); color: #E9E6DF; border-radius: 4px; padding: 14px 14px 12px; font-size: 13.5px; line-height: 1.45; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.cookies p { margin: 0 0 10px; }
.cookies b { color: #fff; }
.cookies div { display: flex; gap: 8px; justify-content: flex-end; }
.cookies button { min-height: 40px; padding: 0 16px; border-radius: 3px; border: 1.5px solid #fff; background: none; color: #fff; font-weight: 600; }
.cookies button[data-choix="oui"] { background: #fff; color: var(--ardoise); }
body.dans-flux .cookies { bottom: auto; top: 70px; }



/* --- Animations au défilement (anim.js) --- */
.anim .apparait { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.anim .apparait.vu { opacity: 1; transform: none; }
.anim [data-mots] .m { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.anim [data-mots] .m > span { display: inline-block; transform: translateY(105%); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.anim [data-mots].vu .m > span { transform: none; }

/* --- Écrans plus larges --- */
@media (min-width: 720px) {
  .faits { grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px 22px; }
  .chiffres { grid-template-columns: repeat(4, 1fr); }
  .chiffre { border-right: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; padding: 30px 22px 32px; }
  .chiffre:nth-child(even) { padding-left: 22px; }
  .chiffre:first-child { padding-left: 0; }
  .chiffre:last-child { border-right: 0; }
  .chiffre strong { font-size: 52px; }
  .etapes { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .gestes { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .isolants { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .aides { grid-template-columns: 1fr 1fr; }
  .tuiles.deux .tuile { min-height: 64px; }
  .fuites { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 26px; }
  .fuites-liste { grid-template-columns: 1fr; }
  .film-frise li { font-size: 13px; }
}
@media (min-width: 1000px) {
  .entete { height: 74px; padding: 0 40px; }
  .logo .sym { width: 44px; height: 44px; }
  .mot { font-size: 19px; }
  .nav { display: flex; gap: 26px; font-size: 15px; font-weight: 600; }
  .nav a { text-decoration: none; position: relative; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--brique); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .nav a:hover::after { transform: none; }
  .entete .bouton.petit { display: inline-flex; }
  .accueil { grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); min-height: calc(100vh - 74px); }
  .accueil-texte { padding: 48px 48px 40px max(40px, calc((100vw - 1440px) / 2 + 40px)); align-self: center; }
  .accueil .chapo { font-size: 18.5px; }
  .carte-depart { padding: 22px 22px 16px; max-width: 560px; margin-top: 28px; }
  .question { font-size: 26px; }
  .faits { grid-template-columns: 1fr 1fr; max-width: 520px; }
  .film { aspect-ratio: auto; min-height: 100%; }
  .film-pied { left: 28px; right: auto; bottom: 28px; width: min(560px, calc(100% - 56px)); border-radius: 6px; padding: 16px 20px 18px; }
  .film-etape { font-size: 16px; }
  .film-mention { right: 20px; top: 20px; }
  .bande { padding: 10px 40px; }
  .chiffres { max-width: 1280px; margin: 0 auto; }
  .section { max-width: 1280px; margin-left: auto; margin-right: auto; padding: 120px 40px 0; }
  .section-ardoise { max-width: none; padding: 110px max(40px, calc((100vw - 1200px) / 2)) 110px; margin-top: 120px; }
  .etape { padding: 28px 28px 30px; }
  .chantier { margin-top: 120px; }
  .chantier-colle { top: 74px; height: calc(100vh - 74px); grid-template-rows: none; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .chantier-texte { padding: 0 56px; justify-content: center; }
  .chantier-pas { flex: none; height: 340px; }
  .chantier-pas h3 { font-size: 38px; }
  .chantier-pas p { font-size: 18px; }
  .chantier-jauge { margin-top: 20px; }
  .chantier-badge { left: 24px; top: 24px; font-size: 12.5px; }
  .sur.clair { margin-bottom: 34px; }
  .coupe-jeu { grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
  .coupe-onglets { grid-template-columns: 1fr; gap: 10px; }
  .onglet { min-height: 62px; font-size: 17px; }
  .coupe-texte { font-size: 18px; min-height: 140px; }
  .chaleur { grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
  .deux-col { grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
  .aides { grid-template-columns: repeat(4, 1fr); }
  .artisans { grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
  .fin-page { margin-top: 130px; min-height: 640px; align-items: center; padding: 60px max(40px, calc((100vw - 1280px) / 2)); }
  .fin-carte { padding: 40px 40px 36px; }
  .pied { max-width: 1280px; margin: 0 auto; padding: 48px 40px 48px; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
  .pied .copy { grid-column: 1 / -1; }
  .barre-mobile { display: none; }
  .flux-tete { height: 72px; padding: 0 24px; }
  .flux-corps { padding-top: 56px; }
  .ecran h2 { font-size: 40px; }
}

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