/* BELVEDERE : mise en page et composants. */
*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #2c2c29 var(--ground);
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: #2c2c29; border: 2px solid var(--ground); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--tungsten); }
::selection { background: var(--tungsten); color: var(--tungsten-ink); }

body {
  margin: 0;
  background: var(--ground);
  color: var(--print);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--tungsten);
}

/* Grain de tirage, fixe, sans interaction. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -120px; z-index: 100;
  padding: 10px 16px; background: var(--tungsten); color: var(--tungsten-ink);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -48px; z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 6, 6, .6), transparent);
  transition: opacity .5s var(--ease);
}
.nav.is-solid { background: var(--ground); box-shadow: 0 1px 0 var(--hair); }
.nav.is-solid::before { opacity: 0; }
.nav__mark {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.5rem; line-height: 1; letter-spacing: -.02em;
  text-decoration: none;
}

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 46px; padding: .85em 1.4em;
  font: 600 .86rem/1 var(--font-text); letter-spacing: .02em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { cursor: progress; opacity: .7; }
.btn--tungsten { background: var(--tungsten); color: var(--tungsten-ink); }
.btn--tungsten:hover { background: var(--tungsten-hi); }
.btn--line { background: rgba(8, 8, 8, .25); color: var(--print); border-color: rgba(233, 230, 223, .42); }
.btn--line:hover { border-color: var(--tungsten); color: var(--tungsten-hi); }

/* ---------- actes : la visite pilotee au scroll ---------- */
.act { position: relative; height: var(--act-length, 500vh); }
.act__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  overflow: hidden; isolation: isolate;
  background: #070707;
}
.act__media { position: absolute; inset: 0; }
.act__frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transform: scale(1.02);
  will-change: opacity, transform;
}
.act__frame:first-child { opacity: 1; }
.act__video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s var(--ease);
}
.act.has-video .act__video { opacity: 1; }
.act.has-video .act__frame { visibility: hidden; }

.act__vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 42%, transparent 52%, rgba(6, 6, 6, .72) 100%),
    linear-gradient(180deg, rgba(6, 6, 6, .42) 0%, transparent 20%, transparent 50%, rgba(6, 6, 6, .85) 100%);
}

/* Le tirage monte dans le bac : premiere image a l'ouverture. */
@keyframes print {
  0% { filter: brightness(0) contrast(1.6) grayscale(1); }
  55% { filter: brightness(.85) contrast(1.2) grayscale(.5); }
  100% { filter: none; }
}
@keyframes develop {
  from { opacity: 0; filter: blur(10px); transform: translateY(10px); }
  to { opacity: 1; filter: none; transform: none; }
}
.act--one .act__frame:first-child { animation: print 2.6s var(--ease) both; }

.act__hero {
  position: absolute; z-index: 3;
  left: var(--gutter); bottom: clamp(40px, 9vh, 96px);
  max-width: min(58rem, 60vw);
  transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease);
}
.act__hero > * { animation: develop 1.1s var(--ease) both; }
.act__hero > :nth-child(1) { animation-delay: .9s; }
.act__hero > :nth-child(2) { animation-delay: 1.1s; }
.act__hero > :nth-child(3) { animation-delay: 1.25s; }
.act__hero.is-off { opacity: 0; filter: blur(8px); transform: translateY(-12px); pointer-events: none; }

.hero__title {
  margin: 0 0 .4em;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.7rem, 6.2vw, 5.6rem);
  line-height: 1; letter-spacing: -.035em;
  padding-bottom: .06em;
  text-wrap: balance;
}
.hero__meta { margin: 0 0 1.7rem; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--print-dim); }
.hero__meta .num { color: var(--print); font-weight: 600; }

.act__captions {
  position: absolute; z-index: 4;
  left: var(--gutter); bottom: clamp(40px, 9vh, 96px);
  width: min(36rem, calc(100% - 2 * var(--gutter)));
  margin: 0; padding: 0; list-style: none;
  pointer-events: none;
}
.act__caption {
  position: absolute; left: 0; bottom: 0; width: 100%;
  display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; align-items: baseline;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.55rem, 2.7vw, 2.45rem);
  line-height: 1.12; letter-spacing: -.02em;
  opacity: 0; filter: blur(8px); transform: translateY(10px);
  transition: opacity .6s var(--ease), filter .6s var(--ease), transform .6s var(--ease);
}
.act__caption.is-on { opacity: 1; filter: none; transform: none; }
.act__num {
  font-family: var(--font-text); font-weight: 600;
  font-size: .8rem; letter-spacing: .04em;
  color: var(--tungsten);
  font-variant-numeric: tabular-nums;
}

