/* ============================================================
   AstrAI — design system « observatoire de joaillerie »
   Le ciel est l'interface. Le verre est à peine là. L'or est rare.
   ============================================================ */

@import url('/assets/fonts/fonts.css');

:root {
  /* Espace profond : indigo nocturne, jamais noir pur */
  --space-0: #04060e;
  --space-1: #070b18;
  --space-2: #0b1024;
  --space-3: #121736;
  --nebula-violet: #2a2356;
  --nebula-blue: #16234d;

  /* Encres */
  --ink-hi: #eef0fb;
  --ink-mid: #b8bdd9;
  --ink-low: #767d9e;

  /* Or champagne — avec parcimonie : filets, lettrines, instants */
  --gold: #d8bc8a;
  --gold-hi: #efdcb4;
  --gold-dim: rgba(216, 188, 138, 0.42);
  --gold-hairline: rgba(216, 188, 138, 0.22);

  /* Accent céleste */
  --star-blue: #9db4ff;
  --halo: rgba(157, 180, 255, 0.35);

  /* Verre */
  --glass: rgba(9, 13, 30, 0.62);
  --glass-heavy: rgba(8, 11, 26, 0.86);
  --glass-line: rgba(255, 255, 255, 0.075);

  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Outfit', 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --radius: 18px;
  --radius-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--space-0);
  color: var(--ink-hi);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* les lueurs décoratives (voile focal du héros, halos) dépassent des bords
     par conception : sans ce clip, elles élargissaient la page sur mobile
     (375 → 424 px, tangage horizontal + menu « coupé », relevé d'Elvis).
     clip et non hidden : aucun conteneur de défilement parasite. */
  overflow-x: clip;
}

::selection { background: rgba(216, 188, 138, 0.25); color: var(--ink-hi); }

a { color: var(--gold); text-decoration: none; transition: color 0.3s var(--ease-out); }
a:hover { color: var(--gold-hi); }

/* ---------- Typographie cérémonielle ---------- */

.serif { font-family: var(--serif); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

h1, h2, h3, .h-serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--ink-hi);
}

.gold-rule {
  width: 42px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border: 0; margin: 1.1rem 0;
}

/* ---------- Boutons : bijouterie, pas e-commerce ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9em 1.9em;
  border-radius: 999px;
  border: 1px solid var(--gold-hairline);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.45s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn:hover {
  border-color: var(--gold);
  color: var(--gold-hi);
  box-shadow: 0 0 24px rgba(216, 188, 138, 0.12), inset 0 0 18px rgba(216, 188, 138, 0.05);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.btn--full {
  background: linear-gradient(135deg, rgba(216,188,138,0.16), rgba(216,188,138,0.06));
  border-color: var(--gold-dim);
  color: var(--gold-hi);
}
.btn--ghost { border-color: var(--glass-line); color: var(--ink-mid); letter-spacing: 0.14em; }
.btn--ghost:hover { border-color: var(--ink-low); color: var(--ink-hi); box-shadow: none; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* ---------- Verre ---------- */

.glass {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

/* ---------- Champs ---------- */

.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field input { width: 100%; }
.field label {
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-low);
}
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-hi);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  padding: 0.75em 1em;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-dim);
  background: rgba(255, 255, 255, 0.055);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-low); font-weight: 300; }
.field textarea { resize: vertical; min-height: 72px; }
.field .hint { font-size: 0.72rem; color: var(--ink-low); letter-spacing: 0.02em; }

input[type="date"] { color-scheme: dark; }

.check { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; }
.check input {
  appearance: none; flex: 0 0 auto;
  width: 18px; height: 18px; margin-top: 2px;
  border: 1px solid var(--gold-hairline); border-radius: 5px;
  background: transparent; cursor: pointer;
  transition: all 0.25s var(--ease-out);
  position: relative;
}
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after {
  content: ''; position: absolute; inset: 3px 5px 6px 5px;
  border: solid var(--space-1); border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.check span { font-size: 0.85rem; color: var(--ink-mid); }

/* ---------- Mention légale : visible, élégante, partout ---------- */

.disclaimer {
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--ink-low);
  border-left: 2px solid var(--gold-hairline);
  padding: 0.35rem 0 0.35rem 0.9rem;
  letter-spacing: 0.01em;
}

/* ---------- Scrollbar discrète ---------- */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.09); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(216,188,138,0.25); }

/* ============================================================
   Page ciel (accueil) — le ciel plein écran, l'interface flotte
   ============================================================ */

/* Deux modes : vitrine défilante (landing) / exploration immersive (sky) */
.sky-page { min-height: 100vh; }
.sky-page.mode-sky { overflow: hidden; height: 100vh; }
.mode-landing #sky-canvas { pointer-events: none; }
.mode-sky #landing-content,
.mode-sky .sky-invite, .mode-sky .hero-ctas, .mode-sky .scroll-cue { display: none; }
.mode-landing .sky-exit, .mode-landing .sky-footer { display: none; }

#sky-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
  z-index: 0;
}
#sky-canvas.dragging { cursor: grabbing; }
#sky-canvas.star-hover { cursor: pointer; }

/* Réalité augmentée mobile : le flux caméra arrière se place DERRIÈRE le canvas
   (rendu transparent) — les étoiles se superposent au monde réel. */
.sky-ar-cam {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #000;
  pointer-events: none;          /* les taps continuent d'atteindre le ciel */
  /* on assombrit le flux caméra : en plein jour, un ciel clair « effacerait »
     les étoiles ; dimmé, elles et les constellations ressortent nettement
     (comme les applis AR de ciel), tout en laissant voir l'environnement. */
  filter: brightness(0.5) contrast(1.05);
}
body.sky-ar #sky-canvas { z-index: 1; background: transparent !important; }

/* --- En-tête flottant, minimal --- */

.sky-header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 2rem;
  z-index: 30;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4,6,14,0.55), transparent);
}
.sky-header > * { pointer-events: auto; }

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-hi);
}
.brand em { font-style: normal; color: var(--gold); }
.brand .brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--ink-low);
  margin-top: 0.1rem;
}

.sky-nav { display: flex; gap: 1.6rem; align-items: center; }
.sky-nav a {
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mid);
}
.sky-nav a:hover { color: var(--gold-hi); }
/* la recherche à droite, le menu après elle (l'ordre du DOM fait le reste) ;
   le column-gap respire entre recherche et liens (relevé d'Elvis : collés) */
.sky-header { column-gap: 1.6rem; }
.sky-header .star-search { margin-left: auto; }

/* ============================================================
   MENU MOBILE/TABLETTE — le burger déplie la navigation
   (relevé d'Elvis : le menu débordait, « MON COMPTE » coupé)
   ============================================================ */
.nav-burger {
  display: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-line); border-radius: 10px;
  color: var(--ink-hi); cursor: pointer;
  width: 2.5rem; height: 2.5rem;
  align-items: center; justify-content: center;
  transition: border-color 0.3s, color 0.3s;
}
.nav-burger svg { width: 1.25rem; height: 1.25rem; }
.nav-burger:hover, .nav-burger.on { color: var(--gold-hi); border-color: var(--gold-hairline); }
@media (max-width: 880px) {
  .nav-burger { display: inline-flex; }
  .page-header, .sky-header { flex-wrap: wrap; row-gap: 0.8rem; }
  /* le menu devient un panneau de verre, pleine largeur, DANS le flux
     (jamais par-dessus le contenu : zéro chevauchement) */
  .sky-nav {
    display: none;
    flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 0;
    background: rgba(7, 10, 20, 0.92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--glass-line); border-radius: 14px;
    padding: 0.4rem;
  }
  .sky-nav.open { display: flex; animation: nav-drop 0.3s var(--ease-out); }
  .sky-nav a {
    padding: 0.85rem 1rem; border-radius: 10px;
    font-size: 0.78rem;
  }
  .sky-nav a:hover { background: rgba(216,188,138,0.08); }
  .sky-nav a + a { border-top: 1px solid rgba(255,255,255,0.04); }
  /* accueil : la recherche prend sa propre ligne, toujours visible */
  .sky-header { padding: 1rem 1rem 0.9rem; }
  .sky-header .star-search { flex-basis: 100%; order: 3; margin-left: 0; }
  .sky-header .star-search input, .sky-header .star-search input:focus { width: 100%; }
  .sky-header .star-search .results { left: 0; right: 0; width: auto; }
  .sky-nav { order: 4; }
  .page-header { padding: 1rem 1.2rem; }
}
@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Héro plein ciel --- */

.sky-hero {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6.5rem 1rem 1.2rem;
  /* le héros recouvre le canvas : il doit laisser passer les gestes
     vers le ciel — seuls ses éléments interactifs les capturent */
  pointer-events: none;
}
.sky-hero .date-bar,
.sky-hero .hero-ctas,
.sky-hero .scroll-cue { pointer-events: auto; }
.hero-spacer { flex: 1; }

.hero-ctas {
  display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.8rem;
  pointer-events: auto;
}

