/* ========================================
   CALENDRIER MODERNE - VUE SEMAINE
   ======================================== */

#section-calendrier {
    width: 100%;
    max-width: 100vw;
    padding: 1rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* --- Header du calendrier --- */
.calendrier-header-new {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
    color: white !important;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    box-sizing: border-box;
}

.calendrier-title-section h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: white !important;
}

.calendrier-title-section p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
    color: white !important;
}

.calendrier-actions-header {
    display: flex;
    gap: 1rem;
}

.btn-header-action {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-header-action:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-header-action.primary {
    background: white !important;
    color: #3b82f6 !important;
    border-color: white;
}

.btn-header-action.primary:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Navigation des semaines (timeline) --- */
.semaines-navigation {
    background: #1e293b !important;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    max-width: 100%;
    box-sizing: border-box;
}

.semaine-nav-btn {
    background: #475569 !important;
    border: 2px solid #475569 !important;
    color: #f8fafc !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
}

.semaine-nav-btn:hover {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    transform: scale(1.1);
}

.semaines-timeline {
    flex: 1;
    overflow-x: auto;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
}

.semaines-timeline::-webkit-scrollbar {
    height: 6px;
}

.semaines-timeline::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 3px;
}

.semaines-timeline::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

.semaines-timeline::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.semaine-badge {
    background: #475569 !important;
    border: 2px solid #475569;
    color: #cbd5e1 !important;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

.semaine-badge:hover {
    background: #1e293b !important;
    border-color: #3b82f6;
    color: #3b82f6 !important;
    transform: translateY(-2px);
}

.semaine-badge.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    border-color: #3b82f6;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* --- Carte info semaine courante --- */
.semaine-info-card {
    background: #1e293b !important;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    border: 1px solid #475569;
    max-width: 100%;
    box-sizing: border-box;
}

.semaine-info-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.semaine-numero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.semaine-label {
    font-size: 0.875rem;
    color: #cbd5e1 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.semaine-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3b82f6 !important;
}

.semaine-dates {
    font-size: 1.25rem;
    color: #f8fafc !important;
    font-weight: 600;
}

.btn-create-todo {
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-create-todo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* --- Sélecteur Semaine A/B --- */
.semaine-ab-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(51, 65, 85, 0.5);
    border-radius: var(--border-radius, 12px);
    border: 1px solid rgba(71, 85, 105, 0.5);
}

.btn-semaine-type {
    padding: 0.5rem 1rem;
    background: rgba(71, 85, 105, 0.3);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    min-width: 45px;
}

.btn-semaine-type:hover {
    background: rgba(71, 85, 105, 0.5);
    border-color: rgba(148, 163, 184, 0.4);
}

.btn-semaine-type.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.btn-semaine-type.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

/* --- Vue semaine (emploi du temps) --- */
.calendrier-week-view {
    background: #1e293b;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.emploi-temps-grid {
    display: grid;
    grid-template-columns: 80px repeat(5, minmax(150px, 1fr));
    gap: 0.5rem;
    min-width: 800px;
    max-width: 100%;
}

.emploi-temps-header {
    display: contents;
}

.emploi-temps-body {
    display: contents;
}

.emploi-temps-header-day {
    background: linear-gradient(135deg, #334155, #475569) !important;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    color: #f8fafc !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.emploi-temps-header-corner {
    background: #0f172a !important;
    border-radius: 12px;
}

.emploi-temps-time-slot {
    background: #334155 !important;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    color: #cbd5e1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emploi-temps-cell {
    background: #0f172a !important;
    min-height: 140px;
    border-radius: 8px;
    border: 1px solid #334155 !important;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.emploi-temps-cell:hover {
    background: #1e293b !important;
    border-color: #475569 !important;
}

.emploi-temps-cell.has-cours {
    cursor: default;
}

.emploi-temps-cell.has-cours:hover {
    background: #0f172a !important;
}

.emploi-temps-time-col,
.emploi-temps-day {
    background: linear-gradient(135deg, #334155, #475569) !important;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    color: #f8fafc !important;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emploi-temps-cours {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    right: 0.25rem;
    bottom: 0.25rem;
    border-radius: 8px;
    padding: 0.6rem;
    color: white !important;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow-y: auto;
    overflow-x: hidden;
}

.emploi-temps-cours:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.emploi-temps-cours-classe {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: white !important;
    line-height: 1.2;
}

.emploi-temps-cours-horaire {
    font-size: 0.75rem;
    opacity: 0.95;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: white !important;
    line-height: 1.3;
}

.emploi-temps-cours-salle {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: white !important;
    line-height: 1.3;
}

.emploi-temps-cours-salle::before {
    content: "📍";
    font-size: 0.75rem;
}

.emploi-temps-cours-bandeau {
    margin-top: 0.5rem;
    padding: 0.5rem 0.6rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: 2px solid #b45309;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #78350f !important;
    line-height: 1.4;
    max-height: 3rem;
    overflow: hidden;
    word-break: break-word;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.emploi-temps-cours-bandeau::before {
    content: "📌";
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* --- Tâches sur le calendrier --- */
.emploi-temps-tache {
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(249, 115, 22, 0.2);
    border-left: 3px solid #f97316;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-primary, #f8fafc);
    cursor: pointer;
    transition: var(--transition, all 0.2s ease-in-out);
}

.emploi-temps-tache:hover {
    background: rgba(249, 115, 22, 0.3);
}

.emploi-temps-tache.completed {
    background: rgba(34, 197, 94, 0.2);
    border-left-color: #22c55e;
    text-decoration: line-through;
    opacity: 0.7;
}

/* --- Légende des classes --- */
.calendrier-legend {
    background: var(--bg-card, #1e293b);
    border-radius: var(--border-radius-lg, 16px);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.4));
    max-width: 100%;
    box-sizing: border-box;
}

.legend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.legend-header h4 {
    color: var(--text-primary, #f8fafc);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.btn-edit-colors {
    padding: 0.5rem 1rem;
    background: var(--bg-hover, #475569);
    border: 2px solid var(--border-color, #475569);
    color: var(--text-primary, #f8fafc);
    border-radius: var(--border-radius, 12px);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease-in-out);
}

.btn-edit-colors:hover {
    background: var(--primary-color, #3b82f6);
    border-color: var(--primary-color, #3b82f6);
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary, #1e293b);
    border-radius: var(--border-radius, 12px);
    border: 2px solid var(--border-color, #475569);
}

.legend-color {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius, 12px);
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease-in-out);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.legend-color:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.legend-label {
    color: var(--text-primary, #f8fafc);
    font-weight: 600;
    font-size: 0.875rem;
}

/* --- Actions du calendrier --- */
.calendar-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.calendar-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-hover, #475569);
    border: 2px solid var(--border-color, #475569);
    color: var(--text-primary, #f8fafc);
    border-radius: var(--border-radius, 12px);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease-in-out);
}

.calendar-btn:hover {
    background: var(--bg-card, #1e293b);
    border-color: var(--primary-color, #3b82f6);
    color: var(--primary-color, #3b82f6);
    transform: translateY(-2px);
}

.calendar-btn.primary {
    background: linear-gradient(135deg, var(--primary-color, #3b82f6), #8b5cf6);
    border-color: var(--primary-color, #3b82f6);
    color: white;
}

.calendar-btn.primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* ========================================
   MODALS
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content,
.modal-content-large {
    background: var(--bg-card, #1e293b);
    border-radius: var(--border-radius-lg, 16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    border: 1px solid var(--border-color, #475569);
}

.modal-content {
    width: 100%;
    max-width: 500px;
}

.modal-content-large {
    width: 100%;
    max-width: 900px;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color, #475569);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--text-primary, #f8fafc);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary, #cbd5e1);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition, all 0.2s ease-in-out);
}

.modal-close:hover {
    background: var(--bg-hover, #475569);
    color: var(--text-primary, #f8fafc);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary, #1e293b);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color, #475569);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--border-light, #64748b);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color, #475569);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* --- Formulaires dans les modals --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary, #f8fafc);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-input, #374151);
    border: 2px solid var(--border-color, #475569);
    border-radius: var(--border-radius, 12px);
    color: var(--text-primary, #f8fafc);
    font-size: 0.875rem;
    transition: var(--transition, all 0.2s ease-in-out);
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* --- Checkboxes des classes --- */
.classes-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.classe-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-secondary, #1e293b);
    border-radius: var(--border-radius, 12px);
    cursor: pointer;
    transition: var(--transition, all 0.2s ease-in-out);
}

.classe-checkbox:hover {
    background: var(--bg-hover, #475569);
}

.classe-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.classe-checkbox label {
    color: var(--text-primary, #f8fafc);
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

/* --- Tâches de la to-do list --- */
.tache-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary, #1e293b);
    border-radius: var(--border-radius, 12px);
}

.tache-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.tache-input {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-input, #374151);
    border: 2px solid var(--border-color, #475569);
    border-radius: var(--border-radius, 12px);
    color: var(--text-primary, #f8fafc);
    font-size: 0.875rem;
}

.tache-date {
    width: 150px;
    padding: 0.5rem;
    background: var(--bg-input, #374151);
    border: 2px solid var(--border-color, #475569);
    border-radius: var(--border-radius, 12px);
    color: var(--text-primary, #f8fafc);
    font-size: 0.875rem;
}

.btn-remove-tache {
    background: var(--danger, #e74c3c);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition, all 0.2s ease-in-out);
}

.btn-remove-tache:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.btn-add-item {
    padding: 0.75rem 1.5rem;
    background: var(--bg-hover, #475569);
    border: 2px dashed var(--border-color, #475569);
    color: var(--text-primary, #f8fafc);
    border-radius: var(--border-radius, 12px);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease-in-out);
    width: 100%;
}

.btn-add-item:hover {
    background: var(--primary-color, #3b82f6);
    border-color: var(--primary-color, #3b82f6);
    border-style: solid;
}

/* --- Boutons --- */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius, 12px);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease-in-out);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color, #3b82f6), #8b5cf6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-hover, #475569);
    color: var(--text-primary, #f8fafc);
    border: 2px solid var(--border-color, #475569);
}

.btn-secondary:hover {
    background: var(--bg-card, #1e293b);
    border-color: var(--border-light, #64748b);
}

/* ========================================
   GESTION DES TO-DO LISTS
   ======================================== */

.todolists-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    flex: 1;
}

.filter-group label {
    display: block;
    color: var(--text-secondary, #cbd5e1);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.todolists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.todolist-card {
    background: var(--bg-secondary, #1e293b);
    border: 2px solid var(--border-color, #475569);
    border-radius: var(--border-radius-lg, 16px);
    padding: 1.5rem;
    transition: var(--transition, all 0.2s ease-in-out);
}

.todolist-card:hover {
    border-color: var(--primary-color, #3b82f6);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.todolist-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.todolist-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #f8fafc);
    margin: 0 0 0.5rem 0;
}

.todolist-description {
    font-size: 0.875rem;
    color: var(--text-secondary, #cbd5e1);
    margin: 0;
}

.todolist-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.todolist-status-badge.en-cours {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.todolist-status-badge.terminee {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.todolist-classes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.todolist-classe-badge {
    padding: 0.25rem 0.75rem;
    background: var(--bg-hover, #475569);
    color: var(--text-primary, #f8fafc);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.todolist-progress {
    margin-bottom: 1rem;
}

.todolist-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-hover, #475569);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.todolist-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.3s ease-out;
}

.todolist-progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary, #cbd5e1);
    font-weight: 600;
}

.todolist-taches-preview {
    margin-bottom: 1rem;
}

.tache-preview-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #cbd5e1);
}

.tache-preview-item.completed {
    text-decoration: line-through;
    opacity: 0.6;
}

.todolist-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-todolist-action {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: var(--border-radius, 12px);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease-in-out);
}

.btn-todolist-edit {
    background: var(--primary-color, #3b82f6);
    color: white;
}

.btn-todolist-edit:hover {
    background: #2563eb;
}

.btn-todolist-delete {
    background: var(--danger, #e74c3c);
    color: white;
}

.btn-todolist-delete:hover {
    background: #c0392b;
}

/* --- Cours dans l'emploi du temps --- */
.cours-list {
    max-height: 400px;
    overflow-y: auto;
}

.cours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary, #1e293b);
    border-radius: var(--border-radius, 12px);
    margin-bottom: 0.75rem;
}

.cours-item-info {
    flex: 1;
}

.cours-item-classe {
    font-weight: 700;
    color: var(--text-primary, #f8fafc);
    margin-bottom: 0.25rem;
}

.cours-item-details {
    font-size: 0.875rem;
    color: var(--text-secondary, #cbd5e1);
}

.cours-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-cours-action {
    padding: 0.5rem;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease-in-out);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cours-edit {
    background: var(--primary-color, #3b82f6);
    color: white;
}

.btn-cours-edit:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.btn-cours-delete {
    background: var(--danger, #e74c3c);
    color: white;
}

.btn-cours-delete:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.emploi-config {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .calendrier-header-new {
        flex-direction: column;
        gap: 1rem;
    }
    
    .semaine-info-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .todolists-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .emploi-temps-grid {
        min-width: 600px;
    }
    
    .legend-items {
        grid-template-columns: 1fr;
    }
    
    .classes-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .modal-content-large {
        max-width: 100%;
    }
}

/* ========================================
   SYSTÈME DE NOTIFICATIONS
   ======================================== */

.calendrier-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 20000;
    background: var(--bg-card, #1e293b);
    border-radius: var(--border-radius-lg, 16px);
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color, #475569);
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 1rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.calendrier-notification.success {
    border-color: #22c55e;
}

.calendrier-notification.error {
    border-color: #ef4444;
}

.calendrier-notification.warning {
    border-color: #f59e0b;
}

.calendrier-notification.info {
    border-color: #3b82f6;
}

.calendrier-notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.calendrier-notification-content {
    flex: 1;
}

.calendrier-notification-title {
    font-weight: 700;
    color: var(--text-primary, #f8fafc);
    margin-bottom: 0.25rem;
}

.calendrier-notification-message {
    font-size: 0.875rem;
    color: var(--text-secondary, #cbd5e1);
}

.calendrier-notification-close {
    background: none;
    border: none;
    color: var(--text-secondary, #cbd5e1);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition, all 0.2s ease-in-out);
}

.calendrier-notification-close:hover {
    background: var(--bg-hover, #475569);
    color: var(--text-primary, #f8fafc);
}

/* Empilage des notifications */
.calendrier-notification:nth-child(2) {
    top: 100px;
}

.calendrier-notification:nth-child(3) {
    top: 180px;
}

.calendrier-notification:nth-child(4) {
    top: 260px;
}

/* ========================================
   INDICATEUR DE PROGRESSION PAR CLASSE
   ======================================== */

.classe-progress-indicator {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-secondary, #1e293b);
    border-radius: var(--border-radius, 12px);
}

.classe-progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary, #cbd5e1);
}

.classe-progress-label {
    font-weight: 600;
}

.classe-progress-value {
    color: var(--primary-color, #3b82f6);
    font-weight: 700;
}

/* Tâches avec indicateur de classe */
.emploi-temps-tache-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.emploi-temps-tache-classe {
    font-size: 0.65rem;
    opacity: 0.8;
    font-weight: 600;
}

/* ========================================
   MODAL DE SÉLECTION DE COULEUR
   ======================================== */

.color-picker-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 15000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

.color-picker-modal.active {
    display: flex;
}

.color-picker-content {
    background: var(--bg-card, #1e293b);
    border-radius: var(--border-radius-lg, 16px);
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color, #475569);
    animation: slideUp 0.3s ease-out;
}

.color-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.color-picker-header h3 {
    color: var(--text-primary, #f8fafc);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.color-picker-close {
    background: none;
    border: none;
    color: var(--text-secondary, #cbd5e1);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition, all 0.2s ease-in-out);
}

.color-picker-close:hover {
    background: var(--bg-hover, #475569);
    color: var(--text-primary, #f8fafc);
}

.color-picker-body {
    margin-bottom: 1.5rem;
}

.color-picker-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary, #1e293b);
    border-radius: var(--border-radius, 12px);
    margin-bottom: 1.5rem;
}

.color-picker-preview {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius, 12px);
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: var(--transition, all 0.2s ease-in-out);
}

.color-picker-classe-name {
    flex: 1;
}

.color-picker-classe-name strong {
    display: block;
    color: var(--text-primary, #f8fafc);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.color-picker-classe-name small {
    color: var(--text-secondary, #cbd5e1);
    font-size: 0.875rem;
}

.color-input-group {
    margin-bottom: 1rem;
}

.color-input-group label {
    display: block;
    color: var(--text-primary, #f8fafc);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.color-input-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.color-input-native {
    flex: 1;
    height: 60px;
    border: 3px solid var(--border-color, #475569);
    border-radius: var(--border-radius, 12px);
    background: var(--bg-input, #374151);
    cursor: pointer;
    transition: var(--transition, all 0.2s ease-in-out);
}

.color-input-native:hover {
    border-color: var(--primary-color, #3b82f6);
    transform: scale(1.02);
}

.color-input-native::-webkit-color-swatch-wrapper {
    padding: 4px;
}

.color-input-native::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

.color-input-text {
    width: 120px;
    padding: 0.75rem;
    background: var(--bg-input, #374151);
    border: 2px solid var(--border-color, #475569);
    border-radius: var(--border-radius, 12px);
    color: var(--text-primary, #f8fafc);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Monaco', 'Courier New', monospace;
    transition: var(--transition, all 0.2s ease-in-out);
}

.color-input-text:focus {
    outline: none;
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.color-presets {
    margin-bottom: 1.5rem;
}

.color-presets-label {
    display: block;
    color: var(--text-primary, #f8fafc);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.color-presets-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.color-preset {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--border-radius, 12px);
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease-in-out);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-preset:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.color-preset.active {
    border-color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--primary-color, #3b82f6);
}

.color-picker-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-color-cancel,
.btn-color-save {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius, 12px);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease-in-out);
    border: none;
}

.btn-color-cancel {
    background: var(--bg-hover, #475569);
    color: var(--text-primary, #f8fafc);
    border: 2px solid var(--border-color, #475569);
}

.btn-color-cancel:hover {
    background: var(--bg-card, #1e293b);
    border-color: var(--border-light, #64748b);
}

.btn-color-save {
    background: linear-gradient(135deg, var(--primary-color, #3b82f6), #8b5cf6);
    color: white;
}

.btn-color-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* ========================================
   MODAL - TÂCHES D'UN COURS
   ======================================== */

.cours-taches-info {
    background: var(--bg-secondary, #1e293b);
    border-radius: var(--border-radius, 12px);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--border-color, #475569);
}

.cours-taches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cours-taches-classe-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #f8fafc);
}

.cours-taches-horaire {
    font-size: 0.875rem;
    color: var(--text-secondary, #cbd5e1);
    background: rgba(59, 130, 246, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
}

.cours-taches-salle {
    font-size: 0.875rem;
    color: var(--text-secondary, #cbd5e1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cours-taches-salle::before {
    content: "📍";
    font-size: 1rem;
}

.cours-taches-section {
    margin-bottom: 2rem;
}

.cours-taches-section h4 {
    color: var(--text-primary, #f8fafc);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color, #475569);
}

.cours-taches-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.cours-tache-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary, #1e293b);
    border-radius: var(--border-radius, 12px);
    border: 2px solid var(--border-color, #475569);
    transition: var(--transition, all 0.2s ease-in-out);
}

.cours-tache-item:hover {
    border-color: var(--primary-color, #3b82f6);
    background: rgba(59, 130, 246, 0.05);
}

.cours-tache-item.completed {
    opacity: 0.6;
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

.cours-tache-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.cours-tache-content {
    flex: 1;
    min-width: 0;
}

.cours-tache-titre {
    font-size: 0.875rem;
    color: var(--text-primary, #f8fafc);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cours-tache-item.completed .cours-tache-titre {
    text-decoration: line-through;
}

.cours-tache-meta {
    font-size: 0.75rem;
    color: var(--text-secondary, #cbd5e1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.objectif-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.objectif-status.completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.objectif-status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.cours-tache-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cours-tache-date::before {
    content: "📅";
    font-size: 0.75rem;
}

.cours-tache-source {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cours-tache-source::before {
    content: "📋";
    font-size: 0.75rem;
}

.cours-tache-input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary, #1e293b);
    border-radius: var(--border-radius, 12px);
    border: 2px dashed var(--border-color, #475569);
}

.cours-tache-input {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-input, #374151);
    border: 2px solid var(--border-color, #475569);
    border-radius: var(--border-radius, 12px);
    color: var(--text-primary, #f8fafc);
    font-size: 0.875rem;
}

.cours-tache-input:focus {
    outline: none;
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.cours-tache-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-cours-tache-action {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: var(--transition, all 0.2s ease-in-out);
}

.btn-cours-tache-save {
    background: #10b981;
    color: white;
}

.btn-cours-tache-save:hover {
    background: #059669;
    transform: scale(1.1);
}

.btn-cours-tache-delete {
    background: var(--danger, #e74c3c);
    color: white;
}

.btn-cours-tache-delete:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.cours-taches-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary, #cbd5e1);
    font-size: 0.875rem;
}

.cours-taches-empty::before {
    content: "📝";
    display: block;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* ========================================
   MODAL - SUIVI SÉQUENCE PÉDAGOGIQUE
   ======================================== */

.sequence-cours-info {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: var(--border-radius, 12px);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
}

.sequence-cours-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sequence-cours-classe {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.sequence-cours-horaire {
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-weight: 600;
}

.sequence-cours-salle {
    font-size: 0.875rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sequence-cours-salle::before {
    content: "📍";
}

.sequence-selection {
    margin-bottom: 1.5rem;
}

.sequence-select-row {
    display: flex;
    gap: 0.75rem;
}

.sequence-etapes-container h4 {
    color: var(--text-primary, #f8fafc);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color, #3b82f6);
}

.sequence-etapes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sequence-etape-item {
    background: var(--bg-secondary, #1e293b);
    border-radius: var(--border-radius, 12px);
    padding: 1rem;
    border: 2px solid var(--border-color, #475569);
    transition: var(--transition, all 0.2s ease-in-out);
}

.sequence-etape-item:hover {
    border-color: var(--primary-color, #3b82f6);
}

.sequence-etape-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.sequence-etape-titre {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #f8fafc);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sequence-etape-ordre {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-color, #3b82f6);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.sequence-etape-etat-actuel {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.sequence-etape-etat-actuel.NOT_DONE {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.sequence-etape-etat-actuel.PARTIAL {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.sequence-etape-etat-actuel.DONE {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.sequence-etape-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-etape-etat {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color, #475569);
    background: var(--bg-secondary, #1e293b);
    color: var(--text-secondary, #cbd5e1);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease-in-out);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-etape-etat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-etape-etat.active {
    border-width: 3px;
}

.btn-etape-etat.NOT_DONE.active {
    border-color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}

.btn-etape-etat.PARTIAL.active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.btn-etape-etat.DONE.active {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.sequence-progression-globale {
    background: var(--bg-secondary, #1e293b);
    border-radius: var(--border-radius, 12px);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 2px solid var(--border-color, #475569);
}

.sequence-progression-globale h5 {
    color: var(--text-primary, #f8fafc);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.progression-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.progression-stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-card, #1e293b);
    border-radius: var(--border-radius, 12px);
    border: 2px solid var(--border-color, #475569);
}

.progression-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color, #3b82f6);
    margin-bottom: 0.25rem;
}

.progression-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary, #cbd5e1);
    font-weight: 600;
}

/* Gestion des séquences */
.gestion-sequences-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sequences-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sequence-card {
    background: var(--bg-secondary, #1e293b);
    border-radius: var(--border-radius, 12px);
    padding: 1.5rem;
    border: 2px solid var(--border-color, #475569);
    transition: var(--transition, all 0.2s ease-in-out);
}

.sequence-card:hover {
    border-color: var(--primary-color, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.sequence-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.sequence-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #f8fafc);
    margin-bottom: 0.5rem;
}

.sequence-card-meta {
    font-size: 0.875rem;
    color: var(--text-secondary, #cbd5e1);
}

.sequence-card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sequence-action {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius, 12px);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition, all 0.2s ease-in-out);
}

.btn-sequence-edit {
    background: var(--primary-color, #3b82f6);
    color: white;
}

.btn-sequence-edit:hover {
    background: #2563eb;
}

.btn-sequence-delete {
    background: var(--danger, #e74c3c);
    color: white;
}

.btn-sequence-delete:hover {
    background: #c0392b;
}

.sequence-etapes-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sequence-etape-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Édition de séquence */
.edit-sequence-etapes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.edit-etape-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary, #1e293b);
    border-radius: var(--border-radius, 12px);
    border: 2px solid var(--border-color, #475569);
}

.edit-etape-handle {
    cursor: move;
    font-size: 1.25rem;
    color: var(--text-secondary, #cbd5e1);
    user-select: none;
}

.edit-etape-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-color, #3b82f6);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.edit-etape-input {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-input, #374151);
    border: 2px solid var(--border-color, #475569);
    border-radius: var(--border-radius, 12px);
    color: var(--text-primary, #f8fafc);
    font-size: 0.875rem;
}

.btn-remove-etape {
    background: var(--danger, #e74c3c);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

.btn-remove-etape:hover {
    background: #c0392b;
}

/* Vue comparative */
.vue-comparative-container {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.vue-comparative-table-wrapper {
    overflow-x: auto;
}

.vue-comparative-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0.5rem;
}

.vue-comparative-table th {
    background: var(--bg-secondary, #1e293b);
    color: var(--text-primary, #f8fafc);
    padding: 0.75rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--border-radius, 12px);
    white-space: nowrap;
}

.vue-comparative-table td {
    background: var(--bg-secondary, #1e293b);
    padding: 0.75rem;
    text-align: center;
    border-radius: var(--border-radius, 12px);
    border: 2px solid var(--border-color, #475569);
    transition: var(--transition, all 0.2s ease-in-out);
}

.vue-comparative-table td:hover {
    border-color: var(--primary-color, #3b82f6);
    transform: scale(1.05);
}

.vue-comparative-table td.classe-name {
    text-align: left;
    font-weight: 700;
    color: var(--text-primary, #f8fafc);
}

.etat-cell {
    font-size: 1.5rem;
    cursor: pointer;
}

.etat-cell.NOT_DONE::after {
    content: "❌";
}

.etat-cell.PARTIAL::after {
    content: "🟡";
}

.etat-cell.DONE::after {
    content: "✅";
}

.vue-comparative-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary, #cbd5e1);
}

.vue-comparative-empty::before {
    content: "📊";
    display: block;
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive pour tablette */
@media (max-width: 1024px) {
    .sequence-etape-actions {
        flex-wrap: wrap;
    }
    
    .btn-etape-etat {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
    
    .vue-comparative-table {
        font-size: 0.875rem;
    }
    
    .vue-comparative-table th,
    .vue-comparative-table td {
        padding: 0.5rem;
    }
}


