:root { --marine: #15264f; --marine2: #0e1a38; --or: #d4af37; --or-clair: #ecd9a0; --creme: #faf7f0; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--marine2); color: #fff;
  font-family: Arial, Helvetica, sans-serif; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* Accueil */
#accueil { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 18px; padding: 24px; text-align: center;
  background: linear-gradient(rgba(14,26,56,.82), rgba(14,26,56,.94)), url(img/hero-1024.jpg?v=20261118) center/cover; }
#accueil .logo { width: 150px; }
#accueil h1 { font-size: 24px; line-height: 1.2; }
#accueil h1 b { color: var(--or); display: block; font-size: 28px; }
#accueil p { font-size: 15px; color: #dfe5f2; max-width: 420px; line-height: 1.4; }
#accueil .zone-demandee { color: var(--or); font-weight: 700; }
.btn { border: 0; border-radius: 999px; padding: 15px 26px; font-size: 17px; font-weight: 700; min-width: 260px; }
.btn.or { background: var(--or); color: var(--marine); }
.btn.ligne { background: transparent; color: #fff; border: 2px solid var(--or); }
#accueil .livraison { margin-top: 6px; font-size: 13px; color: var(--or-clair); letter-spacing: .5px; }
#chargement { font-size: 13px; color: #b9c3db; min-height: 16px; }

/* Scènes */
#scene-ar, #scene-3d { position: fixed; inset: 0; }
#scene-3d canvas, #scene-ar canvas { touch-action: none; }
.barre { position: fixed; left: 0; right: 0; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; background: linear-gradient(rgba(14,26,56,.9), rgba(14,26,56,0)); }
.barre img { height: 30px; }
.barre button { background: rgba(14,26,56,.7); color: #fff; border: 1px solid var(--or); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
#consigne { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 20;
  background: rgba(14,26,56,.85); border: 1px solid var(--or); border-radius: 14px; padding: 12px 16px; font-size: 15px;
  text-align: center; width: min(92vw, 420px); }
#viseur { position: fixed; inset: 18% 10%; z-index: 15; border: 3px solid rgba(212,175,55,.85); border-radius: 18px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(14,26,56,.18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { border-color: rgba(212,175,55,.3); } }

/* Fiche de zone */
#fiche { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--creme); color: var(--marine);
  border-top: 4px solid var(--or); border-radius: 18px 18px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(105%); transition: transform .35s ease; max-width: 640px; margin: 0 auto; }
#fiche.ouverte { transform: translateY(0); }
#fiche .tete { display: flex; align-items: center; gap: 12px; }
#fiche .num { width: 34px; height: 34px; border-radius: 50%; background: var(--marine); color: var(--or); font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none; }
#fiche .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--or-clair); display: flex; align-items: center; justify-content: center; flex: none; }
#fiche .ico svg { width: 28px; height: 28px; }
#fiche h2 { font-size: 20px; }
#fiche p { font-size: 16px; line-height: 1.4; margin: 12px 0 14px; color: #34405e; }
#fiche p b { color: var(--marine); }
#fiche .actions { display: flex; gap: 10px; }
#fiche .actions button { flex: 1; min-width: 0; padding: 12px; font-size: 15px; }
#fiche .fermer { position: absolute; right: 12px; top: 10px; background: none; border: 0; font-size: 26px; color: var(--marine); }
#fiche .nav { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
#fiche .nav button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--marine); background: #fff; color: var(--marine); font-weight: 700; }
#fiche .nav button.actif { background: var(--marine); color: var(--or); }

/* Vidéo */
#lecteur { position: fixed; inset: 0; z-index: 40; background: rgba(5,10,24,.92); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 16px; gap: 12px; }
#lecteur video { width: min(96vw, 960px); max-height: 75vh; border: 2px solid var(--or); border-radius: 10px; background: #000; }
#lecteur button { background: var(--or); color: var(--marine); border: 0; border-radius: 999px; padding: 10px 22px; font-weight: 700; font-size: 15px; }

/* Immersion */
#aide-immersion { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 20;
  background: rgba(14,26,56,.85); border: 1px solid var(--or); border-radius: 14px; padding: 10px 16px; font-size: 14px; text-align: center; width: min(92vw, 420px); }
#erreur { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; background: #7a1d1d; color: #fff; padding: 12px; border-radius: 10px; font-size: 14px; }

/* Menu des zones (bas d'écran, défilement horizontal) */
#menu-zones { position: fixed; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 21; display: flex; gap: 8px;
  overflow-x: auto; padding: 0 12px; scrollbar-width: none; }
#menu-zones::-webkit-scrollbar { display: none; }
#menu-zones button { flex: none; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 14px 6px 6px;
  background: rgba(14,26,56,.9); color: #fff; border: 1.5px solid var(--or); border-radius: 999px; font-size: 14px; }
#menu-zones b { width: 38px; height: 38px; border-radius: 50%; background: var(--or); color: var(--marine); display: flex; align-items: center; justify-content: center; font-size: 17px; }
