body {
  font-family: 'Segoe UI', sans-serif;
  margin: 40px;
  background-color: #f4f4f4;
  color: #333;
}
form {
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
input, select, button {
  display: block;
  margin: 10px 0;
  padding: 10px;
  width: 100%;
  max-width: 400px;
}
button {
  background: #2c3e50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background: #1a252f;
}
h1, h2 {
  color: #2c3e50;
}
a {
  display: inline-block;
  margin-bottom: 20px;
}
#calendar {
  background-color: #f9f9f9 !important;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 6px;
}
#calendar .fc {
  background-color: #f9f9f9 !important;
}
.fc-theme-standard td,
.fc-theme-standard th,
.fc-timegrid-slot,
.fc-timegrid-slot-label,
.fc-timegrid-slot-lane,
.fc-timegrid-all-day,
.fc-timegrid-all-day-events,
.fc-col-header-cell,
.fc-timegrid-axis {
  background-color: #f9f9f9 !important;
  border-color: #ccc !important;
}

/* Éventuellement adoucir les lignes horaires */
.fc-timegrid-slot-label {
  color: #555;
}

.fc-header-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Force les groupes de boutons à rester en ligne */
.fc .fc-toolbar-chunk {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Ajustement des boutons pour petits écrans */
.fc .fc-button {
  background-color: #002f5f !important;
  color: #fff !important;
  border: none !important;
  border-radius: 5px !important;
  font-weight: bold;
  padding: 8px 14px;
  transition: background 0.3s ease;
}

.fc .fc-button:hover,
.fc .fc-button:focus {
  background-color: #001d3d !important;
}

.fc .fc-button:disabled {
  background-color: #888 !important;
  color: #eee !important;
  cursor: not-allowed;
}

/* Empêche today de passer à la ligne */
.fc .fc-toolbar-chunk:first-child {
  flex-wrap: nowrap;
}

/* Réduction du bouton today */
.fc .fc-button.fc-today-button {
  flex: 0 0 auto;
}