/* ==========================================================================
   iDSI INSTITUTE — Stylesheet LMS & Certifications (PC & Mobile)
   Thème : Option 1 — Clinique & Institut Clarté (#F8FAFC / #FFFFFF / #0F172A)
   ========================================================================== */

:root {
    --acad-bg: #f8fafc;
    --acad-surface: #ffffff;
    --acad-card: #f1f5f9;
    --acad-border: #e2e8f0;
    --acad-text: #0f172a;
    --acad-muted: #475569;
    --acad-blue: #2563eb;
    --acad-cyan: #0369a1;
    --acad-green: #047857;
    --acad-amber: #d97706;
    --acad-red: #dc2626;
    --acad-gold: #ca8a04;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100005;
    background: #0b1b33;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
    transition: top 0.18s ease;
}

.skip-link:focus {
    top: 12px;
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

body.academie-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.07), transparent 42%),
                radial-gradient(circle at 88% 82%, rgba(5, 150, 105, 0.06), transparent 42%),
                var(--acad-bg);
    color: var(--acad-text);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    overflow-y: auto !important;
}

h1, h2, h3, .course-title, .flagship-title, .slide-title, .exam-lobby-title {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header Navigation */
.acad-navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--acad-border);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    flex-wrap: nowrap;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.acad-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--acad-text);
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
}

.acad-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.acad-brand-badge {
    background: linear-gradient(135deg, #1e40af, #0369a1);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    flex-shrink: 0;
    white-space: nowrap;
}

.acad-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Sélecteur de Devise Interactif Ultra-Compact pour Barre de Navigation */
.currency-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.currency-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #1d4ed8;
    background: #eff6ff;
    padding: 7px 11px;
    min-height: 34px;
    border-radius: 7px;
    border: 1px solid #bfdbfe;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.currency-picker-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.currency-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
    padding: 6px;
    z-index: 1000;
    flex-direction: column;
    gap: 2px;
}

.currency-menu.show {
    display: flex;
}

.currency-menu button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.currency-menu button:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.currency-menu button.active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.acad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 0.80rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--acad-text);
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.35;
}

.acad-modal-card .acad-btn {
    white-space: normal;
    flex-shrink: 1;
}

