/*
Theme Name: Show Pizz Formation
Theme URI: https://showpizz.fr
Description: Plateforme de formation digitale pour les salariés Show Pizz
Author: Show Pizz Team
Author URI: https://showpizz.fr
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: showpizz-formation
Tags: education, training, pizza, formation
*/

/* ============================================================================
   VARIABLES & RESET
============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Couleurs principales */
    --primary: #FF4757;
    --primary-dark: #EE2737;
    --primary-light: #FF6B7A;
    --secondary: #FFA502;
    --secondary-dark: #FF8C00;
    --success: #2ED573;
    --success-dark: #26DE81;
    --warning: #FFA502;
    --danger: #FF4757;
    --info: #1E90FF;
    
    /* Couleurs neutres */
    --dark: #2C3E50;
    --dark-secondary: #34495E;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --border: #E1E8ED;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-light: #BDC3C7;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF4757 0%, #FF6B7A 100%);
    --gradient-secondary: linear-gradient(135deg, #FFA502 0%, #FFB732 100%);
    --gradient-success: linear-gradient(135deg, #2ED573 0%, #26DE81 100%);
    --gradient-dark: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    --gradient-hero: linear-gradient(135deg, #2C3E50 0%, #1a252f 50%, #0f1419 100%);
    
    /* Ombres */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   UTILITAIRES
============================================================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================================
   HEADER & NAVIGATION
============================================================================ */

header {
    background: var(--gradient-dark);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a {
    color: var(--white);
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.logo a:hover {
    opacity: 0.9;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--gradient-primary);
    transition: transform var(--transition-base);
}

nav a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ============================================================================
   FOOTER
============================================================================ */

footer {
    background: var(--gradient-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--spacing-2xl) var(--spacing-md);
    margin-top: var(--spacing-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-base);
}

footer a:hover {
    color: var(--primary);
}

footer p {
    margin: 0.5rem 0;
}

/* ============================================================================
   DASHBOARD HEADER
============================================================================ */

.dashboard-header {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.dashboard-header h1 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ============================================================================
   STATS CARDS
============================================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.stat-card:hover::before {
    width: 8px;
}

.stat-card.success::before {
    background: var(--gradient-success);
}

.stat-card.warning::before {
    background: var(--gradient-secondary);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-card.success .stat-number {
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card.warning .stat-number {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================================
   FORMATIONS GRID
============================================================================ */

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.formation-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: all var(--transition-slow);
    position: relative;
}

.formation-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 0;
}

.formation-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-light);
}

.formation-card:hover::after {
    opacity: 0.03;
}

.formation-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--gradient-primary);
    transition: transform var(--transition-slow);
}

.formation-card:hover .formation-thumbnail {
    transform: scale(1.05);
}

.formation-content {
    padding: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.formation-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.3;
}

.formation-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.formation-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--light);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.progress-bar {
    background: var(--light);
    height: 10px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--spacing-md) 0;
    position: relative;
}

.progress-fill {
    background: var(--gradient-success);
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.formation-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-md);
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* ============================================================================
   BUTTONS
============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-success {
    background: var(--gradient-success);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================================================
   BADGES
============================================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(46, 213, 115, 0.15);
    color: var(--success-dark);
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.badge-warning {
    background: rgba(255, 165, 2, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 165, 2, 0.3);
}

.badge-info {
    background: rgba(30, 144, 255, 0.15);
    color: var(--info);
    border: 1px solid rgba(30, 144, 255, 0.3);
}

/* ============================================================================
   QUIZ MODULE
============================================================================ */

.quiz-container {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    margin: var(--spacing-lg) 0;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.question {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--light);
}

.question:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.question-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    line-height: 1.4;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.answer-option {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--white);
}

.answer-option:hover {
    border-color: var(--primary);
    background: rgba(255, 71, 87, 0.05);
    transform: translateX(4px);
}

.answer-option input[type="radio"] {
    margin-right: var(--spacing-sm);
    width: 24px;
    height: 24px;
    accent-color: var(--primary);
    cursor: pointer;
}

