/* Belvédère — démonstration « parallaxe » (ZataLabs, V7.7).
   Une scène de montagne en huit calques, collée à l'écran pendant que la
   page défile : le script ne touche qu'à transform et opacity (composition
   seule, aucun recalcul de mise en page). */

:root {
  --nuit: #0b0d1e;
  --nuit-2: #141731;
  --encre: #ebe8f6;
  --doux: #a9a6c2;
  --lavande: #a79bd8;
  --ambre: #ffcf7a;
  --trait: rgb(235 232 246 / .12);
  --titre: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nuit); color: var(--encre); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: .02em; }
em { font-style: normal; color: var(--ambre); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ambre); outline-offset: 3px; border-radius: 4px; }
.evitement { position: absolute; left: -999px; top: .5rem; z-index: 50; padding: .6rem 1rem; background: var(--encre); color: var(--nuit); border-radius: 8px; }
.evitement:focus { left: .5rem; }
.surtitre { margin: 0 0 1rem; font: 600 .75rem/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--lavande); }

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border: 0; border-radius: 999px;
  background: var(--ambre); color: #1a1406; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 0 rgb(255 207 122 / .4); transition: box-shadow .3s, transform .3s var(--ease);
}
.bouton:hover { box-shadow: 0 0 0 6px rgb(255 207 122 / .18); transform: translateY(-1px); }

