/* ==========================================================================
   E-LEARNING ACADEMY - QUANTUM BLUE & ICE GLASS DESIGN SYSTEM (VERTIX V14)
   Colors: Quantum Blue (#0059ff) + Ice Glass (#d5f8fc) + Pure White (#ffffff)
   Midnight Dark Mode: Deep Space Navy (#060e1f / #0d1b38)
   ========================================================================== */

:root {
    --primary: #0059ff;          /* Quantum Blue (#0059ff) */
    --primary-rgb: 0, 89, 255;
    --primary-dark: #0750d1;     /* Deep Royal Blue */
    --primary-hover: #004cd9;
    --primary-light: #eef5ff;    /* Fond bleu doux */
    --primary-border: #b3d1ff;

    --ice-glass: #d5f8fc;        /* Ice Glass (#d5f8fc) */
    --ice-glass-rgb: 213, 248, 252;
    --ice-glass-light: #f0fcfd;
    --ice-glass-border: #aeeaf2;
    --ice-glass-text: #054c8c;

    --secondary: #0750d1;
    --secondary-rgb: 7, 80, 209;
    --accent: #d5f8fc;
    --accent-rgb: 213, 248, 252;

    --bg-main: #f3f6fc;          /* Fond doux et lumineux type Vertix V14 */
    --bg-card: #ffffff;          /* Carte blanc pur */
    --bg-card-hover: #ffffff;
    --border-glass: #e5ebf5;     /* Bordure subtile et élégante */
    --border-glass-light: #edf2f9;

    --text-main: #0b1528;        /* Texte principal noir bleuté ultra-lisible */
    --text-muted: #5e6d82;       /* Texte secondaire gris pro */
    --input-bg: #ffffff;
    --input-border: #d2dceb;

    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0059ff;

    --hero-gradient: linear-gradient(135deg, #0059ff 0%, #0047d9 55%, #0750d1 100%);
    --ice-gradient: linear-gradient(135deg, #d5f8fc 0%, #c4f4fa 100%);

    --glass-blur: blur(14px);
    --glass-shadow: 0 10px 25px -5px rgba(0, 89, 255, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --glass-shadow-sm: 0 2px 8px 0 rgba(11, 21, 40, 0.05);
    --glass-shadow-lg: 0 20px 35px -5px rgba(0, 89, 255, 0.14), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-full: 9999px;

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Palette (Bleu Nuit & Quantum Blue / Ice Glass) */
[data-theme="dark"] {
    --bg-main: #060e1f;
    --bg-card: #0d1b38;
    --bg-card-hover: #12244a;
    --border-glass: #173261;
    --border-glass-light: #132a52;

    --text-main: #f0f6fc;
    --text-muted: #8ca2c4;
    --input-bg: #09142b;
    --input-border: #1a386e;
    --primary-light: #10264e;

    --ice-glass: rgba(213, 248, 252, 0.16);
    --ice-glass-border: rgba(213, 248, 252, 0.28);
    --ice-glass-text: #aeeaf2;
    --hero-gradient: linear-gradient(135deg, #0059ff 0%, #003db3 60%, #052a6e 100%);

    --glass-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --glass-shadow-sm: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
    --glass-shadow-lg: 0 20px 35px -5px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body {
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 89, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(7, 80, 209, 0.15) 0px, transparent 50%);
}

[data-theme="dark"] .glass-card,
[data-theme="dark"] .glass-panel,
[data-theme="dark"] .app-header,
[data-theme="dark"] .sidebar,
[data-theme="dark"] footer,
[data-theme="dark"] .modal-dialog {
    background: #111e38 !important;
    border-color: #1e3a68 !important;
    color: #f8fafc;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    background: #0d182e !important;
    border-color: #1e3a68 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .form-control {
    background-color: #0d182e !important;
    border-color: #1e3a68 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .form-control:focus {
    border-color: var(--primary) !important;
    background-color: #0f1c34 !important;
}

[data-theme="dark"] .glass-table th {
    background: #0f1a30;
    color: #94a3b8;
    border-color: #1e3a68;
}

[data-theme="dark"] .glass-table td {
    border-color: #182e52;
    color: #f8fafc;
}

[data-theme="dark"] .glass-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.08);
}

[data-theme="dark"] .badge-secondary {
    background: #1e3a68;
    color: #93c5fd;
}

[data-theme="dark"] .btn-secondary {
    background: #1e3a68;
    border-color: #2a4e8a;
    color: #ffffff;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #25467d;
    border-color: #3b82f6;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(at 0% 0%, rgba(var(--primary-rgb), 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(var(--secondary-rgb), 0.04) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
}

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

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

/* FontAwesome Icons Standard - Professional Blue Accent */
.fa, .fas, .far, .fa-solid, .fa-regular {
    color: var(--primary);
    transition: var(--transition);
}

.btn .fa, .btn .fa-solid, .btn .fa-regular,
.badge .fa, .badge .fa-solid {
    color: inherit;
}

/* Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container-fluid {
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Cards & Panels - Pure White & Subtle Blue Frost (Hyper-Reactive & Smooth) */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow-sm);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.08), 0 3px 8px rgba(0, 0, 0, 0.03);
    border-color: rgba(37, 99, 235, 0.25);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--glass-shadow-sm);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--accent));
    transition: height 0.25s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(37, 99, 235, 0.35);
}

