/* Belvédère — démo de promotion immobilière (Démesure) */

:root {
  --sand: #efe8dc;
  --sand-2: #e5dccd;
  --paper: #f7f3ec;
  --ink: #1f1b16;
  --ink-2: #5a5146;
  --line: rgba(31, 27, 22, .14);
  --terra: #b4532a;
  --olive: #6b7350;
  --amber: #c99a3b;
  --grey: #a39b8f;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --g: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { overflow-x: clip; } /* garde-fou : iOS ignore le « clip » du body seul, la page ne doit jamais glisser de côté */
body {
  margin: 0;
  background: var(--sand); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--terra); color: var(--paper); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--terra); }

.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.mono-note { font-size: 12px; color: var(--ink-2); opacity: .8; margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  transition: background-color .3s, color .3s, transform .4s var(--ease), box-shadow .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--terra); color: var(--paper); box-shadow: 0 10px 30px -12px rgba(180, 83, 42, .7); }
.btn--accent:hover { background: #9c4522; }
.btn--dark { background: var(--ink); color: var(--paper); height: 44px; padding: 0 20px; font-size: 13px; }
.btn--ghost { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.section { padding: clamp(90px, 12vw, 160px) var(--g); }

/* Révélations au défilement */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease) calc(var(--k, 0) * 90ms), transform 1s var(--ease) calc(var(--k, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
/* Titres : chaque ligne monte derrière un masque */
.reveal h2 .line, .hero h1 .line { display: block; overflow: hidden; padding: 0 .1em .1em; margin: 0 -.1em -.1em; }
.reveal h2 .line > span, .hero h1 .line > span { display: inline-block; }
.reveal h2 .line > span { transform: translateY(105%); transition: transform 1.3s var(--ease) calc(.08s + var(--l, 0) * .1s); }
.reveal.is-in h2 .line > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal h2 .line > span { opacity: 1; transform: none; transition: none; } }

/* Bandeau démo */
.demo-bar {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 9px var(--g);
  background: var(--ink); color: rgba(247, 243, 236, .75);
  font-size: 12.5px;
}
.demo-bar a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px; padding: 0 var(--g);
  background: rgba(239, 232, 220, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 30px; color: var(--terra); }
.brand__name { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: .02em; }
.nav__links { display: flex; gap: 30px; font-size: 14px; color: var(--ink-2); }
.nav__links a { position: relative; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--terra); transform: scaleX(0); transition: transform .5s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

/* Hero : photo plein écran */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 76px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--g) clamp(40px, 6vw, 84px);
  background: #2a241d; color: var(--paper);
}
.hero__media { position: absolute; inset: 0; }
.hero__frame { position: absolute; inset: 0; transform-origin: 30% 60%; animation: kenburns 26s cubic-bezier(.2, .6, .2, 1) both; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
/* La même photo, une heure et demie plus tard : on allume la façade. */
.hero__night { opacity: 0; filter: brightness(.5) saturate(.7); transition: opacity 1.4s ease, filter 2.8s cubic-bezier(.3, .6, .2, 1); }
.is-soir .hero__night { opacity: 1; filter: none; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 17, 12, .66) 0%, rgba(22, 17, 12, .28) 42%, rgba(22, 17, 12, 0) 68%),
    linear-gradient(0deg, rgba(22, 17, 12, .6) 0%, rgba(22, 17, 12, 0) 48%);
}
.hero__text { position: relative; z-index: 2; max-width: 700px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(54px, 7vw, 118px); line-height: .9; color: var(--paper); text-shadow: 0 2px 40px rgba(0, 0, 0, .25); }
.hero h1 em { color: #f3c9a3; }
.nowrap { white-space: nowrap; }
.hero__lead { max-width: 40ch; font-size: 18px; color: rgba(247, 243, 236, .88); }
.eyebrow--light { color: rgba(247, 243, 236, .78); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--glass { background: rgba(247, 243, 236, .14); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(247, 243, 236, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: var(--paper); color: var(--ink); }
.hero__facts {
  position: absolute; right: var(--g); bottom: clamp(40px, 6vw, 84px); z-index: 2;
  display: grid; grid-template-columns: repeat(4, auto); gap: 30px;
  padding: 22px 30px; border-radius: 18px;
  background: rgba(31, 27, 22, .32); border: 1px solid rgba(247, 243, 236, .2);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.hero__facts b { display: block; font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1; }
.hero__facts span { font-size: 12.5px; color: rgba(247, 243, 236, .75); }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; z-index: 2; width: 24px; height: 40px; margin-left: -12px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(247, 243, 236, .7); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--paper); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__frame, .hero__scroll span { animation: none; } }

/* Sélecteur d'ambiance : jour / soir */
.ambiance { position: absolute; top: clamp(18px, 3vw, 34px); right: var(--g); z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.ambiance__switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px;
  background: rgba(31, 27, 22, .32); border: 1px solid rgba(247, 243, 236, .22);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.ambiance button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: rgba(247, 243, 236, .82); transition: color .45s; }
.ambiance button[aria-pressed="true"] { color: var(--ink); }
.ambiance svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.ambiance [data-mode="soir"] svg { fill: currentColor; stroke: none; }
.ambiance__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--paper); transition: transform .7s var(--ease), background-color .7s; }
.is-soir .ambiance__thumb { transform: translateX(100%); background: #f3c9a3; }
.ambiance__time { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(247, 243, 236, .8); text-shadow: 0 1px 14px rgba(0, 0, 0, .4); font-variant-numeric: tabular-nums; }

/* ---------- Intro : les brise-soleil pivotent et ouvrent sur la façade ---------- */
.intro { display: none; }
.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 100; background: var(--ink); cursor: pointer; }
.intro-open .intro { background: transparent; pointer-events: none; }
.intro__slats { position: absolute; inset: 0; display: flex; perspective: 1600px; }
.intro__slats i {
  flex: 1 1 0; height: 100%; margin-right: -1px;
  background-color: var(--ink);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .22));
  transform-origin: 50% 50%;
}
.intro-open .intro__slats i { animation: slat 1.35s cubic-bezier(.7, 0, .2, 1) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes slat {
  0% { transform: rotateY(0); background-color: #1f1b16; }
  45% { background-color: #6e4f33; }
  75% { background-color: #b98a5a; opacity: 1; }
  100% { transform: rotateY(-89deg); background-color: #e2c093; opacity: 0; }
}
.intro__card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 0 var(--g); color: var(--paper); text-align: center; transition: opacity .45s ease, transform .9s var(--ease); }
.intro-open .intro__card { opacity: 0; transform: translateY(-16px) scale(.98); }
.intro__mark { width: 56px; height: 56px; fill: none; stroke: #f3c9a3; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro__name { display: flex; overflow: hidden; padding: 0 .06em .14em; font-family: var(--serif); font-size: clamp(56px, 8.5vw, 120px); font-weight: 500; line-height: 1; letter-spacing: .01em; }
.intro__name span { display: inline-block; transform: translateY(112%); animation: rise 1.1s var(--ease) both; animation-delay: calc(.35s + var(--i) * 45ms); }
@keyframes rise { to { transform: none; } }
.intro__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(247, 243, 236, .62); font-variant-numeric: tabular-nums; opacity: 0; animation: fadein .8s ease .75s forwards; }
.intro__meta span + span::before { content: "—"; margin-right: 14px; opacity: .5; }
@keyframes fadein { to { opacity: 1; } }
.intro__bar { width: 150px; height: 1px; margin-top: 6px; background: rgba(247, 243, 236, .16); overflow: hidden; }
.intro__bar i { display: block; height: 100%; background: #f3c9a3; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.intro__skip { position: absolute; right: var(--g); bottom: 22px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(247, 243, 236, .45); opacity: 0; animation: fadein .6s ease 1.4s forwards; }
.intro-open .intro__skip { visibility: hidden; }

/* Entrée du hero, après l'intro (ou directement lors d'une visite suivante) */
.hero__media { transition: transform 3s cubic-bezier(.2, .7, .1, 1); }
.intro-on .hero__media, .hero-quick .hero__media { transform: scale(1.12); }
:is(.intro-on, .hero-quick) .hero [data-in] { opacity: 0; transform: translateY(26px); }
:is(.intro-on, .hero-quick) .hero h1 .line > span { transform: translateY(108%); }
:is(.intro-on, .hero-quick) .nav { opacity: 0; transform: translateY(-10px); }
.hero-in .hero__media { transform: none; }
.hero-in .hero [data-in] { opacity: 1; transform: none; transition: opacity 1s var(--ease) var(--d, 0s), transform 1.3s var(--ease) var(--d, 0s); }
.hero-in .hero h1 .line > span { transform: none; transition: transform 1.4s var(--ease) var(--d, 0s); }
.hero-in .nav { opacity: 1; transform: none; transition: opacity .9s var(--ease) .45s, transform .9s var(--ease) .45s; }

.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.scene:active { cursor: grabbing; }

/* Projet */
.projet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr) minmax(0, 1.05fr); gap: clamp(30px, 5vw, 80px); align-items: end; }
.projet__photo { margin: 0; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; }
/* Un rideau couleur de fond se retire et découvre la photo (un clip-path complet empêcherait sa détection au défilement). */
.projet__photo { position: relative; }
.projet__photo.reveal, .shot.reveal { opacity: 1; transform: none; }
.projet__photo.reveal::after, .shot.reveal::after {
  content: ""; position: absolute; inset: -1px; z-index: 2; pointer-events: none;
  background: var(--sand); transform-origin: 50% 100%;
  transition: transform 1.5s cubic-bezier(.7, 0, .2, 1) calc(var(--k, 0) * 110ms);
}
.shot.reveal::after { background: var(--paper); transform-origin: 50% 0; }
.projet__photo.reveal.is-in::after, .shot.reveal.is-in::after { transform: scaleY(0); }
.projet__photo img { width: 100%; height: 118%; object-fit: cover; display: block; will-change: transform; }
.projet h2, .lots h2, .presta h2, .quartier h2, .finance h2, .visite h2 { font-size: clamp(44px, 6vw, 96px); line-height: .95; margin-top: 14px; }
.projet__body > p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-2); }
.progress { margin-top: 44px; }
.progress__head { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.progress__head b { font-family: var(--serif); font-size: 32px; font-weight: 500; color: var(--ink); line-height: 1; }
.progress__bar { height: 4px; margin-top: 12px; border-radius: 4px; background: var(--sand-2); overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 0; background: var(--terra); border-radius: inherit; transition: width 2.2s var(--ease); }
.progress__steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; font-size: 12.5px; color: var(--grey); }
.progress__steps li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; border: 1px solid currentColor; vertical-align: 1px; }
.progress__steps .is-done { color: var(--ink-2); }
.progress__steps .is-done::before { background: var(--ink-2); }
.progress__steps .is-current { color: var(--terra); font-weight: 600; }
.progress__steps .is-current::before { background: var(--terra); border-color: var(--terra); box-shadow: 0 0 0 4px rgba(180, 83, 42, .2); }