.scroll-cue {
  margin-top: 1.6rem;
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: var(--ink-low);
  font-family: var(--sans); font-size: 0.62rem;
  letter-spacing: 0.34em; text-transform: uppercase;
  transition: color 0.3s;
}
.scroll-cue:hover { color: var(--gold); }
.scroll-cue svg { animation: cue-bob 2.4s var(--ease-in-out) infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.sky-exit {
  position: fixed; top: 5.2rem; right: 1.6rem;
  z-index: 45;
  border-radius: 999px;
  padding: 0.55em 1.3em;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mid);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, right 0.65s var(--ease-out);
}
.sky-exit:hover { color: var(--gold-hi); border-color: var(--gold-hairline); }
/* panneau ouvert : le bouton s'écarte à sa gauche au lieu de le chevaucher */
body.panel-open .sky-exit { right: calc(min(430px, 100vw - 3.2rem) + 2.6rem); }
@media (max-width: 640px) {
  /* mobile : le panneau monte du bas, le bouton reste à sa place en haut */
  body.panel-open .sky-exit { right: 0.9rem; }
}

.sky-invite {
  text-align: center;
  z-index: 20;
  pointer-events: none;
  max-width: min(92vw, 640px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  position: relative;
}
/* LE SCEAU « Certifié AstrAI » du certificat, posé de biais sur le coin du
   héros — tampon d'authenticité, discret mais indiscutable */
.hero-seal {
  position: absolute;
  top: clamp(-2.6rem, -4vw, -1.6rem);
  right: clamp(-2.2rem, -3vw, -1rem);
  width: clamp(84px, 11vw, 124px); height: auto;
  transform: rotate(12deg);
  filter: drop-shadow(0 4px 18px rgba(216, 188, 138, 0.3));
  opacity: 0.92;
  animation: seal-in 1.1s var(--ease-out) 0.5s backwards;
}
@keyframes seal-in {
  from { opacity: 0; transform: rotate(12deg) scale(1.35); }
  to { opacity: 0.92; transform: rotate(12deg) scale(1); }
}
@media (max-width: 700px) {
  /* mobile : posé en tête, centré — même repli que sur le certificat
     (en absolu il chevauchait la recherche et l'accroche) */
  .hero-seal {
    position: static; display: block;
    margin: 0 auto 0.7rem; width: 72px;
    transform: rotate(-8deg);
  }
  @keyframes seal-in {
    from { opacity: 0; transform: rotate(-8deg) scale(1.35); }
    to { opacity: 0.92; transform: rotate(-8deg) scale(1); }
  }
}
.mode-sky .hero-seal { display: none; }
/* MOBILE : le contenu du héros est dense — on le resserre pour que « Découvrir »
   reste à l'écran, même avec le bandeau promo sur deux lignes. Le padding haut
   qui réserve la place du header+bandeau est fixé plus bas (après la règle
   .sky-page .sky-hero du bandeau promo, pour l'emporter dans la cascade). */
@media (max-width: 640px) {
  .sky-hero .hero-ctas { margin-top: 1rem; gap: 0.55rem; }
  .sky-hero .scroll-cue { margin-top: 0.8rem; }
  .sky-invite { max-width: 96vw; }
  .sky-invite .eyebrow { margin-top: 0.5rem; margin-bottom: 0.5rem; }
  .sky-invite p { margin-top: 0.6rem; margin-bottom: 0.6rem; font-size: 0.9rem; }
  /* les gages de confiance (Trustpilot ★) sont repris dans la section Avis
     juste en dessous : sur mobile on les masque ici pour garder le héros
     dans l'écran, « Découvrir » compris */
  .sky-invite .hero-trust { display: none; }
}
/* VOILE FOCAL (lisibilité du héros) — v3, retours d'Elvis (« on voit les
   délimitations de l'alvéole »). Les dégradés CSS créent des marches de
   couleur (banding) sur fond sombre : l'œil trace le bord de l'ellipse,
   quel que soit le nombre de paliers. On abandonne le dégradé : une forme
   PLEINE passée dans un VRAI flou gaussien — fondu physiquement lisse,
   aucun contour traçable. */
.sky-invite::before {
  content: '';
  position: absolute;
  inset: -2.5rem -4rem;
  background: rgba(4, 6, 14, 0.5);
  border-radius: 999px;
  filter: blur(72px);
  z-index: -1;
  pointer-events: none;
}
.sky-invite.hidden { opacity: 0; transform: translateY(-18px); pointer-events: none !important; }
.mode-sky .sky-invite { display: none; }
.sky-invite h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  font-weight: 400;
  text-shadow: 0 2px 30px rgba(4, 6, 14, 0.9);
}
.sky-invite h1 em { font-style: italic; color: var(--gold-hi); }
.sky-invite p {
  color: var(--ink-mid);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 18px rgba(4, 6, 14, 0.9);
}

/* --- Barre « recherche par date » : LE geste central --- */

.date-bar {
  position: relative;
  z-index: 25;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.55rem 0.65rem 0.55rem 1.5rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
  transition: box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
/* en exploration, la recherche de date vit dans le panneau Calques (comme
   l'app) : la barre flottante disparaît au lieu de chevaucher le pied de carte */
.mode-sky .date-bar { display: none; }
.date-bar:focus-within {
  border-color: var(--gold-hairline);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 42px rgba(216,188,138,0.07);
}
.date-bar .date-label {
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-low);
  white-space: nowrap;
}
.date-bar input[type="date"] {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink-hi);
  background: transparent; border: none; outline: none;
  padding: 0.3em 0.2em;
  width: 11.5ch;
}
.date-bar .btn { padding: 0.75em 1.5em; white-space: nowrap; }

@media (max-width: 640px) {
  .date-bar { flex-wrap: wrap; justify-content: center; gap: 0.5rem; border-radius: var(--radius); padding: 0.65rem 1rem; width: min(92vw, 420px); bottom: 5%; }
  .date-bar .date-label { width: 100%; text-align: center; }
  .date-bar input[type="date"] { font-size: 1.05rem; padding: 0.15em 0.2em; }
  .date-bar .btn { padding: 0.6em 1.3em; }
}

/* --- Ruban contextuel après voyage temporel --- */

.sky-ribbon {
  /* sous la ligne « Quitter l'exploration » : jamais de chevauchement */
  position: fixed; left: 50%; top: 8.2rem;
  transform: translateX(-50%);
  z-index: 24;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--gold-hi);
  text-align: center;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
  pointer-events: none;
  /* réserve la place de la carte d'observation à gauche : passe à la ligne
     plutôt que de chevaucher (sous 640 px, la carte descend en bas → 92vw) */
  max-width: calc(100vw - 28rem);
}
@media (max-width: 640px) {
  .sky-ribbon { max-width: 92vw; }
}
.sky-ribbon.visible { opacity: 1; pointer-events: auto; }
.sky-ribbon button {
  background: none; border: none; color: var(--ink-low);
  font-family: var(--sans); font-size: 0.7rem; cursor: pointer;
  margin-left: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.sky-ribbon button:hover { color: var(--ink-hi); }

/* --- Recherche d'étoile par nom --- */

.star-search { position: relative; }
.star-search input {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 300;
  color: var(--ink-hi);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: 0.55em 1.1em;
  width: 13rem;
  transition: width 0.4s var(--ease-out), border-color 0.3s;
}
.star-search input:focus { outline: none; width: 16rem; border-color: var(--gold-hairline); }
.star-search .results {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 19rem; max-height: 300px; overflow-y: auto;
  z-index: 60;
  padding: 0.4rem;
  display: none;
}
.star-search .results.open { display: block; }
.star-search .results button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem;
  width: 100%;
  background: none; border: none; cursor: pointer;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--ink-hi);
  font-family: var(--sans); font-size: 0.85rem; font-weight: 300;
  text-align: left;
  transition: background 0.2s;
}
.star-search .results button:hover { background: rgba(255,255,255,0.05); }
.star-search .results .cid { color: var(--ink-low); font-size: 0.72rem; }
.star-search .results .taken { color: var(--ink-low); font-size: 0.68rem; font-style: italic; }

/* --- Panneau latéral (étoile / packs / formulaire / paiement) --- */

.side-panel {
  position: fixed; top: 5.5rem; right: 1.6rem; bottom: 1.6rem;
  width: min(430px, calc(100vw - 3.2rem));
  z-index: 40;
  display: flex; flex-direction: column;
  transform: translateX(calc(100% + 2rem));
  transition: transform 0.65s var(--ease-out);
  overflow: hidden;
}
.side-panel.open { transform: translateX(0); }
.side-panel .panel-scroll { overflow-y: auto; padding: 3.4rem 1.7rem 1.8rem; flex: 1; }
/* Fermer du panneau d'étoile À GAUCHE : à droite il passait SOUS le bouton
   « Quitter l'exploration ». Le contenu gagne un peu d'espace en tête (padding
   ci-dessus) pour ne pas passer derrière la pastille. */