.glass-card:hover::before {
    height: 4px;
}

.glass-card:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
}

/* Buttons - Professional Blue & Crisp White */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    user-select: none;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.28);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary-border);
    color: var(--primary);
}

.btn-success {
    background: var(--success);
    color: #ffffff !important;
}

.btn-success:hover {
    background: #047857;
}

.btn-danger {
    background: var(--bg-card);
    border: 1px solid #fecaca;
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: #ffffff !important;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 0.85rem 1.85rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-border);
}

.badge-success {
    background: #ecfdf5;
    color: var(--success);
    border-color: #a7f3d0;
}

.badge-warning {
    background: #fffbeb;
    color: var(--warning);
    border-color: #fde68a;
}

.badge-danger {
    background: #fef2f2;
    color: var(--danger);
    border-color: #fecaca;
}

.badge-secondary {
    background: #f1f5f9;
    color: var(--text-muted);
    border-color: #e2e8f0;
}

/* Form Controls */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

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

/* Progress Bars */
.progress-container {
    width: 100%;
    height: 9px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* App Header */
.app-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.navbar-brand img,
.navbar-brand .v14-brand-logo-img {
    height: 28px;
    max-height: 28px;
    max-width: 125px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 270px;
    background: #ffffff;
    border-right: 1px solid var(--border-glass);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    z-index: 900;
}

.sidebar-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0.5rem 0.85rem;
    margin-top: 1rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sidebar-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}

.sidebar-link.active .fa, .sidebar-link.active .fa-solid {
    color: var(--primary);
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Modals V14 (Scroll Intégral, Pied Fixé & Adaptation Mobile) */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 17, 34, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s ease;
    padding: 1.25rem;
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 660px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0, 89, 255, 0.08);
    transform: scale(0.96) translateY(8px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    overflow: hidden;
    position: relative;
}

.modal-backdrop.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Prise en charge des formulaires internes sans rupture de flexbox */
.modal-dialog > form,
.modal-dialog form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.6rem;
    border-bottom: 1px solid var(--border-glass);
    background: #f8fafc;
    flex-shrink: 0;
    z-index: 2;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.modal-body {
    padding: 1.5rem 1.6rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 89, 255, 0.25) transparent;
}

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

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 89, 255, 0.25);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.6rem;
    border-top: 1px solid var(--border-glass);
    background: #f8fafc;
    flex-shrink: 0;
    z-index: 2;
}

.modal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .modal-dialog {
        max-height: 92vh;
        max-width: 100%;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        transform: translateY(100%);
    }

    .modal-backdrop.show .modal-dialog {
        transform: translateY(0);
    }

    .modal-header {
        padding: 1rem 1.25rem;
    }

    .modal-body {
        padding: 1.15rem 1.25rem;
    }

    .modal-footer {
        padding: 0.85rem 1.25rem;
        flex-direction: column-reverse;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .modal-grid-2,
    .modal-dialog div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 300px;
    max-width: 450px;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.toast.show {
    transform: translateX(0);
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info { border-left: 4px solid var(--primary); }

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.glass-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.glass-table th {
    padding: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-glass);
    background: #f8fafc;
}

.glass-table td {
    padding: 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-main);
    vertical-align: middle;
}

.glass-table tr:hover td {
    background: #f8fafc;
}

/* Responsive */
@media (max-width: 992px) {
    .dashboard-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }
    .dashboard-content {
        padding: 1.25rem;
    }
}

/* ==========================================================================
   Full-Screen Minimalist Login Layout (Left: Logo & Identity, Right: Form)
   Full-viewport 100vh, Zero Clutter, Zero Footer
   ========================================================================== */
.login-fullscreen-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: stretch;
    background: #ffffff;
}

.login-fs-brand {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--primary-dark, #0d3896) 0%, var(--primary, #1455fe) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.login-watermark-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.16;
    filter: saturate(1.15) contrast(1.15);
    z-index: 1;
    pointer-events: none;
    transform: scale(1.03);
}

.login-watermark-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(20, 85, 254, 0.7) 0%, rgba(10, 36, 102, 0.9) 100%);
    z-index: 2;
    pointer-events: none;
}

.login-brand-foreground {
    position: relative;
    z-index: 5;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-brand-logo-card {
    width: 105px;
    height: 105px;
    border-radius: 26px;
    background: #ffffff;
    padding: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.login-brand-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(20, 85, 254, 0.2));
}

.login-brand-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.login-brand-baseline {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 420px;
    line-height: 1.6;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.login-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.login-btn-back:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.login-fs-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: #ffffff;
}

.login-clean-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 2.75rem 2.25rem;
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.08), 0 3px 10px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-clean-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--accent));
}

.login-clean-card:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 22px 48px rgba(37, 99, 235, 0.12), 0 5px 14px rgba(0, 0, 0, 0.03);
    transform: translateY(-3px);
}

/* Responsiveness on tablet & mobile */
@media (max-width: 860px) {
    .login-fullscreen-wrapper {
        flex-direction: column;
        min-height: 100vh;
    }

    .login-fs-brand {
        flex: none;
        padding: 3.5rem 1.5rem 2rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }

    .login-fs-brand img {
        max-width: 90px;
        margin-bottom: 1rem;
    }

    .login-fs-brand h1 {
        font-size: 1.7rem;
    }

    .login-fs-brand p {
        font-size: 0.95rem;
    }

    .login-fs-form-panel {
        flex: 1;
        padding: 2.5rem 1.5rem 3.5rem 1.5rem;
    }

    .login-clean-card {
        padding: 2rem 1.5rem;
        box-shadow: var(--glass-shadow);
    }
}