/* ---------- planche contact : suit et pilote la visite ---------- */
.contact {
  position: absolute; z-index: 5;
  right: var(--gutter); bottom: clamp(40px, 9vh, 96px);
  padding: 24px 12px 12px;
  background: rgba(8, 8, 8, .78);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  animation: develop 1s var(--ease) 1.5s both;
}
.contact__strip {
  position: relative;
  display: flex; gap: 6px;
  margin: 0; padding: 0; list-style: none;
}
.contact__frame {
  position: relative; display: block;
  width: clamp(58px, 6.2vw, 104px); aspect-ratio: 3 / 2;
  padding: 0; border: 0; background: #000; cursor: pointer;
}
.contact__frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.7) brightness(.5);
  transition: filter .5s var(--ease);
}
.contact__frame:hover img, .contact__frame.is-active img { filter: none; }
.contact__n {
  position: absolute; left: 2px; top: -17px;
  font: 600 .66rem/1 var(--font-text);
  color: var(--print-faint);
  font-variant-numeric: tabular-nums;
  transition: color .4s var(--ease);
}
.contact__frame.is-active .contact__n { color: var(--tungsten); }
.contact__mark-slot { position: absolute; inset: 0; pointer-events: none; }
.contact__mark {
  position: absolute; left: 0; top: 0;
  width: 0; height: 0;
  overflow: visible; pointer-events: none;
  transition: transform .55s var(--ease);
}
.contact__mark path {
  fill: none; stroke: var(--tungsten); stroke-width: 2.2;
  stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .9s var(--ease) .2s;
}
.contact__mark.is-drawn path { stroke-dashoffset: 0; }

/* ---------- la villa : les faits ---------- */
.villa {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px); row-gap: 40px;
  align-items: end;
  padding: var(--section) var(--gutter);
}
.villa__plate { grid-column: 1 / span 7; margin: 0; }
.villa__plate img { width: 100%; height: auto; aspect-ratio: 1600 / 948; object-fit: cover; background: var(--ground-2); }
.villa__text { grid-column: 9 / span 4; padding-bottom: 2.6rem; }

.section-title {
  margin: 0 0 1.2rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  line-height: 1.04; letter-spacing: -.03em;
  text-wrap: balance;
}
.lede { margin: 0 0 2.4rem; max-width: 42ch; color: var(--print-dim); }

.facts {
  display: grid; grid-template-columns: max-content 1fr;
  column-gap: 1.6rem; row-gap: .9rem;
  margin: 0; padding-top: 1.4rem;
  border-top: 1px solid var(--hair);
}
.facts dt { color: var(--print-dim); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.facts__price { color: var(--tungsten); font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1.2; }

/* ---------- planches ---------- */
.plates { padding: var(--section) var(--gutter); }
.plates__head { max-width: 44rem; margin: 0 0 clamp(48px, 9vh, 104px); }
.plates__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(18px, 2.4vw, 40px); row-gap: clamp(48px, 8vh, 96px);
  align-items: start;
}
.plate { margin: 0; }
.plate img { width: 100%; height: auto; aspect-ratio: 1600 / 948; object-fit: cover; background: var(--ground-2); }
.plate figcaption { margin-top: .8rem; font-size: .9rem; color: var(--print-dim); }
.plate:nth-child(1) { grid-column: 1 / span 8; }
.plate:nth-child(2) { grid-column: 9 / span 4; margin-top: clamp(40px, 16vh, 200px); }
.plate:nth-child(3) { grid-column: 2 / span 5; }
.plate:nth-child(4) { grid-column: 7 / span 6; margin-top: clamp(30px, 11vh, 140px); }
.plate:nth-child(5) { grid-column: 1 / -1; }
.plate:nth-child(6) { grid-column: 1 / span 4; }
.plate:nth-child(7) { grid-column: 5 / span 4; margin-top: clamp(40px, 13vh, 160px); }
.plate:nth-child(8) { grid-column: 9 / span 4; }