/* Galerie */
.galerie { background: var(--paper); }
.galerie__head { margin-bottom: 48px; }
.galerie__note { max-width: 50ch; margin-top: 20px; color: var(--ink-2); }
.galerie h2 { font-size: clamp(44px, 6vw, 96px); line-height: .95; margin-top: 14px; }
.galerie__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 28vw, 440px); gap: 16px; }
.shot { position: relative; overflow: hidden; border-radius: 16px; padding: 0; cursor: zoom-in; background: var(--sand-2); }
.shot--wide { grid-column: span 2; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); }
.shot__cap { position: absolute; left: 16px; bottom: 14px; padding: 7px 13px; border-radius: 999px; background: rgba(247, 243, 236, .86); backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 600; }
.shot__cap small { margin-right: 8px; font-size: 11.5px; font-weight: 700; color: var(--terra); font-variant-numeric: tabular-nums; }
/* Les photos se dévoilent : le rideau remonte, l'image se pose */
.shot.reveal img { transform: scale(1.25); transition: transform 2.2s var(--ease) calc(var(--k, 0) * 110ms); }
.shot.reveal.is-in img { transform: none; }
.shot.reveal.is-in:hover img, .shot.reveal.is-in:focus-visible img { transform: scale(1.05); transition: transform 1.4s var(--ease); }
@media (prefers-reduced-motion: reduce) { .shot.reveal::after, .projet__photo.reveal::after { display: none; } .shot.reveal img { transform: none; } }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 4vh 4vw; background: rgba(18, 14, 10, .92); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; gap: 14px; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 10px; transform: scale(.96); transition: transform .6s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox figcaption { color: rgba(247, 243, 236, .8); font-size: 14px; text-align: center; }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; color: var(--paper); font-size: 28px; box-shadow: inset 0 0 0 1px rgba(247, 243, 236, .4); }