.answer-option.selected {
    border-color: var(--primary);
    background: rgba(255, 71, 87, 0.08);
    box-shadow: var(--shadow-sm);
}

/* ============================================================================
   EMPLOYEE TABLE
============================================================================ */

.employees-table {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.employees-table h2 {
    padding: var(--spacing-lg);
    background: var(--light);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--gradient-dark);
    color: var(--white);
}

th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: var(--spacing-md);
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--light);
}

.employee-name {
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================================================
   BADGES CONTAINER
============================================================================ */

.badges-container {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.badge-item {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    min-width: 140px;
    transition: all var(--transition-base);
}

.badge-item:hover {
    transform: translateY(-4px) rotate(2deg);
    box-shadow: var(--shadow-lg);
}

.badge-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.badge-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.badge-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============================================================================
   ALERTS
============================================================================ */

.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid;
    font-weight: 500;
}

.alert strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.alert-success {
    background: rgba(46, 213, 115, 0.1);
    color: var(--success-dark);
    border-color: var(--success);
}

.alert-warning {
    background: rgba(255, 165, 2, 0.1);
    color: #d68000;
    border-color: var(--warning);
}

.alert-info {
    background: rgba(30, 144, 255, 0.1);
    color: #0066cc;
    border-color: var(--info);
}

/* ============================================================================
   VIDEO PLAYER
============================================================================ */

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================================================
   LOADING SPINNER
============================================================================ */

.spinner {
    border: 4px solid rgba(255, 71, 87, 0.2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 0.8s linear infinite;
    margin: var(--spacing-lg) auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================================
   RESPONSIVE
============================================================================ */

@media (max-width: 1024px) {
    .formations-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .formations-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    header .container {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .employees-table {
        overflow-x: auto;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    .formation-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .formation-meta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* ============================================================================
   ANIMATIONS & EFFECTS
============================================================================ */

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .formation-card,
    .stat-card,
    .quiz-container {
        animation: fadeIn 0.6s ease-out;
    }
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary);
    color: var(--white);
}
/* Styles spécifiques pour les checkboxes */
.answer-option input[type="checkbox"] {
    margin-right: 10px;
    width: 24px;
    height: 24px;
    accent-color: var(--primary);
    cursor: pointer;
}

.answer-option.selected {
    border-color: var(--primary);
    background: rgba(255, 71, 87, 0.08);
    box-shadow: var(--shadow-sm);
}

/* Badge "PLUSIEURS RÉPONSES" */
.question-text span {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================================================
   CORRECTION TABLEAU DASHBOARD - À AJOUTER DANS STYLE.CSS
   ============================================================================ */

/* Conteneur du tableau avec scroll horizontal */
.employees-table {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow-x: auto; /* Activer le scroll horizontal */
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    margin-bottom: var(--spacing-xl);
}

.employees-table h2 {
    padding: var(--spacing-lg);
    background: var(--light);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    position: sticky;
    left: 0;
    z-index: 2;
}

/* Table avec largeur minimale pour forcer le scroll */
.employees-table table {
    width: 100%;
    min-width: 1200px; /* Largeur minimale pour toutes les colonnes */
    border-collapse: collapse;
}

/* Header sticky */
.employees-table thead {
    background: var(--gradient-dark);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 3;
}

.employees-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Empêcher le retour à la ligne */
    min-width: 140px; /* Largeur minimale des colonnes formations */
}

/* Colonnes fixes (nom et email) */
.employees-table th:first-child,
.employees-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--white);
    z-index: 2;
    min-width: 150px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.employees-table thead th:first-child {
    background: var(--dark);
    z-index: 4;
}

.employees-table th:nth-child(2),
.employees-table td:nth-child(2) {
    position: sticky;
    left: 150px;
    background: var(--white);
    z-index: 2;
    min-width: 200px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.employees-table thead th:nth-child(2) {
    background: var(--dark);
    z-index: 4;
}

/* Dernière colonne (score moyen) - aussi sticky */
.employees-table th:last-child,
.employees-table td:last-child {
    position: sticky;
    right: 0;
    background: var(--white);
    z-index: 2;
    min-width: 120px;
    font-weight: 700;
    box-shadow: -2px 0 5px rgba(0,0,0,0.05);
}

.employees-table thead th:last-child {
    background: var(--dark);
    z-index: 4;
}

/* Cellules du tableau */
.employees-table td {
    padding: var(--spacing-md);
    text-align: left;
    vertical-align: middle;
}

.employees-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}

.employees-table tbody tr:last-child {
    border-bottom: none;
}

.employees-table tbody tr:hover {
    background: var(--light);
}

.employees-table tbody tr:hover td:first-child,
.employees-table tbody tr:hover td:nth-child(2),
.employees-table tbody tr:hover td:last-child {
    background: var(--light);
}

/* Nom du salarié */
.employee-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Email */
.employees-table td:nth-child(2) {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Badges dans le tableau */
.employees-table .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Indicateur de scroll */
.employees-table::after {
    content: '← Faites défiler →';
    position: absolute;
    bottom: 10px;
    right: 20px;
    background: rgba(255, 71, 87, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Barre de scroll stylisée */
.employees-table::-webkit-scrollbar {
    height: 12px;
}

.employees-table::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: var(--radius-md);
}

.employees-table::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-md);
    transition: background var(--transition-base);
}

.employees-table::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Version mobile */
@media (max-width: 768px) {
    .employees-table h2 {
        font-size: 1.2rem;
        padding: var(--spacing-md);
    }
    
    .employees-table table {
        min-width: 1000px;
    }
    
    .employees-table th,
    .employees-table td {
        padding: var(--spacing-sm);
        font-size: 0.85rem;
    }
    
    .employees-table th {
        min-width: 120px;
    }
    
    .employees-table th:first-child,
    .employees-table td:first-child {
        min-width: 120px;
    }
    
    .employees-table th:nth-child(2),
    .employees-table td:nth-child(2) {
        left: 120px;
        min-width: 180px;
    }
}

/* Amélioration de la lisibilité */
@media print {
    .employees-table {
        overflow: visible;
    }
    
    .employees-table table {
        min-width: auto;
    }
    
    .employees-table th,
    .employees-table td {
        position: static;
    }
}

/* ============================================================================
   CHRONOMÈTRE QUIZ (NOUVEAU)
============================================================================ */

.quiz-info-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(255, 165, 2, 0.1), rgba(255, 183, 50, 0.1));
    border-left: 4px solid var(--warning);
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.quiz-info-icon {
    font-size: 32px;
    animation: pulse 2s ease-in-out infinite;
}

.quiz-info-content {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.question-timer {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    margin-bottom: 20px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.question-timer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-success);
    transition: all var(--transition-base);
}

.question-timer.warning::before {
    background: var(--gradient-secondary);
}

.question-timer.expired::before {
    background: var(--gradient-primary);
}

.question-timer.warning {
    border-color: var(--warning);
    background: linear-gradient(135deg, rgba(255, 165, 2, 0.05), rgba(255, 183, 50, 0.05));
    animation: pulse-border 1s ease-in-out infinite;
}

.question-timer.expired {
    border-color: var(--danger);
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.05), rgba(255, 107, 122, 0.05));
}

