/* APA Agency · feuille de style commune
   Lumière d'Agadir : blanc chaux, sable, bleu ciel, encre marine, or. */

:root {
  --blanc: #fdfcfa;
  --sable: #f4efe7;
  --ciel: #e8f1f8;
  --encre: #12263a;
  --encre-2: #4d6072;
  --ocean: #1f6a9c;
  --or: #b88a45;
  --or-clair: #e6c98f;
  --filet: rgba(18, 38, 58, .13);

  --display: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --texte: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --r: 24px;
  --r-s: 14px;
  --marge: clamp(20px, 5.5vw, 88px);
  --doux: cubic-bezier(.2, .7, .1, 1);
  --ombre: 0 30px 70px -40px rgba(18, 38, 58, .45);
  --mx: 50%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ocean); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--or-clair); color: var(--encre); }

/* ---------- Typographie : géométrique fine en capitales, comme le logo APA ---------- */
.display {
  font-family: var(--display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .035em;
  line-height: 1.04;
}
.display em { font-style: normal; font-weight: 500; }
.t-xl { font-size: clamp(2.5rem, 7.6vw, 7.8rem); letter-spacing: .02em; line-height: .98; }
.t-l { font-size: clamp(1.95rem, 4.3vw, 4.1rem); }
.t-m { font-size: clamp(1.4rem, 2.15vw, 2.05rem); line-height: 1.12; letter-spacing: .05em; font-weight: 400; }
.t-s { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.2; letter-spacing: .06em; font-weight: 400; }
.surtitre {
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--or);
}
.chapo { font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.6; max-width: 34em; color: var(--encre-2); }
.note { font-size: .78rem; color: var(--encre-2); }

/* ---------- Verre liquide ---------- */
.verre {
  position: relative;
  isolation: isolate;
  color: var(--encre);
  background: linear-gradient(140deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .58) 55%, rgba(255, 255, 255, .72));
  -webkit-backdrop-filter: blur(26px) saturate(190%) brightness(1.08);
  backdrop-filter: blur(26px) saturate(190%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: var(--r);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(255, 255, 255, .5),
    inset 0 0 30px rgba(255, 255, 255, .25),
    0 30px 70px -34px rgba(18, 38, 58, .5);
}
.verre::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(80% 90% at var(--mx) -20%, rgba(255, 255, 255, .95), transparent 60%);
  pointer-events: none;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  min-height: 54px;
  padding: 0 1.7em;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 500;
  font-size: .86rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .5s var(--doux), background .3s, color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--doux); }