.acad-btn:not(.acad-btn-primary):not(.acad-btn-success):not(.acad-btn-gold):hover {
    background: #f8fafc;
    border-color: #2563eb;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.acad-btn-primary {
    background: linear-gradient(135deg, #1e40af, #0369a1) !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.acad-btn-primary:hover {
    background: linear-gradient(135deg, #172554, #0c4a6e) !important;
    border-color: #172554 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Responsivité Navbar */
@media (max-width: 1400px) {
    .acad-brand-sub {
        display: none !important;
    }
}

@media (max-width: 1250px) {
    .acad-brand-badge {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    .acad-navbar {
        padding: 8px 12px !important;
        gap: 6px !important;
    }
    .acad-nav-actions {
        gap: 5px !important;
    }
    .acad-btn {
        padding: 5px 8px !important;
        font-size: 0.76rem !important;
        gap: 3px !important;
    }
}

@media (max-width: 850px) {
    .acad-navbar {
        flex-wrap: wrap !important;
        white-space: normal !important;
        gap: 8px !important;
        padding: 8px 12px !important;
    }
    .acad-brand {
        width: 100%;
    }
    .acad-nav-actions {
        width: 100%;
        flex-wrap: wrap !important;
        white-space: normal !important;
        justify-content: flex-start;
        gap: 6px !important;
    }
    .currency-menu {
        left: 0;
        right: auto;
    }
}

.acad-btn-success {
    background: linear-gradient(135deg, #047857, #065f46) !important;
    border-color: #065f46 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.acad-btn-success:hover {
    background: linear-gradient(135deg, #065f46, #064e3b) !important;
    border-color: #064e3b !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.acad-btn-gold {
    background: linear-gradient(135deg, #f59e0b, #eab308) !important;
    border-color: #d97706 !important;
    color: #0f172a !important;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Container */
.acad-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 20px 64px;
}

/* Learner Profile Bar */
.learner-profile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid #bfdbfe;
    margin-bottom: 28px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.learner-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.learner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1d4ed8, #0369a1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.learner-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.learner-stat-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    color: #334155;
    font-weight: 600;
}

.learner-stat-pill strong {
    color: #2563eb;
    font-size: 0.98rem;
    margin-right: 4px;
}

/* Course Catalog Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 22px;
}

.course-card {
    background: var(--acad-surface);
    border: 1px solid var(--acad-border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.course-card:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.course-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.course-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}

.course-status-badge {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-certified {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #6ee7b7;
}

.status-inprogress {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.status-new {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.course-norm-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.course-title {
    font-size: 1.12rem;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.32;
    color: #0f172a;
}

.courses-grid .course-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.64em;
}

.course-summary {
    font-size: 0.87rem;
    color: var(--acad-muted);
    line-height: 1.55;
    margin: 0 0 14px;
}

.courses-grid .course-summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.05em;
}

.course-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 14px;
}

.course-progress-wrap {
    margin-bottom: 16px;
}

.course-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--acad-muted);
    font-weight: 600;
    margin-bottom: 5px;
}

.course-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.course-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #10b981);
    border-radius: 999px;
    transition: width 0.35s ease;
}

/* Course Reader Layout (Split View) */
.reader-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

.reader-sidebar {
    position: sticky;
    top: 82px;
    background: var(--acad-surface);
    border: 1px solid var(--acad-border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    min-width: 0;
    max-width: 100%;
}

.sidebar-step-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.reader-step-btn {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e293b;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.reader-step-btn:hover:not(:disabled) {
    background: #dbeafe;
    border-color: #60a5fa;
}

.reader-step-btn.active {
    background: linear-gradient(135deg, #1d4ed8, #0369a1);
    border-color: #1d4ed8;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

.reader-step-btn.active .step-num,
.reader-step-btn.active .step-name {
    color: #ffffff !important;
}

.reader-step-btn .step-status-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.reader-step-btn .step-text {
    flex: 1;
    min-width: 0;
}

.reader-step-btn .step-num {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.reader-step-btn .step-name {
    font-size: 0.83rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1px;
}

.sidebar-step-btn {
    width: 100%;
    text-align: left;
    padding: 11px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.2s ease;
}

.sidebar-step-btn:hover:not(:disabled) {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.sidebar-step-btn.completed {
    background: #f0fdf4;
    border-color: #86efac;
    color: #065f46;
}

.sidebar-step-btn.active {
    background: linear-gradient(135deg, #1d4ed8, #0369a1);
    border-color: #1d4ed8;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.sidebar-step-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Reader Content Area */
.reader-content-card {
    background: var(--acad-surface);
    border: 1px solid var(--acad-border);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    min-width: 0;
    max-width: 100%;
}

.lesson-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--acad-border);
}

.lesson-section h3 {
    font-size: 1.18rem;
    font-weight: 800;
    color: #1d4ed8;
    margin: 0 0 12px;
}

.lesson-section p {
    font-size: 0.96rem;
    line-height: 1.7;
    color: #1e293b;
    white-space: pre-line;
    margin: 0 0 14px;
    max-width: 68ch;
}

.lesson-keypoints {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 68ch;
}

.lesson-keypoints li {
    padding: 11px 16px;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-size: 0.91rem;
    line-height: 1.55;
    color: #0f172a;
    font-weight: 500;
}

/* Alert Boxes */
.lesson-alert {
    padding: 16px 18px;
    border-radius: 14px;
    margin: 16px 0;
}

.lesson-alert-title {
    font-weight: 800;
    font-size: 0.92rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-alert-important {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e3a8a;
}

.lesson-alert-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #78350f;
}

.lesson-alert-caution {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #7f1d1d;
}

/* Pedagogical Tables */
.lesson-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.lesson-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
}

.lesson-table th {
    background: #f1f5f9;
    color: #0f172a;
    text-align: left;
    padding: 12px 14px;
    font-weight: 800;
    border-bottom: 2px solid #cbd5e1;
}

.lesson-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    line-height: 1.5;
    background: #ffffff;
}

.lesson-table tr:nth-child(even) td {
    background: #f8fafc;
}

/* Interactive Quiz & Exam Cards */
.quiz-box {
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.quiz-question-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.quiz-question-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.45;
}

.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-opt-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    font-size: 0.89rem;
    line-height: 1.45;
    color: #1e293b;
    transition: all 0.15s ease;
}

.quiz-opt-label:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.quiz-opt-label.correct-opt {
    background: #ecfdf5;
    border-color: #059669;
    color: #065f46;
    font-weight: 600;
}

.quiz-opt-label.wrong-opt {
    background: #fef2f2;
    border-color: #dc2626;
    color: #991b1b;
    font-weight: 600;
}

.quiz-explanation {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    color: #064e3b;
}

/* ==========================================================================
   OFFICIAL CERTIFICATE PREVIEW CARD (OPTION A : ÉLITE BLANC & OR ROYAL)
   ========================================================================== */
.font-cinzel { font-family: 'Cinzel', serif, Georgia; }
.font-playfair { font-family: 'Playfair Display', Georgia, serif; }
.font-signature { font-family: 'Alex Brush', cursive, 'Brush Script MT', cursive; }

/* ==========================================================================
   MODÈLE 3 : NÉO-INSTITUT & RUBAN D'HONNEUR GÉOMÉTRIQUE (MODÈLE ACTIF)
   ========================================================================== */
.certificate-preview-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 38px 44px 28px;
    max-width: 900px;
    margin: 24px auto;
    text-align: center;
    position: relative;
    color: #0f172a;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.12), 0 10px 25px -5px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    outline: none;
}

/* Ruban d'Honneur Supérieur Géométrique (Marine, Cyan, Or) */
.modern-top-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #0b2545 0%, #0369a1 40%, #ca8a04 100%);
}

/* En-tête institutionnelle Néo-Institut */
.modern-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.cert-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 20px;
    text-align: left;
}
.cert-header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cert-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.15);
    border: 1px solid #e2e8f0;
    padding: 3px;
}
.cert-header-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.cert-header-title {
    font-family: 'Cinzel', serif, Georgia;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #0f172a;
    text-transform: uppercase;
}
.cert-header-sub {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.cert-iso-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Titre principal du document */
.cert-doc-subtitle {
    font-family: 'Cinzel', serif, Georgia;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #ca8a04;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.cert-attestation-text {
    font-size: 0.82rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 6px;
}

.cert-recipient-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.45rem;
    font-weight: 900;
    color: #091a33;
    margin: 8px 0 3px;
    letter-spacing: 0.02em;
    text-transform: uppercase !important;
}

.cert-recipient-org {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.cert-completion-intro {
    font-size: 0.86rem;
    color: #475569;
    max-width: 720px;
    margin: 6px auto 14px;
    line-height: 1.5;
}

/* Cartouche Formation Néo-Institut */
.cert-course-banner,
.cert-course-banner-neo {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 1.5px solid #86efac;
    border-radius: 10px;
    padding: 12px 20px;
    max-width: 760px;
    margin: 0 auto 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.cert-course-name {
    font-family: 'Cinzel', serif, Georgia;
    font-size: 1.28rem;
    font-weight: 900;
    color: #14532d;
    margin: 0;
    letter-spacing: 0.02em;
}
.cert-course-norm {
    font-size: 0.8rem;
    color: #15803d;
    margin-top: 3px;
    font-weight: 600;
}

/* Grille 4 Métriques */
.cert-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0 auto 18px;
    max-width: 760px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.cert-meta-item {
    text-align: center;
}
.cert-meta-label {
    font-size: 0.75rem;
    color: #475569;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}
.cert-meta-val {
    font-size: 1.05rem;
    font-weight: 900;
    color: #0f172a;
    margin-top: 2px;
}
.cert-meta-val.val-score {
    color: #047857;
}
.cert-meta-val.val-valid {
    color: #b45309;
}

/* Pied de carte */
.cert-footer-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1.5px solid #e2e8f0;
    text-align: left;
}

/* Signatures officielles réalistes avec images plume et tampon */
.cert-signatures-row {
    display: flex;
    align-items: flex-end;
    gap: 28px;
}
.cert-sig-box {
    text-align: center;
    position: relative;
    width: 220px;
}
.cert-sig-img {
    width: 190px;
    height: 58px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.15));
}
.cert-stamp-overlay {
    position: absolute;
    top: -14px;
    right: 4px;
    width: 72px;
    height: 72px;
    object-fit: contain;
    opacity: 0.82;
    transform: rotate(-10deg);
    pointer-events: none;
    mix-blend-mode: multiply;
}
.cert-sig-line {
    width: 100%;
    height: 1.5px;
    background: #94a3b8;
    margin: 3px auto 5px;
}
.cert-sig-role {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.35;
}

/* Badge de sceau générique compatible */
.cert-seal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(234, 179, 8, 0.18);
    border: 1px solid rgba(234, 179, 8, 0.55);
    color: #ca8a04;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* Modal */
.acad-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.acad-modal-backdrop.hidden {
    display: none !important;
}

.acad-modal-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 26px;
    color: #0f172a;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22);
}

.acad-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 0.92rem;
    margin-top: 6px;
    margin-bottom: 14px;
}

.acad-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* Responsive Mobile & Tablet */
.reader-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mobile-sidebar-toggle {
    display: none;
    padding: 6px 11px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.reader-mobile-bottom-bar {
    display: none;
}

.lesson-objectives-details {
    margin: 0 0 14px 0;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 10px 14px;
}

.lesson-objectives-details summary {
    cursor: pointer;
    font-weight: 800;
    font-size: 0.84rem;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    list-style: none;
}

.lesson-objectives-details summary::-webkit-details-marker {
    display: none;
}

.learner-notes-card {
    margin: 18px 0;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
}

.learner-notes-textarea {
    width: 100%;
    min-height: 76px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.86rem;
    line-height: 1.5;
    resize: vertical;
}

.exam-palette-bar {
    position: sticky;
    top: 72px;
    z-index: 40;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.exam-palette-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.exam-q-pill {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.16s ease;
}

.exam-q-pill.answered {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #047857;
}

.exam-q-pill.flagged {
    background: #fffbeb;
    border-color: #fbbf24;
    color: #b45309;
}

.exam-flag-btn {
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.exam-flag-btn.flagged {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #b45309;
}

@media (max-width: 960px) {
    .reader-layout {
        grid-template-columns: 1fr;
    }
    .reader-sidebar {
        position: static;
        padding: 14px;
    }
    .mobile-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .sidebar-steps-wrap {
        display: none;
        margin-top: 10px;
    }
    .reader-sidebar.mobile-open .sidebar-steps-wrap {
        display: block;
    }
    .reader-mobile-bottom-bar {
        position: sticky;
        bottom: 10px;
        z-index: 60;
        margin-top: 14px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        border: 1px solid #cbd5e1;
        border-radius: 14px;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
    }
}

@media (max-width: 640px) {
    .acad-navbar {
        padding: 12px 14px;
    }
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .reader-content-card {
        padding: 18px 14px;
    }
    .certificate-preview-card {
        padding: 24px 14px 18px;
    }
    .cert-recipient-name {
        font-size: 1.55rem;
    }
    .cert-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .cert-footer-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 18px;
    }
    .cert-signatures-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .cert-header-bar {
        justify-content: center;
        text-align: center;
    }
}

/* ==========================================================================
   PHOTOS IA, ILLUSTRATIONS TECHNIQUES SVG & GRAPHIQUES INTERACTIFS
   ========================================================================== */
.course-card-banner {
    width: calc(100% + 48px);
    margin: -24px -24px 16px -24px;
    height: 168px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.course-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.course-card:hover .course-card-banner img {
    transform: scale(1.06);
}

.course-card-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.65) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 12px 18px;
}

.reader-hero-banner {
    position: relative;
    width: 100%;
    height: 104px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.reader-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reader-hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 14px;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.88));
    font-size: 0.78rem;
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.visual-widget-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 18px 20px;
    margin: 20px 0 26px;
    color: #f8fafc;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.visual-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 0.9rem;
    font-weight: 800;
    color: #38bdf8;
}

.visual-tag {
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 999px;
}

/* ===================== SÉLECTEUR DE LANGUE BILINGUE (FR / EN) ===================== */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 2px;
    gap: 2px;
}
.lang-btn {
    border: none;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
    padding: 7px 11px;
    min-height: 34px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.lang-btn:hover {
    color: #0f172a;
}
.lang-btn.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.currency-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 999px;
    padding: 2px;
    gap: 2px;
}
.curr-btn {
    border: none;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
    padding: 3px 8px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.curr-btn:hover {
    color: #0f172a;
}
.curr-btn.active {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.35);
}

