/* ================================================================
   MILOA EXPÉRIENCES — Page d'entrée animée  v2.0 Premium
   ================================================================ */

/* Fond uniforme sur toute la page — body/html alignés sur --e-black */
body, html { background: var(--miloa-black, #030403); }

:root {
  --e-black:      var(--miloa-black, #030403);
  --e-wall:       #0b0b09;
  --e-white:      #f4efe5;
  --e-muted:      rgba(244,239,229,.52);
  --e-gold:       var(--miloa-gold, #d6a84e);
  --e-gold-soft:  #f0cf85;
  --e-gold-glow:  rgba(214,168,78,.12);
  --e-red:        #ff4e35;
  --e-title:      'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --e-body:       'Inter', 'Avenir Next', Arial, sans-serif;
  --e-out:        cubic-bezier(.16,.9,.3,1);
  --e-ui:         cubic-bezier(.2,.8,.25,1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--e-black);
  color: var(--e-white);
  overflow: hidden;
}
button, a { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
a { text-decoration: none; }

/* Visually hidden, screen-reader accessible */
.e-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;
}

/* ── Keyframes ── */
@keyframes e-fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes e-fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes e-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes e-ledGreen {
  0%   { box-shadow: 0 3px 10px rgba(0,0,0,.6), 0 0 0 .5px rgba(255,255,255,.05); background: linear-gradient(155deg, #1e1b16 0%, #0c0a07 100%); }
  50%  { box-shadow: 0 0 20px rgba(80,210,110,.8), 0 0 0 2px rgba(80,210,110,.55); background: linear-gradient(155deg, #0d2010 0%, #06110a 100%); }
  100% { box-shadow: 0 0 14px rgba(80,210,110,.6), 0 0 0 1.5px rgba(80,210,110,.4); background: linear-gradient(155deg, #0d2010 0%, #06110a 100%); }
}
@keyframes e-leverPress {
  0%   { transform: rotateZ(0deg);   }
  42%  { transform: rotateZ(0deg);   }
  62%  { transform: rotateZ(-30deg); }
  100% { transform: rotateZ(-30deg); }
}
@keyframes e-floorPulse {
  0%, 100% { opacity: .38; transform: scaleX(.93); }
  50%       { opacity: .82; transform: scaleX(1.07); }
}
@keyframes e-unlockGlow {
  0%, 100% { opacity: .52; transform: scaleX(1); }
  50%       { opacity: .92; transform: scaleX(1.22); }
}
@keyframes e-beamScan {
  0%  { opacity: 0; transform: translate(-50%,-50%) scaleX(.28) translateY(-90px); }
  22% { opacity: 1; }
  78% { opacity: 1; }
  100%{ opacity: 0; transform: translate(-50%,-50%) scaleX(1.1) translateY(90px); }
}
@keyframes e-cardShimmer {
  0%, 100% { opacity: 1; }
  48%       { opacity: .86; }
}
@keyframes e-doorBreathe {
  0%, 100% { opacity: 1; }
  50%       { opacity: .88; }
}
@keyframes e-keyIdle {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-1.5deg); }
  50%       { transform: translateX(-50%) translateY(-8px) rotate(1.5deg); }
}
@keyframes e-scanPulse {
  0%   { opacity: 0; transform: scale(.65); }
  40%  { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.55); }
}
@keyframes e-ledAmber {
  0%, 100% { background: rgba(210,145,25,.42); box-shadow: 0 0 5px rgba(210,145,25,.28); }
  50%       { background: rgba(245,190,50,.92); box-shadow: 0 0 11px rgba(245,190,50,.72), 0 0 22px rgba(245,190,50,.28); }
}

/* ── Entrée étagée — déclenchée par .is-loaded sur body ── */
body.is-loaded .e-topbar {
  animation: e-fadeDown .72s var(--e-out) 0ms both;
}
body.is-loaded .e-eyebrow {
  animation: e-fadeUp .7s var(--e-ui) 130ms both;
}
body.is-loaded .e-h1 {
  animation: e-fadeUp .95s var(--e-out) 210ms both;
}
body.is-loaded .e-sub {
  animation: e-fadeIn .8s ease 400ms both;
}
body.is-loaded .e-copy--left {
  animation: e-fadeIn .95s ease 480ms both;
}
body.is-loaded .e-doors-stage {
  animation: e-fadeUp 1.05s var(--e-out) 510ms both;
}
body.is-loaded .e-copy--right {
  animation: e-fadeIn .95s ease 560ms both;
}
body.is-loaded .e-footer {
  animation: e-fadeIn .65s ease 740ms both;
}
body.is-loaded .e-door--balneo:not(.is-scanning):not(.is-opening):not(.is-open) {
  animation: e-doorBreathe 5.2s ease-in-out 1.8s infinite;
}
body.is-loaded .e-door--cine:not(.is-scanning):not(.is-opening):not(.is-open) {
  animation: e-doorBreathe 5.2s ease-in-out 2.6s infinite;
}

/* ── Conteneur principal ── */
.entrance {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--e-black);
}

/* Assombrissement bas de page */
.entrance::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 16vh;
  background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

/* Panneaux latéraux */
.entrance__panel {
  position: absolute; top: 0; bottom: 0;
  width: 13.5vw; max-width: 196px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 3;
  pointer-events: none;
}
.entrance__panel--left {
  left: 0;
  background-image: url('/assets/textures/left_black_panel_texture.png');
}
.entrance__panel--right {
  right: 0;
  background-image: url('/assets/textures/right_black_panel_texture.png');
}

/* ── Header ── */
.e-topbar {
  position: absolute; top: 5.6vh; left: 2.7vw; right: 3.9vw;
  display: flex; align-items: flex-start; justify-content: space-between;
  z-index: 20;
}
.e-logo {
  width: 168px; height: auto; display: block;
  opacity: .94;
  transition: opacity .3s ease;
}
.e-logo:hover { opacity: 1; }
.e-topbar > a:focus-visible {
  outline: 2px solid rgba(214,168,78,.65);
  outline-offset: 6px;
  border-radius: 4px;
}

/* Ancre positionnée pour le menu déroulant .e-menu-nav (position:absolute).
   Était un style="position:relative" inline — silencieusement bloqué par
   le CSP (style-src 'self', pas de unsafe-inline), invisible en local
   puisque le serveur de preview n'envoie pas les mêmes en-têtes stricts
   que le vrai serveur de production. */
.e-menu-wrap {
  position: relative;
}

.e-menu-btn {
  width: 68px; height: 68px;
  border: 1px solid rgba(214,168,78,.7) !important;
  border-radius: 50%;
  display: grid; place-content: center; gap: 5.5px;
  opacity: .9;
  touch-action: manipulation;
  transition: opacity .25s ease, border-color .25s ease, transform .35s var(--e-ui);
  position: relative;
}
.e-menu-btn:hover {
  opacity: 1;
  border-color: rgba(214,168,78,.92) !important;
  transform: rotate(90deg);
}
.e-menu-btn span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(244,239,229,.86); border-radius: 99px;
  transition: transform .28s var(--e-ui), opacity .22s ease;
}
.e-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.e-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.e-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.e-menu-btn[aria-expanded="true"] { transform: none; }

.e-menu-nav {
  position: absolute; top: calc(100% + 14px); right: 0;
  background: rgba(8,8,6,.97);
  border: 1px solid rgba(214,168,78,.18);
  border-radius: 14px;
  padding: .8rem 0;
  min-width: 210px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  box-shadow: 0 24px 48px rgba(0,0,0,.62), 0 0 0 .5px rgba(214,168,78,.07);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: opacity .2s ease, transform .22s var(--e-ui), visibility 0s .22s;
}
.e-menu-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity .2s ease, transform .22s var(--e-ui), visibility 0s 0s;
}
.e-menu-nav a {
  padding: 1rem 1.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-family: var(--e-body);
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(244,239,229,.7);
  transition: color .18s ease, transform .2s var(--e-ui);
}
.e-menu-nav a:hover { color: var(--e-gold); transform: translateX(.25rem); }
.e-menu-nav a:focus-visible {
  outline: none;
  color: var(--e-gold);
  background: rgba(214,168,78,.08);
  transform: translateX(.25rem);
}

/* ── Texte hero ── */
.e-hero {
  position: relative; text-align: center;
  padding-top: 8.8vh;
  z-index: 5; pointer-events: none;
}
.e-eyebrow {
  margin: 0 0 20px;
  font-family: var(--e-body);
  font-size: 12px;
  letter-spacing: .42em;
  word-spacing: .3em;
  font-weight: 600;
  color: var(--e-gold);
  line-height: 1.5;
  text-transform: uppercase;
}
.e-h1 {
  margin: 0;
  font-family: var(--e-title);
  font-weight: 400;
  font-size: clamp(46px, 4.3vw, 74px);
  line-height: .9;
  letter-spacing: .04em;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0,0,0,.5), 0 0 60px rgba(255,255,255,.04);
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}
.e-sub {
  margin: 26px 0 0;
  font-family: var(--e-body);
  font-size: 11px;
  line-height: 2;
  letter-spacing: .38em;
  color: var(--e-muted);
  font-weight: 500;
  text-transform: uppercase;
}
.e-sub .mobile-br  { display: none; }
.e-sub__mobile     { display: none; }
.e-sub__desktop    { display: inline; }

/* ── Zone des portes ── */
.e-doors-zone {
  position: absolute;
  left: 11vw; right: 11vw; bottom: 6vh; height: 62vh;
  display: grid;
  grid-template-columns: minmax(130px, 160px) 1fr minmax(140px, 170px);
  align-items: center;
  gap: 16px;
  z-index: 8;
}

.e-doors-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: min(4vw, 72px);
  align-items: end;
  justify-items: center;
  perspective: 1500px;
  width: 100%;
  max-width: 800px;
  justify-self: center;
}

/* ── Porte ── */
.e-door {
  position: relative;
  width: min(22vw, 368px);
  aspect-ratio: 364 / 599;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none;
  background: #040309;
  border-radius: 22px 22px 5px 5px;
  border: 1px solid transparent;
  box-shadow:
    0 32px 60px rgba(0,0,0,.76),
    0 8px 20px rgba(0,0,0,.56),
    inset 0 1px 0 rgba(255,255,255,.07);
  transition: transform .48s var(--e-out), box-shadow .32s ease;
  will-change: transform;
}
.e-door--balneo { border-color: rgba(100,80,50,.60); }
.e-door--cine   { border-color: rgba(100,80,50,.60); }

.e-door:hover:not(.is-open):not(.is-scanning) {
  transform: translateY(-5px);
  box-shadow:
    0 48px 76px rgba(0,0,0,.80),
    0 12px 28px rgba(0,0,0,.62),
    inset 0 1px 0 rgba(255,255,255,.07);
}
.e-door:focus-visible {
  outline: 2px solid rgba(214,168,78,.65);
  outline-offset: 5px;
  border-radius: 3px;
}

/* Feuille de porte — base neutre, surchargée par les variantes */
.e-door::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 14px 14px 2px 2px;
  background: linear-gradient(175deg, #282018 0%, #181008 54%, #221810 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(0,0,0,.55),
    inset 1px 0 0 rgba(255,255,255,.06),
    inset -1px 0 0 rgba(0,0,0,.36);
  transform-origin: 8% 50%;
  transition: transform 1.1s cubic-bezier(.18,.82,.18,1), filter .5s ease;
  backface-visibility: hidden;
  will-change: transform;
  z-index: 3;
  pointer-events: none;
}

/* Balnéo — cannelures chaudes, style hôtel contemporain */
.e-door--balneo::before {
  border-radius: 14px 14px 2px 2px;
  background:
    repeating-linear-gradient(
      to right,
      rgba(0,0,0,.10) 0px,
      rgba(0,0,0,0) 3px,
      rgba(255,255,255,.20) 6px,
      rgba(0,0,0,0) 9px,
      rgba(0,0,0,.10) 12px
    ),
    radial-gradient(ellipse 72% 26% at 62% 2%, rgba(255,240,200,.28) 0%, transparent 72%),
    linear-gradient(176deg, #d8c8ae 0%, #b8a886 54%, #cec0a0 100%);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.32),
    inset 0 -1px 0 rgba(0,0,0,.16),
    inset 1px 0 0 rgba(255,255,255,.22),
    inset -1px 0 0 rgba(0,0,0,.14);
}

/* Ciné — noyer sombre, veinage naturel */
.e-door--cine::before {
  background:
    repeating-linear-gradient(
      to right,
      rgba(0,0,0,.26) 0px,
      rgba(0,0,0,0) 2px,
      rgba(255,255,255,.045) 5px,
      rgba(0,0,0,0) 7px,
      rgba(0,0,0,.26) 9px
    ),
    radial-gradient(ellipse 72% 24% at 65% 3%, rgba(160,100,30,.18) 0%, transparent 68%),
    linear-gradient(175deg, #3e2c14 0%, #221408 54%, #321e0e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    inset 0 -1px 0 rgba(0,0,0,.62),
    inset 1px 0 0 rgba(255,255,255,.05),
    inset -1px 0 0 rgba(0,0,0,.40);
}

.e-door.is-open::before {
  transform: perspective(1000px) rotateY(-74deg);
  filter: brightness(.55) drop-shadow(20px 0 36px rgba(0,0,0,.84));
}

/* Lueur sous la porte */
.e-door__glow {
  position: absolute; left: 6%; right: 6%; bottom: 1.5%; height: 16px;
  border-radius: 50%; z-index: 2; opacity: .52;
  filter: blur(10px);
  animation: e-floorPulse 3.8s ease-in-out infinite;
  transition: opacity .4s ease;
}
.e-door--balneo .e-door__glow { background: var(--e-gold-soft); box-shadow: 0 0 28px var(--e-gold-soft); }
.e-door--cine   .e-door__glow { background: var(--e-red);       box-shadow: 0 0 24px var(--e-red); }
.e-door:hover   .e-door__glow { opacity: .92; }
.e-door.is-scanning .e-door__glow { opacity: 1; animation: e-unlockGlow .48s ease-in-out 2; }

/* ── Texte latéral (desktop) ── */
.e-copy {
  font-family: var(--e-body);
  align-self: center;
  transform: translateY(3vh);
}
.e-copy--left  { text-align: left; }
.e-copy--right { text-align: left; }

.e-copy__num {
  display: block;
  color: var(--e-gold);
  font-weight: 600; letter-spacing: .3em; font-size: 13px;
  margin-bottom: 26px;
  opacity: .86;
}
.e-copy__title {
  font-family: var(--e-title);
  font-weight: 400; font-size: 34px;
  line-height: 1.06; letter-spacing: .03em;
  margin: 0; color: var(--e-white);
  display: block;
  font-feature-settings: 'kern' 1, 'liga' 1;
}
.e-copy__rule {
  display: block; width: 36px; height: 1px;
  background: var(--e-gold); margin: 26px 0 28px;
  opacity: .65;
}
.e-copy__sub {
  margin: 0; font-size: 10px;
  line-height: 1.9; letter-spacing: .34em;
  color: var(--e-muted); font-weight: 500;
  text-transform: uppercase;
}

/* ── Footer ── */
.e-footer {
  position: absolute; left: 3.2vw; right: 4.4vw; bottom: 6.3vh;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 20;
  font-family: var(--e-body); font-size: 9px;
  font-weight: 600; letter-spacing: .26em;
  color: rgba(244,239,229,.6);
}
.e-footer nav   { display: flex; gap: 14px; align-items: center; }
.e-footer a     { transition: color .2s ease; text-transform: uppercase; position: relative; padding: 12px 4px; margin: -12px -4px; }
.e-footer nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px; right: 0; height: .5px;
  background: var(--e-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--e-ui);
}
.e-footer nav a:hover { color: var(--e-gold); }
.e-footer nav a:hover::after { transform: scaleX(1); }
.e-footer a:focus-visible {
  outline: 1px solid rgba(214,168,78,.6);
  outline-offset: 4px;
  border-radius: 2px;
  color: var(--e-gold);
}

.e-reserve {
  color: var(--e-gold) !important;
  font-size: 11.5px; letter-spacing: .34em;
  display: flex; align-items: center; gap: 10px;
  transition: gap .28s var(--e-ui), opacity .2s ease;
  opacity: .86;
}
.e-reserve:hover { gap: 16px; opacity: 1; }
.e-reserve span { font-size: 18px; display: inline-block; transition: transform .28s var(--e-ui); }
.e-reserve:hover span { transform: translateX(4px); }

/* Scanneur — masqué sur mobile, visible uniquement desktop (via @media 901px) */
.e-door__scanner { display: none; }

/* Bloquer les clics sur les portes pendant la séquence */
.entrance.is-animating .e-door { pointer-events: none; cursor: default; }

/* Bloquer toute interaction pendant le fondu final */
.entrance.is-transitioning { pointer-events: none; }

/* ── Lumière intérieure (s'allume à l'ouverture) ── */
.e-door__light {
  position: absolute;
  inset: 14px 10px 0;
  border-radius: 40px 40px 4px 4px;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity .9s ease .1s;
}
.e-door--balneo .e-door__light {
  background: radial-gradient(circle at 50% 52%, rgba(255,228,165,.9), rgba(248,196,80,.2), transparent 68%);
}
.e-door--cine .e-door__light {
  background: radial-gradient(circle at 50% 52%, rgba(208,52,36,.72), rgba(128,18,14,.28), transparent 68%);
}
.e-door.is-open .e-door__light { opacity: 1; }

/* ── Fondu de transition vers la page chambre ── */
.e-fade-overlay {
  position: fixed; inset: 0;
  background: var(--overlay-cream, #f0e8d8);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity .62s ease;
}
.e-fade-overlay.is-visible { opacity: 1; }

/* ── Carte de scan — idle visible en bas, vol vers la serrure ── */
.e-scan-card {
  position: fixed;
  left: 50%;
  bottom: clamp(14px, 3.6vh, 36px);
  width: min(14vw, 175px); max-width: 68vw;
  z-index: 60;
  transform: translateX(-50%) rotate(-1.5deg);
  opacity: 0;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.52));
  pointer-events: none;
  border-radius: 6%;
  transition: transform 1.05s cubic-bezier(.22,1,.36,1), filter .4s ease, opacity .5s ease;
}
body.is-loaded .e-scan-card {
  opacity: 1;
  animation: e-keyIdle 6s ease-in-out 1.5s infinite;
}

/* Phase 1 : carte soulevée — signal visuel avant le vol */
.e-scan-card.is-liftoff {
  animation: none !important;
  opacity: 1;
  transform: translateX(-50%) translateY(-38px) scale(1.1) rotate(1deg);
  transition: transform .28s var(--e-out), opacity .2s ease;
}

/* Phase 2 : vol vers le lecteur — rétrécissement proportionnel à la profondeur */
.e-scan-card.is-visible {
  animation: none !important;
  opacity: 1;
  transform: translateX(calc(-50% + var(--scan-x, 0px))) translateY(var(--scan-y, 0px)) scale(.28) rotate(9deg);
  transition: transform 1s cubic-bezier(.22,1,.36,1), filter .55s ease, opacity .3s ease;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.58));
}

