/* =========================================================================
   Seuil, courtage immobilier résidentiel : feuille de style commune
   Modèle de démonstration conçu par MG Performance Web.
   Ordre : polices, jetons, base, en-tête et menus, boutons, sections de
   l'accueil, Vendre, fiche vedette, légal, panneaux, cellulaire.
   ========================================================================= */

@font-face { font-family: "Boska"; src: url("../polices/boska-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Boska"; src: url("../polices/boska-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Boska"; src: url("../polices/boska-400i.woff2") format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../polices/general-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../polices/general-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../polices/general-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --chaux: #F3EEE6;
  --chaux-2: #E9E2D6;
  --encre: #1C1E1B;
  --encre-douce: #5D5F58;
  --rouge: #B4432A;
  --rouge-f: #93331E;
  --lac: #1F4A4E;
  --eau: #C9D6D2;
  --erable: #8E3B22;
  --champ: #5F6B34;
  --brume: #3B3550;
  --lueur: #F2C27A;
  --vendu: #9C9A92;
  --courbe: cubic-bezier(.22, 1, .36, 1);
  --serif: "Boska", "Iowan Old Style", Georgia, serif;
  --sans: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --gouttiere: clamp(16px, 4vw, 64px);
  --demo-h: 32px;
  --entete-h: 76px;
  --titre: clamp(46px, 6.1vw, 88px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--chaux); color: var(--encre); font-family: var(--sans); font-size: 17px; line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure { margin: 0; }
em { font-style: italic; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--encre); color: var(--chaux); padding: 10px 16px; border-radius: 4px; }
.evitement:focus { top: 40px; }
.petit { font-size: 13.5px; color: var(--encre-douce); line-height: 1.5; }
.mention { margin-top: 18px; }
.noscript { background: var(--rouge); color: var(--chaux); padding: 12px var(--gouttiere); }
.seul-cell { display: none; }
.lien { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.note-reduit { display: none; }

.etiquette { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--encre-douce); margin-bottom: 18px; }
.etiquette-claire { color: rgba(243, 238, 230, .78); }
.titre { font-family: var(--serif); font-size: var(--titre); line-height: .98; letter-spacing: -.02em; font-weight: 500; }
.titre em, .heros-nom em, .f-titre em, .coll-over-titre em, .tiroir-titre em, .eval-titre em { font-weight: 400; }
.titre-h1 { font-size: clamp(48px, 6.6vw, 96px); }
.intro { margin-top: 20px; max-width: 54ch; color: var(--encre-douce); font-size: 18px; }
.section-tete { max-width: 980px; margin-bottom: clamp(32px, 5vw, 64px); }
.section-tete-ligne { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
section { position: relative; }

/* ---------- Bandeau de démonstration ---------- */
.demo { position: relative; z-index: 60; height: var(--demo-h); display: block; padding: 0 12px; background: var(--encre); color: var(--chaux); font-size: 12.5px; text-align: center; line-height: var(--demo-h); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.demo a { color: var(--lueur); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.logo-mot { position: relative; display: inline-flex; align-items: baseline; font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: -.01em; padding: 0 .12em .14em; }
.logo-mot::after { content: ""; position: absolute; left: -18%; right: -18%; bottom: 0; height: 1.5px; background: currentColor; transform-origin: center; transform: scaleX(0); animation: trait 0.9s var(--courbe) .1s forwards; }
.logo-mot .l { display: inline-block; opacity: 0; transform: translateY(6px); animation: lettre .6s var(--courbe) forwards; }
.logo-mot .l:nth-child(1) { animation-delay: .5s; } .logo-mot .l:nth-child(2) { animation-delay: .54s; } .logo-mot .l:nth-child(3) { animation-delay: .58s; } .logo-mot .l:nth-child(4) { animation-delay: .62s; } .logo-mot .l:nth-child(5) { animation-delay: .66s; }
.l-i { position: relative; }
.logo-porte { position: absolute; left: 50%; top: -.06em; width: .22em; height: .35em; transform: translateX(-50%); perspective: 1.5em; }
.logo-lueur { position: absolute; inset: 0; border-radius: 1em 1em 0 0; background: var(--lueur); box-shadow: 0 0 10px 3px rgba(242, 194, 122, 0); transition: box-shadow .45s var(--courbe); }
.logo-battant { position: absolute; inset: 0; border-radius: 1em 1em 0 0; background: var(--rouge); transform-origin: left center; transition: transform .45s var(--courbe); }
@media (hover: hover) {
  .logo:hover .logo-battant { transform: rotateY(-62deg); }
  .logo:hover .logo-lueur { box-shadow: 0 0 12px 4px rgba(242, 194, 122, .8); }
}
@keyframes trait { to { transform: scaleX(1); } }
@keyframes lettre { to { opacity: 1; transform: none; } }

/* ---------- En-tête ---------- */
.entete { position: fixed; left: 0; right: 0; top: var(--demo-h); z-index: 50; height: var(--entete-h); display: flex; align-items: center; gap: 24px; padding: 0 var(--gouttiere); color: var(--encre); transition: transform .45s var(--courbe), background-color .35s, color .35s, box-shadow .35s; }
.entete.pleine { background: var(--chaux); box-shadow: 0 1px 0 rgba(28, 30, 27, .08); }
.entete.sur-photo { color: var(--chaux); background: linear-gradient(180deg, rgba(28, 30, 27, .5), rgba(28, 30, 27, 0)); }
.entete.cachee { transform: translateY(-110%); }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; position: relative; padding: 12px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--courbe); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.entete-droite { display: flex; align-items: center; gap: 12px; }
.fav-compteur { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 1px solid currentColor; border-radius: 999px; background: none; font-weight: 500; font-size: 14px; }
.fav-compteur .coeur-svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.fav-compteur.plein .coeur-svg { fill: var(--rouge); stroke: var(--rouge); }
.fav-compteur.saute { animation: saute .4s var(--courbe); }
@keyframes saute { 40% { transform: scale(1.18); } }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; background: none; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .35s var(--courbe); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Menu plein écran du cellulaire (I-35) */
.menu-cell { position: fixed; inset: 0; z-index: 45; background: var(--chaux); padding: calc(var(--entete-h) + 40px) var(--gouttiere) 32px; display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 100% round 50% 50% 0 0); transition: clip-path .6s var(--courbe); }
.menu-cell.ouvert { clip-path: inset(0 0 0 0 round 0); }
.menu-liens { display: flex; flex-direction: column; }
.menu-liens a { font-family: var(--serif); font-size: 40px; line-height: 1.15; text-decoration: none; padding: 6px 0; border-bottom: 1px solid rgba(28, 30, 27, .12); opacity: 0; transform: translateY(18px); transition: opacity .45s var(--courbe), transform .45s var(--courbe); }
.menu-cell.ouvert .menu-liens a { opacity: 1; transform: none; }
.menu-cell.ouvert .menu-liens a:nth-child(2) { transition-delay: .05s; } .menu-cell.ouvert .menu-liens a:nth-child(3) { transition-delay: .1s; } .menu-cell.ouvert .menu-liens a:nth-child(4) { transition-delay: .15s; } .menu-cell.ouvert .menu-liens a:nth-child(5) { transition-delay: .2s; } .menu-cell.ouvert .menu-liens a:nth-child(6) { transition-delay: .25s; color: var(--rouge); }
.menu-coord { font-size: 14px; color: var(--encre-douce); line-height: 2; }
.menu-coord a { display: inline-block; min-height: 32px; }
body.menu-ouvert .entete { color: var(--encre); background: transparent; box-shadow: none; transform: none; }

/* ---------- Boutons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 4px; border: 1px solid transparent; font-weight: 500; font-size: 16px; text-decoration: none; line-height: 1.1; overflow: hidden; isolation: isolate; transition: background-color .3s, color .3s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn-principal { background: var(--rouge); color: var(--chaux); }
.btn-principal:hover { background: var(--rouge-f); }
.fleches { position: relative; width: 16px; height: 10px; overflow: hidden; flex: none; }
.fleches svg { position: absolute; inset: 0; width: 16px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .35s var(--courbe); }
.fleches svg:last-child { transform: translateX(-140%); }
.btn:hover .fleches svg:first-child { transform: translateX(140%); }
.btn:hover .fleches svg:last-child { transform: translateX(0); }
.btn-contour { border-color: currentColor; background: transparent; color: var(--encre); }
.btn-contour::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--encre); transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--courbe); }
.btn-contour:hover { color: var(--chaux); }
.btn-contour:hover::before { transform: scaleY(1); }
.btn-clair { color: var(--chaux); }
.btn-clair::before { background: var(--chaux); }
.btn-clair:hover { color: var(--encre); }
.entete-cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
.rond { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; background: transparent; display: inline-grid; place-items: center; flex: none; }
.rond svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.puce { min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(28, 30, 27, .25); background: transparent; font-size: 14.5px; font-weight: 500; transition: background-color .25s, color .25s, border-color .25s; }
.puce:hover { border-color: var(--encre); }
.puce[aria-pressed="true"], .puce[aria-checked="true"], .puce.actif { background: var(--encre); color: var(--chaux); border-color: var(--encre); }

/* Bascules */
.bascule { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; font-size: 15px; cursor: pointer; }
.bascule input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bascule-piste { position: relative; width: 40px; height: 22px; border-radius: 11px; background: rgba(28, 30, 27, .2); transition: background-color .25s; flex: none; }
.bascule-piste::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--chaux); transition: transform .3s var(--courbe); }
.bascule input:checked + .bascule-piste { background: var(--rouge); }
.bascule input:checked + .bascule-piste::after { transform: translateX(18px); }
.bascule input:focus-visible + .bascule-piste { outline: 2px solid var(--rouge); outline-offset: 3px; }

/* Réglettes */
.reglette { margin-bottom: 26px; }
.reglette-tete { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.reglette-tete label { font-weight: 500; font-size: 15px; }
.reglette-tete output { margin-left: auto; font-variant-numeric: tabular-nums; font-family: var(--serif); font-size: 22px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 0; cursor: pointer; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--encre) var(--rempli, 50%), rgba(28, 30, 27, .2) var(--rempli, 50%)); }
input[type="range"]::-moz-range-track { height: 2px; background: rgba(28, 30, 27, .2); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--encre); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--rouge); border: 3px solid var(--chaux); box-shadow: 0 0 0 1px var(--rouge); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--rouge); border: 3px solid var(--chaux); box-shadow: 0 0 0 1px var(--rouge); }
.secoue { animation: secoue .4s; }
@keyframes secoue { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- Curseur personnalisé (I-39) ---------- */
.curseur { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) { .curseur { display: block; } }
.curseur-point { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--encre); transition: opacity .2s; }
.curseur-disque { position: absolute; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%; background: var(--rouge); color: var(--chaux); display: grid; place-items: center; font-size: 13px; font-weight: 500; transform: scale(0); transition: transform .3s var(--courbe); }
.curseur.actif .curseur-disque { transform: scale(1); }
.curseur.actif .curseur-point { opacity: 0; }
.curseur.sur-sombre .curseur-point { background: var(--chaux); }

/* ---------- Transition de porte (I-37) ---------- */
.porte-transition { position: fixed; inset: 0; z-index: 400; background: var(--chaux); pointer-events: none; clip-path: inset(50% 50% 0 50% round 50% 50% 0 0); visibility: hidden; }
.porte-transition.ferme, .porte-transition.ouvre { visibility: visible; }

/* =========================================================================
   ACCUEIL
   ========================================================================= */

