/* Fiche d'un bien.
   1) Les règles « historiques » ci-dessous servent encore aux fiches Prestige (prestige.mjs réutilise energyBlock, costBlock…,
      la visionneuse .lb et les boîtes .dlg) et au catalogue : ne pas les modifier, Prestige reste tel quel.
   2) La fiche « Nuit » (direction A) est plus bas, tout est sous .fx. */

.f-hero { position: relative; height: 92vh; height: 92svh; min-height: 560px; color: #fff; overflow: hidden; background: var(--night); }
.f-hero-img { position: absolute; inset: 0; margin: 0; }
.f-hero-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--hs, 1)); transform-origin: 50% 40%; }
.f-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,14,18,.45) 0%, rgba(12,14,18,0) 22%, rgba(12,14,18,0) 46%, rgba(12,14,18,.78) 100%); }
.f-hero-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--hd) + 18px); padding-bottom: 36px; }
.crumbs.on-photo { color: rgba(255,255,255,.8); }
.crumbs.on-photo a:hover { color: #fff; }
.f-hero-b { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; }
.f-kick { font-size: 15px; font-weight: 520; opacity: .86; margin-bottom: 14px; max-width: 46em; }
.f-h1 { font-size: clamp(36px, 5vw, 84px); font-weight: 540; line-height: .98; letter-spacing: -.018em; max-width: 14em; text-wrap: balance; }
.f-hero-p { text-align: right; }
.f-price { font-size: clamp(30px, 3.4vw, 54px); font-weight: 560; letter-spacing: -.015em; margin: 0; white-space: nowrap; }
.f-fai { font-size: 13px; opacity: .8; margin-top: 4px !important; }
.f-facts { list-style: none; padding: 22px 0 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 14px 40px; border-top: 1px solid rgba(255,255,255,.28); }
.f-facts li { display: grid; grid-template-columns: auto auto; gap: 0 10px; align-items: center; font-size: 13px; }
.f-facts .ic { grid-row: span 2; width: 22px; height: 22px; opacity: .85; }
.f-facts span { opacity: .72; } .f-facts b { font-size: 17px; font-weight: 620; }
.f-all { position: absolute; right: var(--gut); top: calc(var(--hd) + 10px); display: inline-flex; gap: 10px; align-items: center; height: 44px; padding: 0 16px; border-radius: 11px; background: rgba(251,250,247,.92); color: var(--ink); font-size: 14.5px; font-weight: 600; transition: background .3s; }
.f-all:hover { background: #fff; }

.f-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 110px); padding-top: clamp(56px, 7vw, 110px); padding-bottom: 40px; align-items: start; }
.f-sec { padding-bottom: clamp(48px, 6vw, 88px); margin-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.f-h { font-size: clamp(28px, 2.6vw, 42px); font-weight: 560; letter-spacing: -.014em; margin-bottom: 22px; }
.small-h { font-size: 20px; }
.f-lead { color: var(--ink-2); max-width: 40em; margin-bottom: 30px; }
.f-sum { font-family: var(--read); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.42; color: var(--ink); max-width: 30em; }
.f-note { color: var(--ink-2); margin-top: 22px; }
.f-src { font-size: 13px; color: var(--mute); margin-top: 18px !important; max-width: 52em; }

/* galerie en mosaïque */
.f-gal { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(160px, 15vw)); gap: 8px; margin-bottom: clamp(56px, 7vw, 100px); border-radius: 18px; overflow: hidden; }
.f-gal button { position: relative; overflow: hidden; background: var(--paper-2); }
.f-gal .g0 { grid-row: span 2; }
.f-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .5s; }
.f-gal button:hover img { transform: scale(1.04); }
.f-gal span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(12,14,18,.5); color: #fff; font-size: 30px; font-weight: 560; }

