:root {
    --bg-primary: #070d0a;
    --bg-secondary: #0c1512;
    --bg-card: #111d18;
    --bg-card-hover: #16271f;
    --bg-nav: rgba(7, 13, 10, 0.96);
    --text-primary: #e6f2ec;
    --text-secondary: #9db8ab;
    --text-muted: #5f7a6d;
    --accent: #00cc66;
    --accent-dim: #00a855;
    --accent-glow: rgba(0, 204, 102, 0.14);
    --accent-blue: #38bdf8;
    --accent-purple: #a78bfa;
    --accent-red: #f87171;
    --accent-orange: #fbbf24;
    --accent-cyan: #22d3ee;
    --border: #1c3027;
    --border-light: #2c4a3c;
    --gradient-start: #00cc66;
    --gradient-end: #22d3ee;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    --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: 84px; }
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,204,102,0.10); color: var(--accent); padding: 2px 6px; border-radius: 4px; font-size: 0.85em; }
pre { background: #050805; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; overflow-x: auto; margin: 16px 0; }
pre code { background: none; padding: 0; color: #d7f0e2; font-size: 0.85em; line-height: 1.8; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.section { padding: 70px 0; }
.section-title { font-size: 2.1em; font-weight: 800; margin-bottom: 8px; }
.section-title .highlight, .highlight { color: var(--accent); }
.section-desc { color: var(--text-secondary); margin-bottom: 26px; max-width: 760px; }
/* NAVBAR */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--bg-nav); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container { max-width: 1280px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.nav-back { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border-light); border-radius: 8px; color: var(--accent); font-size: 1.2em; font-weight: 700; }
.nav-back:hover { background: var(--accent-glow); }

/* ===== 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; }
/* Details et summary : curseur pointeur et espacement (regle globale, .module summary existe deja) */
details summary { cursor: pointer; margin: 4px 0; }
/* Composants communs */
.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 : le texte attenue brut (#5f7a6d, 4.19:1) passe sous 4.5:1, */
/* le disclaimer utilise --text-secondary (9.22:1), l'accent est inchange. */
.disclaimer { margin-top: 8px; font-size: 0.85em; color: var(--text-secondary); line-height: 1.6; }
/* 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; }
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text-primary); margin-right: 8px; white-space: nowrap; }
.logo-icon { font-family: 'JetBrains Mono', monospace; background: var(--accent); color: #06130c; border-radius: 6px; padding: 2px 8px; font-weight: 700; }
.logo-text { font-weight: 800; }
.nav-menu { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav-link { color: var(--text-secondary); padding: 8px 12px; border-radius: 8px; font-size: 0.92em; font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--accent); background: var(--accent-glow); }
.nav-dropdown { position: relative; }
.dropdown-content { display: none; position: absolute; top: 100%; left: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; min-width: 190px; padding: 8px; box-shadow: var(--shadow); }
.nav-dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--text-secondary); font-size: 0.9em; }
.dropdown-content a:hover { background: var(--accent-glow); color: var(--accent); }
.nav-search { position: relative; }
.nav-search input { background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-primary); border-radius: 8px; padding: 8px 12px; width: 200px; font-size: 0.88em; }
.search-results { display: none; position: absolute; top: 110%; right: 0; width: 320px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; max-height: 320px; overflow: auto; box-shadow: var(--shadow); z-index: 200; }
.search-results.active { display: block; }
.search-result-item { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 0.88em; color: var(--text-secondary); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 1px solid var(--border-light); border-radius: 8px; padding: 10px; cursor: pointer; }
.hamburger span { width: 20px; height: 2px; background: var(--text-primary); display: block; }
/* HERO */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; padding: 140px 0 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.matrix-rain { position: absolute; inset: 0; opacity: 0.5; }
.hero-content { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 22px; text-align: center; width: 100%; }
.hero-badge { display: inline-block; border: 1px solid var(--accent); color: var(--accent); border-radius: 20px; padding: 6px 18px; font-size: 0.85em; margin-bottom: 18px; background: var(--accent-glow); font-weight: 600; }
.hero-title { font-size: 3em; font-weight: 900; line-height: 1.15; margin-bottom: 14px; }
.hero-subtitle { color: var(--text-secondary); font-size: 1.12em; max-width: 720px; margin: 0 auto 26px; }
.hero-stats { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin: 26px 0; }
.stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 26px; min-width: 130px; }
.stat-number { font-family: 'JetBrains Mono', monospace; font-size: 1.7em; font-weight: 700; color: var(--accent); }
.stat-label { display: block; color: var(--text-secondary); font-size: 0.85em; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.btn { display: inline-block; padding: 13px 30px; border-radius: 10px; font-weight: 700; border: 1px solid transparent; cursor: pointer; font-size: 1em; }
.btn-primary { background: linear-gradient(90deg, var(--gradient-start), #00e676); color: #06130c; }
.btn-primary:hover { filter: brightness(1.08); color: #06130c; }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent-glow); color: var(--accent); }
.btn-small { padding: 8px 16px; font-size: 0.88em; }
/* CARDS / GRID */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.course-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: var(--transition); }
.course-card:hover { border-color: var(--accent); background: var(--bg-card-hover); transform: translateY(-3px); box-shadow: var(--shadow); }
.course-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.course-icon { font-size: 1.5em; font-weight: 800; color: var(--accent); font-family: 'JetBrains Mono', monospace; }
.course-tag { font-size: 0.75em; background: var(--accent-glow); color: var(--accent); border: 1px solid var(--border-light); padding: 3px 12px; border-radius: 20px; font-weight: 600; }
.course-card h3 { margin: 6px 0 8px; font-size: 1.2em; }
.course-card p { color: var(--text-secondary); font-size: 0.94em; }
.course-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.topic { font-size: 0.78em; background: var(--bg-secondary); border: 1px solid var(--border); padding: 3px 10px; border-radius: 16px; color: var(--text-secondary); }
.install-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.install-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.install-icon { font-size: 1.3em; font-weight: 800; color: var(--accent); font-family: 'JetBrains Mono', monospace; margin-bottom: 8px; }
.install-steps .step { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 8px 0; font-size: 0.9em; color: var(--text-secondary); }
.step-num { display: inline-block; background: var(--accent); color: #06130c; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; text-align: center; font-size: 0.8em; line-height: 22px; margin-right: 8px; }
/* MODULES / LESSONS */
.level-header { text-align: center; margin-bottom: 26px; }
.level-badge { display: inline-block; padding: 5px 18px; border-radius: 20px; font-weight: 700; font-size: 0.85em; margin-bottom: 12px; }
.badge-beginner { background: rgba(0,204,102,0.15); color: var(--accent); border: 1px solid var(--accent); }
.badge-inter { background: rgba(251,191,36,0.12); color: var(--accent-orange); border: 1px solid var(--accent-orange); }
.badge-expert { background: rgba(248,113,113,0.12); color: var(--accent-red); border: 1px solid var(--accent-red); }
.module { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin: 18px 0; overflow: hidden; }
.module summary { cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1.08em; list-style: none; display: flex; gap: 12px; align-items: center; }
.module summary::-webkit-details-marker { display: none; }
.module summary:hover { color: var(--accent); }
.module summary .mod-num { font-family: 'JetBrains Mono', monospace; background: var(--accent); color: #06130c; border-radius: 8px; padding: 2px 10px; font-size: 0.8em; }
.module-body { padding: 0 24px 24px; color: var(--text-secondary); }
.module-body h4 { color: var(--text-primary); margin: 18px 0 8px; }
.module-body ul, .module-body ol { margin: 8px 0 8px 22px; }
.module-body li { margin: 5px 0; }
.exam-points { background: rgba(0,204,102,0.07); border: 1px solid var(--border-light); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 18px; margin: 16px 0; }
.exam-points strong { color: var(--accent); }
.lesson-list { margin-top: 12px; }
.lesson { display: flex; gap: 12px; align-items: center; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin: 8px 0; font-size: 0.93em; }
.lesson-num { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-weight: 700; }
.lab-note { background: var(--bg-secondary); border: 1px dashed var(--border-light); border-radius: 8px; padding: 12px 16px; margin: 14px 0; font-size: 0.92em; }
.first-steps-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 22px; }
/* QUIZ */
.quiz-selector { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.quiz-tab { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.quiz-tab.active { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.quiz-container .q-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 16px 0; }
.q-card h4 { margin-bottom: 12px; }
.q-opt { display: block; width: 100%; text-align: left; background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-primary); border-radius: 8px; padding: 11px 15px; margin: 8px 0; cursor: pointer; font-size: 0.95em; }
.q-opt:hover { border-color: var(--accent); }
.q-opt.selected { border-color: var(--accent); background: var(--accent-glow); }
.q-opt.good { border-color: #22c55e; background: rgba(34,197,94,0.12); }
.q-opt.bad { border-color: var(--accent-red); background: rgba(248,113,113,0.10); }
.q-explain { display: none; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin-top: 12px; font-size: 0.9em; color: var(--text-secondary); }
.q-explain.show { display: block; }
/* TERMINAL */
.section-term { padding-top: 120px; }
.term-layout { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.term-main { background: #04070 5; background: #040705; border: 1px solid var(--border-light); border-radius: var(--radius); min-height: 480px; max-height: 600px; overflow-y: auto; padding: 18px; font-family: 'JetBrains Mono', monospace; font-size: 0.88em; }
.term-line { white-space: pre-wrap; word-break: break-word; line-height: 1.65; }
.term-prompt { color: var(--accent); font-weight: 700; }
.term-input { background: transparent; border: none; outline: none; color: #e6f2ec; font-family: inherit; font-size: inherit; width: 60%; }
.term-side { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; font-size: 0.9em; color: var(--text-secondary); max-height: 600px; overflow-y: auto; }
.term-quickstart { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.qs-label { color: var(--text-secondary); font-size: 0.9em; }
.qs-chip { background: var(--bg-card); border: 1px solid var(--border-light); color: var(--accent); border-radius: 16px; padding: 5px 14px; cursor: pointer; font-family: 'JetBrains Mono', monospace; font-size: 0.82em; }
.qs-chip:hover { background: var(--accent-glow); }
/* TABLES / FICHES */
.memo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 20px; }
.memo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.memo-card h3 { color: var(--accent); margin-bottom: 10px; font-size: 1.05em; }
table.memo { width: 100%; border-collapse: collapse; font-size: 0.88em; }
table.memo th, table.memo td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
table.memo th { background: var(--bg-secondary); color: var(--accent); }
table.memo td { color: var(--text-secondary); }
/* FLASHCARDS */
.flash-controls { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; align-items: center; }
.flash-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 30px; text-align: center; min-height: 220px; cursor: pointer; margin: 16px 0; }
.flash-card .fc-q { font-size: 1.25em; font-weight: 700; }
.flash-card .fc-a { display: none; margin-top: 16px; color: var(--accent); font-size: 1.05em; }
.flash-card.flipped .fc-a { display: block; }
/* CHECKLIST */
.check-item { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin: 8px 0; cursor: pointer; }
.check-item input { width: 18px; height: 18px; margin-top: 4px; accent-color: #00cc66; }
.check-item.done { opacity: 0.65; }
.check-item.done .check-label { text-decoration: line-through; }
.progress-bar { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; height: 16px; overflow: hidden; margin: 12px 0; }
.progress-bar > div { height: 100%; background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end)); transition: width 0.4s; }
.warning-box { background: rgba(251,191,36,0.08); border: 1px solid var(--accent-orange); border-radius: var(--radius); padding: 18px 22px; margin: 20px 0; color: var(--text-secondary); }
.warning-box strong { color: var(--accent-orange); }
/* SCHEMAS */
.schema-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 20px 0; }
.schema-card svg { width: 100%; height: auto; background: #050805; border: 1px solid var(--border); border-radius: 8px; }
.schema-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
/* FOOTER */
.footer { border-top: 1px solid var(--border); background: var(--bg-secondary); margin-top: 60px; padding: 46px 0 26px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.footer-col h4 { margin-bottom: 12px; font-size: 1em; }
.footer-col a { display: block; color: var(--text-secondary); font-size: 0.9em; margin: 6px 0; }
.footer-col a:hover { color: var(--accent); }
.legal-text { color: var(--text-secondary); font-size: 0.88em; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 18px; font-size: 0.85em; color: var(--text-secondary); }
.footer-bottom a { color: var(--accent); }
.disclaimer { margin-top: 8px; font-size: 0.85em; color: var(--text-muted); }
/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 300; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); max-width: 760px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 30px; position: relative; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--text-secondary); font-size: 1.6em; cursor: pointer; }
@media (max-width: 960px) { .term-layout { grid-template-columns: 1fr; } .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-nav); flex-direction: column; padding: 14px; align-items: stretch; } .nav-menu.active { display: flex; } .hamburger { display: flex; } .nav-search input { width: 130px; } .hero-title { font-size: 2em; } }