.side-panel .panel-close { left: 0.9rem; right: auto; }

.panel-close {
  position: absolute; top: 0.9rem; right: 0.9rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: rgba(0,0,0,0.25);
  color: var(--ink-mid);
  font-size: 1rem; line-height: 1;
  cursor: pointer; z-index: 5;
  transition: all 0.3s var(--ease-out);
}
.panel-close:hover { color: var(--ink-hi); border-color: var(--ink-low); transform: rotate(90deg); }

@media (max-width: 640px) {
  .side-panel {
    top: auto; right: 0; left: 0; bottom: 0;
    width: 100%;
    max-height: 78vh;
    border-radius: var(--radius) var(--radius) 0 0;
    transform: translateY(105%);
  }
  .side-panel.open { transform: translateY(0); }
}

/* --- Fiche étoile --- */

.star-card .star-name-main {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
}
.star-card .star-cid { color: var(--ink-low); font-size: 0.8rem; letter-spacing: 0.12em; margin-top: 0.2rem; }

.star-facts {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.2rem;
  margin: 1.4rem 0;
}
.star-facts .fact .k {
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-low);
}
.star-facts .fact .v { font-family: var(--serif); font-size: 1.12rem; color: var(--ink-hi); }
.star-facts .fact .v small { font-size: 0.75rem; color: var(--ink-mid); font-family: var(--sans); }

/* Fiche corps céleste (Lune, planètes, Soleil) */
.body-face {
  display: flex; justify-content: center;
  margin: 1.1rem 0 0.2rem;
  min-height: 100px;
}
.body-face canvas {
  border-radius: 50%;
  box-shadow: 0 0 44px rgba(157, 180, 255, 0.18), 0 12px 40px rgba(0, 0, 0, 0.5);
  max-width: 220px;
}
.sun-disc {
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, #fffdf4, #ffedbb 55%, #f5c86a 85%, #e8a94e);
  box-shadow: 0 0 70px rgba(255, 226, 150, 0.55);
}

/* Exoplanètes dans la fiche étoile */
.exo-block {
  border: 1px solid rgba(140, 215, 190, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-top: 1rem;
  background: rgba(140, 215, 190, 0.04);
}
.exo-line { font-size: 0.8rem; color: var(--ink-mid); margin: 0.25rem 0; }
.exo-line strong { color: var(--ink-hi); font-weight: 500; }
.exo-earthlike {
  font-style: normal; font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #8cd7be;
  border: 1px solid rgba(140, 215, 190, 0.4);
  border-radius: 999px;
  padding: 0.1em 0.6em;
}

/* Photographie réelle dans la fiche satellite */
.sat-photo { margin: 1rem 0 0; }
.sat-photo img { width: 100%; border-radius: var(--radius-sm); display: block; }
.sat-photo figcaption { font-size: 0.66rem; color: var(--ink-low); margin-top: 0.4rem; letter-spacing: 0.04em; }

/* Garde d'horizon : l'astre est couché — on le dit, on ne montre pas du noir */
.horizon-note {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.84rem; line-height: 1.55; color: var(--ink-mid);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.07), rgba(212, 175, 55, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  margin: 0.9rem 0 0;
}

/* « La lumière que vous voyez… » — vrai et émouvant */
.light-fact {
  font-style: italic;
  font-size: 1.02rem;
  color: var(--gold-hi);
  border-top: 1px solid var(--glass-line);
  padding-top: 0.9rem;
  margin: 0.4rem 0 0.9rem;
}

.availability {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.4em 1em;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
}
.availability .dot { width: 7px; height: 7px; border-radius: 50%; }
.availability.libre { color: #9fd8b0; }
.availability.libre .dot { background: #58c07a; box-shadow: 0 0 8px rgba(88,192,122,0.8); }
.availability.prise { color: var(--ink-low); }
.availability.prise .dot { background: var(--ink-low); }

/* --- Packs --- */

.packs-list { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.2rem; }
.pack {
  position: relative;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  background: rgba(255,255,255,0.018);
}
.pack:hover { border-color: var(--gold-hairline); transform: translateY(-2px); background: rgba(255,255,255,0.035); }
.pack.selected {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(216,188,138,0.09), rgba(216,188,138,0.02));
  box-shadow: 0 0 32px rgba(216,188,138,0.09);
}
.pack .pack-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pack h3 { font-size: 1.22rem; font-weight: 500; }
.pack .price { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-hi); white-space: nowrap; }
.pack .tagline { font-size: 0.82rem; color: var(--ink-mid); margin: 0.25rem 0 0; font-weight: 300; }
.pack .badge {
  position: absolute; top: -9px; left: 1rem;
  font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--space-1);
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
  padding: 0.25em 0.9em;
  border-radius: 999px;
}
.pack.highlight { border-color: var(--gold-dim); }
/* offre désactivée : présente, désirable, mais grisée — non sélectionnable */
.pack--soon { opacity: 0.5; cursor: default; filter: saturate(0.55); }
.pack--soon:hover { transform: none; border-color: var(--glass-line); background: rgba(255,255,255,0.018); }
.pack .badge--soon {
  left: auto; right: 1rem;
  background: none;
  border: 1px solid var(--gold-hairline);
  color: var(--gold-hi);
}
.pack ul { margin: 0.7rem 0 0; padding: 0; list-style: none; display: none; }
.pack.selected ul { display: block; }
.pack ul li {
  font-size: 0.78rem; color: var(--ink-mid);
  padding: 0.22rem 0 0.22rem 1.1rem;
  position: relative;
}
.pack ul li::before {
  content: '✦'; position: absolute; left: 0; top: 0.22rem;
  color: var(--gold-dim); font-size: 0.6rem;
}

/* --- Checkout : formulaire + aperçu live --- */

.form-grid { display: flex; flex-direction: column; gap: 1.05rem; margin-top: 1.2rem; }
.form-grid[hidden] { display: none; }

.cert-preview {
  margin-top: 1.3rem;
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.2rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(42,35,86,0.5), transparent),
    linear-gradient(180deg, var(--space-2), var(--space-1));
  position: relative;
  overflow: hidden;
}
.cert-preview::before {
  content: ''; position: absolute; inset: 7px;
  border: 1px solid rgba(216,188,138,0.14);
  border-radius: 9px;
  pointer-events: none;
}
.cert-preview .cp-brand { font-size: 0.6rem; letter-spacing: 0.4em; color: var(--gold-dim); text-transform: uppercase; }
.cert-preview .cp-name {
  font-family: var(--serif); font-style: italic;
  font-size: 1.65rem; color: var(--gold-hi);
  margin: 0.45rem 0 0.1rem;
  min-height: 1.3em;
  overflow-wrap: break-word;
}
.cert-preview .cp-cid { font-size: 0.7rem; color: var(--ink-mid); letter-spacing: 0.18em; }
.cert-preview .cp-dedic {
  font-family: var(--serif); font-size: 0.92rem; font-style: italic;
  color: var(--ink-mid); margin-top: 0.7rem;
  min-height: 1.2em;
}
.cert-preview .cp-date { font-size: 0.66rem; color: var(--ink-low); letter-spacing: 0.2em; text-transform: uppercase; margin-top: 0.7rem; }

/* --- Paiement --- */

.pay-summary {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.9rem 0; margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--glass-line);
}
.pay-summary .what { font-size: 0.85rem; color: var(--ink-mid); }
.pay-summary .amount { font-family: var(--serif); font-size: 1.7rem; color: var(--gold-hi); }

.reservation-timer {
  font-size: 0.72rem; color: var(--ink-low);
  text-align: center; letter-spacing: 0.08em;
  margin-top: 0.8rem;
}
.reservation-timer strong { color: var(--gold); font-weight: 500; }

.mock-pay-note {
  font-size: 0.7rem; color: var(--ink-low);
  border: 1px dashed var(--glass-line); border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem; margin-top: 0.9rem;
}

#stripe-element { margin: 1rem 0; min-height: 40px; }

.pay-error {
  color: #e39a9a; font-size: 0.82rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(227,154,154,0.25); border-radius: var(--radius-sm);
  background: rgba(227,154,154,0.06);
  margin-top: 0.8rem;
  display: none;
}
.pay-error.visible { display: block; }

/* --- Révélation : le moment --- */

.reveal-overlay {
  position: fixed; inset: 0; z-index: 80;
  display: none;
  align-items: flex-end; justify-content: center;
  padding-bottom: 9vh;
  pointer-events: none;
}
@media (max-height: 620px) { .reveal-overlay { align-items: center; padding-bottom: 0; } }
.reveal-overlay.active { display: flex; }
.reveal-content {
  text-align: center;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 1.6s var(--ease-out), transform 1.6s var(--ease-out);
  pointer-events: auto;
  padding: 2rem;
  max-width: min(92vw, 640px);
}
.reveal-content.shown { opacity: 1; transform: translateY(0) scale(1); }
.reveal-content .eyebrow { margin-bottom: 0.8rem; }
.reveal-content .reveal-name {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  color: var(--gold-hi);
  text-shadow: 0 0 60px rgba(216,188,138,0.35);
  line-height: 1.05;
}
.reveal-content .reveal-sub {
  font-family: var(--serif); font-size: 1.05rem; font-style: italic;
  color: var(--ink-mid); margin-top: 0.8rem;
}
.reveal-actions {
  display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.2rem;
  opacity: 0; transition: opacity 1s var(--ease-out) 0.9s;
}
.reveal-content.shown .reveal-actions { opacity: 1; }

