/* =========================================================
   GVA — Genève Aéroport
   Feuille de style principale.

   Ordre du fichier :
   1. Jetons de design (couleurs, mesures, typographie)
   2. Réglages de base
   3. Éléments réutilisables (boutons)
   4. En-tête et navigation
   5. Hero scrubbé
   6. Exploration 3D (avec son propre responsive)
   7. Responsive
   8. Mouvements réduits
   ========================================================= */


/* ---------------------------------------------------------
   1. Jetons de design — repris du design system de la maquette
   --------------------------------------------------------- */

:root {
  /* Couleurs */
  --blanc-casse: #F7F8FA;
  --bleu-nuit:   #0B1F3A;
  --accent:      #E4002B;
  --gris-texte:  #5A6472;
  --surface:     #FFFFFF;

  /* Mesures. La marge suit la largeur de l'écran : 96 px sur la
     maquette 1440, 20 px sur la maquette mobile 390. */
  --marge: clamp(20px, 6.67vw, 96px);
  --hauteur-entete: 88px;
  --rayon: 12px;
  --rayon-large: 16px;

  /* Typographie. Le titre vaut 88 px sur 1440 px, soit 6.11vw. */
  --titre-hero: clamp(2.25rem, 6.11vw, 5.5rem);

  /* Durées d'animation, reprises des annotations de la maquette */
  --duree-palier: 240ms;
  --duree-indice: 200ms;
  --duree-cta: 320ms;
  --sortie: cubic-bezier(0, 0, .2, 1); /* ease-out */
}