.f-desc .read h3 { font-family: var(--sans); font-size: 21px; font-weight: 620; margin: 1.6em 0 .6em; letter-spacing: -.008em; }
.f-desc .read p { margin-bottom: 1.05em; max-width: 36em; }
.f-feat { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.f-feat li { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px 9px 11px; border-radius: 10px; background: var(--white); font-size: 15px; font-weight: 540; }
.f-feat .ic { width: 16px; height: 16px; color: var(--blue); }

/* énergie */
.dpe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.dpe-t { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.dpe-s { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dpe-s li { width: var(--w); background: var(--c); height: 26px; border-radius: 4px 14px 14px 4px; display: flex; align-items: center; padding-left: 10px; font-size: 13px; font-weight: 720; color: rgba(17,18,20,.75); opacity: .38; transition: opacity .4s, transform .6s var(--ease); }
.dpe-s li.on { opacity: 1; height: 36px; transform: translateX(10px); color: #111; box-shadow: 0 6px 18px -8px var(--c); font-size: 17px; }
.f-energy .dpe:last-child .dpe-s li { color: rgba(255,255,255,.85); }
.ban { margin-top: 34px; background: var(--white); border-radius: 16px; padding: 24px 26px; }
.ban-t { font-weight: 640; margin-bottom: 16px; }
.ban-line { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.ban-line::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.ban-line li { position: relative; display: grid; gap: 8px; font-size: 14px; }
.ban-line li span { width: 24px; height: 24px; border-radius: 50%; background: var(--c); display: grid; place-items: center; font-size: 12px; font-weight: 720; color: #fff; position: relative; }
.ban-line li b { order: 2; font-variant-numeric: tabular-nums; }
.ban-line li.on span { box-shadow: 0 0 0 5px rgba(0,71,248,.18); outline: 2px solid var(--ink); outline-offset: 2px; }

/* coût mensuel */
.cost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cost-in { display: grid; gap: 18px; align-content: start; }
.rg { display: grid; gap: 8px; font-size: 14px; font-weight: 560; color: var(--ink-2); }
.rg span { display: flex; justify-content: space-between; }
.rg output { color: var(--ink); font-weight: 660; font-variant-numeric: tabular-nums; }
.rg input { width: 100%; accent-color: var(--blue); }
.cost-out { background: var(--ink); color: #fff; border-radius: 20px; padding: 28px; display: grid; gap: 18px; align-content: start; }
.cost-total { display: grid; gap: 4px; margin: 0; } .cost-total span { font-size: 14px; color: #a5a7ad; }
.cost-total b { font-size: clamp(40px, 4vw, 60px); font-weight: 560; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cost-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #2a2d34; }
.cost-bar i { display: block; height: 100%; width: 0; transition: width .6s var(--ease); }
.cost-bar [data-b=loan], .k1 { background: var(--blue); } .cost-bar [data-b=energy], .k2 { background: #f0b50f; } .cost-bar [data-b=copro], .k3 { background: #78bd76; } .cost-bar [data-b=tax], .k4 { background: #c9c4ba; }
.cost-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.cost-l li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; color: #d5d4cf; }
.cost-l i { width: 10px; height: 10px; border-radius: 3px; }
.cost-l b { font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; }
.cost-fees { font-size: 14px; color: #a5a7ad; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; } .cost-fees b { color: #fff; }

/* lumière */
.sun-box { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px 32px; background: var(--white); border-radius: 20px; padding: 22px; align-items: center; }
.sun-sky { width: 100%; border-radius: 12px; grid-row: span 2; }
.sun-arc { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.sun-arc.w { stroke: #8fa9e6; stroke-dasharray: 4 5; stroke-width: 1.2; } .sun-arc.s { stroke: #f0b50f; stroke-dasharray: 4 5; stroke-width: 1.2; }
.sun-hz { stroke: var(--ink); stroke-opacity: .25; }
.sun-dot { fill: var(--blue); filter: drop-shadow(0 0 10px rgba(0,71,248,.45)); }
.sun-data { display: grid; gap: 10px; }
.sun-data p { display: flex; justify-content: space-between; gap: 12px; margin: 0; border-bottom: 1px solid var(--line-2); padding-bottom: 10px; }
.sun-data span { color: var(--ink-2); } .sun-data b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sun-day { display: grid; gap: 6px; font-size: 14px; font-weight: 600; } .sun-day input { accent-color: var(--blue); }
.sun-ref { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--ink-2); }
.sun-ref p { margin: 0; display: flex; align-items: center; gap: 8px; } .sun-ref i { width: 18px; height: 2px; } .sun-ref i.w { background: #8fa9e6; } .sun-ref i.s { background: #f0b50f; }

/* carnet de visite */
.car-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; flex-wrap: wrap; }
.car-head .btn { height: 46px; } .car-head .btn .ic { order: -1; }
.car-l { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; counter-reset: q; }
.car-l label { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 14px; background: var(--white); cursor: pointer; transition: background .3s; }
.car-l input { position: absolute; opacity: 0; pointer-events: none; }
.car-box { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; transition: .35s var(--ease); }
.car-box .ic { width: 15px; height: 15px; }
.car-l input:checked + .car-box { background: var(--blue); border-color: var(--blue); color: #fff; }
.car-l input:checked ~ .car-q { color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(17,18,20,.25); }
.car-l input:focus-visible + .car-box { outline: 2px solid var(--blue); outline-offset: 2px; }
.car-q { font-size: 16px; line-height: 1.45; padding-top: 2px; }

.f-mapbox { height: 460px; border-radius: 20px; overflow: hidden; background: var(--paper-2); }
.f-mapbox .maplibregl-ctrl-attrib { font-size: 10px; }
.f-legal p { font-size: 14px; color: var(--ink-2); }
.f-legal details { margin-top: 14px; font-size: 13.5px; color: var(--mute); } .f-legal summary { cursor: pointer; font-weight: 560; color: var(--ink-2); margin-bottom: 8px; }
.f-ref { font-size: 13px; color: var(--mute); margin-top: 14px !important; }
.f-legal { border-bottom: 0; }

/* colonne de droite */
.f-rail { position: sticky; top: calc(var(--hd) + 20px); }
.rail { background: var(--white); border-radius: 22px; padding: 26px; display: grid; gap: 16px; box-shadow: 0 30px 60px -40px rgba(17,18,20,.35), 0 0 0 1px var(--line-2); }
.rail-p { font-size: 32px; font-weight: 580; letter-spacing: -.015em; margin: 0; }
.rail-m { margin: -10px 0 0; font-size: 14.5px; color: var(--ink-2); } .rail-m a { border-bottom: 1px solid var(--line); }
.rail-cta { display: grid; gap: 8px; } .rail-cta .btn { justify-content: space-between; width: 100%; }
.rail-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rb { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: 12px; background: var(--paper); font-size: 12.5px; font-weight: 580; text-align: center; transition: background .3s, color .3s; }
.rb:hover { background: var(--paper-2); }
.rb[aria-pressed="true"] { background: var(--blue); color: #fff; } .rb[aria-pressed="true"] path { fill: currentColor; }
.rail-adv { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line-2); }
.rail-adv img, .mono { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--paper-2); display: grid; place-items: center; font-weight: 660; }
.rail-adv p { margin: 0; } .rail-n { font-weight: 640; font-size: 17px; }
.rail-tel { display: flex; gap: 10px; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; padding-top: 4px; }

.f-sim { padding-top: 40px; } .f-sim .h2 { margin-bottom: 44px; }
.sim-grid { grid-template-columns: repeat(4, 1fr); }

/* barre du bas sur téléphone */
.f-bar { display: none; }

/* boîtes de dialogue */
.dlg { width: min(620px, calc(100vw - 24px)); max-height: calc(100svh - 24px); border: 0; border-radius: 24px; padding: clamp(24px, 4vw, 40px); background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0,0,0,.5); }
.dlg::backdrop { background: rgba(12,14,18,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlg .6s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.dlg-x { position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--white); }
.dlg-t { font-size: 30px; font-weight: 580; letter-spacing: -.014em; margin-bottom: 6px; padding-right: 50px; }
.dlg-s { color: var(--ink-2); margin-bottom: 24px; font-size: 15px; }
.slots { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.slots legend { margin-bottom: 8px; padding: 0; }
.slots label { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--white); font-weight: 520; color: var(--ink); cursor: pointer; }
.slots input { accent-color: var(--blue); }

/* visionneuse */
.lb { position: fixed; inset: 0; z-index: 140; background: #0b0c0f; color: #fff; display: grid; grid-template-rows: auto 1fr; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gut); font-size: 14px; font-variant-numeric: tabular-nums; }
.lb-top button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.lb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; padding: 0 var(--gut) 40px; }
.lb-track img { max-width: 100%; max-height: calc(100svh - 120px); object-fit: contain; border-radius: 6px; }
.lb-p, .lb-nx { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: background .3s; }
.lb-p:hover, .lb-nx:hover { background: rgba(255,255,255,.22); }
.lb-p { left: 20px; } .lb-nx { right: 20px; }

@media (max-width: 1100px) {
  .f-main { grid-template-columns: 1fr; }
  .f-rail { position: static; order: -1; display: none; }
  .sim-grid { grid-template-columns: repeat(2, 1fr); }
  .f-bar { display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; background: rgba(251,250,247,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 18px; padding: 8px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.4), 0 0 0 1px var(--line-2); transform: translateY(140%); transition: transform .6s var(--ease); }
  .f-bar.on { transform: none; }
  .f-bar .btn { flex: 1; justify-content: center; height: 52px; }
  .fb { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); }
  .fb[aria-pressed="true"] { background: var(--blue); color: #fff; } .fb[aria-pressed="true"] path { fill: currentColor; }
  .ft { padding-bottom: 110px; }
}
@media (max-width: 700px) {
  .f-hero { height: 86svh; }
  .f-hero-b { grid-template-columns: 1fr; }
  .f-hero-p { text-align: left; }
  .f-facts { gap: 12px 22px; }
  .f-all { top: auto; bottom: 18px; right: 18px; height: 40px; font-size: 13px; }
  .f-hero-in { padding-bottom: 76px; }
  .f-gal { grid-template-columns: 1fr 1fr; grid-template-rows: 46vw 26vw 26vw; }
  .f-gal .g0 { grid-column: span 2; grid-row: auto; }
  .f-gal .g3, .f-gal .g4 { display: none; }
  .dpe-grid, .cost-grid, .sun-box { grid-template-columns: 1fr; }
  .sun-sky { grid-row: auto; }
  .sim-grid { grid-template-columns: 1fr; }
  .f-mapbox { height: 340px; }
  .lb-p, .lb-nx { display: none; }
}
@media print {
  .hd, .mm-wrap, .ft, .f-hero, .f-gal, .f-rail, .f-sim, .f-bar, .f-map, .f-cost, .f-sun, .f-energy, .f-desc, .f-brief, .f-legal, .car-head .btn, .toast, .curtain { display: none !important; }
  body { background: #fff; } .f-main { display: block; padding: 0; } .f-sec { border: 0; } .car-l label { background: none; border: 1px solid #ccc; }
}

/* ---------- v2 « app » : en-tête de fiche en mosaïque (remplace la photo plein écran) ---------- */
.f-top { padding-top: calc(var(--hd) + 18px); }
.f-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; }
.f-h1 { font-size: clamp(25px, 2.5vw, 38px); font-weight: 600; letter-spacing: -.014em; line-height: 1.1; max-width: 22em; }
.f-sub { color: var(--mute); margin: 6px 0 0; font-size: 14.5px; }
.f-act { display: flex; gap: 4px; flex: none; }
.f-ab { display: inline-flex; gap: 8px; align-items: center; height: 40px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: background .2s; }
.f-ab:hover { background: #fff; } .f-ab .ic { width: 18px; height: 18px; }
.f-ab[aria-pressed="true"] { color: var(--blue); } .f-ab[aria-pressed="true"] path { fill: currentColor; }
.f-mosaic { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(150px, 15vw)); gap: 8px; border-radius: 20px; overflow: hidden; }
.f-mosaic > button:not(.f-all) { overflow: hidden; background: var(--paper-2); }
.f-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: filter .3s; }
.f-mosaic > button:hover img { filter: brightness(.9); }
.f-mosaic .fm0 { grid-row: span 2; }
.f-mosaic.is-few { grid-template-columns: 2fr 1fr; }
.f-mosaic .f-all { position: absolute; right: 14px; bottom: 14px; top: auto; border-radius: 11px; box-shadow: var(--sh-2); background: #fff; }
.f-top .f-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; border: 0; color: var(--ink); }
.f-top .f-facts li { display: grid; grid-template-columns: auto auto; gap: 0 10px; align-items: center; padding: 9px 14px; border-radius: 12px; background: #fff; box-shadow: var(--sh); font-size: 12.5px; }
.f-top .f-facts span { color: var(--mute); opacity: 1; } .f-top .f-facts b { font-size: 16px; font-weight: 640; }
.f-top .f-facts .ic { grid-row: span 2; color: var(--mute); opacity: 1; width: 20px; height: 20px; }
.f-main { padding-top: clamp(32px, 4vw, 56px); }
.f-h { font-size: clamp(22px, 1.9vw, 30px); font-weight: 600; }
.f-sum { font-size: clamp(20px, 1.6vw, 25px); }
.rail { box-shadow: var(--sh-2); border-radius: 20px; }
.rail-p { font-size: 28px; }
@media (max-width: 700px) {
  .f-title { flex-direction: column; align-items: flex-start; gap: 8px; }
  .f-ab span { display: none; }
  .f-mosaic { grid-template-columns: 1fr; grid-template-rows: 68vw; border-radius: 16px; margin: 0 calc(var(--gut) * -.5); }
  .f-mosaic > button:not(.fm0):not(.f-all) { display: none; }
  .f-mosaic .fm0 { grid-row: auto; }
  .f-top .f-facts { gap: 6px; } .f-top .f-facts li { padding: 8px 11px; }
}

/* =====================================================================================
   Fiche « Nuit » (direction A) · presque noir, blanc chaud, filets, Mona Sans large.
   Le bleu Domini reste pour l'action principale (demander une visite).
   ===================================================================================== */
.fx { --ind: calc(70px + clamp(24px, 4vw, 70px)); position: relative; background: var(--n-bg); color: var(--n-fg); }
.fx-h2 { font-size: clamp(36px, 4.4vw, 76px); text-wrap: balance; margin: 0; }
.fx-h4 { font-size: 13px; font-weight: 560; color: var(--n-fg-3); margin: 0 0 14px; }
.fx-lead { font-size: clamp(15.5px, 1.15vw, 18px); line-height: 1.55; color: var(--n-fg-2); max-width: 34em; margin: 0; text-wrap: pretty; }
.fx-src { font-size: 13px; line-height: 1.5; color: var(--n-fg-3); max-width: 58em; margin: 24px 0 0 var(--ind); }
.fx-a { color: var(--n-fg); text-decoration: underline; text-decoration-color: rgba(244,241,234,.35); text-underline-offset: .2em; transition: text-decoration-color .3s; }
.fx-a:hover { text-decoration-color: currentColor; }
.fx-sec { position: relative; padding: clamp(90px, 10vw, 170px) var(--gut); border-top: 1px solid var(--n-line-2); }
.fx-head { display: grid; grid-template-columns: 70px minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px clamp(24px, 4vw, 70px); align-items: end; margin-bottom: clamp(44px, 5vw, 84px); }
.fx-head .n-k { align-self: start; padding-top: .8em; }
.fx-head > :last-child:not(:nth-child(2)) { justify-self: start; }
.fx-head-r { display: grid; gap: 24px; justify-items: start; }
.fx-chip { display: inline-grid; place-items: center; width: 1.55em; height: 1.55em; border-radius: 3px; background: var(--c); color: var(--t, #111); font-style: normal; font-weight: 700; font-size: .8em; font-stretch: 100%; line-height: 1; flex: none; }

/* ---------- l'ouverture : les photos du bien en film ---------- */
.fx-hero { min-height: 100vh; min-height: 100svh; }
.fx-film { background: var(--n-bg); }
.fx-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.1) translate3d(var(--kx), var(--ky), 0); transition: opacity 1.8s cubic-bezier(.45,0,.2,1); }
.fx-slide.is-on { opacity: 1; z-index: 2; }
.fx-slide.was-on { opacity: 1; z-index: 1; transition: none; }
.fx-slide.is-on, .fx-slide.was-on { animation: fx-kb 11s cubic-bezier(.33,0,.4,1) forwards; }
@keyframes fx-kb { from { transform: scale(1.1) translate3d(var(--kx), var(--ky), 0); } to { transform: scale(1.01) translate3d(0,0,0); } }
.fx-hero.is-paused .fx-slide, .fx-hero.is-paused .fx-prog b { animation-play-state: paused; }
.fx-shade { background:
  linear-gradient(180deg, rgba(10,10,11,.62) 0%, rgba(10,10,11,.12) 19%, rgba(10,10,11,.06) 38%, rgba(10,10,11,.5) 64%, rgba(10,10,11,.93) 100%),
  linear-gradient(90deg, rgba(10,10,11,.4) 0%, rgba(10,10,11,0) 62%); }
.fx-crumbs { position: absolute; z-index: 3; left: var(--gut); top: calc(var(--hd) + 22px); right: 260px; }
.fx-crumbs span { color: var(--n-fg-2); }
.fx-photos { position: absolute; z-index: 3; right: var(--gut); top: calc(var(--hd) + 12px); display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 4px; background: rgba(10,10,11,.38); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); font-size: 14px; font-weight: 540; transition: background .35s, color .35s; }
.fx-photos:hover { background: var(--n-fg); color: var(--n-bg); }
.fx-photos .ic { width: 17px; height: 17px; }
.fx-hero-in { padding-top: calc(var(--hd) + 100px); padding-bottom: clamp(22px, 3.4vh, 40px); gap: clamp(22px, 3.2vh, 36px); justify-items: stretch; }
.fx-h1 { margin: 0; max-width: none; }
.fx-h1-k { display: block; font-size: clamp(20px, 2vw, 34px); font-stretch: 112%; font-weight: 450; line-height: 1.12; margin-bottom: .4em; text-wrap: balance; }
.fx-h1-c { display: block; font-size: clamp(46px, min(11vw, calc(150vw / var(--n))), 184px); font-stretch: 122%; font-weight: 430; line-height: .9; margin-left: -.05em; }
.fx-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 22px clamp(24px, 3vw, 56px); padding-top: clamp(18px, 2.4vh, 26px); border-top: 1px solid rgba(255,255,255,.2); }
.fx-p { margin: 0; font-size: clamp(30px, 3vw, 52px); font-stretch: 112%; font-weight: 500; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fx-p small { font-size: .42em; font-weight: 500; color: var(--n-fg-2); }
.fx-pn { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--n-fg-2); max-width: 32em; }
.fx-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 0; }
.fx-facts li { display: grid; gap: 4px; padding: 0 clamp(14px, 1.5vw, 26px); border-left: 1px solid rgba(255,255,255,.2); }
.fx-facts li:first-child { padding-left: 0; border-left: 0; }
.fx-facts b { display: flex; align-items: center; min-height: 1.3em; font-size: clamp(17px, 1.3vw, 21px); font-stretch: 112%; font-weight: 540; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fx-facts span { font-size: 12px; color: var(--n-fg-3); white-space: nowrap; }
.fx-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; }
.fx-cta { height: 54px; }
.fx-mini { display: flex; gap: 2px; }
.fx-ab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 3px; font-size: 14px; font-weight: 540; color: var(--n-fg); white-space: nowrap; transition: background .3s; }
.fx-ab:hover { background: rgba(255,255,255,.1); }
.fx-ab .ic { width: 19px; height: 19px; flex: none; }
.fx-ab[aria-pressed="true"] path, .fx-dock-i[aria-pressed="true"] path { fill: currentColor; }
.fx-hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px clamp(18px, 3vw, 48px); }
.fx-hero-foot .fx-mini { margin-right: -12px; }
.fx-film-ui { display: flex; align-items: center; gap: 16px; }
.fx-count { margin: 0; font-size: 12.5px; color: var(--n-fg-3); font-variant-numeric: tabular-nums; }
.fx-count b { color: var(--n-fg); font-weight: 560; }
.fx-prog { display: flex; gap: 6px; }
.fx-prog button { width: 34px; height: 18px; display: flex; align-items: center; }
.fx-prog i { display: block; width: 100%; height: 1px; background: rgba(255,255,255,.3); overflow: hidden; }
.fx-prog b { display: block; height: 100%; background: var(--n-fg); transform: scaleX(0); transform-origin: 0 50%; }
.fx-prog .is-done b { transform: scaleX(1); }
.fx-prog .is-on b { animation: fx-fill 6.5s linear forwards; }
.fx-prog .is-on.is-static b { animation: none; transform: scaleX(1); }
@keyframes fx-fill { to { transform: scaleX(1); } }

/* ---------- le bien : résumé, points clés, description ---------- */
.fx-sum { font-family: var(--read); font-size: clamp(23px, 2.2vw, 36px); line-height: 1.34; color: var(--n-fg); max-width: 28em; margin: 0 0 clamp(64px, 7vw, 120px) var(--ind); text-wrap: pretty; font-optical-sizing: auto; }
.fx-story-g { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr); gap: clamp(40px, 7vw, 140px); align-items: start; }
.fx-keys { position: sticky; top: calc(var(--hd) + 28px); }
.fx-keys dl { margin: 0; border-top: 1px solid var(--n-line); }
.fx-keys dl > div { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--n-line-2); }
.fx-keys dt { font-size: 14px; color: var(--n-fg-3); }
.fx-keys dd { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 15.5px; font-weight: 540; text-align: right; font-variant-numeric: tabular-nums; }
.fx-sep { color: var(--n-fg-3); font-weight: 400; }
.fx-plus-h { margin-top: 36px; }
.fx-plus { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.fx-plus li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.fx-plus .ic { width: 16px; height: 16px; color: var(--n-fg-3); }
.fx-desc { max-width: 37em; }
.fx-desc p { margin: 0 0 1.05em; }
.fx-desc > h3:first-child, .fx-desc-t + h3 { margin-top: 0; }
.fx-desc .fx-desc-t { font-family: var(--sans); font-stretch: 114%; font-weight: 500; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.2; color: var(--n-fg); margin: 0 0 1.1em; text-wrap: balance; }

/* ---------- la galerie : un film horizontal épinglé (ordinateur), glissé au doigt (téléphone) ---------- */
.fx-gal { border-top: 1px solid var(--n-line-2); }
.fx-frames { align-items: center; }
.fx-fr { position: relative; display: block; flex: none; overflow: hidden; border-radius: 3px; background: var(--n-bg-3); color: var(--n-fg); padding: 0; }
.fx-frames > .fx-fr { --h: min(66vh, 680px); width: calc(var(--h) * 1.42); height: var(--h); }
.fx-frames > .fx-fr.is-t { width: calc(var(--h) * .78); }
.fx-fr img { position: absolute; top: 0; left: -9%; width: 118%; max-width: none; height: 100%; object-fit: cover; transition: scale 1.4s var(--n-ease), opacity .6s; }
.fx-fr:hover img { scale: 1.04; }
.fx-fr-n { position: absolute; left: 14px; bottom: 12px; font-size: 12px; font-weight: 560; text-shadow: 0 1px 10px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; }
.fx-frames > .fx-fr-end { width: calc(var(--h) * .62); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 28px; background: transparent; box-shadow: inset 0 0 0 1px var(--n-line); text-align: left; transition: background .5s; }
.fx-fr-end:hover { background: rgba(255,255,255,.04); }
.fx-end-t { font-size: clamp(26px, 2.4vw, 40px); text-wrap: balance; }
.fx-fr-end:hover .n-round, .fx-end:hover .n-round { background: var(--n-fg); color: var(--n-bg); box-shadow: none; }
.fx-few { display: grid; gap: 8px; grid-template-columns: 1.6fr 1fr; height: min(72vh, 700px); margin-left: var(--ind); }
.fx-few-3 { grid-template-rows: 1fr 1fr; }
.fx-few-3 .fx-fr:first-child { grid-row: span 2; }
.fx-few .fx-fr { width: auto; height: auto; min-height: 0; }
.fx-few .fx-fr img { left: 0; width: 100%; }

/* ---------- la visionneuse plein écran ---------- */
.fx-lb { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #070708; color: var(--n-fg); overflow: hidden; }
.fx-lb::backdrop { background: #070708; }
.fx-lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fx-lb-in .5s var(--n-ease); }
@keyframes fx-lb-in { from { opacity: 0; } }
html.na-cur-on .fx-lb, html.na-cur-on .fx-lb * { cursor: auto; }
html.na-cur-on .fx-lb button { cursor: pointer; }
html.na-cur-on .fx-lb .fx-lb-track { cursor: grab; }
html.na-cur-on .fx-lb .fx-lb-track.is-drag { cursor: grabbing; }
.fx-lb-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 12px var(--gut); }
.fx-lb-n { margin: 0; font-size: 13px; color: var(--n-fg-3); font-variant-numeric: tabular-nums; }
.fx-lb-n b { color: var(--n-fg); font-weight: 560; }
.fx-lb-t { margin: 0; max-width: 52vw; font-size: 14px; color: var(--n-fg-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-lb-x { justify-self: end; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--n-line); transition: background .3s, color .3s; }
.fx-lb-x:hover { background: var(--n-fg); color: var(--n-bg); }
.fx-lb-track { display: flex; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.fx-lb-track::-webkit-scrollbar { display: none; }
.fx-lb-track.is-drag { scroll-snap-type: none; user-select: none; }
.fx-lb-f { flex: 0 0 100%; min-width: 0; margin: 0; display: grid; place-items: center; padding: 0 clamp(12px, 7vw, 110px); scroll-snap-align: center; }
.fx-lb-f img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 3px; user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity .5s; }
.fx-lb-f img.ok { opacity: 1; }
.fx-lb-b { position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,10,11,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--n-line); transition: background .3s, color .3s, opacity .3s; }
.fx-lb-b:hover { background: var(--n-fg); color: var(--n-bg); }
.fx-lb-b[disabled] { opacity: .25; pointer-events: none; }
.fx-lb-b.is-p { left: var(--gut); } .fx-lb-b.is-n { right: var(--gut); }
.fx-lb-prog { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 14px var(--gut) calc(18px + env(safe-area-inset-bottom)); }
.fx-lb-prog button { width: 24px; height: 20px; display: flex; align-items: center; }
.fx-lb-prog i { display: block; width: 100%; height: 1px; background: rgba(255,255,255,.25); transition: background .3s, transform .3s; }
.fx-lb-prog button:hover i { background: rgba(255,255,255,.6); }
.fx-lb-prog button[aria-current="true"] i { background: var(--n-fg); transform: scaleY(2); }

/* ---------- énergie ---------- */
.fx-en-g { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); margin-left: var(--ind); }
.fx-scale-t { margin: 0 0 18px; font-size: 14px; color: var(--n-fg-2); }
.fx-scale-v { display: flex; align-items: baseline; gap: 16px; margin: 0 0 26px; }
.fx-scale-v b { font-size: clamp(84px, 8vw, 136px); font-weight: 440; line-height: .78; }
.fx-scale-v span { font-size: 14px; color: var(--n-fg-3); }
.fx-bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; height: 72px; }
.fx-bars li { display: grid; grid-template-rows: 1fr auto; gap: 9px; }
.fx-bars i { align-self: end; display: block; height: 10px; border-radius: 2px; background: var(--c); opacity: .38; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: height 1.1s var(--n-ease) .3s, opacity .8s .3s; }
.fx-bars span { font-size: 12px; font-weight: 600; color: var(--n-fg-3); text-align: center; }
.fx-bars .on i { height: 46px; opacity: 1; }
.fx-bars .on span { color: var(--n-fg); }
.js .fx-scale:not(.in) .on i { height: 10px; opacity: .38; }
.fx-en-cost, .fx-ban { margin: clamp(60px, 6vw, 100px) 0 0 var(--ind); padding-top: 30px; border-top: 1px solid var(--n-line-2); }
.fx-big { margin: 0; font-size: clamp(34px, 3.6vw, 60px); font-variant-numeric: tabular-nums; }
.fx-en-cost .fx-src, .fx-ban .fx-src, .fx-energy .fx-head + .fx-lead { margin-left: 0; }
.fx-energy .fx-head + .fx-lead { margin-left: var(--ind); }
.fx-ban-l { list-style: none; margin: 10px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-ban-l li { display: grid; gap: 16px; align-content: start; }
.fx-ban-l b { position: relative; display: block; padding-bottom: 18px; border-bottom: 1px solid var(--n-line); font-size: clamp(30px, 3vw, 52px); font-weight: 440; color: var(--n-fg-3); }
.fx-ban-l b::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--n-bg); box-shadow: inset 0 0 0 1px var(--n-fg-3); }
.fx-ban-l .is-past b::after { background: var(--n-fg-3); }
.fx-ban-l .on b { color: var(--n-fg); }
.fx-ban-l .on b::after { background: var(--n-fg); box-shadow: 0 0 0 4px rgba(244,241,234,.14); }
.fx-ban-l span { display: flex; align-items: center; gap: 10px; padding-right: 18px; font-size: 14px; line-height: 1.35; color: var(--n-fg-2); }
.fx-ban-l .on span { color: var(--n-fg); }
.fx-ban-p { margin: 0; max-width: 44em; color: var(--n-fg-2); }

/* ---------- coût mensuel réel ---------- */
.fx-cost-g { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); margin-left: var(--ind); align-items: start; }
.fx-total { margin: 0 0 28px; font-size: clamp(60px, 7vw, 124px); line-height: .9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-cost-bar { display: flex; gap: 2px; height: 6px; margin-bottom: 26px; }
.fx-cost-bar i { display: block; height: 100%; width: 0; border-radius: 1px; transition: width .8s var(--n-ease); }
.fx-cost-bar [data-b=loan], .fx-cost-l .c1 { background: var(--n-fg); }
.fx-cost-bar [data-b=energy], .fx-cost-l .c2 { background: #dfb05c; }
.fx-cost-bar [data-b=copro], .fx-cost-l .c3 { background: #8fb79a; }
.fx-cost-bar [data-b=tax], .fx-cost-l .c4 { background: rgba(244,241,234,.36); }
.fx-cost-l { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--n-line-2); }
.fx-cost-l li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--n-line-2); font-size: 15px; color: var(--n-fg-2); }
.fx-cost-l i { width: 10px; height: 10px; border-radius: 2px; }
.fx-cost-l b { color: var(--n-fg); font-weight: 560; font-variant-numeric: tabular-nums; text-align: right; }
.fx-cost-fees { display: flex; justify-content: space-between; gap: 16px; margin: 18px 0 0; font-size: 14px; color: var(--n-fg-3); }
.fx-cost-fees b { color: var(--n-fg-2); font-weight: 560; font-variant-numeric: tabular-nums; }
.fx-cost-in { display: grid; gap: 30px; padding-top: 6px; }
.fx-rg { display: grid; gap: 12px; }
.fx-rg > span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--n-fg-2); }
.fx-rg output { font-size: 22px; font-weight: 520; font-stretch: 112%; color: var(--n-fg); font-variant-numeric: tabular-nums; }
.fx-rg input[type=range] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; }
.fx-rg input[type=range]::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(90deg, var(--n-fg) var(--p), rgba(255,255,255,.18) var(--p)); }
.fx-rg input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -10px; border: 0; border-radius: 50%; background: var(--n-fg); transition: transform .3s var(--n-ease), box-shadow .3s; }
.fx-rg input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); }
.fx-rg input[type=range]:focus-visible { outline: none; }
.fx-rg input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(244,241,234,.22); }
.fx-rg input[type=range]::-moz-range-track { height: 1px; background: rgba(255,255,255,.18); }
.fx-rg input[type=range]::-moz-range-progress { height: 1px; background: var(--n-fg); }
.fx-rg input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--n-fg); }
.fx-cost .fx-tax input::placeholder { color: var(--n-fg-3); }