/* Sélecteur d'appartements */
.lots { background: var(--paper); }
.lots__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.lots__help { max-width: 36ch; color: var(--ink-2); }
.lots__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.lots__stage {
  position: sticky; top: 96px;
  height: min(76vh, 720px); min-height: 420px;
  border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, #fbf9f5 0%, #ece6db 70%, #e3dccf 100%);
}
.lots__floor {
  position: absolute; left: 18px; top: 16px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(247, 243, 236, .85); backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 600;
  pointer-events: none;
}
/* Contexte 3D retiré par le navigateur : on propose de relancer la maquette. */
.lots__lost { position: absolute; inset: 0; z-index: 3; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; background: rgba(247, 243, 236, .9); backdrop-filter: blur(6px); }
.lots__lost p { max-width: 34ch; color: var(--ink-2); }
.lots__stage.is-lost .lots__lost { display: flex; }
.legend { position: absolute; left: 18px; bottom: 16px; display: flex; gap: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(247, 243, 236, .85); backdrop-filter: blur(8px); font-size: 12px; pointer-events: none; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.dot--dispo { background: var(--olive); }
.dot--reserve { background: var(--amber); }
.dot--vendu { background: var(--grey); }

.lots__panel { display: flex; flex-direction: column; gap: 18px; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s, color .25s, box-shadow .25s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
.chip.is-on { background: var(--ink); color: var(--paper); box-shadow: none; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--sand-2); position: relative; cursor: pointer; transition: background-color .25s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.switch input:checked { background: var(--olive); }
.switch input:checked::after { transform: translateX(16px); }

.floors { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.floor-btn { height: 50px; border-radius: 10px; background: var(--sand); font-size: 14px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.1; transition: background-color .25s, color .25s; }
.floor-btn small { display: block; font-size: 10px; font-weight: 500; color: var(--ink-2); }
.floor-btn:hover { background: var(--sand-2); }
.floor-btn.is-on { background: var(--ink); color: var(--paper); }
.floor-btn.is-on small { color: rgba(247, 243, 236, .7); }

.lot-list { display: flex; flex-direction: column; gap: 8px; }
.lot {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px;
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--sand); text-align: left;
  transition: background-color .25s, transform .4s var(--ease), box-shadow .25s;
}
.lot:hover, .lot.is-hover { background: #fff; box-shadow: 0 10px 30px -18px rgba(31, 27, 22, .4); transform: translateX(4px); }
.lot__type { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; }
.lot__meta { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.lot__meta b { color: var(--ink); font-weight: 600; }
.lot__price { text-align: right; font-size: 14px; font-weight: 700; white-space: nowrap; }
.lot__price small { display: block; font-weight: 500; font-size: 11.5px; }
.lot[data-status="dispo"] .lot__price small { color: var(--olive); }
.lot[data-status="reserve"] .lot__price small { color: var(--amber); }
.lot[data-status="vendu"] { opacity: .55; }
.lot[data-status="vendu"] .lot__price small { color: var(--grey); }
.lots__count { font-size: 12.5px; color: var(--ink-2); }

/* Prestations */
.presta__head { margin-bottom: 56px; }
.presta__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.presta__grid li { padding: 30px 26px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .3s; }
.presta__grid li:hover { background: var(--paper); }
.presta__grid svg { width: 40px; height: 40px; fill: none; stroke: var(--terra); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 26px; }
.presta__grid h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.1; margin-bottom: 8px; }
.presta__grid p { font-size: 14px; color: var(--ink-2); }

/* Quartier */
.quartier { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(40px, 7vw, 100px); align-items: center; background: var(--paper); }
.poi { margin-top: 36px; border-top: 1px solid var(--line); }
.poi li { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.poi b { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1; }
.map { position: relative; border-radius: 18px; background: var(--sand); padding: 10px; }
.map svg { width: 100%; height: auto; display: block; }
.map__coast { fill: none; stroke: #7fa4ad; stroke-width: 1.5; }
.map__roads path { fill: none; stroke: #cdbfa8; stroke-width: 7; stroke-linecap: round; }
.map__roads path:nth-child(odd) { stroke-width: 4; }
.map__poi circle { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.5; }
.map__poi text, .map__home text, .map__label { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--ink-2); }
.map__label { font-family: var(--serif); font-style: italic; font-size: 20px; font-weight: 500; fill: #6e8f97; }
.map__home circle { fill: var(--terra); }
.map__home text { fill: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 500; }
.map__pulse { opacity: .35; transform-origin: center; transform-box: fill-box; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }
.map__north path { fill: var(--ink-2); }
.map__north text { font-family: var(--sans); font-size: 12px; font-weight: 700; fill: var(--ink-2); text-anchor: middle; }
.map__caption { position: absolute; right: 20px; bottom: 16px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

/* Financement */
.finance__head { margin-bottom: 52px; }
.finance__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.sim, .sim-out { padding: clamp(24px, 3vw, 40px); border-radius: 18px; }
.sim { background: var(--paper); display: flex; flex-direction: column; gap: 30px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field > span { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.field > span b { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--terra); line-height: 1; }
.field__money { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.field__money input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--serif); font-size: clamp(32px, 3.4vw, 46px); font-weight: 500; outline: none; }
.field__money em { font-style: normal; font-weight: 700; }
.sim__centimes { font-size: 13px; color: var(--ink-2); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--sand-2); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--terra); border: 4px solid var(--paper); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--terra); border: 4px solid var(--paper); cursor: pointer; }
.sim-out { background: var(--ink); color: var(--paper); }
.sim-out__label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.sim-out__value { font-family: var(--serif); font-size: clamp(48px, 5.5vw, 84px); font-weight: 500; line-height: 1; margin: 10px 0 26px; }
.sim-out__details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 34px; padding-bottom: 26px; border-bottom: 1px solid rgba(247, 243, 236, .15); }
.sim-out__details dt { font-size: 12.5px; opacity: .65; }
.sim-out__details dd { margin: 4px 0 0; font-weight: 700; }
.sim-out h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin-bottom: 14px; }
.tranches li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(247, 243, 236, .12); font-size: 14px; }
.tranches li span::before { content: counter(t) "."; counter-increment: t; margin-right: 10px; opacity: .5; }
.tranches { counter-reset: t; }
.sim-out .mono-note { color: rgba(247, 243, 236, .6); }

/* Rendez-vous */
.visite { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); align-items: center; overflow: hidden; color: var(--paper); background: #1f1b16; }
.visite__bg { position: absolute; inset: 0; }
.visite__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.visite__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 17, 12, .85) 0%, rgba(22, 17, 12, .35) 100%); }
.visite > *:not(.visite__bg) { position: relative; z-index: 1; }
.visite .eyebrow { color: rgba(247, 243, 236, .75); }
.visite h2 em { color: #f3c9a3; }
.visite__form { color: var(--ink); }
.visite__text > p:last-child { margin-top: 22px; color: rgba(247, 243, 236, .82); max-width: 36ch; }
.visite__form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: clamp(24px, 3vw, 40px); border-radius: 18px; background: var(--paper); }
.visite__form input, .visite__form select { height: 46px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; outline: none; font-size: 16px; transition: border-color .25s; }
.visite__form input:focus, .visite__form select:focus { border-bottom-color: var(--terra); }
.visite__form .btn { grid-column: 1 / -1; justify-self: start; }
.visite__ok { grid-column: 1 / -1; font-size: 14px; color: var(--olive); font-weight: 600; min-height: 1.6em; }