/* 1. Héros « Passe le seuil » */
.heros { height: 320svh; }
.heros-scene { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--chaux); }
.heros-couche { position: absolute; inset: 0; z-index: 1; background: var(--encre); clip-path: inset(22svh 38vw 16svh 38vw round 12vw 12vw 0 0); will-change: clip-path; }
.heros-affiche, .heros-final-img, .heros-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heros-final-img { display: none; }
.heros-canvas { opacity: 0; transition: opacity .3s; }
.heros-canvas.pret { opacity: 1; }
.heros-lueur { position: absolute; left: 57%; top: 34svh; width: 3vw; height: 44svh; border-radius: 2vw; background: radial-gradient(closest-side, rgba(242, 194, 122, .85), rgba(242, 194, 122, 0)); mix-blend-mode: screen; animation: respire 4s ease-in-out infinite; pointer-events: none; }
.heros-lueur.fort { animation-duration: 1.6s; filter: brightness(1.4); }
@keyframes respire { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
.heros-ombre { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28, 30, 27, .62) 0%, rgba(28, 30, 27, .28) 35%, rgba(28, 30, 27, 0) 60%); opacity: 0; pointer-events: none; }
.heros-trait { position: absolute; left: 0; right: 0; top: 84svh; height: 1.5px; background: var(--encre); transform: scaleX(0); transform-origin: center; }
.pret .heros-trait { animation: trait .9s var(--courbe) .1s forwards; }
.heros-titre { position: absolute; left: 0; right: 0; bottom: 16svh; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 var(--gouttiere); font-family: var(--serif); font-weight: 500; font-size: clamp(64px, 9.6vw, 168px); line-height: .9; letter-spacing: -.03em; pointer-events: none; transform: translateY(.1em); }
.heros-titre .mot { display: inline-block; opacity: 0; will-change: transform; }
.pret .mot-g { animation: entre-g .8s var(--courbe) 1s forwards; }
.pret .mot-d { animation: entre-d .8s var(--courbe) 1.08s forwards; }
@keyframes entre-g { from { opacity: 0; transform: translateX(-6vw); } to { opacity: 1; transform: none; } }
@keyframes entre-d { from { opacity: 0; transform: translateX(6vw); } to { opacity: 1; transform: none; } }
.heros-titre.libre .mot { animation: none; opacity: var(--o, 1); transform: translateX(var(--x, 0)); }
.heros-porte { position: absolute; left: 38vw; right: 38vw; top: 22svh; bottom: 16svh; border: 0; background: transparent; border-radius: 12vw 12vw 0 0; cursor: pointer; }
.heros-sous { position: absolute; left: 0; right: 0; top: calc(84svh + 16px); text-align: center; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--encre-douce); padding: 0 var(--gouttiere); opacity: 0; }
.pret .heros-sous { animation: lettre .8s var(--courbe) 1.4s forwards; }
.heros-indice { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; white-space: nowrap; bottom: 2.4svh; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 0; background: none; font-size: 14px; font-weight: 500; opacity: 0; }
.pret .heros-indice { animation: lettre .8s var(--courbe) 1.6s forwards; }
.heros-indice .cle { width: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; animation: cle 2.4s var(--courbe) infinite; transform-origin: 7px 8px; }
@keyframes cle { 0%, 40% { transform: rotate(0); } 60%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
.heros-final { position: absolute; left: var(--gouttiere); bottom: 9svh; max-width: 680px; color: var(--chaux); opacity: 0; transform: translateY(30px); pointer-events: none; }
.heros-final.visible { pointer-events: auto; }
.heros-nom { font-family: var(--serif); font-size: clamp(48px, 6.6vw, 96px); line-height: .95; letter-spacing: -.02em; }
.heros-faits { margin: 14px 0 26px; font-size: 18px; }

.heros-titre, .heros-porte, .heros-sous, .heros-indice { z-index: 2; }
.heros-final, .note-reduit { z-index: 3; }

/* 2. Énoncé et chiffres */
.enonce { padding: clamp(96px, 12vw, 180px) var(--gouttiere) clamp(72px, 9vw, 130px); }
.enonce-phrase { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.14; letter-spacing: -.015em; max-width: 1200px; }
.enonce-phrase .mot-a { color: rgba(28, 30, 27, var(--a, .18)); transition: color .2s linear; }
.poly { display: inline-block; vertical-align: -0.12em; width: 3.4em; height: 1.05em; margin: 0 .12em; overflow: hidden; clip-path: polygon(8% 4%, 96% 0%, 100% 70%, 88% 100%, 4% 94%, 0% 30%); }
.poly img { width: 100%; height: 140%; object-fit: cover; transform: translateY(-14%); will-change: transform; }
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid rgba(28, 30, 27, .15); padding-top: 32px; }
.chiffre-val { font-family: var(--serif); font-size: clamp(54px, 6vw, 92px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; position: relative; padding-bottom: 14px; }
.chiffre-val::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 1.5px; background: var(--rouge); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--courbe); }
.chiffre.fini .chiffre-val::after { transform: scaleX(1); }
.chiffre dd { margin-top: 12px; color: var(--encre-douce); max-width: 22ch; }

/* 3. Carte du Suroît */
.carte-section { background: var(--chaux-2); padding: clamp(80px, 10vw, 140px) var(--gouttiere); }
.filtres-btn { display: none; }
.filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 16px 0 22px; border-top: 1px solid rgba(28, 30, 27, .15); }
.filtres-tete-cell, .filtres-voir { display: none; }
.filtre-groupe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filtre-etiquette { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--encre-douce); margin-right: 4px; }
.budget { min-width: 260px; flex-direction: column; align-items: stretch; gap: 0; }
.budget-tete { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.budget-tete output { font-variant-numeric: tabular-nums; font-weight: 500; }
/* Double curseur : le geste est capté par toute la piste (événements pointeur, voir accueil.js);
   les deux input restent là pour le clavier et les lecteurs d'écran, sans aucun toucher direct. */
.double { --m: 14px; position: relative; height: 44px; cursor: pointer; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.double-rail { position: absolute; left: var(--m); right: var(--m); top: 21px; height: 2px; background: rgba(28, 30, 27, .2); }
.double-rail span { position: absolute; top: 0; bottom: 0; background: var(--encre); }
.double input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.poignee { position: absolute; top: 50%; left: calc(var(--m) + (100% - var(--m) * 2) * var(--p, 0)); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--rouge); border: 3px solid var(--chaux); box-shadow: 0 0 0 1px var(--rouge); pointer-events: none; transition: transform .15s; }
.poignee::before { content: ""; position: absolute; inset: -11px; }
.double.prise .poignee { transition: none; }
.double.prise .poignee.active { transform: scale(1.18); }
.double input[data-budget-min]:focus-visible ~ .poignee[data-poignee="min"] { outline: 2px solid var(--encre); outline-offset: 3px; }
.double input[data-budget-max]:focus-visible ~ .poignee[data-poignee="max"] { outline: 2px solid var(--encre); outline-offset: 3px; }
.mention-cell { display: none; }
.filtre-coll button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; color: var(--chaux); font-weight: 500; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.compteur { margin-left: auto; font-family: var(--serif); font-size: 22px; overflow: hidden; height: 30px; }
.compteur-roule { display: inline-block; }
.compteur-roule.roule { animation: roule .5s var(--courbe); }
@keyframes roule { 0% { transform: translateY(0); opacity: 1; } 45% { transform: translateY(-100%); opacity: 0; } 55% { transform: translateY(100%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.carte-grille { display: grid; grid-template-columns: 60fr 40fr; gap: 20px; height: min(78vh, 760px); height: min(78svh, 760px); min-height: 560px; }
.carte-cadre { position: relative; border-radius: 6px; overflow: hidden; background: var(--chaux); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.carte-svg { width: 100%; height: 100%; cursor: grab; }
.carte-svg.glisse { cursor: grabbing; }
.carte-svg .terre { fill: var(--chaux-2); }
.carte-svg .parcs path { fill: var(--champ); opacity: .25; }
.carte-svg .eau-forme { fill: var(--eau); }
.carte-svg .canal { fill: none; stroke: var(--eau); stroke-width: 16; stroke-linecap: round; }
.carte-svg .iles path { fill: var(--chaux-2); }
.carte-svg .iles .montreal { fill: #E3DACB; }
.carte-svg .route { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 1px rgba(28, 30, 27, .3)); }
.carte-svg .autoroute { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 1.2px rgba(28, 30, 27, .45)); }
.carte-svg .ecusson circle { fill: #fff; stroke: var(--encre); stroke-width: 1.2; }
.carte-svg .ecusson text { font-family: var(--sans); font-size: 11px; font-weight: 600; text-anchor: middle; fill: var(--encre); }
.carte-svg .ecusson-l text { font-size: 10px; }
.carte-svg .rues { opacity: 0; transition: opacity .4s; pointer-events: none; }
.carte-svg.zoom-max .rues { opacity: 1; }
.carte-svg .rues path { fill: none; stroke: #fff; stroke-width: 1.4; }
.carte-svg .rues text { font-family: var(--sans); font-size: 6.5px; fill: var(--encre-douce); }
.carte-svg .etiquettes-eau text { font-family: var(--serif); font-style: italic; font-size: 17px; fill: var(--lac); opacity: .7; }
.carte-svg .villes text { font-family: var(--serif); font-style: italic; font-size: 20px; fill: var(--encre-douce); text-anchor: middle; cursor: pointer; paint-order: stroke; stroke: var(--chaux-2); stroke-width: 4px; stroke-linejoin: round; }
.carte-svg .villes text:hover { fill: var(--encre); }
.carte-svg .ville-sur-eau { stroke: var(--eau) !important; }
.carte-svg .ville-mtl { font-family: var(--serif); font-style: italic; font-size: 26px; fill: var(--encre); text-anchor: middle; }
.carte-svg .montreal-etiquette path { fill: none; stroke: var(--encre); stroke-width: 1.4; }
.carte-svg .mtl-min { font-family: var(--sans); font-size: 15px; font-weight: 600; fill: var(--rouge); text-anchor: middle; }
/* dessin à l'entrée (I-07) */
.carte-cadre .eau-forme { transform-box: fill-box; transform-origin: center; transform: scaleY(0); transition: transform 1s var(--courbe); }
.carte-cadre .route, .carte-cadre .autoroute { stroke-dasharray: 1600; stroke-dashoffset: 1600; transition: stroke-dashoffset 1.4s var(--courbe) .3s; }
.carte-cadre .villes text, .carte-cadre .etiquettes-eau, .carte-cadre .ecusson, .carte-cadre .montreal-etiquette { opacity: 0; transition: opacity .8s .9s; }
.carte-cadre.dessinee .eau-forme { transform: none; }
.carte-cadre.dessinee .route, .carte-cadre.dessinee .autoroute { stroke-dashoffset: 0; }
.carte-cadre.dessinee .villes text, .carte-cadre.dessinee .ecusson, .carte-cadre.dessinee .montreal-etiquette { opacity: 1; }
.carte-cadre.dessinee .etiquettes-eau { opacity: .7; }
/* épingles */
.ep { cursor: pointer; }
.ep .ep-corps { transform-box: fill-box; transform-origin: 50% 100%; }
.ep .ep-forme { fill: var(--encre); stroke: var(--chaux); stroke-width: 1.5; }
.ep .ep-porte { fill: var(--chaux); }
.ep.nouveau .ep-forme { fill: var(--rouge); }
.ep.offre .ep-forme { fill: var(--chaux); stroke: var(--encre); stroke-width: 2; }
.ep.offre .ep-porte { fill: var(--encre); }
.ep.vendu .ep-forme { fill: var(--vendu); }
.ep .ep-ombre { fill: rgba(28, 30, 27, .22); }
.ep .ep-cible { fill: transparent; }
.ep .ep-prix { opacity: 0; transition: opacity .25s; pointer-events: none; }
.ep .ep-prix rect { fill: var(--encre); }
.ep .ep-prix text { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: var(--chaux); text-anchor: middle; }
.ep.actif .ep-prix { opacity: 1; }
.epingles.focus .ep:not(.actif) .ep-echelle { opacity: .6; transition: opacity .3s; }
.ep.cache { pointer-events: none; }
.bulle { pointer-events: none; }
.bulle rect { fill: var(--encre); }
.bulle text { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--chaux); }
.bulle .bulle-nom { font-family: var(--serif); font-size: 13px; font-weight: 500; }
.legende-carte { position: absolute; left: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 12px; background: rgba(243, 238, 230, .94); border-radius: 4px; font-size: 12.5px; }
.legende-carte li { display: flex; align-items: center; gap: 6px; }
.lg { width: 11px; height: 13px; clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%); background: var(--encre); }
.lg-nouveau { background: var(--rouge); } .lg-vendu { background: var(--vendu); }
.lg-offre { background: var(--encre); position: relative; } .lg-offre::after { content: ""; position: absolute; inset: 2px 2px 2px; clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%); background: var(--chaux); }
.zoom { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; align-items: center; }
.zoom .rond, .zoom .recentrer { background: rgba(243, 238, 230, .96); border: 1px solid rgba(28, 30, 27, .3); }
.recentrer { min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.aide-toucher { font-size: 13px; color: var(--encre-douce); }
.carte-cadre .aide-toucher { display: none; }
.liste-cadre { position: relative; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; }
.liste { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.carte-p { position: relative; background: var(--chaux); border-radius: 6px; overflow: hidden; transition: box-shadow .3s, opacity .3s; will-change: transform; }
.carte-p.allume { box-shadow: 0 0 0 2px var(--encre); }
.carte-p.sort { opacity: 0; }
.carte-p-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--chaux-2); }
.carte-p-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--courbe); }
.carte-p:hover .carte-p-photo img { transform: scale(1.05); }
.statut { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 3px; background: var(--chaux); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.statut.nouveau { background: var(--rouge); color: var(--chaux); }
.statut.offre { background: var(--encre); color: var(--chaux); }
.coeur { position: absolute; right: 10px; top: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--chaux); display: grid; place-items: center; }
.coeur::before { content: ""; position: absolute; inset: -3px; }
.coeur .coeur-svg { width: 18px; fill: none; stroke: var(--encre); stroke-width: 1.8; }
.coeur[aria-pressed="true"] .coeur-svg { fill: var(--rouge); stroke: var(--rouge); }
.coeur.rebond .coeur-svg { animation: rebond .4s var(--courbe); }
@keyframes rebond { 50% { transform: scale(1.25); } }
.coeur .eclat { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--rouge); animation: eclat .5s var(--courbe) forwards; }
@keyframes eclat { from { transform: rotate(var(--r)) translateY(0); opacity: 1; } to { transform: rotate(var(--r)) translateY(-26px); opacity: 0; } }
.carte-p-corps { padding: 14px 16px 16px; }
.carte-p-nom { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.carte-p-lien { all: unset; cursor: pointer; }
.carte-p-lien::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.carte-p-lien:focus-visible::after { outline: 2px solid var(--rouge); outline-offset: -2px; }
.carte-p-ville { font-size: 13.5px; color: var(--encre-douce); margin-top: 4px; }
.carte-p-prix { font-family: var(--serif); font-size: 24px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.carte-p-faits { font-size: 13.5px; color: var(--encre-douce); }
.carte-p-accroche { font-size: 14px; margin-top: 8px; }
.liste-vide { padding: 40px 10px; text-align: center; }
.liste-vide p { margin-bottom: 20px; }
.carte-fin { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.carte-fin p { max-width: 52ch; font-size: 18px; }

/* 4. Collections (annonce) */
.collections { background: var(--encre); color: var(--chaux); padding: clamp(80px, 9vw, 120px) 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; min-height: 100svh; justify-content: center; }
.collections .etiquette { align-self: flex-start; padding: 0 var(--gouttiere); position: relative; z-index: 3; }
/* La photo et le titre défilant partagent la même case de grille : la photo dessous, le texte dessus.
   L'étiquette (au-dessus) et le bouton (dessous) restent dans le flux : rien ne peut les recouvrir. */
.coll-scene { position: relative; width: 100%; display: grid; place-items: center; margin: 36px 0 0; }
.coll-scene > * { grid-area: 1 / 1; }
.defile { width: 100%; overflow: hidden; position: relative; z-index: 2; margin: 0; pointer-events: none; }
.defile-piste { display: flex; width: max-content; will-change: transform; }
.defile-txt { font-family: var(--serif); font-size: clamp(64px, 13vw, 200px); line-height: 1.05; letter-spacing: -.03em; white-space: pre; padding-right: .25em; text-shadow: 0 2px 24px rgba(28, 30, 27, .55), 0 0 2px rgba(28, 30, 27, .6); }
.defile-txt span { transition: color .4s; }
.defile-txt span.centre { color: var(--lueur); }
.coll-photo { position: relative; z-index: 1; width: clamp(200px, 24vw, 360px); aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; pointer-events: none; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.coll-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; filter: brightness(.72); }
.coll-photo img.actif { opacity: 1; }
.coll-btn { position: relative; z-index: 2; margin-top: 40px; }

/* Superposition des collections (I-15) */
body.coll-ouvert { overflow: hidden; }
.page.recule { position: fixed; left: 0; top: 0; width: 100%; z-index: 81; transform-origin: 0 0; transition: transform .8s var(--courbe), clip-path .8s var(--courbe), filter .8s; pointer-events: none; }
.coll-over { position: fixed; inset: 0; z-index: 80; background: var(--encre); color: var(--chaux); }
.coll-over-tete { position: absolute; left: 2.5vw; top: 4vh; top: 4svh; width: 30vw; opacity: 0; transform: translateY(20px); transition: opacity .6s var(--courbe) .3s, transform .6s var(--courbe) .3s; }
.coll-over.ouvert .coll-over-tete { opacity: 1; transform: none; }
.coll-over-titre { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 64px); line-height: 1; }
.coll-over-aide { margin: 16px 0 24px; color: rgba(243, 238, 230, .78); }
.coll-panneaux { position: absolute; left: 36vw; right: 2vw; top: 4vh; top: 4svh; bottom: 4vh; bottom: 4svh; display: flex; gap: 12px; }
.coll-panneau { position: relative; flex: 1; min-width: 0; border: 0; border-radius: 6px; overflow: hidden; color: var(--chaux); text-align: left; padding: 22px; display: flex; flex-direction: column; transform: translateY(110vh); transition: transform .8s var(--courbe), flex-grow .5s var(--courbe); }
.coll-over.ouvert .coll-panneau { transform: none; }
.coll-panneau:hover, .coll-panneau:focus-visible { flex-grow: 1.7; }
.coll-v { font-family: var(--serif); font-size: 56px; line-height: 1; writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; white-space: nowrap; margin-top: auto; margin-bottom: 18px; }
.coll-desc { font-size: 14px; line-height: 1.45; max-width: 26ch; }
.coll-n { font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-top: 10px; }
.coll-img { height: 33%; margin: 18px -22px -22px; overflow: hidden; flex: none; }
.coll-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--courbe); }
.coll-panneau:hover .coll-img img { transform: scale(1.06); }
.coll-mini { position: absolute; border: 0; background: transparent; z-index: 82; border-radius: 14px; }
.coll-over.ouvert .coll-mini { box-shadow: 0 0 0 1px rgba(243, 238, 230, .35); }