@keyframes pulse-border {
    0%, 100% { 
        border-color: var(--warning);
        transform: scale(1);
    }
    50% { 
        border-color: var(--danger);
        transform: scale(1.01);
    }
}

.timer-icon {
    font-size: 24px;
    line-height: 1;
}

.timer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timer-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.question-timer.warning .timer-display {
    color: var(--warning);
}

.question-timer.expired .timer-display {
    color: var(--danger);
}

.timer-progress {
    flex: 1;
    height: 8px;
    background: var(--light);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.timer-progress-bar {
    height: 100%;
    background: var(--gradient-success);
    border-radius: var(--radius-full);
    transition: width 0.1s linear, background 0.3s ease;
    position: relative;
}

.timer-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.timer-progress-bar.warning {
    background: var(--gradient-secondary);
}

.timer-progress-bar.danger {
    background: var(--gradient-primary);
    animation: pulse-bar 0.5s ease-in-out infinite;
}

@keyframes pulse-bar {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.timer-alert {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(255, 107, 122, 0.1));
    border-left: 4px solid var(--danger);
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    margin-top: 15px;
    color: var(--danger);
    font-weight: 600;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.answer-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--light);
}

.answer-option.disabled:hover {
    border-color: var(--border);
    background: var(--light);
    transform: none;
}

