:root {
  --bg-color: #121212;
  --surface-color: #1e1e1e;
  --surface-hover: #2c2c2c;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent-color: #bb86fc;
  --accent-glow: rgba(187, 134, 252, 0.2);
  --border-color: #333333;
}

/* ============================================================
   VIDÉO D'ARRIÈRE-PLAN
   ============================================================ */
   
.video-background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  background-color: #000; /* Fond noir derrière la vidéo */
}

.video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.10; /* Transparence qui tire vers le noir */
}

/* Ajustement de l'overlay pour compléter l'assombrissement */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Overlay noir supplémentaire */
  z-index: -1;
}

/* Désactiver la vidéo pour les utilisateurs sensibles au mouvement */
@media (prefers-reduced-motion: reduce) {
  .video-background {
    display: none;
  }
  
  .video-overlay {
    background: var(--bg-color);
  }
}

/* Optionnel : désactiver la vidéo sur mobile pour économiser batterie et données */
@media (max-width: 768px) {
  .video-background {
    display: none;
  }
  
  .video-overlay {
    background: var(--bg-color);
  }
}

body {
  background-color: transparent; /* Devient transparent pour laisser voir la vidéo */
  color: var(--text-primary);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* --- HEADER (structure deux colonnes) --- */
.main-header {
  margin-bottom: 40px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.header-image-box {
  flex: 0 0 375px;
  max-width: 30%;
}

.header-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-img:hover {
  transform: scale(1.025);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.header-text-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.header-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}

.header-title-row h1 {
  margin: 0;
  flex: 1;
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-glow);
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0 0 20px 0;
  font-style: italic;
}

.long-text-container {
  background: rgba(255, 255, 255, 0.04);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  width: 100%;
}

.long-text {
  transition: max-height 0.5s ease, opacity 0.5s ease;
  overflow: hidden;
  opacity: 0.9;
  max-height: 100px;
}

.long-text p {
  margin: 10px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: justify;
}

.toggle-btn {
  background: none;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s;
  display: block;
  width: fit-content;
}

.toggle-btn:hover {
  background: var(--accent-color);
  color: #000;
}

/* VERSION SELECTOR BUTTONS */
.version-selector {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.version-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  border-radius: 40px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.version-selector-btn:hover {
  border-color: var(--accent-color);
  background: var(--surface-hover);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.version-selector-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #000;
  box-shadow: 0 0 15px var(--accent-glow);
}

.version-selector-btn .btn-icon {
  font-size: 1rem;
}

.version-selector-btn .btn-text {
  font-weight: 600;
}

/* --- SECTIONS & GALERIES --- */
.act-section {
  margin: 50px 0;
  text-align: left;
}

.act-title.centered {
  text-align: center;
  border-left: none;
  border-bottom: 3px solid var(--accent-color);
  padding: 0 0 15px 0;
  margin: 40px auto 30px auto;
  max-width: 300px;
  position: relative;
}

.act-title.centered::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}

.media-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  flex: 1 1 280px;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.media-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-color);
  border-width: 1.5px;
  box-shadow: 0 8px 25px rgba(187, 134, 252, 0.15);
}

.img-wrapper {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  pointer-events: none;
}

.media-card:hover .img-wrapper img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-card:hover .play-overlay {
  opacity: 1;
}

.card-title {
  color: var(--accent-color);
  margin: 10px 0 5px;
  font-size: 1.1rem;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-performer {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--accent-color);
  margin: 6px 0;
  opacity: 0.9;
}

.card-interpretation {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.9rem;
  margin: 5px 0 15px 0;
  opacity: 0.9;
  min-height: 2.5em;
}

/* Ligne horizontale pour titre + bouton NFT */
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* Titre dans cette configuration */
.card-title-row .card-title {
  margin: 0;
  min-height: auto;
}