/* ---------- la lumière à l'adresse ---------- */
.fx-sun-g { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: clamp(30px, 5vw, 90px); margin-left: var(--ind); align-items: center; }
.fx-sky svg { display: block; width: 100%; height: auto; border-radius: 3px; }
.fx-arc { fill: none; stroke: var(--n-fg); stroke-width: 1.4; }
.fx-arc.w { stroke: #8ea6d8; stroke-width: 1.1; stroke-dasharray: 3 6; opacity: .85; }
.fx-arc.s { stroke: #dfb05c; stroke-width: 1.1; stroke-dasharray: 3 6; opacity: .85; }
.fx-hz { stroke: rgba(255,255,255,.22); }
.fx-sun-dot { fill: #f6e8c8; }
.fx-sun-ref { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 16px; font-size: 13.5px; color: var(--n-fg-3); }
.fx-sun-ref p { margin: 0; display: flex; align-items: center; gap: 8px; }
.fx-sun-ref b { color: var(--n-fg-2); font-weight: 540; font-variant-numeric: tabular-nums; }
.fx-sun-ref i { width: 18px; border-top: 1px dashed; } .fx-sun-ref i.w { color: #8ea6d8; } .fx-sun-ref i.s { color: #dfb05c; }
.fx-sun-data > p { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--n-line-2); }
.fx-sun-data > p:first-child { border-top: 1px solid var(--n-line-2); }
.fx-sun-data span { font-size: 14px; color: var(--n-fg-3); }
.fx-sun-data b { font-size: clamp(30px, 2.8vw, 46px); font-weight: 460; font-variant-numeric: tabular-nums; }
.fx-day { margin-top: 26px; }

/* ---------- le quartier ---------- */
.fx-map { padding-bottom: 0; }
.fx-mapbox { position: relative; height: min(78vh, 780px); margin: 0 calc(var(--gut) * -1); overflow: hidden; background: var(--n-bg-2); }
.fx-mapbox .maplibregl-ctrl-attrib { font-size: 10px; }
.fx-mapbox .maplibregl-ctrl-attrib, .fx-mapbox .maplibregl-ctrl-group { background: rgba(10,10,11,.7); color: var(--n-fg-3); }
.fx-mapbox .maplibregl-ctrl-attrib a { color: var(--n-fg-2); }

/* ---------- le carnet de visite ---------- */
.fx-q { list-style: none; margin: 0 0 0 var(--ind); padding: 0; border-top: 1px solid var(--n-line); }
.fx-q li { border-bottom: 1px solid var(--n-line); }
.fx-q label { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 30px; gap: 18px; align-items: start; padding: 22px 0; cursor: pointer; }
.fx-q input { position: absolute; opacity: 0; pointer-events: none; }
.fx-q-n { padding-top: .45em; font-size: 13px; font-weight: 560; color: var(--n-fg-3); font-variant-numeric: tabular-nums; }
.fx-q-t { font-size: clamp(17px, 1.3vw, 21px); line-height: 1.42; font-stretch: 106%; text-wrap: pretty; transition: color .4s; }
.fx-q-box { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); color: transparent; transition: background .4s var(--n-ease), color .4s, box-shadow .4s; }
.fx-q-box .ic { width: 15px; height: 15px; }
.fx-q label:hover .fx-q-box { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.fx-q input:checked ~ .fx-q-box { background: var(--n-fg); color: var(--n-bg); box-shadow: none; }
.fx-q input:checked ~ .fx-q-t { color: var(--n-fg-3); }
.fx-q input:focus-visible ~ .fx-q-box { outline: 2px solid var(--n-fg); outline-offset: 3px; }
.fx-notes { margin: 44px 0 0 var(--ind); max-width: 760px; }
.fx-print .ic { order: -1; }
.fx-print-h { display: none; }

/* ---------- visiter : le conseiller et le formulaire (éclair ivoire) ---------- */
.fx-contact { position: relative; padding: clamp(90px, 10vw, 170px) var(--gut); scroll-margin-top: 0; }
.fx-contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(50px, 7vw, 140px); max-width: var(--max); margin: 0 auto; align-items: start; }
.fx-contact .fx-h2 { font-size: clamp(44px, 5.4vw, 96px); margin-bottom: 26px; }
.fx-contact .fx-lead { color: var(--n-ink-2); }
.fx-adv { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: clamp(40px, 4vw, 64px); padding-top: 30px; border-top: 1px solid var(--n-line); }
.fx-adv-img { width: 128px; height: 128px; border-radius: 3px; object-fit: cover; background: var(--n-ivory-2); }
.fx-mono { display: grid; place-items: center; font-size: 36px; font-stretch: 118%; font-weight: 460; color: var(--n-ink); }
.fx-adv-k { margin: 0 0 6px; font-size: 13px; color: var(--n-ink-3); }
.fx-adv-n { margin: 0; font-size: clamp(26px, 2.4vw, 38px); }
.fx-adv-p { margin: 8px 0 2px; font-size: 14px; color: var(--n-ink-2); }
.fx-recap { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--n-line); }
.fx-recap img { width: 88px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.fx-recap p { margin: 0; display: grid; gap: 4px; }
.fx-recap b { font-size: 15px; font-weight: 560; line-height: 1.3; }
.fx-recap span { font-size: 13.5px; color: var(--n-ink-2); font-variant-numeric: tabular-nums; }
.fx-tabs { display: flex; gap: 28px; margin-bottom: 34px; border-bottom: 1px solid var(--n-line); }
.fx-tabs button { position: relative; padding: 0 0 16px; font-size: clamp(16px, 1.25vw, 19px); font-weight: 540; font-stretch: 110%; color: var(--n-ink-3); transition: color .3s; }
.fx-tabs button:hover, .fx-tabs button[aria-selected="true"] { color: var(--n-ink); }
.fx-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--n-ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--n-ease); }
.fx-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.fx-panel:not([hidden]) { animation: fx-in .6s var(--n-ease); }
@keyframes fx-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
.fx-contact .fl { color: var(--n-ink-3); }
.fx-slots { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; padding: 0; border: 0; }
.fx-slots legend { padding: 0; margin-bottom: 10px; font-size: 13px; color: var(--n-ink-3); }
.fx-slots label { position: relative; }
.fx-slots input { position: absolute; opacity: 0; }
.fx-slots span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(22,19,15,.2); font-size: 15px; font-weight: 520; color: var(--n-ink); cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; }
.fx-slots label:hover span { box-shadow: inset 0 0 0 1px rgba(22,19,15,.45); }
.fx-slots input:checked + span { background: var(--n-ink); color: var(--n-ivory); box-shadow: none; }
.fx-slots input:focus-visible + span { outline: 2px solid var(--n-ink); outline-offset: 2px; }
.fx-contact .fm .btn { height: 56px; padding: 0 26px; }