/* Revelation au developpement : visible par defaut sans JS. */
.js .develop img { filter: brightness(.1) grayscale(1) contrast(1.3); transition: filter 1.8s var(--ease); }
.js .develop.is-developed img { filter: none; }
.js .develop-text { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .develop-text.is-developed { opacity: 1; transform: none; }

/* ---------- visite privee ---------- */
.visite {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px); row-gap: 48px;
  padding: var(--section) var(--gutter) clamp(72px, 12vh, 140px);
  border-top: 1px solid var(--hair);
}
.visite__intro { grid-column: 1 / span 5; }
.visite__form { grid-column: 7 / span 6; }
.agency { margin-top: 2.6rem; font-style: normal; color: var(--print-dim); font-size: .95rem; line-height: 1.7; }
.agency strong {
  display: block; margin-bottom: .2rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.6rem; letter-spacing: -.02em; color: var(--print);
}
.agency a { color: var(--print); }
.agency a:hover { color: var(--tungsten-hi); }

.field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.field label { font-size: .9rem; color: var(--print-dim); }
.field input, .field textarea {
  min-height: 50px; padding: .85rem 1rem;
  font: inherit; color: var(--print);
  background: var(--ground-2);
  border: 1px solid rgba(233, 230, 223, .24); border-radius: var(--radius);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8f8b83; }