/* ---------------------------------------------------------
   2. Réglages de base
   --------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blanc-casse);
  color: var(--bleu-nuit);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; }

/* Icônes en trait : elles prennent la couleur du texte. */
svg[viewBox="0 0 24 24"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Lisible par les lecteurs d'écran, invisible à l'écran. */
.visuellement-masque {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.lien-evitement {
  position: absolute;
  top: -100px;
  left: var(--marge);
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--rayon);
  background: var(--surface);
  color: var(--bleu-nuit);
  font-weight: 600;
  transition: top 160ms var(--sortie);
}
.lien-evitement:focus { top: 16px; }


/* ---------------------------------------------------------
   3. Boutons — hauteur 48, rayon 12, padding 0 24
      (le design system de la maquette, décliné en trois variantes)
   --------------------------------------------------------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--sortie),
              border-color 160ms var(--sortie),
              color 160ms var(--sortie),
              transform 160ms var(--sortie);
}
.bouton:active { transform: translateY(1px); }

/* Fond blanc sur photo — bouton « Mon vol » de la barre de navigation */
.bouton--clair {
  height: 44px;
  padding: 0 22px;
  background: var(--surface);
  color: var(--bleu-nuit);
}
.bouton--clair:hover { background: #E9ECF2; }

/* Appel à l'action principal en fin de hero */
.bouton--accent {
  height: 52px;
  padding: 0 26px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
}
.bouton--accent:hover { background: #C10025; }

/* Appel à l'action secondaire sur photo */
.bouton--contour {
  height: 52px;
  padding: 0 26px;
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
  font-size: 16px;
}
.bouton--contour:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
}

/* Primaire du design system : défaut bleu nuit, survol #12305A,
   actif accent. */
.bouton--sombre {
  height: 50px;
  background: var(--bleu-nuit);
  color: #fff;
  font-size: 16px;
}
.bouton--sombre:hover {
  background: #12305A;
  box-shadow: 0 6px 18px rgba(11, 31, 58, .22);
}
.bouton--sombre:active { background: var(--accent); box-shadow: none; }

/* Blanc sur fond sombre : « Réinitialiser la vue » */
.bouton--blanc {
  gap: 10px;
  padding: 0 22px;
  background: var(--surface);
  color: var(--bleu-nuit);
}
.bouton--blanc:hover { background: #E9ECF2; }
.bouton--blanc:active { background: var(--accent); color: #fff; }
.bouton--blanc svg { width: 18px; height: 18px; }

.bouton:disabled {
  opacity: .45;
  cursor: default;
  pointer-events: none;
}


/* ---------------------------------------------------------
   4. En-tête
      Transparente par-dessus le hero pendant tout le scrub ;
      elle ne passe en fond blanc qu'après la bascule.
   --------------------------------------------------------- */

.entete {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--hauteur-entete);
  color: #fff;
  transition: background-color var(--duree-cta) var(--sortie),
              color var(--duree-cta) var(--sortie),
              box-shadow var(--duree-cta) var(--sortie);
}

.entete__inner {
  height: 100%;
  padding: 0 var(--marge);
  display: flex;
  align-items: center;
  gap: 56px;
}

.entete--solide {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--bleu-nuit);
  box-shadow: 0 1px 0 rgba(11, 31, 58, .08);
}
.entete--solide .bouton--clair {
  background: var(--bleu-nuit);
  color: #fff;
}
.entete--solide .bouton--clair:hover { background: #16305A; }

.marque {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.marque__tiret { color: var(--accent); }
.marque__court { display: none; }

.nav-principale {
  flex: 1;
}
.nav-principale ul {
  display: flex;
  justify-content: center;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
}
.nav-principale a { transition: color 160ms var(--sortie); }
.nav-principale a:hover { color: var(--accent); }

.entete__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.langues {
  font-size: 14px;
  font-weight: 500;
}
.langues__active { font-weight: 600; }
.langues__sep,
.langues a { opacity: .5; }
.langues a:hover { opacity: 1; }

/* Bouton du menu mobile — masqué au-dessus de 768 px */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger__trait {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms var(--sortie), opacity 200ms var(--sortie);
}
.burger[aria-expanded="true"] .burger__trait:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__trait:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__trait:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ---------------------------------------------------------
   5. Hero scrubbé

   .hero          conteneur ; ScrollTrigger lui ajoute l'espace
                  de défilement nécessaire à l'épinglage.
   .hero__plateau ce qui reste collé à l'écran (100vh).
   .hero__canvas  la frame courante, dessinée par main.js.
   --------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--bleu-nuit);
}

.hero__plateau {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
}

/* L'affiche est l'image LCP. Le canvas la recouvre dès qu'il a
   dessiné sa première frame. */
.hero__affiche,
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__canvas {
  opacity: 0;
  transition: opacity 200ms var(--sortie);
}
.hero--canvas-pret .hero__canvas { opacity: 1; }

.hero__voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(11, 31, 58, .55) 0%,
              rgba(11, 31, 58, .15) 40%,
              rgba(11, 31, 58, .65) 100%);
}

/* Bloc de titres. Les quatre paliers sont empilés et alignés par
   le bas : le bloc grandit vers le haut, comme sur la maquette. */
.hero__contenu {
  position: absolute;
  left: var(--marge);
  right: var(--marge);
  bottom: 190px;
  max-width: 820px;
}

.hero__palier {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duree-palier) var(--sortie),
              visibility 0s linear var(--duree-palier);
}
.hero__palier.est-actif {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--duree-palier) var(--sortie),
              visibility 0s;
}

.hero__surtitre {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero__titre {
  font-size: var(--titre-hero);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1;
}

.hero__sous-titre {
  margin-top: 20px;
  color: rgba(255, 255, 255, .8);
  font-size: 19px;
}

/* Les deux appels à l'action n'entrent qu'en toute fin de scrub. */
.hero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duree-cta) var(--sortie),
              transform var(--duree-cta) var(--sortie);
}
.hero--fin .hero__actions {
  opacity: 1;
  transform: none;
}

/* Repère « Scrollez pour découvrir » : disparaît dès 40 px de scroll. */
.hero__indice {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: opacity var(--duree-indice) var(--sortie);
}
.hero__fleche { font-size: 22px; line-height: 1; }
.hero__indice.est-masque { opacity: 0; }

