/* Villa Lumen — démo promotion immobilière (Palm Jumeirah, Dubaï). Mobile d'abord. */
:root {
  --night: #0e0c0a;
  --ink: #1b1713;
  --paper: #f5f0e8;
  --sand: #ece3d5;
  --stone: #d6cab6;
  --muted: #776d61;
  --line: rgba(27, 23, 19, 0.14);
  --gold: #d9b77c;
  --gold-2: #ecd3a2;
  --terra: #b4592f;
  --sea: #3d8e9d;
  --f-display: "Instrument Serif", Georgia, serif;
  --f-ui: "Manrope", "Helvetica Neue", Arial, system-ui, sans-serif;
  --pad: clamp(18px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }
.eyebrow { margin: 0 0 18px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.h2 {
  margin: 0;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.6rem, 10vw, 6rem); line-height: 0.96; letter-spacing: -0.01em;
  text-wrap: balance;
}
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 99px; background: var(--paper); color: var(--night); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border: 0; border-radius: 99px;
  background: var(--gold-2); color: var(--night);
  font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: background 0.3s; pointer-events: auto;
}
.btn:hover { background: #f5e2bc; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.86rem; }
.btn--big { min-height: 58px; width: 100%; font-size: 1rem; }
.link {
  display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 0.92rem; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease);
  pointer-events: auto;
}
.link:hover { background-size: 100% 1px; }