.btn:hover svg { transform: translateX(4px); }
.btn--or { background: linear-gradient(135deg, #e9cc94, #c39a52); color: var(--encre); box-shadow: 0 16px 34px -16px rgba(184, 138, 69, .9), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn--or:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -16px rgba(184, 138, 69, 1), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn--verre { color: var(--encre); background: rgba(255, 255, 255, .74); border: 1px solid rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: 0 14px 30px -18px rgba(18, 38, 58, .5); }
.btn--verre:hover { background: #fff; transform: translateY(-2px); }
.btn--encre { background: var(--encre); color: var(--blanc); }
.btn--encre:hover { background: var(--ocean); transform: translateY(-2px); }
.lien {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; color: var(--ocean); border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.lien svg { width: 16px; height: 16px; transition: transform .5s var(--doux); }
.lien:hover svg { transform: translateX(4px); }
.lien:hover { color: var(--encre); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  z-index: 60;
  top: 16px; left: 50%;
  width: min(1180px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  transition: transform .6s var(--doux);
}
.nav.est-cachee { transform: translate(-50%, -140%); }
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; font-family: var(--display); }
.logo img { height: 44px; width: auto; }
.logo--grand img { height: 84px; }
.nav__liens { display: flex; gap: 4px; }
.nav__liens a { padding: 10px 13px; border-radius: 999px; font-family: var(--display); font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; transition: background .3s, color .3s; }
.nav__liens a:hover, .nav__liens a[aria-current] { background: var(--encre); color: var(--blanc); }
.nav .btn { min-height: 44px; font-size: .78rem; padding: 0 1.4em; }
.nav__menu { display: none; align-items: center; gap: 10px; height: 44px; padding: 0 15px 0 18px; border-radius: 999px; background: var(--encre); color: #fff; }
.nav__menu b { font-family: var(--display); font-weight: 500; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }
.nav__menu i { position: relative; display: block; width: 20px; height: 12px; }
.nav__menu span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--doux), top .5s var(--doux); }
.nav__menu span:first-child { top: 2px; }
.nav__menu span:last-child { top: 9px; }
.menu-ouvert .nav__menu span:first-child { top: 5.5px; transform: rotate(45deg); }
.menu-ouvert .nav__menu span:last-child { top: 5.5px; transform: rotate(-45deg); }
.menu-ouvert, .intro-active { overflow: hidden; }
.tiroir {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding: 98px var(--marge) calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--ciel), var(--blanc) 42%);
  overflow-y: auto;
  clip-path: circle(0 at calc(100% - 60px) 38px);
  visibility: hidden;
  transition: clip-path .8s var(--doux), visibility 0s .8s;
}
.menu-ouvert .tiroir { clip-path: circle(160% at calc(100% - 60px) 38px); visibility: visible; transition-delay: 0s; }
.tiroir__liens { display: grid; }
.tiroir__lien { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--filet); opacity: 0; transform: translateY(28px); transition: opacity .5s, transform .8s var(--doux); }
.menu-ouvert .tiroir__lien { opacity: 1; transform: none; }
.menu-ouvert .tiroir__lien:nth-child(1) { transition-delay: .16s; }
.menu-ouvert .tiroir__lien:nth-child(2) { transition-delay: .22s; }
.menu-ouvert .tiroir__lien:nth-child(3) { transition-delay: .28s; }
.menu-ouvert .tiroir__lien:nth-child(4) { transition-delay: .34s; }
.menu-ouvert .tiroir__lien:nth-child(5) { transition-delay: .4s; }
.menu-ouvert .tiroir__lien:nth-child(6) { transition-delay: .46s; }
.tiroir__lien b { display: block; font-size: 1.45rem; font-weight: 300; line-height: 1.1; }
.tiroir__lien[aria-current] b { font-weight: 500; }
.tiroir__lien small { display: block; margin-top: 5px; color: var(--encre-2); font-size: .88rem; }
.tiroir__lien img { flex: none; width: 72px; height: 54px; border-radius: 14px; object-fit: cover; box-shadow: 0 14px 24px -14px rgba(18, 38, 58, .7); }
.tiroir__bas { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .8s var(--doux); }
.menu-ouvert .tiroir__bas { opacity: 1; transform: none; transition-delay: .54s; }
.tiroir__actions { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.tiroir__actions .btn { justify-content: center; padding: 0 .8em; font-size: .76rem; }
.tiroir__infos { display: flex; gap: 20px; margin: 18px 0 8px; font-family: var(--display); font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.tiroir__infos a { color: var(--ocean); }

/* ---------- Intro : animation du logo ---------- */
.intro {
  --lv: max(100vw, 177.78vh);
  position: fixed; inset: 0; z-index: 95; overflow: hidden;
  background: #000; transition: opacity 1.1s var(--doux), visibility 1.1s;
}
.intro video { position: absolute; left: 50%; top: 50%; width: var(--lv); height: calc(var(--lv) * .5625); max-width: none; object-fit: cover; transform: translate(-50%, -50%); }
.intro__logo { position: absolute; left: 50%; top: 50%; width: calc(var(--lv) * .3958); max-width: none; transform: translate(-50%, -50%); opacity: 0; transition: opacity .8s; }
.intro.est-nette .intro__logo { opacity: 1; }
.intro__passer { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 10px 18px; color: rgba(255, 255, 255, .62); font-family: var(--display); font-weight: 500; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; transition: color .3s; }
.intro__passer:hover { color: #fff; }
.intro.est-finie { opacity: 0; visibility: hidden; }
@media (max-aspect-ratio: 1/1) {
  .intro { --lv: 205vw; }
  .intro video { -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
}

/* ---------- Film ---------- */
.film { position: relative; background: var(--sable); --pas: 1.1; }
/* Même hauteur que celle posée par film.js (scènes × pas), connue avant le script : les images sous le film attendent leur tour */
.film--long { height: calc(((var(--n) - 1 + .55) * var(--pas) + 1) * 100vh); height: calc(((var(--n) - 1 + .55) * var(--pas) + 1) * 100svh); }
.film__ecran { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film__voile {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .7s;
  background: linear-gradient(to top, rgba(12, 28, 44, .7) 0%, rgba(12, 28, 44, .28) 36%, transparent 62%);
}
.film[data-scene='n2-plan'] .film__voile { opacity: 1; }
.scene {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 0 var(--marge) clamp(64px, 11vh, 120px);
  pointer-events: none;
  visibility: hidden;
  perspective: 1200px;
  transition: visibility 0s .7s;
}
.scene.est-active { visibility: visible; transition-delay: 0s; }
.scene > * { opacity: 0; transform: translateY(34px); transition: opacity .55s, transform .8s var(--doux); }
.scene.est-active > * { opacity: 1; transform: rotateX(var(--cx, 0deg)) rotateY(var(--cy, 0deg)); pointer-events: auto; transition-delay: .12s; }
.scene__ouverture { max-width: 1200px; color: #fff; text-shadow: 0 2px 34px rgba(12, 28, 44, .5); }
.scene__ouverture .surtitre { display: block; margin-bottom: clamp(14px, 2.4vh, 28px); color: var(--or-clair); }
.scene__ouverture .chapo { margin-top: clamp(18px, 3vh, 30px); color: rgba(255, 255, 255, .92); }
.scene__ouverture .btn { text-shadow: none; }
.scene__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.4vh, 38px); }
.scene__carte { width: min(500px, 100%); padding: clamp(22px, 2.4vw, 36px); }
.scene__carte--large { width: min(640px, 100%); }
.scene__carte .surtitre { display: block; margin-bottom: 14px; }
.scene__carte p { margin-top: 14px; color: var(--encre-2); }
.puces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.puces li {
  font-family: var(--display); font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--filet); background: rgba(255, 255, 255, .7);
}
.scene--finale { justify-content: center; text-align: center; padding-bottom: clamp(44px, 8vh, 90px); }
.scene--finale .scene__carte { width: min(760px, 100%); }
.scene--finale .scene__actions { justify-content: center; }
.scene--finale .note { display: block; margin-top: 20px; }

.film__rail {
  position: absolute; right: clamp(12px, 1.6vw, 26px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 2px; z-index: 3;
  padding: 10px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 16px 34px -20px rgba(18, 38, 58, .6);
}
.film__rail button { position: relative; display: grid; place-items: center; width: 22px; height: 22px; }
.film__rail i {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--encre);
  transition: transform .5s var(--doux), background .3s, border-color .3s;
}
.film__rail span {
  position: absolute; right: 34px; top: 50%;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  background: #fff; box-shadow: 0 10px 24px -14px rgba(18, 38, 58, .6);
  font-family: var(--display); font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  opacity: 0; transform: translate(8px, -50%); pointer-events: none; transition: opacity .3s, transform .5s var(--doux);
}
.film__rail button:hover span, .film__rail .est-actif span { opacity: 1; transform: translate(0, -50%); }
.film__rail .est-passe i { background: var(--encre); }
.film__rail .est-actif i { background: var(--or); border-color: var(--or); transform: scale(1.6); }

.film__jauge {
  position: absolute; z-index: 3; right: clamp(60px, 5vw, 90px); bottom: clamp(24px, 5vh, 48px);
  width: 250px; padding: 16px 18px; border-radius: var(--r-s);
  font-family: var(--display); font-weight: 500; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  transition: opacity .5s, transform .7s var(--doux);
}
.film__jauge b { float: right; font-weight: 500; color: var(--ocean); }
.film__jauge div { margin-top: 12px; height: 3px; background: rgba(18, 38, 58, .12); border-radius: 3px; overflow: hidden; }
.film__jauge div span { display: block; height: 100%; background: linear-gradient(90deg, var(--ocean), var(--or)); transform-origin: left; transform: scaleX(0); }
.film--interieur .film__jauge { opacity: 0; transform: translateY(16px); }
.film__indice {
  position: absolute; z-index: 3; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff;
  font-family: var(--display); font-weight: 500; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  transition: opacity .5s;
}
.film__indice::after { content: ''; width: 1px; height: 34px; background: linear-gradient(#fff, transparent); animation: goutte 2s var(--doux) infinite; transform-origin: top; }
.film:not(.film--debut) .film__indice { opacity: 0; }
@keyframes goutte { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.film__fil { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; z-index: 3; background: linear-gradient(90deg, var(--ocean), var(--or)); transform-origin: left; transform: scaleX(var(--p, 0)); }

.film--statique { height: auto !important; }
.film--statique .film__ecran { position: static; height: auto; }
.film--statique canvas, .film--statique .film__rail, .film--statique .film__jauge, .film--statique .film__indice { display: none; }
.film--statique .scene { position: relative; min-height: 100svh; visibility: visible; background: center / cover; }
.film--statique .scene > * { opacity: 1; transform: none; }

/* ---------- Blocs de contenu ---------- */
.bloc { padding: clamp(84px, 12vw, 180px) var(--marge); position: relative; }
.bloc--sable { background: var(--sable); }
.bloc--ciel { background: linear-gradient(180deg, var(--ciel), var(--blanc)); }
.bloc__tete { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 90px); align-items: end; margin-bottom: clamp(44px, 6vw, 88px); }
.bloc__tete .surtitre { display: block; margin-bottom: 20px; }
.conteneur { max-width: 1480px; margin: 0 auto; }

.revele { opacity: 0; transform: translateY(40px); transition: opacity .9s, transform 1.1s var(--doux); }
.revele.vu { opacity: 1; transform: none; }
.revele[data-delai='1'] { transition-delay: .1s; }
.revele[data-delai='2'] { transition-delay: .2s; }
.revele[data-delai='3'] { transition-delay: .3s; }

/* ---------- Maquette 3D : l'immeuble niveau par niveau ---------- */
.maquette { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 70px); align-items: center; }
.maquette__scene { position: relative; height: clamp(480px, 70vh, 760px); perspective: 1900px; display: grid; place-items: center; padding-left: 190px; }
.maquette__pile {
  position: relative; width: min(74%, 520px); aspect-ratio: 1.13;
  transform-style: preserve-3d;
  transform: translateY(18%) rotateX(calc(60deg + var(--rx, 0deg))) rotateZ(calc(-40deg + var(--rz, 0deg)));
  transition: transform .9s var(--doux);
}
.maquette__pile.bouge { transition: transform .15s linear; }
.maquette__ombre { position: absolute; inset: -6%; transform: translateZ(-30px); background: radial-gradient(closest-side, rgba(18, 38, 58, .32), transparent); filter: blur(22px); }
.niveau {
  position: absolute; inset: 0; display: block; padding: 0;
  transform: translateZ(calc(var(--i) * var(--ecart, 40px) + var(--saut, 0px)));
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(18, 38, 58, .16), 0 24px 30px -18px rgba(18, 38, 58, .4);
  transition: transform .8s var(--doux), opacity .5s, box-shadow .4s;
}
.niveau img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.niveau:hover { --saut: 10px; }
.niveau.est-actif { --saut: 26px; box-shadow: 0 0 0 3px var(--or), 0 34px 50px -20px rgba(18, 38, 58, .55); }
.niveau.au-dessus { opacity: .1; --saut: 90px; pointer-events: none; }
.niveau.en-dessous { opacity: .7; }
.maquette__etiquettes { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column-reverse; gap: 6px; z-index: 2; }
.maquette__etiquettes button {
  padding: 9px 16px; border-radius: 999px; text-align: left;
  font-family: var(--display); font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--filet); transition: background .3s, color .3s, transform .5s var(--doux);
}
.maquette__etiquettes button:hover { transform: translateX(4px); }
.maquette__etiquettes button[aria-pressed='true'] { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.maquette__scene { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.maquette__scene.en-rotation { cursor: grabbing; }
.maquette__aide { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-family: var(--display); font-weight: 500; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--encre-2); white-space: nowrap; }
.maquette__fiche { padding: clamp(24px, 2.6vw, 40px); }
.maquette__fiche .surtitre { display: block; margin-bottom: 14px; }
.maquette__fiche p { margin-top: 14px; color: var(--encre-2); }
.lots { margin-top: 20px; display: grid; }
.lots li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--filet); font-size: .95rem; }
.lots b { font-family: var(--display); font-weight: 500; letter-spacing: .06em; white-space: nowrap; }
.maquette__fiche .scene__actions { margin-top: 24px; }

/* ---------- Cartes programme (3D) ---------- */
.programmes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.prog { grid-column: span 4; perspective: 1100px; }
.prog--large { grid-column: span 8; }
.prog__in {
  position: relative; display: block; height: 100%; min-height: clamp(380px, 38vw, 560px);
  border-radius: var(--r); overflow: hidden; color: #fff;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .9s var(--doux), box-shadow .6s;
  box-shadow: var(--ombre);
  background: var(--sable);
}
.prog__in:hover { box-shadow: 0 50px 80px -40px rgba(18, 38, 58, .6); }
.prog__in.bouge { transition: transform .12s linear, box-shadow .6s; }
.prog__in img {
  position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.02);
  transition: transform .9s var(--doux);
}
.prog__in.bouge img { transition: transform .12s linear; }
.prog__in::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 28, 44, .78), rgba(12, 28, 44, 0) 52%); }
.prog__haut, .prog__bas { position: absolute; z-index: 2; left: 0; right: 0; padding: clamp(18px, 2vw, 30px); transform: translateZ(50px); }
.prog__haut { top: 0; display: flex; justify-content: space-between; gap: 10px; }
.prog__bas { bottom: 0; }
.etiquette {
  font-family: var(--display); font-weight: 500; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; color: var(--encre);
  background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%);
}
.etiquette--or { background: linear-gradient(135deg, #e9cc94, #c39a52); border-color: transparent; }
.prog h3 { font-size: clamp(1.4rem, 2vw, 2rem); letter-spacing: .06em; font-weight: 400; }
.prog__faits { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-family: var(--display); font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.prog__lieu { margin-bottom: 8px; color: var(--or-clair); }

/* ---------- Cartes 3D ---------- */
.carte { position: relative; border-radius: var(--r); overflow: hidden; background: var(--ciel); isolation: isolate; box-shadow: var(--ombre); }
.carte__gl { position: absolute; inset: 0; }
.carte--haute { height: clamp(460px, 70vh, 780px); }
.maplibregl-map { font-family: var(--texte); }
.maplibregl-ctrl-group { border-radius: 14px !important; overflow: hidden; box-shadow: 0 10px 24px -12px rgba(18, 38, 58, .5) !important; }
.maplibregl-ctrl-bottom-right { z-index: 4; }
.maplibregl-cooperative-gesture-screen { font-family: var(--display); letter-spacing: .08em; background: rgba(18, 38, 58, .45); }
.repere { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; background: none; cursor: pointer; }
.repere > * { transition: opacity .5s, transform .6s var(--doux); }
.repere__photo { width: 64px; height: 64px; border-radius: 50%; background: var(--sable) center / cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--or), 0 16px 28px -8px rgba(18, 38, 58, .65); }
.repere--prog::after { content: ''; width: 2px; height: 18px; margin-top: -3px; background: linear-gradient(var(--or), transparent); }
.repere__nom {
  order: -1; padding: 7px 13px; border-radius: 999px; background: #fff; white-space: nowrap;
  font-family: var(--display); font-weight: 500; font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--encre);
  box-shadow: 0 10px 22px -12px rgba(18, 38, 58, .7);
}
.repere__nom b { margin-left: 9px; font-weight: 500; letter-spacing: .06em; color: var(--ocean); }
.repere--prog:hover .repere__photo, .repere--prog.est-actif .repere__photo { transform: scale(1.2); }
.repere--prog.est-actif .repere__nom { background: var(--encre); color: #fff; }
.repere--poi { flex-direction: row; gap: 8px; margin-left: -7px; }
.repere--poi .repere__nom { order: 0; }
.repere__puce { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ocean); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(18, 38, 58, .5); }
.repere--bureau .repere__puce { background: var(--or); }
.repere--bureau .repere__nom b { display: block; margin: 3px 0 0; text-transform: none; letter-spacing: 0; font-family: var(--texte); font-size: .76rem; color: var(--encre-2); }
.repere--ville { flex-direction: column-reverse; }
.repere--ville .repere__nom { order: 0; text-align: center; }
.repere--ville .repere__nom b { display: block; margin: 2px 0 0; }
.repere__nombre {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #e9cc94, #c39a52); border: 3px solid #fff; color: var(--encre);
  font-family: var(--display); font-weight: 400; font-size: 1.5rem; box-shadow: 0 16px 28px -8px rgba(18, 38, 58, .6);
}
.repere__nombre::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--or); animation: onde 2.6s ease-out infinite; }
.repere--ville:hover .repere__nombre { transform: scale(1.12); }
@keyframes onde { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
[data-niveau='villes'] .repere--prog > *, [data-niveau='villes'] .repere--prog::after { opacity: 0; }
[data-niveau='villes'] .repere--prog { pointer-events: none; }
[data-niveau='programmes'] .repere--ville > * { opacity: 0; }
[data-niveau='programmes'] .repere--ville { pointer-events: none; }
.carte__legende { position: absolute; z-index: 5; left: 16px; top: 16px; padding: 18px 20px; width: 280px; border-radius: var(--r-s); }
.temps { display: grid; gap: 10px; margin-top: 12px; }
.temps li { display: flex; justify-content: space-between; gap: 18px; font-size: .95rem; border-bottom: 1px solid var(--filet); padding-bottom: 9px; }
.temps li:last-child { border: 0; padding: 0; }
.temps b { font-family: var(--display); font-weight: 500; font-size: .84rem; letter-spacing: .08em; color: var(--ocean); white-space: nowrap; }

/* ---------- Atlas des programmes : carte plein écran ---------- */
.atlas { position: relative; height: 100svh; min-height: 700px; background: var(--ciel); overflow: hidden; }
.atlas__carte { position: absolute; inset: 0; }
.atlas__panneau { position: absolute; z-index: 5; left: clamp(14px, 2vw, 30px); top: 92px; bottom: clamp(14px, 2vw, 30px); width: 400px; padding: 26px 22px 16px; display: flex; flex-direction: column; gap: 14px; }
.atlas__panneau h1 { font-size: 1.7rem; }
.atlas__panneau .filtres { margin: 2px 0 0; }
.atlas__liste { flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: 6px; align-content: start; margin: 0 -8px; padding: 2px 8px; scrollbar-width: thin; }
.atlas__item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; text-align: left; padding: 8px; border-radius: 18px; border: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s, transform .5s var(--doux); }
.atlas__item[hidden] { display: none; }
.atlas__item img { width: 64px; height: 64px; border-radius: 13px; object-fit: cover; }
.atlas__item b { display: block; font-family: var(--display); font-weight: 500; font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; }
.atlas__item small { color: var(--encre-2); font-size: .84rem; }
.atlas__item:hover { background: rgba(255, 255, 255, .75); transform: translateX(4px); }
.atlas__item.est-actif { background: #fff; border-color: var(--or); box-shadow: 0 18px 34px -24px rgba(18, 38, 58, .7); }
.atlas__fiches { position: absolute; z-index: 5; right: clamp(14px, 2vw, 30px); top: 92px; width: min(420px, 32vw); }
.atlas__fiche { overflow: hidden; animation: fiche .8s var(--doux) both; }
.atlas__fiche[hidden] { display: none; }
.atlas__fiche figure { aspect-ratio: 16 / 9; overflow: hidden; }
.atlas__fiche figure img { width: 100%; height: 100%; object-fit: cover; }
.atlas__texte { padding: 20px 22px 22px; }
.atlas__texte h2 { margin: 8px 0 10px; }
.atlas__texte p { color: var(--encre-2); font-size: .95rem; }
.atlas__texte .prog__faits { margin-top: 12px; color: var(--ocean); }
.atlas__texte .scene__actions { margin-top: 16px; }
@keyframes fiche { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Duo texte + image ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 110px); align-items: center; }
.duo__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; position: relative; box-shadow: var(--ombre); }
.duo__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.liste-fine { display: grid; margin-top: 34px; }
.liste-fine li { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--filet); }
.liste-fine li b { font-family: var(--display); font-weight: 500; font-size: .84rem; letter-spacing: .16em; text-transform: uppercase; padding-top: 3px; }
.liste-fine li span { color: var(--encre-2); }

