/* ==================================================================
   HORIZON Immobilier : direction « architecture blanche ».
   Blanc architectural, gris minéraux, noirs profonds, laiton discret.
   Host Grotesk (titres et texte) + IBM Plex Mono (cotes, références, données).
   ================================================================== */
@font-face { font-family: "Host Grotesk"; src: url("../fonts/HostGrotesk-Variable.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  --blanc: #f4f4f2;
  --blanc-2: #ebebe7;
  --beton: #d9d9d4;
  --trait: #c9c9c3;
  --gris: #5f6265;
  --encre: #121315;
  --noir: #0c0d0e;
  --noir-2: #17181a;
  --laiton: #7a6644;          /* texte sur fond clair (AA) */
  --laiton-clair: #c4ab7c;    /* texte sur fond sombre (AA) */
  --sur-noir: #e9e8e4;
  --sur-noir-2: #a3a4a2;
  --ok: #2f6b4f;
  --res: #8a5a1c;
  --sans: "Host Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, .7, .16, 1);
  --g: clamp(16px, 4vw, 56px);   /* gouttière */
  --max: 1440px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--blanc); color: var(--encre); font-family: var(--sans); font-size: 16px; line-height: 1.6; font-weight: 380; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--laiton); outline-offset: 3px; }
.sombre :focus-visible { outline-color: var(--laiton-clair); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: 0; }
.cadre { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
section[id] { scroll-margin-top: 72px; }

/* ---------- apparitions ---------- */
[data-v] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
[data-v].vu { opacity: 1; transform: none; }
[data-v="trait"] { transform: none; opacity: 1; clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease); transition-delay: var(--d, 0ms); }
[data-v="trait"].vu { clip-path: inset(0 0 0 0); }
.mots .m { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.mots .m > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0ms) + var(--i) * 55ms); }
.mots.vu .m > span { transform: none; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 26px; background: var(--encre); color: var(--blanc); text-decoration: none; font-size: 14px; font-weight: 520; letter-spacing: .01em; border-radius: 0; position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--laiton); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); z-index: -1; }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .fl { font-family: var(--mono); transition: transform .5s var(--ease); }
.btn:hover .fl { transform: translateX(4px); }
.btn.clair { background: var(--blanc); color: var(--encre); }
.btn.clair:hover { color: var(--blanc); background: var(--laiton); }
.lien { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease); }
.lien:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; height: 72px; display: flex; align-items: center; transition: background .5s var(--ease), border-color .5s, transform .5s var(--ease); border-bottom: 1px solid transparent; }
.nav.solide { background: rgba(244, 244, 242, .9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--trait); }
.nav.cache { transform: translateY(-100%); }
.nav-in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--g); display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; letter-spacing: .32em; font-size: 15px; }
.logo svg { width: 30px; height: 18px; flex: none; }
.concept { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--encre); border: 1px solid var(--encre); padding: 5px 7px; margin-left: 4px; }
.nav-liens { display: flex; gap: 28px; margin-left: auto; list-style: none; }
.nav-liens a { text-decoration: none; font-size: 14px; color: var(--gris); transition: color .3s; position: relative; padding: 6px 0; }
.nav-liens a:hover, .nav-liens a[aria-current="true"] { color: var(--encre); }
.nav-liens a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--encre); }
.nav .btn { height: 42px; padding: 0 18px; font-size: 13px; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--encre); transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.menu-mob { position: fixed; inset: 72px 0 0; z-index: 59; background: var(--blanc); padding: 32px var(--g); display: flex; flex-direction: column; gap: 6px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s; }
.menu-mob.ouvert { visibility: visible; opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.menu-mob a { font-size: 30px; font-weight: 300; letter-spacing: -.02em; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--trait); display: flex; justify-content: space-between; align-items: baseline; }
.menu-mob a span { font-family: var(--mono); font-size: 12px; color: var(--gris); }
.menu-mob .btn { margin-top: 24px; justify-content: center; font-size: 15px; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--blanc); }
.hero-photo { position: absolute; inset: 0; }
@media (min-width: 861px) { .hero-photo { left: 26%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%); } .hero::after { background: linear-gradient(0deg, rgba(244,244,242,.5) 0%, rgba(244,244,242,0) 20%); } }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.06); transition: transform 2.6s var(--ease), opacity 1.6s var(--ease), filter 1.6s var(--ease); }
.hero.intro .hero-photo img { opacity: 0; filter: grayscale(1) contrast(.9); }
.hero.revele .hero-photo img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(244,244,242,.94) 0%, rgba(244,244,242,.78) 26%, rgba(244,244,242,0) 52%), linear-gradient(0deg, rgba(244,244,242,.55) 0%, rgba(244,244,242,0) 22%); transition: opacity 1.4s; }
.hero.intro::after { opacity: 0; }
.trace { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; transition: opacity 1.6s var(--ease); }
.trace path { fill: none; stroke: var(--encre); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85; }
.hero.dessine .trace path { animation: tracer 1.25s var(--ease) forwards; animation-delay: calc(var(--n) * 170ms); }
@keyframes tracer { to { stroke-dashoffset: 0; } }
.hero.revele .trace { opacity: 0; }
.trace-grille { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; background-image: linear-gradient(var(--trait) 1px, transparent 1px), linear-gradient(90deg, var(--trait) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 70% at 60% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 60% 50%, #000 20%, transparent 75%); transition: opacity 1.4s; }
.hero.revele .trace-grille { opacity: 0; }
.hero-amorce { position: absolute; z-index: 3; left: 50%; bottom: 14vh; transform: translateX(-50%); text-align: center; font-size: clamp(18px, 2vw, 24px); font-weight: 300; letter-spacing: -.01em; white-space: nowrap; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-amorce small { display: block; font-family: var(--mono); font-size: 12px; color: var(--gris); margin-top: 10px; letter-spacing: .04em; }
.hero.revele .hero-amorce { opacity: 0; transform: translate(-50%, -10px); pointer-events: none; }
.hero-txt { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding-bottom: clamp(36px, 8vh, 88px); }
.hero-txt .cadre { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 40px; }
.hero h1 { font-size: clamp(44px, 6.2vw, 100px); font-weight: 300; letter-spacing: -.045em; line-height: .94; max-width: 9.5em; }
.hero h1 b { font-weight: 560; }
.hero-sous { margin-top: 28px; max-width: 30em; color: var(--gris); font-size: 17px; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.hero.intro .hero-txt { visibility: hidden; }
.hero-cote { justify-self: end; font-family: var(--mono); font-size: 12px; color: var(--encre); display: grid; gap: 8px; min-width: 240px; background: rgba(244,244,242,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 16px 18px; border-left: 1px solid var(--encre); }
.hero-cote div { display: flex; justify-content: space-between; gap: 24px; }
.hero-cote dt { color: var(--gris); } .hero-cote dd { font-weight: 500; }
.passer { position: absolute; z-index: 5; right: var(--g); top: 88px; font-family: var(--mono); font-size: 12px; padding: 10px 14px; border: 1px solid var(--encre); background: var(--blanc); transition: opacity .5s; }
.passer:hover { background: var(--encre); color: var(--blanc); }
.hero.revele .passer { opacity: 0; pointer-events: none; }
.defiler { position: absolute; z-index: 3; left: 50%; bottom: 18px; width: 1px; height: 46px; background: var(--trait); overflow: hidden; }
.defiler::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--encre); animation: defile 2.2s var(--ease) infinite; }
@keyframes defile { to { top: 100%; } }

/* ---------- en-têtes de section ---------- */
.tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; padding: clamp(80px, 12vw, 160px) 0 clamp(36px, 5vw, 64px); }
.tete .no { font-family: var(--mono); font-size: 12px; color: var(--gris); display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.tete .no::after { content: ""; width: 64px; height: 1px; background: currentColor; }
.tete h2 { font-size: clamp(36px, 5.4vw, 84px); font-weight: 300; letter-spacing: -.04em; line-height: .98; }
.tete h2 b { font-weight: 560; }
.tete > p { color: var(--gris); max-width: 34em; font-size: 17px; justify-self: end; }
.sombre { background: var(--noir); color: var(--sur-noir); }
.sombre .tete > p { color: var(--sur-noir-2); }

/* ---------- 02 IMMEUBLE ---------- */
.imm { position: relative; height: min(100svh, 980px); min-height: 680px; background: linear-gradient(180deg, var(--blanc) 0%, #e7e8e5 100%); overflow: hidden; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); touch-action: pan-y; }
.imm canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.imm canvas:active { cursor: grabbing; }
.imm-haut { position: absolute; z-index: 4; top: 22px; left: var(--g); right: var(--g); display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; pointer-events: none; }
.imm-haut > * { pointer-events: auto; }
.imm-fil { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; flex-wrap: wrap; }
.imm-fil button { padding: 4px 0; color: var(--gris); }
.imm-fil button:hover { color: var(--encre); text-decoration: underline; }
.imm-fil span { color: var(--encre); font-weight: 500; }
.imm-fil i { color: var(--trait); font-style: normal; }
.imm-vues { display: flex; border: 1px solid var(--encre); background: rgba(244,244,242,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.imm-vues button { padding: 10px 16px; font-size: 13px; font-weight: 500; border-right: 1px solid var(--encre); transition: background .3s, color .3s; }
.imm-vues button:last-child { border-right: 0; }
.imm-vues button[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }
.imm-vues button:not([aria-pressed="true"]):hover { background: var(--blanc-2); }
.imm-cote { position: absolute; z-index: 3; left: var(--g); top: 84px; max-width: 300px; pointer-events: none; }
.imm-cote h3 { font-size: 26px; font-weight: 300; letter-spacing: -.03em; line-height: 1.05; }
.imm-cote h3 b { font-weight: 560; }
.imm-cote p { font-family: var(--mono); font-size: 12px; color: var(--gris); margin-top: 10px; }
.imm-etages { position: absolute; z-index: 4; left: var(--g); top: 250px; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.imm-etages button { display: grid; grid-template-columns: 44px auto; align-items: center; gap: 12px; padding: 7px 12px 7px 0; text-align: left; border-left: 1px solid var(--trait); transition: border-color .3s, background .3s; }
.imm-etages .n { font-family: var(--mono); font-size: 13px; font-weight: 500; padding-left: 12px; }
.imm-etages .r { font-size: 12.5px; color: var(--gris); white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease); }
.imm-etages button:hover .r, .imm-etages button.survol .r, .imm-etages button.on .r, .imm-etages button:focus-visible .r { opacity: 1; transform: none; }
.imm-etages button.survol, .imm-etages button:hover { border-color: var(--laiton); }
.imm-etages button.on { border-left-color: var(--encre); background: var(--encre); color: var(--blanc); }
.imm-etages button.on .r { color: var(--sur-noir-2); }
.imm-aide { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: var(--gris); background: rgba(244,244,242,.85); padding: 8px 14px; white-space: nowrap; pointer-events: none; }
.imm[data-mode="etage"] .imm-aide, .imm[data-mode="lot"] .imm-aide { left: calc(50% - min(210px, 20vw)); }
.imm-info { position: absolute; z-index: 6; left: 0; top: 0; min-width: 210px; background: var(--blanc); border: 1px solid var(--encre); padding: 12px 14px; pointer-events: none; font-size: 13px; box-shadow: 8px 8px 0 rgba(18,19,21,.06); }
.imm-info .t { font-family: var(--mono); font-weight: 600; font-size: 12.5px; letter-spacing: .02em; }
.imm-info ul { list-style: none; margin: 8px 0; display: grid; gap: 2px; color: var(--gris); }
.imm-info ul li::before { content: "— "; color: var(--trait); }
.imm-info .px { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.imm-info .go { font-family: var(--mono); font-size: 12px; color: var(--laiton); margin-top: 6px; }
.st { font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 2px 7px; border: 1px solid currentColor; text-transform: lowercase; white-space: nowrap; }
.st-dispo { color: var(--ok); } .st-res { color: var(--res); } .st-vendu { color: var(--gris); }
.imm-panneau { position: absolute; z-index: 5; top: 0; right: 0; bottom: 0; width: min(420px, 40vw); background: var(--blanc); border-left: 1px solid var(--encre); padding: 76px 28px 28px; overflow-y: auto; transform: translateX(102%); transition: transform .8s var(--ease); overscroll-behavior: contain; }
.imm-panneau.ouvert { transform: none; }
.pn-sur { font-family: var(--mono); font-size: 12px; color: var(--gris); }
.imm-panneau h3 { font-size: 34px; font-weight: 300; letter-spacing: -.03em; margin: 6px 0 18px; }
.pn-lots { list-style: none; border-top: 1px solid var(--trait); }
.pn-lots button { width: 100%; display: grid; grid-template-columns: 58px 1fr auto; grid-template-rows: auto auto; gap: 2px 14px; text-align: left; padding: 16px 0; border-bottom: 1px solid var(--trait); transition: background .3s; }
.pn-lots button:hover, .pn-lots button:focus-visible { background: var(--blanc-2); }
.pn-lots button > * { transition: transform .4s var(--ease); }
.pn-lots button:hover > *, .pn-lots button:focus-visible > * { transform: translateX(8px); }
.pn-lots .id { font-family: var(--mono); font-weight: 600; grid-row: span 2; align-self: center; }
.pn-lots .d { font-size: 13px; color: var(--gris); grid-column: 2; }
.pn-lots .p { font-weight: 560; grid-column: 2; grid-row: 1; }
.pn-lots .st { grid-column: 3; grid-row: span 2; align-self: center; }
.pn-note { font-family: var(--mono); font-size: 12px; color: var(--gris); margin-top: 18px; }
.pn-photo { aspect-ratio: 3/2; overflow: hidden; background: var(--blanc-2); }
.pn-photo img { width: 100%; height: 100%; object-fit: cover; }
.pn-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 18px 0; border-top: 1px solid var(--trait); }
.pn-chiffres div { padding: 10px 0; border-bottom: 1px solid var(--trait); }
.pn-chiffres div:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--trait); }
.pn-chiffres div:nth-child(even) { padding-left: 14px; }
.pn-chiffres dt { font-family: var(--mono); font-size: 12px; color: var(--gris); }
.pn-chiffres dd { font-size: 18px; font-weight: 500; }
.pn-prix { font-size: 26px; font-weight: 560; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pn-plan { margin: 18px 0; border: 1px solid var(--trait); padding: 6px; background: #fff; }
.pn-cta { display: flex; justify-content: space-between; align-items: center; height: 52px; padding: 0 18px; background: var(--encre); color: var(--blanc); text-decoration: none; font-weight: 520; font-size: 14px; transition: background .4s; }
.pn-cta:hover { background: var(--laiton); }
.pn-cta.sec { background: transparent; color: var(--encre); border: 1px solid var(--encre); }
.pn-cta.sec:hover { background: var(--encre); color: var(--blanc); }
.pn-retour { margin-top: 12px; font-size: 13px; color: var(--gris); padding: 8px 0; }
.pn-retour:hover { color: var(--encre); }
.imm-pieces { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.imm-pieces .pc { position: absolute; left: 0; top: 0; translate: -50% -50%; font-size: 12px; font-weight: 520; background: rgba(255,255,255,.92); padding: 4px 8px; border: 1px solid var(--trait); white-space: nowrap; animation: apparait .6s .7s var(--ease) backwards; }
.imm-pieces .pc em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--gris); margin-left: 6px; }
@keyframes apparait { from { opacity: 0; } }
.imm-repli { display: none; }
.sans-3d .imm-repli { display: block; position: absolute; inset: 0; }
.sans-3d .imm-repli img { width: 100%; height: 100%; object-fit: cover; }

/* plans SVG (panneau, section plans, fiche) */
.plan-svg { width: 100%; height: auto; display: block; }
.plan-svg line, .plan-svg path, .plan-svg rect { fill: none; stroke: var(--encre); stroke-linecap: square; }
.plan-svg .p-ext-murs line { stroke-width: 5; }
.plan-svg .p-murs line { stroke-width: 2.4; }
.plan-svg .p-vitrages line { stroke-width: 1.2; stroke: #5a7480; }
.plan-svg .p-ext rect { stroke-width: 1; stroke-dasharray: 4 4; }
.plan-svg .p-portes path { stroke-width: .8; }
.plan-svg .p-cotes line { stroke-width: .8; stroke: var(--laiton); }
.plan-svg text { font-family: var(--sans); font-size: 13px; text-anchor: middle; fill: var(--encre); stroke: none; }
.plan-svg text.petit { font-size: 10.5px; }
.plan-svg text.m2, .plan-svg .p-cotes text, .plan-svg .p-ext text, .plan-svg text.noyau { font-family: var(--mono); font-size: 11px; fill: var(--gris); }
.plan-svg .p-cotes text { fill: var(--laiton); }

/* ---------- 03 MAISONS ---------- */
.mai-tetes { display: flex; gap: 0; border-top: 1px solid var(--encre); overflow-x: auto; scrollbar-width: none; }
.mai-onglets { display: flex; width: 100%; }
.mai-onglets button { flex: 1; min-width: 200px; text-align: left; padding: 18px 20px 20px 0; border-right: 1px solid var(--trait); display: grid; grid-template-columns: auto 1fr; column-gap: 14px; font-size: clamp(18px, 2vw, 26px); font-weight: 300; letter-spacing: -.02em; color: var(--gris); position: relative; transition: color .4s; }
.mai-onglets button + button { padding-left: 20px; }
.mai-onglets button:last-child { border-right: 0; }
.mai-onglets .n { font-family: var(--mono); font-size: 12px; padding-top: 8px; grid-row: span 2; }
.mai-onglets em { font-style: normal; font-family: var(--mono); font-size: 12px; }
.mai-onglets button::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--encre); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.mai-onglets button[aria-selected="true"] { color: var(--encre); }
.mai-onglets button[aria-selected="true"]::before { transform: scaleX(1); }
.mai-onglets button:hover { color: var(--encre); }
.mai { display: grid; grid-template-columns: minmax(0, 1fr) 400px; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.mai-scene { position: relative; height: min(84svh, 820px); min-height: 560px; background: linear-gradient(180deg, #eef0ee 0%, #e2e5e0 100%); overflow: hidden; touch-action: pan-y; }
.mai-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.mai-points { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.mai-points .pt { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 8px; translate: -11px -11px; transition: opacity .4s; }
.mai-points .pt i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--encre); background: rgba(244,244,242,.9); position: relative; flex: none; }
.mai-points .pt i::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--encre); transition: transform .4s var(--ease); }
.mai-points .pt i::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--encre); opacity: 0; animation: onde 2.6s var(--ease) infinite; }
@keyframes onde { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.5); opacity: 0; } }
.mai-points .pt span { font-size: 12.5px; font-weight: 520; background: var(--blanc); border: 1px solid var(--encre); padding: 4px 9px; white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity .3s, transform .4s var(--ease); }
.mai-points .pt:hover span, .mai-points .pt:focus-visible span, .mai-points .pt.on span { opacity: 1; transform: none; }
.mai-points .pt.on i::after { background: var(--laiton); }
.mai-barre { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; pointer-events: none; }
.mai-barre > * { pointer-events: auto; }
.mai-legende { font-family: var(--mono); font-size: 12px; background: rgba(244,244,242,.88); padding: 8px 12px; }
.mai-zones { display: flex; flex-wrap: wrap; border: 1px solid var(--encre); background: rgba(244,244,242,.9); }
.mai-zones button { padding: 9px 13px; font-size: 13px; font-weight: 500; border-right: 1px solid var(--trait); }
.mai-zones button:last-child { border-right: 0; }
.mai-zones button[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }
.mai-nav { position: absolute; z-index: 3; top: 18px; right: 20px; display: flex; gap: 0; border: 1px solid var(--encre); background: rgba(244,244,242,.9); }
.mai-nav button { width: 44px; height: 40px; font-family: var(--mono); font-size: 15px; border-right: 1px solid var(--trait); }
.mai-nav button:last-child { border-right: 0; }
.mai-nav button:hover, .mai-zones button:not([aria-pressed="true"]):hover { background: var(--blanc-2); }
.mai-fiche { padding: 32px 30px; border-left: 1px solid var(--trait); transition: opacity .5s var(--ease), transform .6s var(--ease); background: var(--blanc); }
.mai-fiche.change { opacity: 0; transform: translateY(8px); }
.mf-ref { font-family: var(--mono); font-size: 12px; color: var(--gris); }
.mai-fiche h3 { font-size: 40px; font-weight: 300; letter-spacing: -.035em; margin: 8px 0 4px; line-height: 1; }
.mf-prix { font-size: 22px; font-weight: 560; letter-spacing: -.01em; }
.mf-desc { color: var(--gris); margin: 16px 0; font-size: 15px; }
.mf-chiffres { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--trait); }
.mf-chiffres div { padding: 10px 0; border-bottom: 1px solid var(--trait); }
.mf-chiffres div:nth-child(odd) { border-right: 1px solid var(--trait); padding-right: 10px; }
.mf-chiffres div:nth-child(even) { padding-left: 14px; }
.mf-chiffres dt { font-family: var(--mono); font-size: 12px; color: var(--gris); }
.mf-chiffres dd { font-size: 19px; font-weight: 500; }
.mf-equip { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.mf-equip li { font-size: 12.5px; padding: 4px 10px; border: 1px solid var(--trait); }
.mf-galerie { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mf-galerie a { aspect-ratio: 4/3; overflow: hidden; display: block; background: var(--blanc-2); }
.mf-galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mf-galerie a:hover img { transform: scale(1.05); }
.mf-actions { display: flex; align-items: center; gap: 22px; margin-top: 20px; flex-wrap: wrap; }
.btn-plein { display: inline-flex; align-items: center; height: 48px; padding: 0 20px; background: var(--encre); color: var(--blanc); text-decoration: none; font-weight: 520; font-size: 14px; transition: background .4s; }
.btn-plein:hover { background: var(--laiton); }
.mf-note { font-family: var(--mono); font-size: 12px; color: var(--gris); margin-top: 16px; }

/* ---------- 04 PLANS ---------- */
.plans { position: relative; height: 340vh; background: var(--blanc); }
.plans-scene { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; gap: 40px; padding: 72px var(--g) 24px; max-width: var(--max); margin: 0 auto; }
.plans-txt .no { font-family: var(--mono); font-size: 12px; color: var(--gris); display: flex; gap: 14px; align-items: center; }
.plans-txt .no::after { content: ""; width: 64px; height: 1px; background: currentColor; }
.plans-txt h2 { font-size: clamp(34px, 4.4vw, 68px); font-weight: 300; letter-spacing: -.04em; line-height: 1; margin: 0 0 30px; }
.plans-txt h2 b { font-weight: 560; }
.etapes { list-style: none; border-top: 1px solid var(--trait); }
.etapes li { padding: 16px 0; border-bottom: 1px solid var(--trait); display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; color: var(--gris); transition: color .5s; }
.etapes li .k { font-family: var(--mono); font-size: 12px; padding-top: 3px; }
.etapes li b { font-weight: 560; font-size: 17px; }
.etapes li p { grid-column: 2; font-size: 14px; display: none; }
.etapes li.on { color: var(--encre); }
.etapes li.on p { display: block; animation: apparait .7s var(--ease); }
.etapes li.on .k { color: var(--laiton); }
.etape-mob { display: none; }
.plans-jauge { height: 1px; background: var(--trait); margin-top: 22px; position: relative; }
.plans-jauge i { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--encre); transform-origin: left; transform: scaleX(var(--p, 0)); }
.plans-vue { position: relative; height: min(78svh, 760px); perspective: 2200px; display: grid; place-items: center; }
.plans-plateau { position: relative; width: min(100%, 520px); aspect-ratio: 520 / 776; transform-style: preserve-3d; transform: rotateX(calc(var(--iso, 0) * 52deg)) rotateZ(calc(var(--iso, 0) * -38deg)) scale(calc(1 - var(--iso, 0) * .12)); }
.plans-plateau > svg, .plans-plateau .couche { position: absolute; inset: 0; width: 100%; height: 100%; }
.plans-plateau .couche { transform: translateZ(calc(var(--k) * var(--ext, 0) * 7px)); }
.plans-plateau .couche svg { width: 100%; height: 100%; }
.plans-plateau .couche .p-ext, .plans-plateau .couche .p-vitrages, .plans-plateau .couche .p-portes, .plans-plateau .couche .p-pieces, .plans-plateau .couche .p-cotes { display: none; }
.plans-plateau .couche line { stroke: #9a9a94; }
.plans-plateau .couche:last-child line { stroke: var(--encre); }
.plans-plateau .sol { position: absolute; inset: 0; background: #fff; transform: translateZ(-1px); box-shadow: 0 0 0 1px var(--trait); opacity: var(--iso, 0); }
.plans-plateau [class^="p-"] line, .plans-plateau [class^="p-"] path, .plans-plateau [class^="p-"] rect { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--t, 0)); }
.plans-plateau [class^="p-"] text { opacity: var(--t, 0); transition: opacity .3s; }
.plans-photo { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.plans-photo img { position: absolute; max-width: 100%; max-height: 100%; object-fit: contain; opacity: var(--o, 0); }
.plans-photo .p-iso { width: min(100%, 520px); aspect-ratio: 520 / 776; object-fit: cover; clip-path: inset(0 0 calc((1 - var(--o, 0)) * 100%) 0); }
.plans-photo .p-oeil { width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 calc((1 - var(--o, 0)) * 100%) 0 0); }
.plans-leg { position: absolute; right: 0; bottom: 0; font-family: var(--mono); font-size: 12px; color: var(--gris); background: rgba(244,244,242,.9); padding: 6px 10px; }

/* ---------- 05 BIENS ---------- */
.filtres { position: sticky; top: 72px; z-index: 20; background: rgba(244,244,242,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--encre); border-bottom: 1px solid var(--trait); }
.filtres-in { display: grid; grid-template-columns: auto repeat(5, minmax(0, 1fr)) minmax(0, 1.3fr); align-items: stretch; }
.filtres .f { display: flex; flex-direction: column; justify-content: center; padding: 10px 14px; border-right: 1px solid var(--trait); min-width: 0; }
.filtres label, .f-lab { font-family: var(--mono); font-size: 12px; color: var(--gris); }
.filtres select, .filtres input { border: 0; background: transparent; font-size: 15px; font-weight: 500; padding: 4px 22px 4px 0; width: 100%; appearance: none; -webkit-appearance: none; outline-offset: 4px; text-overflow: ellipsis; }
.filtres select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23121315' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right center; cursor: pointer; }
.filtres input::placeholder { color: #5f6265; font-weight: 400; }
.bascule { display: flex; padding: 0; border-right: 1px solid var(--trait); }
.bascule button { padding: 0 20px; font-weight: 560; font-size: 14px; color: var(--gris); position: relative; }
.bascule button[aria-pressed="true"] { color: var(--encre); }
.bascule button[aria-pressed="true"]::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 12px; height: 2px; background: var(--encre); }
.res-tete { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; flex-wrap: wrap; }
.compte { font-size: 15px; color: var(--gris); }
.compte b { font-size: 34px; font-weight: 300; color: var(--encre); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-right: 8px; }
.puces { display: flex; gap: 6px; flex-wrap: wrap; }
.puce { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border: 1px solid var(--encre); display: inline-flex; gap: 8px; align-items: center; }
.puce:hover { background: var(--encre); color: var(--blanc); }
.tri { display: flex; align-items: center; gap: 10px; }
.tri select { border: 0; border-bottom: 1px solid var(--encre); background: transparent; font-size: 14px; font-weight: 500; padding: 4px 0; }
.edito { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px) clamp(16px, 2.5vw, 36px); padding-bottom: 120px; }
.bien { position: relative; display: grid; gap: 18px; align-content: start; animation: bien-in .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes bien-in { from { opacity: 0; transform: translateY(30px); } }
.bien .ph { position: relative; overflow: hidden; background: var(--blanc-2); display: block; }
.bien .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.bien:hover .ph img { transform: scale(1.04); }
.bien .ph::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(18,19,21,0); transition: border-color .5s, inset .6s var(--ease); pointer-events: none; }
.bien:hover .ph::after { inset: 12px; border-color: rgba(255,255,255,.8); }
.bien .tag { position: absolute; z-index: 2; left: 14px; top: 14px; font-family: var(--mono); font-size: 12px; background: var(--blanc); padding: 5px 9px; }
.bien .tag.d3 { left: auto; right: 14px; background: var(--encre); color: var(--blanc); text-decoration: none; }
.bien .tag.d3:hover { background: var(--laiton); }
.bien .meta { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; color: var(--gris); border-top: 1px solid var(--trait); padding-top: 12px; }
.bien h3 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; }
.bien h3 a { text-decoration: none; }
.bien h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bien .specs { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--gris); }
.bien .specs b { color: var(--encre); font-weight: 560; }
.bien .prix { font-size: 20px; font-weight: 560; letter-spacing: -.01em; }
.bien .prix small { font-size: 13px; color: var(--gris); font-weight: 400; }
.bien.f-a { grid-column: 1 / span 8; } .bien.f-a .ph { aspect-ratio: 16/10; }
.bien.f-b { grid-column: 9 / span 4; align-self: end; } .bien.f-b .ph { aspect-ratio: 4/5; }
.bien.f-c { grid-column: 2 / span 5; } .bien.f-c .ph { aspect-ratio: 4/5; }
.bien.f-d { grid-column: 8 / span 5; margin-top: 18vh; } .bien.f-d .ph { aspect-ratio: 1/1; }
.bien.f-e { grid-column: 1 / span 12; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 40px; align-items: end; }
.bien.f-e .ph { aspect-ratio: 21/10; grid-row: span 5; }
.vide { grid-column: 1 / -1; border: 1px dashed var(--trait); padding: 70px 24px; text-align: center; }
.vide h3 { font-size: 28px; font-weight: 300; letter-spacing: -.02em; margin-bottom: 10px; }
.vide p { color: var(--gris); max-width: 32em; margin: 0 auto 22px; }