/* ---------- chargement ---------- */
.loader { position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 10px; background: var(--night); }
.loader__mark { margin: 0; font-family: var(--f-display); font-size: clamp(3.4rem, 15vw, 6.5rem); line-height: 1; }
.loader__mark em, .brand em, .footer__brand em { color: var(--gold); }
.loader__place { margin: 0; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(245, 240, 232, 0.6); }
.loader__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: calc(40px + var(--safe-b));
  display: flex; justify-content: space-between; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245, 240, 232, 0.6);
}
.loader__foot b { color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(28px + var(--safe-b)); height: 1px; background: rgba(245, 240, 232, 0.16); }
.loader__bar i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--gold-2); }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) var(--pad) 14px;
  color: var(--paper); transition: color 0.4s;
}
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(10, 8, 6, 0.6), rgba(10, 8, 6, 0)); transition: background 0.4s; }
.nav--light { color: var(--ink); }
.nav--light::before { background: rgba(245, 240, 232, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav--light .btn { background: var(--ink); color: var(--paper); }
.brand { margin-right: auto; font-family: var(--f-display); font-size: 1.55rem; line-height: 1; text-decoration: none; }
.nav__links { display: none; gap: 26px; margin-right: 12px; }
.nav__links a { text-decoration: none; font-size: 0.88rem; font-weight: 500; opacity: 0.8; }
.nav__links a:hover { opacity: 1; }
.demo-tag { padding: 4px 9px; border: 1px solid currentColor; border-radius: 99px; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }

/* ---------- visite ---------- */
.visit { position: relative; height: 1400vh; background: var(--night); }
.visit__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.shots { position: absolute; inset: 0; }
.shot { position: absolute; inset: 0; margin: 0; overflow: hidden; visibility: hidden; background: linear-gradient(160deg, #3b3129, #14110e); }
.shot:first-child { visibility: visible; }
.shot img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 55%; will-change: transform; }
.is-missing { background: linear-gradient(160deg, #6d5a45, #1d1812 70%) !important; }
.is-missing img { visibility: hidden; }
.door {
  position: absolute; top: 26%; left: 24%; right: 24%; bottom: 16%;
  border: 1px solid rgba(236, 211, 162, 0.95); border-bottom: 0; border-radius: 999px 999px 0 0;
  opacity: 0; pointer-events: none;
}
.visit__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 95% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(8, 6, 4, 0.45) 100%),
    linear-gradient(to top, rgba(10, 8, 6, 0.88) 0%, rgba(10, 8, 6, 0.45) 28%, rgba(10, 8, 6, 0) 52%);
}
.visit__ui { position: absolute; inset: 0 0 auto 0; height: 100vh; height: 100svh; pointer-events: none; }

.hero { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(96px + var(--safe-b)); max-width: 900px; }
.hero__eyebrow { color: var(--gold-2); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }
.hero__title {
  margin: 0; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3.2rem, 14vw, 8.4rem); line-height: 0.9; letter-spacing: -0.015em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}
.hero__title em { color: var(--gold-2); }
.hero__lead { max-width: 32rem; margin: 20px 0 0; color: rgba(245, 240, 232, 0.9); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }

.scroll-hint {
  position: absolute; left: 50%; bottom: calc(22px + var(--safe-b)); transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(245, 240, 232, 0.8);
}
.scroll-hint i { position: relative; width: 1px; height: 38px; overflow: hidden; background: rgba(245, 240, 232, 0.2); }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 45%; background: var(--gold-2); animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { from { transform: translateY(-100%); } to { transform: translateY(230%); } }

.rooms { list-style: none; margin: 0; padding: 0; }
.room { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(40px + var(--safe-b)); max-width: 470px; visibility: hidden; opacity: 0; }
.room__n { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; color: var(--gold-2); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.room__n i { font-style: normal; opacity: 0.6; }
.room__t { margin: 8px 0 10px; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, 10.5vw, 4.6rem); line-height: 0.96; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }
.room__d { margin: 0; color: rgba(245, 240, 232, 0.92); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }
.room__m { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.room__m span { padding: 6px 12px; border-radius: 99px; background: rgba(245, 240, 232, 0.14); border: 1px solid rgba(245, 240, 232, 0.24); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.room__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 22px 0 0; }

/* carte « plan » de la pièce */
.plancard {
  position: absolute; right: 14px; top: calc(max(14px, env(safe-area-inset-top)) + 62px);
  width: min(38vw, 140px); padding: 8px 8px 6px;
  border-radius: 16px; border: 1px solid rgba(245, 240, 232, 0.18);
  background: rgba(14, 12, 10, 0.58); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
}
.plancard__head { display: grid; gap: 2px; margin-bottom: 4px; }
.plancard__t { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.plancard__n { font-size: 0.6rem; font-weight: 600; line-height: 1.25; color: rgba(245, 240, 232, 0.88); }
.plancard__views { position: relative; aspect-ratio: 1 / 1; }
.pv { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; }
.pv svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plancard__key { margin-top: 4px; padding-top: 5px; border-top: 1px solid rgba(245, 240, 232, 0.12); }

.plan-svg .pw { fill: none; stroke: #f4ede2; stroke-width: 3.2; stroke-linecap: square; stroke-dasharray: 1; }
.plan-svg .pwin { fill: none; stroke: #9fd3de; stroke-width: 1; stroke-dasharray: 1; }
.plan-svg .pdoor { fill: none; stroke: rgba(244, 237, 226, 0.55); stroke-width: 0.8; stroke-dasharray: 1; }
.plan-svg .pedge { fill: none; stroke: #e7d3a8; stroke-width: 2; stroke-dasharray: 1; }
.plan-svg .pf { fill: none; stroke: rgba(244, 237, 226, 0.7); stroke-width: 0.9; }
.plan-svg .pf--thin { stroke-width: 0.5; opacity: 0.6; }
.plan-svg .pf--dash { stroke-dasharray: 3 2.5; }
.plan-svg .pf--hatch { fill: rgba(159, 211, 222, 0.16); }
.plan-svg .ppool { fill: rgba(63, 169, 184, 0.75); stroke: #9fd3de; stroke-width: 0.8; }
.plan-svg .plbl { font-family: var(--f-ui); font-size: 5.6px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; fill: rgba(244, 237, 226, 0.78); text-anchor: middle; }
.plan-svg .plbl--edge { fill: #e7d3a8; font-size: 5px; }
.plan-svg .plbl--pool { fill: #fff; }
.plan-svg .pdim path { fill: none; stroke: var(--gold); stroke-width: 0.8; stroke-dasharray: 1; }
.plan-svg .pdim text { font-family: var(--f-ui); font-size: 7px; font-weight: 700; fill: var(--gold-2); text-anchor: middle; }
.pcam__cone { fill: rgba(236, 211, 162, 0.32); stroke: rgba(236, 211, 162, 0.7); stroke-width: 0.6; }
.pcam__dot { fill: var(--gold-2); }
.pcam__pulse { fill: none; stroke: var(--gold-2); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
.plot__sea { fill: rgba(63, 142, 157, 0.45); }
.plot__land { fill: rgba(244, 237, 226, 0.06); }

.key-svg { width: 100%; height: auto; display: block; }
.key-svg .kroom { fill: rgba(244, 237, 226, 0.04); stroke: rgba(244, 237, 226, 0.5); stroke-width: 1.6; transition: fill 0.5s; }
.key-svg .kroom.is-on { fill: rgba(217, 183, 124, 0.65); stroke: var(--gold-2); }
.key-svg .kpool { fill: rgba(63, 169, 184, 0.7); }
.key-svg .kbeach { fill: rgba(231, 211, 168, 0.22); }
.key-svg .klbl { display: none; }
.plan-svg .kroom { fill: rgba(244, 237, 226, 0.1); stroke: rgba(244, 237, 226, 0.6); stroke-width: 1.4; }
.plan-svg .kpool { fill: rgba(63, 169, 184, 0.8); }
.plan-svg .kbeach { fill: rgba(231, 211, 168, 0.35); }

.rail { display: none; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(245, 240, 232, 0.12); }
.progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--gold-2); }

/* palm (carte stylisée) */
.palm-svg { width: 100%; height: 100%; overflow: visible; }
.palm__coast { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: 0.5; stroke-dasharray: 1; }
.palm__trunk { fill: none; stroke: var(--gold); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 1; }
.palm__frond { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; opacity: 0.8; }
.palm__frond.is-mark { stroke: var(--terra); opacity: 1; }
.palm__crescent { fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 1; opacity: 0.85; }
.palm__pin circle { fill: var(--terra); }
.palm__pin .palm__pulse { fill: rgba(180, 89, 47, 0.3); transform-box: fill-box; transform-origin: center; animation: pulse 2.2s ease-out infinite; }
.palm__lbl, .palm__pts text { font-family: var(--f-ui); font-size: 12px; font-weight: 700; fill: currentColor; }
.palm__sea { font-family: var(--f-display); font-style: italic; font-size: 24px; fill: var(--sea); text-anchor: middle; }
.palm__route { fill: none; stroke: var(--terra); stroke-width: 1.6; stroke-dasharray: 1; }
.palm__pts circle { fill: currentColor; }
@keyframes pulse { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- sections claires ---------- */
.light { background: var(--paper); color: var(--ink); }
.light .eyebrow { color: #976f2f; }

.manifesto { padding-block: clamp(96px, 16vw, 200px) clamp(72px, 10vw, 140px); }
.manifesto__text { margin: 0; max-width: 1120px; font-family: var(--f-display); font-size: clamp(2.1rem, 7vw, 4.8rem); line-height: 1.06; text-wrap: pretty; }
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 20px; margin: clamp(56px, 9vw, 110px) 0 0; padding-top: 34px; border-top: 1px solid var(--line); }
.figures dt { font-family: var(--f-display); font-size: clamp(3.6rem, 13vw, 6.8rem); line-height: 0.88; font-variant-numeric: tabular-nums; }
.figures dt small { font-size: 0.4em; margin-left: 4px; }
.figures dd { margin: 10px 0 0; color: var(--muted); font-size: 0.92rem; max-width: 14rem; }

/* villas (défilement horizontal) */
.types { position: relative; }
.types__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 4vh, 44px); overflow: hidden; }
.types__head .h2 { font-size: clamp(2.4rem, 9vw, 5.2rem); max-width: 12ch; }
.types__track { display: flex; gap: 16px; padding-inline: var(--pad); width: max-content; will-change: transform; }
.type { flex: 0 0 min(80vw, 460px); display: grid; grid-template-rows: auto 1fr; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -40px rgba(40, 28, 16, 0.4); }
.type__img { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.type__img img { width: 116%; max-width: none; height: 100%; object-fit: cover; margin-left: -8%; }
.type__body { display: grid; gap: 4px; padding: 20px 22px 24px; }
.type__k { margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #976f2f; }
.type__s { margin: 2px 0 0; font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.type__d { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }
.type__p { margin: 12px 0 2px; font-size: 0.82rem; font-weight: 600; }
.type--ph { background: var(--ink); color: var(--paper); }
.type--ph .type__d { color: rgba(245, 240, 232, 0.7); }
.type--ph .type__k { color: var(--gold-2); }
.types--static .types__pin { position: static; height: auto; padding-block: 80px; }
.types--static .types__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; }
.types--static .type { scroll-snap-align: start; }

/* plan */
.plan { padding-block: clamp(90px, 12vw, 160px); }
.plan__grid { display: grid; gap: 40px; }
.plan__lead { max-width: 30rem; margin: 22px 0 0; color: var(--muted); }
.plan__list { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line); }
.plan__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); transition: background 0.3s, padding 0.4s var(--ease); }
.plan__list li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.plan__list li.is-on { background: rgba(217, 183, 124, 0.2); padding-inline: 12px; }
.plan__figure { margin: 0; display: grid; gap: 12px; }
.plan__figure figcaption, .palm-map figcaption { font-size: 0.76rem; color: var(--muted); }
#plan-big .key-svg .kroom { fill: rgba(27, 23, 19, 0.02); stroke: var(--ink); stroke-width: 2.4; }
#plan-big .key-svg .kroom.is-on { fill: rgba(217, 183, 124, 0.45); }
#plan-big .key-svg .kbeach { fill: rgba(217, 183, 124, 0.3); }
#plan-big .key-svg .klbl { display: block; font-family: var(--f-ui); font-size: 7.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink); text-anchor: middle; }
#plan-big .key-svg .klbl--sea { fill: var(--sea); font-size: 6.5px; }

/* prestations : cartes photo empilées */
.features { padding-block: clamp(90px, 12vw, 160px) clamp(60px, 8vw, 120px); background: var(--night); }
.features__head { margin-bottom: 44px; }
.features__head .h2 { max-width: 15ch; }
.cards { display: grid; gap: 18px; }
.card {
  --shade: 0;
  position: sticky; top: calc(80px + var(--i, 0) * 12px);
  display: grid; grid-template-rows: auto 1fr;
  border-radius: 26px; overflow: hidden;
  background: var(--bg); color: var(--fg); transform-origin: 50% 0;
}
.card::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--shade); pointer-events: none; }
.card__img { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: rgba(0, 0, 0, 0.2); }
.card__img img { width: 100%; height: 118%; object-fit: cover; }
.card__body { display: grid; align-content: end; padding: 22px 24px 28px; }
.card__n { font-family: var(--f-display); font-size: 1.1rem; opacity: 0.65; }
.card h3 { margin: 6px 0 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.3rem, 8.6vw, 4.2rem); line-height: 0.96; }
.card p { margin: 12px 0 0; max-width: 30rem; opacity: 0.85; }

/* quartier */
.place { padding-block: clamp(70px, 10vw, 130px) clamp(90px, 12vw, 160px); overflow: hidden; }
.marquee { overflow: hidden; margin-bottom: clamp(60px, 9vw, 110px); }
.marquee__track { display: flex; align-items: center; gap: 0.5em; width: max-content; font-family: var(--f-display); font-size: clamp(3.6rem, 15vw, 9.5rem); line-height: 1.05; white-space: nowrap; }
.marquee__track i { font-style: normal; font-size: 0.35em; color: var(--gold); padding-inline: 0.4em; }
.place__grid { display: grid; gap: 40px; align-items: center; }
.place__lead { max-width: 30rem; margin: 22px 0 0; color: var(--muted); }
.palm-map { margin: 0; display: grid; gap: 10px; color: var(--ink); }
.palm-map svg { border-radius: 22px; background: linear-gradient(#cfe0df, #e4ddd0 88%); padding: 10px; }
.spots { display: grid; gap: 16px; margin-top: 60px; }
.spot figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--stone); }
.spot img { width: 100%; height: 100%; object-fit: cover; }
.spot__t { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 4px 0; }
.spot__t b { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; }
.spot__t span { font-weight: 700; color: var(--terra); }

/* paiement */
.works { padding-block: clamp(80px, 11vw, 150px); border-top: 1px solid var(--line); }
.works .h2 { max-width: 16ch; }
.timeline { position: relative; list-style: none; margin: 54px 0 0; padding: 0 0 0 30px; display: grid; gap: 34px; }
.timeline__line { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline__line i { display: block; width: 100%; height: 100%; background: var(--terra); transform-origin: 50% 0; transform: scaleY(0); }
.step { position: relative; }
.step::before { content: ""; position: absolute; left: -30px; top: 10px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 1px solid var(--stone); z-index: 1; }
.step.is-done::before, .step.is-now::before { background: var(--terra); border-color: var(--terra); }
.step__y { display: block; font-family: var(--f-display); font-size: 3.4rem; line-height: 1; }
.step b { display: block; margin-top: 4px; font-size: 1rem; }
.step p { margin: 4px 0 0; color: var(--muted); font-size: 0.94rem; max-width: 24rem; }
.works__note { margin: 56px 0 0; padding: 18px 20px; border-radius: 16px; background: var(--sand); font-size: 0.92rem; }

/* contact */
.contact { padding-block: clamp(100px, 14vw, 190px); background: var(--night); }
.contact__grid { display: grid; gap: 50px; }
.contact__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 12vw, 7rem); line-height: 0.92; max-width: 12ch; }
.contact__lead { max-width: 28rem; margin: 24px 0 0; color: rgba(245, 240, 232, 0.72); }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245, 240, 232, 0.6); }
.field input, .field select {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(245, 240, 232, 0.28); border-radius: 0;
  background: transparent; font-size: 1.1rem; outline: none; transition: border-color 0.3s; -webkit-appearance: none; appearance: none;
}
.field select { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ecd3a2' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--gold-2); }
.field input::placeholder { color: rgba(245, 240, 232, 0.3); }
.field.is-bad input { border-color: #e2795a; }
.form__ok { margin: 0; padding: 14px 18px; border-radius: 14px; background: rgba(236, 211, 162, 0.12); color: var(--gold-2); font-size: 0.94rem; }

/* pied de page */
.footer { padding-block: 40px calc(40px + var(--safe-b)); border-top: 1px solid rgba(245, 240, 232, 0.1); background: var(--night); color: rgba(245, 240, 232, 0.6); font-size: 0.86rem; }
.footer__grid { display: grid; gap: 14px; }
.footer p { margin: 0; }
.footer__brand { font-family: var(--f-display); font-size: 1.8rem; color: var(--paper); }
.footer__credit a { color: var(--gold-2); }
.credits summary { cursor: pointer; color: rgba(245, 240, 232, 0.8); }
.credits p { margin-top: 10px; font-size: 0.78rem; line-height: 1.8; }
.credits a { color: rgba(245, 240, 232, 0.7); }

/* ---------- écrans larges ---------- */
@media (min-width: 760px) {
  .figures { grid-template-columns: repeat(4, 1fr); }
  .cards { gap: 24px; }
  .card { grid-template-columns: 1.15fr 1fr; grid-template-rows: none; min-height: min(70vh, 540px); }
  .card__img { aspect-ratio: auto; }
  .card__body { padding: 40px 44px 44px; }
  .spots { grid-template-columns: repeat(3, 1fr); }
  .timeline { padding: 34px 0 0; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .timeline__line { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 1px; }
  .timeline__line i { transform-origin: 0 50%; transform: scaleX(0); }
  .step::before { left: 0; top: -34px; }
}
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .hero { bottom: 110px; }
  .room { bottom: 64px; max-width: 540px; }
  .door { top: 22%; left: 38%; right: 38%; bottom: 10%; }
  .plancard { top: 50%; right: calc(var(--pad) + 120px); width: 300px; padding: 16px 16px 12px; transform: translateY(-50%); }
  .plancard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .plancard__t { font-size: 0.64rem; }
  .plancard__n { font-size: 0.8rem; text-align: right; }
  .plancard__key { margin-top: 8px; padding-top: 8px; }
  .plan-svg .plbl { font-size: 5px; }
  .rail { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); display: grid; gap: 4px; pointer-events: auto; }
  .rail button { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 6px 0; border: 0; background: none; cursor: pointer; color: rgba(245, 240, 232, 0.6); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
  .rail button span { order: -1; opacity: 0; transform: translateX(8px); transition: opacity 0.4s, transform 0.4s var(--ease); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
  .rail button i { display: block; width: 18px; height: 1px; background: currentColor; transition: width 0.4s var(--ease); }
  .rail:hover button span, .rail button[aria-current="step"] span { opacity: 1; transform: none; }
  .rail button[aria-current="step"] { color: var(--gold-2); }
  .rail button[aria-current="step"] i { width: 40px; }
  .visit__shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10, 8, 6, 0.55) 0%, rgba(10, 8, 6, 0.18) 34%, rgba(10, 8, 6, 0) 52%); }
  .plan__grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 70px; }
  .place__grid { grid-template-columns: 1fr 1.1fr; gap: 70px; }
  .contact__grid { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 80px; }
  .footer__grid { grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
  .credits { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
