:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2332;
    --bg-card-hover: #1f2b3d;
    --bg-nav: rgba(10, 14, 23, 0.95);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #0078d4;
    --accent-dim: #005a9e;
    --accent-glow: rgba(0, 120, 212, 0.15);
    --accent-green: #22c55e;
    --accent-purple: #8b5cf6;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    --accent-cyan: #06b6d4;
    --border: #1e293b;
    --border-light: #334155;
    --gradient-start: #0078d4;
    --gradient-end: #8b5cf6;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-sm: 10px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dim); }

code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 120, 212, 0.1);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

pre {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin: 16px 0;
}

pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 0.85em;
    line-height: 1.8;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary) !important;
}

.logo-icon {
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, var(--accent), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu { display: flex; align-items: center; gap: 8px; }

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 200px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-content { display: block; }

.dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-circuit {
    position: absolute;
    inset: 0;
    opacity: 0.12;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 120, 212, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 120, 212, 0.3);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

/* ===== SECTIONS ===== */
.section { padding: 100px 24px; }

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1.05rem;
}

/* ===== LEVEL HEADER ===== */
.level-header { text-align: center; margin-bottom: 48px; }

.level-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.badge-beginner { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-intermediate { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-expert { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* ===== COURSE GRID ===== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.course-icon { font-size: 2rem; }

.course-tag {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.course-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }

.course-card > p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }

.course-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }

.topic {
    font-size: 0.75rem;
    background: rgba(0, 120, 212, 0.08);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 120, 212, 0.15);
}

.lesson-list { flex: 1; margin-bottom: 20px; }

.lesson {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.lesson:hover { background: rgba(255, 255, 255, 0.03); color: var(--text-primary); }

.lesson-check { color: var(--accent); font-weight: 700; width: 24px; text-align: center; }

.lesson-num {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    width: 24px;
    text-align: center;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: sticky;
    top: 16px;
    float: right;
    margin: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.modal-close:hover { background: var(--accent-red); border-color: var(--accent-red); }

.modal-content { padding: 40px; }
.modal-content h2 { font-size: 1.8rem; margin-bottom: 24px; }
.modal-content h3 { font-size: 1.2rem; margin: 24px 0 12px; color: var(--accent); }
.modal-content p { color: var(--text-secondary); margin-bottom: 12px; line-height: 1.7; }
.modal-content ul { padding-left: 24px; margin-bottom: 16px; }
.modal-content li { color: var(--text-secondary); margin-bottom: 8px; line-height: 1.6; }

.modal-content .lab-note {
    background: rgba(0, 120, 212, 0.08);
    border: 1px solid rgba(0, 120, 212, 0.2);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 16px 0;
    font-size: 0.9rem;
}

.modal-content .warning {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 16px 0;
    font-size: 0.9rem;
    border-left: 3px solid var(--accent-red);
}

/* ===== QUIZ ===== */
.quiz-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.quiz-tab {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
}

.quiz-tab:hover { border-color: var(--accent); color: var(--accent); }

.quiz-tab.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

.quiz-container { max-width: 800px; margin: 0 auto; }

.quiz-question {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 20px;
}

.quiz-question h3 { font-size: 1.1rem; margin-bottom: 20px; line-height: 1.6; }

.quiz-question h3 .q-num {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    margin-right: 8px;
}

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

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.quiz-option:hover { border-color: var(--accent); background: rgba(0, 120, 212, 0.03); }

.quiz-option.selected { border-color: var(--accent-purple); background: rgba(139, 92, 246, 0.1); }
.quiz-option.correct { border-color: #22c55e; background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.quiz-option.incorrect { border-color: #ef4444; background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.quiz-option input { display: none; }

.quiz-option .option-letter {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
}

.quiz-option.correct .option-letter { border-color: #22c55e; background: #22c55e; color: var(--bg-primary); }
.quiz-option.incorrect .option-letter { border-color: #ef4444; background: #ef4444; color: white; }

.quiz-explanation {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(0, 120, 212, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent);
    display: none;
}

.quiz-explanation.visible { display: block; }
.quiz-submit { text-align: center; margin-top: 32px; }

.quiz-score {
    text-align: center;
    max-width: 400px;
    margin: 40px auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 32px;
}

.score-circle {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px auto;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}

#scoreMessage { color: var(--text-secondary); margin-bottom: 24px; }

/* ===== TERMINAL ===== */
.section-term { }
.term-header-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.xp-chip { background: linear-gradient(135deg, var(--accent), var(--accent-purple)); color: white; font-weight: 800; padding: 8px 18px; border-radius: 999px; font-size: 0.95rem; box-shadow: 0 4px 18px var(--accent-glow); }

.term-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; max-width: 1000px; margin: 0 auto; }

.term-main { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.term-host { width: 100%; }
.term-placeholder { padding: 40px; text-align: center; color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; }

.term-topbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-secondary); }
.term-topbar .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-red { background: #ff5f57; } .dot-yellow { background: #febc2e; } .dot-green { background: #28c840; }
.term-mode { flex: 1; text-align: center; color: var(--accent); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.5px; text-transform: uppercase; }
.term-reset { background: transparent; border: 1px solid var(--border-light); color: var(--text-secondary); border-radius: 6px; padding: 3px 10px; font-size: 0.75rem; cursor: pointer; }
.term-reset:hover { color: var(--accent); border-color: var(--accent); }
.xterm-wrap { padding: 8px; height: 460px; }
.xterm-wrap .xterm { height: 100%; }
.term-boot { padding: 40px; text-align: center; color: var(--accent-cyan); font-family: 'JetBrains Mono', monospace; }

.term-quickstart { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.qs-label { color: var(--text-secondary); font-size: 0.9rem; font-weight: 600; }
.qs-chip { background: var(--bg-card); border: 1px solid var(--border-light); color: var(--accent-cyan); font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: var(--transition); }
.qs-chip:hover { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 24px 30px;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col .logo-icon { font-size: 1.3rem; }
.footer-col .logo-text { font-weight: 800; font-size: 1.2rem; }

.footer-col > p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 16px; color: var(--text-primary); }

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--accent); }

.legal-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    background: rgba(0, 120, 212, 0.05);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 120, 212, 0.15);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 70px; left: 0; right: 0;
    height: 3px;
    background: var(--bg-secondary);
    z-index: 999;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-purple));
    width: 0%;
    transition: width 0.1s linear;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 120, 212, 0.3);
}