/* ---------- informations légales ---------- */
.fx-legal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 16px clamp(24px, 4vw, 70px); padding-top: clamp(60px, 6vw, 96px); padding-bottom: clamp(60px, 6vw, 96px); }
.fx-legal-in p { margin: 0 0 10px; max-width: 62em; font-size: 14px; line-height: 1.55; color: var(--n-fg-2); }
.fx-legal details { margin: 16px 0 6px; font-size: 13.5px; color: var(--n-fg-3); }
.fx-legal summary { cursor: pointer; font-weight: 540; color: var(--n-fg-2); margin-bottom: 8px; list-style-position: inside; }
.fx-legal details p { color: var(--n-fg-3); font-size: 13.5px; }
.fx-legal .fx-ref { margin-top: 14px; font-size: 13px; color: var(--n-fg-3); }

/* ---------- biens similaires, en bande ---------- */
.fx-sim { border-top: 1px solid var(--n-line-2); }
.fx-sim-track > .fx-end { width: clamp(240px, 22vw, 340px); align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--n-line); color: var(--n-fg); transition: background .5s; }
.fx-end:hover { background: rgba(255,255,255,.04); }

/* ---------- la barre vitrée : réserver une visite, toujours à portée ---------- */
.fx-dock { position: fixed; z-index: 50; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translate3d(-50%, 150%, 0); visibility: hidden; transition: transform .7s var(--n-ease), visibility 0s .7s; }
.fx-dock.on { transform: translate3d(-50%, 0, 0); visibility: visible; transition: transform .7s var(--n-ease), visibility 0s; }
.fx-dock-in { display: flex; align-items: center; gap: 12px; padding: 7px; border-radius: 6px; background: rgba(20,20,22,.62); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 30px 80px -30px rgba(0,0,0,.75); }
.fx-dock-img { width: 46px; height: 46px; border-radius: 3px; object-fit: cover; flex: none; }
.fx-dock-t { margin: 0 8px 0 2px; display: grid; gap: 2px; min-width: 0; }
.fx-dock-t b { max-width: 280px; font-size: 13.5px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-dock-t span { font-size: 13px; color: var(--n-fg-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fx-dock-i { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--n-line); transition: background .3s; }
.fx-dock-i:hover { background: rgba(255,255,255,.08); }
.fx-dock-cta { flex: none; height: 46px; padding: 0 20px; font-size: 14.5px; }

/* ---------- dévoilement de haut en bas (observé par fiche.js, seuil 0 : la surface rognée compte pour zéro) ---------- */
.js .fx [data-fx-wipe] { clip-path: inset(0 0 100% 0); }
.js .fx [data-fx-wipe] > img { scale: 1.16; }
.js .fx [data-fx-wipe].in { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--n-io) var(--d, 0s); }
.js .fx [data-fx-wipe].in > img { scale: 1; transition: scale 2.2s var(--n-ease) var(--d, 0s); }
.reduce .fx [data-fx-wipe] { clip-path: none !important; } .reduce .fx [data-fx-wipe] > img { scale: 1 !important; }

/* ---------- sans script ou mouvement réduit : les bandes se font défiler à la main ---------- */
.reduce .fx-slide { animation: none !important; transform: none; }
.reduce .fx-prog b { animation: none !important; }
@media (min-width: 900px) {
  .no-js .fx .n-strip-pin, .reduce .fx .n-strip-pin { display: block; min-height: 0; padding: clamp(90px, 10vw, 170px) 0; }
  .no-js .fx .n-strip-rail, .reduce .fx .n-strip-rail { display: block; }
  .no-js .fx .n-strip-head, .reduce .fx .n-strip-head { width: auto; padding: 0 var(--gut) 40px; }
  .no-js .fx .n-strip-track, .reduce .fx .n-strip-track { overflow-x: auto; padding: 0 var(--gut) 20px; }
  .no-js .fx .n-strip-prog, .reduce .fx .n-strip-prog { display: none; }
}

/* ---------- écrans moyens ---------- */
@media (max-width: 1180px) {
  .fx-row { grid-template-columns: auto minmax(0, 1fr); }
  .fx-acts { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- téléphones ---------- */
@media (max-width: 899px) {
  .fx { --ind: 0px; }
  .fx-head { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 36px; }
  .fx-head .n-k { padding-top: 0; }
  .fx-h2 { font-size: clamp(34px, 10vw, 54px); font-stretch: 114%; }
  .fx-crumbs { display: none; }
  .fx-photos { top: calc(var(--hd) + 10px); height: 38px; padding: 0 12px; font-size: 13px; }
  .fx-hero { min-height: 100svh; }
  .fx-hero-in { padding: calc(var(--hd) + 70px) var(--gut) 18px; gap: 18px; }
  .fx-h1-k { font-size: clamp(17px, 4.6vw, 22px); margin-bottom: .3em; }
  .fx-h1-c { font-size: clamp(40px, min(17vw, calc(128vw / var(--n))), 92px); font-stretch: 116%; line-height: .92; }
  .fx-row { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .fx-p { font-size: clamp(30px, 8.6vw, 40px); }
  .fx-facts { gap: 10px 0; }
  .fx-facts li { padding: 0 12px; }
  .fx-facts b { font-size: 16px; }
  .fx-facts span { font-size: 11.5px; }
  .fx-acts { display: block; }
  .fx-cta { width: 100%; justify-content: space-between; }
  .fx-hero-foot { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 16px; }
  .fx-hero-foot .fx-mini { grid-column: 1 / -1; order: -1; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .fx-ab { justify-content: center; height: 46px; padding: 0 6px; gap: 6px; font-size: 13px; white-space: normal; text-align: center; line-height: 1.15; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); background: rgba(10,10,11,.25); }
  .fx-ab .ic { width: 17px; height: 17px; }
  .fx-hero-foot { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .fx-prog button { width: 24px; }

  .fx-sum { font-size: clamp(21px, 5.8vw, 26px); margin-bottom: 56px; }
  .fx-story-g { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .fx-keys { position: static; }
  .fx-desc { max-width: none; }

  .fx-frames > .fx-fr, .fx-frames > .fx-fr.is-t, .fx-frames > .fx-fr-end { --h: auto; width: 84vw; height: auto; aspect-ratio: 4 / 3; }
  .fx-frames > .fx-fr-end { padding: 22px; }
  .fx-fr img { left: 0; width: 100%; }
  .fx-gal .n-strip-pin { padding: clamp(70px, 18vw, 100px) 0 64px; }
  .fx-few, .fx-few-3 { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; }
  .fx-few .fx-fr, .fx-few-3 .fx-fr:first-child { grid-row: auto; aspect-ratio: 4 / 3; }

  .fx-lb-b { display: none; }
  .fx-lb-top { grid-template-columns: auto minmax(0, 1fr) auto; }
  .fx-lb-t { max-width: none; text-align: left; font-size: 13px; }
  .fx-lb-f { padding: 0; }
  .fx-lb-f img { border-radius: 0; max-height: calc(100dvh - 140px); }

  .fx-en-g, .fx-cost-g, .fx-sun-g { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .fx-ban-l { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .fx-ban-l li { grid-template-columns: 96px minmax(0, 1fr); align-items: center; }
  .fx-ban-l b { border-bottom: 0; padding-bottom: 0; font-size: 30px; }
  .fx-ban-l b::after { display: none; }
  .fx-total { font-size: clamp(54px, 17vw, 80px); }
  .fx-mapbox { height: 64vh; }
  .fx-q label { grid-template-columns: 30px minmax(0, 1fr) 28px; gap: 12px; padding: 18px 0; }
  .fx-q-t { font-size: 16.5px; }
  .fx-print { width: 100%; }

  .fx-contact-in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .fx-contact .fx-h2 { font-size: clamp(40px, 12vw, 60px); }
  .fx-adv { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .fx-adv-img { width: 88px; height: 88px; }
  .fx-tabs { gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .fx-tabs button { white-space: nowrap; font-size: 15.5px; }
  .fx-contact .fm .btn { width: 100%; justify-content: space-between; }

  .fx-legal { grid-template-columns: minmax(0, 1fr); }
  .fx-sim-track > .fx-end { width: 62vw; aspect-ratio: auto; }

  .fx-dock { left: 10px; right: 10px; transform: translate3d(0, 150%, 0); }
  .fx-dock.on { transform: none; }
  .fx-dock-in { gap: 8px; }
  .fx-dock-img { display: none; }
  .fx-dock-t { flex: 1; margin: 0 0 0 8px; }
  .fx-dock-t b { max-width: none; font-size: 12.5px; }
  .fx-dock-t span { font-size: 14px; color: var(--n-fg); font-weight: 560; }
  .fx-dock-i { width: 46px; }
  .fx-dock-cta { padding: 0 16px; font-size: 14px; }
  .fx-dock-cta .ic { display: none; }
}
@media (max-width: 380px) {
  .fx-dock-t b { display: none; }
}

/* ---------- impression : le carnet de visite seul, en noir sur blanc ---------- */
@media print {
  .fx { --n-fg: #111; --n-fg-2: #333; --n-fg-3: #666; --n-line: #bbb; --n-line-2: #ddd; --n-bg: #fff; --ind: 0px; background: #fff !important; color: #111 !important; }
  .fx > :not(.fx-carnet), .fx-dock, .fx-lb { display: none !important; }
  .fx-carnet { padding: 0 !important; border: 0 !important; }
  .fx-carnet .fx-print, .fx-carnet .n-k, .fx-carnet .fx-lead { display: none !important; }
  .fx-print-h { display: block !important; margin: 0 0 14pt; font-size: 11pt; color: #333; }
  .fx-carnet .fx-head { display: block; margin: 0 0 8pt; }
  .fx-carnet .fx-h2 { font-size: 24pt !important; color: #111; }
  .fx [data-r], .fx [data-lines] { opacity: 1 !important; transform: none !important; visibility: visible !important; }
  .fx-q-t { color: #111 !important; font-size: 12pt; }
  .fx-q-box { box-shadow: inset 0 0 0 1px #888 !important; }
  .fx-q label { padding: 9pt 0; break-inside: avoid; }
  .fx-notes textarea { min-height: 180pt; color: #111 !important; border-bottom: 1px solid #999 !important; }
}
.fx-mapbox canvas { filter: brightness(1.3) contrast(1.04); }
.fx-mapbox .maplibregl-ctrl.maplibregl-ctrl-attrib, .fx-mapbox .maplibregl-ctrl-attrib.maplibregl-compact { background: rgba(10,10,11,.72); color: var(--n-fg-3); box-shadow: inset 0 0 0 1px var(--n-line-2); }
.fx-mapbox .maplibregl-ctrl-attrib a { color: var(--n-fg-2); }
.fx-mapbox .maplibregl-ctrl-attrib-button { filter: invert(1); background-color: transparent; }
.fx-mapbox .maplibregl-cooperative-gesture-screen { background: rgba(10,10,11,.6); color: var(--n-fg); font-family: var(--sans); }
.fx-print { max-width: 100%; white-space: normal; text-align: left; line-height: 1.25; height: auto; min-height: 52px; padding-block: 12px; }
/* les mots composés allemands et néerlandais (« bezichtigingsboekje ») se coupent au lieu de déborder */
.fx-h2, .fx-h1-k, .fx-h1-c, .fx-end-t, .fx-keys dd, .fx-q-t { overflow-wrap: break-word; }
html:lang(de) .fx-h2, html:lang(nl) .fx-h2, html:lang(de) .fx-end-t, html:lang(nl) .fx-end-t { -webkit-hyphens: auto; hyphens: auto; }
.fx-dock-t span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) {
  /* sur téléphone, le texte occupe la moitié basse : l'ombre monte plus haut pour rester lisible */
  .fx-shade { background: linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,.06) 17%, rgba(10,10,11,.12) 33%, rgba(10,10,11,.66) 54%, rgba(10,10,11,.9) 72%, rgba(10,10,11,.96) 100%); }
}
@media (max-width: 460px) {
  .fx-dock-i { display: none; }
  .fx-dock-t b { display: none; }
  .fx-dock-t { margin-left: 10px; }
  .fx-dock-t span { font-size: 15px; }
}
@media print { html.t-nuit, .t-nuit body { background: #fff !important; } }