/* ---------- Chiffres ---------- */
.chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--filet); }
.chiffres li { padding: 30px 22px 6px; border-right: 1px solid var(--filet); }
.chiffres li:first-child { padding-left: 0; }
.chiffres li:last-child { border-right: 0; }
.chiffres b { display: block; white-space: nowrap; font-family: var(--display); font-weight: 200; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1; letter-spacing: .01em; color: var(--ocean); }
.chiffres span { display: block; margin-top: 12px; font-family: var(--display); font-weight: 500; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--encre-2); }

/* ---------- Points forts ---------- */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.point { padding: clamp(24px, 2.4vw, 34px); border-radius: var(--r); background: #fff; border: 1px solid rgba(18, 38, 58, .06); box-shadow: 0 24px 50px -40px rgba(18, 38, 58, .5); transition: transform .6s var(--doux), box-shadow .4s; }
.point:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -36px rgba(18, 38, 58, .6); }
.point h3 { font-family: var(--display); font-weight: 500; font-size: .98rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; margin-bottom: 12px; }
.point h3::before { content: ''; display: block; width: 28px; height: 2px; background: var(--or); margin-bottom: 18px; }
.point p { color: var(--encre-2); font-size: .97rem; }
.point--titre { background: none; border: 0; box-shadow: none; padding-left: 0; }
.point--titre:hover { transform: none; box-shadow: none; }