/* --- Chargement : constellation qui se forme --- */

.sky-loading {
  position: fixed; inset: 0; z-index: 100;
  background: var(--space-0);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.6rem;
  transition: opacity 0.9s var(--ease-out);
}
.sky-loading.done { opacity: 0; pointer-events: none; }
.sky-loading svg { width: 190px; height: 130px; overflow: visible; }
.sky-loading .cline {
  stroke: var(--gold-dim); stroke-width: 0.8; fill: none;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: constellation-draw 2.6s var(--ease-in-out) infinite;
}
.sky-loading .cstar { fill: var(--ink-hi); animation: cstar-pulse 2.6s ease-in-out infinite; }
.sky-loading p {
  font-size: 0.66rem; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--ink-low);
}
@keyframes constellation-draw {
  0% { stroke-dashoffset: 400; opacity: 0.3; }
  55%, 80% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes cstar-pulse { 0%, 100% { opacity: 0.35; } 55% { opacity: 1; } }

/* --- Pied de ciel : disclaimer + géoloc --- */

.sky-footer {
  position: fixed; left: 1.6rem; bottom: 1.4rem;
  z-index: 22;
  max-width: 330px;
  display: flex; flex-direction: column; gap: 0.6rem;
  pointer-events: none;
}
.sky-footer > * { pointer-events: auto; }
.sky-footer .disclaimer {
  background: rgba(4,6,14,0.55);
  backdrop-filter: blur(8px);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding-right: 0.8rem;
}
.locate-btn {
  align-self: flex-start;
  background: none; border: none; cursor: pointer;
  color: var(--ink-low);
  font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.2em 0;
  transition: color 0.3s;
}
.locate-btn:hover { color: var(--gold); }

@media (max-width: 640px) {
  .sky-footer { left: 0.9rem; right: 0.9rem; bottom: 0.9rem; max-width: none; gap: 0.35rem; }
  .sky-footer .disclaimer { font-size: 0.6rem; }
  /* exploration mobile : la disposition des contrôles flottants est
     CONSOLIDÉE dans le bloc « exploration mobile » en fin de section
     contrôles (après toutes les règles de base, sinon elles gagnent) */
  .sky-header { padding: 0.9rem 1.1rem; flex-wrap: wrap; gap: 0.6rem; }
  .sky-nav { gap: 0.9rem; flex-wrap: wrap; justify-content: flex-end; }
  .sky-nav a { font-size: 0.62rem; }
  .brand { font-size: 1.05rem; }
  .brand .brand-sub { display: none; }
  .star-search { order: 5; width: 100%; }
  .star-search input, .star-search input:focus { width: 100%; }
  .star-search .results { left: 0; right: 0; width: auto; }
  .sky-invite { top: 22%; }
  .sky-ribbon { font-size: 0.88rem; }
}

/* ============================================================
   Pages de contenu (galerie, légal, compte, certificat…)
   ============================================================ */

.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 55% at 70% -10%, rgba(42,35,86,0.55), transparent),
    radial-gradient(ellipse 70% 45% at 10% 108%, rgba(22,35,77,0.5), transparent),
    linear-gradient(180deg, var(--space-1), var(--space-0));
  position: relative;
}
.page-shell::before {
  /* champ d'étoiles statique discret */
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(238,240,251,0.7), transparent),
    radial-gradient(1px 1px at 34% 8%, rgba(238,240,251,0.45), transparent),
    radial-gradient(1.5px 1.5px at 56% 31%, rgba(216,188,138,0.5), transparent),
    radial-gradient(1px 1px at 71% 14%, rgba(238,240,251,0.6), transparent),
    radial-gradient(1px 1px at 88% 41%, rgba(157,180,255,0.5), transparent),
    radial-gradient(1px 1px at 23% 64%, rgba(238,240,251,0.4), transparent),
    radial-gradient(1.5px 1.5px at 64% 72%, rgba(238,240,251,0.55), transparent),
    radial-gradient(1px 1px at 43% 89%, rgba(157,180,255,0.4), transparent),
    radial-gradient(1px 1px at 92% 83%, rgba(238,240,251,0.5), transparent),
    radial-gradient(1px 1px at 8% 92%, rgba(216,188,138,0.35), transparent);
  pointer-events: none;
}

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem clamp(1.2rem, 5vw, 4rem);
  position: relative; z-index: 2;
}
.page-main {
  position: relative; z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.2rem, 5vw, 2rem) 4rem;
}
.page-main.narrow { max-width: 760px; }

.page-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; }
.page-title em { font-style: italic; color: var(--gold-hi); }
.page-intro { color: var(--ink-mid); max-width: 56ch; font-weight: 300; }

.page-footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--glass-line);
  padding: 2rem clamp(1.2rem, 5vw, 4rem) 2.6rem;
  display: flex; flex-wrap: wrap; gap: 1.8rem;
  justify-content: space-between;
  font-size: 0.78rem; color: var(--ink-low);
}
.page-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.page-footer a { color: var(--ink-low); font-size: 0.78rem; }
.page-footer a:hover { color: var(--gold); }
.page-footer .disclaimer { max-width: 520px; }

/* --- Galerie --- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.2rem;
  margin-top: 2.2rem;
}
.gallery-card {
  display: block;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.3rem;
  background: linear-gradient(170deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  transition: all 0.45s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.gallery-card::after {
  content: '✦';
  position: absolute; top: 1rem; right: 1.1rem;
  color: var(--gold-dim); font-size: 0.8rem;
  transition: all 0.45s var(--ease-out);
}
.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-hairline);
  box-shadow: 0 18px 48px rgba(0,0,0,0.4);
}
.gallery-card:hover::after { color: var(--gold-hi); text-shadow: 0 0 12px rgba(216,188,138,0.6); }
.gallery-card .g-name {
  font-family: var(--serif); font-style: italic;
  font-size: 1.45rem; font-weight: 500;
  color: var(--ink-hi); line-height: 1.15;
}
.gallery-card .g-cid { font-size: 0.68rem; color: var(--ink-low); letter-spacing: 0.16em; margin-top: 0.3rem; }
.gallery-card .g-msg {
  font-size: 0.84rem; color: var(--ink-mid); font-weight: 300;
  margin-top: 0.8rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-card .g-meta { font-size: 0.66rem; color: var(--ink-low); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 1rem; }

.pagination { display: flex; gap: 0.6rem; justify-content: center; margin-top: 2.5rem; }

/* --- Prose légale --- */

.prose { color: var(--ink-mid); font-weight: 300; }
.prose h2 { font-size: 1.45rem; margin: 2.2rem 0 0.6rem; font-weight: 500; }

/* --- Guide (wiki) : sommaire en chips + tableau de gamme --- */
.guide-toc {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin: 1.6rem 0 0.4rem;
}
.guide-toc a {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mid); text-decoration: none;
  border: 1px solid var(--glass-line); border-radius: 999px;
  padding: 0.4em 1em;
  transition: color 0.25s, border-color 0.25s;
}
.guide-toc a:hover { color: var(--gold-hi); border-color: var(--gold-hairline); }
.prose h2[id] { scroll-margin-top: 5.5rem; }
.guide-table {
  width: 100%; border-collapse: collapse; margin: 1rem 0 0;
  font-size: 0.85rem;
}
.guide-table th {
  text-align: left; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-low); font-weight: 500; padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--glass-line);
}
.guide-table td { padding: 0.65rem 0.7rem; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--ink-mid); }
.guide-table td.serif { color: var(--ink-hi); font-size: 1rem; }
.guide-table tr.soon { opacity: 0.55; }
@media (max-width: 640px) {
  .guide-table { display: block; overflow-x: auto; }
}
.prose h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }
.prose p, .prose li { font-size: 0.92rem; line-height: 1.75; }
.prose strong { color: var(--ink-hi); font-weight: 500; }

/* --- Connexion / compte --- */

.auth-card { max-width: 420px; margin: 3rem auto; padding: 2.2rem 2rem; }
.auth-divider {
  display: flex; align-items: center; gap: 1rem;
  color: var(--ink-low); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  margin: 1.4rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--glass-line);
}
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  width: 100%;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 400;
  color: var(--ink-hi);
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.btn-google:hover { background: rgba(255,255,255,0.09); border-color: var(--ink-low); }