/* ==========================================================================
   Reference Image Match: Hero Banner (ED School / E-learning Royal Blue)
   ========================================================================== */
.ed-hero-container {
    padding: 1.5rem 0 3.5rem 0;
}

.ed-hero-banner {
    background: var(--primary, #1455fe);
    border-radius: 24px;
    padding: 3rem 3.5rem 4rem 3.5rem;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(20, 85, 254, 0.25);
    position: relative;
    overflow: hidden;
}

/* Top Row: Capsule Badge, Nav Links, Big ED School Logo */
.ed-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3.5rem;
    gap: 2rem;
}

.ed-capsule-badge {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 9999px;
    padding: 0.45rem 0.55rem 0.45rem 1.35rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    text-decoration: none;
    transition: all 0.25s ease;
}

.ed-capsule-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.ed-capsule-text {
    display: flex;
    flex-direction: column;
}

.ed-capsule-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.ed-capsule-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.ed-capsule-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    color: #ff5722;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin-left: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ed-nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.ed-nav-link {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.ed-nav-link:hover {
    color: #ffffff;
    opacity: 0.75;
}

.ed-brand-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    text-decoration: none;
}

.ed-brand-ed {
    font-size: 3.25rem;
    font-weight: 900;
    color: #ff5722;
    letter-spacing: -2px;
    line-height: 0.8;
}

.ed-brand-school {
    font-size: 1.85rem;
    font-weight: 600;
    color: #ff5722;
    line-height: 1;
    margin-top: 2px;
}

/* Main Row: Left Photo + Right E-learning Content */
.ed-main-row {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

.ed-photo-col {
    display: flex;
    flex-direction: column;
}

.ed-photo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    padding: 0 0.25rem;
}

.ed-photo-header .ed-close-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ed-photo-frame {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: #0f172a;
}

.ed-photo-frame img {
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ed-photo-frame:hover img {
    transform: scale(1.025);
}

.ed-content-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ed-headline {
    font-size: 4.8rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.ed-paragraph {
    font-size: 1.12rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2.25rem;
    max-width: 490px;
}

.ed-btn-know-more {
    display: inline-block;
    background: #ffffff;
    color: #0f172a !important;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.08rem;
    font-weight: 600;
    padding: 0.9rem 2.5rem;
    text-decoration: none;
    border-radius: 2px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
}

.ed-btn-know-more:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
}

/* Responsive adjustments for ED School banner */
@media (max-width: 992px) {
    .ed-hero-banner {
        padding: 2.5rem 2rem;
    }

    .ed-top-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
        text-align: center;
    }

    .ed-brand-logo {
        align-items: center;
    }

    .ed-main-row {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .ed-content-col {
        align-items: center;
    }

    .ed-headline {
        font-size: 3.5rem;
    }

    .ed-paragraph {
        margin: 0 auto 1.75rem auto;
    }
}

@media (max-width: 600px) {
    .ed-nav-links {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ed-headline {
        font-size: 2.75rem;
    }

    .ed-btn-know-more {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   VERTIX V14 MODERN DASHBOARD SYSTEM (QUANTUM BLUE & ICE GLASS)
   Fluid, clean, animated UI matching Dashboard V14 showcase video
   ========================================================================== */

.v14-shell {
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 1.25rem 2rem 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Floating Top Pill Header (Vertix V14 Capsule) */
.v14-top-bar {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 0.65rem 1.5rem;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--glass-shadow-sm);
    position: sticky;
    top: 15px;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition);
}

.v14-brand-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.v14-brand-divider {
    width: 1px;
    height: 26px;
    background: var(--border-glass);
    margin: 0 0.35rem;
}

.v14-brand-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: var(--bg-main);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    box-shadow: var(--glass-shadow-sm);
}

.v14-brand-section-tag i {
    font-size: 0.85rem;
}

/* Boîte Logo Universelle Standardisée (Taille et Rendu Identiques Partout) */
.v14-brand-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 3px 8px;
    background: #ffffff !important;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    transition: var(--transition);
}

[data-theme="dark"] .v14-brand-logo-box {
    background: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25);
}

.v14-brand-logo-img {
    height: 28px;
    max-height: 28px;
    max-width: 125px;
    width: auto;
    object-fit: contain;
    display: block;
}

.v14-brand-logo-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--hero-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(0, 89, 255, 0.35);
    flex-shrink: 0;
}

.v14-brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

/* Badge de contexte supérieur (Sans positionnement absolu pour ne jamais masquer les boutons d'action) */
.v14-top-context {
    display: none;
}

.v14-context-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.15rem;
    background: var(--bg-main);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: var(--glass-shadow-sm);
    letter-spacing: -0.1px;
}

.v14-context-badge i {
    color: var(--primary);
    font-size: 0.95rem;
}

/* Center Pill Navigation Bar (pour les vues qui en ont encore besoin, ex: onglets SPA locaux) */
.v14-pill-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-main);
    border: 1px solid var(--border-glass);
    padding: 0.3rem 0.4rem;
    border-radius: var(--radius-full);
}

