/* ========================================================================
   ACADEMIA — EMPLOI DU TEMPS
   Grille jours × créneaux, propre, responsive, palette navy/cyan
   ======================================================================== */

.sched-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}
.sched-title {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 800;
    color: #0a2540;
    letter-spacing: -0.5px;
}
.sched-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}
.sched-subtitle strong { color: #0a2540; }

.sched-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}
.sched-badge--current {
    background: #d1fae5;
    color: #065f46;
}

.sched-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.sched-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.sched-btn--primary {
    background: #0a2540;
    color: white;
    border-color: #0a2540;
}
.sched-btn--primary:hover {
    background: #102a4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25);
}
.sched-btn--gold {
    background: linear-gradient(135deg, #fbbf24, #d4a72c);
    color: #0a2540;
    border-color: transparent;
}
.sched-btn--gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 167, 44, 0.35);
}

/* Filtres */
.sched-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 16px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}
.sched-filter label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sched-filter select,
.sched-filter input[type="date"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}
.sched-week-nav {
    display: flex;
    gap: 6px;
    align-items: center;
}
.sched-week-nav input[type="date"] { flex: 1; }
.sched-week-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.15s;
    cursor: pointer;
}
.sched-week-btn:hover {
    background: #06b6d4;
    color: white;
    border-color: #06b6d4;
}
.sched-week-btn--today {
    width: auto;
    padding: 0 12px;
    font-size: 12px;
    background: #fbbf24;
    color: #0a2540;
    border-color: #fbbf24;
}
.sched-week-btn--today:hover {
    background: #d4a72c;
    color: #0a2540;
}

/* Empty state */
.sched-empty {
    background: white;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    text-align: center;
    padding: 60px 20px;
}

/* Grille : 6 colonnes (lundi-samedi) */
.sched-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    align-items: start;
}
.sched-day {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.sched-day__header {
    background: linear-gradient(135deg, #0a2540 0%, #1e3a5f 100%);
    color: white;
    padding: 10px 12px;
    text-align: center;
    font-weight: 700;
}
.sched-day__name {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sched-day__date {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}
.sched-day__slots {
    padding: 10px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sched-day__empty {
    text-align: center;
    color: #d1d5db;
    font-size: 24px;
    padding: 20px 0;
}

/* Créneau (un cours) */
.sched-slot {
    background: white;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--slot-color, #06b6d4);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.4;
    position: relative;
    transition: all 0.15s;
}
.sched-slot:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.sched-slot__time {
    color: var(--slot-color, #06b6d4);
    font-weight: 700;
    font-size: 11.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.sched-slot__type {
    background: var(--slot-color, #06b6d4);
    color: white;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    letter-spacing: 0.5px;
}
.sched-slot__subject {
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 4px;
    font-size: 13px;
}
.sched-slot__meta {
    color: #6b7280;
    font-size: 11.5px;
}
.sched-slot__notes {
    color: #9ca3af;
    font-size: 11px;
    font-style: italic;
    margin-top: 4px;
}
.sched-slot__actions {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e5e7eb;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    font-size: 13px;
}
.sched-slot__actions a,
.sched-slot__actions button { opacity: 0.6; }
.sched-slot__actions a:hover,
.sched-slot__actions button:hover { opacity: 1; }

/* Responsive */
@media (max-width: 1280px) {
    .sched-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .sched-filters {
        grid-template-columns: 1fr;
    }
    .sched-grid {
        grid-template-columns: 1fr;
    }
    .sched-header { flex-direction: column; }
    .sched-actions { width: 100%; }
    .sched-btn { flex: 1; justify-content: center; }
}

/* ============================================================
   MODE PAUSE — bascule dans le formulaire
   ============================================================ */

.sched-pause-toggle {
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    transition: all 0.2s;
}
.sched-pause-toggle--active {
    background: #fef3c7;
    border-color: #fbbf24;
    border-style: solid;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.15);
}

.sched-pause-toggle__label {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
        "checkbox icon title"
        "checkbox icon sub";
    align-items: center;
    gap: 4px 14px;
    cursor: pointer;
    margin: 0;
}
.sched-pause-toggle__label input[type="checkbox"] {
    grid-area: checkbox;
    width: 22px;
    height: 22px;
    cursor: pointer;
    margin: 0;
    accent-color: #d4a72c;
}
.sched-pause-toggle__icon {
    grid-area: icon;
    font-size: 32px;
    line-height: 1;
}
.sched-pause-toggle__title {
    grid-area: title;
    font-weight: 700;
    font-size: 15px;
    color: #0a2540;
    line-height: 1.2;
}
.sched-pause-toggle--active .sched-pause-toggle__title { color: #92400e; }
.sched-pause-toggle__sub {
    grid-area: sub;
    font-size: 12.5px;
    color: #6b7280;
    line-height: 1.4;
}

/* Slot d'emploi du temps : style PAUSE */
.sched-slot--pause {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border-left: 4px solid #d4a72c !important;
    position: relative;
}
.sched-slot--pause .sched-slot__subject {
    color: #92400e;
    font-weight: 700;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sched-slot--pause .sched-slot__type {
    background: #d4a72c;
    color: white;
}