/* Responsive timer */
@media (max-width: 768px) {
    .question-timer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .timer-icon {
        text-align: center;
    }
    
    .timer-info {
        text-align: center;
    }
    
    .timer-progress {
        order: 3;
    }
}

/* ============================================================================
   PAGE COURS (ARCHIVE & SINGLE) (NOUVEAU)
============================================================================ */

/* Header page cours */
.cours-header {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    text-align: center;
}

.cours-header h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.cours-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Filtres de thèmes */
.cours-filters {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* Grid des cours */
.cours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.cours-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: all var(--transition-slow);
    position: relative;
}

.cours-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-light);
}

.cours-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gradient-primary);
    transition: transform var(--transition-slow);
}

.cours-card:hover .cours-thumbnail {
    transform: scale(1.05);
}

.cours-content {
    padding: var(--spacing-lg);
}

.cours-themes {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}

.cours-theme-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 71, 87, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cours-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.3;
}

.cours-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.cours-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cours-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Badge "Lu" */
.cours-read-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-success);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

/* Page single cours */
.cours-single-header {
    background: var(--white);
    padding: var(--spacing-2xl) var(--spacing-xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.cours-single-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.cours-single-meta {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
}

.cours-single-content {
    background: var(--white);
    padding: var(--spacing-2xl) var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    line-height: 1.8;
}

.cours-single-content h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.cours-single-content p {
    margin-bottom: var(--spacing-md);
}

.cours-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
}

/* Sidebar cours */
.cours-sidebar {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
}

.cours-sidebar h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.cours-related {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.cours-related-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-decoration: none;
    color: var(--text-primary);
}

.cours-related-item:hover {
    background: var(--light);
}

.cours-related-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.cours-related-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Responsive cours */
@media (max-width: 768px) {
    .cours-header h1 {
        font-size: 1.75rem;
    }
    
    .cours-grid {
        grid-template-columns: 1fr;
    }
    
    .cours-filters {
        justify-content: flex-start;
    }
    
    .cours-single-header h1 {
        font-size: 1.75rem;
    }
}

/* ============================================================================
   ANIMATIONS
============================================================================ */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}


/* style a peut etre degager */
/* ============================================================================
   NOTIFICATION TRACKING COURS
   ============================================================================ */

   .read-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2ED573, #26DE81);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(46, 213, 115, 0.4);
    z-index: 9999;
    font-weight: 600;
    font-size: 16px;
    animation: slideInRight 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* Style pour le badge "Déjà lu" sur les cours */
.cours-single-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
}

/* ============================================================================
   TIMER QUIZ - AJUSTEMENTS
   ============================================================================ */

