.planning-container {
  padding: 0 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.6;
}

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

.planning-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap; /* pour éviter le débordement en mobile */
}

.planning-header h1 {
  margin: 0;
  font-size: 1.8rem;
  flex: 1 1 auto; /* occupe la place dispo */
}

.planning-header .legend {
  margin: 0 30px 0 0;
}

.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: #888888;
  color: white;
}

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

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

.day.single {
  background-color: #888888;
  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: "";
  }
}

.planning-seo {
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  background: #f8f7f2;
  border-left: 4px solid #7a9e5c;
  border-radius: 0 .5rem .5rem 0;
  font-size: .92rem;
  color: #444;
  line-height: 1.7;
}

.planning-seo a {
  color: #5a7a3c;
  text-decoration: underline;
}

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

.planning-error {
  background: #fff3f3;
  color: #a33;
  border: 1px solid #e8b4b4;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
  text-align: center;
}
