/* =========================================================
   Scène : invention — une vitrine au centre, le cartel à gauche,
   la navigation en bas, Shad'Owl en bas à droite.
   ========================================================= */
.scene-invention { pointer-events: none; }
.scene-invention > * { pointer-events: auto; }

/* ---------------- Haut : nom de la visite + progression ---------------- */
.invention-haut {
  position: absolute; left: 50%; top: clamp(84px, 11vh, 116px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; pointer-events: none;
}
.invention-visite {
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--or);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
}
.invention-progression { display: flex; gap: 8px; list-style: none; }
.invention-progression li {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(241, 232, 218, .28);
  transition: background .4s ease, transform .4s ease, width .4s ease;
}
.invention-progression li.vue { background: rgba(214, 176, 122, .55); }
.invention-progression li.courante { width: 22px; border-radius: 4px; background: var(--or-vif); }

/* ---------------- Cartel (fiche de l'invention) ---------------- */
.cartel {
  position: absolute;
  left: clamp(20px, 6.8vw, 116px); top: 50%; transform: translateY(-46%);
  width: min(400px, 30vw);
  padding: 30px 30px 32px;
  border-radius: var(--rayon);
  background: rgba(13, 15, 30, .66);
  border: 1px solid var(--verre-bord);
  box-shadow: var(--ombre), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(16px) saturate(120%);
}
.cartel.change > * { animation: monte .6s cubic-bezier(.2, .8, .2, 1) both; }
.cartel.change > :nth-child(2) { animation-delay: .05s; }
.cartel.change > :nth-child(3) { animation-delay: .1s; }
.cartel.change > :nth-child(4) { animation-delay: .15s; }

.cartel-etiquettes { display: flex; flex-wrap: wrap; gap: 8px; }
.cartel-categorie, .cartel-futur {
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.cartel-categorie { border: 1px solid rgba(214, 176, 122, .45); color: var(--or-vif); }
.cartel-futur { background: linear-gradient(145deg, #8fb8ff, #b9a6ff); color: #141629; }
.cartel-futur[hidden] { display: none; }

.cartel-annee {
  margin-top: 18px;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(34px, 3.2vw, 52px); line-height: 1; color: var(--or);
}
.cartel-nom {
  margin-top: 6px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 2.3vw, 38px); line-height: 1.08; color: var(--creme);
}
.cartel-description { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--texte); }

/* ---------------- Navigation ---------------- */
.invention-commandes {
  position: absolute; left: 50%; bottom: clamp(20px, 4.5vh, 44px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
}
.commande {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; min-width: 48px; padding: 0 14px; border-radius: 999px;
  background: rgba(13, 15, 30, .6);
  border: 1px solid rgba(241, 232, 218, .22);
  backdrop-filter: blur(10px);
  color: var(--creme); font-size: 14px; font-weight: 500;
  transition: border-color .25s ease, background .25s ease, transform .25s ease, opacity .25s ease;
}
.commande svg { width: 20px; height: 20px; }
.commande:hover { border-color: var(--or); }
.commande-principale {
  padding: 0 22px 0 26px;
  background: linear-gradient(145deg, var(--or-vif), var(--or-sombre));
  border-color: transparent; color: #1b1626;
  box-shadow: 0 8px 24px rgba(214, 176, 122, .3);
}
.commande-principale:hover { transform: translateX(2px); }
.commande-discrete { background: none; border-color: transparent; color: var(--texte-doux); font-size: 13px; }
.commande:disabled { opacity: .35; cursor: default; transform: none; }

/* ---------------- Shad'Owl, le guide ---------------- */
.guide {
  position: absolute; right: clamp(16px, 4vw, 64px); bottom: clamp(16px, 3vh, 34px);
  width: clamp(92px, 8vw, 128px); aspect-ratio: 148 / 196;
  animation: flotte-guide 5s ease-in-out infinite;
}
.guide-pose { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.guide-pose.on { opacity: 1; }
.guide-halo {
  position: absolute; left: 50%; top: 45%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; opacity: .35;
  background: radial-gradient(circle, rgba(214, 176, 122, .35) 0%, transparent 65%);
  transition: opacity .4s ease;
}
body.ecoute .guide-halo, body.parle .guide-halo { opacity: 1; animation: pouls 1.4s ease-in-out infinite; }
.guide-micro {
  position: absolute; right: -4px; bottom: 18%;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(145deg, var(--or-vif), var(--or-sombre)); color: #1b1626;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
  transition: transform .25s ease;
}
.guide-micro svg { width: 17px; height: 17px; }
.guide:hover .guide-micro { transform: scale(1.1); }

@keyframes flotte-guide { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------------- Petits écrans ---------------- */
@media (max-width: 900px) {
  .cartel { left: 16px; right: 16px; top: auto; bottom: 96px; transform: none; width: auto; padding: 20px 22px; }
  .cartel-description { font-size: 14px; }
  .guide { bottom: auto; top: 96px; width: 80px; }
  .commande-discrete { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .guide, .cartel.change > *, body.ecoute .guide-halo, body.parle .guide-halo { animation: none !important; }
}
