body {
  margin: 0;
  background-color: #000;
  font-family: system-ui, Arial, sans-serif;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Écran de choix des portes */
#choice-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  scale: 100%;
  background: url("./assets/intro/home.png") no-repeat center bottom / 100% 100%;
  z-index: 20000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 26.35%;
  padding-bottom: 50px;
}

.door-image {
  cursor: pointer;
  max-height: 60vh;
  object-fit: contain;
  transition: filter 0.2s ease;
}

.door-image.blue:hover {
  filter: drop-shadow(0 0 25px rgba(0, 123, 255, 0.9)) brightness(1.15);
}

.door-image.red:hover {
  filter: drop-shadow(0 0 25px rgba(220, 53, 69, 0.9)) brightness(1.15);
}

/* Animations (Balle & Flash) */
#ball-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 25000;
  clip-path: inset(0 20% 0 0);
}

.anim-ball {
  position: absolute;
  top: 50%;
  right: -100px;
  pointer-events: none;
  animation: moveBall 0.6s ease-out forwards;
}

@keyframes moveBall {
  0% { right: -100px; transform: translateY(0px); }
  15% { right: -100px; transform: translateY(0px); }
  50% { transform: translateY(-550px); }
  80% { right: 50vw; transform: translateY(-800px); }
  96% { right: 80vw; transform: translateY(-600px); }
  100% { right: 120vw; transform: translateY(-600px); }
}

.anim-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 30000;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.3s ease-out;
}

/* Canvas Three.JS, Info & Conteneurs */
#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  display: block;
}

#info {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #fff;
  font-family: sans-serif;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  pointer-events: none;
  z-index: 10;
}

main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: block;
  pointer-events: auto;
}

iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

#navigationIframe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  background: transparent;
  
  /* Superposition : au-dessus du #canvas (z-index: 1) 
     mais en-dessous du #musicplayer (z-index: 9999) */
  z-index: 10; 
  
  /* Active explicitement toutes les interactions souris/tactile */
  pointer-events: auto; 
}