/* ── GPC Calendrier ───────────────────────────────────────── */

/* Légende */
.gpc-cal-legend {
    display: flex; flex-wrap: wrap; gap: 12px;
    background: #fff; border-radius: 10px; padding: 12px 16px;
    margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.gpc-leg-item { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: #444; }
.gpc-leg-dot  { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* Calendrier wrapper */
.gpc-calendar-wrap {
    background: #fff; border-radius: 12px;
    padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.08);
    margin-bottom: 80px;
}

/* FullCalendar overrides */
.gpc-calendar-wrap .fc { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.gpc-calendar-wrap .fc-toolbar-title { font-size: 1.1rem; font-weight: 700; color: #1a3a6b; }
.gpc-calendar-wrap .fc-button-primary {
    background: #2355a0 !important; border-color: #2355a0 !important;
    border-radius: 8px !important; font-size: .82rem !important;
}
.gpc-calendar-wrap .fc-button-primary:hover {
    background: #1a3a6b !important; border-color: #1a3a6b !important;
}
.gpc-calendar-wrap .fc-button-active {
    background: #1a3a6b !important; border-color: #1a3a6b !important;
}
.gpc-calendar-wrap .fc-today-button { opacity: 1 !important; }
.gpc-calendar-wrap .fc-daygrid-day.fc-day-today { background: #f0f5ff !important; }
.gpc-calendar-wrap .fc-event { border-radius: 6px !important; font-size: .78rem !important; cursor: pointer; }
.gpc-calendar-wrap .fc-event:hover { opacity: .9; }
.gpc-calendar-wrap .fc-col-header-cell { background: #f3f5f9; }
.gpc-calendar-wrap .fc-col-header-cell-cushion { color: #7a86a1; font-size: .8rem; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.gpc-calendar-wrap .fc-daygrid-day-number { color: #1a2035; text-decoration: none; font-size: .85rem; }
.gpc-calendar-wrap .fc-list-event:hover td { background: #f0f5ff; }

/* Modal */
.gpc-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.gpc-modal-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.5); backdrop-filter: blur(2px);
}
.gpc-modal-box {
    position: relative; background: #fff; border-radius: 16px;
    width: 100%; max-width: 440px; box-shadow: 0 8px 32px rgba(0,0,0,.2);
    overflow: hidden; z-index: 1;
}
.gpc-modal-close {
    position: absolute; top: 12px; right: 12px;
    background: rgba(255,255,255,.25); border: none; color: #fff;
    width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
    font-size: .9rem; display: flex; align-items: center; justify-content: center;
    z-index: 2;
}
.gpc-modal-header {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 20px 16px; color: #fff;
}
.gpc-modal-icon  { font-size: 2rem; flex-shrink: 0; }
.gpc-modal-title { font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.gpc-modal-sub   { font-size: .82rem; opacity: .85; margin-top: 3px; }
.gpc-modal-body  { padding: 16px 20px; }
.gpc-modal-row   { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f2f7; }
.gpc-modal-row:last-child { border-bottom: none; }
.gpc-modal-row-icon  { font-size: 1rem; width: 22px; flex-shrink: 0; margin-top: 1px; }
.gpc-modal-row-label { font-size: .75rem; color: #9aa0b0; }
.gpc-modal-row-val   { font-size: .9rem; font-weight: 500; color: #1a2035; margin-top: 1px; }

/* Responsive */
@media (max-width: 600px) {
    .gpc-calendar-wrap { padding: 8px; }
    .gpc-calendar-wrap .fc-toolbar { flex-direction: column; gap: 8px; }
    .gpc-cal-legend { gap: 8px; }
}

/* Compatibilité sidebar layout */
@media (min-width: 769px) {
  .gpc-calendar-wrap { margin-bottom: 0; }
}
