/* ===== Calendrier (FullCalendar overrides) ===== */
.flip-calendar-wrapper { font-family: inherit; }

.flip-calendar .fc { background: #fff; border-radius: 12px; overflow: hidden; }

.flip-calendar .fc-toolbar {
    padding: 16px 20px;
    margin-bottom: 0 !important;
    gap: 12px;
}
.flip-calendar .fc-toolbar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.flip-calendar .fc .fc-button {
    border-radius: 8px;
    border: 1px solid transparent;
    box-shadow: none !important;
    font-weight: 500;
    padding: 6px 10px;
}
.flip-calendar .fc .fc-today-button {
    background: #3D6FFF;
    color: #fff;
    border-color: #3D6FFF;
    border-radius: 999px;
    padding: 6px 16px;
}
.flip-calendar .fc .fc-today-button:disabled { opacity: 0.6; }
.flip-calendar .fc .fc-prev-button,
.flip-calendar .fc .fc-next-button {
    background: #fff;
    color: #6b7280;
    border-color: #e5e7eb;
}
.flip-calendar .fc .fc-prev-button:hover,
.flip-calendar .fc .fc-next-button:hover {
    background: #f9fafb;
    color: #111827;
}

.flip-calendar .fc-col-header-cell {
    background: #E5EBF5;
    border-color: #d1d8e6;
}
.flip-calendar .fc-col-header-cell-cushion {
    color: #1f2937;
    font-weight: 500;
    text-transform: lowercase;
    padding: 10px 0;
}

.flip-calendar .fc-daygrid-day { background: #F8FAFC; }
.flip-calendar .fc-day-today  { background: #FEF9E7 !important; }
.flip-calendar .fc-day-other  { opacity: 0.45; }

.flip-calendar .fc-daygrid-day-number {
    font-weight: 600;
    color: #111827;
    padding: 8px 10px;
}

.flip-calendar .fc-event {
    background: transparent !important;
    border: none !important;
    padding: 0 4px;
    cursor: pointer;
}
.flip-calendar .fc-event-pill {
    border-left: 3px solid #3D6FFF;
    padding: 1px 0 1px 6px;
    font-size: 0.78rem;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.flip-calendar .fc-event-time { font-weight: 600; }

.flip-calendar .flip-event--featured .fc-event-pill {
    border-left-color: #FFD166;
    background: #FFF8DB;
    border-radius: 4px;
    padding-right: 6px;
}

/* ===== Modale ===== */
.flip-modal[hidden] { display: none; }
.flip-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.flip-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(4, 34, 29, 0.6);
    backdrop-filter: blur(2px);
}
.flip-modal__dialog {
    position: relative;
    background: #fff;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.flip-modal__close {
    position: absolute;
    top: 12px; right: 16px;
    background: none; border: none;
    font-size: 28px; line-height: 1;
    cursor: pointer;
    color: #6b7280;
}
.flip-modal__close:hover { color: #111827; }

.flip-modal__thumb {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
    display: block;
}
.flip-modal__title { margin: 0 0 8px; }
.flip-modal__meta  { color: #6b7280; font-size: 0.9rem; margin: 0 0 16px; }
.flip-modal__tags  { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.flip-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3D6FFF;
    font-weight: 600;
}
.flip-tag--free { background: #ecfdf5; color: #047857; }

.flip-modal__summary,
.flip-modal__description { margin: 0 0 16px; line-height: 1.5; }

.flip-modal__program,
.flip-modal__speakers,
.flip-modal__resources { list-style: none; padding: 0; margin: 0 0 16px; }
.flip-modal__program li { padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.flip-modal__program-desc { color: #6b7280; font-size: 0.9rem; }
.flip-modal__speakers { display: flex; gap: 16px; flex-wrap: wrap; }
.flip-modal__speakers li { display: flex; align-items: center; gap: 8px; }
.flip-modal__speakers img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.flip-modal__resources li { padding: 4px 0; }

.flip-modal__cta {
    display: inline-block;
    background: #3D6FFF;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none !important;
    margin-top: 8px;
}
.flip-modal__cta:hover { background: #2c5be0; }