.status-free {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
    border: 1px solid #10b981;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: pulse-free-badge 2.4s infinite;
}

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

/* ==========================================================================
   COMPOSANTS PÉDAGOGIQUES ENRICHIS (VISUELS & CHECKLISTS INTERACTIVES)
   ========================================================================== */

/* 1. Comparateur Visuel Bonnes vs Mauvaises Pratiques (Do's & Don'ts) */
.dos-donts-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 18px 0;
}
.card-do, .card-dont {
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.card-do {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
}
.card-dont {
    background: #fff1f2;
    border: 1.5px solid #fecdd3;
}
.card-do-header {
    font-weight: 800;
    font-size: 0.92rem;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-dont-header {
    font-weight: 800;
    font-size: 0.92rem;
    color: #9f1239;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dos-donts-list {
    margin: 0;
    padding-left: 20px;
    font-size: 0.88rem;
    line-height: 1.55;
}
.card-do .dos-donts-list {
    color: #14532d;
}
.card-dont .dos-donts-list {
    color: #881337;
}

/* 2. Checklist d'Inspection Pré-Opérationnelle Interactive */
.interactive-checklist-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 20px 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}
.checklist-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.checklist-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.checklist-progress-pill {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    transition: all 0.3s ease;
}
.checklist-progress-pill.completed {
    background: #22c55e;
    color: #ffffff;
}
.checklist-items-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.checklist-item-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.checklist-item-row:hover {
    border-color: #94a3b8;
    background: #fafafa;
}
.checklist-item-row.checked {
    background: #f0fdf4;
    border-color: #86efac;
}
.checklist-item-row input[type="checkbox"] {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: #16a34a;
    cursor: pointer;
}
.checklist-item-label {
    font-size: 0.88rem;
    color: #1e293b;
    line-height: 1.45;
    flex: 1;
}
.checklist-item-row.checked .checklist-item-label {
    color: #166534;
    font-weight: 600;
}

/* 3. Fiches d'Action Réflexe d'Urgence (Action Cards) */
.action-reflex-card {
    background: #ffffff;
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 20px;
    margin: 22px 0;
    box-shadow: 0 8px 24px -4px rgba(59, 130, 246, 0.12);
}
.action-reflex-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #e0f2fe;
    margin-bottom: 14px;
}
.action-reflex-title {
    font-weight: 900;
    font-size: 1.05rem;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 10px;
}
.action-reflex-badge {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 4px 10px;
    border-radius: 999px;
}
.action-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.action-step-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.action-step-num {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    font-size: 0.78rem;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}
.action-step-text {
    font-size: 0.86rem;
    color: #1e293b;
    line-height: 1.45;
}