/* 5. Calculatrice */
.calcul-section { padding: clamp(80px, 10vw, 140px) var(--gouttiere); }
.calc-onglets { position: relative; display: flex; gap: 6px; border-bottom: 1px solid rgba(28, 30, 27, .15); margin-bottom: 40px; overflow-x: auto; scrollbar-width: none; }
.calc-onglets button { border: 0; background: none; min-height: 52px; padding: 0 18px; font-weight: 500; font-size: 16px; color: var(--encre-douce); white-space: nowrap; }
.calc-onglets button[aria-selected="true"] { color: var(--encre); }
.calc-onglet-barre { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100px; background: var(--rouge); transition: transform .4s var(--courbe), width .4s var(--courbe); }
.calc-panneau { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.choix { border: 0; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.choix legend { font-weight: 500; font-size: 15px; margin-bottom: 8px; padding: 0; width: 100%; }
.choix label { position: relative; }
.choix input { position: absolute; opacity: 0; inset: 0; }
.choix span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(28, 30, 27, .25); font-weight: 500; font-size: 14.5px; cursor: pointer; transition: background-color .25s, color .25s; }
.choix input:checked + span { background: var(--encre); color: var(--chaux); border-color: var(--encre); }
.choix input:focus-visible + span { outline: 2px solid var(--rouge); outline-offset: 2px; }
.choix input:disabled + span { opacity: .4; cursor: not-allowed; }
.case { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; cursor: pointer; }
.case input { width: 20px; height: 20px; accent-color: var(--rouge); }
.unite { display: inline-flex; border: 1px solid rgba(28, 30, 27, .25); border-radius: 999px; overflow: hidden; }
.unite button { border: 0; background: none; min-width: 36px; min-height: 30px; font-weight: 600; font-size: 13px; }
.unite button[aria-pressed="true"] { background: var(--encre); color: var(--chaux); }
.secousse-msg { color: var(--rouge); font-size: 14px; font-weight: 500; margin: -12px 0 18px; }
.calc-resultat { background: var(--chaux-2); border-radius: 6px; padding: clamp(24px, 3vw, 40px); }
.calc-tete-res { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.calc-chiffre { font-family: var(--serif); font-size: clamp(56px, 6vw, 92px); line-height: 1; letter-spacing: -.02em; display: flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.rouleaux { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; }
.rouleau { display: inline-block; height: 1em; overflow: hidden; }
.rouleau-col { display: flex; flex-direction: column; transition: transform .35s var(--courbe); }
.rouleau-col span { height: 1em; line-height: 1; text-align: center; }
.rouleau-sep { display: inline-block; width: .22em; }
.calc-sous { margin-top: 10px; color: var(--encre-douce); }
.anneau { width: 140px; flex: none; transform: rotate(-90deg); }
.anneau circle { fill: none; stroke-width: 14; }
.anneau-fond { stroke: rgba(28, 30, 27, .08); }
.seg { transition: stroke-dasharray .35s var(--courbe), stroke-dashoffset .35s var(--courbe); }
.seg-capital { stroke: var(--lac); background: var(--lac); }
.seg-interets { stroke: var(--rouge); background: var(--rouge); }
.seg-schl { stroke: var(--brume); background: var(--brume); }
.seg-taxes { stroke: var(--lueur); background: var(--lueur); }
.mention-forte { margin: 18px 0; padding: 12px 14px; border-left: 2px solid var(--rouge); background: rgba(243, 238, 230, .7); font-size: 14px; font-weight: 500; }
.legende { display: grid; gap: 8px; margin-bottom: 16px; font-size: 14.5px; }
.legende li { display: flex; align-items: center; gap: 10px; }
.legende b { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.pastille { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.details { font-size: 14.5px; display: grid; gap: 4px; margin-bottom: 14px; border-top: 1px solid rgba(28, 30, 27, .12); padding-top: 14px; }
.calc-viser, .calc-droits { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 50px); line-height: 1.05; }
.jauge { height: 8px; border-radius: 4px; background: rgba(28, 30, 27, .1); margin: 20px 0 26px; overflow: hidden; }
.jauge span { display: block; height: 100%; width: 0; background: var(--lac); border-radius: 4px; transition: width .35s var(--courbe); }
.ratios { display: grid; gap: 18px; }
.ratio-tete { display: flex; justify-content: space-between; margin-bottom: 6px; }
.ratio-tete b { font-variant-numeric: tabular-nums; }
.barre { position: relative; height: 8px; background: rgba(28, 30, 27, .1); border-radius: 4px; margin-bottom: 6px; }
.barre span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: var(--lac); transition: width .35s var(--courbe), background-color .3s; }
.barre i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--encre); }
.ratio.depasse b { color: var(--rouge); }
.ratio.depasse .barre span { background: var(--rouge); }
.alerte { color: var(--rouge); font-weight: 500; margin-top: 16px; }
.tranches { display: grid; gap: 16px; margin: 24px 0; }
.tranche-tete { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; margin-bottom: 6px; }
.tranche-tete b { font-variant-numeric: tabular-nums; }
.tranche .barre span { background: var(--erable); transition: width .6s var(--courbe); }
.tranche:nth-child(2) .barre span { transition-delay: .15s; } .tranche:nth-child(3) .barre span { transition-delay: .3s; }
.calc-notaire { font-weight: 500; }
.calc-fin { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; }

/* 6. Comparateur de quartiers */
.quartiers { background: var(--lac); color: var(--chaux); padding: clamp(80px, 10vw, 140px) var(--gouttiere); }
.quartiers .intro { color: rgba(243, 238, 230, .78); }
.quartiers-grille { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.menu-ville { margin-bottom: 24px; }
.menu-ville label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; margin-bottom: 8px; }
.menu-ville select { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 4px; border: 1px solid rgba(243, 238, 230, .4); background: rgba(243, 238, 230, .06); color: var(--chaux); font-family: var(--serif); font-size: 22px; }
.menu-ville select option { color: var(--encre); font-family: var(--sans); font-size: 16px; }
.pastille-a, .pastille-b { width: 12px; height: 12px; border-radius: 50%; background: var(--lueur); }
.pastille-b { background: var(--chaux); }
.ville-phrase { margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: 18px; color: rgba(243, 238, 230, .85); min-height: 1.5em; }
.synthese { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; margin-top: 12px; }
.synthese .m { display: inline-block; opacity: 0; transform: translateY(8px); animation: lettre .4s var(--courbe) forwards; }
.radar { width: 100%; max-width: 440px; margin: 0 auto; overflow: visible; }
.radar-grille polygon { fill: none; stroke: rgba(243, 238, 230, .18); }
.radar-grille line { stroke: rgba(243, 238, 230, .2); }
.radar-a { fill: rgba(242, 194, 122, .28); stroke: var(--lueur); stroke-width: 2; }
.radar-b { fill: rgba(243, 238, 230, .14); stroke: var(--chaux); stroke-width: 2; stroke-dasharray: 5 4; }
.radar-axes text { font-family: var(--sans); font-size: 12px; font-weight: 500; fill: var(--chaux); text-anchor: middle; }
.radar-axe .zone { stroke: transparent; stroke-width: 26; cursor: pointer; }
.radar-axe .ligne { stroke: rgba(243, 238, 230, .2); stroke-width: 1; transition: stroke-width .2s, stroke .2s; }
.radar-axe.actif .ligne { stroke: var(--lueur); stroke-width: 3; }
.radar-info { text-align: center; min-height: 1.6em; margin-top: 10px; font-size: 15px; }
.barres-titre { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; }
.barres li { margin-bottom: 18px; cursor: default; }
.barres-tete { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.barres-val { font-variant-numeric: tabular-nums; font-size: 13px; color: rgba(243, 238, 230, .8); }
.barre-double { display: grid; gap: 4px; }
.barre-double span { display: block; height: 6px; border-radius: 3px; transition: width .7s var(--courbe); }
.barre-double .ba { background: var(--lueur); }
.barre-double .bb { background: var(--chaux); opacity: .8; }
.barres li.actif .barres-tete { color: var(--lueur); }
.quartiers .petit { color: rgba(243, 238, 230, .7); }

/* 7. L'équipe */
.equipe { padding: clamp(80px, 10vw, 140px) var(--gouttiere); }
.equipe-grille { display: grid; grid-template-columns: 4fr 6fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.equipe-photo { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; }
.equipe-photo img { width: 100%; height: 100%; object-fit: cover; }
.equipe-liste-boite { position: relative; }
.membre { border-top: 1px solid rgba(28, 30, 27, .18); }
.membre:last-child { border-bottom: 1px solid rgba(28, 30, 27, .18); }
.membre-nom { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 22px 0; font-family: var(--serif); font-size: clamp(40px, 4.6vw, 68px); line-height: 1; letter-spacing: -.02em; }
.membre-nom span { display: inline-block; transition: transform .4s var(--courbe); }
.membre-info { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--courbe); }
.membre-info > * { overflow: hidden; }
.membre-info { padding-left: 24px; }
.membre-info p { max-width: 46ch; }
.membre.ouvert .membre-nom span { transform: translateX(24px); }
.membre.ouvert .membre-info { grid-template-rows: 1fr; padding-bottom: 22px; }
.membre-info { grid-template-rows: 0fr 0fr 0fr 0fr; }
.membre.ouvert .membre-info { grid-template-rows: auto auto auto auto; }
.membre-titre { font-weight: 500; }
.membre-note { font-size: 13px; color: var(--encre-douce); }
.membre-spec { margin-top: 10px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--rouge); }
.equipe-poly { position: absolute; left: 0; top: 0; width: 220px; height: 280px; pointer-events: none; opacity: 0; transition: opacity .3s; clip-path: polygon(10% 0%, 92% 6%, 100% 64%, 80% 100%, 6% 92%, 0% 36%); z-index: 2; }
.equipe-poly.visible { opacity: 1; }
.equipe-poly img { width: 100%; height: 100%; object-fit: cover; }
.histoire { margin-top: clamp(64px, 8vw, 110px); }
.histoire-titre { font-family: var(--serif); font-size: clamp(30px, 3vw, 44px); margin-bottom: 28px; }
.dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: d; }
.dates li { border-top: 1px solid rgba(28, 30, 27, .18); padding-top: 18px; }
.date { display: block; font-family: var(--serif); font-size: 44px; line-height: 1; margin-bottom: 12px; color: var(--rouge); }

