@charset "utf-8";
/* CSS Document */

/* Tailles de texte */
.small {
  font-size: 60%;
}

.medium {
  font-size: 80%;
}

/* Header global */
header {
  transition: padding-top 0.3s ease;
}

@media (max-width: 768px) {
  header {
    padding-top: 70px; /* ajuste la valeur selon la hauteur du lecteur audio */
  }
}

#header {
  padding-top: 4rem !important; /* ajuste la valeur selon la hauteur de ta barre */
}

/* Layout général */
#wrapper {
  min-height: auto;
}

#main {
  margin-top: 40px;
}

@media (max-width: 720px) {
  #main {
    margin-top: 100px;
  }
}

/* === BARRE GLOBALE === */
#audio-player-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(36, 2, 53, 0.93);
  color: #fff;
  z-index: 9999;
  padding: 10px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
}

/* bouton note de musique */
.ambiance-icon {
  min-width: 32px;
  padding: 4px 6px;
  font-size: 18px;
  line-height: 1;
}

/* select ambiance : largeur maîtrisée */
.ambiance-select {
  flex: 1 1 auto;
  max-width: 200px; /* ajuste à ton goût (180 / 220 etc.) */
  min-width: 120px;
}

.player-block {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* === LIGNE PRINCIPALE === */
.player-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
}

/* bouton play/pause */
.btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 6px 10px;
  letter-spacing: 0.08rem;
  border-radius: 6px;
  cursor: pointer;
  height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* zone progression */
.progress-area {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* barre de progression */
#main-progress {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

#main-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 22px;
  border-radius: 2px;
  background: #00bfff;
  box-shadow: 0 0 6px rgba(0, 191, 255, 0.6);
  cursor: pointer;
}

/* temps et titre superposés */
.time {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  pointer-events: none;
}

#main-current {
  left: 8px;
  text-align: left;
  opacity: 0.85;
}

#main-remaining {
  right: 8px;
  text-align: right;
  opacity: 0.85;
}

/* titre méditation (fusion des deux blocs) */
#meditation-title {
  position: absolute;
  top: 40%;
  transform: translateY(-90%);
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem; /* dernière valeur conservée */
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: auto !important;
  z-index: 20 !important;
}

/* volume voix */
#main-volume {
  -webkit-appearance: none;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
}

#main-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00bfff;
}

.player-volumes {
  display: flex;
  gap: 10px;
}

.player-volumes .volume-group {
  flex: 1 1 50%;
  align-items: stretch;
}

/* === LIGNE AMBIANCE === */
.player-ambiance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.volume-group,
.ambiance-group {
  display: flex;
  flex-direction: column;
  align-items: center; /* centre le label au-dessus */
}

/* labels volumes / ambiance */
.volume-group .vol-label,
.ambiance-group,
.ambiance-label {
  margin-bottom: 0; /* espace entre texte et slider */
  font-size: 0.8rem;
  opacity: 0.8;
  line-height: 1;
}

.volume-small {
  -webkit-appearance: none;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
}

.volume-small::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00bfff;
}

/* === Responsive === */
@media (max-width: 720px) {
  .player-main {
    flex-direction: row;  /* reste en ligne */
    flex-wrap: wrap;      /* permet de passer à la ligne si besoin */
    gap: 8px;
    align-items: center;
  }

  /* bouton play compact */
  #main-play-btn {
    flex: 0 0 auto;
  }

  /* la zone de progression prend le reste */
  .progress-area {
    flex: 1 1 auto;
  }

  .player-ambiance {
    flex-wrap: wrap;
  }

  #main-volume,
  .volume-small {
    width: 100%; /* sliders sur toute la largeur en mobile */
  }

  .time {
    display: none;
  }
}

/* select ambiance (id) */
#ambiance-select {
  display: inline-block;   /* pour qu'il ne prenne pas toute la largeur */
  width: auto;             /* largeur automatique selon le contenu */
  min-width: 140px;        /* largeur minimale si besoin */
  max-width: 200px;        /* largeur maximale si besoin */
  padding: 0.3em 0.5em;    /* ajuster l’espace intérieur */
  font-size: 0.9em;        /* harmoniser avec les boutons */
  vertical-align: middle;  /* pour aligner avec le bouton */
}

/* bouton ON/OFF ambiance */
.ambiance-toggle {
  font-size: 0.45rem;
  padding: 0 6px;
  border: 1px solid #666;
  background: #222;
  color: #ddd;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.15rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.ambiance-toggle.active {
  background: #33AA66;
  color: #fff;
  border-color: #00FF6D;
}

/* bouton lecture article */
.play-article-btn {
  font-size: 0.6em;
  cursor: pointer;
  border: 1px solid #666;
  background: #280681;
  letter-spacing: 0.08rem;
  margin-bottom: 10px;
}

/* sous-titres */
.subtitle {
  font-size: 1.5em;
  color: #000000; /* ou une couleur douce selon ton thème */
  margin-bottom: 4px;
  font-style: italic;
}

/* lien de partage */
.share {
  display: block;            /* pour permettre text-align */
  text-align: right;         /* aligne le contenu du lien */
  color: #DDAC00 !important; /* force la couleur dorée */
  margin: 6px 0;
  text-decoration: none !important;
  border-bottom: none !important;
}

/* mots-clés cachés pour chaque méditation */
.keywords {
  display: none; /* mots clés pour chaque méditation */
}