/* ---------- 06 VENDRE ---------- */
.vendre { padding-bottom: 120px; }
.vendre-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.cotes { list-style: none; position: relative; padding-left: 40px; }
.cotes::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: #3a3b3d; }
.cotes .jauge { position: absolute; left: 6px; top: 6px; width: 1px; height: calc(100% - 12px); background: var(--laiton-clair); transform-origin: top; transform: scaleY(var(--p, 0)); }
.cotes li { position: relative; padding: 16px 0 18px; border-bottom: 1px solid #26272a; }
.cotes li::before { content: ""; position: absolute; left: -40px; top: 24px; width: 13px; height: 1px; background: var(--sur-noir-2); }
.cotes .k { font-family: var(--mono); font-size: 12px; color: var(--laiton-clair); }
.cotes b { display: block; font-size: 21px; font-weight: 400; letter-spacing: -.02em; margin: 2px 0 4px; color: var(--sur-noir); }
.cotes p { color: var(--sur-noir-2); font-size: 14.5px; max-width: 30em; }
.estim { border: 1px solid #3a3b3d; padding: clamp(22px, 3vw, 40px); position: sticky; top: 96px; background: var(--noir-2); }
.estim-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.estim h3 { font-size: 30px; font-weight: 300; letter-spacing: -.03em; color: var(--sur-noir); }
.estim-pas { font-family: var(--mono); font-size: 12px; color: var(--sur-noir-2); }
.estim-barre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 26px; }
.estim-barre i { height: 2px; background: #3a3b3d; position: relative; overflow: hidden; }
.estim-barre i::after { content: ""; position: absolute; inset: 0; background: var(--laiton-clair); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.estim-barre i.fait::after { transform: scaleX(1); }
.estim fieldset { border: 0; display: none; }
.estim fieldset.actif { display: grid; gap: 18px; animation: pas-in .6s var(--ease); }
@keyframes pas-in { from { opacity: 0; transform: translateX(16px); } }
.estim legend { font-size: 15px; color: var(--sur-noir-2); margin-bottom: 4px; }
.choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 6px; }
.choix label { position: relative; cursor: pointer; }
.choix input { position: absolute; opacity: 0; inset: 0; }
.choix span { display: grid; place-items: center; gap: 8px; height: 92px; border: 1px solid #3a3b3d; font-size: 14px; color: var(--sur-noir); transition: border-color .3s, background .3s; text-align: center; padding: 8px; }
.choix svg { width: 34px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.2; }
.choix input:checked + span { border-color: var(--laiton-clair); background: #232427; }
.choix input:focus-visible + span { outline: 2px solid var(--laiton-clair); outline-offset: 2px; }
.champ { display: grid; gap: 6px; }
.champ label { font-family: var(--mono); font-size: 12px; color: var(--sur-noir-2); }
.champ input, .champ select, .champ textarea { background: transparent; border: 0; border-bottom: 1px solid #55575a; padding: 10px 0; font-size: 16px; color: var(--sur-noir); border-radius: 0; appearance: none; -webkit-appearance: none; transition: border-color .3s; }
.champ select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23e9e8e4' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right center; }
.champ select option { color: var(--encre); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--laiton-clair); }
.champ input::placeholder, .champ textarea::placeholder { color: #8d8f8d; }
.champ .err, .err { font-size: 12.5px; color: #f0a48a; }
.err:empty { display: none; }
.champ.ko input, .champ.ko select, .champ.ko textarea { border-color: #f0a48a; }
.rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.estim-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 16px; }
.estim-actions .prec { font-size: 14px; color: var(--sur-noir-2); padding: 10px 0; }
.estim-actions .prec:hover { color: var(--sur-noir); }
.estim-actions .prec[hidden] { display: block; visibility: hidden; }
.merci { display: none; text-align: left; animation: pas-in .6s var(--ease); }
.merci.on { display: block; }
.merci .coche { width: 56px; height: 56px; }
.merci .coche path { stroke: var(--laiton-clair); stroke-width: 1.5; fill: none; stroke-dasharray: 60; stroke-dashoffset: 60; animation: coche 1s .2s var(--ease) forwards; }
@keyframes coche { to { stroke-dashoffset: 0; } }
.merci h4 { font-size: 26px; font-weight: 300; margin: 16px 0 8px; letter-spacing: -.02em; }
.merci p { color: var(--sur-noir-2); }
.merci dl { margin: 18px 0; font-family: var(--mono); font-size: 12.5px; display: grid; gap: 4px; }
.merci dl div { display: flex; gap: 12px; } .merci dt { color: var(--sur-noir-2); min-width: 110px; }
.demo-note { font-family: var(--mono); font-size: 12px; color: var(--sur-noir-2); margin-top: 16px; }

/* ---------- 07 ACCOMPAGNEMENT ---------- */
.services { list-style: none; border-top: 1px solid var(--encre); margin-bottom: clamp(80px, 10vw, 140px); }
.services li { border-bottom: 1px solid var(--trait); }
.services details > summary { list-style: none; display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 26px 0; cursor: pointer; }
.services summary::-webkit-details-marker { display: none; }
.services .k { font-family: var(--mono); font-size: 12px; color: var(--gris); }
.services h3 { font-size: clamp(30px, 4.6vw, 64px); font-weight: 300; letter-spacing: -.045em; line-height: 1; transition: transform .6s var(--ease), color .4s; }
.services summary:hover h3 { transform: translateX(14px); }
.services .plus { width: 40px; height: 40px; border: 1px solid var(--encre); position: relative; transition: background .3s, transform .5s var(--ease); }
.services .plus::before, .services .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: currentColor; translate: -50% -50%; }
.services .plus::after { rotate: 90deg; transition: rotate .4s var(--ease); }
.services details[open] .plus { background: var(--encre); color: var(--blanc); }
.services details[open] .plus::after { rotate: 0deg; }
.services .corps { display: grid; grid-template-columns: 70px minmax(0, 5fr) minmax(0, 4fr); gap: 20px; padding: 0 0 30px; }
.services .corps p { grid-column: 2; color: var(--gris); max-width: 36em; font-size: 16px; }
.services .corps ul { grid-column: 3; list-style: none; font-family: var(--mono); font-size: 12.5px; display: grid; gap: 6px; }
.services .corps ul li { border: 0; display: flex; gap: 10px; }
.services .corps ul li::before { content: "+"; color: var(--laiton); }

/* ---------- 08 CONTACT ---------- */
.contact { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--sur-noir); padding: 120px 0 90px; }
.contact-fond { position: absolute; inset: 0; z-index: 0; background: var(--noir); }
.contact-fond img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transform: scale(var(--z, 1.08)); }
.contact-fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,13,14,.88) 0%, rgba(12,13,14,.55) 45%, rgba(12,13,14,.15) 100%), linear-gradient(0deg, rgba(12,13,14,.75), transparent 40%); }
.contact .cadre { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 100px); align-items: end; }
.contact h2 { font-size: clamp(40px, 6.4vw, 104px); font-weight: 300; letter-spacing: -.045em; line-height: .95; }
.contact h2 b { font-weight: 560; }
.coord { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid #3a3b3d; max-width: 560px; }
.coord div { padding: 14px 0; border-bottom: 1px solid #3a3b3d; }
.coord div:nth-child(odd) { padding-right: 16px; }
.coord dt { font-family: var(--mono); font-size: 12px; color: var(--sur-noir-2); }
.coord dd { font-size: 16px; }
.coord a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.coord a:hover { background-size: 100% 1px; }
.form-contact { background: rgba(23,24,26,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid #3a3b3d; padding: clamp(22px, 3vw, 38px); display: grid; gap: 18px; }
.form-contact h3 { font-size: 24px; font-weight: 300; letter-spacing: -.02em; }
.form-contact textarea { resize: vertical; min-height: 96px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--sur-noir-2); }
.consent input { margin-top: 3px; accent-color: var(--laiton-clair); width: 16px; height: 16px; }

/* ---------- pied ---------- */
.pied { background: var(--noir); color: var(--sur-noir-2); border-top: 1px solid #26272a; padding: 48px 0 32px; font-size: 14px; }
.pied-in { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.pied .logo { color: var(--sur-noir); }
.pied h4 { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--sur-noir-2); margin-bottom: 10px; }
.pied ul { list-style: none; display: grid; gap: 4px; }
.pied a { text-decoration: none; color: var(--sur-noir); }
.pied a:hover { text-decoration: underline; }
.pied-bas { margin-top: 40px; padding-top: 22px; border-top: 1px solid #26272a; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; }
.pied-bas b { color: var(--laiton-clair); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-liens { display: none; }
  .nav .btn { display: none; }
  .burger { display: block; }
  .filtres-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filtres .bascule { grid-column: span 3; border-bottom: 1px solid var(--trait); height: 46px; }
  .filtres .f { border-bottom: 1px solid var(--trait); }
  .mai { grid-template-columns: minmax(0, 1fr); }
  .mai-fiche { border-left: 0; border-top: 1px solid var(--trait); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
  .mai-fiche > * { grid-column: 1; }
  .mai-fiche .mf-chiffres, .mai-fiche .mf-equip, .mai-fiche .mf-galerie, .mai-fiche .mf-actions, .mai-fiche .mf-note { grid-column: 2; }
  .mai-fiche .mf-chiffres { grid-row: 1 / span 3; align-self: start; }
}
@media (max-width: 860px) {
  body { font-size: 15.5px; }
  .hero { min-height: 600px; }
  .hero::after { background: linear-gradient(0deg, rgba(244,244,242,.97) 0%, rgba(244,244,242,.9) 34%, rgba(244,244,242,0) 62%), linear-gradient(180deg, rgba(244,244,242,.7) 0%, rgba(244,244,242,0) 16%); }
  .hero-photo img { object-position: 50% 50%; }
  .hero-txt .cadre { grid-template-columns: 1fr; gap: 22px; }
  .hero-cote { display: none; }
  .hero-sous { font-size: 15.5px; margin-top: 16px; }
  .hero-actions { margin-top: 22px; gap: 22px; }
  .hero-amorce { white-space: normal; width: 86%; bottom: 10vh; }
  .passer { top: 82px; }
  .tete { grid-template-columns: 1fr; gap: 18px; }
  .tete > p { justify-self: start; font-size: 15.5px; }
  .imm { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .imm-stage { position: relative; height: 74svh; min-height: 480px; }
  .imm-cote { display: none; }
  .imm-haut { top: 14px; flex-direction: column; align-items: stretch; gap: 10px; }
  .imm-vues { align-self: stretch; }
  .imm-vues button { flex: 1; padding: 10px 4px; font-size: 12.5px; }
  .imm-etages { position: static; flex-direction: row; overflow-x: auto; gap: 0; border-top: 1px solid var(--trait); background: var(--blanc); scrollbar-width: none; }
  .imm-etages li { flex: none; }
  .imm-etages button { grid-template-columns: auto; padding: 12px 16px; border-left: 0; border-right: 1px solid var(--trait); min-height: 52px; }
  .imm-etages .n { padding: 0; }
  .imm-etages .r { display: none; }
  .imm-etages button.on { border-left: 0; background: var(--encre); color: var(--blanc); }
  .imm-aide { bottom: 12px; font-size: 12px; white-space: normal; width: max-content; max-width: 90%; text-align: center; }
  .imm[data-mode="etage"] .imm-aide, .imm[data-mode="lot"] .imm-aide { left: 50%; }
  .imm-panneau { position: static; width: auto; transform: none; border-left: 0; border-top: 1px solid var(--encre); padding: 24px var(--g) 32px; display: none; overflow: visible; }
  .imm-panneau.ouvert { display: block; }
  .mai-scene { height: 66svh; min-height: 440px; }
  .mai-barre { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 12px; gap: 8px; }
  .mai-legende { align-self: flex-start; }
  .mai-zones button { flex: 1; padding: 10px 6px; }
  .mai-nav { position: absolute; top: 12px; right: 12px; }
  .mai-onglets button { min-width: 64vw; padding: 14px 16px 16px 0; }
  .mai-fiche { display: block; padding: 26px var(--g); }
  .mai-fiche h3 { font-size: 32px; }
  .plans { height: 300vh; }
  .plans-scene { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 12px; padding-top: 84px; align-items: start; }
  .plans-txt h2 { font-size: 28px; margin: 0 0 12px; }
  .etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; }
  .etapes li { grid-template-columns: 1fr; padding: 8px 6px 8px 0; border-bottom: 0; border-top: 2px solid var(--trait); gap: 2px; }
  .etapes li.on { border-top-color: var(--encre); }
  .etapes li b { font-size: 13px; }
  .etapes li p, .etapes li.on p { display: none; }
  .etapes li.on b::after { content: none; }
  .plans-jauge { display: none; }
  .etape-mob { display: block; margin-top: 10px; min-height: 2.8em; font-size: 14px; color: var(--encre); line-height: 1.4; }
  .plans-vue { height: auto; min-height: 0; align-self: stretch; }
  .plans-plateau { width: min(64vw, 260px); }
  .plans-photo .p-iso { width: min(64vw, 260px); }
  .plans-leg { display: none; }
  .filtres { position: static; }
  .filtres-in { grid-template-columns: 1fr 1fr; }
  .filtres .bascule { grid-column: span 2; }
  .filtres .f.ref { grid-column: span 2; }
  .edito { grid-template-columns: 1fr; gap: 56px; }
  .bien.f-a, .bien.f-b, .bien.f-c, .bien.f-d, .bien.f-e { grid-column: 1; margin-top: 0; grid-template-columns: 1fr; }
  .bien .ph, .bien.f-e .ph { aspect-ratio: 4/3 !important; grid-row: auto; }
  .vendre-grille { grid-template-columns: 1fr; }
  .estim { position: static; }
  .rangee { grid-template-columns: 1fr; }
  .services details > summary { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 20px 0; }
  .services .corps { grid-template-columns: 1fr; padding-left: 52px; }
  .services .corps p, .services .corps ul { grid-column: 1; }
  .contact .cadre { grid-template-columns: 1fr; }
  .coord { grid-template-columns: 1fr; }
  .pied-in { grid-template-columns: 1fr 1fr; }
  .pied-in > :first-child { grid-column: span 2; }
}
@media (min-width: 861px) {
  .imm-stage { position: absolute; inset: 0; }
  .imm[data-mode="etage"] .imm-haut, .imm[data-mode="lot"] .imm-haut { right: calc(min(420px, 40vw) + 24px); }
  .imm-haut { z-index: 6; transition: right .8s var(--ease); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-v], .mots .m > span { opacity: 1; transform: none; clip-path: none; }
}