/* 8. Avis */
.avis { background: var(--chaux-2); padding: clamp(80px, 10vw, 140px) 0; }
.avis .section-tete, .avis .aide-rail, .avis .mention { padding: 0 var(--gouttiere); }
.rail { overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rail.tire { cursor: grabbing; }
.rail-piste { display: flex; gap: 20px; width: max-content; padding: 30px var(--gouttiere); will-change: transform; }
.avis-carte { position: relative; width: clamp(280px, 30vw, 420px); flex: none; background: var(--chaux); border-radius: 6px; padding: 54px 28px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.avis-carte blockquote { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.35; }
.signature { font-size: 14px; font-weight: 500; color: var(--encre-douce); }
.tampon { position: absolute; right: 18px; top: -14px; padding: 6px 12px; border: 2px solid var(--rouge); color: var(--rouge); border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(243, 238, 230, .9); mix-blend-mode: multiply; transform: rotate(-6deg) scale(1.8); opacity: 0; }
.tampon.imprime { animation: tampon .45s var(--courbe) forwards; }
@keyframes tampon { 0% { opacity: 0; transform: rotate(-14deg) scale(1.8); } 70% { opacity: 1; transform: rotate(-6deg) scale(.96); } 100% { opacity: 1; transform: rotate(-6deg) scale(1); } }
.aide-rail { font-size: 13.5px; color: var(--encre-douce); margin-top: 8px; }

/* 9. Appel final */
.appel { position: relative; color: var(--chaux); background: var(--encre); min-height: 130vh; min-height: 130svh; }
.appel-photo { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.appel-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: brightness(var(--b, .45)) saturate(var(--s, .55)) hue-rotate(var(--h, -8deg)); }
.lueurs { position: absolute; inset: 0; pointer-events: none; }
.lueur { position: absolute; width: 9vw; height: 11vw; margin: -5.5vw 0 0 -4.5vw; border-radius: 30%; background: radial-gradient(closest-side, rgba(242, 194, 122, .95), rgba(242, 194, 122, .35) 55%, rgba(242, 194, 122, 0)); mix-blend-mode: screen; opacity: 0; transition: opacity .6s; }
.lueur.on { opacity: 1; animation: scintille 3s ease-in-out infinite; }
.lueur-porte { height: 15vw; margin-top: -7.5vw; width: 6vw; margin-left: -3vw; }
.lueur-petite { width: 3vw; margin-left: -1.5vw; }
@keyframes scintille { 0%, 100% { filter: brightness(1); } 40% { filter: brightness(.88); } 45% { filter: brightness(1.06); } }
.appel-contenu { position: relative; margin-top: -100vh; margin-top: -100svh; min-height: 130vh; min-height: 130svh; display: grid; grid-template-columns: 1fr minmax(380px, 520px); gap: 40px; padding: 18vh var(--gouttiere) 10vh; align-items: start; }
.appel-texte { position: sticky; top: 18vh; top: 18svh; text-shadow: 0 1px 24px rgba(0, 0, 0, .35); }
.appel-texte .intro { color: rgba(243, 238, 230, .88); }
.appel-form { background: var(--chaux); color: var(--encre); border-radius: 6px; padding: clamp(22px, 2.6vw, 34px); }
.rencontre { background: var(--lac); color: var(--chaux); }
.rencontre .appel-contenu { margin-top: 0; min-height: 0; padding: clamp(80px, 10vw, 140px) var(--gouttiere); }
.rencontre .appel-texte { text-shadow: none; position: static; }

/* Formulaires (I-25) */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.modes-2 { grid-template-columns: repeat(2, minmax(0, 220px)); }
.mode { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; min-height: 64px; border: 1px solid rgba(28, 30, 27, .22); border-radius: 4px; cursor: pointer; transition: border-color .25s, background-color .25s; }
.mode input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mode-titre { font-weight: 600; font-size: 15px; }
.mode-phrase { font-size: 12.5px; color: var(--encre-douce); line-height: 1.35; }
.mode:has(input:checked) { border-color: var(--encre); background: var(--chaux-2); box-shadow: inset 0 0 0 1px var(--encre); }
.mode:has(input:focus-visible) { outline: 2px solid var(--rouge); outline-offset: 2px; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.champ { display: flex; flex-direction: column; gap: 4px; }
.champ-large { grid-column: 1 / -1; }
.champ label { font-size: 13.5px; font-weight: 500; }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(28, 30, 27, .25); border-radius: 4px; background: #FBF8F3; font-size: 16px; }
.champ textarea { resize: vertical; min-height: 80px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--encre); outline-offset: 0; }
.champ.invalide input, .champ.invalide select { border-color: var(--rouge); }
.erreur { color: var(--rouge); font-size: 13px; font-weight: 500; min-height: 0; }
.erreur:empty { display: none; }
.piege { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact { position: relative; }
.envoyer { margin-top: 18px; width: 100%; }
.envoyer + .petit { margin-top: 10px; }
.mini-porte { display: none; position: relative; width: 16px; height: 24px; border-radius: 8px 8px 0 0; background: var(--lueur); perspective: 40px; }
.mini-porte span { position: absolute; inset: 0; border-radius: 8px 8px 0 0; background: var(--chaux); transform-origin: left; transition: transform .6s var(--courbe); }
.envoyer.envoie .envoyer-texte, .envoyer.envoie .fleches { display: none; }
.envoyer.envoie .mini-porte { display: block; }
.envoyer.ouvre .mini-porte span { transform: rotateY(-75deg); }
.merci { text-align: left; padding: 10px 0; animation: lettre .6s var(--courbe); }
.merci-titre { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; margin-bottom: 12px; }
.merci .lien { margin-top: 12px; }

/* 10. Pied de page */
.pied { background: var(--encre); color: var(--chaux); padding: clamp(60px, 8vw, 110px) var(--gouttiere) 28px; overflow: hidden; }
.pied-logo { display: flex; justify-content: center; }
.pied-logo .logo-mot { font-size: 22vw; letter-spacing: -.03em; padding-bottom: .06em; }
.pied-logo .logo-mot::after, .pied-logo .l { animation: none; }
.pied-logo .logo-mot::after { transform: scaleX(0); transition: transform .8s var(--courbe); height: 3px; }
.pied-logo .l { opacity: 1; transform: none; }
.pied-logo.entre .logo-mot::after { transform: scaleX(1); }
.pied-logo .logo-battant { transition: transform .8s var(--courbe) .3s; }
.pied-logo .logo-lueur { transition: box-shadow .8s .3s; }
.pied-logo.entre .logo-battant { transform: rotateY(-70deg); }
.pied-logo.entre .logo-lueur { box-shadow: 0 0 40px 14px rgba(242, 194, 122, .55); }
.pied-phrase { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 32px); text-align: center; max-width: 30ch; margin: 30px auto 60px; line-height: 1.2; }
.pied-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid rgba(243, 238, 230, .18); padding-top: 32px; }
.pied-titre { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: rgba(243, 238, 230, .65); margin-bottom: 12px; font-family: var(--sans); }
.pied .petit { color: rgba(243, 238, 230, .6); margin-top: 8px; }
.pied a { text-decoration-color: rgba(243, 238, 230, .4); text-underline-offset: 3px; }
.pied-liens li a { display: inline-flex; min-height: 32px; align-items: center; }
.pied-territoire, .pied-oaciq { margin-top: 28px; font-size: 14px; color: rgba(243, 238, 230, .72); max-width: 90ch; }
.pied-oaciq { margin-top: 10px; }
.pied-bas { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(243, 238, 230, .18); font-size: 13.5px; color: rgba(243, 238, 230, .72); }
.pied-bas a { color: var(--chaux); }

/* =========================================================================
   VENDRE
   ========================================================================= */
.v-heros { display: grid; grid-template-columns: 4fr 6fr; gap: clamp(32px, 5vw, 80px); padding: calc(var(--entete-h) + 40px) var(--gouttiere) clamp(80px, 9vw, 120px); align-items: start; }
.v-heros-photo { position: sticky; top: calc(var(--entete-h) + 20px); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 50% 50% 0 0 / 34% 34% 0 0; }
.v-heros-photo img { width: 100%; height: 100%; object-fit: cover; }
.estim { margin-top: 36px; background: var(--chaux-2); border-radius: 6px; padding: clamp(22px, 3vw, 40px); }
.etapes-barre { position: relative; padding-top: 30px; margin-bottom: 8px; }
.etapes-trait { display: block; height: 2px; background: rgba(28, 30, 27, .15); }
.etapes-trait span { display: block; height: 100%; width: 0; background: var(--rouge); transition: width .45s var(--courbe); }
.etapes-maison { position: absolute; top: 0; left: 0; width: 26px; height: 26px; margin-left: -13px; fill: var(--chaux); stroke: var(--rouge); stroke-width: 1.8; transition: transform .45s var(--courbe); }
.etapes-noms { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--encre-douce); }
.etapes-noms li.actif { color: var(--encre); }
.etape-num { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--encre-douce); margin: 16px 0 6px; }
.etape { animation: etape .45s var(--courbe); }
.etape.sort-g { animation: sort-g .3s var(--courbe) forwards; }
@keyframes etape { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes sort-g { to { opacity: 0; transform: translateX(-30px); } }
.etape-q { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; margin-bottom: 22px; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px; border: 1px solid rgba(28, 30, 27, .2); border-radius: 6px; background: var(--chaux); cursor: pointer; font-weight: 500; font-size: 14.5px; transition: border-color .25s; }
.type input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.type svg { width: 64px; height: 48px; fill: none; stroke: var(--encre); stroke-width: 1.6; stroke-linejoin: round; }
.type svg .corps, .type svg .toit { transition: fill .35s; }
.type:has(input:checked) { border-color: var(--rouge); box-shadow: inset 0 0 0 1px var(--rouge); }
.type:has(input:checked) svg .corps, .type:has(input:checked) svg .toit { fill: var(--rouge); }
.type:has(input:focus-visible) { outline: 2px solid var(--rouge); outline-offset: 2px; }
.champ-groupe { margin-bottom: 24px; }
.ville-choix { display: grid; grid-template-columns: 1fr 200px; gap: 16px; margin-top: 8px; }
.puces-villes { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.puces-villes .puce { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.mini-carte svg { width: 100%; border-radius: 4px; }
.mc-terre { fill: var(--chaux); }
.mc-eau { fill: var(--eau); }
.mini-carte .mc-pt { cursor: pointer; }
.mini-carte .mc-pt circle { fill: var(--encre); transition: r .25s, fill .25s; }
.mini-carte .mc-pt .mc-cible { fill: transparent; }
.mini-carte .mc-pt.actif circle:not(.mc-cible) { fill: var(--rouge); }
.mini-carte figcaption { margin-top: 6px; }
.atouts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin-top: 16px; }
.estim-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 28px; flex-wrap: wrap; }
.estim-nav [data-estim-suivant] { margin-left: auto; }
.cadran { max-width: 360px; margin: 10px 0 0; }
.cadran svg { width: 100%; overflow: visible; }
.cadran-fond { fill: none; stroke: rgba(28, 30, 27, .12); stroke-width: 16; stroke-linecap: round; }
.cadran-zone { fill: none; stroke: var(--rouge); stroke-width: 16; stroke-linecap: butt; transition: stroke-dasharray 1.2s var(--courbe), stroke-dashoffset 1.2s var(--courbe); }
.cadran-aiguille { transform-origin: 120px 120px; transform: rotate(-90deg); transition: transform 1.2s cubic-bezier(.34, 1.4, .5, 1); }
.cadran-aiguille path { stroke: var(--encre); stroke-width: 3; stroke-linecap: round; }
.cadran-aiguille circle { fill: var(--encre); }
.cadran-bornes { display: flex; justify-content: space-between; font-size: 13px; color: var(--encre-douce); padding: 0 6px; }
.eval { margin-top: 30px; border-top: 1px solid rgba(28, 30, 27, .15); padding-top: 26px; }
.eval-titre { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; margin-bottom: 10px; }
.eval > p { margin-bottom: 18px; color: var(--encre-douce); }

/* Maison en coupe (I-28) */
.coupe-section { background: var(--chaux-2); height: 520svh; }
.coupe-collant { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 4fr 6fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: calc(var(--entete-h) + 10px) var(--gouttiere) 30px; overflow: hidden; }
.coupe-texte .titre { font-size: clamp(40px, 4.6vw, 68px); }
.coupe-etapes-boite { position: relative; margin-top: 36px; padding-left: 28px; min-height: 240px; }
.coupe-progres { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(28, 30, 27, .15); }
.coupe-progres span { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--rouge); }
.coupe-etape { position: absolute; left: 28px; right: 0; top: 0; opacity: 0; transform: translateY(24px); transition: opacity .45s var(--courbe), transform .45s var(--courbe); }
.coupe-etape.actif { opacity: 1; transform: none; }
.coupe-etape.passe { transform: translateY(-24px); }
.coupe-num { display: block; font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--rouge); }
.coupe-etape h3 { font-family: var(--serif); font-size: 34px; line-height: 1.1; margin: 8px 0 12px; }
.coupe-etape p { max-width: 42ch; color: var(--encre-douce); }
.coupe-statique { display: none; }
.coupe-scene { position: relative; width: 100%; max-height: calc(100svh - var(--entete-h) - 60px); aspect-ratio: 800 / 640; perspective: 1400px; margin: 0 auto; }
.coupe-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.c-ciel { fill: var(--chaux-2); }
.c-terre { fill: #CFC2AD; }
.c-gazon { fill: var(--champ); }
.c-toit { fill: var(--encre); }
.c-cheminee { fill: #3A3C38; }
.c-coque { fill: #3A3C38; }
.c-piece { fill: #F7F2EA; }
.c-sous-sol { fill: #E5DCCD; }
.c-escalier { fill: none; stroke: #9C9A92; stroke-width: 3; }
.c-meuble { fill: #C9B79C; } .c-meuble-clair { fill: #DCCDB5; }
.c-sofa { fill: #D8CBB4; } .c-coussin { fill: var(--rouge); } .c-table { fill: #CDBBA0; } .c-lit { fill: #E4D9C5; }
.c-abat { fill: var(--lueur); stroke: #B08D57; } .c-trait { stroke: #8C6A45; stroke-width: 2; }
.glisse { transition: transform .7s var(--courbe), opacity .5s; opacity: 0; }
.glisse.g1 { transform: translateX(-260px); } .glisse.g2 { transform: translateX(-200px); } .glisse.g3 { transform: translateX(-240px); } .glisse.g4 { transform: translateY(-60px); }
.lampe .lueur { opacity: 0; transition: opacity .6s .4s; }
.lampe .c-abat, .lampe .c-trait { opacity: 0; transition: opacity .4s .3s; }
.coupe-scene[data-etape="2"] .glisse, .coupe-scene[data-etape="3"] .glisse, .coupe-scene[data-etape="4"] .glisse, .coupe-scene[data-etape="5"] .glisse { transform: none; opacity: 1; }
.coupe-scene[data-etape="2"] .glisse.g2 { transition-delay: .1s; } .coupe-scene[data-etape="2"] .glisse.g3 { transition-delay: .2s; } .coupe-scene[data-etape="2"] .glisse.g4 { transition-delay: .3s; }
.coupe-scene[data-etape="2"] .lampe .lueur, .coupe-scene[data-etape="3"] .lampe .lueur, .coupe-scene[data-etape="4"] .lampe .lueur, .coupe-scene[data-etape="5"] .lampe .lueur,
.coupe-scene[data-etape="2"] .lampe .c-abat, .coupe-scene[data-etape="3"] .lampe .c-abat, .coupe-scene[data-etape="4"] .lampe .c-abat, .coupe-scene[data-etape="5"] .lampe .c-abat,
.coupe-scene[data-etape="2"] .lampe .c-trait, .coupe-scene[data-etape="3"] .lampe .c-trait, .coupe-scene[data-etape="4"] .lampe .c-trait, .coupe-scene[data-etape="5"] .lampe .c-trait { opacity: 1; }
.ruban { fill: none; stroke: #E3B53B; stroke-width: 8; stroke-dasharray: 460; stroke-dashoffset: 460; transition: stroke-dashoffset .8s var(--courbe); }
.ruban-v { stroke-dasharray: 380; stroke-dashoffset: 380; transition-delay: .3s; }
.ruban-v2 { stroke-dasharray: 140; stroke-dashoffset: 140; transition-delay: .5s; }
.ruban-boitier rect { fill: #E3B53B; stroke: var(--encre); stroke-width: 1.5; opacity: 0; transition: opacity .3s; }
.cote { font-family: var(--sans); font-size: 18px; font-weight: 600; fill: var(--encre); text-anchor: middle; opacity: 0; transition: opacity .4s .7s; }
.c-ruban { opacity: 1; }
.coupe-scene[data-etape="1"] .ruban { stroke-dashoffset: 0; }
.coupe-scene[data-etape="1"] .ruban-boitier rect, .coupe-scene[data-etape="1"] .cote { opacity: 1; }
.c-photos .eclair { fill: #fff; opacity: 0; }
.coupe-scene[data-etape="3"] .eclair { animation: eclair 2.4s steps(1) 1 forwards; }
@keyframes eclair {
  0% { opacity: .9; transform: translate(0, 0); } 8% { opacity: 0; }
  16% { opacity: .9; transform: translate(220px, 0); } 24% { opacity: 0; }
  32% { opacity: .9; transform: translate(0, 136px); } 40% { opacity: 0; }
  48% { opacity: .9; transform: translate(220px, 136px); } 56% { opacity: 0; }
  64% { opacity: .9; transform: translate(0, 274px) scale(1, .62); } 72% { opacity: 0; }
  80% { opacity: .9; transform: translate(220px, 274px) scale(1, .62); } 88%, 100% { opacity: 0; }
}
.viseur { opacity: 0; transition: opacity .3s; }
.viseur path { fill: none; stroke: var(--encre); stroke-width: 2.5; }
.viseur text { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--encre); text-anchor: middle; }
.coupe-scene[data-etape="3"] .viseur { opacity: 1; }
.coupe-scene[data-etape="3"] .v2 { transition-delay: .4s; } .coupe-scene[data-etape="3"] .v3 { transition-delay: .8s; } .coupe-scene[data-etape="3"] .v4 { transition-delay: 1.2s; } .coupe-scene[data-etape="3"] .v5 { transition-delay: 1.6s; } .coupe-scene[data-etape="3"] .v6 { transition-delay: 2s; }
.perso { fill: var(--encre); opacity: 0; transform: translate(40px, 494px); transition: transform 1s var(--courbe), opacity .3s; }
.perso.p2 { fill: var(--brume); } .perso.p3 { fill: var(--erable); }
.coupe-scene[data-etape="4"] .perso { opacity: 1; }
.coupe-scene[data-etape="4"] .p1 { transform: translate(250px, 492px); }
.coupe-scene[data-etape="4"] .p2 { transform: translate(310px, 492px); transition-delay: .25s; }
.coupe-scene[data-etape="4"] .p3 { transform: translate(470px, 492px); transition-delay: .5s; }
.enveloppe rect { fill: var(--chaux); stroke: var(--rouge); stroke-width: 2; }
.enveloppe path { fill: none; stroke: var(--rouge); stroke-width: 2; }
.enveloppe { opacity: 0; transform: translate(400px, 360px); transition: transform .9s var(--courbe), opacity .4s; }
.coupe-scene[data-etape="4"] .enveloppe { opacity: 1; }
.coupe-scene[data-etape="4"] .e1 { transform: translate(560px, 120px) rotate(-8deg); transition-delay: .6s; }
.coupe-scene[data-etape="4"] .e2 { transform: translate(620px, 150px) rotate(6deg); transition-delay: .8s; }
.coupe-scene[data-etape="4"] .e3 { transform: translate(690px, 116px) rotate(-4deg); transition-delay: 1s; }
.offres-compteur { opacity: 0; transition: opacity .4s 1.2s; }
.offres-compteur rect { fill: var(--rouge); }
.offres-compteur text { font-family: var(--sans); font-size: 17px; font-weight: 600; fill: var(--chaux); text-anchor: middle; }
.coupe-scene[data-etape="4"] .offres-compteur { opacity: 1; }
.lampe-galerie { opacity: 0; transition: opacity .6s .4s; }
.pancarte { transform: translateY(-260px); opacity: 0; transition: transform .7s cubic-bezier(.5, 1.6, .5, 1) .6s, opacity .3s .6s; }
.pancarte .poteau { stroke: #6B5137; stroke-width: 5; fill: none; }
.pancarte .panneau { fill: var(--chaux); stroke: var(--rouge); stroke-width: 3; }
.pancarte text { font-family: var(--sans); font-size: 15px; font-weight: 700; fill: var(--rouge); text-anchor: middle; letter-spacing: .06em; }
.trousseau { opacity: 0; transform: translate(424px, 380px); transition: transform .6s cubic-bezier(.5, 1.5, .5, 1) 1.1s, opacity .2s 1.1s; }
.trousseau circle, .trousseau path { fill: none; stroke: #B08D57; stroke-width: 3; }
.coupe-scene[data-etape="5"] .lampe-galerie, .coupe-scene[data-etape="5"] .pancarte, .coupe-scene[data-etape="5"] .trousseau { opacity: 1; }
.coupe-scene[data-etape="5"] .pancarte { transform: none; }
.coupe-scene[data-etape="5"] .trousseau { transform: translate(424px, 512px) rotate(30deg); }
.coupe-facade { position: absolute; left: 22%; top: 34.0625%; width: 56%; height: 44.0625%; transform-origin: 50% 100%; transform: rotateX(0deg); transform-style: preserve-3d; -webkit-backface-visibility: hidden; backface-visibility: hidden; will-change: transform; z-index: 2; }
.coupe-facade svg { width: 100%; height: 100%; }
.f-mur { fill: #EFEAE0; } .f-planches path { stroke: #DCD3C3; stroke-width: 1.5; } .f-ligne { stroke: #C9BFAE; stroke-width: 3; }
.f-fenetre { fill: #3F5558; stroke: var(--encre); stroke-width: 5; }
.f-porte { fill: var(--rouge); } .f-poignee { fill: var(--lueur); } .f-auvent { fill: var(--encre); } .f-seuil { fill: #9C9A92; }

/* Mise en valeur (I-27) */
.valeur { padding: clamp(80px, 10vw, 140px) var(--gouttiere); }
.glissiere { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; --pos: 50%; }
.glissiere img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gl-apres { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.gl-etiquette { position: absolute; top: 16px; padding: 6px 12px; border-radius: 3px; background: rgba(28, 30, 27, .82); color: var(--chaux); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.gl-et-avant { left: 16px; } .gl-et-apres { right: 16px; }
.gl-poignee { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 64px; margin-left: -32px; display: grid; place-items: center; cursor: ew-resize; }
.gl-ligne { position: absolute; top: 0; bottom: 0; left: 31px; width: 2px; background: var(--chaux); }
.gl-porte { position: relative; width: 44px; height: 66px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }
.gl-porte path:first-child { fill: var(--rouge); stroke: var(--chaux); stroke-width: 2.5; }
.gl-chevrons { fill: none; stroke: var(--chaux); stroke-width: 2; }
.chiffres-3 { grid-template-columns: repeat(3, 1fr); margin-top: 48px; }

/* Vendus (I-29) */
.vendus { background: var(--encre); color: var(--chaux); padding: clamp(80px, 10vw, 140px) var(--gouttiere); }
.vendus .intro { color: rgba(243, 238, 230, .75); }
.vendus-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vendu-carte { position: relative; overflow: clip; padding: 70px 24px 26px; border: 1px solid rgba(243, 238, 230, .2); border-radius: 6px; min-height: 190px; display: flex; flex-direction: column; gap: 6px; overflow: visible; }
.vendu-carte.secoue-c { animation: secoue-c .35s .3s; }
@keyframes secoue-c { 30% { transform: translate(2px, -2px) rotate(.4deg); } 60% { transform: translate(-2px, 1px); } }
.vendu-ville { font-family: var(--serif); font-size: 28px; line-height: 1.05; }
.vendu-type { color: rgba(243, 238, 230, .7); font-size: 14px; }
.vendu-prix { font-family: var(--serif); font-size: 26px; margin-top: auto; }
.vendu-pct { font-size: 14px; color: rgba(243, 238, 230, .7); }
.vendu-tampon { position: absolute; right: 16px; top: 18px; padding: 6px 10px; border: 2.5px solid var(--rouge); border-radius: 4px; color: #E07A60; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-14deg) scale(1.8); opacity: 0; }
.vendu-tampon.tombe { animation: tombe .45s var(--courbe) forwards; }
@keyframes tombe { 0% { opacity: 0; transform: rotate(-14deg) scale(1.8); } 70% { opacity: 1; transform: rotate(-8deg) scale(.95); } 100% { opacity: 1; transform: rotate(-8deg) scale(1); } }

/* FAQ (I-30) */
.faq { padding: clamp(80px, 10vw, 140px) var(--gouttiere); }
.faq-liste { max-width: 980px; }
.faq-item { border-top: 1px solid rgba(28, 30, 27, .18); }
.faq-item:last-child { border-bottom: 1px solid rgba(28, 30, 27, .18); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; min-height: 56px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; font-weight: 500; }
.faq-porte { position: relative; flex: none; width: 22px; height: 32px; border: 1.5px solid var(--encre); border-radius: 11px 11px 0 0; perspective: 50px; }
.faq-porte span { position: absolute; inset: 2px; border-radius: 9px 9px 0 0; background: var(--rouge); transform-origin: left; transition: transform .4s var(--courbe); }
.faq-item[open] .faq-porte span { transform: rotateY(-70deg); }
.faq-rep { overflow: hidden; }
.faq-rep p { padding-bottom: 24px; max-width: 70ch; color: var(--encre-douce); }

/* =========================================================================
   FICHE VEDETTE
   ========================================================================= */
.f-heros { height: 200svh; }
.f-heros-scene { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--chaux); }
.ariane { position: absolute; left: var(--gouttiere); top: calc(var(--entete-h) + var(--demo-h) + 6px); z-index: 4; font-size: 13.5px; color: var(--encre-douce); transition: color .4s; }
.ariane a { display: inline-flex; min-height: 32px; align-items: center; }
.f-poly { position: absolute; inset: 0; will-change: clip-path; }
.f-poly img { width: 100%; height: 100%; object-fit: cover; }
.f-poly-1 { z-index: 1; clip-path: polygon(40% 16%, 70% 12%, 76% 34%, 72% 66%, 44% 72%, 36% 42%); }
.f-poly-2 { z-index: 2; clip-path: polygon(78% 10%, 95% 8%, 98% 22%, 95% 40%, 80% 42%, 75% 26%); }
.f-poly-3 { z-index: 2; clip-path: polygon(76% 50%, 96% 48%, 99% 64%, 95% 84%, 78% 86%, 73% 68%); }
.f-heros-ombre { position: absolute; inset: 0; z-index: 3; background: linear-gradient(0deg, rgba(28, 30, 27, .65), rgba(28, 30, 27, 0) 55%); opacity: 0; pointer-events: none; }
.f-titre em { display: block; }
.f-heros-texte { position: absolute; left: var(--gouttiere); bottom: 7svh; z-index: 4; max-width: 34vw; transition: color .4s; }
.f-heros-texte.clair { color: var(--chaux); }
.f-heros-texte.clair .etiquette { color: rgba(243, 238, 230, .8); }
.f-titre { font-family: var(--serif); font-size: clamp(52px, 5.2vw, 112px); line-height: .92; letter-spacing: -.025em; }
.f-adresse { margin-top: 12px; font-size: 18px; }
.f-prix { font-family: var(--serif); font-size: clamp(32px, 3vw, 44px); margin: 6px 0 24px; font-variant-numeric: tabular-nums; }
.faits { padding: clamp(80px, 10vw, 140px) var(--gouttiere); }
.faits-liste { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(28, 30, 27, .15); }
.faits-liste li { display: flex; flex-direction: column; gap: 14px; padding: 26px 20px 26px 0; border-bottom: 1px solid rgba(28, 30, 27, .15); font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.faits-liste svg { width: 40px; height: 40px; fill: none; stroke: var(--rouge); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.faits-liste svg path { stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset .8s var(--courbe); }
.faits-liste.dessine svg path { stroke-dashoffset: 0; }
.faits-phrase { margin-top: 36px; max-width: 64ch; font-size: 19px; }
.barre-fiche { position: fixed; left: 50%; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 22px; border-radius: 8px; background: rgba(243, 238, 230, .97); box-shadow: 0 10px 40px rgba(28, 30, 27, .18); transform: translate(-50%, 140%); transition: transform .4s var(--courbe); }
.barre-fiche.visible { transform: translate(-50%, 0); }
.barre-prix { font-family: var(--serif); font-size: 26px; margin-right: 10px; white-space: nowrap; }
.barre-fiche .btn { min-height: 46px; padding: 0 18px; font-size: 15px; }
.visite { background: var(--encre); color: var(--chaux); padding: clamp(80px, 10vw, 140px) var(--gouttiere); }
.visite .intro { color: rgba(243, 238, 230, .75); }
.visite-grille { display: grid; grid-template-columns: 4.4fr 5.6fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.plan { width: 100%; }
.plan-terrain { fill: transparent; }
.plan-piece { cursor: pointer; outline: none; }
.plan-piece rect { fill: rgba(243, 238, 230, .04); stroke: rgba(243, 238, 230, .45); stroke-width: 1.5; transition: fill .35s; }
.plan-piece text { font-family: var(--sans); font-size: 13px; font-weight: 500; fill: var(--chaux); text-anchor: middle; pointer-events: none; }
.plan-piece .plan-cote { font-size: 11px; opacity: 0; transition: opacity .35s; fill: var(--encre); }
.plan-piece:hover rect, .plan-piece:focus-visible rect { fill: rgba(243, 238, 230, .14); }
.plan-piece.actif rect { fill: var(--chaux-2); }
.plan-piece.actif text { fill: var(--encre); }
.plan-piece.actif .plan-cote { opacity: 1; }
.plan-terrasse rect { stroke-dasharray: 6 4; }
.plan-couloir { fill: none; stroke: rgba(243, 238, 230, .2); stroke-dasharray: 2 4; pointer-events: none; }
.plan-murs { fill: none; stroke: var(--chaux); stroke-width: 4; pointer-events: none; }
.plan-porte { stroke: var(--rouge); stroke-width: 6; }
.plan-trace { fill: none; stroke: var(--rouge); stroke-width: 2; stroke-dasharray: 4 5; pointer-events: none; }
.plan-point { pointer-events: none; }
.plan-point circle { fill: var(--rouge); }
.plan-point .halo { fill: rgba(180, 67, 42, .3); animation: halo 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.plan-point text { font-family: var(--sans); font-size: 11px; font-weight: 600; fill: var(--chaux); text-anchor: middle; paint-order: stroke; stroke: var(--encre); stroke-width: 3px; }
.visite-commandes { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.visite-progres { height: 2px; background: rgba(243, 238, 230, .2); margin-top: 16px; }
.visite-progres span { display: block; height: 100%; width: 0; background: var(--rouge); }
.visite-photo { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.visite-images { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #000; }
.vp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.vp.actif { opacity: 1; z-index: 1; }
.vp.sortante { z-index: 2; animation: pas-sort .8s var(--courbe) forwards; }
.vp.entrante { z-index: 1; opacity: 1; animation: pas-entre .8s var(--courbe) forwards; }
@keyframes pas-sort { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.12); } }
@keyframes pas-entre { from { transform: scale(.94); } to { transform: scale(1); } }
.visite-photo figcaption { margin-top: 18px; display: grid; gap: 6px; }
.visite-nom { font-family: var(--serif); font-size: 34px; line-height: 1; }
.visite-legende { color: rgba(243, 238, 230, .78); max-width: 60ch; }
.ciel { height: 260svh; background: var(--encre); }
.ciel-scene { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.ciel-affiche, .ciel-canvas, .nuages { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ciel-canvas { opacity: 0; } .ciel-canvas.pret { opacity: 1; }
.nuages { pointer-events: none; }
.ciel-etiquettes { position: absolute; inset: 0; pointer-events: none; }
.ciel-et { position: absolute; transform: translate(-50%, -100%); padding: 7px 12px; border-radius: 3px; background: var(--chaux); color: var(--encre); font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; margin-top: -26px; transition: opacity .4s, margin .4s var(--courbe); }
.ciel-et i { position: absolute; left: 50%; top: 100%; width: 1.5px; height: 26px; background: var(--chaux); transform: scaleY(0); transform-origin: top; transition: transform .4s .2s var(--courbe); }
.ciel-et.pose { opacity: 1; margin-top: -30px; }
.ciel-et.pose i { transform: scaleY(1); }
.ciel-texte { position: absolute; left: var(--gouttiere); bottom: 48px; max-width: 460px; color: var(--chaux); text-shadow: 0 1px 20px rgba(0, 0, 0, .5); }
.ciel-texte .intro { color: rgba(243, 238, 230, .9); }
.coin { padding: clamp(80px, 10vw, 140px) var(--gouttiere); }
.coin-grille { display: grid; grid-template-columns: 6fr 4fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.coin-carte { width: 100%; border-radius: 6px; }
.coin-terre { fill: var(--chaux-2); } .coin-eau { fill: var(--eau); }
.coin-route { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; }
.coin-route-p { stroke-width: 3; }
.coin-lignes path { fill: none; stroke: var(--encre); stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.2s var(--courbe), stroke .2s, stroke-width .2s, opacity .2s; }
.coin.trace .coin-lignes path { stroke-dashoffset: 0; }
.coin.trace .coin-lignes path:nth-child(2) { transition-delay: .1s; } .coin.trace .coin-lignes path:nth-child(3) { transition-delay: .2s; } .coin.trace .coin-lignes path:nth-child(4) { transition-delay: .3s; } .coin.trace .coin-lignes path:nth-child(5) { transition-delay: .4s; }
.coin-lignes.focus path { opacity: .25; }
.coin-lignes.focus path.actif { opacity: 1; stroke: var(--rouge); stroke-width: 4; }
.coin-lieux circle { fill: var(--encre); }
.coin-lieux text { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--encre); text-anchor: middle; opacity: 0; transition: opacity .4s 1s; }
.coin.trace .coin-lieux text { opacity: 1; }
.coin-maison path { fill: var(--rouge); } .coin-maison rect { fill: var(--chaux); }
.coin-puces { display: grid; gap: 8px; }
.coin-puces .puce { width: 100%; text-align: left; min-height: 48px; font-size: 15.5px; }
.calcul-compact { background: var(--chaux-2); }
.calcul-compact .calc-resultat { background: var(--chaux); }
.planifier { padding: clamp(80px, 10vw, 140px) var(--gouttiere); }
.plan-form { max-width: 980px; }
.jours { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.jour { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 92px; min-height: 86px; border: 1px solid rgba(28, 30, 27, .22); border-radius: 6px; background: transparent; font-size: 13px; }
.jour b { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1; }
.jour small { font-size: 11px; color: var(--rouge); font-weight: 600; }
.jour[aria-checked="true"] { background: var(--encre); color: var(--chaux); border-color: var(--encre); }
.jour[aria-checked="true"] small { color: var(--lueur); }
.heures-titre { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; margin: 18px 0 10px; color: var(--encre-douce); }
.heures { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; }
.heure { min-height: 44px; min-width: 72px; padding: 0 12px; border-radius: 4px; border: 1px solid rgba(28, 30, 27, .22); background: transparent; font-weight: 500; animation: lettre .35s var(--courbe) both; }
.heure[aria-checked="true"] { background: var(--rouge); color: var(--chaux); border-color: var(--rouge); }
.heure:disabled { text-decoration: line-through; color: var(--vendu); cursor: not-allowed; }
.recap { margin: 22px 0 6px; font-family: var(--serif); font-size: 24px; min-height: 1.4em; }
.champs-3 { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.merci-visite { max-width: 560px; }
.grande-porte { display: block; width: 50px; height: 76px; border-radius: 25px 25px 0 0; background: var(--lueur); perspective: 120px; margin-bottom: 20px; position: relative; }
.grande-porte span { position: absolute; inset: 0; border-radius: 25px 25px 0 0; background: var(--rouge); transform-origin: left; animation: porte-ouvre .9s var(--courbe) .2s forwards; }
@keyframes porte-ouvre { to { transform: rotateY(-75deg); } }
.autres { background: var(--chaux-2); padding: clamp(80px, 10vw, 140px) var(--gouttiere); }
.liste-rail { display: grid; grid-template-columns: repeat(4, 1fr); }

/* =========================================================================
   LÉGAL
   ========================================================================= */
.legal { padding: calc(var(--entete-h) + 60px) var(--gouttiere) 100px; }
.legal-boite { max-width: 820px; }
.legal h2 { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 40px); margin: 48px 0 16px; }
.legal ul { list-style: disc; padding-left: 20px; display: grid; gap: 8px; }
.legal-dl dt { font-weight: 600; margin-top: 14px; }
.legal-dl dd { color: var(--encre-douce); }
.legal p { margin-top: 16px; }

/* =========================================================================
   PANNEAUX : fiche (I-13), coups de cœur (I-14), galerie (I-33)
   ========================================================================= */
.page { transition: transform .55s var(--courbe); }
body.fiche-ouverte .page:not(.recule) { transform: scale(.985); transform-origin: 50% 30vh; }
.voile { position: absolute; inset: 0; background: rgba(28, 30, 27, .3); opacity: 0; transition: opacity .45s; }
.fiche, .tiroir-fav { position: fixed; inset: 0; z-index: 90; }
.fiche.ouvert .voile, .tiroir-fav.ouvert .voile { opacity: 1; }
.fiche-boite { position: absolute; right: 0; top: 0; bottom: 0; width: min(520px, 100%); background: var(--chaux); box-shadow: -30px 0 80px rgba(28, 30, 27, .25); overflow-y: auto; transform: translateX(105%); transition: transform .55s cubic-bezier(.2, 1.1, .35, 1); overscroll-behavior: contain; }
.fiche.ouvert .fiche-boite { transform: none; }
.fiche-poignee { display: none; }
.fiche-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.fiche-photo img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 12s linear infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -2%); } }
.fiche-corps { padding: 26px 30px 40px; }
.fiche-statut { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--rouge); }
.fiche-nom { font-family: var(--serif); font-size: 38px; line-height: 1.02; margin-top: 8px; }
.fiche-ville { color: var(--encre-douce); margin-top: 6px; }
.fiche-prix { font-family: var(--serif); font-size: 34px; margin-top: 16px; font-variant-numeric: tabular-nums; }
.fiche-prix-note { font-size: 13px; color: var(--encre-douce); }
.fiche-faits { margin-top: 14px; font-weight: 500; }
.fiche-offre { margin-top: 10px; color: var(--rouge); font-weight: 600; }
.fiche-desc { margin-top: 14px; }
.fiche-actions { display: grid; gap: 10px; margin-top: 24px; }
.fiche-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(28, 30, 27, .12); font-size: 14px; color: var(--encre-douce); }
.fiche-fermer { position: absolute; right: 14px; top: 14px; background: var(--chaux); border-color: transparent; z-index: 2; }
.tiroir-boite { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: var(--chaux); padding: 28px; overflow-y: auto; transform: translateX(105%); transition: transform .5s var(--courbe); display: flex; flex-direction: column; gap: 12px; }
.tiroir-fav.ouvert .tiroir-boite { transform: none; }
.tiroir-boite .fermer { align-self: flex-end; border: 0; background: none; min-height: 44px; font-weight: 500; text-decoration: underline; }
.tiroir-titre { font-family: var(--serif); font-size: 40px; line-height: 1; }
.fav-liste { display: grid; gap: 10px; margin-top: 10px; }
.fav-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; animation: lettre .4s var(--courbe); }
.fav-item img { width: 72px; height: 54px; object-fit: cover; border-radius: 3px; }
.fav-item b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.1; }
.fav-item span { font-size: 13px; color: var(--encre-douce); }
.fav-item button { border: 0; background: none; text-decoration: underline; min-height: 44px; font-size: 14px; }
.fav-total { font-weight: 600; margin: 8px 0; }
.galerie { position: fixed; inset: 0; z-index: 95; background: var(--encre); color: var(--chaux); animation: lettre .35s var(--courbe); }
.galerie-scene { position: absolute; left: 0; right: 0; top: 70px; bottom: 140px; overflow: hidden; touch-action: none; }
.galerie-piste { display: flex; height: 100%; will-change: transform; }
.galerie-diapo { flex: none; width: 100%; height: 100%; display: grid; place-items: center; padding: 0 80px; overflow: hidden; }
.galerie-diapo img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .35s var(--courbe); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.galerie-diapo.zoom img { transform: scale(2); cursor: zoom-out; }
.galerie-compteur { position: absolute; left: var(--gouttiere); top: 22px; font-variant-numeric: tabular-nums; font-weight: 500; }
.galerie-legende { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); font-family: var(--serif); font-size: 22px; white-space: nowrap; }
.galerie-prec, .galerie-suiv { position: absolute; top: 50%; margin-top: -22px; color: var(--chaux); }
.galerie-prec { left: 20px; } .galerie-suiv { right: 20px; }
.galerie-fermer { position: absolute; right: 20px; top: 14px; color: var(--chaux); }
.galerie-zoom { position: absolute; right: 74px; top: 14px; width: 44px; height: 44px; border: 0; background: none; color: var(--chaux); }
.galerie-zoom svg { width: 20px; height: 20px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.6; }
.galerie-minis { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; gap: 8px; justify-content: center; padding: 0 var(--gouttiere); overflow-x: auto; }
.galerie-minis button { flex: none; width: 96px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; opacity: .55; background: none; transition: opacity .25s, border-color .25s; }
.galerie-minis button[aria-current="true"] { opacity: 1; border-color: var(--rouge); }
.galerie-minis img { width: 100%; height: 100%; object-fit: cover; }
.galerie-aide { position: absolute; left: 0; right: 0; bottom: 96px; text-align: center; font-size: 13px; color: rgba(243, 238, 230, .7); }
body.bloque { overflow: hidden; }

/* =========================================================================
   Tablette (761 à 1100 px)
   ========================================================================= */
@media (max-width: 1100px) {
  .nav { gap: 18px; font-size: 14px; }
  .liste { grid-template-columns: 1fr; }
  .quartiers-grille { grid-template-columns: 1fr 1fr; }
  .barres-boite { grid-column: 1 / -1; }
  .faits-liste { grid-template-columns: repeat(3, 1fr); }
  .liste-rail { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav, .entete-cta { display: none; }
  .menu-btn { display: block; }
  .entete-droite { margin-left: auto; }
}

/* =========================================================================
   Cellulaire (760 px et moins) : mise en page refaite, pas rétrécie
   ========================================================================= */
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  :root { --entete-h: 64px; --titre: clamp(40px, 12vw, 46px); }
  .seul-ordi { display: none !important; }
  .seul-cell { display: block; }
  span.seul-cell { display: inline; }
  .demo { height: auto; min-height: var(--demo-h); padding: 6px 12px; font-size: 11.5px; line-height: 1.3; white-space: normal; overflow: visible; }
  .logo-mot { font-size: 34px; }
  .intro { font-size: 16px; }
  .puce { min-height: 44px; }
  .chiffres { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .chiffre-val { font-size: 52px; }
  .rond { width: 46px; height: 46px; }
  .unite button { min-width: 44px; min-height: 44px; }
  input[type="range"] { height: 44px; }
  .logo { min-height: 48px; padding: 2px 0; }
  .pied p a, .legal dd a, .legal p a, .pied-bas a:not(.haut) { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .choix span { min-height: 44px; }
  .ariane a { min-height: 44px; }

  /* Héros : mots au-dessus et au-dessous de la porte */
  .heros { height: 280svh; }
  .heros-couche { clip-path: inset(24svh 21vw 28svh 21vw round 29vw 29vw 0 0); }
  .heros-porte { left: 21vw; right: 21vw; top: 24svh; bottom: 28svh; border-radius: 29vw 29vw 0 0; }
  .heros-trait { top: 72svh; }
  .heros-titre { bottom: auto; top: 0; height: 100svh; display: block; padding: 0; font-size: 64px; }
  .heros-titre .mot { position: absolute; left: 0; right: 0; text-align: center; }
  .heros-titre .mot-g { top: calc(24svh - 74px); }
  .heros-titre .mot-d { top: calc(72svh + 10px); }
  .heros-sous { top: calc(72svh + 84px); font-size: 11.5px; }
  .heros-lueur { left: 54%; top: 34svh; width: 7vw; height: 34svh; }
  .heros-final { left: 16px; right: 16px; bottom: 8svh; }
  .heros-nom { font-size: 48px; }
  .heros-faits { font-size: 15.5px; }

  .enonce-phrase { font-size: 32px; line-height: 1.18; }
  .poly { width: 72px; height: 34px; }

  /* Carte : en haut, carrousel dessous, filtres en tiroir */
  .filtres-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--encre); background: var(--chaux); font-weight: 600; margin-bottom: 14px; }
  .filtres-btn svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .filtres { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; background: var(--chaux); border-radius: 14px 14px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 82svh; overflow-y: auto; box-shadow: 0 -20px 60px rgba(28, 30, 27, .3); transform: translateY(105%); transition: transform .45s var(--courbe); flex-direction: column; align-items: stretch; border-top: 0; }
  .filtres.ouvert { transform: none; }
  .filtres-tete-cell { display: flex; justify-content: space-between; align-items: center; }
  .filtres-titre { font-family: var(--serif); font-size: 30px; }
  .filtres-voir { display: inline-flex; width: 100%; }
  .compteur { margin-left: 0; }
  .budget { min-width: 0; }
  .carte-grille { display: block; height: auto; min-height: 0; }
  .carte-cadre { height: 58svh; }
  .carte-cadre .aide-toucher { display: block; position: absolute; left: 12px; top: 12px; right: 12px; padding: 6px 10px; background: rgba(243, 238, 230, .94); border-radius: 4px; font-size: 12.5px; }
  .legende-carte { left: 8px; bottom: 8px; right: 140px; font-size: 11.5px; gap: 2px 10px; padding: 6px 8px; }
  .zoom { right: 8px; bottom: 8px; flex-wrap: wrap; justify-content: flex-end; width: 120px; }
  .zoom .recentrer { min-height: 44px; }
  .liste-cadre { overflow: visible; padding: 0; margin: 14px calc(var(--gouttiere) * -1) 0; }
  .liste { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gouttiere) 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .liste::-webkit-scrollbar { display: none; }
  .liste .carte-p { flex: none; width: 78vw; scroll-snap-align: center; }
  .carte-fin { margin-top: 28px; }
  .carte-fin p { font-size: 16px; }
  .coeur { width: 44px; height: 44px; }

  /* Collections */
  .collections { min-height: 92svh; }
  .defile-txt { font-size: 64px; }
  .coll-photo { width: 60vw; }
  .coll-btn { margin-top: 32px; }
  .coll-over { background: rgba(28, 30, 27, .55); }
  .coll-over-tete { left: 16px; right: 16px; width: auto; top: auto; bottom: calc(4 * 112px + 3 * 8px + 30px); color: var(--chaux); }
  .coll-over-titre { font-size: 36px; }
  .coll-over-aide { margin: 8px 0 10px; font-size: 14px; }
  .coll-panneaux { left: 0; right: 0; top: auto; bottom: 0; flex-direction: column; gap: 8px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--encre); border-radius: 14px 14px 0 0; }
  .coll-panneau { flex: none; height: 112px; flex-direction: row; align-items: center; padding: 0 0 0 18px; gap: 12px; }
  .coll-panneau:hover, .coll-panneau:focus-visible { flex-grow: 0; }
  .coll-v { writing-mode: horizontal-tb; transform: none; font-size: 28px; margin: 0; align-self: center; white-space: normal; flex: 1; }
  .coll-desc { display: none; }
  .coll-n { margin: 0; position: absolute; left: 18px; bottom: 12px; font-size: 11.5px; }
  .coll-img { height: 100%; width: 34%; margin: 0; }
  .coll-mini { display: none; }
  .page.recule { z-index: 79; }
  .coll-over { background: rgba(28, 30, 27, .72); }

  /* Calculatrice : chiffre et anneau collants */
  .calc-onglets { margin: 0 calc(var(--gouttiere) * -1) 28px; padding: 0 var(--gouttiere); }
  .calc-onglets button { padding: 0 12px; font-size: 15px; }
  .calc-panneau { display: flex; flex-direction: column-reverse; gap: 24px; }
  .calc-panneau[data-panneau="paiement"] .calc-resultat { position: relative; }
  .calc-tete-res { position: sticky; top: 72px; z-index: 5; background: var(--chaux-2); margin: -10px -14px 0; padding: 10px 14px; border-radius: 6px; }
  .calc-resultat { padding: 20px; width: 100%; }
  .calc-chiffre { font-size: 52px; }
  .anneau { width: 96px; }
  .calc-panneau[data-panneau="paiement"] { display: grid; grid-template-columns: 1fr; }
  .calc-panneau[data-panneau="paiement"] .calc-resultat { order: -1; position: sticky; top: calc(var(--entete-h) + 8px); z-index: 5; padding: 8px 16px; box-shadow: 0 8px 18px -10px rgba(28, 30, 27, .4); }
  .calc-panneau[data-panneau="paiement"] .calc-chiffre { font-size: 38px; }
  .calc-panneau[data-panneau="paiement"] .calc-resultat .anneau { width: 56px; }
  .calc-panneau[data-panneau="paiement"] .calc-resultat .calc-sous { margin-top: 0; }
  .mention-cell { display: block; margin: 6px 0 0; font-size: 12.5px; padding: 8px 10px; }
  .calc-panneau[data-panneau="paiement"] .calc-resultat .legende, .calc-panneau[data-panneau="paiement"] .calc-resultat .details, .calc-panneau[data-panneau="paiement"] .calc-resultat .petit { display: none; }
  .calc-panneau[data-panneau="paiement"] .calc-resultat .mention-forte { display: none; }
  .calc-tete-res { position: static; margin: 0; padding: 0; }
  .calc-fin .btn { width: 100%; }

  /* Quartiers */
  .quartiers-grille { grid-template-columns: 1fr; }
  .radar { max-width: 300px; }
  .menu-ville select { font-size: 20px; }

  /* Équipe : accordéon, polygone fixe au-dessus */
  .equipe-grille { grid-template-columns: 1fr; }
  .equipe-photo { aspect-ratio: 4 / 3; }
  .membre-nom { font-size: 36px; padding: 18px 0; min-height: 56px; }
  .membre-info { padding-left: 0; }
  .membre.ouvert .membre-nom span { transform: translateX(12px); }
  .equipe-poly { position: relative; width: 130px; height: 160px; margin: 0 0 16px auto; opacity: 1; transform: none !important; }
  .dates { grid-template-columns: 1fr; gap: 20px; }

  /* Avis */
  .avis-carte { width: 82vw; padding: 48px 22px 22px; }
  .avis-carte blockquote { font-size: 19px; }
  .avis-pause { min-height: 44px; font-size: 14px; }

  /* Appel final */
  .appel { min-height: 0; }
  .appel-photo { position: relative; height: 78svh; }
  .lueur { width: 14vw; height: 18vw; margin: -9vw 0 0 -7vw; }
  .lueur-porte { width: 10vw; height: 26vw; margin: -13vw 0 0 -5vw; }
  .lueur-petite { width: 5vw; margin-left: -2.5vw; }
  .appel-contenu { margin-top: -30svh; min-height: 0; grid-template-columns: 1fr; padding: 0 16px 60px; gap: 24px; }
  .appel-texte { position: static; }
  .modes { grid-template-columns: 1fr; }
  .mode { min-height: 56px; }
  .champs, .champs-3 { grid-template-columns: 1fr; }
  .rencontre .appel-contenu { padding: 72px 16px; margin-top: 0; }

  /* Pied */
  .pied-logo .logo-mot { font-size: 30vw; }
  .pied-cols { grid-template-columns: 1fr; gap: 24px; }
  .pied-bas { flex-direction: column; align-items: flex-start; }
  .pied-liens li a { min-height: 44px; }

  /* Vendre */
  .v-heros { grid-template-columns: 1fr; padding: var(--entete-h) 0 64px; gap: 0; }
  .v-heros-photo { position: relative; top: 0; aspect-ratio: auto; height: 34svh; border-radius: 0; }
  .v-heros-outil { padding: 28px 16px 0; }
  .estim { margin: 24px -16px 0; border-radius: 0; padding: 22px 16px 0; }
  .types { grid-template-columns: repeat(2, 1fr); }
  .ville-choix { grid-template-columns: 1fr; }
  .mini-carte { max-width: 260px; }
  .puces-villes .puce { min-height: 44px; }
  .atouts { grid-template-columns: 1fr; }
  .estim-nav { position: sticky; bottom: 0; z-index: 5; background: var(--chaux-2); margin: 20px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(28, 30, 27, .12); }
  .estim-nav .btn { flex: 1; }
  .coupe-section { height: 460svh; }
  .coupe-collant { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding: calc(var(--entete-h) + 4px) 16px 16px; gap: 10px; }
  .coupe-collant { grid-template-columns: minmax(0, 1fr); }
  .coupe-scene { order: -1; width: 100%; height: auto; max-width: calc(54svh * 1.25); aspect-ratio: 800 / 640; max-height: 54svh; }
  .coupe-collant { align-content: start; }
  .coupe-texte .etiquette { display: none; }
  .coupe-texte .titre { font-size: 28px; }
  .coupe-etapes-boite { margin-top: 12px; min-height: 190px; padding-left: 18px; }
  .coupe-etape { left: 18px; }
  .coupe-num { font-size: 36px; }
  .coupe-etape h3 { font-size: 24px; margin: 4px 0 6px; }
  .coupe-etape p { font-size: 14.5px; }
  .coupe-texte .aide-toucher { margin-top: 4px; }
  .glissiere { aspect-ratio: 4 / 5; margin: 0 -16px; border-radius: 0; }
  .glissiere img { object-position: 50% 50%; }
  .chiffres-3 { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .chiffres-3 .chiffre-val { font-size: 40px; }
  .vendus-grille { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 20px 16px; gap: 12px; scrollbar-width: none; }
  .vendu-carte { flex: none; width: 76vw; scroll-snap-align: center; }

  /* Fiche vedette */
  .f-heros { height: 180svh; }
  .f-poly-2, .f-poly-3 { display: none; }
  .f-poly-1 { clip-path: polygon(10% 18%, 88% 14%, 94% 30%, 90% 48%, 12% 52%, 4% 34%); }
  .f-titre { font-size: 52px; }
  .f-heros-texte { left: 16px; right: 16px; bottom: 5svh; max-width: none; }
  .faits-liste { grid-template-columns: 1fr 1fr; }
  .faits-liste li { font-size: 20px; padding: 18px 12px 18px 0; }
  .barre-fiche { left: 8px; right: 8px; bottom: 8px; transform: translateY(140%); flex-wrap: wrap; padding: 8px 10px 10px; gap: 8px; }
  .barre-fiche.visible { transform: none; }
  .barre-prix { width: 100%; font-size: 14px; font-family: var(--sans); font-weight: 600; margin: 0; text-align: center; }
  .barre-fiche .btn { flex: 1; padding: 0 10px; font-size: 14px; }
  .visite-grille { grid-template-columns: 1fr; }
  .plan { max-height: 220px; }
  .visite-commandes { justify-content: center; }
  .visite-images { margin: 0 -16px; border-radius: 0; aspect-ratio: 4 / 3; }
  .ciel-texte { top: calc(var(--entete-h) + 24px); bottom: auto; right: 16px; left: 16px; }
  .ciel-texte .intro { font-size: 15px; }
  .ciel-ordi { display: none; }
  .coin-grille { grid-template-columns: 1fr; }
  .galerie-scene { top: 64px; bottom: 150px; }
  .galerie-diapo { padding: 0; }
  .galerie-prec, .galerie-suiv { display: none; }
  .galerie-legende { position: absolute; top: auto; bottom: 120px; font-size: 18px; }
  .galerie-minis { justify-content: flex-start; }
  .galerie-minis button { width: 64px; height: 44px; }
  .liste-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .liste-rail .carte-p { flex: none; width: 78vw; scroll-snap-align: center; }
  .jour { width: 82px; }

  /* Panneaux en feuilles du bas */
  .fiche-boite { left: 0; right: 0; top: auto; width: 100%; max-height: 92svh; border-radius: 14px 14px 0 0; transform: translateY(105%); box-shadow: 0 -20px 60px rgba(28, 30, 27, .3); }
  .fiche-poignee { display: block; position: sticky; top: 0; z-index: 3; height: 28px; margin-bottom: -28px; touch-action: none; }
  .fiche-poignee::before { content: ""; position: absolute; left: 50%; top: 10px; width: 44px; height: 4px; margin-left: -22px; border-radius: 2px; background: var(--chaux); box-shadow: 0 0 0 1px rgba(28, 30, 27, .2); }
  .fiche-corps { padding: 22px 16px 36px; }
  .fiche-nom { font-size: 32px; }
  .tiroir-boite { left: 0; top: auto; width: 100%; max-height: 86svh; border-radius: 14px 14px 0 0; transform: translateY(105%); padding: 20px 16px; }
  .legal { padding-top: calc(var(--entete-h) + 40px); }
}

@media (max-width: 360px) {
  .heros-titre { font-size: 54px; }
  .heros-titre .mot-g { top: calc(24svh - 62px); }
  .defile-txt { font-size: 54px; }
  .menu-liens a { font-size: 34px; }
  .barre-fiche .btn { font-size: 13px; }
}

/* =========================================================================
   Mouvement réduit : états finaux, aucune séquence
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .heros { height: 100svh; }
  .heros-couche { clip-path: none !important; }
  .heros-canvas, .heros-affiche, .heros-lueur, .heros-trait, .heros-porte, .heros-indice, .heros-sous { display: none; }
  .heros-final-img { display: block; }
  .heros-ombre { opacity: 1 !important; }
  .heros-titre { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .heros-final { opacity: 1 !important; transform: none !important; pointer-events: auto; }
  .note-reduit { display: block; position: absolute; right: var(--gouttiere); bottom: 16px; color: var(--chaux); font-size: 12.5px; max-width: 280px; text-align: right; }
  .enonce-phrase .mot-a { color: var(--encre) !important; }
  .logo-mot::after { transform: scaleX(1); }
  .logo-mot .l { opacity: 1; transform: none; }
  .carte-cadre .eau-forme { transform: none; } .carte-cadre .route, .carte-cadre .autoroute { stroke-dashoffset: 0; } .carte-cadre .villes text, .carte-cadre .ecusson, .carte-cadre .montreal-etiquette { opacity: 1; }
  .lueur { opacity: 1; } .appel-photo img { filter: none; }
  .tampon, .vendu-tampon { opacity: 1; transform: rotate(-6deg); }
  .coupe-section { height: auto; }
  .coupe-collant { position: relative; height: auto; display: block; }
  .coupe-scene { display: none; }
  .coupe-etapes-boite { min-height: 0; padding-left: 0; }
  .coupe-progres { display: none; }
  .coupe-etape { position: static; opacity: 1; transform: none; margin-bottom: 26px; }
  .coupe-statique { display: none; }
  .f-heros { height: 100svh; }
  .f-poly-1 { clip-path: none !important; } .f-poly-2, .f-poly-3 { display: none; }
  .f-heros-ombre { opacity: 1 !important; } .f-heros-texte { color: var(--chaux); }
  .ciel { height: 100svh; } .ciel-canvas, .nuages { display: none; } .ciel-et { opacity: 1; margin-top: -30px; } .ciel-et i { transform: none; }
  .faits-liste svg path, .coin-lignes path { stroke-dashoffset: 0 !important; }
  .coin-lieux text { opacity: 1; }
  .fiche-photo img { animation: none; }
  .porte-transition { display: none; }
  .heros-titre .mot, .heros-sous, .heros-indice { opacity: 1; }
}
