.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100vw;
  background:
    linear-gradient(to top, #01182faf, #012446af), url(../img/mic.webp);
}

.card {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 80%;
  height: 90%;
  border-radius: 25px;
  background: var(--tertiary-color);
}

.card > div {
  /*carousel + web*/
  height: 100%;
}

.card .carousel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.5%;
  width: 65%;
  border-radius: 15px 0 0 15px;
  background-color: var(--tertiary-color);
  color: var(--primary-color);
}

.carousel {
  position: relative;
  margin-top: 1.25%;
  width: 100%;
  height: 75%;
  background-color: rgba(128, 128, 128, 0.137);
}

.carousel-item {
  width: 100%;
  height: 100%;
  display: none;
  animation: fade 1s ease-in-out;
}
@keyframes fade {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}
.carousel img {
  object-fit: contain;
}

.carousel-prev,
.carousel-next,
.carousel-pause {
  position: absolute;
  top: 104%;
  padding: 0.5% 2%;
  background-color: var(--secondary-color);
  color: var(--tertiary-color);
  font-weight: bolder;
  user-select: none;
  cursor: pointer;
  border-radius: 5%;
}

.carousel-next {
  right: 35%;
}
.carousel-prev {
  left: 35%;
}
.carousel-pause {
  left: 50%;
  transform: translateX(-50%);
}
.carousel-text {
  /* Pour centrer les textes descriptif dans slide */
  /* donc c'est le conteneur parent */
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.carousel-text span {
  /* C'est le texte descriptif elle-même */
  position: absolute;
  bottom: 0;
  padding: 1% 0;
  display: flex;
  justify-content: center;
  align-items: start;
  width: 40%;
  border-radius: 50% 50% 0 0;
  font-size: small;
  background-color: rgba(0 0 0 / 70%);
  /* backdrop-filter: blur(0.5px); */
  color: var(--primary-color);
  transition: 1.5s ease-in-out;
}
.carousel-number {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1%;
  margin: 1px;
  background-color: var(--tertiary-color);
  color: var(--secondary-color);
  transition: 0.5s ease-in;
}
.carousel-dot-container {
  /* Pour centrer les bouttons slides */
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.carousel-dot {
  position: absolute;
  top: 102.5%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 40%;
  height: 10%;
  border-radius: 25px;
  /* background-color: var(--primary-color); */
  color: var(--tertiary-color);
  font-size: 1vw;
}
.dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  box-shadow: 0 0 1px var(--primary-color);
  transition: background-color 0.5s ease-out;
}
.dot.active {
  background-color: var(--primary-color);
  box-shadow: none;
}
.carousel-container .copyright {
  margin-top: auto;
  color: gray;
}

.webradio-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 3%;
  width: 35%;
  background-color: #012446;
  color: var(--primary-color);
}

.webradio-container > div:first-child {
  /*ilay text rcm webrdio*/
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.webradio-container > div:first-child div:first-child {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2%;
  border-radius: 5px;
  background-color: var(--secondary-color);
}

mark {
  color: var(--secondary-color) !important;
  background-color: transparent !important;
}

.webradio-container .bar-container {
  position: absolute;
  bottom: 10%;
  z-index: 1;
  display: flex;
  align-items: end;
  gap: 5px;
  margin: 0 0 2.5%;
}

.bar-container div {
  width: 4px;
  border-radius: 2px;
  height: 5px; /* Hauteur de base (pause) */
  transition: height 0.3s ease;
  height: 15px;
  border-radius: 3.5px;
  background-color: var(--secondary-color);
}

/* Animation en cours de lecture */
.bar-container.playing div {
  animation: wave 1s ease-in-out infinite;
}

/* Délai différent pour chaque barre = effet vague */
.bar-container.playing div:nth-child(1) {
  animation-delay: 0s;
}
.bar-container.playing div:nth-child(2) {
  animation-delay: 0.1s;
}
.bar-container.playing div:nth-child(3) {
  animation-delay: 0.2s;
}
.bar-container.playing div:nth-child(4) {
  animation-delay: 0.3s;
}
.bar-container.playing div:nth-child(5) {
  animation-delay: 0.4s;
}
.bar-container.playing div:nth-child(6) {
  animation-delay: 0.5s;
}
.bar-container.playing div:nth-child(7) {
  animation-delay: 0.6s;
}
.bar-container.playing div:nth-child(8) {
  animation-delay: 0.7s;
}

@keyframes wave {
  0%,
  100% {
    height: 5px;
  }
  25% {
    height: 15px;
  }
  50% {
    height: 28px;
  }
  75% {
    height: 10px;
  }
}

/* .webradio-container .status {
    margin: 0 0 auto;
} */

.webradio-button {
  display: absolute;
  top: 50%;
  bottom: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: #01182f;
  font-size: 250%;
}

.webradio-container .status .status-sign {
  display: inline-block;
  color: #f44336;
}
.webradio-container .status .status-sign.live {
  color: #04fc04;
}

@media screen and (max-width: 768px) {
  .card {
    position: relative;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .card .carousel-container {
    margin: 0;
    padding: 0;
    width: 96%;
    height: 40% !important;
  }
  .card .carousel-container h2 {
    display: none;
  }
  .carousel-text span {
    width: 60%;
  }
  .carousel-dot {
    top: 108%;
  }

  .card .webradio-container {
    padding: 0;
    width: 99%;
    height: 42.5% !important;
    background-color: var(--tertiary-color);
  }
  .webradio-button {
    margin: auto 0 auto;
  }

  /* Changing text position in the card */
  .webradio-container > div:first-child {
    /* texte introductif conteneur webradio */
    position: absolute;
    top: -110%;
  }

  .carousel-container .copyright {
    position: absolute;
    bottom: 0;
  }
}

#volumeRange {
  transform: rotate(-90deg);
  accent-color: var(--secondary-color);
}

.volumeIcon {
  color: var(--secondary-color);
}
/* .volumeIcon > div.hidden {
  display: none;
} */

#volumeControl {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: absolute;
  bottom: 35%;
  right: -7.5%;
  /* height: 100px; */
  /* width: 50px; */
  /* justify-content: center; */
  align-items: center;
}
@media screen and (max-width: 786px) {
  #volumeControl {
    bottom: 30%;
  }
  .copyright {
    font-size: small;
  }
}