/* 4. Boîtes de REX & Analyse d'Incident Réel */
.rex-box {
    background: #fafaf9;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 18px 0;
}
.rex-header {
    font-weight: 800;
    font-size: 0.92rem;
    color: #9a3412;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.rex-desc {
    font-size: 0.88rem;
    color: #44403c;
    line-height: 1.55;
    margin-bottom: 10px;
}
.rex-solution {
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.84rem;
    color: #7c2d12;
}

/* ===================== MODULE DE SATISFACTION (ISO 21001) ===================== */
.star-rating {
    display: flex;
    gap: 6px;
}
.star-btn {
    background: transparent;
    border: none;
    font-size: 1.45rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: transform 0.1s, color 0.15s;
    padding: 0 2px;
}
.star-btn:hover,
.star-btn.active {
    color: #f59e0b;
    transform: scale(1.15);
}
.nps-btn {
    flex: 1;
    min-width: 32px;
    height: 34px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.15s;
}
.nps-btn:hover {
    border-color: #2563eb;
    background: #eff6ff;
}
.nps-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   MASTERCLASS ENRICHMENTS: STATS CARDS, DIAGRAMS & SECOURSIM 3D BRIDGES
   ========================================================================== */
.lesson-stats-card {
    margin: 18px 0;
    padding: 18px 20px;
    background: linear-gradient(135deg, #0b1329 0%, #111d3d 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #f8fafc;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.stats-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.92rem;
    font-weight: 700;
}

.stats-card-source {
    font-size: 0.75rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    gap: 12px;
}

.stats-grid-1 { grid-template-columns: 1fr; }
.stats-grid-2 { grid-template-columns: repeat(2, 1fr); }
.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
    .stats-grid-2,
    .stats-grid-3 {
        grid-template-columns: 1fr;
    }
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.stat-number {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.1;
    font-family: 'JetBrains Mono', 'Plus Jakarta Sans', sans-serif;
    color: #38bdf8;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.stat-accent-danger .stat-number { color: #f87171; }
.stat-accent-warning .stat-number { color: #fbbf24; }
.stat-accent-success .stat-number { color: #34d399; }
.stat-accent-blue .stat-number { color: #60a5fa; }
.stat-accent-coral .stat-number { color: #fb923c; }

.stat-label {
    font-size: 0.84rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.35;
    margin-bottom: 4px;
}

.stat-detail {
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* SecourSim 3D Simulation Bridge Card */
.lesson-secoursim-bridge {
    margin: 18px 0;
    padding: 14px 18px;
    background: linear-gradient(135deg, #091a33 0%, #0d284f 100%);
    border: 1px solid #2563eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.secoursim-bridge-icon {
    font-size: 2rem;
    line-height: 1;
}

.secoursim-bridge-info {
    flex: 1;
    min-width: 240px;
}

.secoursim-bridge-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.secoursim-bridge-desc {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.secoursim-bridge-btn {
    white-space: nowrap;
    font-size: 0.84rem;
    padding: 9px 18px;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.secoursim-bridge-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Masterclass Infographic Box */
.lesson-infographic-box {
    margin: 18px 0;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.infographic-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.infographic-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    text-transform: uppercase;
}


/* Anti-download rules for course videos */
video { user-select: none; -webkit-user-select: none; }
video::-internal-media-controls-download-button { display: none !important; }
.module-video-capsule-card video { width: 100%; max-height: 520px; }

/* ==========================================================================
   PROTOCOLE SÉCURISÉ & ANTI-TRICHE EXAMEN FINAL CERTIFIANT SST
   ========================================================================== */

.sidebar-step-btn.locked-by-exam {
    opacity: 0.75 !important;
    cursor: not-allowed !important;
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    box-shadow: none !important;
    position: relative;
}

.sidebar-step-btn.locked-by-exam:hover {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
}

.exam-integrity-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: #f8fafc;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.exam-integrity-banner::before { display: none; }

.exam-timer-card {
    position: sticky;
    top: 66px;
    z-index: 45;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

.exam-timer-digits {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exam-timer-digits.warning {
    color: #f59e0b;
}

.exam-timer-digits.danger {
    color: #ef4444;
    animation: examPulse 1s infinite alternate;
}

@keyframes examPulse {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0.6; transform: scale(1.03); }
}

.exam-timer-progress-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.exam-timer-progress-fill {
    height: 100%;
    background: #10b981;
    border-radius: 999px;
    transition: width 1s linear, background-color 0.5s ease;
}

.exam-toast-warning {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    max-width: 440px;
    background: #7f1d1d;
    color: #ffffff;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    border: 2px solid #ef4444;
    font-size: 0.9rem;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.exam-no-copy {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.exam-watermark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.exam-watermark-text {
    color: rgba(15, 23, 42, 0.038);
    font-size: 2.2rem;
    font-weight: 900;
    transform: rotate(-25deg);
    white-space: pre-wrap;
    text-align: center;
    line-height: 2.8;
    user-select: none;
    letter-spacing: 2px;
}

/* ==========================================================================
   CATALOGUE 25 CURSUS — Barre de Filtres par Pôle & Recherche Rapide (WCAG AA)
   ========================================================================== */
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.catalog-cat-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.catalog-cat-pill:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

.catalog-cat-pill:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.catalog-cat-pill.active {
    background: #1d4ed8;
    border-color: #1e40af;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.catalog-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 800;
    background: #e2e8f0;
    color: #0f172a;
}

.catalog-cat-pill.active .catalog-cat-count {
    background: rgba(15, 23, 42, 0.42);
    color: #ffffff;
}

.catalog-search-wrap {
    flex: 1 1 260px;
    max-width: 360px;
    min-width: 220px;
}

.catalog-search-input {
    width: 100%;
    padding: 9px 13px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.catalog-search-input::placeholder {
    color: #64748b;
}

.catalog-search-input:focus {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
    border-color: #2563eb;
    background: #ffffff;
}

/* Section Phare : Parcours Complets ISO Niveaux 1 à 4 */
.flagship-section {
    margin-bottom: 20px;
}

.flagship-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.flagship-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.flagship-sub {
    margin: 0;
    font-size: 0.83rem;
    color: #475569;
}

.flagship-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.flagship-card {
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.flagship-card:hover {
    transform: translateY(-2px);
    border-color: #2563eb;
}

.flagship-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.flagship-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.flagship-levels-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding-top: 4px;
}

.flagship-level-step {
    padding: 6px 4px 2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.35;
}

.flagship-level-step strong {
    display: block;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 2px;
}

/* Parcours par Profil / Besoin */
.catalog-tracks-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.catalog-tracks-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #334155;
    white-space: nowrap;
}

.catalog-tracks-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.catalog-track-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.catalog-track-pill:hover {
    background: #ecfdf5;
    border-color: #059669;
    color: #047857;
}

.catalog-track-pill.active {
    background: #047857;
    border-color: #065f46;
    color: #ffffff;
}

.catalog-track-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
}

.catalog-track-pill.active .catalog-track-count {
    background: rgba(15, 23, 42, 0.38);
    color: #ffffff;
}

.catalog-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.catalog-secondary-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-select {
    padding: 8px 11px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.catalog-view-toggle {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.catalog-view-btn {
    border: none;
    background: transparent;
    color: #334155;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.catalog-view-btn.active {
    background: #0f172a;
    color: #ffffff;
}

.catalog-results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.84rem;
    color: #475569;
    font-weight: 600;
}

.course-deliverables-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.76rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 14px;
}

.course-pole-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 2px 8px;
    border-radius: 999px;
}

/* Vue Tableau Comparatif */
.catalog-table-wrap {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    overflow-x: auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.catalog-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
    font-size: 0.84rem;
}

.catalog-compare-table th {
    text-align: left;
    padding: 12px 14px;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #cbd5e1;
}

.catalog-compare-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    color: #334155;
}

.catalog-compare-table tr:last-child td {
    border-bottom: none;
}

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

@media (max-width: 900px) {
    .flagship-grid {
        grid-template-columns: 1fr;
    }
    .flagship-levels-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================================
   LECTEUR DE DIAPORAMA INTERACTIF (SLIDES INTERACTIFS) POUR MODULES LMS
   ========================================================================== */

.module-view-mode-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0 12px 0;
    padding: 8px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.view-mode-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 10px;
}

.view-mode-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: none;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: #475569;
    transition: all 0.2s ease;
}

.view-mode-tab:hover {
    color: #0f172a;
}

.view-mode-tab.active {
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.slide-count-badge {
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 800;
}

.slide-nav-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #64748b;
}

.slide-kbd-pill {
    display: inline-block;
    padding: 2px 7px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.76rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ==========================================================================
   SLIDE DECK INTERACTIF & DYNAMIQUE (PC & MOBILE, SANS VOIX OFF)
   ========================================================================== */
.slide-deck-container {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    min-height: 440px;
    margin-bottom: 24px;
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.slide-deck-container:fullscreen {
    border-radius: 0;
    height: 100vh;
    overflow-y: auto;
    background: #f6f8fc;
}

.slide-deck-header {
    background: #0b1b33;
    color: #ffffff;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.slide-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.slide-badge {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(125, 211, 252, 0.45);
    color: #7dd3fc;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.slide-norm-tag {
    font-size: 0.78rem;
    color: #cbd5e1;
    font-weight: 600;
}

.slide-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.slide-btn-roadmap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.slide-btn-roadmap:hover,
.slide-btn-roadmap.is-open {
    background: #1d4ed8;
    border-color: #60a5fa;
}

.slide-counter {
    font-size: 0.82rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 8px;
}

.slide-btn-fullscreen {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.95rem;
    padding: 4px 9px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.slide-btn-fullscreen:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Barre de progression continue */
.slide-progress-track {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    overflow: hidden;
}

.slide-progress-fill {
    height: 100%;
    background: #1d4ed8;
    transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;
}

.slide-progress-fill.is-complete {
    background: #047857;
}

/* Plan interactif dépliable (Sommaire) */
.slide-roadmap-drawer {
    background: #f8fafc;
    border-bottom: 1px solid #cbd5e1;
    padding: 14px 18px;
}

.slide-roadmap-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0b1b33;
    margin-bottom: 10px;
}

.slide-roadmap-close {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    color: #334155;
    font-weight: 800;
}

.slide-roadmap-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 8px;
}

.slide-roadmap-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.slide-roadmap-item:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.slide-roadmap-item.active {
    background: #eff6ff;
    border-color: #1d4ed8;
    color: #1d4ed8;
    font-weight: 800;
}

.slide-roadmap-item.visited:not(.active) {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #065f46;
}

.slide-roadmap-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #0b1b33;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slide-roadmap-item.active .slide-roadmap-num {
    background: #1d4ed8;
    color: #ffffff;
}

.slide-roadmap-item.visited:not(.active) .slide-roadmap-num {
    background: #047857;
    color: #ffffff;
}

.slide-roadmap-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-roadmap-state {
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* Viewport des slides avec animations directionnelles */
.slide-viewport {
    flex: 1;
    position: relative;
    padding: 24px 26px;
    background: #ffffff;
}

.slide-card {
    display: none;
}

.slide-card.active {
    display: block;
    animation: slideEnterNext 0.26s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.slide-card.active.dir-prev {
    animation: slideEnterPrev 0.26s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

@keyframes slideEnterPrev {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-card-top-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #e2e8f0;
}

.slide-number-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-weight: 900;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.slide-title {
    font-size: clamp(1.08rem, 2vw, 1.32rem);
    font-weight: 800;
    color: #0b1b33;
    margin: 0;
    line-height: 1.3;
}

.slide-body-content {
    font-size: 0.96rem;
    line-height: 1.65;
    color: #334155;
}

/* Slide 1 : Intro & Objectifs */
.slide-intro-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slide-lead-desc {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.65;
    max-width: 68ch;
}

.slide-bloom-box {
    background: #f6f8fc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 16px 18px;
}

.slide-bloom-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: #0b1b33;
    margin-bottom: 12px;
}

.slide-obj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 10px;
}

.slide-obj-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.slide-obj-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 800;
    color: #1d4ed8;
    background: #eff6ff;
    padding: 2px 7px;
    border-radius: 6px;
    flex-shrink: 0;
}

.slide-obj-text {
    font-size: 0.86rem;
    color: #1e293b;
    line-height: 1.48;
    font-weight: 600;
}

.slide-intro-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.slide-meta-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.slide-meta-pill {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    padding: 5px 11px;
    border-radius: 999px;
}

.slide-start-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 10px;
    border: 0;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.16s ease;
}

.slide-start-cta:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

/* Blocs de contenu & Détails dépliables */
.slide-content-flow {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slide-body-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.92rem;
    color: #1e293b;
    line-height: 1.6;
}

.slide-more-details {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.slide-more-details summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
}

.slide-more-details summary::-webkit-details-marker {
    display: none;
}

.slide-more-details[open] .slide-more-chevron {
    transform: rotate(180deg);
}

.slide-body-points {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Points clés interactifs (cliquables pour cocher "Validé ✓") */
.slide-kp-section {
    background: #f6f8fc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
}

.slide-kp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0b1b33;
    margin-bottom: 10px;
}

.slide-kp-counter {
    font-size: 0.76rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.slide-kp-counter.is-complete {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.slide-keypoint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 10px;
}

.slide-kp-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 13px;
    cursor: pointer;
    color: #1e293b;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.48;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.slide-kp-card:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.slide-kp-card.is-mastered {
    background: #f0fdf4;
    border-color: #10b981;
    color: #065f46;
}

.slide-kp-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: background 0.16s ease, color 0.16s ease;
}

.slide-kp-card.is-mastered .slide-kp-check {
    background: #047857;
    color: #ffffff;
}

.slide-kp-card.is-mastered .slide-kp-check::after {
    content: "✓";
}

.slide-kp-card.is-mastered .slide-kp-check {
    font-size: 0;
}

.slide-kp-card.is-mastered .slide-kp-check::after {
    font-size: 0.82rem;
}

.slide-alert-callout {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 14px 16px;
}

.slide-alert-callout.alert-caution {
    background: #fef2f2;
    border-color: #fecaca;
}

.slide-alert-title {
    font-weight: 800;
    color: #991b1b;
    margin-bottom: 4px;
    font-size: 0.88rem;
}

.slide-alert-body {
    font-size: 0.88rem;
    color: #7f1d1d;
    line-height: 1.55;
}

.slide-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 12px;
}

.slide-stat-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.slide-stat-num {
    font-size: 1.5rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: #1d4ed8;
}

.slide-stat-badge.accent-danger .slide-stat-num { color: #b91c1c; }
.slide-stat-badge.accent-warning .slide-stat-num { color: #b45309; }
.slide-stat-badge.accent-success .slide-stat-num { color: #047857; }

.slide-stat-lbl {
    font-size: 0.78rem;
    font-weight: 800;
    color: #334155;
    margin-top: 4px;
    text-transform: uppercase;
}

.slide-stat-sub {
    font-size: 0.76rem;
    color: #475569;
    margin-top: 4px;
    line-height: 1.4;
}

/* Étude de cas interactive (Révélation de l'analyse) */
.slide-case-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slide-case-scenario {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 16px 18px;
}

.slide-case-tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.slide-case-p {
    margin: 0;
    font-size: 0.94rem;
    color: #0b1b33;
    line-height: 1.62;
    max-width: 68ch;
}

.slide-case-reveal-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid #1d4ed8;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.slide-case-reveal-btn:hover {
    background: #dbeafe;
}

.slide-case-reveal-btn.is-open {
    background: #0b1b33;
    border-color: #0b1b33;
    color: #ffffff;
}

.slide-case-reveal-btn.is-open .reveal-chevron {
    transform: rotate(180deg);
}

.slide-case-solution {
    background: #ecfdf5;
    border: 1.5px solid #6ee7b7;
    border-radius: 14px;
    padding: 16px 18px;
    animation: slideEnterNext 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.slide-solution-tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: #047857;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.slide-case-sol-p {
    margin: 0;
    font-size: 0.93rem;
    color: #064e3b;
    line-height: 1.62;
    max-width: 68ch;
}

/* Onglets de filtrage Do / Don't */
.slide-filter-bar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.slide-filter-tab {
    border: 0;
    background: transparent;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 36px;
    transition: background 0.15s ease, color 0.15s ease;
}

.slide-filter-tab.active {
    background: #0b1b33;
    color: #ffffff;
}

.slide-dos-donts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.slide-dos-col {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 14px 16px;
}

.slide-dos-header {
    font-size: 0.82rem;
    font-weight: 900;
    color: #047857;
    margin-bottom: 10px;
}

.slide-donts-col {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 14px 16px;
}

.slide-donts-header {
    font-size: 0.82rem;
    font-weight: 900;
    color: #b91c1c;
    margin-bottom: 10px;
}

.slide-dos-col ul, .slide-donts-col ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #1e293b;
}

.slide-dos-col li, .slide-donts-col li {
    margin-bottom: 6px;
}

/* Synthèse Slide finale */
.slide-summary-card {
    text-align: center;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.slide-summary-icon {
    font-size: 2.6rem;
    line-height: 1;
}

.slide-summary-lead {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0b1b33;
}

.slide-visited-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 800;
}

.slide-takeaway-box {
    background: #fffbeb;
    border: 1.5px solid #f59e0b;
    border-radius: 14px;
    padding: 16px 20px;
    max-width: 620px;
    width: 100%;
    text-align: left;
}

.slide-takeaway-lbl {
    font-size: 0.78rem;
    font-weight: 900;
    color: #92400e;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.slide-takeaway-text {
    font-size: 0.96rem;
    font-weight: 700;
    color: #78350f;
    line-height: 1.55;
}

.slide-quiz-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 12px;
    border: 0;
    background: #047857;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.16s ease;
}

.slide-quiz-cta:hover {
    background: #065f46;
    transform: translateY(-1px);
}

/* Table dans slide */
.slide-technical-wrap {
    overflow-x: auto;
}

.slide-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 10px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
}

.slide-mobile-scroll-hint {
    display: none;
    font-size: 0.75rem;
    color: #475569;
    margin-top: 6px;
    text-align: center;
}

.slide-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    text-align: left;
    background: #ffffff;
}

.slide-data-table th {
    background: #f1f5f9;
    color: #0b1b33;
    padding: 10px 14px;
    font-weight: 800;
    border-bottom: 1.5px solid #cbd5e1;
}

.slide-data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: top;
}

.slide-data-table tr:last-child td {
    border-bottom: none;
}

/* Footer du Slide Deck (PC & Mobile adaptatif) */
.slide-deck-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.slide-footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.slide-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0b1b33;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.slide-nav-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.slide-nav-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.slide-nav-btn.next {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
}

.slide-nav-btn.next:hover:not(:disabled) {
    background: #1e40af;
}

.slide-nav-btn.btn-to-quiz {
    background: #047857;
    border-color: #047857;
    color: #ffffff;
}

.slide-dots-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
    padding: 0;
}

.slide-dot.visited:not(.active) {
    background: #10b981;
}

.slide-dot:hover {
    background: #64748b;
}

.slide-dot.active {
    width: 26px;
    border-radius: 6px;
    background: #1d4ed8;
}

.slide-mobile-step-pill {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0b1b33;
    font-size: 0.8rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    white-space: nowrap;
}

/* Adaptation Tactile Mobile (<= 768px) */
@media (max-width: 768px) {
    .slide-deck-container {
        border-radius: 14px;
        min-height: 360px;
    }
    .slide-deck-header {
        padding: 10px 12px;
        gap: 8px;
    }
    .slide-norm-tag {
        display: none;
    }
    .slide-viewport {
        padding: 16px 14px;
    }
    .slide-card-top-bar {
        gap: 10px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }
    .slide-obj-grid,
    .slide-keypoint-grid,
    .slide-stats-row,
    .slide-dos-donts-grid,
    .slide-roadmap-list {
        grid-template-columns: minmax(0, 1fr);
    }
    .slide-start-cta,
    .slide-quiz-cta {
        width: 100%;
        min-height: 48px;
    }
    .slide-mobile-scroll-hint {
        display: block;
    }
    .slide-deck-footer {
        padding: 10px 12px;
        gap: 8px;
    }
    .slide-dots-indicator {
        display: none;
    }
    .slide-mobile-step-pill {
        display: inline-flex;
    }
    .slide-nav-btn {
        min-height: 46px;
        padding: 8px 13px;
        font-size: 0.84rem;
    }
    .slide-filter-bar {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }
    .slide-filter-tab {
        padding: 7px 6px;
        font-size: 0.76rem;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slide-card.active,
    .slide-card.active.dir-prev,
    .slide-case-solution,
    .slide-progress-fill,
    .slide-kp-card,
    .slide-start-cta,
    .slide-quiz-cta {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* ==========================================================================
   SAS DE PRÉPARATION PRÉ-EXAMEN (LOBBY), CHARTE D'INTÉGRITÉ & RAPPEL
   ========================================================================== */
.exam-lobby-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.exam-fade-in {
    animation: examFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.exam-lobby-header {
    margin-bottom: 22px;
}

.exam-lobby-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}

.exam-lobby-title {
    margin: 0 0 8px;
    font-size: 1.65rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.exam-lobby-sub {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* CANDIDATE PILL CARD */
.exam-candidate-pill-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 22px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    flex-wrap: wrap;
}

.exam-cand-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.95rem;
    flex-shrink: 0;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.exam-cand-meta {
    flex: 1;
    min-width: 220px;
}

.exam-cand-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
    line-height: 1.3;
}

.exam-cand-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 3px;
    font-family: inherit;
}

.exam-cand-status {
    flex-shrink: 0;
}

/* TERMS & CONDITIONS PANEL */
.exam-terms-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.exam-terms-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.exam-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.exam-term-card {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.exam-term-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.term-icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
    padding-top: 2px;
}

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

.term-title {
    font-weight: 800;
    font-size: 0.85rem;
    color: #0f172a;
    margin-bottom: 3px;
}

.term-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
}

/* ACTION & CHECKBOX BOX */
.exam-action-box {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #cbd5e1;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.exam-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.exam-checkbox-container:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.exam-checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #1d4ed8;
    cursor: pointer;
    flex-shrink: 0;
}

.exam-checkbox-text {
    font-size: 0.88rem;
    color: #1e293b;
    line-height: 1.5;
    font-weight: 600;
}

.exam-btn-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-start-exam {
    font-size: 1.05rem !important;
    padding: 14px 28px !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease !important;
}

.acad-btn-pulse {
    animation: btnPulse 1.8s infinite ease-in-out;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); transform: translateY(-1px); }
}

/* RECALL MODAL DURING ACTIVE EXAM */
.exam-terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: modalFadeIn 0.2s ease forwards;
}

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