/* Phase 3 : carte calée sur le lecteur — lueur dorée, micro-redressement */
.e-scan-card.is-visible.is-card-at-scanner {
  transform: translateX(calc(-50% + var(--scan-x, 0px))) translateY(calc(var(--scan-y, 0px) + 2px)) scale(.22) rotate(-1.5deg);
  transition: transform .34s cubic-bezier(.2,.9,.3,1), filter .28s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.7)) drop-shadow(0 0 26px rgba(240,207,133,.75));
}

/* ── Faisceau de scan ── */
.e-scan-beam {
  position: fixed;
  width: min(25vw, 360px);
  z-index: 62;
  left: var(--beam-x, 50vw);
  top: var(--beam-y, 50vh);
  transform: translate(-50%, -50%) scaleX(.5);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 22px rgba(240,207,133,.76));
}
.e-scan-beam.is-visible {
  animation: e-beamScan .95s var(--e-ui) forwards;
}

/* ── Mobile (≤ 900px) ── */
@media (max-width: 900px) {
  html, body { overflow-y: auto; }
  html { overflow-x: hidden; scrollbar-gutter: stable; }
  .entrance { min-height: calc(100svh + 20px); }

  .entrance::after { height: 28vh; z-index: 5; background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,.85) 20%, rgba(0,0,0,.45) 55%, transparent 100%); opacity: 1; }
  .entrance__panel { display: none; }
  .entrance::before { display: none; }

  /* Header */
  .e-topbar {
    top: max(3vh, calc(env(safe-area-inset-top, 0px) + 14px));
    left: 5vw; right: 5vw;
  }
  .e-logo { width: 44vw; max-width: 185px; }
  .e-menu-btn { width: 58px; height: 58px; }
  .e-menu-btn:hover { transform: none; }

  /* Hero */
  .e-hero { padding-top: 19vh; }
  .e-eyebrow { font-size: 10px; margin-bottom: 8px; letter-spacing: .24em; word-spacing: .2em; }
  .e-h1 {
    font-size: clamp(32px, 8.5vw, 48px);
    line-height: .91;
    max-width: 88vw;
    margin-inline: auto;
  }
  .e-sub {
    font-size: 9px;
    letter-spacing: .2em;
    margin-top: 12px;
    line-height: 1.6;
  }

  /* Zone : grille 2 colonnes, labels au-dessus des portes */
  .e-doors-zone {
    left: 1vw; right: 1vw;
    top: 36vh;
    bottom: max(2vh, calc(env(safe-area-inset-bottom, 0px) + 8px));
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: max(2vw, 10px);
    row-gap: 0;
    align-content: start;
    align-items: end;
  }

  /* Labels : items de grille (plus position: absolute) */
  .e-copy {
    position: static;
    transform: none;
    pointer-events: none;
    z-index: 10;
    width: auto;
    padding-bottom: 8px;
  }
  .e-copy--left  { grid-column: 1; grid-row: 1; text-align: left; }
  .e-copy--right { grid-column: 2; grid-row: 1; text-align: left; }

  .e-copy__num   { font-size: 9px; margin-bottom: 5px; letter-spacing: .24em; }
  .e-copy__title { font-size: clamp(11px, 3.4vw, 16px); line-height: 1.1; }
  .e-copy__rule  { margin: 6px 0 5px; width: 18px; }
  .e-copy__sub   { font-size: 9px; letter-spacing: .16em; line-height: 1.6; }

  /* Stage : span 2 colonnes, ligne 2 */
  .e-doors-stage {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: max(2vw, 10px);
    align-items: end;
    perspective: 1000px;
  }

  .e-door {
    width: 100%;
    aspect-ratio: 363 / 698;
    max-height: 58svh;
    border-radius: 7px 7px 0 0;
    transition: box-shadow .3s ease, transform .25s var(--e-out);
  }
  .e-door::before { border-radius: 7px 7px 0 0; }

  /* Photos réelles — mêmes que desktop */
  .e-door--balneo::before {
    background: url('/assets/doors/door_balneo_complete_desktop.png') top center / 100% 100% no-repeat #030403 !important;
    border-radius: 7px 7px 0 0;
    box-shadow: none;
  }
  .e-door--cine::before {
    background: url('/assets/doors/door_cine_complete_desktop.png') top center / 100% 100% no-repeat #030403 !important;
    border-radius: 7px 7px 0 0;
    box-shadow: none;
  }
  .e-door:hover:not(.is-open):not(.is-scanning) {
    transform: none;
  }
  .e-door:active:not(.is-open):not(.is-scanning) {
    transform: scale(.97);
    box-shadow: 0 12px 22px rgba(0,0,0,.5);
    transition: transform .1s ease, box-shadow .1s ease;
  }

  /* Lumière intérieure — couvre toute la porte avec les photos */
  .e-door__light {
    inset: 0;
    border-radius: inherit;
  }

  /* ── Scanner mobile ── */
  .e-door__scanner {
    display: block;
    position: absolute;
    right: 13%;
    top: 44%;
    width: 14px;
    height: 18px;
    border-radius: 4px 4px 3px 3px;
    z-index: 6;
    pointer-events: none;
    transition: opacity .25s ease, box-shadow .35s ease;
  }
  .e-door__scanner::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(140,85,12,.38);
    box-shadow: 0 0 3px rgba(140,85,12,.22);
    transition: background .38s ease, box-shadow .38s ease;
  }
  .e-door--balneo .e-door__scanner {
    background: linear-gradient(165deg, #1c1510 0%, #0e0a07 100%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.06),
      inset 0 -1px 0 rgba(0,0,0,.55),
      0 3px 10px rgba(0,0,0,.78),
      0 0 0 .5px rgba(200,170,120,.12);
  }
  .e-door--cine .e-door__scanner {
    background: linear-gradient(165deg, #100e18 0%, #07060f 100%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.07),
      inset 0 -1px 0 rgba(0,0,0,.55),
      0 4px 12px rgba(0,0,0,.82),
      0 0 0 .5px rgba(200,185,240,.10);
  }
  .e-door.is-scanning .e-door__scanner {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.09),
      inset 0 -1px 0 rgba(0,0,0,.55),
      0 4px 12px rgba(0,0,0,.78),
      0 0 0 1px rgba(214,168,78,.40),
      0 0 12px rgba(214,168,78,.16);
  }
  .e-door.is-scanning .e-door__scanner::before {
    animation: e-ledAmber .55s ease-in-out infinite;
  }
  .e-door.is-unlocked .e-door__scanner {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.09),
      inset 0 -1px 0 rgba(0,0,0,.55),
      0 4px 12px rgba(0,0,0,.78),
      0 0 0 1px rgba(61,232,120,.60),
      0 0 14px rgba(61,232,120,.22);
    transition: box-shadow .22s ease;
  }
  .e-door.is-unlocked .e-door__scanner::before {
    background: #3de878;
    box-shadow: 0 0 8px #3de878, 0 0 16px rgba(61,232,120,.55);
    animation: none;
  }
  .e-door.is-open .e-door__scanner { opacity: 0; }

  /* ── Poignée mobile ── */
  .e-door::after {
    content: '';
    position: absolute;
    right: 13%;
    top: calc(53% - 2px);
    width: 24px;
    height: 5px;
    background: linear-gradient(to right,
      #7a5812 0%, #c08828 18%, #d6a84e 38%,
      #f4d472 54%, #d6a84e 70%, #b88028 84%, #8a5e14 100%
    );
    border-radius: 3px 6px 6px 3px;
    z-index: 6;
    pointer-events: none;
    transform-origin: right center;
    box-shadow:
      0 3px 10px rgba(0,0,0,.65),
      0 1px 3px rgba(0,0,0,.5),
      inset 0 1px 0 rgba(255,255,255,.36),
      inset 0 -1px 0 rgba(0,0,0,.32);
    transition: opacity .3s ease;
  }
  .e-door.is-handle-down::after {
    opacity: 1;
    animation: e-leverPress .45s cubic-bezier(.22,1,.36,1) forwards;
  }
  .e-door.is-open::after {
    opacity: 0;
    transform: rotateZ(-30deg);
  }

  .e-footer { justify-content: center; bottom: max(8px, env(safe-area-inset-bottom, 0px)); z-index: 65; }
  .e-footer nav { display: none; }
  .e-reserve { font-size: 10px; letter-spacing: .26em; gap: 7px; }
  .e-reserve span { font-size: 14px; }

  /* (petits écrans : voir règle combinée @max-width + @max-height après ce bloc) */

  /* Carte et faisceau — mobile */
  .e-scan-card {
    width: min(40vw, 145px);
    bottom: max(clamp(10px, 2.4vh, 22px), calc(env(safe-area-inset-bottom, 0px) + 10px));
  }
  .e-scan-card.is-liftoff {
    transform: translateX(-50%) translateY(-28px) scale(1.06) rotate(1deg);
  }
  .e-scan-card.is-visible {
    transform: translateX(calc(-50% + var(--scan-x, 0px))) translateY(var(--scan-y, 0px)) scale(.26) rotate(8deg);
  }
  .e-scan-card.is-visible.is-card-at-scanner {
    transform: translateX(calc(-50% + var(--scan-x, 0px))) translateY(calc(var(--scan-y, 0px) - 3px)) scale(.21) rotate(-2deg);
  }
  .e-scan-beam { width: 44vw; }

  /* Animations entrée — override mobile (pas de translate sur .e-copy) */
  body.is-loaded .e-copy--left,
  body.is-loaded .e-copy--right {
    animation: e-fadeIn .9s ease 480ms both;
  }

  .e-sub__desktop { display: none; }
  .e-sub__mobile  { display: inline; }

  /* Labels centrés au-dessus de leur porte */
  .e-copy--left  { text-align: center; }
  .e-copy--right { text-align: center; }
  .e-copy__rule  { margin-left: auto; margin-right: auto; }

  /* Carte légèrement réduite */
  .e-scan-card { width: min(34vw, 125px); }

}