.back-to-top.visible { display: flex; }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0, 120, 212, 0.4); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: var(--bg-nav);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active { transform: translateY(0); opacity: 1; pointer-events: all; }
    .hamburger { display: flex; }

    .hero-stats { gap: 24px; }
    .stat-number { font-size: 2rem; }

    .course-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .xterm-wrap { height: 380px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section { padding: 60px 16px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 120, 212, 0.1); }
    50% { box-shadow: 0 0 40px rgba(0, 120, 212, 0.2); }
}

.animate-in { animation: fadeInUp 0.6s ease forwards; }


/* ===== BOUTON RETOUR MENU PRINCIPAL (Horizon 5) ===== */
.nav-back {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-right: 10px; flex-shrink: 0;
    border-radius: 10px; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14); color: #fff;
    text-decoration: none; font-size: 1.3rem; font-weight: 700; line-height: 1;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.nav-back:hover {
    background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); transform: translateX(-2px);
}

/* ===== HARMONISATION VISUELLE HORIZON 5 (audit septembre 2026) ===== */
/* Bloc additif : uniformise sans changer l'accent de la formation. */
/* Boutons : paddings et radius unifies */
.btn { padding: 14px 32px; border-radius: 10px; gap: 8px; text-decoration: none; }
/* Cartes : radius 12px */
.course-card, .module, .modal, .memo-card, .install-card, .quiz-q, .flash-card, .schema-card, .first-steps-box, .coach-zone { border-radius: 12px; }
/* Transitions unifiees a 0.25s */
.btn, .course-card, .nav-link, .dropdown-content a, .nav-back, .quiz-opt, .q-opt, .qs-chip { transition: all 0.25s ease; }
/* Focus clavier visible */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.nav-back:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* Details et summary : curseur pointeur et espacement */
details summary { cursor: pointer; margin: 4px 0; }
/* Composants communs */
.disclaimer { margin-top: 8px; font-size: 0.85em; color: var(--text-secondary); line-height: 1.6; }
.course-section { margin-top: 24px; }
.course-section h4 { margin-bottom: 10px; font-size: 1.1rem; }
.course-section p { margin-bottom: 12px; font-size: 0.95rem; color: var(--text-secondary); }
.course-section ul { margin: 0 0 12px 20px; }
.course-section ul li { margin-bottom: 6px; font-size: 0.93rem; }
.course-code { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; padding: 2px 6px; border-radius: 4px; }
.course-note { border-radius: 8px; padding: 14px 16px; margin: 14px 0; font-size: 0.9rem; }
/* Contraste : l'accent brut (#0078d4, 4.26:1) est insuffisant en texte courant, */
/* les liens du contenu utilisent une declinaison eclaircie, les boutons gardent l'accent. */
.section a:not(.btn):not(.nav-link), .course-card a:not(.btn), .module-body a { color: #6cb2f0; }
/* Tableaux : defilement horizontal sur petit ecran */
.table-responsive { overflow-x: auto; }
/* Responsive minimal : hamburger, grilles en 1 colonne, tableaux scrollables */
@media (max-width: 768px) {
    .course-grid, .install-grid, .memo-grid, .level-grid, .courses-grid, .footer-grid { grid-template-columns: 1fr; }
    table.memo, .cmd-table, .exam-table { display: block; width: 100%; overflow-x: auto; }
    .hero { padding: 100px 16px 60px; }
    .section { padding: 60px 16px; }
    .nav-menu.open, .nav-menu.active { display: flex; }
}