.order-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.order-row .o-name { font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.order-row .o-meta { font-size: 0.72rem; color: var(--ink-low); letter-spacing: 0.1em; }

/* ============================================================
   Dashboard client (« Mon espace »)
   ============================================================ */


.dash-chip {
  text-align: left;
  background: rgba(4,6,14,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-hairline);
  border-radius: 999px;
  color: var(--gold-hi);
  font-family: var(--serif); font-style: italic; font-size: 0.95rem;
  padding: 0.4em 1.1em;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-chip:hover { border-color: var(--gold); transform: translateX(3px); }

.dash-params { max-width: 560px; }
.param-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-line);
}
.param-row .k {
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-low);
  margin-bottom: 0.25rem;
}
.param-row .v { color: var(--ink-hi); font-size: 0.95rem; }

@media (max-width: 640px) {
}

/* --- Toast --- */

.toast {
  position: fixed; bottom: 1.6rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 120;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-hi);
  opacity: 0;
  transition: all 0.45s var(--ease-out);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   Landing : sections marketing qui glissent sur le ciel
   ============================================================ */

#landing-content {
  position: relative;
  z-index: 5;
  background: linear-gradient(180deg, rgba(4,6,14,0) 0%, rgba(4,6,14,0.92) 3.5%, rgba(7,11,24,0.985) 9%, var(--space-1) 20%);
}

.land-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.2rem, 5vw, 2rem);
  text-align: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.land-section.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .land-section { opacity: 1; transform: none; }
}

.land-title {
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  font-weight: 400;
}
.land-title em { font-style: italic; color: var(--gold-hi); }
.land-section .gold-rule { margin: 1.4rem auto; }
.land-intro { color: var(--ink-mid); max-width: 58ch; margin: 0 auto; font-weight: 300; }
.land-intro a { border-bottom: 1px solid var(--gold-hairline); }

/* --- La Collection (vitrine produits, section accueil paramétrable) --- */
/* les 4 visuels ont un fond quasi noir : object-fit:contain les montre EN ENTIER
   et le letterbox se fond dans le dégradé sombre — effet galerie, zéro rognage. */
.showcase-hero {
  position: relative;
  margin: 2.6rem auto 0;
  max-width: 1000px;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gold-hairline);
  background: radial-gradient(120% 100% at 50% 0%, #0b1128, #05070f 72%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.showcase-hero::after { /* filet or intérieur : cadre de galerie */
  content: ''; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid var(--gold-hairline); border-radius: calc(var(--radius) - 8px);
}
.showcase-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1.5rem;
}
.showcase-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.006));
  transition: transform 0.45s var(--ease-out), border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.showcase-card:hover { transform: translateY(-5px); border-color: var(--gold-hairline); box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42); }
.showcase-shot {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 15%, #0a1024, #04060e);
}
.showcase-body { padding: 1.2rem 1.3rem 1.4rem; text-align: left; display: flex; flex-direction: column; flex: 1; }
.showcase-body h3 { font-size: 1.32rem; font-weight: 500; color: var(--gold-hi); margin: 0 0 0.4rem; }
.showcase-body p { font-size: 0.86rem; color: var(--ink-mid); font-weight: 300; line-height: 1.6; margin: 0 0 1.1rem; }
/* prix/disponibilité EMPILÉ au-dessus d'un bouton pleine largeur : plus jamais
   coupé, et identique en responsive (le bouton prend toute la carte). */
.showcase-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.showcase-price { font-size: 1.35rem; color: var(--gold-hi); line-height: 1; }
.showcase-price--soon { font-size: 0.9rem; color: var(--ink-low); letter-spacing: 0.02em; }
.showcase-foot .btn { width: 100%; text-align: center; }
/* repli élégant tant qu'un visuel n'est pas téléversé */
.sc-ph {
  position: absolute; inset: 0; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem;
  color: var(--ink-low); font-size: 0.8rem; letter-spacing: 0.04em;
}
.sc-ph-mark { color: var(--gold-dim); font-size: 1.9rem; }
/* mention « non contractuel » — volontairement TRÈS discrète */
.showcase-note { margin: 1.1rem auto 0; max-width: 60ch; text-align: center; font-size: 0.62rem; line-height: 1.4; color: var(--ink-low); opacity: 0.7; font-weight: 300; }
.sc-empty .showcase-img { display: none; }
.sc-empty .sc-ph { display: flex; }
/* mise en lumière de l'écrin visé au clic sur « Découvrir l'écrin » */
@keyframes ecrinFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 188, 138, 0); }
  22% { box-shadow: 0 0 0 3px var(--gold-dim), 0 22px 54px rgba(0, 0, 0, 0.42); }
}
.ecrin--flash { animation: ecrinFlash 2.1s var(--ease-out); border-color: var(--gold-dim); }
@media (prefers-reduced-motion: reduce) { .ecrin--flash { animation: none; } }
/* l'écrin visé s'arrête sous le header flottant (repli lien-ancre sans JS) */
.ecrin { scroll-margin-top: 6rem; }
/* tablette : 3 → 2 colonnes */
@media (max-width: 860px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-hero { aspect-ratio: 3 / 2; }
}
/* mobile : 1 colonne, cartes plus larges, visuels moins hauts */
@media (max-width: 560px) {
  .showcase-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .showcase-shot { aspect-ratio: 5 / 4; }
}

/* --- Trois gestes --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2.6rem;
  text-align: left;
}
.step {
  border-top: 1px solid var(--gold-hairline);
  padding-top: 1.4rem;
}
.step-num {
  font-size: 2.2rem;
  color: var(--gold-dim);
  line-height: 1;
}
.step h3 { font-size: 1.3rem; font-weight: 500; margin: 0.6rem 0 0.4rem; }
.step p { font-size: 0.9rem; color: var(--ink-mid); font-weight: 300; line-height: 1.7; margin: 0; }

/* --- Écrins (packs) --- */
/* la promesse du surclassement : on peut commencer petit, sans regret */
.ecrins-upgrade-note {
  text-align: center;
  font-size: 0.82rem; color: var(--gold-hi);
  margin: 1.8rem auto 0; max-width: 560px; line-height: 1.6;
}
.ecrins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 2.6rem;
  align-items: stretch;
}
.ecrin {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem 1.5rem;
  background: linear-gradient(170deg, rgba(255,255,255,0.028), rgba(255,255,255,0.006));
  text-align: left;
  transition: transform 0.45s var(--ease-out), border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.ecrin:hover { transform: translateY(-5px); border-color: var(--gold-hairline); box-shadow: 0 22px 54px rgba(0,0,0,0.42); }
.ecrin--star { border-color: var(--gold-dim); background: linear-gradient(165deg, rgba(216,188,138,0.08), rgba(216,188,138,0.015)); }
.ecrin .badge {
  position: absolute; top: -10px; left: 1.3rem;
  font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--space-1);
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
  padding: 0.28em 0.95em;
  border-radius: 999px;
}
.ecrin h3 { font-size: 1.35rem; font-weight: 500; }
.ecrin-tagline { font-size: 0.8rem; color: var(--ink-mid); margin: 0.3rem 0 0; min-height: 2.6em; }
.ecrin-price { font-size: 2rem; color: var(--gold-hi); margin: 0.7rem 0 0.5rem; }
.ecrin ul { list-style: none; margin: 0 0 1.3rem; padding: 0; flex: 1; }
.ecrin ul li {
  font-size: 0.78rem; color: var(--ink-mid);
  padding: 0.28rem 0 0.28rem 1.1rem;
  position: relative;
}
.ecrin ul li::before { content: '✦'; position: absolute; left: 0; top: 0.3rem; color: var(--gold-dim); font-size: 0.58rem; }
.ecrin .btn { width: 100%; }

/* Prestige : la carte d'honneur — HORIZONTALE, pleine largeur sous la gamme */
.ecrin--wide {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center;
  gap: clamp(1.4rem, 3.5vw, 3rem);
  background: linear-gradient(120deg, rgba(216, 188, 138, 0.055), rgba(255, 255, 255, 0.012));
}
.ecrin--wide .ecrin-head-block { flex: 0 0 clamp(190px, 26%, 280px); }
.ecrin--wide .ecrin-tagline { min-height: 0; }
.ecrin--wide ul { flex: 1; margin: 0; columns: 2; column-gap: 2.4rem; }
.ecrin--wide ul li { break-inside: avoid; }
.ecrin--wide .ecrin-cta { flex: 0 0 210px; }
@media (max-width: 860px) {
  .ecrin--wide { flex-direction: column; align-items: stretch; gap: 0; }
  .ecrin--wide .ecrin-head-block, .ecrin--wide .ecrin-cta { flex: none; }
  .ecrin--wide ul { columns: 1; margin: 0.7rem 0 1.3rem; }
}

/* Offre à venir : visible, désirable, mais pas achetable — honnête */
.ecrin--soon { opacity: 0.82; }
.ecrin--soon:hover { transform: none; }
.ecrin .badge--soon {
  left: auto; right: 1.3rem;
  background: none;
  border: 1px solid var(--gold-hairline);
  color: var(--gold-hi);
}
.ecrin-soon-note { width: 100%; text-align: center; cursor: default; opacity: 0.7; }