/* Bouton NFT réduit de 50% et aligné à gauche du titre */
.nft-inline .btn-nft-main {
  width: auto;
  max-width: none;
  padding: 2px 8px;
  font-size: 0.6rem;
  border-radius: 16px;
}

.nft-inline .btn-nft-main .btn-text {
  display: inline;
}

.nft-inline .nft-dropdown {
  left: 0;
  transform: none;
  min-width: 100px;
}

.nft-inline .nft-dropdown a {
  padding: 6px 10px;
  font-size: 0.7rem;
}

/* BOUTON NFT */
.nft-dropdown-container {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  width: 100%;
}

.btn-nft-main {
  background-color: rgba(60, 60, 60, 0.5);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all 0.2s;
  opacity: 0.8;
  width: 100%;
  max-width: 120px;
}

.btn-nft-main:hover {
  opacity: 1;
  border-color: var(--accent-color);
  background-color: rgba(70, 70, 70, 0.7);
}

.nft-dropdown {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(30, 30, 30, 0.98);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  min-width: 140px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
  z-index: 100;
  padding: 5px 0;
  margin-bottom: 8px;
  flex-direction: column;
}

.nft-dropdown.show {
  display: flex;
}

.nft-dropdown a {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid #4CAF50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  color: #4CAF50;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.nft-dropdown a:last-child {
  border-bottom: none;
}

.nft-dropdown a:hover {
  background-color: rgba(187, 134, 252, 0.2);
  background: #4CAF50;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.nft-dropdown a.nft-unavailable {
  color: #f44336 !important;
  border-color: #f44336 !important;
  background: rgba(244, 67, 54, 0.12) !important;
}

.nft-dropdown a.nft-unavailable:hover {
  background: #f44336 !important;
  color: #000 !important;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3) !important;
}

.loading-placeholder {
  color: var(--text-secondary);
  text-align: center;
  padding: 40px;
  font-style: italic;
}

.section-empty {
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  padding: 30px;
  opacity: 0.6;
}

/* --- MODALE AVEC NOUVELLE STRUCTURE --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--surface-color);
  border-radius: 12px;
  width: 95%;
  max-width: 1200px;
  position: relative;
  border: 1px solid var(--accent-color);
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--surface-color);
  z-index: 10;
}

.modal-header-title {
  flex: 1;
  text-align: center;
  color: var(--accent-color);
  font-size: 1.3rem;
  margin: 0;
}

.close-btn {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  flex-shrink: 0;
}

.close-btn:hover {
  color: var(--accent-color);
}

/* LAYOUT DEUX COLONNES */
.modal-layout {
  display: flex;
  gap: 30px;
  padding: 20px;
  align-items: flex-start;
}

