/* =====================================================================
   Calendrier public — vue année
   Même disposition que l'écran d'administration : douze mois sur un
   écran, en lecture seule. Remplace l'affichage mois par mois, qui
   imposait douze manipulations pour parcourir une saison.

   Palette du thème : #005459 (turquoise foncé), #07baa9 (turquoise),
   #e5941a (orange d'accent).
   ===================================================================== */

.cal_toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.cal_nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cal_arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #005459;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}

.cal_arrow:hover,
.cal_arrow:focus-visible {
  border-color: #005459;
  background-color: #005459;
  color: #fff;
}

/* Bornes atteintes : la flèche reste en place pour ne pas décaler
   l'année, mais s'efface visuellement. */
.cal_arrow.is_off {
  opacity: .3;
  cursor: default;
}

.cal_year {
  min-width: 90px;
  color: #005459;
  font-size: 26px;
  text-align: center;
}

.cal_legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #6d6459;
  font-size: 14px;
}

.cal_key {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  vertical-align: -2px;
}

.cal_key.is_busy   { background-color: #005459; }
.cal_key.is_option { background-color: #e5941a; }
.cal_key.is_free   { border: 1px solid #d8d4cc; background-color: #fff; }

/* --- Grille des douze mois -------------------------------------------- */

.cal_year_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}

.cal_month {
  padding: 14px 16px 16px;
  border: 1px solid #ece8e1;
  border-radius: 10px;
  background-color: #fff;
}

.cal_month_name {
  margin-bottom: 10px;
  color: #005459;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.cal_grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal_weekday {
  color: #a9a49b;
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
}

.cal_day {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  color: #55504a;
  font-size: 13px;
}

/* Les réceptions se tiennent presque toujours en fin de semaine :
   le visiteur y regarde en premier. */
.cal_day.is_weekend {
  background-color: #f6f4f0;
  font-weight: 600;
}

.cal_day.is_today {
  box-shadow: inset 0 0 0 2px #07baa9;
}

.cal_day.is_busy {
  background-color: #005459;
  color: #fff;
}

.cal_day.is_option {
  background-color: #e5941a;
  color: #fff;
}

@media (max-width: 575.98px) {
  .cal_year_grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }

  .cal_toolbar {
    justify-content: center;
  }
}