.field input:hover, .field textarea:hover { border-color: rgba(233, 230, 223, .42); }
.field input:focus, .field textarea:focus { border-color: var(--tungsten); background: var(--ground-3); }
.field [aria-invalid="true"] { border-color: #e98a78; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: .4rem; }
.form-note { margin: 0; font-size: .92rem; color: var(--print-dim); min-height: 1.5em; }
.form-note.is-success { color: var(--tungsten-hi); }
.form-note.is-error { color: #f0998a; }

/* ---------- pied de page ---------- */
.footer {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px; row-gap: 16px; align-items: baseline;
  padding: 40px var(--gutter) 48px;
  border-top: 1px solid var(--hair);
  color: var(--print-dim); font-size: .88rem;
}
.footer__mark { grid-column: 1 / span 3; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--print); }
.footer__note { grid-column: 4 / span 6; margin: 0; max-width: 64ch; }
.footer__place { grid-column: 10 / span 3; margin: 0; text-align: right; }

/* ---------- sans JS ou mouvement reduit : lecture statique ---------- */
.no-js .act, .act.is-static { height: auto; }
.no-js .act__stage, .act.is-static .act__stage {
  position: relative; height: auto; overflow: visible;
  display: flex; flex-direction: column; background: var(--ground);
}
.no-js .act__hero, .act.is-static .act__hero {
  order: -1; position: relative; left: auto; bottom: auto; max-width: none;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 40px;
}
.no-js .act__media, .act.is-static .act__media {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
}
.no-js .act__frame, .act.is-static .act__frame {
  position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9;
  opacity: 1; transform: none; visibility: visible;
}
.no-js .act__vignette, .act.is-static .act__vignette,
.no-js .contact, .act.is-static .contact,
.no-js .act__video, .act.is-static .act__video { display: none; }
.no-js .act__captions, .act.is-static .act__captions {
  position: relative; left: auto; bottom: auto; width: auto;
  display: grid; gap: 1.4rem; padding: 40px var(--gutter) var(--section);
}
.no-js .act__caption, .act.is-static .act__caption { position: relative; opacity: 1; filter: none; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .act--one .act__frame:first-child, .act__hero > *, .contact { animation: none; }
  .act__caption, .act__hero, .contact__mark, .contact__mark path { transition: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .villa__plate, .villa__text, .visite__intro, .visite__form { grid-column: 1 / -1; }
  .villa__text { padding-bottom: 0; }
  .plate, .plate:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .footer__mark, .footer__note, .footer__place { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 720px) {
  .nav .btn { min-height: 42px; padding: .7em 1em; font-size: .8rem; }
  .act__hero { right: var(--gutter); bottom: 150px; max-width: none; }
  .hero__title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .act__captions { bottom: 150px; }
  .contact {
    left: var(--gutter); right: var(--gutter); bottom: 20px;
    padding: 22px 10px 10px; overflow-x: auto;
  }
  .contact__frame { flex: 0 0 auto; width: 64px; }
  .field-row { grid-template-columns: 1fr; }
  .no-js .act__media, .act.is-static .act__media { grid-template-columns: 1fr; }
}

/* ---------- lisibilite du titre et planche du crepuscule ---------- */
.act__vignette {
  background:
    linear-gradient(90deg, rgba(6, 6, 6, .62) 0%, rgba(6, 6, 6, .26) 34%, transparent 58%),
    radial-gradient(120% 95% at 50% 42%, transparent 52%, rgba(6, 6, 6, .72) 100%),
    linear-gradient(180deg, rgba(6, 6, 6, .42) 0%, transparent 20%, transparent 50%, rgba(6, 6, 6, .85) 100%);
}
.hero__title, .act__caption { text-shadow: 0 2px 28px rgba(0, 0, 0, .45); }
.villa { align-items: stretch; }
.villa__plate { display: flex; }
.villa__plate img { height: 100%; min-height: min(78vh, 660px); aspect-ratio: auto; object-position: 50% 62%; }
.villa__text { align-self: center; padding-bottom: 0; }
@media (max-width: 900px) {
  .villa__plate img { height: auto; min-height: 0; aspect-ratio: 1600 / 948; }
}
.section-title { text-transform: lowercase; }
.field input[type="date"]::-webkit-datetime-edit { color: #8f8b83; }
.field input[type="date"]:focus::-webkit-datetime-edit,
.field input[type="date"].has-value::-webkit-datetime-edit { color: var(--print); }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }

/* ---------- detecteur : interligne des legendes, numeros lisibles, pas de coupe du body ---------- */
.act__caption { line-height: 1.3; }
.contact { padding-top: 26px; }
.contact__n { top: -19px; font-size: .74rem; }

/* ---------- bord de film : rebord perfore et reperes de la planche contact ---------- */
.contact { padding-bottom: 22px; }
.contact::after {
  content: "";
  position: absolute; left: 10px; right: 10px; bottom: 6px; height: 9px;
  background-image: radial-gradient(circle at 7px 4.5px, rgba(233, 230, 223, .32) 2.4px, transparent 2.9px);
  background-size: 16px 9px;
  background-repeat: repeat-x;
  opacity: .75;
  pointer-events: none;
}
.contact__strip::before, .contact__strip::after {
  content: "";
  position: absolute; left: -6px; right: -6px; height: 1px;
  background: rgba(233, 230, 223, .16);
  pointer-events: none;
}
.contact__strip::before { top: -8px; }
.contact__strip::after { bottom: -7px; }

@media (max-width: 720px) {
  .act__vignette {
    background:
      linear-gradient(180deg, rgba(6, 6, 6, .55) 0%, transparent 16%, transparent 34%, rgba(6, 6, 6, .74) 60%, rgba(6, 6, 6, .93) 100%),
      radial-gradient(130% 85% at 50% 38%, transparent 52%, rgba(6, 6, 6, .6) 100%);
  }
}

/* ---------- la maquette : index spatial de la visite ---------- */
.plan { padding: var(--section) var(--gutter); border-top: 1px solid var(--hair); }
.plan__head { max-width: 44rem; margin: 0 0 clamp(36px, 6vh, 72px); }

.maquette {
  position: relative;
  height: clamp(380px, 68vh, 660px);
  overflow: hidden;
  background:
    radial-gradient(120% 78% at 50% 108%, rgba(79, 127, 168, .22), transparent 62%),
    radial-gradient(80% 60% at 50% 20%, rgba(216, 154, 78, .05), transparent 70%),
    linear-gradient(180deg, #08080a 0%, #0b0b0d 58%, #101013 100%);
  border: 1px solid var(--hair);
  isolation: isolate;
}
.maquette__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
.maquette.is-dragging .maquette__canvas { cursor: grabbing; }
.maquette:not(.is-live) .maquette__canvas,
.maquette:not(.is-live) .maquette__aide { display: none; }

/* Reperages : boutons places par projection depuis la scene. */
.maquette__points { position: absolute; inset: 0; pointer-events: none; }
.maquette__point {
  position: absolute; left: 0; top: 0;
  /* Taille fixe : la projection centre le bouton par translate(-50%), une largeur qui
     varie le ferait glisser. Le nom flotte au-dessus, hors du flux. */
  display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0;
  background: rgba(8, 8, 8, .55);
  border: 1px solid transparent; border-radius: 50%;
  color: var(--print);
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  transition: background .35s var(--ease), border-color .35s var(--ease), opacity .35s var(--ease);
}
.maquette__puce {
  position: relative;
  width: 11px; height: 11px; flex: 0 0 auto;
  border: 1.5px solid var(--tungsten); border-radius: 50%;
}
.maquette__puce::after {
  content: ""; position: absolute; inset: -7px;
  border: 1px solid var(--tungsten); border-radius: 50%;
  opacity: 0; transform: scale(.6);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.maquette__nom {
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  padding: 7px 12px;
  background: rgba(8, 8, 8, .82);
  border: 1px solid rgba(216, 154, 78, .45); border-radius: 999px;
  font: 500 .82rem/1 var(--font-text); white-space: nowrap;
  opacity: 0; transform: translate(-50%, 6px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.maquette__point:hover, .maquette__point:focus-visible {
  background: rgba(8, 8, 8, .82);
  border-color: rgba(216, 154, 78, .45);
}
.maquette__point:hover .maquette__nom,
.maquette__point:focus-visible .maquette__nom,
.maquette__point.is-front .maquette__nom { opacity: 1; transform: translate(-50%, 0); }

/* Le plan au centre porte son nom en permanence : c'est lui qu'un clic ouvre. */
.maquette__point.is-front {
  background: rgba(8, 8, 8, .82);
  border-color: rgba(216, 154, 78, .5);
}
.maquette__point.is-front .maquette__puce { background: var(--tungsten); }
.maquette__point:hover .maquette__puce::after,
.maquette__point:focus-visible .maquette__puce::after { opacity: 1; transform: scale(1); }
.maquette__point.is-behind { opacity: 0; pointer-events: none; }

.maquette__aide {
  position: absolute; right: 16px; top: 14px; margin: 0;
  font: 500 .72rem/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase;
  color: var(--print-faint);
  pointer-events: none;
}

/* Sans WebGL : on retombe sur une planche legendee. */
.maquette__repli { margin: 0; height: 100%; }
.maquette__repli img { width: 100%; height: 100%; object-fit: cover; }
.maquette__repli figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem var(--gutter) 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(6, 6, 6, .88));
  font-size: .9rem; color: var(--print-dim);
}
.maquette.is-live .maquette__repli { display: none; }

.plan__legende {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: .6rem clamp(20px, 3vw, 48px);
  margin: 1.6rem 0 0; padding: 0; list-style: none;
  font-size: .92rem; color: var(--print-dim);
}
.plan__legende .num { margin-right: .6rem; color: var(--tungsten); }

@media (max-width: 720px) {
  .maquette { height: clamp(320px, 54vh, 440px); }
  .maquette__nom { font-size: .74rem; padding: 6px 10px; }
  /* Au doigt, pas de survol : seul le tirage au centre porte son nom. */
  .maquette__point:not(.is-front) .maquette__nom { opacity: 0; }
  .maquette__aide { right: 12px; top: 10px; font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  .maquette__point, .maquette__nom, .maquette__puce::after { transition: none; }
}

/* ---------- logo : le porte-a-faux (dalle, verre allume, dalle, trait d'eau) ---------- */
.logo { display: block; flex: 0 0 auto; width: 1.25em; height: 1.25em; }
.nav__mark, .voile__marque, .footer__mark { display: inline-flex; align-items: center; gap: .42em; }

/* ---------- ouverture : le voile de la chambre noire ---------- */
.voile { display: none; }
html.attente .voile {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px var(--gutter) clamp(28px, 6vh, 64px);
  background: #0a0a0a; color: var(--print);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease);
}
html.attente .voile.is-levee { clip-path: inset(0 0 100% 0); }
.voile__tirage { position: absolute; inset: 0; width: 100%; height: 100%; background: #e9e6df; }
.voile__marque, .voile__pied { position: relative; z-index: 1; color: #fff; mix-blend-mode: difference; }
.voile__pied { justify-content: space-between; align-items: center; }
.voile__t { font: 500 .74rem/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.voile__marque { margin: 0; font: 600 1.5rem/1 var(--font-display); letter-spacing: -.02em; }
.voile__pied { display: flex; align-items: flex-end; gap: clamp(16px, 2.4vw, 36px); }
.voile__n {
  font: 600 clamp(4rem, 13vw, 10rem)/.78 var(--font-display);
  letter-spacing: -.045em; font-variant-numeric: tabular-nums;
}
.voile__ligne {
  position: relative; flex: 1; height: 1px; margin-bottom: .7rem;
  background: var(--hair); overflow: hidden;
}
.voile__barre {
  position: absolute; inset: 0; background: var(--tungsten);
  transform: scaleX(0); transform-origin: left center;
}
.voile__lieu {
  margin-bottom: .45rem;
  font: 500 .74rem/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase;
  color: var(--print-dim); white-space: nowrap;
}
/* L'ouverture du heros attend que le voile se leve. */
html.attente:not(.ouvert) .act__hero > *,
html.attente:not(.ouvert) .act--one .act__frame:first-child,
html.attente:not(.ouvert) .contact { animation-play-state: paused; }

/* ---------- titres : les mots montent un par un ---------- */
.section-title.est-decoupe .mot {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: .14em; margin-bottom: -.14em;
}
.section-title.est-decoupe .mot > span {
  display: inline-block; transform: translateY(108%);
  transition: transform 1.05s var(--ease);
}
.section-title.est-decoupe.is-vu .mot > span { transform: none; }

/* ---------- rail de progression des actes : un cran par piece ---------- */
.act__rail {
  position: absolute; z-index: 5;
  left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) + 12px);
  height: 1px; background: rgba(233, 230, 223, .18);
  pointer-events: none;
}
.act__rail::after {
  content: ""; position: absolute; inset: 0;
  background: var(--tungsten);
  transform-origin: left center; transform: scaleX(var(--p, 0));
}
.act__cran {
  position: absolute; top: 50%; z-index: 1;
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border: 1px solid rgba(233, 230, 223, .45); border-radius: 50%;
  background: #0b0b0b;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.act__cran.is-passe { background: var(--tungsten); border-color: var(--tungsten); }
.no-js .act__rail, .act.is-static .act__rail { display: none; }

/* ---- La pose : la villa s'allume zone par zone ---- */
.pose { position: relative; height: 420vh; background: var(--ground); }
.pose__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.pose__base, .pose__z { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.pose__z {
  opacity: 0;
  -webkit-mask-image: radial-gradient(ellipse var(--zs) at var(--zp), #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse var(--zs) at var(--zp), #000 55%, transparent 100%);
}
.pose__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(14,14,14,.86) 0%, rgba(14,14,14,.4) 30%, rgba(14,14,14,0) 48%), linear-gradient(0deg, rgba(14,14,14,.7) 0%, rgba(14,14,14,0) 26%); }
.pose__text { position: absolute; left: var(--gutter, clamp(20px, 4vw, 56px)); top: clamp(96px, 15vh, 150px); width: min(380px, 32vw); }
.pose__text .lede { margin-bottom: 1.6rem; }
.pose__steps { list-style: none; margin: 0; padding: 0; display: grid; }
.pose__s { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .8s cubic-bezier(.16, 1, .3, 1); border-top: 1px solid var(--hair); padding-top: 14px; }
.pose__s.on { opacity: 1; transform: none; }
.pose__s .num { color: var(--tungsten); font-size: .8rem; letter-spacing: .12em; }
.pose__s h3 { margin: 4px 0 6px; font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; color: var(--print); }
.pose__s p { margin: 0; color: var(--print-dim); font-size: .92rem; max-width: 36ch; }
.pose__read { position: absolute; right: var(--gutter, clamp(20px, 4vw, 56px)); bottom: clamp(30px, 7vh, 70px); margin: 0; display: flex; gap: clamp(24px, 4vw, 56px); text-align: right; }
.pose__read dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--print-dim); }
.pose__read dd { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 4rem); line-height: .9; color: var(--print); font-variant-numeric: tabular-nums; }
.pose__read div:last-child dd span { color: var(--tungsten-hi); }
@media (max-width: 760px) {
  .pose__base, .pose__z { object-position: 50% 50%; top: auto; height: 62svh; }
  .pose__veil { background: linear-gradient(180deg, var(--ground) 0%, var(--ground) 38%, rgba(14,14,14,0) 52%); }
  .pose__text { width: auto; right: var(--gutter, 20px); top: 84px; }
  .pose__text .lede { display: none; }
  .pose__read { left: var(--gutter, 20px); right: auto; text-align: left; }
  .pose__read dd { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pose { height: auto; } .pose__stage { position: relative; height: 100svh; }
}