/* Petits écrans mobile — navigateurs in-app (Snapchat, Instagram) inclus */
@media (max-width: 900px) and (max-height: 700px) {
  .e-hero { padding-top: 14vh; }
  .e-doors-zone { top: 32vh; }
  .e-door { max-height: 44svh; }
  .e-footer { display: none; }
  .e-copy__num  { margin-bottom: 3px; }
  .e-copy__rule { margin: 4px 0 4px; }
}

/* Mode paysage mobile — scroll désactivé (overflow: hidden géré plus bas) */

/* ── Desktop ── */
@media (min-width: 901px) {
  .e-door {
    width: min(20vw, 340px);
    box-shadow: 0 32px 60px rgba(0,0,0,.72), 0 7px 20px rgba(0,0,0,.54);
    transition: transform .48s var(--e-out), box-shadow .32s ease;
  }
  .e-door:hover:not(.is-open):not(.is-scanning) {
    transform: translateY(-6px);
    box-shadow: 0 48px 76px rgba(0,0,0,.78), 0 12px 28px rgba(0,0,0,.6);
  }

  /* ── Boîtier scanner (DOM réel pour getBoundingClientRect) ── */
  .e-door__scanner {
    display: block;
    position: absolute;
    right: 13%;
    top: 44%;
    width: 22px;
    height: 28px;
    background: transparent;
    border-radius: 6px 6px 5px 5px;
    z-index: 6;
    pointer-events: none;
    box-shadow: none;
    transition: opacity .25s ease, box-shadow .35s ease;
  }

  /* LED voyant */
  .e-door__scanner::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(140, 85, 12, 0.38);
    box-shadow: 0 0 4px rgba(140, 85, 12, 0.22);
    transition: background .38s ease, box-shadow .38s ease;
  }

  /* Slot masqué — la photo l'affiche */
  .e-door__scanner::after {
    display: none;
  }

  /* ── Poignée levier horizontal ── */
  .e-door::after {
    content: '';
    position: absolute;
    right: 13%;
    top: calc(53% - 4px);
    width: 38px;
    height: 8px;
    background: linear-gradient(to right,
      #7a5812 0%,
      #c08828 18%,
      #d6a84e 38%,
      #f4d472 54%,
      #d6a84e 70%,
      #b88028 84%,
      #8a5e14 100%
    );
    border-radius: 5px 9px 9px 5px;
    z-index: 6;
    pointer-events: none;
    transform-origin: right center;
    box-shadow:
      0 5px 16px rgba(0,0,0,.65),
      0 2px 5px rgba(0,0,0,.5),
      inset 0 1.5px 0 rgba(255,255,255,.36),
      inset 0 -1px 0 rgba(0,0,0,.32);
    transition: opacity .3s ease;
  }

  /* Balnéo : scanner visible sur fond crème */
  .e-door--balneo .e-door__scanner {
    background: linear-gradient(165deg, #1c1510 0%, #0e0a07 100%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.06),
      inset 0 -1px 0 rgba(0,0,0,.55),
      0 4px 14px rgba(0,0,0,.78),
      0 0 0 .75px rgba(200,170,120,.12);
  }

  /* Ciné : scanner avec teinte froide */
  .e-door--cine .e-door__scanner {
    background: linear-gradient(165deg, #100e18 0%, #07060f 100%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.07),
      inset 0 -1px 0 rgba(0,0,0,.55),
      inset 1px 0 0 rgba(255,255,255,.03),
      0 5px 18px rgba(0,0,0,.82),
      0 0 0 .75px rgba(200,185,240,.10);
  }

  /* LED amber pulsant pendant scan */
  .e-door.is-scanning .e-door__scanner::before {
    animation: e-ledAmber .55s ease-in-out infinite;
  }
  /* Anneau amber autour du boîtier */
  .e-door.is-scanning .e-door__scanner {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.09),
      inset 0 -1px 0 rgba(0,0,0,.55),
      0 5px 18px rgba(0,0,0,.78),
      0 0 0 1.5px rgba(214,168,78,.40),
      0 0 18px rgba(214,168,78,.16);
  }

  /* Accès accordé : LED verte + contour vert */
  .e-door.is-unlocked .e-door__scanner {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.09),
      inset 0 -1px 0 rgba(0,0,0,.55),
      0 5px 18px rgba(0,0,0,.78),
      0 0 0 1.5px rgba(61,232,120,.60),
      0 0 22px rgba(61,232,120,.22);
    transition: box-shadow .22s ease;
  }
  .e-door.is-unlocked .e-door__scanner::before {
    background: #3de878;
    box-shadow: 0 0 10px #3de878, 0 0 22px rgba(61,232,120,.55);
    animation: none;
  }

  /* Scanner disparaît à l'ouverture */
  .e-door.is-open .e-door__scanner { opacity: 0; }

  /* Poignée s'abaisse après accès accordé */
  .e-door.is-handle-down::after {
    opacity: 1;
    animation: e-leverPress .45s cubic-bezier(.22,1,.36,1) forwards;
  }
  /* Poignée disparaît à l'ouverture, reste en position basse */
  .e-door.is-open::after {
    opacity: 0;
    transform: rotateZ(-30deg);
  }

  /* Lueur desktop : sous la porte, pas dessus */
  .e-door__glow {
    bottom: -10px;
    height: 22px;
    left: 8%; right: 8%;
    z-index: 0;
    opacity: .46;
  }

  /* Label gauche orienté vers la porte (texte à droite) */
  .e-copy--left { text-align: right; }
  .e-copy--left .e-copy__rule { margin-left: auto; margin-right: 0; }

  .e-door__light {
    inset: 0;
    border-radius: inherit;
  }

  /* Photos réelles — remplacent les gradients CSS sur desktop */
  .e-door--balneo::before {
    background: url('/assets/doors/door_balneo_complete_desktop.png') center / 100% 100% no-repeat #030403 !important;
    box-shadow: none;
  }
  .e-door--cine::before {
    background: url('/assets/doors/door_cine_complete_desktop.png') center / 100% 100% no-repeat #030403 !important;
    box-shadow: none;
  }

  /* Panneaux latéraux masqués — fond noir uniforme */
  .entrance__panel { display: none; }
}