/* Pied de page */
.footer { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; padding: 60px var(--g) 40px; background: var(--ink); color: var(--paper); }
.footer__brand p { max-width: 52ch; margin-top: 10px; font-size: 13px; opacity: .6; }
.dm-sign { display: inline-flex; align-items: center; gap: .6em; font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: inherit; opacity: .72; transition: opacity .3s; }
.dm-sign:hover { opacity: 1; }
.dm-sign__dot { width: 6px; height: 6px; border-radius: 50%; background: #ff4a1c; flex: none; }
.dm-sign__w { transition: letter-spacing .6s var(--ease); }
.dm-sign:hover .dm-sign__w { letter-spacing: .32em; }

/* Fiche appartement */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; overflow: hidden; /* la fiche cachée à droite ne doit pas élargir la page sur iPhone */ }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(31, 27, 22, .35); backdrop-filter: blur(4px); opacity: 0; transition: opacity .5s var(--ease); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(1240px, 96vw);
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr);
  background: var(--paper);
  transform: translateX(100%); transition: transform .8s var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { position: absolute; z-index: 4; top: 18px; right: 20px; width: 42px; height: 42px; border-radius: 50%; font-size: 26px; line-height: 1; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.drawer__title { font-family: var(--serif); font-size: 46px; font-weight: 500; line-height: 1; }
.drawer__status { font-size: 13px; font-weight: 700; }
.drawer__status[data-status="dispo"] { color: var(--olive); }
.drawer__status[data-status="reserve"] { color: var(--amber); }
.drawer__status[data-status="vendu"] { color: var(--grey); }
.drawer__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 6px 0; }
.drawer__facts div { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.drawer__facts dt { font-size: 12px; color: var(--ink-2); }
.drawer__facts dd { margin: 2px 0 0; font-weight: 700; }
.drawer__price { font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; margin-top: 8px; }
.drawer__centimes { font-size: 13px; color: var(--ink-2); }
.drawer__ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* L'appartement en 3D */
.apt__view { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #fbf9f5 0%, #ece6db 72%, #e2dacd 100%); }
.apt__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.apt__canvas:active { cursor: grabbing; }
.apt__labels { position: absolute; inset: 0; pointer-events: none; transition: opacity .4s; }
.apt__labels.is-off, .is-photos .apt__labels { opacity: 0; }
.apt-label { position: absolute; left: 0; top: 0; display: grid; padding: 5px 10px 6px; border-radius: 10px; background: rgba(255, 253, 249, .96); box-shadow: 0 0 0 1px rgba(31, 27, 22, .08), 0 8px 18px -12px rgba(31, 27, 22, .5); white-space: nowrap; line-height: 1.2; will-change: transform; }
.apt-label b { font-size: 13px; font-weight: 700; color: var(--ink); }
.apt-label span { font-size: 11.5px; color: var(--ink-2); }
.apt-label--terr { background: #e9dcc6; }
.apt-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.apt-lines path { fill: none; stroke: rgba(31, 27, 22, .5); stroke-width: 1; }
.apt-lines circle { fill: var(--terra); stroke: #fff; stroke-width: 1.5; }
.apt__bar { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.apt__bar > * { pointer-events: auto; }
.apt__tabs { display: flex; gap: 3px; padding: 4px; border-radius: 999px; background: rgba(247, 243, 236, .9); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line); }
.apt__tabs button { height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background-color .25s, color .25s; }
.apt__tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.apt__sun { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 999px; background: rgba(247, 243, 236, .9); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: opacity .3s; }
.apt__sun input { width: 130px; accent-color: var(--terra); }
.apt__sun b { min-width: 58px; font-variant-numeric: tabular-nums; color: var(--ink); }
.is-photos .apt__sun { opacity: 0; pointer-events: none; }
.apt__hint { position: absolute; left: 20px; top: 20px; padding: 6px 12px; border-radius: 999px; background: rgba(247, 243, 236, .85); font-size: 12px; color: var(--ink-2); pointer-events: none; }
.is-photos .apt__hint { opacity: 0; }
.apt__photos { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: 1fr 1fr auto; gap: 8px; padding: 70px 18px 74px; background: var(--paper); overflow: hidden; }
.apt__photos[hidden] { display: none; }
.apt__photos figure { position: relative; margin: 0; min-height: 0; border-radius: 14px; overflow: hidden; }
.apt__photos img { width: 100%; height: 100%; object-fit: cover; }
.apt__photos figcaption { position: absolute; left: 12px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(247, 243, 236, .9); font-size: 12px; font-weight: 600; }
.apt__photos p { font-size: 12px; color: var(--ink-2); }
.apt__info { overflow-y: auto; padding: 40px clamp(22px, 2.6vw, 38px) 34px; display: flex; flex-direction: column; gap: 14px; }
.apt__where { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--sand); }
.apt__where svg { width: 100%; height: auto; }
.apt__where p { display: grid; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.apt__where p b { color: var(--ink); font-size: 14px; }
.w-roof { fill: var(--sand-2); }
.w-c { fill: #fbf8f2; stroke: rgba(31, 27, 22, .12); stroke-width: .6; }
.w-c.is-me { fill: var(--terra); stroke: none; animation: w-pulse 1.6s ease-in-out infinite; }
@keyframes w-pulse { 50% { opacity: .55; } }
.apt__back { align-self: flex-start; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.no-3d .apt__view { display: none; }
.no-3d .drawer__panel { grid-template-columns: 1fr; width: min(520px, 100%); }

/* Les types d'appartements */
.types { display: grid; grid-template-columns: .8fr repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.type { display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; gap: 2px; padding: 10px 10px 14px; border-radius: 18px; text-align: left; background: var(--white, #fffdf9); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, transform .4s var(--ease), background-color .3s; }
.type:hover { transform: translateY(-3px); }
.type.is-on { box-shadow: inset 0 0 0 2px var(--ink); }
.type__img { display: block; aspect-ratio: 16 / 11; margin-bottom: 8px; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #fbf9f5, #ece6db); }
.type__img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s, transform 1.2s var(--ease); }
.has-thumb .type__img img { opacity: 1; transform: none; }
.type b { padding: 0 4px; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; }
.type__meta { padding: 0 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.type small { padding: 0 4px; margin-top: 6px; align-self: end; font-size: 12px; font-weight: 700; color: var(--olive); }
.type--all { position: relative; overflow: hidden; align-content: end; justify-items: start; gap: 8px; padding: 18px; background: var(--ink); color: var(--paper); }
.type--all > :not(.type__bg) { position: relative; z-index: 2; }
.type__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; opacity: .5; transition: opacity .4s, transform 1.2s var(--ease); }
.type--all::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(31, 27, 22, .92), rgba(31, 27, 22, .2)); }
.type--all:hover .type__bg { transform: scale(1.05); opacity: .62; }
.type--all.is-on { box-shadow: inset 0 0 0 2px var(--terra); }
.type--all b { font-size: 26px; }
.type--all small { color: rgba(247, 243, 236, .72); margin: 0; }
.type__all svg { width: 34px; height: 34px; fill: none; stroke: var(--terra); stroke-width: 1.6; }
.filters__t { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.type-sum { display: none; }
.lot.is-selected { background: #fff; box-shadow: inset 0 0 0 2px var(--terra); }

/* Responsive */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .presta__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { min-height: calc(100svh - 64px); padding-bottom: 70px; }
  .hero__media img { object-position: 30% 50%; }
  .hero__facts { position: relative; right: auto; bottom: auto; margin-top: 28px; grid-template-columns: repeat(4, auto); gap: 18px; padding: 16px 18px; width: fit-content; }
  .hero__facts b { font-size: 26px; }
  .hero__scroll { display: none; }
  .ambiance { top: 14px; }
  .ambiance button { height: 30px; padding: 0 12px; font-size: 12px; }
  .ambiance__time { font-size: 10px; }
  .projet { grid-template-columns: 1fr; }
  .projet__photo { aspect-ratio: 4 / 5; }
  .galerie__grid { grid-template-columns: 1fr; grid-auto-rows: 62vw; }
  .shot--wide { grid-column: auto; }
  .projet, .quartier, .finance__grid, .visite { grid-template-columns: minmax(0, 1fr); }
  .lots__grid { grid-template-columns: 1fr; }
  .lots__stage { position: relative; top: 0; height: 62vh; min-height: 380px; }
  /* Téléphone : une barre « Tous · F3 · F4 · F5 » qui reste en haut, le résumé du type, puis la maquette et la liste. */
  .types { position: sticky; top: 76px; z-index: 20; display: flex; gap: 6px; margin: 0 calc(var(--g) * -1) 0; padding: 10px var(--g); background: rgba(247, 243, 236, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .types.reveal { opacity: 1; transform: none; }
  .type, .type--all { flex: 1; display: flex; align-items: center; justify-content: center; grid-template-rows: none; min-height: 40px; padding: 0 6px; border-radius: 999px; background: var(--white, #fffdf9); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transform: none !important; }
  .type--all::before, .type__bg, .type__img, .type__meta, .type small, .type__all { display: none; }
  .type b, .type--all b { padding: 0; font-family: var(--sans); font-size: 14px; font-weight: 700; }
  .type--all b { font-size: 0; }
  .type--all b::after { content: "Tous"; font-size: 14px; }
  .type.is-on, .type--all.is-on { background: var(--ink); color: var(--paper); box-shadow: none; }
  .type-sum { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; margin: 14px 0 16px; }
  .type-sum img, .type-sum__all { width: 96px; height: 68px; border-radius: 12px; object-fit: cover; background: radial-gradient(120% 90% at 50% 30%, #fbf9f5, #ece6db); }
  .type-sum__all { display: grid; place-items: center; }
  .type-sum__all svg { width: 34px; height: 34px; fill: none; stroke: var(--terra); stroke-width: 1.6; }
  .type-sum > span:last-child { display: grid; gap: 1px; }
  .type-sum b { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.05; }
  .type-sum small { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
  .type-sum em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--olive); }
  .lots__stage { height: 50vh; min-height: 340px; }
  .floors, .filters__t { display: none; }
  .filters { justify-content: flex-end; }
  .lot-floor { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 2px 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .lot-floor:first-child { margin-top: 0; }
  .lot-floor b { font-family: var(--serif); font-size: 22px; font-weight: 500; }
  .lot-floor b sup { font-size: .55em; }
  .lot-floor span { font-size: 12.5px; color: var(--ink-2); }
  .drawer__panel { width: 100%; grid-template-columns: 1fr; grid-template-rows: 62vh minmax(0, 1fr); }
  .apt__info { padding: 22px 18px 30px; }
  .drawer__title { font-size: 36px; }
  .apt__sun input { width: 90px; }
  .apt__hint { display: none; }
  .apt-label { padding: 4px 8px 5px; border-radius: 8px; }
  .apt-label b { font-size: 12px; }
  .apt-label span { font-size: 10.5px; }
  .floors { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .nav { height: 64px; }
  .types { top: 64px; }
  .nav__cta { height: 40px; padding: 0 14px; font-size: 12px; }
  .brand__name { font-size: 22px; }
  .presta__grid { grid-template-columns: 1fr; }
  .visite__form { grid-template-columns: 1fr; }
  .lot { grid-template-columns: 44px 1fr; }
  .apt__bar { left: 10px; right: 10px; bottom: 10px; }
  .apt__tabs button { padding: 0 12px; }
  .apt__sun { padding: 0 10px; }
  .apt__sun span { display: none; }
  .lot__price { grid-column: 2; text-align: left; }
  .sim-out__details { grid-template-columns: 1fr; }
  .demo-bar { flex-wrap: nowrap; font-size: 11.5px; padding: 7px 14px; }
  .demo-bar > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .demo-bar__links { flex: none; }
}

/* Repli si la 3D n'est pas disponible */
.no-webgl::after {
  content: "Maquette 3D indisponible sur cet appareil";
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 24px; color: var(--ink-2);
}
.floor-btn sup { font-size: .6em; }

/* ---------- Liaison avec le back-office du promoteur ---------- */
.demo-bar__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.lot[data-status="option"] .lot__price small { color: var(--amber); }
.drawer__status[data-status="option"] { color: var(--amber); }
.visite__demo { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); opacity: .8; margin-top: -10px; }
.track {
  position: fixed; left: 16px; bottom: 16px; z-index: 70;
  display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 32px));
  padding: 10px 10px 10px 14px; border-radius: 16px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px -24px rgba(31, 27, 22, .5);
  animation: track-in .7s var(--ease);
}
.track[hidden] { display: none; }
@keyframes track-in { from { transform: translateY(140%); } }
.track__mark { width: 30px; height: 30px; flex: none; color: var(--terra); }
.track__msg { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.track[data-stage="visite"], .track[data-stage="option"], .track[data-stage="signe"] { box-shadow: 0 0 0 1.5px var(--olive), 0 24px 60px -24px rgba(31, 27, 22, .5); animation: track-ok .9s var(--ease); }
.track[data-stage="visite"] .track__mark, .track[data-stage="option"] .track__mark, .track[data-stage="signe"] .track__mark { color: var(--olive); }
@keyframes track-ok { 40% { transform: scale(1.04); } }
.track__link { font-size: 13px; font-weight: 600; color: var(--terra); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.track__x { width: 30px; height: 30px; flex: none; border-radius: 50%; font-size: 18px; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 640px) {
  .track { left: 12px; right: 12px; bottom: 12px; flex-wrap: wrap; }
  .track__msg { flex: 1; min-width: 60%; }
}
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }
