/* ============================================
   STYLES SPÉCIFIQUES PAGES - HARMONISATION
   ============================================ */

/* ========== PAGE DEVOIRS ========== */
.filters {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.filters label {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0;
}

.filters select {
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    padding: 0.5rem 1rem;
    min-width: 200px;
    transition: all 0.3s;
}

.filters select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.devoir-item {
    border-radius: 12px !important;
    margin-bottom: 1rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.devoir-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.devoir-item.fait {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    border-left: 4px solid #10b981 !important;
}

.status-toggle {
    margin-top: 0.5rem;
}

.status-toggle label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.status-toggle label:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ========== PAGE NOTES ========== */
.semester-card {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.semester-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 1.25rem !important;
    font-weight: 600;
}

.note-item {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.note-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.note-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ========== PAGE VIE SCOLAIRE ========== */
.nav-tabs {
    border: none !important;
    gap: 0.5rem;
}

.nav-tabs .nav-link {
    border: none !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 0.75rem 1.5rem !important;
    color: #667eea !important;
    font-weight: 500;
    transition: all 0.3s;
    background: rgba(102, 126, 234, 0.05);
}

.nav-tabs .nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.accordion-button {
    background: white !important;
    color: #667eea !important;
    font-weight: 600;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.accordion-item {
    border: none !important;
    margin-bottom: 0.75rem;
    border-radius: 12px !important;
    overflow: hidden;
}

/* ========== PAGE GESTION NOTES ========== */
.evaluation-group {
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.evaluation-group .card-header {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
    color: white !important;
    font-weight: 600;
}

.student-row {
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.student-row:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* ========== TABLEAUX GÉNÉRIQUES ========== */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ========== FORMULAIRES ========== */
.form-group label {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.form-floating label {
    color: #667eea;
}

/* ========== ALERTS PERSONNALISÉS ========== */
.alert-dismissible .btn-close {
    filter: none;
}

/* ========== VERSE CONTAINER (Accueil) ========== */
.verse-container {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.verse-reference {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.verse-text {
    font-style: italic;
    color: #4b5563;
    line-height: 1.6;
    font-size: 1rem;
}

/* ========== BUTTONS ACTIONS ========== */
.btn-outline-primary {
    border: 2px solid #667eea !important;
    color: #667eea !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

/* ========== DROPDOWN MENUS DANS PAGES ========== */
.dropdown-item {
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
}

/* ========== STATISTIQUES ========== */
.stat-card {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 767px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters select {
        width: 100%;
    }
    
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .nav-tabs .nav-link {
        white-space: nowrap;
    }
}
