/* style des scrollbar  */
* {
  ::-webkit-scrollbar {
    background-color: rgba(102, 102, 102, 0.425);
    width: 10px;
    border-radius: 20px;
  }

  ::-webkit-scrollbar-button {
    background-color: rgba(102, 102, 102, 0.425);
    border-radius: 20px;
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(#009ec0 30%, #ca0037 100%);
    border-radius: 20px;
  }
}

body {
  padding: 0;
  margin: 0;
  font-family: "regular";
  background: black url(ressources/img/fond.webp) no-repeat;
  background-position: center;
  background-size: cover; 
  backdrop-filter: blur(0px);
  min-height: 100vh;
  /* Empêche le défilement vertical */
  /* overflow-y: hidden; */
}

/* body::before {
    content: "";
    background: rgba(0, 0, 0, 0.5); 
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    z-index: -1; 
} */

/* style header */
.menu {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem 2rem 2rem;
}

img {
  height: 3.5rem;
}

.iconbox {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
  text-decoration: none;
}

a.connecter {
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.3);
  padding: 0.5rem;
  border-radius: 10px;
  color: white;
  transition: 0.2s;
}

a.connecter:hover {
  transition: 0.2s;
  box-shadow: 0 0 11px rgba(0, 0, 0, 0.2);
  transform: scale(1.005);
}

/* Conteneur principal centré sur la page */
.conteneur-principal {
  width: 50%;
  margin: 0 auto;
  /* height: 100vh; */
}

/* Conteneur son actuel */
.son-actuel {
  display: flex;
  /* background-color: rgba(192, 192, 192, 0.7);  */
  /* margin: 10px 0; */
  border-radius: 20px;
  height: min-content;
}

/* Partie  contenant la cover du son actuel */
.cover-conteneur {
  padding: 10px;
  background-color: rgba(73, 73, 73, 0.6); 
  border-radius: 20px;
  margin-right: 20px;
  width: 25%; /*  un quart de l'espace sur pc */
}

/* image son actuel en lecture */
.cover-conteneur img {
  height: 100%;
  border-radius: 20px;
  transition: 0.1s;
  width: 100%;
  /* pour eviter étirement image dans son conteneur */
  object-fit: cover;
}

.cover-conteneur img:hover {
  scale: 102%;
  transition: 0.5s;
}

/* conteneur Lecteur MP3 et infos du son actuel ( titre du son )  */
.mp3player {
  padding: 10px;
  background-color: rgba(73, 73, 73, 0.6); 
  border-radius: 20px;
  width: 75%;
}

/* attributs nom du son  */
.title {
  font-size: 20px;
  color: white;
  font-weight: bold;
}

/* -------------------------- style liste attente et contenu div liste attente  */

.liste-attente-container {
  overflow: hidden;
  margin: 20px 0;
  border-radius: 20px;
}

/* conteneur principal liste attente et infos artiste  */
.liste-attente {
  background-color: rgba(73, 73, 73, 0.6); 

  /* "box" liste attente  */
  max-height: 450px; /* Hauteur maximale de 450px */
  overflow-y: auto; /* Activer la barre de défilement verticale */
}

/* ---------------------------------style barre de scroll------------------------------------------  */

/* style nom artiste  */
.artistName {
  padding-top: 20px;
  /* pour aligner titre avec sons en attente  */
  padding-left: 6%;
  color: rgb(255, 255, 255);
  font-size: 30px;
}

/* centrer infos artistes  */
.informations-cont {
  display: flex;
  padding-left: 8px;
  justify-content: center;
  align-items: center;
}

/* conteneur des infos (logo et description) */
.informations {
  display: flex;
  width: 90%;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

/* style logo artiste  */
.logo-artiste-conteneur img {
  border-radius: 5px;
  height: 80px;
  max-height: 80px;
  width: 80px;
  max-width: 80px;
  object-fit: cover;
}

/* style description artiste  */
.description {
  font-size: 15px;
  color: white;
  padding-left: 20px;
  padding-right: 20px;
}

/* conteneur des sons à suivre  */
#playlist {
  text-decoration: none;
  list-style: none;
  padding-left: 0px;
  /* padding-top: -20px; */

  width: 100%;
  /* centrer les conteneurs des sons  */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* conteneurs image X titre X auteur  */
#playlist li {
  background-color: rgba(102, 102, 102, 0.425);
  margin-top: 10px;
  margin-bottom: 10px;
  width: 90%;
  border-radius: 20px;
  transition: 0.1s ease-in;
}

/* hover box contenant le son et sa cover dans la liste d'attente  */
#playlist li:hover {
  scale: 101%;
  transition: 0.5s ease;
}

/* cible le premier element li de la liste  */
/* #playlist li:first-child {
    margin-top: 300px;
} */

.nextsound-conteneur {
  padding-left: 10px;
  display: flex;
  /* justify-content: center; */
  /* centrer titre du son par rapport a l'image du son  */
  align-items: center;
  flex-direction: row;
  cursor: pointer;
}

/* image des sons dans la playlist  */
.nextsound-conteneur img {
  border-radius: 10px;
  width: 80px;
  max-width: 80px;
  height: 80px;
  max-height: 80px;
  /* éviter déformation image  */
  object-fit: cover;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* conteneur infos : titre, auteur .  */
.infos-son {
  padding-left: 20px;
}

.nextsound-conteneur span {
  color: aliceblue;
  font-size: 20px;
}

.nextsound-conteneur p {
  color: aliceblue;
  font-style: italic;
  font-size: 15px;
}

/* -------------responsive potable mais pas parfait :  ----------- */

@media (max-width: 900px) {
  body {
    overflow-y: auto;
  }

  .conteneur-principal {
    width: 80%;
    margin: 0 auto;
  }

  /* Partie image du son actuel */
  .cover-conteneur {
    padding: 10px;
    background-color: rgba(73, 73, 73, 0.6); /* Gris semi-opaque */
    border-radius: 20px;
    margin-right: 20px;
    width: 50%;
  }

  .cover-conteneur img {
    max-width: 100%;
    height: 100%;
    border-radius: 20px;
    /* pour eviter étirement image dans son conteneur */
    object-fit: cover;
  }

  /* Lecteur MP3 et infos du son actuel */
  .mp3player {
    padding: 10px;
    background-color: rgba(73, 73, 73, 0.6); /* Gris semi-opaque */
    border-radius: 20px;
    width: 50%;
  }
}

/* Telephone ajustements  */
@media (max-width: 600px) {
  body {
    overflow-y: auto;
  }

  .conteneur-principal {
    width: 90%;
  }

  .menu p {
    display: none;
  }

  /* DEVTESTS -------------------------------------------------------------------------------*/

  .liste-attente-container {
    overflow: hidden;
    margin: 0px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .liste-attente {
    background-color: rgba(73, 73, 73, 0.6);
    margin-bottom: 20px;
    max-height: 450px;
    overflow-y: auto;
    border-radius: 20px;
    width: 95%;
    margin-top: 20px;

  }

  .son-actuel {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .cover-conteneur {
    padding: 10px;
    background-color: rgba(73, 73, 73, 0.6);
    border-radius: 20px;
    margin-right: 0px;
    width: 90%;
    height: 100px;
    max-height: 100px;
    min-height: 100px;
    margin-top: 0px;
  }

  /* Lecteur MP3 et infos du son actuel */
  .mp3player {
    padding: 10px;
    width: 90%;
    margin-top: 20px;
  }


}

/* 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");
}