/* Engagements sous le héros */
.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem 1.6rem;
  list-style: none; margin: 1.6rem 0 0; padding: 0;
}
.hero-trust li {
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mid);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.hero-trust li::before { content: '✦'; color: var(--gold-dim); font-size: 0.6rem; }

/* Avis vérifiés sous le héros : la note, puis les mots — en rotation douce */
.hero-reviews {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  margin-top: 1.5rem;
}
.hr-score {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mid);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.hr-stars { color: var(--gold-hi); letter-spacing: 0.18em; font-size: 0.8rem; }
.hr-stars i { font-style: normal; opacity: 0.25; }
.hr-quotes { position: relative; display: block; min-height: 1.5em; width: min(560px, 92vw); }
.hr-trustpilot {
  display: inline-block; margin-top: 0.45rem; font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--ink-low); text-decoration: none; border-bottom: 1px solid var(--gold-hairline, rgba(216,188,138,0.3));
  transition: color 0.15s, border-color 0.15s;
}
.hr-trustpilot:hover { color: var(--gold-hi, #e7d4ac); border-color: var(--gold-hi, #e7d4ac); }
.hr-quote {
  position: absolute; inset: 0;
  quotes: none;
  font-family: var(--serif); font-style: italic; font-size: 0.95rem;
  color: var(--ink-mid); text-align: center; line-height: 1.5;
  opacity: 0; transition: opacity 1.2s ease;
  pointer-events: none;
}
.hr-quote.on { opacity: 1; position: relative; }
.hr-quote em { font-style: normal; color: var(--gold-hi); font-size: 0.8rem; }

/* --- Sections vitrines à capture réelle (carte, Voyage) --- */
.land-section--split { max-width: 1140px; }
.split-flex {
  display: flex; gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  text-align: left;
}
.split-flex--reverse { flex-direction: row-reverse; }
.split-copy { flex: 1.2; min-width: 0; }
.land-shot {
  flex: 1; min-width: 0;
  margin: 0;
}
.land-shot img {
  width: 100%; display: block;
  border-radius: var(--radius);
  border: 1px solid var(--gold-hairline);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(212, 175, 55, 0.06);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}
.land-shot--map img { object-position: center; } /* image recadrée pile sur l'étiquette dorée */
.land-shot figcaption {
  font-size: 0.66rem; color: var(--ink-low);
  letter-spacing: 0.06em; margin-top: 0.6rem; text-align: center;
}
@media (max-width: 860px) {
  .split-flex, .split-flex--reverse { flex-direction: column; }
  .land-shot { width: 100%; }
}

/* --- Section appli mobile --- */
.land-section--app { max-width: 1140px; }
.app-flex {
  display: flex; gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  text-align: left;
}
.app-copy { flex: 1.25; }
.app-features { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.app-features li {
  font-size: 0.94rem; color: var(--ink-mid); font-weight: 300; line-height: 1.7;
  padding: 0.7rem 0 0.7rem 1.6rem;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.045);
}
.app-features li:last-child { border-bottom: none; }
.app-features li::before { content: '✦'; position: absolute; left: 0.1rem; top: 0.85rem; color: var(--gold-dim); font-size: 0.7rem; }
.app-features strong { color: var(--ink-hi); font-weight: 500; }

.store-badges { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  padding: 0.65em 1.2em;
  font-size: 0.85rem; color: var(--ink-hi);
}
.store-badge em {
  font-style: normal; font-size: 0.58rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-hairline);
  border-radius: 999px;
  padding: 0.15em 0.7em;
  margin-left: 0.3rem;
}

.phone-mock {
  flex: 0 0 auto;
  width: min(250px, 62vw);
  aspect-ratio: 9 / 19;
  border-radius: 38px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(160deg, #1a1f3d, #0a0e22);
  padding: 10px;
  box-shadow: 0 34px 80px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(0,0,0,0.6);
  position: relative;
}
.phone-mock::before {
  content: '';
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 16px;
  background: #04060e;
  border-radius: 999px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 60% at 70% 8%, rgba(42,35,86,0.6), transparent),
    linear-gradient(180deg, #070b1a, #0d1130);
}
.phone-sky { position: absolute; inset: 0; }
/* capture INTÉGRALE de l'app (interface comprise) dans l'écran du téléphone */
.phone-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-mock--real { aspect-ratio: 453 / 844; width: min(270px, 66vw); }
.phone-mock--real::before { display: none; } /* pas d'encoche sur le vrai header de l'app */
.ps-star {
  position: absolute;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink-hi);
  opacity: 0.7;
  animation: cstar-pulse 3.2s ease-in-out infinite;
}
.ps-star--main {
  top: 38%; left: 50%;
  width: 7px; height: 7px;
  background: var(--gold-hi);
  box-shadow: 0 0 18px 6px rgba(216,188,138,0.4);
}
.phone-reticle {
  /* aligné sur l'étoile nommée de la capture réelle (app-mobile-ciel.jpg) */
  position: absolute; top: 43%; left: 41%;
  width: 52px; height: 52px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(216,188,138,0.55);
  border-radius: 50%;
}
.phone-reticle::after {
  content: '';
  position: absolute; inset: -9px;
  border: 1px solid rgba(216,188,138,0.2);
  border-radius: 50%;
}
.phone-card {
  position: absolute; left: 10px; right: 10px; bottom: 14px;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.phone-card strong { font-size: 0.95rem; font-style: italic; color: var(--gold-hi); font-weight: 500; }
.phone-card span:last-child { font-size: 0.62rem; color: var(--ink-mid); }

@media (max-width: 820px) {
  .app-flex { flex-direction: column-reverse; text-align: center; }
  .app-features { text-align: left; }
  .store-badges { justify-content: center; }
}

/* --- Transparence & final --- */
.land-section--truth {
  border-top: 1px solid var(--gold-hairline);
  border-bottom: 1px solid var(--gold-hairline);
  max-width: none;
  background: rgba(216,188,138,0.025);
}
.land-section--truth .land-intro { max-width: 64ch; font-size: 1.02rem; }
.land-section--final { padding-bottom: 5rem; }

/* --- FAQ --- */
.faq-list { max-width: 680px; margin: 2rem auto 0; text-align: left; }
.faq-list details {
  border-bottom: 1px solid var(--glass-line);
  padding: 0.4rem 0;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--ink-hi);
  padding: 0.7rem 2rem 0.7rem 0;
  position: relative;
  transition: color 0.3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute; right: 0.3rem; top: 50%;
  transform: translateY(-50%);
  color: var(--gold-dim);
  font-family: var(--sans);
  font-weight: 300;
  transition: transform 0.3s var(--ease-out);
}
.faq-list details[open] summary { color: var(--gold-hi); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--gold-hi); }
.faq-list details p {
  font-size: 0.9rem; color: var(--ink-mid); font-weight: 300;
  line-height: 1.75;
  margin: 0 0 1rem;
}
.faq-list details a { border-bottom: 1px solid var(--gold-hairline); }

/* ============================================================
   Bandeau cookies — sobre, honnête, non intrusif
   ============================================================ */