/* ── Ajustements responsive fins ── */
@media (min-width: 901px) and (max-width: 1180px) {
  .e-doors-zone {
    left: 4.5vw;
    right: 4.5vw;
    grid-template-columns: minmax(112px, 138px) 1fr minmax(112px, 138px);
    gap: 12px;
  }

  .e-copy__title {
    font-size: clamp(26px, 2.7vw, 32px);
  }

  .e-copy__sub {
    letter-spacing: .24em;
  }
}

@media (min-width: 1440px) {
  .e-doors-zone {
    left: max(11vw, 160px);
    right: max(11vw, 160px);
  }

  .e-h1 {
    font-size: clamp(62px, 4.8vw, 86px);
  }
}

@media (max-width: 900px) {
  .entrance {
    min-height: calc(100vh + 20px);
    min-height: calc(100svh + 20px);
  }

  .e-menu-nav {
    max-width: calc(100vw - 32px);
    max-height: min(70svh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .e-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .e-eyebrow,
  .e-sub {
    overflow-wrap: anywhere;
  }

  .e-doors-zone {
    width: min(100% - 16px, 620px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .e-door {
    min-width: 0;
    max-height: min(58svh, 430px);
  }
}

@media (max-width: 900px) and (min-height: 701px) {
  .e-doors-zone {
    bottom: max(76px, calc(env(safe-area-inset-bottom, 0px) + 68px));
  }

  .e-door {
    max-height: min(52svh, 390px);
  }
}

@media (min-width: 381px) and (max-width: 430px) and (min-height: 780px) and (max-height: 930px) and (orientation: portrait) {
  .e-doors-zone {
    top: clamp(312px, 37svh, 332px);
    bottom: max(92px, calc(env(safe-area-inset-bottom, 0px) + 82px));
  }

  .e-door {
    max-height: min(49svh, 360px);
  }

  .e-scan-card {
    bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 14px));
    width: min(30vw, 112px);
  }
}

@media (max-width: 520px) {
  .e-topbar {
    left: 18px;
    right: 18px;
  }

  .e-logo {
    width: clamp(126px, 41vw, 168px);
  }

  .e-menu-btn {
    width: 52px;
    height: 52px;
  }

  .e-hero {
    padding-top: clamp(112px, 18svh, 150px);
  }

  .e-eyebrow {
    font-size: 9px;
    letter-spacing: .18em;
    word-spacing: .08em;
  }

  .e-h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .e-sub {
    font-size: 8.5px;
    letter-spacing: .15em;
  }

  .e-doors-zone {
    top: clamp(286px, 39svh, 340px);
    width: calc(100vw - 14px);
    column-gap: 8px;
  }

  .e-doors-stage {
    gap: 8px;
  }

  .e-copy {
    padding-bottom: 6px;
  }

  .e-copy__title {
    font-size: clamp(12px, 4vw, 15px);
  }

  .e-copy__sub {
    font-size: 8px;
    letter-spacing: .12em;
  }
}

@media (max-width: 380px) {
  .e-topbar {
    left: 14px;
    right: 14px;
  }

  .e-logo {
    width: clamp(112px, 39vw, 140px);
  }

  .e-menu-btn {
    width: 46px;
    height: 46px;
  }

  .e-menu-btn span {
    width: 18px;
  }

  .e-hero {
    padding-top: clamp(92px, 16svh, 122px);
  }

  .e-eyebrow {
    font-size: 8px;
    letter-spacing: .14em;
  }

  .e-h1 {
    font-size: clamp(27px, 8.8vw, 34px);
  }

  .e-sub {
    margin-top: 9px;
    font-size: 8px;
    letter-spacing: .11em;
  }

  .e-doors-zone {
    top: clamp(224px, 35svh, 282px);
  }

  .e-door {
    max-height: min(50svh, 340px);
  }
}

@media (max-width: 900px) and (max-height: 620px) {
  .e-hero {
    padding-top: max(76px, calc(env(safe-area-inset-top, 0px) + 58px));
  }

  .e-eyebrow {
    margin-bottom: 5px;
  }

  .e-sub {
    display: none;
  }

  .e-doors-zone {
    top: clamp(176px, 31svh, 220px);
  }

  .e-door {
    max-height: 42svh;
  }

  .e-footer {
    display: none;
  }

  .e-copy__sub {
    display: none;
  }
}

@media (max-width: 900px) and (max-height: 800px) and (orientation: portrait) {
  .e-footer {
    display: none;
  }

  .e-doors-zone {
    bottom: max(38px, calc(env(safe-area-inset-bottom, 0px) + 32px));
  }

  .e-door {
    max-height: min(43svh, 320px);
  }
}

@media (min-width: 381px) and (max-width: 430px) and (max-height: 800px) and (orientation: portrait) {
  .e-doors-zone {
    top: clamp(286px, 37svh, 306px);
  }

  .e-door {
    max-height: min(41svh, 308px);
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  html,
  body {
    overflow: hidden;
  }

  .e-topbar {
    top: max(12px, env(safe-area-inset-top, 0px));
  }

  .e-logo {
    width: clamp(116px, 16vw, 152px);
  }

  .e-menu-btn {
    width: 46px;
    height: 46px;
  }

  .e-hero {
    padding-top: max(62px, 14svh);
  }

  .e-eyebrow,
  .e-sub {
    display: none;
  }

  .e-h1 {
    font-size: clamp(26px, 5vw, 38px);
  }

  .e-doors-zone {
    top: clamp(138px, 36svh, 156px);
    bottom: 34px;
    width: min(76vw, 620px);
    grid-template-columns: 1fr 1fr;
  }

  .e-copy {
    display: none;
  }

  .e-doors-stage {
    grid-row: 1 / -1;
  }

  .e-door {
    max-height: 58svh;
  }

  .e-footer {
    display: none;
  }

  .e-scan-card {
    width: min(18vw, 92px);
    bottom: 10px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  body.is-loaded .e-topbar,
  body.is-loaded .e-eyebrow,
  body.is-loaded .e-h1,
  body.is-loaded .e-sub,
  body.is-loaded .e-copy--left,
  body.is-loaded .e-doors-stage,
  body.is-loaded .e-copy--right,
  body.is-loaded .e-footer { animation: none; opacity: 1; transform: none; }
  .e-copy { transform: translateY(3vh); }
  .e-door.is-open::before { opacity: 0; transform: none; }
  body.is-loaded .e-scan-card { animation: none; }
  .e-copy { transform: none; }
  /* Menu : apparaît instantanément (pas de transition) */
  .e-menu-nav { transition: visibility 0s; }
  .e-menu-nav.is-open { transition: visibility 0s; }
}