.exam-terms-modal-card {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    position: relative;
    z-index: 100000;
}

.exam-terms-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.exam-terms-modal-body {
    padding: 20px 22px;
    overflow-y: auto;
}

.exam-terms-modal-footer {
    padding: 14px 22px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.btn-modal-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.btn-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ==========================================================================
   SCHÉMAS TECHNIQUES ÉTENDUS
   ========================================================================== */

/* ================= Schémas Techniques Opérationnels ================= */
.slide-schematic-card {
    background: #0b1120;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 22px;
    color: #f8fafc;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.schematic-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.schematic-title-tag {
    font-size: 1.05rem;
    font-weight: 900;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
}

.schematic-status-pill {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #34d399;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.schematic-step-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.schematic-step-node {
    background: #131d33;
    border: 1px solid #243553;
    border-radius: 12px;
    padding: 14px;
    position: relative;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.schematic-step-node:hover {
    transform: translateY(-2px);
    border-color: #38bdf8;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}

.schematic-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 900;
    font-size: 0.8rem;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.schematic-step-node.completed .schematic-step-badge {
    background: #10b981;
}

.schematic-step-title {
    font-size: 0.86rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.schematic-step-desc {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.45;
}

.schematic-gauge-container {
    background: #050a14;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 16px 20px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;
}

.schematic-meter-display {
    text-align: center;
}

.schematic-meter-val {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: ui-monospace, SFMono-Regular, monospace;
    letter-spacing: 0.04em;
}

.schematic-meter-val.color-safe { color: #34d399; /* clean */ }
.schematic-meter-val.color-danger { color: #f87171; /* clean */ }
.schematic-meter-val.color-alert { color: #fbbf24; /* clean */ }
.schematic-meter-val.color-cyan { color: #22d3ee; /* clean */ }

.schematic-meter-lbl {
    font-size: 0.76rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.schematic-quad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
    gap: 10px;
    margin: 14px 0;
}

.schematic-callout-banner {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-top: 14px;
    line-height: 1.5;
}

/* Cartes clés de contenu infographiques */
.slide-keypoint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.slide-keypoint-item {
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.88rem;
    color: #1e293b;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.slide-keypoint-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}







/* ==========================================================================
   ENRICHISSEMENTS PÉDAGOGIQUES & ANDRAGOGIQUES (SPRINTS 2 & 3)
   ========================================================================== */

/* 1. Infobulles interactives de glossaire pour acronymes (Sweller) */
.acad-acronym-tooltip {
    border-bottom: 1.5px dotted #0369a1;
    cursor: help;
    font-weight: 600;
    color: inherit;
    position: relative;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.acad-acronym-tooltip:hover,
.acad-acronym-tooltip:focus {
    color: #0369a1;
    border-bottom: 1.5px solid #0369a1;
}

.acad-acronym-tooltip::after {
    content: attr(data-def);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #f8fafc;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.35;
    white-space: normal;
    width: max-content;
    max-width: 290px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10000;
}

.acad-acronym-tooltip:hover::after,
.acad-acronym-tooltip:focus::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* 2. Styles du Test de Positionnement Diagnostique Initial */
.preassessment-q-card label:hover {
    background: #f8fafc;
    border-color: #93c5fd !important;
}

/* 3. Styles du Plan d'Action Individuel (PAI) */
.pai-container input:focus {
    outline: none;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   MOBILE & TOUCH ADAPTATIONS (iDSI & COURSE READER)
   ========================================================================== */
@media (max-width: 768px) {
    /* Prevent iOS auto-zoom on inputs */
    input[type="text"],
    input[type="search"],
    input[type="email"],
    input[type="password"],
    select,
    textarea,
    .catalog-search-input {
        font-size: 16px !important;
    }

    .catalog-toolbar {
        padding: 10px 12px !important;
        gap: 10px !important;
    }

    .catalog-search-wrap {
        max-width: 100% !important;
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    .catalog-cat-pills {
        width: 100% !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding-bottom: 6px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .catalog-cat-pills::-webkit-scrollbar {
        display: none !important;
    }

    .catalog-cat-pill {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        min-height: 42px !important;
    }

    .acad-navbar {
        padding: 8px 10px !important;
    }

    .acad-btn {
        min-height: 42px !important;
    }

    .reader-sidebar {
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding-bottom: 16px !important;
        margin-bottom: 16px !important;
    }
}

/* ==========================================================================
   EXERCICES ACTIFS D'ATELIERS (ORDONNANCEMENT & ASSOCIATION)
   ========================================================================== */
.active-exercise-card {
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 20px;
    margin: 18px 0 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.active-ex-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.seq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0;
}

.seq-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.seq-row.seq-ok {
    background: #ecfdf5;
    border-color: #34d399;
}

.seq-row.seq-bad {
    background: #fef2f2;
    border-color: #f87171;
}

.seq-pos-num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #e2e8f0;
    color: #0f172a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seq-text {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

.seq-controls {
    display: inline-flex;
    gap: 4px;
    flex-shrink: 0;
}

.seq-move-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    cursor: pointer;
}

.seq-move-btn:hover:not(:disabled) {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

.seq-move-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.match-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0;
}

.match-row {
    display: grid;
    grid-template-columns: minmax(180px, 38%) 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

.match-row.match-ok {
    background: #ecfdf5;
    border-color: #34d399;
}

.match-row.match-bad {
    background: #fef2f2;
    border-color: #f87171;
}

.match-prompt {
    font-size: 0.86rem;
    font-weight: 800;
    color: #0f172a;
}

.match-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
}

.active-ex-feedback {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .match-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* =========================================================
   ENRICHISSEMENT VISUEL PAR MODULE : PHOTOS, PLANCHES & SCHÉMAS
   ========================================================= */
.module-editorial-plate {
    position: relative;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.14);
}

.module-field-photo img {
    max-height: 290px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.mod-schema-card {
    background: #ffffff;
    border: 1px solid var(--ms-border, #cbd5e1);
    border-radius: 16px;
    padding: 18px 20px;
    margin: 14px 0 18px;
    box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.12);
}

.mod-schema-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.mod-schema-title {
    font-weight: 800;
    font-size: 0.96rem;
    color: #0b1b33;
}

.mod-schema-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--ms-soft, #eff6ff);
    color: var(--ms-accent, #1d4ed8);
    border: 1px solid var(--ms-border, #bfdbfe);
}

/* 1. Flux séquentiel */
.mod-flow-track {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.mod-flow-node {
    flex: 1 1 0;
    min-width: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mod-flow-num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--ms-accent, #1d4ed8);
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mod-flow-heading {
    font-weight: 800;
    font-size: 0.86rem;
    color: #0b1b33;
    line-height: 1.3;
}

.mod-flow-desc {
    font-size: 0.8rem;
    color: #334155;
    line-height: 1.48;
}

.mod-flow-stat {
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px dashed #cbd5e1;
    font-size: 0.76rem;
    color: var(--ms-accent, #1d4ed8);
}

.mod-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--ms-accent, #1d4ed8);
    flex-shrink: 0;
}

/* 2. Matrice Décision */
.mod-decision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mod-decision-col {
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
}

.mod-decision-col.is-good {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.mod-decision-col.is-warn {
    background: #fff7ed;
    border-color: #fed7aa;
}

.mod-decision-hdr {
    font-weight: 800;
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.mod-decision-col.is-good .mod-decision-hdr { color: #065f46; }
.mod-decision-col.is-warn .mod-decision-hdr { color: #9a3412; }

.mod-decision-col ul {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.84rem;
    color: #1e293b;
    line-height: 1.48;
}

/* 3. Cycle SVG */
.mod-cycle-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.mod-cycle-svg-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mod-cycle-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mod-cycle-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.mod-cycle-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mod-cycle-item-title {
    font-weight: 800;
    font-size: 0.86rem;
    color: #0b1b33;
}

.mod-cycle-item-desc {
    font-size: 0.8rem;
    color: #334155;
    line-height: 1.45;
    margin-top: 2px;
}

/* 4. Barrières de maîtrise */
.mod-barriers-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mod-barrier-layer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.mod-barrier-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffffff;
    background: var(--ms-accent, #1d4ed8);
    padding: 4px 10px;
    border-radius: 7px;
    white-space: nowrap;
    flex-shrink: 0;
}

.mod-barrier-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.45;
}

.mod-barrier-body strong {
    color: #0b1b33;
    font-size: 0.86rem;
}

/* 5. Carte Piliers */
.mod-pillars-root {
    background: #0b1b33;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 10px 16px;
    border-radius: 10px;
    text-align: center;
}

.mod-pillars-connector {
    width: 2px;
    height: 14px;
    background: var(--ms-accent, #1d4ed8);
    margin: 0 auto;
}

.mod-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.mod-pillar-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
}

.mod-pillar-idx {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--ms-accent, #1d4ed8);
    margin-bottom: 4px;
}

.mod-pillar-title {
    font-weight: 800;
    font-size: 0.85rem;
    color: #0b1b33;
    margin-bottom: 4px;
}

.mod-pillar-desc {
    font-size: 0.79rem;
    color: #334155;
    line-height: 1.45;
}

.mod-schema-callout {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--ms-soft, #eff6ff);
    border: 1px solid var(--ms-border, #bfdbfe);
    border-radius: 10px;
    font-size: 0.82rem;
    color: #0b1b33;
    line-height: 1.48;
}

@media (max-width: 820px) {
    .mod-flow-track {
        flex-direction: column;
    }
    .mod-flow-arrow {
        transform: rotate(90deg);
        padding: 2px 0;
    }
    .mod-decision-grid,
    .mod-cycle-layout {
        grid-template-columns: 1fr;
    }
    .mod-barrier-layer {
        flex-direction: column;
        align-items: flex-start;
    }
}