/* ---------- Galerie horizontale ---------- */
.galerie { display: flex; gap: clamp(12px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--marge) 30px; margin: 0 calc(var(--marge) * -1); scrollbar-width: none; }
.galerie::-webkit-scrollbar { display: none; }
.galerie figure { flex: 0 0 min(78vw, 880px); scroll-snap-align: center; border-radius: var(--r); overflow: hidden; position: relative; aspect-ratio: 16 / 10; background: var(--sable); box-shadow: var(--ombre); }
.galerie img { width: 100%; height: 100%; object-fit: cover; }
.galerie figcaption { position: absolute; left: 14px; bottom: 14px; padding: 9px 16px; border-radius: 999px; font-family: var(--display); font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- En-tête de page intérieure ---------- */
.entete { position: relative; padding: clamp(150px, 22vh, 230px) var(--marge) clamp(30px, 5vh, 60px); background: linear-gradient(180deg, var(--ciel), var(--blanc)); }
.entete__in { position: relative; z-index: 2; max-width: 1100px; }
.entete__in .surtitre { display: block; margin-bottom: 20px; }
.entete__in .chapo { margin-top: 24px; }

/* ---------- Filtres et vignettes ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filtres button { padding: 10px 17px; border-radius: 999px; border: 1px solid var(--filet); background: #fff; font-family: var(--display); font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; }
.filtres button[aria-pressed='true'] { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.prog__faits { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fiche__vignettes { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.fiche__vignettes::-webkit-scrollbar { display: none; }
.fiche__vignettes img { flex: 0 0 58px; width: 58px; height: 58px; object-fit: cover; border-radius: 10px; cursor: zoom-in; transition: transform .5s var(--doux), box-shadow .3s; }
.fiche__vignettes img:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 12px 20px -10px rgba(18, 38, 58, .6); }
[data-loupe] { cursor: zoom-in; }

/* ---------- Biens à vendre ---------- */
.biens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); min-height: 200px; }
.bien { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(18, 38, 58, .06); box-shadow: 0 24px 50px -40px rgba(18, 38, 58, .5); transition: opacity .9s, transform .9s var(--doux), box-shadow .4s; }
.bien:hover { box-shadow: 0 40px 70px -40px rgba(18, 38, 58, .65); }
.bien[hidden] { display: none; }
.bien__photos { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sable); }
.bien__piste { display: flex; height: 100%; transition: transform .7s var(--doux); }
.bien__piste img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.bien__haut { position: absolute; left: 14px; top: 14px; right: 14px; display: flex; gap: 8px; pointer-events: none; }
.bien__fleche { position: absolute; top: 50%; right: 12px; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 20px -10px rgba(18, 38, 58, .6); opacity: 0; transition: opacity .3s, transform .4s var(--doux); }
.bien__fleche svg { width: 18px; height: 18px; }
.bien__fleche--prec { right: auto; left: 12px; transform: rotate(180deg); }
.bien:hover .bien__fleche { opacity: 1; }
.bien__points { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.bien__points i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); transition: transform .3s, background .3s; }
.bien__points i.est-actif { background: #fff; transform: scale(1.5); }
.bien__texte { display: flex; flex-direction: column; flex: 1; padding: clamp(18px, 1.8vw, 26px); }
.bien__details { margin-top: 12px; display: grid; gap: 4px; color: var(--encre-2); font-size: .95rem; }
.bien__prix { margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--filet); }
.bien__prix b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.55rem; letter-spacing: .03em; color: var(--ocean); }
.bien__prix small { color: var(--encre-2); font-size: .82rem; }
.bien__texte .btn { margin-top: auto; justify-content: center; }
@media (hover: none) { .bien__fleche { opacity: 1; } }