.question-timer {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.question-timer.warning {
    animation: pulse 1s infinite;
}

.question-timer.expired {
    background: #fff5f5;
    border-left: 4px solid #FF4757;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.timer-progress-bar {
    height: 6px;
    background: #2ED573;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.timer-progress-bar.warning {
    background: #FFA502;
}

.timer-progress-bar.danger {
    background: #FF4757;
}

.timer-display {
    font-size: 24px;
    font-weight: bold;
    color: #2C3E50;
    font-variant-numeric: tabular-nums;
}

.timer-alert {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #FFA502;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navigation quiz */
.btn-next-question,
.btn-submit-quiz,
.btn-retry-quiz {
    padding: 12px 30px;
    background: linear-gradient(135deg, #FF4757, #FF6B7A);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 20px;
}

.btn-next-question:hover,
.btn-submit-quiz:hover,
.btn-retry-quiz:hover {
    background: linear-gradient(135deg, #EE2737, #FF4757);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-next-question:disabled,
.btn-submit-quiz:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Barre de progression quiz */
.progress-container {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ED573, #26DE81);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    text-align: center;
    display: block;
}

/* Résultats quiz */
.quiz-result {
    margin-top: 30px;
    animation: fadeIn 0.5s ease-out;
}

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

/* Questions désactivées après expiration */
.answer-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.answer-option.disabled input {
    cursor: not-allowed;
}


/* ============================================================================
   ANIMATIONS UX QUIZ
   ============================================================================ */

/* Animation shake (erreur) */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* Animation bounce (succès) */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

/* Animation pulse (bouton submit) */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Animation spin (loader) */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animation confettis */
@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Animation slideInRight (toast) */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animation fadeIn */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   STYLES DES OPTIONS DE RÉPONSE
   ============================================================================ */

.answer-option {
    padding: 18px 24px;
    margin-bottom: 14px;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.answer-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.answer-option:hover::before {
    left: 100%;
}

.answer-option:hover {
    transform: translateX(5px);
    border-color: #FF4757;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.2);
    background: #fff5f5;
}

.answer-option.selected {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-color: #FF4757;
    border-width: 3px;
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.25);
    transform: scale(1.02);
}

.answer-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

.answer-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    margin: 0;
}

.answer-option input[type="radio"],
.answer-option input[type="checkbox"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #FF4757;
}

/* ============================================================================
   TIMER STYLES
   ============================================================================ */

.question-timer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 5px solid #2ED573;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.question-timer.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe9a5 100%);
    border-left-color: #FFA502;
    animation: pulse 1s infinite;
}

.question-timer.expired {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left-color: #FF4757;
    animation: shake 0.5s;
}

.timer-display {
    font-size: 28px;
    font-weight: 800;
    color: #2C3E50;
    font-variant-numeric: tabular-nums;
    font-family: 'Monaco', 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timer-progress-bar {
    height: 8px;
    background: linear-gradient(90deg, #2ED573, #26DE81);
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(46, 213, 115, 0.3);
}

.timer-progress-bar.warning {
    background: linear-gradient(90deg, #FFA502, #FFB732);
    box-shadow: 0 2px 8px rgba(255, 165, 2, 0.3);
}

.timer-progress-bar.danger {
    background: linear-gradient(90deg, #FF4757, #FF6B7A);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

/* ============================================================================
   BARRE DE PROGRESSION
   ============================================================================ */

.progress-container {
    margin: 30px 0;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: #e9ecef;
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF4757, #FF6B7A);
    border-radius: 7px;
    transition: width 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.progress-text {
    font-size: 16px;
    color: #2C3E50;
    font-weight: 600;
    text-align: center;
    display: block;
}

/* ============================================================================
   BOUTONS
   ============================================================================ */

.btn-next-question,
.btn-submit-quiz {
    padding: 16px 36px;
    background: linear-gradient(135deg, #FF4757, #FF6B7A);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-next-question::before,
.btn-submit-quiz::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-next-question:hover::before,
.btn-submit-quiz:hover::before {
    width: 300px;
    height: 300px;
}

.btn-next-question:hover,
.btn-submit-quiz:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

.btn-next-question:active,
.btn-submit-quiz:active {
    transform: translateY(-1px);
}

.btn-retry-module,
.btn-next-module {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-retry-module:hover,
.btn-next-module:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   MODULE CARD
   ============================================================================ */

.module-card {
    transition: all 0.3s;
    position: relative;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.module-completed::after {
    content: '✅ VALIDÉ';
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2ED573, #26DE81);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.3);
    animation: bounce 1s;
}

/* ============================================================================
   QUESTION CARD
   ============================================================================ */

.question {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

/* ============================================================================
   TIMER ALERT
   ============================================================================ */

.timer-alert {
    animation: fadeIn 0.5s;
    font-size: 15px;
}

/* ============================================================================
   TOAST NOTIFICATIONS
   ============================================================================ */

.custom-toast {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .answer-option {
        padding: 15px 18px;
    }
    
    .timer-display {
        font-size: 24px;
    }
    
    .btn-next-question,
    .btn-submit-quiz {
        width: 100%;
        padding: 14px 24px;
    }
    
    .module-result-card {
        padding: 25px !important;
    }
    
    .progress-container {
        padding: 20px;
    }
}

