* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: 'VT323', monospace;
}

.scene-wrap {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

/* Cadre à ratio fixe, façon "écran" centré sur fond noir.
   Change le aspect-ratio pour qu'il corresponde à ton image de fond réelle
   (ex: une image 1920x1200 -> aspect-ratio: 1920 / 1200). */
.scene {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1200 / 743;
  background: #000;
}

.background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  user-select: none;
  pointer-events: none;
}

.background-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  transform: translate(-50%, -50%);
  z-index: 5;
  display: block;
}

.hotspot img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
  transition: filter 0.15s ease, transform 0.15s ease;
}

.hotspot.clickable {
  cursor: pointer;
}

.hotspot.clickable:hover img {
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)) brightness(1.25);
  transform: scale(1.04);
}

.hotspot.deco {
  pointer-events: none;
}

.hotspot.titre {
  left: 50%;
  top: 50%;
}

/* boîtes de notes */

.construction-badge {
  position: fixed;
  top: 10px;
  left: 10px;
  background: #000;
  color: #eaeaea;
  border: 1px solid #eaeaea;
  padding: 3px 10px;
  font-family: 'VT323', monospace;
  font-size: 20px;
  letter-spacing: 1px;
  z-index: 999;
  pointer-events: none;
}

.welcome-badge {
  position: fixed;
  bottom: 10px;
  right: 10px;
  max-width: 340px;
  background: #000;
  color: #eaeaea;
  border: 1px solid #eaeaea;
  padding: 6px 14px;
  font-family: 'VT323', monospace;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1.4;
  z-index: 999;
  /* pointer-events: none;*/
}

a {
  color:white;
}

/* étiquette terminal : rectangle noir, texte blanc, suit la souris */
.tooltip {
  position: fixed;
  top: 0;
  left: 0;
  background: #000;
  color: #eaeaea;
  border: 1px solid #eaeaea;
  padding: 3px 10px;
  font-family: 'VT323', monospace;
  font-size: 22px;
  letter-spacing: 1px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-9999px, -9999px);
  transition: opacity 0.1s ease;
  z-index: 999;
  white-space: nowrap;
}

.tooltip.visible {
  opacity: 1;
}