.v14-pill-tab {
    background: transparent;
    border: none;
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
}

.v14-pill-tab:hover {
    color: var(--primary);
    background: rgba(0, 89, 255, 0.05);
}

.v14-pill-tab.active {
    background: #0b1528;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(11, 21, 40, 0.2);
}

[data-theme="dark"] .v14-pill-tab.active {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 89, 255, 0.4);
}

/* Header Right Actions */
.v14-header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
}

.v14-header-actions .btn {
    border-radius: var(--radius-full);
    padding: 0.42rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.2;
    white-space: nowrap;
}

.v14-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.v14-icon-btn:hover {
    background: var(--ice-glass);
    color: var(--primary-dark);
    border-color: var(--ice-glass-border);
    transform: scale(1.05);
}

.v14-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.28rem 0.85rem 0.28rem 0.35rem;
    background: var(--bg-main);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    cursor: default;
    transition: var(--transition);
    flex-shrink: 0;
}

.v14-user-chip:hover {
    border-color: var(--primary-border);
}

.v14-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.v14-user-chip a {
    color: var(--danger);
    margin-left: 0.35rem;
    font-size: 0.92rem;
    padding: 0.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
}

.v14-user-chip a:hover {
    color: #b91c1c;
    background: rgba(220, 38, 38, 0.1);
    transform: scale(1.1);
}

/* Mobile Navigation Components - Cachés sur Desktop par défaut */
.v14-mobile-nav-toggle {
    display: none !important;
}

.v14-mobile-nav-menu {
    display: none !important;
}

/* Workspace layout: Dock on left, dynamic view on right */
.v14-workspace {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

/* Floating Vertical Sub-Dock */
.v14-dock {
    width: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 22px;
    padding: 0.85rem 0.45rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 520px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: var(--glass-shadow-sm);
    position: sticky;
    top: 90px;
    flex-shrink: 0;
    gap: 0.5rem;
}

.v14-dock::-webkit-scrollbar {
    display: none;
}

.v14-dock-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
}

.v14-dock-divider {
    width: 24px;
    height: 1px;
    background: var(--border-glass);
    margin: 0.2rem 0;
    opacity: 0.8;
}

.v14-dock-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
}

.v14-dock-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
}

.v14-dock-btn.active {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(0, 89, 255, 0.35);
}

.v14-dock-btn.active i {
    color: #ffffff !important;
}

/* Tooltips pour boutons du dock sur grand écran */
@media (min-width: 769px) {
    .v14-dock-btn[data-title]::after {
        content: attr(data-title);
        position: absolute;
        left: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%) scale(0.92);
        background: #0f1c34;
        color: #ffffff;
        font-size: 0.76rem;
        font-weight: 600;
        padding: 0.35rem 0.75rem;
        border-radius: 8px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
        z-index: 9999;
    }

    [data-theme="dark"] .v14-dock-btn[data-title]::after {
        background: #1e3a68;
        color: #f8fafc;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .v14-dock-btn:hover[data-title]::after {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) scale(1);
    }
}

.v14-dock-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
    border: 2px solid var(--bg-card);
}

/* Main Viewport Content Area */
.v14-main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Top Greeting Header */
.v14-greeting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.v14-greeting-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.3px;
    margin-bottom: 0.2rem;
}

.v14-greeting-sub {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Dashboard Top Grid: Hero Quantum Card + 2x2 Stat Cards + Bar Chart */
.v14-grid-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 1200px) {
    .v14-grid-top {
        grid-template-columns: 1fr;
    }
}

/* 1. Hero Quantum Blue & Ice Glass Card */
.v14-hero-card {
    background: var(--hero-gradient);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 35px -5px rgba(0, 89, 255, 0.32);
    min-height: 270px;
}

.v14-hero-card::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(213, 248, 252, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.v14-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(213, 248, 252, 0.2);
    border: 1px solid rgba(213, 248, 252, 0.4);
    color: #d5f8fc;
    border-radius: var(--radius-full);
    padding: 0.3rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    width: fit-content;
}

.v14-hero-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0.85rem 0 0.35rem 0;
    color: #ffffff;
}

.v14-hero-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.v14-hero-progress-box {
    margin: 1.25rem 0;
}

.v14-hero-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #d5f8fc;
}

.v14-hero-progress-track {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.v14-hero-progress-fill {
    height: 100%;
    background: #d5f8fc;
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(213, 248, 252, 0.9);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.v14-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    z-index: 2;
}

.v14-btn-hero-white {
    background: #ffffff;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: var(--radius-full);
    padding: 0.65rem 1.35rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    text-decoration: none;
}

.v14-btn-hero-white:hover {
    background: #d5f8fc;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.v14-btn-hero-glass {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: var(--radius-full);
    padding: 0.65rem 1.15rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.v14-btn-hero-glass:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* 2. Compact 2x2 Metric Cards Grid */
.v14-kpi-quad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.v14-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--glass-shadow-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.v14-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-lg);
    border-color: var(--primary-border);
}