/* ============ Invitation « Installer l'app » (PWA) ============ */
.pwa-card {
  position: fixed; z-index: 120;
  left: 50%; bottom: 1.1rem;
  width: min(440px, calc(100vw - 1.6rem));
  transform: translate(-50%, 130%);
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1.05rem 1.15rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20,29,58,0.96), rgba(9,12,26,0.97));
  border: 1px solid var(--gold-hairline, rgba(216,188,138,0.22));
  box-shadow: 0 18px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.02) inset;
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: transform 0.55s var(--ease-out), opacity 0.4s var(--ease-out);
}
.pwa-card.show { transform: translate(-50%, 0); opacity: 1; }
.pwa-card .pwa-ico { flex: none; width: 46px; height: 46px; }
.pwa-card .pwa-ico svg { width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(239,220,180,0.4)); }
.pwa-card .pwa-body { flex: 1; min-width: 0; }
.pwa-card h3 { margin: 0.1rem 0 0.25rem; font-family: var(--serif, Georgia, serif); font-weight: 600; font-size: 1.06rem; color: var(--gold-hi, #efdcb4); }
.pwa-card p { margin: 0; font-size: 0.82rem; line-height: 1.5; color: var(--ink-mid, #aab); }
.pwa-card .pwa-ios { margin-top: 0.5rem; color: var(--ink-hi, #eef0fb); }
.pwa-card .pwa-share { display: inline-flex; vertical-align: -0.35em; width: 1.2em; height: 1.2em; color: var(--gold, #d8bc8a); }
.pwa-card .pwa-share svg { width: 100%; height: 100%; }
.pwa-card .pwa-actions { display: flex; gap: 0.55rem; margin-top: 0.85rem; flex-wrap: wrap; }
.pwa-card .pwa-go, .pwa-card .pwa-later {
  border: none; cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 600;
  padding: 0.6em 1.15em; border-radius: 999px; display: inline-flex; align-items: center; gap: 0.4em;
}
.pwa-card .pwa-go { background: var(--gold, #e7cfa0); color: #0a1024; }
.pwa-card .pwa-go svg { width: 1.05em; height: 1.05em; }
.pwa-card .pwa-later { background: transparent; color: var(--ink-mid, #aab); border: 1px solid var(--glass-line, rgba(255,255,255,0.12)); }
.pwa-card .pwa-x {
  position: absolute; top: 0.45rem; right: 0.5rem; width: 30px; height: 30px;
  background: none; border: none; color: var(--ink-low, #78809c); cursor: pointer; padding: 4px;
}
.pwa-card .pwa-x svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .pwa-card { transition: opacity 0.3s; transform: translate(-50%, 0); } }

.cookie-banner {
  position: fixed;
  left: 1.2rem; bottom: 1.2rem;
  z-index: 130;
  max-width: 400px;
  padding: 1.2rem 1.3rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.cookie-banner.shown { opacity: 1; transform: translateY(0); }
.cookie-banner p {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  color: var(--ink-mid);
  line-height: 1.6;
}
.cookie-banner strong { color: var(--gold-hi); font-weight: 500; }
.cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.6em 1.4em; font-size: 0.68rem; }
@media (max-width: 560px) {
  /* mobile : bandeau pleine largeur en pied, texte resserré, bouton
     confortable sous le pouce (relevé d'Elvis : pas adapté au mobile) */
  .cookie-banner {
    left: 0.6rem; right: 0.6rem; bottom: 0.6rem; max-width: none;
    padding: 0.9rem 1rem;
  }
  .cookie-banner p { font-size: 0.74rem; line-height: 1.5; margin-bottom: 0.7rem; }
  .cookie-actions .btn { flex: 1; text-align: center; padding: 0.75em 1em; }
}

/* ============================================================
   Assistant — bulle et panneau de tchat
   ============================================================ */

.assistant-bubble {
  position: fixed;
  right: 1.2rem; bottom: 1.2rem;
  z-index: 125;
  width: 54px; height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-hi);
  font-size: 1.35rem;
  border: 1px solid var(--gold-hairline);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.assistant-bubble:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 38px rgba(216,188,138,0.18); }
/* panneau latéral ouvert : la bulle s'efface (elle revient à la fermeture) */
body.panel-open .assistant-bubble { opacity: 0; pointer-events: none; }
.assistant-bubble.open .ab-icon { transform: rotate(180deg); }
.ab-icon { transition: transform 0.4s var(--ease-out); }
.ab-ping {
  position: absolute; top: 6px; right: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  animation: cstar-pulse 2.8s ease-in-out infinite;
}

.assistant-panel {
  position: fixed;
  right: 1.2rem; bottom: 5.6rem;
  z-index: 126;
  width: min(380px, calc(100vw - 2.4rem));
  height: min(540px, calc(100vh - 8rem));
  display: flex; flex-direction: column;
  overflow: hidden;
}
/* l'attribut hidden doit gagner sur display:flex */
.assistant-panel[hidden] { display: none; }
.ap-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.2rem 0.8rem;
  border-bottom: 1px solid var(--glass-line);
}
.ap-head strong { font-size: 1.15rem; font-weight: 500; }
.ap-sub { display: block; font-size: 0.66rem; color: var(--ink-low); letter-spacing: 0.14em; text-transform: uppercase; }
.ap-head .panel-close { position: static; }

.ap-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.65rem;
}
.ap-msg {
  max-width: 86%;
  padding: 0.65rem 0.95rem;
  border-radius: 14px;
  font-size: 0.86rem; font-weight: 300;
  line-height: 1.55;
  white-space: pre-line;
}
.ap-msg--bot {
  align-self: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-line);
  border-bottom-left-radius: 4px;
  color: var(--ink-hi);
}
.ap-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(216,188,138,0.16), rgba(216,188,138,0.07));
  border: 1px solid var(--gold-hairline);
  border-bottom-right-radius: 4px;
  color: var(--gold-hi);
}
.ap-msg a { border-bottom: 1px solid var(--gold-hairline); }
.ap-typing { display: flex; gap: 4px; padding: 0.9rem 1rem; }
.ap-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-dim);
  animation: typing-dot 1.2s ease-in-out infinite;
}
.ap-typing span:nth-child(2) { animation-delay: 0.18s; }
.ap-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing-dot { 0%, 100% { opacity: 0.25; transform: translateY(0); } 45% { opacity: 1; transform: translateY(-3px); } }

.ap-suggestions {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  padding: 0 1.1rem 0.7rem;
}
.ap-suggestions button {
  background: none;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  color: var(--ink-mid);
  font-family: var(--sans); font-size: 0.72rem;
  padding: 0.35em 0.9em;
  cursor: pointer;
  transition: all 0.25s;
}
.ap-suggestions button:hover { border-color: var(--gold-dim); color: var(--gold-hi); }

.ap-input {
  display: flex; gap: 0.5rem;
  padding: 0.8rem 1rem 1rem;
  border-top: 1px solid var(--glass-line);
}
.ap-input input {
  flex: 1;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 300;
  color: var(--ink-hi);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: 0.6em 1.1em;
}
.ap-input input:focus { outline: none; border-color: var(--gold-hairline); }
.ap-input .btn { padding: 0.55em 1.1em; }

@media (max-width: 560px) {
  .assistant-panel {
    right: 0; bottom: 0; left: 0;
    width: 100%;
    height: min(72vh, 560px);
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .assistant-bubble { bottom: 1rem; right: 1rem; }
  .cookie-banner { bottom: 5.4rem; }
}

/* --- Bascule vue réaliste / étoiles révélées --- */
.view-toggle {
  align-self: flex-start;
  background: rgba(4,6,14,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  color: var(--ink-mid);
  font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.45em 1.1em;
  cursor: pointer;
  transition: all 0.3s;
}
.view-toggle:hover { color: var(--gold-hi); border-color: var(--gold-hairline); }
/* VR : toujours annoncé, grisé quand l'appareil ne s'y prête pas (PC) */
.vr-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.vr-btn[disabled]:hover { color: var(--ink-mid); border-color: var(--glass-line); }

/* --- Cadran d'observation : latitude, longitude, heure exacte --- */
.observer-info {
  position: fixed;
  top: 5.4rem; left: 1.6rem;
  z-index: 30; /* sous le panneau latéral (feuille basse mobile comprise) */
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
}
.mode-landing .observer-info { display: none; }
.oi-live {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: #9fd8b0;
}
.oi-live .oi-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #58c07a;
  box-shadow: 0 0 7px rgba(88,192,122,0.8);
  animation: cstar-pulse 2.4s ease-in-out infinite;
}
.oi-live.simulated { color: var(--gold); }
.oi-live.simulated .oi-dot { background: var(--gold); box-shadow: 0 0 7px rgba(216,188,138,0.8); }
.oi-time {
  font-family: var(--serif);
  font-size: 1.06rem;
  color: var(--ink-hi);
  font-variant-numeric: tabular-nums;
}
.oi-place { font-size: 0.66rem; color: var(--ink-low); letter-spacing: 0.12em; }
/* (position mobile du cadran : voir le bloc « exploration mobile » consolidé) */

/* --- Boussole (mode exploration) --- */
.compass {
  position: fixed;
  top: 8.4rem; right: 1.6rem;
  z-index: 30; /* sous le panneau latéral : couvert proprement quand il s'ouvre */
  width: 52px; height: 52px;
  padding: 4px;
  background: rgba(4,6,14,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-line);
  border-radius: 50%;
  color: var(--ink-mid);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out),
              right 0.65s var(--ease-out);
}
.compass:hover { border-color: var(--gold-hairline); color: var(--gold-hi); transform: scale(1.06); }
.compass svg { width: 100%; height: 100%; }
#compass-needle { transition: transform 0.25s linear; }
.mode-landing .compass { display: none; }
/* panneau latéral ouvert : comme .sky-exit, les contrôles s'écartent à sa gauche */
body.panel-open .compass,
body.panel-open .layers-btn { right: calc(min(430px, 100vw - 3.2rem) + 2.6rem); }
body.panel-open .layers-panel { right: calc(min(430px, 100vw - 3.2rem) + 6.4rem); }
@media (max-width: 640px) {
  /* mobile : le panneau monte du bas, les contrôles du haut ne bougent pas */
  body.panel-open .compass { right: 0.9rem; }
  body.panel-open .layers-btn { right: 0.9rem; }
  body.panel-open .layers-panel { right: 4.4rem; }
}

/* --- Calques du ciel (satellites, constellations, bientôt comètes) --- */
.layers-btn {
  position: fixed;
  top: 12.2rem; right: 1.6rem;
  z-index: 30;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4,6,14,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-line);
  border-radius: 50%;
  color: var(--ink-mid);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out),
              right 0.65s var(--ease-out);
}
.layers-btn:hover, .layers-btn[aria-expanded="true"] {
  border-color: var(--gold-hairline);
  color: var(--gold-hi);
  transform: scale(1.06);
}
.mode-landing .layers-btn { display: none; }

.layers-panel {
  position: fixed;
  top: 12.2rem; right: 5.4rem;
  z-index: 46;
  width: 250px;
  padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: right 0.65s var(--ease-out);
  /* avec la date + les 7 filtres satellites, le panneau dépasse les petits
     écrans : il défile au lieu de perdre ses dernières cases */
  max-height: calc(100dvh - 13.4rem);
  overflow-y: auto;
}
.layers-panel[hidden] { display: none; }
.layers-panel .check span { font-size: 0.82rem; color: var(--ink-hi); }
.sat-filters {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding-left: 1.75rem;
  border-left: 1px solid var(--glass-line);
  margin-left: 0.55rem;
}
.sat-filters .check input { width: 15px; height: 15px; }
.sat-filters .check span { font-size: 0.74rem; color: var(--ink-mid); }
.sat-filters .check small { color: var(--ink-low); }
.layers-panel[data-sats-off="1"] .sat-filters { opacity: 0.35; pointer-events: none; }


/* --- Exploration MOBILE : disposition consolidée (après TOUTES les règles
   de base, sinon elles gagnent à spécificité égale — leçon apprise).
   Miroir de l'app : cadran en haut à gauche, colonne quitter/boussole/calques
   alignée à droite SOUS le header (logo + nav + recherche ≈ 8rem),
   pied de carte en bas à gauche. --- */
@media (max-width: 640px) {
  .sky-exit { top: 8.6rem; right: 0.9rem; font-size: 0.62rem; }
  .compass { top: 11rem; right: 0.9rem; width: 46px; height: 46px; }
  .layers-btn { top: 14.2rem; right: 0.9rem; width: 46px; height: 46px; }
  .layers-panel { top: 14.2rem; right: 4.4rem; left: auto; width: min(250px, calc(100vw - 5.6rem)); max-height: calc(100dvh - 15.4rem); }
  .observer-info { top: 8.6rem; left: 0.9rem; padding: 0.45rem 0.8rem; }
  .oi-time { font-size: 0.9rem; }
}

/* --- Aide gestuelle (première exploration) --- */
.gesture-hint {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-hi);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.gesture-hint.shown { opacity: 1; }

/* --- Réduction de mouvement --- */

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

/* Formulaire de CONTACT + pot de miel anti-robot */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-form { display: flex; flex-direction: column; gap: 1.05rem; margin-top: 1.4rem; max-width: 560px; }
.contact-form .field { display: flex; flex-direction: column; gap: 0.35rem; }
.contact-form label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-low); }
.contact-form input, .contact-form textarea {
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-line, rgba(255,255,255,0.1));
  border-radius: 10px; color: var(--ink-hi); padding: 0.7em 0.95em; font: inherit; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold-hairline, rgba(216,188,138,0.4)); }