/* Barre de progression : largeur = progression du scrub.
   On anime scaleX, pris en charge par le compositeur. */
.hero__progression {
  position: absolute;
  left: var(--marge);
  right: var(--marge);
  bottom: 48px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .28);
  overflow: hidden;
}
.hero__progression-barre {
  height: 100%;
  border-radius: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: 0 50%;
}


/* ---------------------------------------------------------
   6. Exploration 3D — maquette frames 06, 07 et 07-M

   .exploration          la section, fond bleu nuit en dégradé
   .exploration__inner   texte à gauche, vue à droite ; glisse de
                         120 px vers la gauche quand le panneau s'ouvre
   .scene3d              la vue : canvas, pastilles, outils, aide
   .commandes            barre ↺ ↻ − + sous la vue
   .panneau              le <dialog> d'information
   --------------------------------------------------------- */

@keyframes halo {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
  70%  { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes va-et-vient {
  from { transform: translateX(-100%); }
  to   { transform: translateX(330%); }
}

.exploration {
  --glissement-panneau: 120px;
  --entree: cubic-bezier(.2, .8, .2, 1);   /* courbe d'ouverture de la maquette */
  position: relative;
  height: calc(100svh - var(--hauteur-entete));
  min-height: 560px;
  max-height: 1000px;
  overflow: hidden;
  scroll-margin-top: var(--hauteur-entete);
  background: linear-gradient(160deg, #0B1F3A 0%, #12305A 55%, #0B1F3A 100%);
  color: #fff;
}

.exploration__inner {
  height: 100%;
  display: flex;
  gap: 56px;
  padding: 80px var(--marge);
  transition: transform var(--duree-cta) var(--entree);
}
.exploration--panneau-ouvert .exploration__inner {
  transform: translateX(calc(var(--glissement-panneau) * -1));
}

/* --- Colonne de gauche --- */

.exploration__intro {
  flex: none;
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: opacity var(--duree-cta) var(--entree);
}
.exploration--panneau-ouvert .exploration__intro { opacity: .55; }

.exploration__surtitre {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.exploration__titre {
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);   /* 52 px sur 1440 */
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.exploration__texte {
  color: #A9BBD2;
  font-size: 17px;
  line-height: 1.7;
}

.legende { margin-top: 8px; }

.legende__bouton {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 5px 0;
  border: 0;
  background: none;
  color: #D3DEEC;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: color 160ms var(--sortie);
}
.legende__numero {
  width: 18px;
  color: #7E97B8;
  font-variant-numeric: tabular-nums;
  transition: color 160ms var(--sortie);
}
.legende__bouton:hover,
.legende__bouton.est-active { color: #fff; }
.legende__bouton:hover .legende__numero,
.legende__bouton.est-active .legende__numero { color: var(--accent); }
.legende__bouton.est-active { font-weight: 600; }

/* --- La vue --- */

.exploration__vue {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.scene3d {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: var(--rayon-large);
  border: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
  isolation: isolate;
  /* Halo clair derrière la maquette, comme le projecteur de la référence */
  background:
    radial-gradient(ellipse 62% 58% at 50% 56%, rgba(96, 146, 212, .30), transparent 72%),
    linear-gradient(180deg, #102A4E 0%, #0C2140 100%);
}

.scene3d__toile {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: none;
  border-radius: inherit;
}
.scene3d__toile:active { cursor: grabbing; }
.scene3d__toile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

.scene3d__toile canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 600ms var(--sortie);
}
.scene3d--pret .scene3d__toile canvas { opacity: 1; }

/* --- Pastilles ---
   Le bouton est une ancre de taille nulle que la 3D déplace à chaque
   image ; le disque et le nom sont dessinés autour. */

.scene3d__pastilles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.pastille {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: none;
  pointer-events: none;
  z-index: var(--profondeur, 0);
  will-change: transform;
  transition: opacity 200ms var(--sortie);
}
.pastille.est-hors-champ,
.pastille.est-absente,
.scene3d:not(.scene3d--pret) .pastille {
  opacity: 0;
  visibility: hidden;
}
.pastille.est-derriere { opacity: .4; }

.pastille__disque {
  position: absolute;
  left: -20px;
  top: -20px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--bleu-nuit);
  font-size: 15px;
  font-weight: 600;
  pointer-events: auto;
  cursor: pointer;
  animation: halo 2.6s ease-out calc(var(--rang, 0) * .3s) infinite;
  transition: transform 160ms var(--sortie), background-color 160ms var(--sortie),
              color 160ms var(--sortie), box-shadow 160ms var(--sortie);
}

.pastille__nom {
  position: absolute;
  left: 34px;
  top: 0;
  padding: 9px 13px;
  border-radius: 10px;
  background: #fff;
  color: var(--bleu-nuit);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(4, 12, 26, .25);
  pointer-events: none;
  cursor: pointer;
  opacity: 0;
  /* --nom-decalage : décalage vertical choisi par exploration-3d.js
     pour qu'un nom n'en recouvre pas un autre. */
  transform: translate(-4px, calc(-50% + var(--nom-decalage, 0px)));
  transition: opacity 160ms var(--sortie), transform 160ms var(--sortie);
}

/* data-nom, posé par exploration-3d.js : côté où le nom s'affiche. */
.pastille[data-nom="gauche"] .pastille__nom {
  left: auto;
  right: 34px;
  transform: translate(4px, calc(-50% + var(--nom-decalage, 0px)));
}
.pastille[data-nom="haut"] .pastille__nom {
  left: 0;
  top: calc(-26px + var(--nom-decalage, 0px));
  transform: translate(-50%, calc(-100% + 4px));
}
.pastille[data-nom="bas"] .pastille__nom {
  left: 0;
  top: calc(26px + var(--nom-decalage, 0px));
  transform: translate(-50%, -4px);
}

/* Survol : le disque grossit (40 → 48 px) et le nom apparaît. */
.pastille:hover,
.pastille.est-survolee,
.pastille.est-signalee { z-index: 10001; }

.pastille:hover .pastille__disque,
.pastille.est-survolee .pastille__disque,
.pastille.est-signalee .pastille__disque {
  transform: scale(1.2);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .18);
  animation: none;
}

:is(.pastille:hover, .pastille.est-survolee, .pastille.est-signalee, .scene3d--noms .pastille) .pastille__nom {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, calc(-50% + var(--nom-decalage, 0px)));
}
:is(.pastille:hover, .pastille.est-survolee, .pastille.est-signalee, .scene3d--noms .pastille)[data-nom="haut"] .pastille__nom {
  transform: translate(-50%, -100%);
}
:is(.pastille:hover, .pastille.est-survolee, .pastille.est-signalee, .scene3d--noms .pastille)[data-nom="bas"] .pastille__nom {
  transform: translate(-50%, 0);
}

/* Le disque survolé grossit : le nom s'écarte d'autant. */
:is(.pastille:hover, .pastille.est-survolee, .pastille.est-signalee) .pastille__nom { left: 38px; }
:is(.pastille:hover, .pastille.est-survolee, .pastille.est-signalee)[data-nom="gauche"] .pastille__nom {
  left: auto;
  right: 38px;
}
:is(.pastille:hover, .pastille.est-survolee, .pastille.est-signalee)[data-nom="haut"] .pastille__nom,
:is(.pastille:hover, .pastille.est-survolee, .pastille.est-signalee)[data-nom="bas"] .pastille__nom { left: 0; }

/* Tous les noms affichés : un peu plus compacts. */
.scene3d--noms .pastille__nom {
  padding: 7px 11px;
  font-size: 12px;
}

/* Trait de rappel entre un nom décalé et sa pastille. Il part du
   centre du disque, qui le recouvre. */
.scene3d--noms .pastille[data-trait]::before {
  content: "";
  position: absolute;
  left: 0;
  top: -.75px;
  width: var(--trait-longueur, 0);
  height: 1.5px;
  border-radius: 1px;
  background: rgba(255, 255, 255, .8);
  transform-origin: 0 50%;
  transform: rotate(var(--trait-angle, 0rad));
  pointer-events: none;
}

/* Panneau ouvert : les autres pastilles s'effacent, l'active passe
   en accent. */
.exploration--panneau-ouvert .pastille__disque {
  background: rgba(255, 255, 255, .55);
  animation: none;
}
.pastille.est-active .pastille__disque,
.exploration--panneau-ouvert .pastille.est-active .pastille__disque {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(228, 0, 43, .22);
  animation: none;
}
.pastille.est-active { z-index: 10000; opacity: 1; }

/* --- Outils posés sur la vue --- */

.scene3d__outils {
  position: absolute;
  top: 16px;
  z-index: 3;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(11, 31, 58, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.scene3d__outils--gauche { left: 16px; }
.scene3d__outils--droite { right: 16px; }

.outil {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 160ms var(--sortie), color 160ms var(--sortie);
}
.outil svg { width: 20px; height: 20px; }
.outil:hover { background: rgba(255, 255, 255, .1); }
.outil[aria-pressed="true"] {
  color: var(--accent);
  background: rgba(255, 255, 255, .08);
}
.outil[hidden] { display: none; }

.outil .icone-sortir,
.outil.est-actif .icone-entrer { display: none; }
.outil.est-actif .icone-sortir { display: block; }

/* Bulle d'aide des boutons à icône : c'est aussi leur nom accessible,
   d'où opacity et non display pour la cacher. */
.outil__bulle {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 4;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--bleu-nuit);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity 160ms var(--sortie), transform 160ms var(--sortie);
}
/* Dans les coins de la vue, la bulle s'aligne sur le bord du bouton
   au lieu d'être centrée, pour ne pas être coupée par le cadre. */
.scene3d__outils .outil__bulle {
  left: 0;
  transform: translate(0, -4px);
}
.scene3d__outils--droite .outil__bulle {
  left: auto;
  right: 0;
}
:is(.outil, .commande):is(:hover, :focus-visible) .outil__bulle {
  opacity: 1;
  transform: translate(-50%, 0);
}
.scene3d__outils .outil:is(:hover, :focus-visible) .outil__bulle {
  transform: translate(0, 0);
}

/* --- Aide gestuelle --- */

.scene3d__aide {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(11, 31, 58, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  line-height: 1.3;
  pointer-events: none;
  transition: opacity 300ms var(--sortie), transform 300ms var(--sortie);
}
.scene3d__aide.est-masquee {
  opacity: 0;
  transform: translateY(6px);
}

.geste {
  display: flex;
  align-items: center;
  gap: 8px;
}
.geste svg { flex: none; width: 20px; height: 20px; }

/* --- Chargement et échec --- */

.scene3d__etat {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, #12294A 0 14px, #16305A 14px 28px);
  transition: opacity 500ms var(--sortie), visibility 0s linear 500ms;
}
.scene3d--pret .scene3d__etat {
  opacity: 0;
  visibility: hidden;
}

.chargement__barre {
  width: 180px;
  height: 3px;
  margin: 0 auto 16px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .18);
  overflow: hidden;
}
.chargement__barre span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: #fff;
  transform-origin: 0 50%;
  transform: scaleX(var(--progression, 0));
  transition: transform 120ms linear;
}
.scene3d--indetermine .chargement__barre span {
  width: 30%;
  animation: va-et-vient 1.1s ease-in-out infinite alternate;
}

.chargement__texte,
.chargement__pourcentage {
  color: #7E97B8;
  font: 11px/1.9 ui-monospace, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.chargement__pourcentage { color: #A9BBD2; }

.scene3d--echec .chargement__barre,
.scene3d--echec .scene3d__outils,
.scene3d--echec .scene3d__aide { display: none; }
.scene3d--echec .chargement__texte {
  max-width: 34ch;
  color: #D3DEEC;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
}

/* --- Barre de commandes --- */

.commandes {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.commande {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--rayon);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 160ms var(--sortie), border-color 160ms var(--sortie);
}
.commande svg { width: 20px; height: 20px; }
.commande:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .5);
}
.commande:active {
  background: rgba(228, 0, 43, .16);
  border-color: var(--accent);
}
.commande:disabled { opacity: .4; cursor: default; }
.commande .outil__bulle {
  top: auto;
  bottom: calc(100% + 10px);
}

.commandes__separateur {
  width: 1px;
  height: 32px;
  margin: 0 8px;
  background: rgba(255, 255, 255, .2);
}

/* --- Panneau d'information : <dialog> non modal sur ordinateur --- */

.panneau {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 5;
  width: 420px;
  max-width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--surface);
  color: var(--bleu-nuit);
  box-shadow: -24px 0 60px rgba(4, 12, 26, .35);
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(.4, 0, 1, 1);
}
.panneau.est-ouvert {
  transform: none;
  transition: transform var(--duree-cta) var(--entree);
}
.panneau.est-glisse { transition: none; }
.panneau:focus { outline: none; }

.panneau__boite {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: opacity 180ms var(--sortie);
}
.panneau__boite.est-en-fondu { opacity: 0; }

.panneau__poignee { display: none; }

.panneau__entete {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 32px 0;
}

.panneau__intitule {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "numero zone" "titre titre";
  align-items: center;
  column-gap: 12px;
  row-gap: 16px;
}

.panneau__numero {
  grid-area: numero;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.panneau__zone {
  grid-area: zone;
  color: var(--gris-texte);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.panneau__titre {
  grid-area: titre;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.panneau__titre:focus { outline: none; }

.panneau__fermer {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #F0F2F6;
  color: var(--gris-texte);
  cursor: pointer;
  transition: background-color 160ms var(--sortie), color 160ms var(--sortie);
}
.panneau__fermer svg { width: 18px; height: 18px; }
.panneau__fermer:hover { background: #E1E5EC; color: var(--bleu-nuit); }

.panneau__corps {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.panneau__photo {
  height: 220px;
  margin: 24px 32px 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  color: #7A8494;
  font: 10px ui-monospace, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.panneau__photo.est-vide {
  background: repeating-linear-gradient(135deg, #DDE1E8 0 12px, #E8EBF0 12px 24px);
}
.panneau__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panneau__texte {
  padding: 24px 32px 0;
  color: var(--gris-texte);
  font-size: 15px;
  line-height: 1.7;
}

.panneau__infos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 32px 0;
}
.panneau__infos > div {
  min-width: 0;
  padding: 14px 12px;
  border-radius: var(--rayon);
  background: var(--blanc-casse);
}
.panneau__infos dt {
  color: var(--gris-texte);
  font: 10px ui-monospace, Menlo, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
/* Une valeur tient sur une ligne : « 05:00–22:30 » ne doit pas se
   couper au tiret. Les données sont écrites en conséquence. */
.panneau__infos dd {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.panneau__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 32px 32px;
}

.panneau__lien {
  align-self: center;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.panneau__lien:hover { color: #B30022; }

/* --- Plein écran : la vue prend toute la place --- */

.exploration--plein-ecran {
  --glissement-panneau: 0px;
  height: 100vh;
  max-height: none;
}
.exploration--plein-ecran .exploration__inner { padding: 24px; gap: 0; }
.exploration--plein-ecran .exploration__intro { display: none; }
.exploration--plein-ecran .exploration__vue { gap: 20px; }

/* --- Tablette --- */

@media (max-width: 1199px) {
  .exploration__inner { gap: 40px; padding-top: 64px; padding-bottom: 56px; }
  .exploration__intro { width: 300px; }
  .exploration__texte { font-size: 16px; }
}

@media (max-width: 1023px) {
  /* La vue passe sous le texte ; la légende devient une rangée. */
  .exploration {
    height: auto;
    max-height: none;
  }
  .exploration__inner {
    flex-direction: column;
    gap: 28px;
  }
  .exploration__intro { width: auto; }
  /* En colonne, flex: 1 annulerait la hauteur : on la fixe. */
  .exploration__vue { flex: none; height: min(72svh, 640px); min-height: 420px; }
  .legende {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
  }
  .legende__bouton { width: auto; }
}

/* --- Téléphone : maquette 07-M --- */

@media (max-width: 767px) {
  .exploration { --glissement-panneau: 0px; }

  .exploration__inner {
    gap: 22px;
    padding: 64px 20px 40px;
  }

  /* La légende passe sous la vue : l'intro devient transparente à la
     mise en page pour que ses enfants se réordonnent. */
  .exploration__intro { display: contents; }
  .exploration__surtitre { order: 1; font-size: 11px; margin-bottom: -10px; }
  .exploration__titre { order: 2; font-size: 32px; letter-spacing: -.02em; }
  .exploration__texte { order: 3; font-size: 15px; line-height: 1.6; }
  .exploration__vue { order: 4; height: min(54svh, 480px); min-height: 380px; gap: 16px; }
  .legende { order: 5; }

  .exploration--panneau-ouvert .exploration__intro { opacity: 1; }

  .legende {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -20px;
    padding: 0 20px 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .legende li { flex: none; scroll-snap-align: start; }
  .legende__bouton {
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    font-size: 14px;
    white-space: nowrap;
  }
  .legende__numero { width: auto; }
  .legende__bouton.est-active {
    border-color: var(--accent);
    background: rgba(228, 0, 43, .14);
  }

  .scene3d__outils { top: 10px; }
  .scene3d__outils--gauche { left: 10px; }
  .scene3d__outils--droite { right: 10px; }
  .outil { width: 36px; height: 36px; }

  .scene3d__aide {
    left: 10px;
    right: 10px;
    bottom: 10px;
    justify-content: center;
    gap: 14px;
    padding: 8px 10px;
    font-size: 11px;
    white-space: nowrap;
  }
  .geste { gap: 6px; }
  .geste svg { width: 16px; height: 16px; }
  .geste--deplacer { display: none; }

  /* Pastilles plus petites : l'île est plus petite. */
  .pastille__disque {
    left: -14px;
    top: -14px;
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .pastille__nom { left: 26px; }

  .commandes { gap: 8px; }
  .commande { width: 44px; height: 44px; }
  .commande[data-action^="tourner"],
  .commandes__separateur:first-of-type { display: none; }
  .commandes__separateur { margin: 0 4px; }
  .commandes__reinit { height: 44px; padding: 0 16px; }

  /* Feuille du bas, ouverte en modal : elle occupe 70 % de l'écran. */
  .panneau {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    height: 70svh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -18px 48px rgba(4, 12, 26, .35);
    transform: translateY(100%);
    transition: transform 200ms cubic-bezier(.4, 0, 1, 1);
  }
  .panneau.est-ouvert {
    transform: none;
    transition: transform 280ms var(--sortie);
  }
  .panneau::backdrop {
    background: rgba(4, 12, 26, .45);
    opacity: 0;
    transition: opacity 280ms var(--sortie);
  }
  .panneau.est-ouvert::backdrop { opacity: 1; }

  .panneau__prise {
    touch-action: none;
    cursor: grab;
  }
  .panneau__poignee {
    display: block;
    width: 44px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: #DDE1E8;
  }
  .panneau__entete {
    align-items: center;
    padding: 18px 20px 0;
  }
  .panneau__intitule {
    grid-template-areas: "numero titre";
    column-gap: 10px;
  }
  .panneau__numero { width: 28px; height: 28px; font-size: 13px; }
  .panneau__zone { display: none; }
  .panneau__titre { font-size: 24px; }
  .panneau__fermer { width: 32px; height: 32px; }

  .panneau__photo { height: 130px; margin: 16px 20px 0; border-radius: var(--rayon); }
  .panneau__texte { padding: 16px 20px 0; font-size: 14px; line-height: 1.65; }
  .panneau__infos { gap: 8px; margin: 16px 20px 0; }
  .panneau__infos > div { padding: 10px; border-radius: 10px; }
  .panneau__infos dt { font-size: 9px; }
  .panneau__infos dd { margin-top: 2px; font-size: 13px; }
  .panneau__actions { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); }
  .panneau__lien { display: none; }
}

/* La page ne défile plus sous la feuille ouverte. */
html:has(.panneau:modal) { overflow: hidden; }


/* ---------------------------------------------------------
   7. Responsive — bascule sur la maquette mobile 390 px
   --------------------------------------------------------- */

/* Sous 1024 px, les cinq liens ne tiennent plus sur une ligne à côté de
   la marque et des actions. La navigation passe alors en panneau
   déroulant, ouvert par le bouton burger. */
@media (max-width: 1023px) {
  .nav-principale {
    position: absolute;
    top: var(--hauteur-entete);
    left: 0;
    right: 0;
    flex: none;
    padding: 8px var(--marge) 24px;
    background: var(--bleu-nuit);
    color: #fff;
    display: none;
  }
  .nav-principale.est-ouverte { display: block; }
  .nav-principale ul {
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
  }
  .nav-principale a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
  }

  .entete__inner { gap: 24px; }
  .entete__actions { margin-left: auto; }
  .burger { display: flex; }
}


/* Maquette mobile 390 px */
@media (max-width: 767px) {
  :root {
    --marge: 20px;
    --hauteur-entete: 64px;
    --titre-hero: 2.75rem;   /* 44 px sur la maquette 390 */
  }

  .entete__inner { gap: 12px; }
  .marque { font-size: 14px; }
  .marque__long { display: none; }
  .marque__court { display: inline; }

  .entete__actions { gap: 14px; }
  .langues { font-size: 13px; font-weight: 600; }
  .bouton--clair { display: none; }

  /* Voile légèrement différent sur la maquette mobile */
  .hero__voile {
    background: linear-gradient(180deg,
                rgba(11, 31, 58, .5) 0%,
                rgba(11, 31, 58, .1) 38%,
                rgba(11, 31, 58, .7) 100%);
  }

  .hero__contenu { bottom: 150px; max-width: none; }
  .hero__surtitre { margin-bottom: 14px; font-size: 12px; }
  .hero__titre { letter-spacing: -.03em; line-height: 1.05; }
  .hero__sous-titre { margin-top: 14px; font-size: 16px; }

  /* La maquette mobile ne garde qu'un seul appel à l'action,
     sur toute la largeur. */
  .hero__actions { margin-top: 20px; display: block; }
  .bouton--accent { display: flex; width: 100%; height: 50px; font-size: 16px; }
  .bouton--contour { display: none; }

  .hero__indice {
    bottom: 76px;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
  }
  .hero__indice-suite { display: none; }
  .hero__fleche { font-size: 13px; }

  .hero__progression { bottom: 40px; }
}


/* ---------------------------------------------------------
   8. Mouvements réduits
      Pas de scrub : la maquette demande une image fixe et le
      titre final. main.js n'initialise alors aucun ScrollTrigger.
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  /* Pas de halo pulsant ni de barre de chargement qui oscille.
     exploration-3d.js coupe de son côté l'orbite et les animations. */
  .pastille__disque,
  .scene3d--indetermine .chargement__barre span { animation: none !important; }
}

/* Classe posée par main.js quand le scrub ne peut pas tourner
   (mouvements réduits, ou frames indisponibles). */
.hero--statique .hero__indice,
.hero--statique .hero__progression {
  display: none;
}
.hero--statique .hero__actions {
  opacity: 1;
  transform: none;
}
