.planning-container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}

.planning-container h1 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.legend .day {
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  font-size: 0.85rem;
  color: white;
}

.calendar-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.nav-arrow {
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.calendar-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.calendar {
  background: #f9f9f9;
  border-radius: 0.8rem;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.calendar h3 {
  text-align: center;
  margin-bottom: 0.8rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  font-size: 0.9rem;
}

.calendar-grid > div {
  text-align: center;
  padding: 0.3rem 0;
  border-radius: 5px;
}

/* Couleurs pour chaque type de jour */
.day.free {
  background-color: #7cc77c;
  color: white;
}

.day.reserved {
  background-color: #f28500;
  color: white;
}

.day.arrival {
  background: linear-gradient(45deg, #7cc77c 50%, #f28500 50%);
  color: white;
}

.day.departure {
  background: linear-gradient(45deg, #f28500 50%, #7cc77c 50%);
  color: white;
}

.day.single {
  background-color: #f28500;
  color: white;
}

/* Jours vides en début de mois */
.empty {
  background: transparent;
}

.nav-arrow {
  font-weight: bold;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
}

.nav-arrow .text {
  display: inline;
}

@media (max-width: 480px) {
  .nav-arrow .text {
    display: none; /* cache le texte, ne laisse que la flèche */
  }

  .nav-arrow.prev::before,
  .nav-arrow.next::after {
    content: "";
  }
}

/* Responsive : 1 colonne en mobile */
@media screen and (max-width: 768px) {
  .calendar-wrapper {
    grid-template-columns: 1fr;
  }
}