.contact-form .form-msg { margin: 0; font-size: 0.9rem; }
.contact-form .form-msg.ok { color: #8ad8a4; }
.contact-form .form-msg.err { color: #d88a9a; }

/* Rangée de réseaux sociaux (pied de page) */
.social-row { display: flex; gap: 0.7rem; justify-content: center; margin: 0.6rem 0 0.2rem; flex-wrap: wrap; }
.social-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--gold-hairline, rgba(216,188,138,0.3)); color: var(--ink-low);
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.social-ico:hover { color: var(--gold-hi, #e7d4ac); border-color: var(--gold-hairline, rgba(216,188,138,0.6)); transform: translateY(-2px); }
.social-ico svg { width: 20px; height: 20px; }

/* Rappel « Télécharger l'app » (pied de page, si activé + lien store posé) */
.store-row { display: flex; gap: 0.6rem; align-items: center; justify-content: center; flex-wrap: wrap; margin: 0.9rem 0 0.2rem; }
.store-lead { color: var(--ink-low); font-size: 0.82rem; letter-spacing: 0.02em; }
.store-badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.42em 0.9em; border-radius: 10px; font-size: 0.82rem;
  border: 1px solid var(--gold-hairline, rgba(216,188,138,0.3)); color: var(--ink-mid);
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.store-badge:hover { color: var(--gold-hi, #e7d4ac); border-color: var(--gold-hairline, rgba(216,188,138,0.6)); transform: translateY(-2px); }
.store-badge svg { width: 16px; height: 16px; }

/* ===== Bandeau promo (activable depuis Admin > Codes promo) ===== */
.promo-banner {
  position: relative; z-index: 60; display: flex; align-items: center; justify-content: center;
  gap: 0.8rem; flex-wrap: wrap; padding: 0.55rem 2.6rem 0.55rem 1rem;
  background: linear-gradient(90deg, rgba(216,188,138,0.14), rgba(216,188,138,0.05), rgba(216,188,138,0.14));
  border-bottom: 1px solid var(--gold-hairline, rgba(216,188,138,0.3));
  font-size: 0.85rem; color: var(--ink-hi, #eef0fb); text-align: center;
}
.promo-banner[hidden] { display: none; }
/* ACCUEIL (header flottant) : le bandeau se pose TOUT EN HAUT et pousse le
   header + le héros vers le bas au lieu de passer par-dessus le logo/menu.
   --promo-h est mesuré en JS (le bandeau peut passer sur 2 lignes en mobile). */
:root { --promo-h: 0px; }
.sky-page .promo-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 70; }
.sky-page .sky-header { top: var(--promo-h, 0px); }
/* le héros reste plein écran ; son padding haut réserve la place du header +
   du bandeau → le contenu ne passe jamais dessous, et le bouton « Découvrir »
   (poussé en bas par .hero-spacer) reste au bord visible de l'écran */
.sky-page .sky-hero {
  min-height: 100svh;
  padding-top: calc(6.5rem + var(--promo-h, 0px));
  padding-bottom: 1.2rem;
  box-sizing: border-box;
}
/* MOBILE : header court + héros resserré → tout tient dans l'écran, bandeau
   promo actif compris, « Découvrir » toujours visible. Placé après la règle
   ci-dessus pour l'emporter dans la cascade (même spécificité). */
@media (max-width: 640px) {
  .sky-page .promo-banner {
    font-size: 0.74rem; gap: 0.45rem;
    padding: 0.4rem 2.2rem 0.4rem 0.8rem;
  }
  .sky-page .promo-banner .pb-code { padding: 0.15em 0.5em; letter-spacing: 0.08em; }
  .sky-page .promo-banner .pb-close { right: 0.45rem; width: 24px; height: 24px; }
  .sky-page .sky-hero {
    padding-top: calc(3.9rem + var(--promo-h, 0px));
    padding-bottom: 0.8rem;
  }
}
.pb-code {
  font-family: inherit; font-weight: 700; letter-spacing: 0.12em; cursor: pointer;
  color: var(--gold-hi, #e7d4ac); background: rgba(216,188,138,0.12);
  border: 1px dashed var(--gold-hairline, rgba(216,188,138,0.5)); border-radius: 8px;
  padding: 0.2em 0.7em; transition: background 0.15s;
}
.pb-code:hover { background: rgba(216,188,138,0.22); }
.pb-close {
  position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 999px; cursor: pointer;
  background: none; border: none; color: var(--ink-low, #767d9e);
}
.pb-close:hover { color: var(--ink-hi, #eef0fb); }
.pb-close svg { width: 14px; height: 14px; }

/* ===== Page /soutenir : montants + jauge ===== */
.support-amounts { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: stretch; margin: 0.4rem 0 1rem; }
.sa-opt {
  font-family: inherit; font-size: 0.95rem; cursor: pointer; padding: 0.55em 1.1em;
  background: rgba(255,255,255,0.04); color: var(--ink-mid, #a9aec7);
  border: 1px solid var(--glass-line, rgba(255,255,255,0.1)); border-radius: 12px;
  transition: all 0.15s;
}
.sa-opt:hover { border-color: var(--gold-hairline, rgba(216,188,138,0.5)); }
.sa-opt.sel { color: var(--gold-hi, #e7d4ac); border-color: var(--gold, #d8bc8a); background: rgba(216,188,138,0.1); }
.sa-free { display: flex; align-items: center; gap: 0.3rem; color: var(--ink-low, #767d9e); font-size: 0.9rem; }
.sa-free input {
  width: 84px; padding: 0.5em 0.7em; border-radius: 12px; font-family: inherit; font-size: 0.95rem;
  background: rgba(255,255,255,0.04); color: var(--ink-hi, #eef0fb);
  border: 1px solid var(--glass-line, rgba(255,255,255,0.1));
}
.support-goal { margin: 1.2rem 0; }
.sg-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; border: 1px solid var(--gold-hairline, rgba(216,188,138,0.25)); }
.sg-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8a6d3b, #d8bc8a, #e7d4ac); border-radius: 999px; transition: width 0.6s ease; }
.sg-line { font-size: 0.9rem; color: var(--ink-mid, #a9aec7); margin-top: 0.5rem; }
