/* --- EMPLOI DU TEMPS MODAL --- */
.emploi-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.emploi-overlay.open {
    opacity: 1;
    visibility: visible;
}

.emploi-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 950;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.emploi-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.emploi-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-panel);
    border-radius: 16px 16px 0 0;
}

.emploi-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

#emploi-sem-title {
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 1rem;
    margin-left: 8px;
}

.emploi-close {
    width: 36px;
    height: 36px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.2s;
}

.emploi-close:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.emploi-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: var(--bg-body);
    border-radius: 0 0 16px 16px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-panel);
}

.emploi-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    background: var(--bg-panel);
}

.emploi-table th, .emploi-table td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: center;
    vertical-align: middle;
}

.emploi-table th {
    background: var(--bg-body);
    font-weight: 800;
    color: var(--text-main);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emploi-table th.day-col {
    width: 100px;
    background: rgba(43, 176, 237, 0.05);
    color: var(--primary);
}

.emploi-table td {
    height: 70px;
}

.cell-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.cell-module {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.85rem;
    line-height: 1.2;
}

.cell-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg-body);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.empty-cell {
    color: var(--text-muted);
    opacity: 0.5;
    font-style: italic;
    font-size: 0.85rem;
}