/* ---------- Application ---------- */
.entete--app { padding-bottom: clamp(50px, 7vw, 100px); }
.telephone { perspective: 1200px; display: grid; place-items: center; }
.telephone img { width: min(100%, 440px); height: auto; transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -14deg)); transition: transform .9s var(--doux); filter: drop-shadow(0 50px 50px rgba(18, 38, 58, .35)); }
.telephone.bouge img { transition: transform .12s linear; }
.btn[aria-disabled='true'] { cursor: default; opacity: .75; }
.btn[aria-disabled='true']:hover { transform: none; background: rgba(255, 255, 255, .74); }

/* ---------- Pages légales ---------- */
.legal { max-width: 820px; margin: 0 auto; color: var(--encre-2); }
.legal h2 { margin: 46px 0 14px; color: var(--encre); }
.legal p { margin-top: 12px; }
.legal p.fort { color: var(--encre); font-weight: 600; }
.legal ul { margin: 12px 0 0 20px; list-style: disc; display: grid; gap: 10px; }
.legal strong { color: var(--encre); }

/* ---------- Formulaire ---------- */
.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: #fff; border-radius: var(--r); border: 1px solid rgba(18, 38, 58, .06); box-shadow: var(--ombre); }
.champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.duo > * { min-width: 0; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-family: var(--display); font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--encre-2); }
.champ input, .champ select, .champ textarea {
  font: inherit; color: inherit; width: 100%;
  padding: 15px 16px; border-radius: var(--r-s);
  border: 1px solid var(--filet); background: var(--blanc);
  transition: border-color .3s, box-shadow .3s;
}
.champ textarea { min-height: 130px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 0; border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(31, 106, 156, .14); }
.coordonnees { display: grid; gap: 26px; }
.coordonnees a.grand { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(1.5rem, 2.3vw, 2.1rem); letter-spacing: .04em; line-height: 1.3; }
.coordonnees a.grand:hover { color: var(--ocean); }

