.wrapper {
  width: auto;
  height: auto;
  background: #232A2F;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  display: none;
  margin: auto;
  padding-block: 20px;
  text-align: center;
  border-radius: 0 0 8px 8px;
}

.wrapper.active {
  display: block;
}


@media screen and (max-width: 480px) {
  .calendar li {
    height: 70px;
  }

  .calendar .days li {
    padding: 15px 0;
    font-size: 0.8em;
  }

  .wrapper .header {
    padding: 20px 15px 10px;
  }

  .header .icons span {
    height: 34px;
    width: 34px;
    font-size: 1.5rem;
  }

  .icons span:last-child {
    margin-right: -8px;
  }

  .header .current-date {
    font-size: 1.2rem;
  }

  .calendar {
    padding: 15px;
  }

  .calendar li {
    height: auto;
  }

  .calendar .days li {
    padding: 20px 0;
    font-size: 1em;
  }

  .calendar .days li .day-number {
    top: 10px;
    left: 10px;
    font-size: 1rem;
  }

  #event-details {
    left: 0%;
  }

  #hrspe {
    margin: 0 auto 30px auto;
    width: 12%;
  }
}

.wrapper .header {
  display: flex;
  align-items: center;
  padding: 25px 30px 10px;
  justify-content: space-between;
}

.header .icons {
  display: flex;
}

.header .icons span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  width: 38px;
  margin: 0 1px;
  cursor: pointer;
  color: #878787;
  text-align: center;
  line-height: 38px;
  font-size: 1.9rem;
  user-select: none;
  border-radius: 50%;
  transition: all 0.2s;
}

.icons span:last-child {
  margin-right: -10px;
}

#next.has-event {
  background-color: #FFCC00;
  color: #000;
}
#prev.has-event {
  background-color: #FFCC00;
  color: #000;
}

.header .icons span:hover {
  background: #f2f2f22d;
}

.header .current-date {
  font-size: 1.75rem;
  font-weight: 500;
}

.calendar {
  padding: 20px;
}

.calendar ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  text-align: center;
}

.calendar .days {
  margin-bottom: 0px;
  margin-top: none;
}

.calendar li {
  color: #e3e3e3;
  width: calc(100% / 7);
  height: calc(100% / 6);
}

.calendar .weeks li {
  font-weight: 500;
  font-size: 20px;
}

.calendar .days li {
  font-family: "Tac One", sans-serif;
  font-weight: 400;
  font-style: normal;
  cursor: default;
  position: relative;
  padding: 30px 0;
  border-radius: 10px;
  background-color: #3b444b37;
  border: #232A2F 2px solid;
  transition: all 0.3s;
}

.calendar .days li.future-day {
  background-color: #232A2F;
}

.calendar .days li:hover {
  background-color: #999;
}

.calendar .days li.current-day {
  background-color: rgb(128, 128, 128);
}

.calendar .days li.has-event {
  background-color: #FFCC00;
  color: #1f1b1b;
}

.calendar .days li.has-event:hover {
  background-color: #ffcc0040;
}

.calendar .days li.selected-date {
  background-color: #F2542D;
}
.selected-date-animation {
  animation: highlightSelectedDate 0.5s 5 alternate;
}

@keyframes highlightSelectedDate {
  from {
      background-color: #d75310; /* Couleur de fond initiale */
  }
  to {
      background-color: #ee3c0f95; /* Version plus foncée pour l'animation */
  }
}

.calendar .days li .event {
  font-size: 0.9rem;
  padding: 4px 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  position: absolute;
  top: 0;
}

.calendar .days li .day-number {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 1.75rem;
}

#event-details {
  display: none;
  position: fixed;
  top: 50%;
  transform: translate(0, -50%);
  left: 0;
  height: auto;
  z-index: 999;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-width: 15%;
  max-width: 100%;
  padding: 30px;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  background: #232A2F;
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#event-details.active {
  display: flex;
  animation: LtoR 0.5s;
}

@keyframes LtoR {
  from {
    left: -100%;
    opacity: 0;
  }

  to {
    left: 0px;
    opacity: 1;
  }
}

#event-details h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 15px;
}

#event-details select{
  border: 0;
  background-color: #232A2F;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 10px;
	padding: .5em;
  /*outline: 1px solid #232a2f90;
*/
box-shadow: inset 0px 0px 50px 50px rgba(65,78,87,0.49);

  color: #fff;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

#event-details select:hover{
  outline-color: #ffcc00;
  background-color: rgb(47, 48, 48);
  color: #ffcc00;
}

#event-details option{
  color: #000000;
  background-color: #f2f2f2;
  padding: 20px;
  transition: all 0.3s ease-in-out;
}

#event-details option:hover{
  outline-color: #ffcc00;
  background-color: rgb(47, 48, 48);
  color: #ffcc00;
}

#event-details li {
  font-size: 0.95rem;
  line-height: 1.7;
  list-style: none;
  margin-bottom: 10px;
}

#event-details p {
  margin-block: 15px;
}
#event-details p a{
  color: #d75310;

}
#popup-content2 {
  text-align: center;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 998;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
}

.overlay.active {
  display: block;
}

.calendar .days li.has-event {
  cursor: pointer;
}


.calendar .days li.past-day {
  background-color: #3b444b37;
  color: #c0bbbbd4;
  cursor: not-allowed;
}

.calendar .days li.past-day:hover {
  background-color: #999;
}

#hrspe {
  margin: 0 auto 40px auto;
  width: 18%;
  border: 2px solid #333;
  height: 1px;
  background-color: linear-gradient(to right, rgba(56, 52, 52, 0), rgba(12, 14, 13, 0), rgba(41, 36, 36, 0));
}

.hidden {
  display: none;
}

#reservation-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #232A2F;
  padding: 20px;
  border: 1px solid #1d2124;
}

.paid_date {
  text-align: center;
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  text-transform: uppercase;
  background-color: #F2542D;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.paid_date:hover {
  background-color: #bd3d1d;
}

.paid_date:active {
  background-color: #ea3e13;
}

@media screen and (max-width: 480px) {
  .calendar .weeks li {
    font-size: 16px;
  }
  .wrapper {
    height: auto;
    display: none;
    margin: auto;
  }

  .wrapper.active {
    display: block;
  }

  .calendar .days li {
    padding: 15px 0;
    font-size: 0.8em;
  }

  .wrapper .header {
    display: flex;
    align-items: center;
    padding: 20px 15px 10px;
    justify-content: space-between;
  }

  .header .icons span {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-inline: 5px;
  }

  .icons span:last-child {
    margin-right: -8px;
  }

  .header .current-date {
    font-size: 1.2rem;
  }

  .calendar {
    padding: 15px;
  }

  .calendar li {
    width: calc(100% / 7);
    height: auto;
  }

  .calendar .days li {
    padding: 20px 0;
    font-size: 1em;
  }

  .calendar .days li .day-number {
    top: 10px;
    left: 10px;
    font-size: 1rem;
  }

  #hrspe {
    margin: 0 auto 30px auto;
    width: 12%;
  }

  .hidden {
    display: none;
  }
}