:root {
    /* Palette rouge améliorée */
    --primary-color: #e53935;
    --primary-dark: #c62828;
    --primary-light: #ffcdd2;
    --primary-gradient: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    
    /* Couleurs secondaires */
    --secondary-color: #757575;
    --accent-color: #ff5252;
    
    /* Backgrounds */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --card-hover: #fafafa;
    
    /* Texte */
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --text-muted: #adb5bd;
    
    /* Bordures */
    --border-color: #e9ecef;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    
    /* États */
    --success-color: #43a047;
    --warning-color: #ffa726;
    --error-color: #ef5350;
    --info-color: #42a5f5;
    
    /* Ombres améliorées */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
}

/* ============================================
   HEADER MODERNE
   ============================================ */
header {
    background: white;
    padding: 20px 32px;
    border-radius: var(--border-radius);
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
}

header h1 {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.user-info a:not(.btn) {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.user-info a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.user-info a:not(.btn):hover::after {
    width: 100%;
}

/* ============================================
   BOUTONS MODERNISÉS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.user-info a.btn-primary,
.btn-primary {
    background: var(--primary-gradient);
    color: white !important;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.user-info a.btn-primary:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

.user-info a.btn-outline,
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
}

.user-info a.btn-outline:hover,
.btn-outline:hover {
    background-color: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.2);
}

/* ============================================
   DASHBOARD CARDS AMÉLIORÉES
   ============================================ */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.card {
    background: var(--primary-gradient);
    color: white;
    padding: 32px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card h3 {
    font-size: 0.85rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.95;
    font-weight: 600;
}

.card .value {
    font-size: 3rem;
    font-weight: 700;
    margin: 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================
   STATS GRID (Index)
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 28px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(40%, 40%);
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.stat-card.primary {
    background: var(--primary-gradient);
    
}

.stat-card.success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card.info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card h3 {
    font-size: 0.85rem;
    margin: 0 0 12px 0;
    opacity: 1;  /* Changé de 0.95 à 1 pour un blanc plus intense */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: #ffffff !important;  /* Ajouté pour forcer le blanc */
}

.stat-card .value {
    font-size: 2.75rem;
    font-weight: 700;
    margin: 12px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card .subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   FORMULAIRES MODERNISÉS
   ============================================ */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
    background: #fff;
}

/* ============================================
   TABLES AMÉLIORÉES
   ============================================ */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background: white;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: left;
    padding: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
}

th:first-child {
    border-top-left-radius: var(--border-radius);
}

th:last-child {
    border-top-right-radius: var(--border-radius);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

tr:hover {
    background-color: #fafafa;
}

tr:last-child td {
    border-bottom: none;
}

/* ============================================
   MODALES MODERNISÉES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 36px;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECTIONS RÉCENTES/EN COURS
   ============================================ */
.recent-evaluations,
.pending-evaluations {
    background: white;
    border-radius: var(--border-radius);
    padding: 32px;
    margin-top: 32px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.recent-evaluations h2,
.pending-evaluations h2 {
    color: var(--primary-color);
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pending-evaluations {
    border-top-color: var(--warning-color);
}

.pending-evaluations h2 {
    color: var(--warning-color);
}

.eval-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
}

.eval-item:hover {
    background: var(--card-hover);
    transform: translateX(4px);
}

.eval-item:last-child {
    border-bottom: none;
}

.eval-info {
    flex: 1;
}

.eval-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-color);
}

.eval-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.eval-score {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 24px;
    color: var(--primary-color);
}

.eval-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.eval-badge.bon {
    background: #e8f5e9;
    color: #2e7d32;
}

.eval-badge.satisfaisant {
    background: #fff3e0;
    color: #ef6c00;
}

.eval-badge.faible {
    background: #ffebee;
    color: #c62828;
}

.eval-badge.en-cours {
    background: #fff3cd;
    color: #856404;
}

/* ============================================
   ADMINISTRATION
   ============================================ */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.admin-header h1 {
    margin: 0;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.75rem;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 10px 18px;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn-small.edit {
    background: #42a5f5;
    color: white;
}

.btn-small.edit:hover {
    background: #1e88e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 165, 245, 0.3);
}

.btn-small.delete {
    background: #ef5350;
    color: white;
}

.btn-small.delete:hover {
    background: #e53935;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.3);
}

.btn-small.add {
    background: #66bb6a;
    color: white;
}

.btn-small.add:hover {
    background: #43a047;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 187, 106, 0.3);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.badge-info {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-warning {
    background: #fff3e0;
    color: #ef6c00;
}

.badge-danger {
    background: #ffebee;
    color: #c62828;
}

.badge.type-multiple {
    background: #e3f2fd;
    color: #1976d2;
}

.badge.type-checkbox {
    background: #fff3e0;
    color: #ef6c00;
}

.badge.type-text {
    background: #e0f2f1;
    color: #00695c;
}

/* ============================================
   LOGIN
   ============================================ */
.login-body {
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.login-container {
    max-width: 480px;
    width: 100%;
    padding: 20px;
}

.login-container h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 2.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.login-container > p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.1rem;
    margin-bottom: 32px;
}

#login {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

#login h2 {
    color: var(--text-color) !important;
    margin-bottom: 28px;
    font-size: 1.75rem;
    font-weight: 700;
}

/* ============================================
   ÉVALUATION
   ============================================ */
.info-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 28px;
    border-radius: var(--border-radius);
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.info-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.info-banner h3 {
    margin: 0 0 16px 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.info-banner p {
    margin: 10px 0;
    opacity: 0.95;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-banner.resume {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
}

.progress-container {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
}

.rubric-card {
    background: white;
    padding: 28px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.rubric-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

.question-item {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    background: var(--bg-color);
}

.question-item:hover {
    background: #f0f0f0;
}

.question-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    padding: 10px;
    border-radius: 6px;
}

/* ============================================
   NAVIGATION DOTS
   ============================================ */
.rubric-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.nav-dot {
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 8px;
    background: white;
    border: 2px solid var(--border-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-dot:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav-dot.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.nav-dot.completed {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #66bb6a;
}

/* ============================================
   RÉSULTATS
   ============================================ */
.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 10px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
    color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.2);
    position: relative;
}

.result-badge {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.level-excellent {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
}

.level-bon {
    background: linear-gradient(135deg, #9ccc65 0%, #7cb342 100%);
    color: white;
}

.level-satisfaisant {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
    color: white;
}

.level-faible {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
    color: white;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: var(--text-light);
}

/* ============================================
   SPINNER
   ============================================ */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .user-info {
        justify-content: center;
        width: 100%;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card .value,
    .stat-card .value {
        font-size: 2.5rem;
    }

    .modal-content {
        padding: 24px;
    }

    .admin-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .eval-item {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .eval-score {
        margin: 12px 0;
    }
}

/* ============================================
   ANIMATIONS SUPPLÉMENTAIRES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.stat-card,
.rubric-card {
    animation: fadeInUp 0.5s ease-out;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.filter-bar input,
.filter-bar select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    flex: 1;
    min-width: 180px;
    transition: var(--transition);
    font-family: inherit;
}

.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    display: none;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.alert.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #43a047;
    display: block;
}

.alert.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #ef5350;
    display: block;
}

.alert.warning {
    background: #fff3e0;
    color: #ef6c00;
    border-left: 4px solid #ffa726;
    display: block;
}

.alert.info {
    background: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #42a5f5;
    display: block;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    background: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
}

.tab {
    padding: 16px 28px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}

.tab:hover {
    color: var(--primary-color);
    background: var(--bg-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: white;
}

.tab-button {
    padding: 12px 24px;
    border: none;
    background: #f8f9fa;
    color: var(--text-light);
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.tab-button:hover {
    background: #e9ecef;
    color: var(--text-color);
}

.tab-button.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

/* ============================================
   QUESTIONS LIST (Admin)
   ============================================ */
.questions-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.question-info {
    flex: 1;
}

.question-info p {
    margin: 6px 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.question-text {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.question-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

/* ============================================
   OPTIONS CONTAINER
   ============================================ */
.options-container {
    background: var(--bg-color);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    margin-top: 16px;
    border: 1px solid var(--border-color);
}

.option-item {
    display: grid;
    grid-template-columns: 1fr 120px 120px;
    gap: 12px;
    margin-bottom: 12px;
    align-items: end;
}

.option-item input {
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.option-item input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.btn-remove-option {
    background: var(--error-color);
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-remove-option:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.3);
}

.btn-add-option {
    background: var(--success-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    margin-top: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-add-option:hover {
    background: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3);
}

/* ============================================
   FORM ACTIONS
   ============================================ */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.btn-cancel {
    background: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: #616161;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-submit {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

/* ============================================
   PREVIEW MEDIA
   ============================================ */
.preview-media {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: var(--border-radius-sm);
    border: 2px dashed var(--border-color);
}

.preview-media img,
.preview-media video {
    max-width: 100%;
    max-height: 320px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.info-item {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
}

.info-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.info-item label {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-item span {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.1rem;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

/* ============================================
   TIMER & PAUSE
   ============================================ */
.timer-display {
    background: white;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
}

.pause-button {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.3);
}

.pause-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 167, 38, 0.4);
}

.pause-indicator {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 12px;
    box-shadow: 0 2px 8px rgba(255, 167, 38, 0.3);
}

.autosave-indicator {
    text-align: center;
    color: var(--success-color);
    font-size: 0.9rem;
    margin-top: 12px;
    padding: 8px;
    background: #e8f5e9;
    border-radius: var(--border-radius-sm);
    display: none;
    font-weight: 600;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

/* ============================================
   RESPONSIVE AJUSTEMENTS SUPPLÉMENTAIRES
   ============================================ */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .option-item {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
    }

    .tabs {
        overflow-x: auto;
    }

    .tab {
        padding: 12px 20px;
        white-space: nowrap;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar input,
    .filter-bar select {
        min-width: 100%;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .timer-display {
        font-size: 1rem;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.25rem;
    }

    .card .value,
    .stat-card .value {
        font-size: 2rem;
    }

    .score-circle {
        width: 120px;
        height: 120px;
        font-size: 2rem;
    }

    .result-badge {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body {
        background: white;
    }

    .btn,
    .filter-bar,
    .action-buttons,
    header {
        display: none;
    }

    .card,
    .stat-card,
    .content {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* ============================================
   ACCESSIBILITÉ
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   SCROLLBAR PERSONNALISÉE
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}