:root {
  /* Charte Graphique Officielle Logo Cyber Panafricain */
  --neon-blue: #0070f3;
  --neon-cyan: #00e5ff;
  --neon-blue-glow: rgba(0, 229, 255, 0.35);
  --gold-orbit: #f59e0b;
  --gold-orbit-glow: rgba(245, 158, 11, 0.4);
  
  --primary-african-gold: #f59e0b;
  --secondary-emerald: #00e5ff;
  --tertiary-terracotta: #ef4444;
  --dark-bg: #020617;
  --dark-surface: #070e1e;
  --dark-card: #0b1528;
  --dark-border: rgba(0, 112, 243, 0.22);
  --dark-border-glow: rgba(0, 229, 255, 0.45);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --card-bg: #0b1528;
  --nav-bg: rgba(7, 14, 30, 0.95);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-main);
  line-height: 1.6;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--nav-bg);
  border-bottom: 2px solid var(--neon-cyan);
  box-shadow: 0 4px 20px rgba(0, 112, 243, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.brand-badge {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(245, 158, 11, 0.18));
  border: 1px solid var(--neon-cyan);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--neon-cyan);
  font-weight: bold;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-african-gold);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.1s ease, box-shadow 0.2s;
}

.btn-primary {
  background: var(--primary-african-gold);
  color: #000;
}

.btn-primary:hover {
  background: #d97706;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  background: var(--dark-border);
  color: #fff;
}

.btn-secondary:hover {
  background: #374151;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.12), transparent 70%);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, var(--primary-african-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--primary-african-gold);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-african-gold);
}