/* COLONNE GAUCHE : 1/3 */
.modal-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-wrapper {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

/* PLAYLIST */
.sidebar-playlist {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.sidebar-label {
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: bold;
  padding: 12px 15px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

.playlist-scroll {
  max-height: 150px;
  overflow-y: auto;
  padding: 10px;
}

.playlist-item {
  padding: 6px 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item:hover {
  background: rgba(187, 134, 252, 0.1);
  color: var(--text-primary);
}

.playlist-item.active {
  background: var(--accent-color);
  color: #000;
  font-weight: bold;
}

/* COLONNE DROITE : 2/3 */
.modal-right {
  flex: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* GRILLE INFOS (Interprète, Scène, Version) */
.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 15px 20px;
  border: 1px solid var(--border-color);
}

.info-item {
  flex: 1;
  min-width: 120px;
}

.info-label {
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 5px;
}

.info-value {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-style: italic;
}

/* SECTIONS TEXTE */
.modal-sections {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-section {
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
}

.modal-section strong {
  color: var(--accent-color);
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.modal-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
  text-align: justify;
}

/* Barre audio pleine largeur */
.audio-wrapper {
  width: 100%;
  margin-top: auto;
  margin-bottom: 0;
}

.audio-wrapper audio {
  width: 100%;
  margin-top: 10px;
  height: 40px;
  display: block;
}

/* Style sombre pour Chrome, Edge, Safari (WebKit) */
.audio-wrapper audio::-webkit-media-controls-panel {
  background-color: #2a2a2a !important;
}

.audio-wrapper audio::-webkit-media-controls-current-time-display,
.audio-wrapper audio::-webkit-media-controls-time-remaining-display {
  color: #e0e0e0 !important;
}

.audio-wrapper audio::-webkit-media-controls-timeline {
  background-color: #444444 !important;
}

.audio-wrapper audio::-webkit-media-controls-volume-slider {
  background-color: #444444 !important;
}

.audio-wrapper audio::-webkit-media-controls-play-button {
  background-color: #555555 !important;
  border-radius: 50% !important;
}

/* Style sombre pour Firefox */
.audio-wrapper audio {
  background-color: #2a2a2a;
  border-radius: 4px;
}

.audio-wrapper audio::-moz-range-track {
  background-color: #444444;
}

.audio-wrapper audio::-moz-range-thumb {
  background-color: var(--accent-color);
}

/* Masquer les menus quand la modale est ouverte */
body.modal-open .burger-menu-container,
body.modal-open .language-menu-floating {
  display: none !important;
}

/* Styles pour les sections avec une seule carte (Ouverture, Entracte, Fermeture) */
.gallery.single-card {
  display: flex;
  justify-content: center;
}

.gallery.single-card .media-card {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;  /* ← Changé : centre verticalement tout le contenu */
  gap: 25px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-width: 1.5px;
}

.gallery.single-card .media-card .img-wrapper {
  flex: 0 0 300px;
  aspect-ratio: 4 / 3;
  margin-bottom: 0;
}

.gallery.single-card .media-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* ← Changé : centre verticalement le contenu texte */
  gap: 12px;  /* ← Ajouté : espace régulier entre les éléments */
  text-align: center;
}

.gallery.single-card .media-card .card-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;  /* ← Supprime les marges superflues */
}

.gallery.single-card .media-card .card-title {
  margin: 0;
  min-height: auto;
  font-size: 1.1rem;
}

.gallery.single-card .media-card .card-performer {
  margin: 0;
  font-size: 0.9rem;
}

.gallery.single-card .media-card .card-interpretation {
  margin: 0;
  font-size: 0.85rem;
}

.gallery.single-card .media-card .nft-dropdown-container {
  margin-top: 0;  /* ← Supprime la marge supplémentaire */
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .modal-layout {
    flex-direction: column;
  }
  
  .modal-left {
    width: 100%;
  }
  
  .modal-right {
    width: 100%;
  }
  
  .info-grid {
    flex-direction: column;
    gap: 12px;
  }
  
  .playlist-scroll {
    max-height: 200px;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-image-box {
    flex: 0 0 auto;
    max-width: 280px;
    width: 80%;
  }

  .header-text-box {
    width: 100%;
    align-items: center;
  }

  .header-title-row {
    width: 100%;
    justify-content: center;
    flex-direction: column;
  }

  .header-title-row h1 {
    text-align: center;
  }

  .version-selector {
    justify-content: center;
  }

  .long-text p {
    text-align: left;
  }

  h1 {
    font-size: 1.6rem;
  }

  .act-title.centered {
    font-size: 1.4rem;
    max-width: 250px;
  }

  .media-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .btn-nft-main {
    max-width: 100%;
  }
  
  .nft-dropdown {
    left: 0;
    transform: none;
    min-width: 100%;
  }

  .gallery.single-card .media-card {
    flex-direction: column;
    max-width: 100%;
  }
  
  .gallery.single-card .media-card .img-wrapper {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* Uniformiser toutes les images des cartes */
.media-card .img-wrapper {
  flex: 0 0 160px;
  aspect-ratio: 4 / 3;
  width: 100%;
}