/* Highlighting card with Ice Glass palette */
.v14-stat-card.stat-ice-card {
    background: linear-gradient(135deg, #d5f8fc 0%, #eefcff 100%);
    border: 1px solid #b2ecf3;
}

[data-theme="dark"] .v14-stat-card.stat-ice-card {
    background: linear-gradient(135deg, rgba(213, 248, 252, 0.12) 0%, rgba(0, 89, 255, 0.15) 100%);
    border: 1px solid rgba(213, 248, 252, 0.25);
}

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

.v14-stat-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v14-stat-card.stat-ice-card .v14-stat-title {
    color: #0750d1;
    font-weight: 700;
}

.v14-stat-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.v14-stat-card.stat-ice-card .v14-stat-icon-wrap {
    background: #0059ff;
    color: #ffffff;
}

.v14-stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.v14-stat-card.stat-ice-card .v14-stat-value {
    color: #0750d1;
}

[data-theme="dark"] .v14-stat-card.stat-ice-card .v14-stat-title {
    color: #aeeaf2;
}

[data-theme="dark"] .v14-stat-card.stat-ice-card .v14-stat-value {
    color: #d5f8fc;
}

.v14-stat-trend {
    font-size: 0.76rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--success);
}

/* 3. Modern Dual-Tone Bar Chart Card */
.v14-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--glass-shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.v14-chart-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.v14-chart-legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.v14-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.v14-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.v14-bars-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 130px;
    padding-top: 1rem;
    gap: 0.5rem;
}

.v14-bar-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    height: 100%;
    justify-content: flex-end;
}

.v14-bar-group {
    width: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.v14-bar-fill-quantum {
    width: 100%;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.v14-bar-fill-ice {
    width: 100%;
    background: #d5f8fc;
    border-radius: 0 0 4px 4px;
    transition: height 0.5s ease;
}

[data-theme="dark"] .v14-bar-fill-ice {
    background: #0750d1;
}

.v14-bar-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Dashboard Bottom Grid: Progress Limits + Recent Activities Table */
.v14-grid-bottom {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.25rem;
}

@media (max-width: 992px) {
    .v14-grid-bottom {
        grid-template-columns: 1fr;
    }
}

/* Activities Table */
.v14-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow-sm);
}

.v14-table-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.v14-table-search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-main);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.85rem;
}

.v14-table-search-input {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: var(--text-main);
    outline: none;
    width: 140px;
}

/* Tab View Switcher (SPA Container) */
.v14-tab-pane {
    display: none;
    animation: v14FadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.v14-tab-pane.active {
    display: block;
}

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

/* V14 Courses Grid & Cards */
.v14-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

.v14-course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--glass-shadow-sm);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.v14-course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-lg);
    border-color: var(--primary-border);
}

.v14-course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--hero-gradient);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.v14-course-card:hover::before {
    opacity: 1;
}

/* V14 Quizzes Grid */
.v14-quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.v14-quiz-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--glass-shadow-sm);
    transition: var(--transition);
}

.v14-quiz-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow-md);
    border-color: var(--primary-border);
}

/* V14 Certificate Showcase (Matching Frame 05) */
.v14-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.v14-cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--glass-shadow-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.v14-cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-lg);
}

.v14-cert-badge-glow {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--hero-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 20px rgba(0, 89, 255, 0.35);
    margin-bottom: 1.25rem;
}

.v14-cert-card.locked {
    opacity: 0.75;
    background: var(--bg-main);
    border: 1px dashed var(--border-glass);
}

.v14-cert-card.locked .v14-cert-badge-glow {
    background: #94a3b8;
    box-shadow: none;
}

/* V14 Support 2-Column Interface (Matching Frame 03) */
.v14-support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .v14-support-grid {
        grid-template-columns: 1fr;
    }
}

.v14-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.35rem;
    margin-bottom: 0.85rem;
    transition: var(--transition);
}

.v14-faq-item:hover {
    border-color: var(--primary-border);
}

