/*
  ===============================================================================
  == STYLES SPÉCIFIQUES AU WIDGET CALENDRIER                                    ==
  ===============================================================================
*/

/* --- Conteneur principal du Widget --- */
.calendar-widget {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  height: 500px;
  margin: 0 auto;
  padding: 16px;
  background: #fffcf5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* --- En-tête du Calendrier (Mois et Navigation) --- */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.calendar-header h2 {
  flex-grow: 1;
  margin: 0;
  text-align: center;
  font-size: 20px !important;
  font-weight: 600;
  color: #333;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 18px;
  color: #333;
  background: transparent; /* Précision pour la clarté */
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.nav-btn:hover {
  background: #f0f0f0;
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --- En-tête de la Grille (Sticky) --- */
.grid-header-sticky {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
  margin-top: 12px;
  margin-bottom: 10px;
  padding: 10px 30px 10px 20px;
  color: white;
  background-color: #527a83;
  font-weight: bold;
  border-radius: 4px;
}

.grid-header-sticky > div:first-child {
  justify-self: start;
}

.grid-header-sticky > div:last-child {
  justify-self: end;
}

/* --- Corps du Calendrier (Zone de défilement) --- */
.calendar-body {
  flex-grow: 1;
  overflow-y: auto;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 20px;
}

/* --- Lignes et Cellules de la Grille --- */
.time-slot-row {
  display: contents; /* Permet aux enfants d'être des membres directs de la grille parente */
  cursor: pointer;
}

.grid-cell {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

/* --- Variations des Cellules --- */
.grid-cell.time-cell {
  font-weight: 500;
  color: #555;
}

.grid-cell.status-cell {
  justify-content: flex-end;
  font-weight: 600;
}

/* --- Statuts et Modificateurs --- */
.time-slot-row.unavailable {
  cursor: not-allowed;
}

.status-disponible {
  color: #527a83;
}

.status-indisponible {
  color: #ce6f3f;
}

/* --- Éléments Spéciaux et Overlays --- */
.message-overlay {
  grid-column: 1 / -1; /* S'étend sur toute la largeur de la grille */
  padding-top: 50px;
  text-align: center;
  color: #888;
}

#Quelles-sont-vos-disponibilit-s {
  padding: 8px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  pointer-events: auto;
  user-select: none;
  cursor: pointer;
}