.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 0 15px;
}

.calendar-title {
  color: #4a1525;
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  letter-spacing: 0.5px;
}

.calendar-btn {
  background: transparent;
  width: 66px;
  height: auto;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.2s ease;
  padding: 0;
  border: none;
}

.calendar-btn:hover {
  background-color: #fcf0f0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px 10px;
}


.calendar-day {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 45px;
  border-radius: 6px;
  color: #c09f6e;
  user-select: none;
  transition: transform 0.1s ease, filter 0.2s ease;
}

.calendar-day.available{
  cursor: pointer;
  background-color: #FFD08A;
  color: #40002B;
}

.calendar-day.selected{
  background-color: #b0413e;
  color: #ffffff;
}

.calendar-day:not(.empty):hover {
  filter: brightness(0.9);
  transform: scale(1.05);
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day.empty:hover {
  transform: none;
}

.calendar-day.selected {
  background-color: #b0413e;
  color: #ffffff;
}

.calendar-day.highlight {
  background-color: #f8cd87; /* Beige/Orange clair */
  color: #4a1525; /* Texte foncé pour le contraste */
}

.calendar-day.past-day {
  cursor: default;
  opacity: 0.4;
  filter: grayscale(1);
}

.calendar-day.past-day:hover {
  transform: none;
  filter: grayscale(1);
}

@media (max-width: 480px){
  .calendar-day{font-size: 14px; min-height: 30px;}
  .calendar-btn{width: 40px;}
  .calendar-title{font-size: 20px;}
}