.v14-faq-q {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.v14-faq-a {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    padding-left: 1.6rem;
}

/* Mobile & Tablet Adaptations for V14 (Moins d'encombrement & Mobile-First) */
@media (max-width: 992px) {
    .v14-workspace {
        flex-direction: column;
        gap: 1rem;
    }

    .v14-grid-top {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .v14-grid-bottom {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .v14-support-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* 1. Suppression totale de l'encombrement : masquer le dock vertical sur mobile */
    .v14-dock {
        display: none !important;
    }

    /* 2. Coque globale ultra-compacte */
    .v14-shell {
        padding: 0.5rem 0.65rem 2rem 0.65rem;
        gap: 0.75rem;
    }

    /* 3. Barre flottante supérieure ultra-compacte */
    .v14-top-bar {
        padding: 0.45rem 0.85rem;
        border-radius: var(--radius-full);
        top: 8px;
        min-height: 48px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .v14-brand-group {
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .v14-brand-logo-box {
        height: 32px;
        padding: 2px 6px;
        border-radius: 8px;
    }

    .v14-brand-logo-img {
        height: 22px;
        max-height: 22px;
        max-width: 95px;
    }

    .v14-brand-name {
        font-size: 0.92rem;
    }

    /* Masquer le sous-titre de marque sur mobile pour éviter tout saut de ligne */
    .v14-brand-group span[style*="text-transform"] {
        display: none !important;
    }

    .v14-top-context {
        display: none !important;
    }

    .v14-header-actions {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        margin-left: auto;
        flex-shrink: 0;
    }

    .v14-header-actions .btn {
        padding: 0.25rem 0.55rem;
        font-size: 0.72rem;
        border-radius: var(--radius-full);
    }

    .v14-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 0.82rem;
    }

    .v14-user-chip {
        padding: 0.2rem 0.45rem 0.2rem 0.2rem;
        gap: 0.35rem;
    }

    .v14-user-avatar {
        width: 26px;
        height: 26px;
        font-size: 0.72rem;
    }

    .v14-user-chip > div {
        display: none !important;
    }

    /* 4. Barre de navigation par pilules tactile et swipeable sous l'en-tête */
    .v14-pill-nav {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.3rem 0.4rem;
        gap: 0.3rem;
        background: var(--bg-card);
        border: 1px solid var(--border-glass);
        border-radius: var(--radius-full);
        box-shadow: var(--glass-shadow-sm);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        display: flex !important;
        align-items: center;
    }

    .v14-pill-nav::-webkit-scrollbar {
        display: none;
    }

    .v14-pill-tab {
        padding: 0.35rem 0.75rem;
        font-size: 0.76rem;
        flex-shrink: 0;
        border-radius: var(--radius-full);
        white-space: nowrap;
    }

    /* 4b. Menu Mobile & Drawer Déroulant */
    .v14-mobile-nav-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--bg-main);
        border: 1px solid var(--border-glass);
        color: var(--text-main);
        font-size: 0.9rem;
        cursor: pointer;
        flex-shrink: 0;
    }

    .v14-mobile-nav-menu {
        display: none;
        width: 100%;
        margin-top: 0.5rem;
        background: var(--bg-card);
        border: 1px solid var(--border-glass);
        border-radius: var(--radius-lg);
        padding: 0.65rem;
        box-shadow: var(--glass-shadow-md);
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
    }

    .v14-mobile-nav-menu.open {
        display: grid !important;
    }

    .v14-mobile-nav-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.65rem;
        border-radius: var(--radius-md);
        background: var(--bg-main);
        color: var(--text-main);
        text-decoration: none;
        font-size: 0.78rem;
        font-weight: 600;
        border: 1px solid var(--border-glass);
    }

    .v14-mobile-nav-item.active {
        background: var(--primary);
        color: #ffffff;
    }

    .v14-mobile-nav-item i {
        font-size: 0.85rem;
    }

    .v14-top-context {
        display: none !important;
    }

    /* 5. Ligne de salutation compacte */
    .v14-greeting-row {
        gap: 0.4rem;
        margin-bottom: 0.75rem !important;
    }

    .v14-greeting-title {
        font-size: 1.2rem;
        margin-bottom: 0.1rem;
    }

    .v14-greeting-sub {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    /* 6. Carte Hero épurée sans encombrement */
    .v14-hero-card {
        padding: 1.15rem 1rem;
        min-height: auto;
        border-radius: var(--radius-lg);
        gap: 0.75rem;
    }

    .v14-hero-title {
        font-size: 1.15rem;
        margin: 0.4rem 0 0.2rem 0;
    }

    .v14-hero-desc {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .v14-hero-progress-box {
        margin: 0.75rem 0;
    }

    .v14-hero-actions {
        gap: 0.4rem;
    }

    .v14-btn-hero-white,
    .v14-btn-hero-glass {
        padding: 0.45rem 0.95rem;
        font-size: 0.78rem;
    }

    /* 7. Grille 2x2 KPI ultra-optimisée pour petits écrans */
    .v14-kpi-quad {
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
    }

    .v14-stat-card {
        padding: 0.85rem 0.7rem;
        border-radius: var(--radius-md);
    }

    .v14-stat-title {
        font-size: 0.68rem;
    }

    .v14-stat-icon-wrap {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    .v14-stat-value {
        font-size: 1.35rem;
        margin-bottom: 0.1rem;
    }

    .v14-stat-trend {
        font-size: 0.65rem;
    }

    /* 8. Graphique bicolore compact */
    .v14-chart-card {
        padding: 0.85rem 0.75rem;
        border-radius: var(--radius-md);
    }

    .v14-bars-row {
        height: 80px;
        padding-top: 0.35rem;
    }

    .v14-bar-group {
        width: 8px;
    }

    .v14-bar-label {
        font-size: 0.62rem;
    }

    /* 9. Tableaux & Listes épurés */
    .v14-table-card {
        padding: 0.85rem 0.75rem;
        border-radius: var(--radius-md);
    }

    .v14-table-top {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .v14-table-search-box {
        width: 100%;
    }

    .v14-table-search-input {
        width: 100%;
    }

    .glass-table th, 
    .glass-table td {
        padding: 0.55rem 0.4rem;
        font-size: 0.78rem;
    }

    /* Classe utilitaire pour masquer les colonnes non critiques sur mobile */
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: flex !important;
    }

    /* 10. Grilles pour Formations, QCM, Certificats sur mobile */
    .v14-course-grid,
    .v14-quiz-grid,
    .v14-cert-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .v14-course-card,
    .v14-quiz-card,
    .v14-cert-card {
        padding: 1.1rem 0.95rem;
        border-radius: var(--radius-md);
    }

    /* 11. Lecteur de cours interactif fluide sur mobile */
    #course-sidebar-wrapper {
        width: 100% !important;
        max-height: 220px !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-glass) !important;
    }

    #course-viewport-container {
        padding: 1rem 0.75rem !important;
        max-height: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }

    .v14-mobile-nav-toggle {
        display: none !important;
    }

    .v14-mobile-nav-menu {
        display: none !important;
    }
}

/* ===============================================================
   SYSTÈME DE CHARGEMENT INTELLIGENT PAR SQUELETTE (SKELETON SYSTEM V14)
   Palette : Quantum Blue (#0059FF), Ice Glass (#D5F8FC) & Midnight Dark
   Animation fluide, zéro décalage de mise en page (Zero Layout Shift)
   =============================================================== */

@keyframes skeletonPulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-shimmer,
.skeleton-line,
.skeleton-pill,
.skeleton-circle,
.skeleton-btn,
.skeleton-box,
.skeleton-progress {
    background: linear-gradient(90deg, #eef4fc 0%, #d5f8fc 45%, #eef4fc 90%);
    background-size: 250% 100%;
    animation: skeletonPulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    border-radius: var(--radius-sm);
    display: inline-block;
}

[data-theme="dark"] .skeleton-shimmer,
[data-theme="dark"] .skeleton-line,
[data-theme="dark"] .skeleton-pill,
[data-theme="dark"] .skeleton-circle,
[data-theme="dark"] .skeleton-btn,
[data-theme="dark"] .skeleton-box,
[data-theme="dark"] .skeleton-progress {
    background: linear-gradient(90deg, #111e38 0%, #1e3a68 45%, #111e38 90%);
    background-size: 250% 100%;
}

/* Éléments atomiques squelettes */
.skeleton-line {
    height: 12px;
    width: 100%;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}
.skeleton-line.title {
    height: 22px;
    border-radius: 8px;
    margin-bottom: 0.85rem;
}
.skeleton-line.sub {
    height: 14px;
    border-radius: 6px;
}
.skeleton-line.w-20 { width: 20%; }
.skeleton-line.w-25 { width: 25%; }
.skeleton-line.w-35 { width: 35%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-85 { width: 85%; }
.skeleton-line.w-100 { width: 100%; }

.skeleton-pill {
    height: 28px;
    border-radius: var(--radius-full);
}
.skeleton-pill.sm { height: 22px; }
.skeleton-pill.w-90 { width: 90px; }
.skeleton-pill.w-110 { width: 110px; }
.skeleton-pill.w-160 { width: 160px; }

.skeleton-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
}
.skeleton-circle.sm {
    width: 30px;
    height: 30px;
}
.skeleton-circle.lg {
    width: 48px;
    height: 48px;
}

.skeleton-btn {
    height: 36px;
    width: 120px;
    border-radius: var(--radius-md);
}

.skeleton-progress {
    height: 8px;
    width: 100%;
    border-radius: 4px;
}

/* Écran Skeleton Global V14 */
.skeleton-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main, #f0f5fb);
    z-index: 99999;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s ease;
    pointer-events: all;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .skeleton-screen-overlay {
    background: #091122;
}

.skeleton-screen-overlay.skeleton-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.skeleton-screen-content {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0.85rem 1.25rem 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
}

.skeleton-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.25rem;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-glass, rgba(0, 89, 255, 0.12));
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

[data-theme="dark"] .skeleton-topbar {
    background: #0f1c34;
    border-color: #1e3a68;
}

.skeleton-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.skeleton-row.gap-sm { gap: 0.5rem; }

.skeleton-workspace {
    display: flex;
    gap: 1.25rem;
    flex: 1;
    min-height: 0;
}

.skeleton-dock {
    width: 58px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-glass, rgba(0, 89, 255, 0.12));
    border-radius: var(--radius-full);
    padding: 1.25rem 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    height: fit-content;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

[data-theme="dark"] .skeleton-dock {
    background: #0f1c34;
    border-color: #1e3a68;
}

.skeleton-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: hidden;
}

.skeleton-greeting {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.skeleton-top-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 1.25rem;
}

.skeleton-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-glass, rgba(0, 89, 255, 0.12));
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .skeleton-card {
    background: #0f1c34;
    border-color: #1e3a68;
}