footer {
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid var(--dark-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================
   UI-04: TOAST NOTIFICATIONS SYSTEM
   ========================================================== */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  width: calc(100% - 3rem);
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: rgba(17, 24, 39, 0.96);
  border-radius: 10px;
  border: 1px solid var(--dark-border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  color: #fff;
  opacity: 0;
  transform: translateX(100%) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-item.toast-show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.toast-item.toast-hide {
  opacity: 0;
  transform: translateX(50%) scale(0.9);
}

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

.toast-content {
  flex: 1;
}

.toast-message {
  font-size: 0.92rem;
  line-height: 1.4;
  word-break: break-word;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  transition: color 0.15s;
}

.toast-close:hover {
  color: #fff;
}

.toast-item.toast-success {
  border-left: 4px solid var(--secondary-emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.toast-item.toast-error {
  border-left: 4px solid var(--tertiary-terracotta);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.2);
}

.toast-item.toast-warning {
  border-left: 4px solid var(--primary-african-gold);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.toast-item.toast-info {
  border-left: 4px solid #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* ==========================================================
   UI-01: CODE EDITOR (CODEMIRROR) STYLING & CUSTOM WORKBENCH
   ========================================================== */
.editor-container {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--dark-border);
  background: #0d1117;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: #161b22;
  border-bottom: 1px solid var(--dark-border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.editor-toolbar .file-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #fff;
}

.CodeMirror {
  font-family: "Fira Code", "JetBrains Mono", Consolas, Menlo, Monaco, monospace !important;
  font-size: 0.92rem !important;
  height: 280px !important;
  line-height: 1.55 !important;
  background-color: #0b0f19 !important;
  color: #e6edf3 !important;
}

.CodeMirror-gutters {
  background-color: #0d1117 !important;
  border-right: 1px solid var(--dark-border) !important;
  white-space: nowrap;
}

.CodeMirror-linenumber {
  color: #484f58 !important;
  padding: 0 8px 0 5px !important;
}

.CodeMirror-cursor {
  border-left: 2px solid var(--primary-african-gold) !important;
}

/* Fallback textarea styling if CodeMirror CDN fails or is initializing */
.fallback-code-editor {
  width: 100%;
  height: 260px;
  background: #0b0f19;
  color: #10b981;
  font-family: monospace;
  border: none;
  padding: 0.75rem;
  outline: none;
  resize: vertical;
  line-height: 1.5;
  box-sizing: border-box;
}

/* ==========================================================
   UI-02: MODERN DASHBOARD VISUALIZATIONS & VULNERABILITY CARDS
   ========================================================== */
.sovereignty-gauge-card {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.4));
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.circular-gauge-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
}

.circular-gauge-svg {
  transform: rotate(-90deg);
  width: 130px;
  height: 130px;
}

.gauge-bg-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.gauge-progress-circle {
  fill: none;
  stroke: var(--secondary-emerald);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-in-out, stroke 0.5s ease;
}

.gauge-inner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gauge-percentage {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.gauge-sublabel {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.metrics-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.metric-pill {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--dark-border);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
}

.metric-pill .pill-val {
  font-size: 1.4rem;
  font-weight: 700;
  display: block;
}

.metric-pill .pill-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.severity-pill-critical { color: #f87171; }
.severity-pill-high { color: #fb923c; }
.severity-pill-medium { color: var(--primary-african-gold); }

/* Vulnerability Interactive Cards */
.vulnerability-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.vulnerability-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.vulnerability-card.sev-critical {
  border-left: 5px solid #ef4444;
}

.vulnerability-card.sev-high {
  border-left: 5px solid #f97316;
}

.vulnerability-card.sev-medium {
  border-left: 5px solid var(--primary-african-gold);
}

.vulnerability-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.severity-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-critical {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-high {
  background: rgba(249, 115, 22, 0.18);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.badge-medium {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.vuln-code-snippet {
  background: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: #f87171;
  margin: 0.75rem 0;
  overflow-x: auto;
}

.vuln-recommendation {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid var(--secondary-emerald);
  padding: 0.5rem 0.8rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: #d1fae5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================
   UI-03: INTERACTIVE ZKP WIZARD & IDENTITY MANAGER STYLING
   ========================================================== */
.zkp-wizard-card {
  max-width: 680px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.zkp-steps-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.zkp-steps-nav::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--dark-border);
  z-index: 1;
}

.zkp-step-indicator {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.zkp-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark-bg);
  border: 2px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.zkp-step-indicator.active .zkp-step-circle {
  background: var(--primary-african-gold);
  border-color: var(--primary-african-gold);
  color: #000;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.zkp-step-indicator.completed .zkp-step-circle {
  background: var(--secondary-emerald);
  border-color: var(--secondary-emerald);
  color: #000;
}

.zkp-step-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.zkp-step-indicator.active .zkp-step-label {
  color: #fff;
}

.mnemonic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  background: #080c14;
  padding: 1rem;
  border-radius: 10px;
  border: 1px dashed rgba(245, 158, 11, 0.4);
  margin-top: 1rem;
}

.mnemonic-word-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #fbbf24;
}

.mnemonic-num {
  font-size: 0.7rem;
  color: var(--text-muted);
  width: 16px;
}

/* Password & Key Strength Meter */
.strength-meter-wrapper {
  margin-top: 0.75rem;
}

.strength-meter-bar-container {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.strength-meter-bar {
  height: 100%;
  width: 0%;
  transition: width 0.4s ease, background-color 0.4s ease;
  border-radius: 9999px;
}

.strength-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ==========================================================
   UI-05: PANAFRICAN SOVEREIGN NODES MAP & TELEMETRY
   ========================================================== */
.africa-map-wrapper {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #111a2e 0%, #080c14 100%);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.map-svg-container {
  width: 100%;
  max-width: 650px;
  position: relative;
}

.map-node-point {
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.map-node-point:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 0 10px var(--primary-african-gold));
}

.map-node-pulse {
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  transform-origin: center;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.node-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  width: 100%;
  margin-top: 1.5rem;
}

.node-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.node-card:hover, .node-card.selected {
  border-color: var(--primary-african-gold);
  transform: translateY(-2px);
  background: rgba(245, 158, 11, 0.05);
}

.node-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.latency-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--secondary-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.node-details-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* ===== Icones SVG auto-hebergees (T-080..T-083) ===== */
.icon { flex-shrink: 0; vertical-align: -0.2em; }
.btn .icon, h2 .icon, h3 .icon, h4 .icon { margin-right: 0.4rem; }
.btn .icon:last-child { margin-right: 0; margin-left: 0.4rem; }
.brand-icon { display: inline-flex; align-items: center; color: var(--secondary-emerald, #10b981); }
.toast-icon { display: inline-flex; align-items: center; }
.toast-success .toast-icon { color: #10b981; }
.toast-warning .toast-icon { color: #f59e0b; }
.toast-error .toast-icon { color: #ef4444; }
.toast-info .toast-icon { color: #38bdf8; }
.flag { vertical-align: -0.2em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); margin-right: 0.35rem; }
.icon-dot { margin-right: 0.3rem; }
#editorStatus::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.35rem; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }

/* ==========================================================================
   PHASE 1: DESIGN SYSTEM - TOKENS CLAIR / SOMBRE (DES-01, DES-02)
   ========================================================================== */

/* Thème Clair - Surcharges des variables système */
[data-theme="light"] {
  --neon-blue: #0051cc;
  --neon-cyan: #0088cc;
  --gold-orbit: #d97706;
  --primary-african-gold: #d97706;
  --secondary-emerald: #0070f3;
  --dark-bg: #f8fafc;
  --dark-surface: #ffffff;
  --dark-card: #ffffff;
  --dark-border: #cbd5e1;
  --dark-border-glow: rgba(0, 81, 204, 0.35);
  --text-main: #0f172a;
  --text-muted: #475569;
  --nav-bg: rgba(255, 255, 255, 0.96);
  --card-bg: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .navbar {
  background: var(--nav-bg);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .brand {
  color: var(--text-main);
}

[data-theme="light"] .card,
[data-theme="light"] .zkp-wizard-card,
[data-theme="light"] .africa-map-wrapper,
[data-theme="light"] .node-card {
  background: var(--card-bg);
  border-color: var(--dark-border);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .card h3,
[data-theme="light"] .card h4,
[data-theme="light"] .zkp-wizard-card h2,
[data-theme="light"] .africa-map-wrapper h3 {
  color: var(--text-main);
}

[data-theme="light"] input[type="text"],
[data-theme="light"] select,
[data-theme="light"] textarea,
[data-theme="light"] .input-field {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .btn-secondary {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #cbd5e1;
}

[data-theme="light"] .btn-secondary:hover {
  background: #cbd5e1;
}

[data-theme="light"] footer {
  border-top-color: var(--dark-border);
  color: var(--text-muted);
}

[data-theme="light"] .CodeMirror {
  border-color: var(--dark-border);
}

/* ==========================================================================
   PHASE 2: NAVIGATION RESPONSIVE & TOOLBAR (NAV-01 à NAV-05)
   ========================================================================== */

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Switch Button */
.theme-switch-btn,
.lang-toggle-btn {
  background: transparent;
  border: 1px solid var(--dark-border);
  color: var(--text-main);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.theme-switch-btn:hover,
.lang-toggle-btn:hover {
  border-color: var(--primary-african-gold);
  color: var(--primary-african-gold);
  background: rgba(245, 158, 11, 0.08);
}

/* User Profile Badge */
.user-session-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--secondary-emerald);
  font-weight: 600;
}

/* Mobile Hamburger Toggle */
.navbar-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--dark-border);
  color: var(--text-main);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Mobile Drawer Overlay & Panel */
.nav-drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--dark-surface);
  border-left: 1px solid var(--dark-border);
  z-index: 1001;
  padding: 1.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
}

.nav-drawer.open {
  right: 0;
}

.nav-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--dark-border);
  padding-bottom: 1rem;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-drawer-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.nav-drawer-links a:hover,
.nav-drawer-links a.active {
  color: var(--primary-african-gold);
}

/* Breadcrumbs (NAV-04) */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary-african-gold);
}

.breadcrumbs-separator {
  color: var(--dark-border);
}

.breadcrumbs-current {
  color: var(--primary-african-gold);
  font-weight: 600;
}

/* ==========================================================================
   PHASE 3 & 4: COMPOSANTS D'INTERFACE & MICRO-INTERACTIONS
   ========================================================================== */

/* Language Selector Dropdown */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 100;
  min-width: 150px;
  overflow: hidden;
}

.lang-menu.show {
  display: block;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-item:hover {
  background: rgba(245, 158, 11, 0.12);
  color: var(--primary-african-gold);
}

/* Stepper & Copy Action Feedback (UI-01) */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dark-border);
  border-radius: 6px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  border-color: var(--secondary-emerald);
  color: var(--secondary-emerald);
}

.copy-btn.copied {
  background: rgba(16, 185, 129, 0.2) !important;
  color: var(--secondary-emerald) !important;
  border-color: var(--secondary-emerald) !important;
}

/* Editor Language Header Bar (UI-02) */
.editor-lang-select {
  background: #080c14;
  color: #fff;
  border: 1px solid var(--dark-border);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
}

[data-theme="light"] .editor-lang-select {
  background: #ffffff;
  color: #0f172a;
}

/* ==========================================================
   UI-06: ACCORDÉON & FICHE FAQ SOUVERAINE
   ========================================================== */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.faq-item {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: var(--primary-african-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  user-select: none;
  list-style: none;
}

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

.faq-summary-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-african-gold);
  color: #000;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.faq-chevron {
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary-african-gold);
}

.faq-content {
  padding: 0 1.4rem 1.4rem 1.4rem;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-content ol,
.faq-content ul {
  padding-left: 1.4rem;
  margin: 0.75rem 0;
}

.faq-content li {
  margin-bottom: 0.5rem;
}

.faq-tip-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid var(--primary-african-gold);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.faq-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.faq-code {
  background: #080c14;
  border: 1px solid var(--dark-border);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  color: #10b981;
  font-family: monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  margin: 0.5rem 0 0 0;
}

[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .faq-item[open] {
  border-color: var(--primary-african-gold);
}

[data-theme="light"] .faq-content {
  border-top-color: #f1f5f9;
}

[data-theme="light"] .faq-code {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #047857;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .navbar-toggle {
    display: block;
  }
}
