/* Correctif spécial Planning général - mobile */
.planning-page { width: 100%; }
.planning-header-card,
.planning-calendar-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
.planning-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  margin-bottom: 16px;
}
.planning-header-card h3 { margin: 0 0 4px; font-weight: 900; color: #111827; }
.planning-header-card p { margin: 0; }
.planning-calendar-card { padding: 16px; border-radius: 24px; overflow: hidden; }

@media (max-width: 768px) {
  .planning-header-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    border-radius: 18px !important;
    margin-bottom: 12px !important;
  }
  .planning-header-card h3 { font-size: 22px !important; line-height: 1.15 !important; }
  .planning-header-card p { font-size: 14px !important; line-height: 1.35 !important; }
  .planning-new-btn { width: 100% !important; }

  .planning-calendar-card {
    padding: 10px !important;
    border-radius: 18px !important;
    overflow: visible !important;
  }

  #calendar, .fc { width: 100% !important; max-width: 100% !important; }
  .fc { font-size: 13px !important; }

  .fc .fc-toolbar.fc-header-toolbar,
  .fc .fc-toolbar.fc-footer-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }
  .fc .fc-toolbar-chunk {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  .fc .fc-toolbar-title {
    width: 100% !important;
    text-align: center !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    color: #111827 !important;
    margin: 4px 0 !important;
  }
  .fc .fc-button,
  .fc .fc-button-primary {
    width: auto !important;
    min-width: 42px !important;
    min-height: 38px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }
  .fc .fc-button-group { display: flex !important; gap: 6px !important; }
  .fc .fc-button-group .fc-button { border-radius: 12px !important; margin: 0 !important; }

  .fc .fc-view-harness { min-height: 320px !important; height: auto !important; }
  .fc .fc-scroller, .fc .fc-scroller-liquid { overflow: visible !important; height: auto !important; }

  .fc-theme-standard .fc-list,
  .fc-theme-standard td,
  .fc-theme-standard th {
    border-color: rgba(15,23,42,.08) !important;
  }
  .fc .fc-list-table { width: 100% !important; table-layout: fixed !important; }
  .fc .fc-list-day-cushion {
    padding: 10px 12px !important;
    background: #eef6ff !important;
    color: #0f172a !important;
    font-size: 14px !important;
  }
  .fc .fc-list-event td {
    padding: 10px 8px !important;
    vertical-align: top !important;
  }
  .fc .fc-list-event-time {
    width: 72px !important;
    min-width: 72px !important;
    font-size: 12px !important;
    color: #475569 !important;
  }
  .fc .fc-list-event-title {
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #111827 !important;
    word-break: break-word !important;
  }
  .fc .fc-list-event-dot { margin-top: 5px !important; }

  .fc .fc-timegrid-axis,
  .fc .fc-timegrid-slot-label { font-size: 11px !important; }
  .fc .fc-col-header-cell-cushion { font-size: 12px !important; padding: 6px 2px !important; }
  .fc .fc-daygrid-day-number { font-size: 12px !important; padding: 4px !important; }
  .fc .fc-event { border-radius: 8px !important; padding: 2px 4px !important; font-size: 11px !important; line-height: 1.15 !important; }
  .fc .fc-daygrid-event { white-space: normal !important; }
}
