/* SLIDESHOW : réutilisable sur toutes les scènes */

#slideshow-root {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #05070a;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #14171d;
  color: #4a4438;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.slideshow-bottom-row {
  position: absolute;
  bottom: 6vh;
  left: 5vw;
  right: 5vw;
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 1rem;
  z-index: 5;
}

.dialogue-box {
  flex: 1;
  background: rgba(5, 7, 10, 0.85);
  border: 1px solid rgba(216, 201, 176, 0.3);
  border-radius: 4px;
  padding: 1.4rem 1.8rem;
}

.dialogue-speaker {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d8c9b0;
  margin-bottom: 0.5rem;
}

.dialogue-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f2efe9;
}

.dialogue-text:empty {
  display: none;
}

.slide-music-link {
  display: none;
  margin-top: 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: #d8c9b0;
  text-decoration: none;
  border-bottom: 1px dotted rgba(216, 201, 176, 0.5);
}

.slide-music-link:hover {
  color: #f2efe9;
}

/* Variantes de ton : whisper, mumble ou sigh */
.dialogue-text.tone-whisper {
  font-style: italic;
  color: #a99c86;
  letter-spacing: 0.02em;
}

.dialogue-text.tone-mumble {
  font-style: italic;
  opacity: 0.6;
}

.dialogue-text.tone-sigh {
  font-style: italic;
  color: #6f6555;
  font-size: 0.85rem;
}

.dialogue-line + .dialogue-line {
  margin-top: 1rem;
}

.slideshow-choices {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.choice-btn {
  white-space: nowrap;
  min-width: 140px;
  text-align: center;
}

/* Boutons */
.slideshow-controls {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.skip-btn {
  background: none;
  border: none;
  color: #a99c86;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.2rem 0;
}

.skip-btn:hover {
  color: #f2efe9;
}

.next-btn {
  background: #d8c9b0;
  color: #05070a;
  border: none;
  padding: 0.65rem 1.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.next-btn:hover {
  background: #f2efe9;
}