.skeleton-card.hero {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(0, 89, 255, 0.08) 0%, rgba(213, 248, 252, 0.25) 100%), #ffffff;
}

[data-theme="dark"] .skeleton-card.hero {
    background: linear-gradient(135deg, rgba(0, 89, 255, 0.15) 0%, rgba(13, 24, 46, 0.9) 100%), #0f1c34;
}

.skeleton-kpi-quad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.skeleton-card.kpi {
    min-height: 98px;
    border-radius: var(--radius-lg);
    padding: 1.15rem;
}

.skeleton-bottom-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.25rem;
    flex: 1;
}

.skeleton-card.table-mock {
    min-height: 200px;
}

.skeleton-card.info-mock {
    min-height: 200px;
}

@media (max-width: 992px) {
    .skeleton-top-grid,
    .skeleton-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .skeleton-screen-content {
        padding: 0.5rem 0.65rem 1.5rem 0.65rem;
        gap: 0.75rem;
    }
    .skeleton-dock {
        display: none !important;
    }
    .skeleton-kpi-quad {
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
    }
    .skeleton-card.hero {
        min-height: 160px;
        padding: 1rem;
    }
}

/* ==========================================================================
   ÉDITEUR RICHE WYSIWYG (QUILL) & RENDU PÉDAGOGIQUE MULTIMÉDIA
   Support complet des captures d'écran, images, typographie & tableaux
   ========================================================================== */