/* ---------- Bandeau final + pied ---------- */
.appel { text-align: center; padding: clamp(100px, 15vw, 210px) var(--marge); position: relative; overflow: hidden; color: #fff; }
.appel__fond { position: absolute; inset: 0; }
.appel__fond img { width: 100%; height: 100%; object-fit: cover; }
.appel__fond::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 28, 44, .25), rgba(12, 28, 44, .6)); }
.appel > *:not(.appel__fond) { position: relative; }
.appel .surtitre { color: var(--or-clair); }
.appel .chapo { color: rgba(255, 255, 255, .92); }
.appel .scene__actions { justify-content: center; }
.pied { padding: clamp(50px, 6vw, 90px) var(--marge) 34px; background: var(--sable); }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 60px); }
.pied h4 { margin: 0 0 16px; font-family: var(--display); font-weight: 500; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--or); }
.pied li { margin-bottom: 9px; color: var(--encre-2); font-size: .96rem; }
.pied li a:hover { color: var(--ocean); }
.pied .logo { align-items: flex-start; }
.pied__bas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 5vw, 70px); padding-top: 22px; border-top: 1px solid var(--filet); }
.pied__bas a { color: var(--ocean); border-bottom: 1px solid currentColor; }
.pied__bas a:hover { color: var(--encre); }

