/* styles exclusivement en rapport avec le player ( boutons, progress bar ... ) */

.title {
  margin: 1rem 2rem 1rem 1rem;
}

.controls {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 1rem 2rem 1rem 2rem;
}

.controls button.previous-button {
  font-size: 10px;
}

.controls .volume-controls {
  width: 90%;
}

.controls button {
  background-color: transparent;
  border: none;
  border-radius: 10px;
  padding: 10px 0;
  width: 80%;
  cursor: pointer;
  transition: 0.2s ease all;
}

.controls button:hover {
  background-color: rgba(102, 102, 102, 0.425);
  transition: 0.2s ease all;
}

button:hover i {
  color: #fff;
  transition: 0.2s;
}

/* Styles pour la barre de progression */
.progress-bar {
  height: 8px;
  position: relative;
  background-color: rgba(102, 102, 102, 0.425);
  border-radius: 5px;
  cursor: pointer;
  margin: 1rem 2rem 1rem 2rem;
}

.progress {
  height: 100%;
  background: linear-gradient(to right, #009ec0 40%, #ca0037 100%);
  border-radius: 5px;
  width: 0;
}

.progress-bar {
  position: relative;
  cursor: pointer;
}

.progress-handle {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #fff;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.progress {
  z-index: 1;
}

/* régler souci boutons qui se décalent  */
.previous-button {
  justify-self: right;
  align-self: end;
  margin: 0 0 0 auto;
}

.play-pause-button {
  margin: 0 auto;
}

.next-button {
  margin: 0 auto 0 0;
}

/* style des boutons */
button i {
  display: block;
  color: hsla(0, 0%, 100%, 0.7); /* blanc semi-opaque */
  font-size: 35px;
  text-align: center;
  transition: 0.1s;
}

/* styles liés au controle du volume  */
.volume-controls {
  display: flex;
  align-items: center;
}

.volume-controls i {
  display: block;
  color: hsla(0, 0%, 100%, 0.7); /* blanc semi-opaque */
  font-size: 35px;
  text-align: center;
  transition: 0.1s;
  margin-right: 20px;
}

#volumeSlider {
  width: 100px;
  cursor: pointer;
}

.volume-bar {
  height: 8px;
  width: 100px;
  position: relative;
  background-color: rgba(102, 102, 102, 0.425);
  border-radius: 5px;
  cursor: pointer;
  overflow: visible; /* Remplacez "hidden" par "visible" */
}

.volume {
  z-index: 1;
  height: 100%;
  background: linear-gradient(to right, #009ec0, #ca0037);
  border-radius: 5px;
  width: 100%;
}

.volume-controls {
  position: relative;
}

.volume-handle {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: calc(90%); /* positionne le handle au bord droit de .volume-bar */
  transform: translateY(-50%);
  z-index: 5;
}

@media (max-width: 1200px) {
  #volume-control {
    display: none;
  }

  .controls {
    grid-template-columns: repeat(3, 1fr);
  }

  .controls button {
    /* background-color: rgba(77, 77, 77, 0); */
    /* border: none; */
    /* border-radius: 10px; */
    /* ajustement ecartement  */
    padding: 10px 10px;
    margin: 0 10px;
    cursor: pointer;
  }

  button i {
    display: block;
    /* color: hsla(0, 0%, 45%, 0.700);  */
    font-size: 25px;
    text-align: center;
    transition: 0.1s;
  }
}

/* import polices  */
@font-face {
  font-family: "regular";
  font-weight: 500;
  src: url("../../ressources/fonts/Inter-Regular.ttf");
}

@font-face {
  font-family: "semibold";
  font-weight: 600;
  src: url("../../ressources/fonts/Inter-SemiBold.ttf");
}