.ql-toolbar.ql-snow {
    background: #f8fafc;
    border: 1px solid var(--border-glass) !important;
    border-radius: 8px 8px 0 0 !important;
    font-family: inherit;
    padding: 0.65rem 0.75rem !important;
}

.ql-toolbar.ql-snow .ql-picker-label {
    color: var(--text-main);
}

.ql-toolbar.ql-snow button:hover,
.ql-toolbar.ql-snow button.ql-active,
.ql-toolbar.ql-snow .ql-picker-label:hover,
.ql-toolbar.ql-snow .ql-picker-item.ql-selected {
    color: var(--primary) !important;
}

.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button.ql-active .ql-stroke {
    stroke: var(--primary) !important;
}

.ql-toolbar.ql-snow button:hover .ql-fill,
.ql-toolbar.ql-snow button.ql-active .ql-fill {
    fill: var(--primary) !important;
}

.ql-container.ql-snow {
    border: 1px solid var(--border-glass) !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    font-family: inherit;
    font-size: 0.95rem;
    background: #ffffff;
}

.ql-editor {
    min-height: 240px;
    line-height: 1.65;
    color: var(--text-main);
    padding: 1rem 1.25rem !important;
}

.ql-editor.ql-blank::before {
    color: var(--text-muted);
    font-style: normal;
    left: 1.25rem;
    right: 1.25rem;
}

/* Zone d'affichage du contenu riche chez les apprenants */
.rich-content-display {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.7;
    word-break: break-word;
}

.rich-content-display p {
    margin: 0.75rem 0;
}

.rich-content-display h1,
.rich-content-display h2,
.rich-content-display h3,
.rich-content-display h4 {
    color: var(--text-main);
    font-weight: 700;
    margin: 1.5rem 0 0.6rem 0;
    line-height: 1.3;
}

.rich-content-display h1 { font-size: 1.5rem; border-bottom: 2px solid var(--border-glass); padding-bottom: 0.4rem; }
.rich-content-display h2 { font-size: 1.3rem; color: var(--primary); }
.rich-content-display h3 { font-size: 1.15rem; }
.rich-content-display h4 { font-size: 1.05rem; }

.rich-content-display ul,
.rich-content-display ol {
    margin: 0.75rem 0 0.75rem 1.5rem;
    padding-left: 0.5rem;
}

.rich-content-display li {
    margin-bottom: 0.4rem;
}

.rich-content-display blockquote {
    border-left: 4px solid var(--primary);
    background: rgba(0, 89, 255, 0.04);
    margin: 1rem 0;
    padding: 0.85rem 1.25rem;
    border-radius: 0 8px 8px 0;
    color: var(--text-main);
    font-style: italic;
}

.rich-content-display pre,
.rich-content-display code {
    font-family: 'Consolas', 'Courier New', monospace;
}

.rich-content-display pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.rich-content-display code:not(pre code) {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    font-size: 0.88em;
}

/* Captures d'écran et Images riches */
.rich-content-display img,
.ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin: 1rem auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rich-content-display img:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 89, 255, 0.15);
}

.rich-content-display table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    overflow: hidden;
}

.rich-content-display th,
.rich-content-display td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-glass);
    text-align: left;
}

.rich-content-display th {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 700;
}

.rich-content-display tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

/* Panneau rétractable de fiche de cours chez l'apprenant */
.lesson-rich-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--glass-shadow-sm);
    transition: all 0.3s ease;
}

.lesson-rich-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

/* ==========================================================================
   MODULE DE REDIMENSIONNEMENT D'IMAGES DANS L'ÉDITEUR QUILL
   Poignées interactives, boutons de préréglage et barre d'alignement
   ========================================================================== */
.ql-image-resizer-overlay {
    position: absolute;
    pointer-events: none;
    z-index: 100;
    box-sizing: border-box;
}

.ql-ir-box {
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary);
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8), 0 4px 12px rgba(0, 89, 255, 0.25);
    pointer-events: none;
}

.ql-ir-toolbar {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #0b1528;
    color: #ffffff;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    white-space: nowrap;
    z-index: 105;
}

.ql-ir-toolbar::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #0b1528 transparent transparent transparent;
}

.ql-ir-group {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.ql-ir-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.25rem;
}

.ql-ir-btn {
    background: transparent;
    border: none;
    color: #e2e8f0;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.ql-ir-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

.ql-ir-btn.ql-ir-danger:hover {
    background: var(--danger);
    color: #ffffff;
}

.ql-ir-handle {
    position: absolute;
    width: 13px;
    height: 13px;
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
    z-index: 102;
    transition: transform 0.15s ease, background 0.15s ease;
}

.ql-ir-handle:hover {
    transform: scale(1.35);
    background: var(--primary);
}

.ql-ir-handle-nw { top: -6.5px; left: -6.5px; cursor: nwse-resize; }
.ql-ir-handle-ne { top: -6.5px; right: -6.5px; cursor: nesw-resize; }
.ql-ir-handle-se { bottom: -6.5px; right: -6.5px; cursor: nwse-resize; }
.ql-ir-handle-sw { bottom: -6.5px; left: -6.5px; cursor: nesw-resize; }

.ql-ir-dimension-tip {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 21, 40, 0.85);
    color: #ffffff;
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}