/* ---------- Visionneuse de plan ---------- */
.loupe { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(253, 252, 250, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); cursor: zoom-out; }
.loupe[hidden] { display: none; }
.loupe img { max-width: 100%; max-height: 92svh; border-radius: 12px; background: #fff; box-shadow: var(--ombre); }

/* ---------- Adaptation ---------- */
@media (max-width: 1100px) {
  .nav { padding-left: 18px; }
  .nav__liens, .nav > .btn { display: none; }
  .nav__menu { display: inline-flex; }
  .biens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prog, .prog--large { grid-column: span 6; }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .maquette { grid-template-columns: 1fr; }
  .maquette__scene { height: auto; display: flex; flex-direction: column; align-items: center; padding: 170px 0 0; }
  .maquette__pile { width: min(66%, 440px); order: 1; }
  .maquette__aide { position: static; transform: none; order: 2; margin-top: 110px; }
  .maquette__etiquettes { position: static; transform: none; order: 3; flex-direction: row; flex-wrap: wrap; justify-content: center; margin: 16px 0 10px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .film__rail, .film__indice { display: none; }
  .film { --pas: .95; }
  /* Pas de flou d'arrière-plan par-dessus le film : sur téléphone il serait recalculé à chaque image du défilement */
  .film .verre { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(140deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .93) 55%, rgba(255, 255, 255, .96)); }
  .film__jauge { left: var(--marge); right: var(--marge); width: auto; top: 84px; bottom: auto; padding: 12px 14px; }
  .scene { padding-bottom: 54px; }
  .scene__carte { padding: 20px; }
  .btn { min-height: 52px; }
  .scene__actions .btn { flex: 1 1 100%; justify-content: center; }
  .bloc__tete, .duo { grid-template-columns: 1fr; }
  .prog, .prog--large { grid-column: 1 / -1; }
  .biens { grid-template-columns: 1fr; }
  .telephone img { width: min(78%, 320px); }
  .prog__in { min-height: 420px; }
  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffres li:nth-child(2) { border-right: 0; }
  .chiffres li:nth-child(3) { padding-left: 0; }
  .chiffres b { font-size: 2.3rem; }
  .points { grid-template-columns: 1fr; }
  .liste-fine li { grid-template-columns: 1fr; gap: 4px; }
  .formulaire { grid-template-columns: minmax(0, 1fr); }
  .formulaire .btn { white-space: normal; text-align: center; padding: 14px 1.2em; line-height: 1.3; }
  .pied__grille { grid-template-columns: 1fr; }
  .carte__legende { position: static; width: auto; border-radius: 0; }
  .maquette__scene { padding-top: 150px; }
  .maquette__aide { margin-top: 84px; }
}
@media (max-width: 900px) {
  .atlas { height: auto; min-height: 0; overflow: visible; display: flex; flex-direction: column; background: var(--blanc); }
  .atlas__panneau { position: static; width: auto; order: 0; padding: 96px var(--marge) 14px; border: 0; border-radius: 0; box-shadow: none; background: linear-gradient(180deg, var(--ciel), var(--blanc)); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .atlas__panneau::before, .atlas__panneau .note { display: none; }
  .atlas__liste { flex: none; display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--marge) * -1); padding: 4px var(--marge) 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .atlas__liste::-webkit-scrollbar { display: none; }
  .atlas__item { flex: 0 0 236px; background: #fff; border-color: var(--filet); scroll-snap-align: center; }
  .atlas__item:hover { transform: none; }
  .atlas__carte { position: relative; order: 1; height: 58svh; min-height: 380px; }
  .atlas__fiches { position: static; order: 2; width: auto; padding: 14px var(--marge) 34px; }
}
/* ---------- Carrousels 3D (galeries partout, programmes sur mobile) ---------- */
.galerie { perspective: 1400px; }
.galerie figure { transform: rotateY(calc(var(--flux, 0) * -30deg)) scale(calc(1 - var(--fluxa, 0) * .1)); transition: transform .25s linear; }

/* ---------- Barre d'action mobile et bouton 3D ---------- */
.barre-mobile, .gyro-bouton { display: none; }
@media (max-width: 760px) {
  .barre-mobile {
    position: fixed; z-index: 50; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 52px 52px; gap: 8px; padding: 8px; border-radius: 999px;
    transform: translateY(140%); transition: transform .7s var(--doux);
  }
  .barre-mobile.est-visible { transform: none; }
  .menu-ouvert .barre-mobile, .intro-active .barre-mobile { transform: translateY(140%); }
  .barre-mobile .btn { min-height: 52px; justify-content: center; padding: 0 1em; font-size: .78rem; }
  .barre-mobile a.rond { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--encre); color: #fff; }
  .barre-mobile a.rond svg { width: 22px; height: 22px; }
  .barre-mobile a.rond--vert { background: #1fa855; }
  .pied { padding-bottom: 110px; }
  .gyro-bouton {
    position: fixed; z-index: 49; left: 12px; bottom: calc(86px + env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 999px;
    font-family: var(--display); font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
    opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .5s, transform .7s var(--doux);
  }
  .gyro-bouton.est-visible { opacity: 1; transform: none; pointer-events: auto; }
  .intro-active .gyro-bouton, .menu-ouvert .gyro-bouton { opacity: 0; pointer-events: none; }
  .gyro-bouton i { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--or); transform: rotate3d(1, 1, 0, 50deg); animation: pivot 2.4s var(--doux) infinite alternate; }
  @keyframes pivot { to { transform: rotate3d(1, -1, 0, 50deg); } }

  /* Programmes : carrousel 3D horizontal */
  .programmes { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--marge) * -1); padding: 18px var(--marge) 34px; scrollbar-width: none; perspective: 1100px; }
  .programmes::-webkit-scrollbar { display: none; }
  .programmes[data-flux] > .prog { flex: 0 0 80vw; scroll-snap-align: center; opacity: 1; transform: rotateY(calc(var(--flux, 0) * -34deg)) scale(calc(1 - var(--fluxa, 0) * .1)); transition: transform .2s linear; }
  .prog__in { min-height: 62svh; transform: rotateX(calc(var(--gy, 0) * -8deg)) rotateY(calc(var(--gx, 0) * 10deg)); transition: transform .2s linear; }
  .prog__in img { transform: translate3d(calc(var(--gx, 0) * -3.5%), calc(var(--gy, 0) * -3.5%), 0) scale(1.04); transition: transform .2s linear; }
  .galerie figure { flex-basis: 82vw; aspect-ratio: 4 / 5; }

  /* Les blocs arrivent en relief */
  .revele { transform: perspective(900px) rotateX(14deg) translateY(54px); transform-origin: 50% 100%; }
  .revele.vu { transform: perspective(900px) rotateX(0deg); }
  .scene.est-active > .scene__carte { transform: perspective(900px) rotateX(calc(var(--gy, 0) * -6deg)) rotateY(calc(var(--gx, 0) * 8deg)); }
  .telephone img { transform: rotateX(calc(4deg + var(--gy, 0) * -16deg)) rotateY(calc(-14deg + var(--gx, 0) * 28deg)); transition: transform .2s linear; }
  .point, .bien, .maquette__fiche { transform: perspective(900px) rotateX(calc(var(--gy, 0) * -3deg)) rotateY(calc(var(--gx, 0) * 4deg)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .revele { opacity: 1; transform: none; }
}

/* Formulaire de contact : cases à cocher et champ piège anti-robots */
.champ .case { display: flex; gap: 10px; align-items: flex-start; font-family: var(--texte); font-size: .92rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--encre); cursor: pointer; }
.champ .case input { width: 18px; height: 18px; padding: 0; margin-top: 2px; flex: none; accent-color: var(--or); box-shadow: none; }
.champ .piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