/* ---------- En-tête (posé sur le ciel) ---------- */
.entete { position: absolute; z-index: 10; left: 0; right: 0; display: flex; align-items: center; gap: 1.5rem; padding: 1.1rem clamp(1rem, 4vw, 3rem); }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font: 600 1.15rem/1 var(--titre); letter-spacing: .08em; }
.logo svg { width: 28px; height: 28px; fill: var(--ambre); }
.entete__nav { display: flex; gap: 1.6rem; margin-left: auto; }
.entete__nav a { text-decoration: none; font-size: .92rem; color: rgb(235 232 246 / .8); }
.entete__nav a:hover { color: #fff; }
.entete__appel { padding: .5rem 1.1rem; border: 1px solid rgb(255 207 122 / .7); border-radius: 999px; text-decoration: none; font-size: .92rem; color: var(--ambre); }
.entete__appel:hover { background: var(--ambre); color: #1a1406; }
@media (max-width: 640px) { .entete__nav { display: none; } .entete__appel { margin-left: auto; } }

/* ---------- La scène ---------- */
.parallaxe { position: relative; height: 220vh; height: 220svh; }
.ciel { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--nuit); }
.ciel__fond { position: absolute; inset: 0; }
/* Fondu vers la page : la scène se termine sans arête visible. */
.ciel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(transparent, var(--nuit)); pointer-events: none; }
.ciel__fond--crepuscule { background: linear-gradient(180deg, #2b2360 0%, #6a3f7c 38%, #d9776a 66%, #f6b37a 80%, #f6b37a 100%); }
.ciel__fond--nuit { background: radial-gradient(90vmax 60vmax at 60% 20%, #1b2150, transparent 70%), linear-gradient(180deg, #070918 0%, #10143a 55%, #262457 80%, #262457 100%); opacity: 0; will-change: opacity; }

.couche { position: absolute; inset: 0; will-change: transform; }
.couche > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.couche--crete-loin { color: #3b3168; }
.couche--crete-loin svg { fill: currentColor; }
.couche--crete { color: #231b45; }
.couche--crete svg { fill: currentColor; }
.couche--foret { color: #141030; }
.couche--foret svg { fill: currentColor; }
.couche--avant { color: var(--nuit); }
.couche--avant svg { fill: currentColor; }
.couche--avant .trait { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; }

.coupole__fente { fill: #3a2f66; }
.coupole__fenetre { fill: var(--ambre); }
.coupole__lueur { fill: rgb(255 207 122 / .22); }

.couche--brume { background: linear-gradient(180deg, transparent 52%, rgb(167 155 216 / .22) 62%, transparent 74%); }

.etoiles { fill: #fff; }
.couche--lune svg { position: absolute; inset: auto; right: 14%; top: 9%; width: clamp(110px, 12vw, 190px); height: auto; aspect-ratio: 1; }
.couche--etoiles { opacity: .15; will-change: transform, opacity; }
.etoiles--a { animation: scintille 3.4s ease-in-out infinite alternate; }
.etoiles--b { animation: scintille 5.1s ease-in-out infinite alternate-reverse; }
.etoiles--c { opacity: .9; }
@keyframes scintille { from { opacity: 1; } to { opacity: .35; } }
.filante {
  position: absolute; left: 62%; top: 12%; width: 140px; height: 1.5px;
  background: linear-gradient(90deg, #fff, transparent);
  transform: rotate(-20deg) translateX(0); opacity: 0;
  animation: filante 11s 3s linear infinite;
}
@keyframes filante {
  0%, 92% { opacity: 0; transform: rotate(160deg) translateX(0); }
  93% { opacity: 1; }
  100% { opacity: 0; transform: rotate(160deg) translateX(420px); }
}

.couche--titre { display: flex; flex-direction: column; align-items: center; padding-top: 14vh; padding-top: 14svh; text-align: center; pointer-events: none; }
.couche--titre h1 { font-size: clamp(2.6rem, min(8.4vw, 10.5vh), 7.2rem); text-shadow: 0 2px 30px rgb(11 13 30 / .35); }
.couche--titre em { display: inline-block; margin-top: .1em; }

.couche--sous-titre { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; padding: 0 1.25rem; text-align: center; color: var(--encre); opacity: 0; will-change: transform, opacity; }
.couche--sous-titre p { max-width: 32rem; margin: 0; font: 500 clamp(1.3rem, 3vw, 2rem)/1.35 var(--titre); letter-spacing: .01em; text-shadow: 0 2px 24px rgb(7 9 24 / .8); }
.couche--sous-titre strong { color: var(--ambre); font-weight: 600; }

.indice { position: absolute; left: 50%; bottom: 1.4rem; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 0; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgb(235 232 246 / .75); }
.indice span { position: relative; width: 1px; height: 2.4rem; background: rgb(235 232 246 / .2); overflow: hidden; }
.indice span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ambre); animation: indice 2.2s var(--ease) infinite; }
@keyframes indice { to { top: 100%; } }

/* ---------- Sections ---------- */
.enveloppe { position: relative; max-width: 72rem; margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 3rem); }
.lieu, .programme, .nuits { position: relative; padding: clamp(4.5rem, 11vw, 8rem) 0; }
.lieu h2, .programme h2, .nuits h2 { font-size: clamp(1.9rem, 5vw, 3.4rem); margin-bottom: 2.5rem; }

.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.chiffres li { padding: 1.6rem 0 0; border-top: 1px solid var(--trait); }
.chiffres strong { display: block; font: 600 clamp(2rem, 4.4vw, 2.8rem)/1 var(--titre); color: var(--encre); }
.chiffres span { display: block; margin-top: .6rem; color: var(--doux); }

.programme { overflow: hidden; background: linear-gradient(180deg, var(--nuit), var(--nuit-2) 50%, var(--nuit)); }
.astre { position: absolute; border-radius: 50%; will-change: transform; pointer-events: none; }
.astre--a { right: 8%; top: 14%; width: clamp(90px, 14vw, 180px); aspect-ratio: 1; background: radial-gradient(circle at 35% 30%, #f3c9a0, #b76e52 55%, #4a2230); box-shadow: inset -18px -12px 40px rgb(0 0 0 / .45); }
.astre--b { left: 4%; top: 55%; width: clamp(40px, 6vw, 70px); aspect-ratio: 1; background: radial-gradient(circle at 35% 30%, #d8e4ff, #7b8bd6 60%, #2c3470); }
.astre--c { right: 22%; bottom: 8%; width: 22px; aspect-ratio: 1; background: radial-gradient(circle at 35% 30%, #fff5dc, #caa76b 65%, #5d4524); }
.astre--a::after { content: ""; position: absolute; inset: 38% -38%; border: 2px solid rgb(243 201 160 / .45); border-radius: 50%; transform: rotate(-18deg); }

.deroule { position: relative; margin: 0; padding: 0; list-style: none; max-width: 44rem; }
.deroule::before { content: ""; position: absolute; left: 5.2rem; top: .6rem; bottom: .6rem; width: 1px; background: linear-gradient(var(--lavande), transparent); }
.deroule li { display: grid; grid-template-columns: 4.4rem 1fr; gap: 1.6rem; padding: 0 0 2.2rem; }
.deroule time { font: 600 .95rem/1.6 var(--titre); color: var(--ambre); text-align: right; white-space: nowrap; }
.deroule h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.deroule p { margin: 0; color: var(--doux); }
.deroule div { position: relative; }
.deroule div::before { content: ""; position: absolute; left: calc(-1.6rem - 4px); top: .55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--lavande); box-shadow: 0 0 0 4px rgb(167 155 216 / .2); }

.nuits__intro { max-width: 40rem; margin: -1.2rem 0 2.2rem; color: var(--doux); }
.reservation { display: grid; gap: 2rem; }
.reservation fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.reservation legend { padding: 0; margin-bottom: .9rem; font: 600 .8rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--lavande); }

.calendrier { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.6rem, 1fr)); gap: .6rem; }
.nuit { position: relative; display: grid; justify-items: center; gap: .3rem; padding: .9rem .6rem .8rem; border: 1px solid var(--trait); border-radius: 14px; background: var(--nuit-2); cursor: pointer; text-align: center; transition: border-color .25s, background .25s; }
.nuit input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.nuit svg { width: 34px; height: 34px; }
.nuit b { font-weight: 600; font-size: .95rem; }
.nuit small { font-size: .78rem; color: var(--doux); }
.nuit i { font-style: normal; font-size: .72rem; padding: .15rem .5rem; border-radius: 999px; background: rgb(167 155 216 / .16); color: #d6cff5; }
.nuit i.profond { background: rgb(255 207 122 / .16); color: var(--ambre); }
.nuit:has(input:checked) { border-color: var(--ambre); background: rgb(255 207 122 / .08); }
.nuit:has(input:focus-visible) { outline: 2px solid var(--ambre); outline-offset: 3px; }
.nuit:has(input:disabled) { opacity: .45; cursor: not-allowed; }

.formules { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .7rem; }
.formules label { position: relative; cursor: pointer; }
.formules input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.formules span { display: grid; gap: .25rem; height: 100%; padding: 1.1rem 1.2rem; border: 1px solid var(--trait); border-radius: 14px; background: var(--nuit-2); transition: border-color .25s, background .25s; }
.formules b { font: 600 1.05rem var(--titre); }
.formules small { color: var(--doux); }
.formules em { font: 600 1.3rem var(--titre); }
.formules input:checked + span { border-color: var(--ambre); background: rgb(255 207 122 / .08); }
.formules input:focus-visible + span { outline: 2px solid var(--ambre); outline-offset: 3px; }

.reservation__bas { display: flex !important; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.reservation__bas legend { width: 100%; }
.compteur { display: inline-flex; align-items: center; border: 1px solid var(--trait); border-radius: 999px; }
.compteur button { width: 2.8rem; height: 2.8rem; border: 0; border-radius: 50%; background: none; color: var(--encre); font-size: 1.3rem; cursor: pointer; }
.compteur button:disabled { opacity: .35; cursor: not-allowed; }
.compteur output { min-width: 2rem; text-align: center; font-weight: 600; }
.reservation__total { margin: 0 auto 0 0; color: var(--doux); }
.reservation__total strong { margin-left: .4rem; font: 600 1.5rem var(--titre); color: var(--encre); }
.reservation__message { margin: 0; min-height: 1.5em; color: var(--ambre); }
.reservation__message.is-erreur { color: #ff9d8a; }

.pied { padding: 2rem 1.2rem 2.5rem; text-align: center; font-size: .85rem; color: var(--doux); border-top: 1px solid var(--trait); }

@media (max-width: 640px) {
  .couche--titre { padding-top: 19svh; }
  .couche--lune svg { right: 3%; top: 8svh; width: 76px; }
  .deroule::before { left: 4.3rem; }
  .deroule li { grid-template-columns: 3.6rem 1fr; gap: 1.4rem; }
  .deroule time { font-size: .85rem; }
}

/* Animations réduites : pas de scène collée ni de calques qui glissent ;
   le ciel est directement de nuit et tout est lisible d'emblée. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .parallaxe { height: auto; }
  .ciel { position: relative; }
  .ciel__fond--nuit { opacity: 1; }
  .couche--etoiles { opacity: 1; }
  .couche--sous-titre { opacity: 1; justify-content: flex-end; padding-bottom: 9svh; }
  .couche--sous-titre p { font-size: clamp(1.1rem, 2.4vw, 1.5rem); }
  .filante, .indice { display: none; }
}
