/* Styles de base pour le corps de la page */
body {
  margin: 0;
  padding: 1rem;
  background-color: #0f0f0f; /* Fond noir pour imiter un terminal */
  color: #ffffff;            /* Texte blanc */
  font-family: 'JetBrains Mono', monospace; /* Police à espacement fixe */
  font-size: 1.1rem;
  line-height: 1.6;
  overflow-y: scroll;
  overflow-x: hidden;
}

/* Le conteneur principal qui simule un terminal */
#terminal {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  max-width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Style pour chaque ligne du terminal */
.line {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Texte de commande (blanc) */
.cmd {
  color: #ffffff;
}

/* Messages système (gris clair) */
.sys {
  color: #bbbbbb;
}

/* Style pour les commentaires */

  .commentary {
  color: #ffffff;
  font-style: italic;
  font-size: 0.8em;
  margin-left: 0em;
}

/* Éléments cliquables */
.clickable {
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .clickable:hover {
    color: #ffe066;
  }
}

/* Lignes pour groupes de batch (display flex) */
.batch-line {
  margin-top: 0em;
}

/* Badge "NEW" pour les nouveaux éléments */
.btn-new-serie::after {
  content: "NEW";
  color: #00C2FF;
  font-size: 0.8em;
}

/* Style pour les étiquettes de batch */
.batch-label {
  color: #7c8b94;
  margin-right: 0em;
}

/* Style pour les lecteurs audio */
audio {
  display: block;
  width: 100%;
  max-width: 600px;
  min-height: 44px;
}

/* Animation d'intro plein écran */
#banner-intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f0f0f;
  color: #ffffff;
  font-size: 0.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  white-space: pre;
  z-index: 9999;
  flex-direction: column;
}

/* Overlay pour les fenêtres modales */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
}

/* Style pour les fenêtres modales */
.modal {
  background-color: #0f0f0f;
  border: 1px solid #333;
  padding: 20px;
  border-radius: 6px;
  width: 320px;
  max-width: 90%;
  font-family: 'JetBrains Mono', monospace;
  color: #ffffff;
}

/* ======================================
   BOUTONS SPÉCIFIQUES – STRUCTURE MINIMALISTE
====================================== */
.btn-form,
.btn-series,
.btn-new-serie {
  display: inline;
  
  line-height: inherit;
  font-family: inherit;
}

.btn-series {
  cursor: pointer;
  color: #00C2FF;
  margin-right: 1.5em;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .btn-series:hover {
    color: #ffe066;
  }
}

.btn-new-serie {
  cursor: pointer;
  color: #00C2FF;
  margin-right: 1.5em;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .btn-new-serie:hover {
    color: #ffe066;
  }
}

.btn-track {
  cursor: pointer;
  color: #00C2FF;
  font-size: 0.8em;
  margin-right: 0.8em;
}
@media (hover: hover) and (pointer: fine) {
  .btn-track:hover {
    color: #ffe066;
  }
}


.btn-playlist {
  cursor: pointer;
  color: #7c8b94;
}
@media (hover: hover) and (pointer: fine) {
  .btn-playlist:hover {
    color: #ffe066;
  }
}

.btn-form {
  cursor: pointer;
  color: #ffffff;
  font-size: 0.8em;
  margin-right: 1.5em;
}
@media (hover: hover) and (pointer: fine) {
  .btn-form:hover {
    color: #ffe066;
  }
}

.batchNote {
  cursor: pointer;
  color: #7c8b94;
  margin-right: 1.5em;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .batchNote:hover {
    color: #ffe066;
  }
}

/* chemin de batch */
.pathSpan {
  color: #7c8b94;
  margin-right: 1.5em;
}

/* ======================================
   AJOUT – Gestion des coupures de ligne pour boutons dynamiques
====================================== */
.line {
  display: block;
  overflow-wrap: break-word;
}

.clickable.cmd {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
}
