/* ==========================================================================
   SIEMBOUND - Design System & Styles
   Thème : Cyber SOC Command Center & Arcade RPG Pokémon Boss Arena
   100% Offline, Vanilla CSS pur, Zéro dépendance
   ========================================================================== */

:root {
  /* Palette de couleurs */
  --bg-main: #0a0e17;
  --bg-surface: #111827;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.95);
  --bg-glass: rgba(17, 24, 39, 0.75);
  --bg-input: #1e293b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #38bdf8;
  --border-card: rgba(56, 189, 248, 0.18);

  --accent-cyan: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-gold: #fbbf24;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);
  --shadow-glow-indigo: 0 0 25px rgba(99, 102, 241, 0.25);
  --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);
  --shadow-glow-rose: 0 0 25px rgba(244, 63, 94, 0.3);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(56, 189, 248, 0.06) 0%, transparent 40%),
    linear-gradient(to bottom, #0a0e17, #0d131f);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ==========================================================================
   Navigation Latérale - Sidebar Gauche (Style Dashboard / Command Center)
   ========================================================================== */
.app-sidebar {
  width: 290px;
  min-width: 290px;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(17, 24, 39, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.6);
  padding: 1.5rem 1.15rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.25) transparent;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
  flex-shrink: 0;
  animation: floatPulse 4s ease-in-out infinite;
}

@keyframes floatPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 14px rgba(56, 189, 248, 0.4); }
  50% { transform: translateY(-2px); box-shadow: 0 0 20px rgba(56, 189, 248, 0.7); }
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
}

.brand-title-sub {
  background: linear-gradient(135deg, #38bdf8 20%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.95rem;
}

.brand-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-top: 0.3rem;
}

/* Navigation principale - Menu Vertical */
.nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
}

.nav-tab-btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.75;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.nav-tab-btn:hover {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateX(3px);
}

.nav-tab-btn:hover svg {
  opacity: 1;
  stroke: var(--accent-cyan);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

.nav-tab-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.18));
  color: #fff;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 
    0 0 15px rgba(56, 189, 248, 0.3),
    inset 0 0 10px rgba(56, 189, 248, 0.15);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.nav-tab-btn.active svg {
  opacity: 1;
  stroke: var(--accent-cyan);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8));
}

.nav-tab-btn.rpg-special {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(245, 158, 11, 0.15));
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.nav-tab-btn.rpg-special.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(245, 158, 11, 0.35));
  color: #fff;
  border-color: #fbbf24;
  box-shadow: 
    0 0 18px rgba(245, 158, 11, 0.4),
    inset 0 0 10px rgba(245, 158, 11, 0.2);
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.7);
}

/* Sidebar Footer & Quick HUD */
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.header-stats {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(10, 14, 23, 0.65);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
}

.stat-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: transparent;
  border: none;
  padding: 0.15rem 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  margin-right: 0.3rem;
}

.stat-dot.gold {
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px #fbbf24, 0 0 2px #fbbf24;
}

.stat-dot.emerald {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px #10b981, 0 0 2px #10b981;
}

.stat-dot.cyan {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px #38bdf8, 0 0 2px #38bdf8;
}

.stat-pill strong {
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.stat-pill strong#stat-boss-defeated {
  color: var(--accent-gold);
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
}

.stat-pill strong#stat-jury-mastered {
  color: var(--accent-emerald);
  text-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.stat-pill strong#stat-fc-mastered {
  color: var(--accent-cyan);
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
}

.sidebar-audio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem;
}

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

.btn-audio-toggle {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.btn-audio-toggle:hover {
  color: #fff;
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  transform: scale(1.08);
}

/* ==========================================================================
   Conteneur Principal (Widescreen Full Fluid Layout avec Footer en Dessous)
   ========================================================================== */
.app-main-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - 290px);
}

.main-content {
  flex: 1 0 auto;
  min-width: 0;
  max-width: 100%;
  padding: 2rem 3rem 3rem;
  margin: 0;
  width: 100%;
}

/* Responsive Navigation (< 1024px) */
@media (max-width: 1024px) {
  body {
    flex-direction: column;
  }
  .app-sidebar {
    display: none !important;
  }
  .app-main-wrapper {
    width: 100%;
    min-height: auto;
  }
  .main-content {
    padding: 1.25rem 1rem 6.5rem;
  }
}

/* ==========================================================================
   Navigation Mobile : Top Bar, Floating Bottom Dock & Tactical Drawer
   ========================================================================== */

/* Top App Bar Mobile (< 1024px) */
.mobile-top-bar {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(10, 14, 23, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    padding: 0.75rem 1.15rem;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.mobile-brand-icon {
  width: 36px;
  height: 36px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.mobile-brand-icon svg {
  width: 20px;
  height: 20px;
}

.mobile-brand-text {
  display: flex;
  flex-direction: column;
}

.mobile-title {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.mobile-subtitle {
  font-size: 0.74rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.mobile-top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mobile-lvl-chip {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.25);
}

.btn-mobile-audio {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.btn-mobile-audio:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-cyan);
}

.btn-mobile-menu {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.25));
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  width: 38px;
  height: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  outline: none;
  transition: all 0.2s ease;
}

.btn-mobile-menu:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Off-Canvas Tactical Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: rgba(10, 14, 23, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(56, 189, 248, 0.35);
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.25rem;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.15);
}

.mobile-drawer.open {
  transform: translateX(0);
}

body.drawer-open {
  overflow: hidden;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.drawer-avatar {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.drawer-user-name {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.drawer-user-rank {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 0.1rem;
}

.drawer-status-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-emerald);
  font-weight: 700;
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-drawer-close {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-drawer-close:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: var(--accent-rose);
  color: #fff;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  padding: 1rem 0;
  flex: 1;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid transparent;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 52px;
  outline: none;
}

.drawer-nav-item:hover,
.drawer-nav-item.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.25));
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.drawer-item-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.drawer-item-content {
  display: flex;
  flex-direction: column;
}

.drawer-item-title {
  font-family: var(--font-headline);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.drawer-item-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.drawer-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.drawer-stats-row {
  display: flex;
  justify-content: space-around;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.45);
  padding: 0.55rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-stats-row strong {
  color: #fff;
}

.drawer-app-info {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Floating Cyber Bottom Dock */
.mobile-bottom-dock {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-bottom-dock {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 480px;
    z-index: 1050;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-full);
    padding: 0.45rem 0.65rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(56, 189, 248, 0.25);
  }
}

.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-full);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 54px;
  outline: none;
}

.dock-icon {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.dock-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.dock-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.3));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.dock-btn.active .dock-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px var(--accent-cyan));
}

.dock-btn-more {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

.dock-btn-more:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: var(--accent-indigo);
  color: #fff;
}

/* Tab Panels */
.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-out forwards;
}

.tab-panel.active {
  display: block;
}

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

/* En-têtes de section */
.section-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(17, 24, 39, 0.9));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.section-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-indigo));
}

.section-banner h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-banner p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 850px;
}

/* ==========================================================================
   0. ARCADE RPG BOSS ARENA (Styles Pokémon / SecuSpark) — Widescreen Spacieux
   ========================================================================== */
.arena-hub-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

/* ==========================================================================
   0. ARCADE RPG BOSS ARENA — Command Banner HUD (Fidèle Maquette Stitch)
   ========================================================================== */
.arena-hub-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

/* Command Banner HUD Panoramique Pleine Largeur */
.player-rpg-hud.command-banner-hud {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.1);
  margin-bottom: 2rem;
  width: 100%;
}

@media (max-width: 1024px) {
  .player-rpg-hud.command-banner-hud {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
}

/* Section Gauche : Avatar Cyber & Identité */
.hud-left-identity {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: max-content;
}

.hud-cyber-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #0a0e17;
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
  font-size: 1.8rem;
  flex-shrink: 0;
}

.avatar-glow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), transparent);
  pointer-events: none;
}

.hud-identity-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hud-player-rank {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.2;
}

.hud-status-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hud-level-pill {
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.hud-sys-status {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sys-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* Section Centrale : Barre d'XP avec Segments Haute-Précision */
.hud-center-xp {
  flex: 1;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0.5rem;
}

.hud-xp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.35rem;
}

.hud-xp-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.hud-xp-readout.cyber-glow {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

.hud-xp-track {
  height: 10px;
  width: 100%;
  background: #0a0e17;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hud-xp-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #38bdf8 55%, #10b981 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  z-index: 1;
}

.hud-xp-segments {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 12%;
  pointer-events: none;
  z-index: 2;
}

.xp-notch {
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.18);
}

.hud-xp-footer {
  margin-top: 0.35rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.hud-next-grade-text strong {
  color: #fff;
  font-weight: 700;
}

.hud-xp-cost {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Section Droite : Capsules KPI & Pastille Diplomante */
.hud-right-kpis {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hud-kpi-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #0a0e17;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.hud-kpi-pill.gold {
  border-color: rgba(251, 191, 36, 0.25);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.06);
}

.hud-kpi-pill.emerald {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.06);
}

.hud-kpi-pill.cyan {
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.06);
}

.kpi-pill-icon {
  font-size: 0.95rem;
}

.kpi-pill-col {
  display: flex;
  flex-direction: column;
}

.kpi-pill-lbl {
  font-size: 0.62rem;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1;
}

.kpi-pill-val {
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
  line-height: 1.15;
}

.hud-kpi-pill.gold .kpi-pill-val { color: var(--accent-gold); }
.hud-kpi-pill.emerald .kpi-pill-val { color: var(--accent-emerald); }
.hud-kpi-pill.cyan .kpi-pill-val { color: var(--accent-cyan); }

/* Pastille Pulse Readiness */
.hud-readiness-pill.pulse-emerald {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.4);
  animation: pulse-emerald 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-emerald {
  0%, 100% {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2);
  }
  50% {
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 12px 0 rgba(16, 185, 129, 0.4);
  }
}

.readiness-icon {
  font-size: 0.82rem;
  color: var(--accent-emerald);
  font-weight: 900;
}

.readiness-text {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.74rem;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.btn-profile-shortcut {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-profile-shortcut:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(99, 102, 241, 0.3));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
  color: #fff;
  transform: translateX(2px);
}

/* ==========================================================================
   Sélecteur de Catégorie Tactique Cyber (Segmented Dock Bar)
   ========================================================================== */
.boss-category-switcher-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.boss-category-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  gap: 0.4rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .boss-category-switcher {
    flex-direction: column;
    border-radius: var(--radius-md);
    width: 100%;
  }
}

.cat-switch-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 0.55rem 1.15rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cat-switch-btn {
    width: 100%;
    justify-content: space-between;
    border-radius: var(--radius-sm);
  }
}

.cat-switch-btn:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.cat-switch-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.28));
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

.cat-switch-btn.memoire.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0.32));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

.cat-switch-btn.vocab.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.35));
  border-color: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.4);
}

.cat-btn-icon {
  font-size: 1rem;
}

.cat-btn-label {
  letter-spacing: -0.01em;
}

.cat-btn-count {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-weight: 700;
  transition: all 0.25s ease;
}

.cat-switch-btn.active .cat-btn-count {
  background: var(--accent-cyan);
  color: #0a0e17;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.cat-switch-btn.vocab.active .cat-btn-count {
  background: var(--accent-purple);
  color: #fff;
  border-color: var(--accent-purple);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

/* Tracker de Statut des Boss */
.boss-status-tracker {
  display: flex;
  align-items: center;
}

.boss-counter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  font-family: var(--font-mono);
  color: #e2e8f0;
  background: rgba(10, 14, 23, 0.75);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.tracker-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* ==========================================================================
   Grille des Boss (Full Widescreen Stretch & Auto-Fit)
   ========================================================================== */
.boss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 1.75rem;
  width: 100%;
}

.boss-select-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.boss-select-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.boss-select-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 28px rgba(56, 189, 248, 0.35);
  border-color: rgba(56, 189, 248, 0.65);
}

.boss-select-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 12px var(--accent-cyan);
}

.boss-select-card.defeated {
  border-color: rgba(16, 185, 129, 0.55);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.95));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 20px rgba(16, 185, 129, 0.2);
}

.boss-select-card.defeated::before {
  background: var(--accent-emerald);
}

.boss-card-top {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.boss-avatar-large {
  font-size: 2.6rem;
  width: 64px;
  height: 64px;
  background: rgba(10, 14, 23, 0.85);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

.boss-select-card:hover .boss-avatar-large {
  transform: scale(1.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.boss-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.boss-category-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.2rem;
}

.boss-category-badge.memoire {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.boss-category-badge.vocab {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.boss-category-badge.cyber_avance {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.boss-category-badge.linux {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.boss-category-badge.virtu_cloud {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.boss-category-badge.soc_terrain {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.boss-category-badge.reseau_appsec_gouv {
  background: rgba(2, 132, 199, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.boss-meta h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.boss-meta p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.boss-card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background: rgba(10, 14, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.boss-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
  text-align: center;
}

.boss-spec-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.boss-hp-tag {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--accent-rose);
  font-weight: 700;
}

.boss-timer-tag {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--accent-amber);
  font-weight: 700;
}

.boss-count-tag {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 700;
}

.boss-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.9rem;
  margin-top: auto;
}

.boss-action-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-cyan);
  transition: transform var(--transition-fast);
}

.boss-select-card:hover .boss-action-hint {
  transform: translateX(4px);
}

/* ==========================================================================
   Arène de Combat Active (Widescreen Cyber Battle Stadium)
   ========================================================================== */
.battle-arena-wrapper {
  background: radial-gradient(circle at 50% 25%, rgba(30, 41, 59, 0.95) 0%, rgba(10, 14, 23, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(56, 189, 248, 0.25);
  width: 100%;
}

.battle-arena-wrapper.shake {
  animation: screenShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes screenShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Combat Stage : Boss en Haut à Droite / Joueur en Bas à Gauche */
.battle-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
  gap: 2rem;
  position: relative;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 860px) {
  .battle-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

/* Boss Combatant Box (Top Right) */
.combatant-boss {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  position: relative;
}

@media (max-width: 860px) {
  .combatant-boss {
    grid-column: 1;
    align-items: center;
  }
}

/* Player Combatant Box (Bottom Left) */
.combatant-player {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: auto;
}

@media (max-width: 860px) {
  .combatant-player {
    align-items: center;
    margin-top: 1.5rem;
  }
}

/* Combatant Status HUD */
.combatant-hud {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.combatant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.combatant-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.combatant-lvl {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-gold);
}

/* Barres de Vie */
.hp-bar-container {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.hp-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.hp-bar-fill.warn { 
  background: linear-gradient(90deg, #f59e0b, #fbbf24); 
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.hp-bar-fill.danger { 
  background: linear-gradient(90deg, #f43f5e, #fb7185); 
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

.hp-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 600;
}

/* Sprite / Avatar Display */
.combatant-sprite {
  font-size: 4.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.25));
  transition: transform 0.2s ease;
  animation: spriteFloat 3s ease-in-out infinite;
}

@keyframes spriteFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.combatant-sprite.hit {
  animation: hitBlink 0.3s ease-in-out;
}

@keyframes hitBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.9) translate(-4px, 4px); filter: drop-shadow(0 0 20px var(--accent-rose)); }
}

/* Floating Damage Numbers */
.floating-damage {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-rose);
  text-shadow: 0 0 12px rgba(244, 63, 94, 0.9);
  pointer-events: none;
  animation: floatDamage 1s ease-out forwards;
  z-index: 50;
}

.floating-damage.crit {
  font-size: 2.2rem;
  color: var(--accent-gold);
  text-shadow: 0 0 20px rgba(245, 158, 11, 1);
}

@keyframes floatDamage {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 1; transform: translateY(-20px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-55px) scale(1); }
}

/* Compétences SOC Bar */
.battle-skills-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  flex-wrap: wrap;
}

.skill-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.skill-btn:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.skill-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: transparent;
}

/* Battle Dialogue Box */
.battle-dialogue-box {
  background: rgba(10, 14, 23, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem;
  min-height: 64px;
  display: flex;
  align-items: center;
  font-size: 1.02rem;
  color: #f1f5f9;
  line-height: 1.5;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Moves / Options Grid 2x2 Grand Format */
.battle-moves-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
}

@media (max-width: 860px) {
  .battle-moves-grid {
    grid-template-columns: 1fr;
  }
}

.move-btn {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.move-btn:hover:not(:disabled) {
  border-color: var(--accent-cyan);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(30, 41, 59, 0.95));
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.move-btn.disabled-5050 {
  opacity: 0.25;
  text-decoration: line-through;
  pointer-events: none;
}

.move-btn.correct {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: var(--accent-emerald) !important;
  color: #fff;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5) !important;
}

.move-btn.incorrect {
  background: rgba(244, 63, 94, 0.2) !important;
  border-color: var(--accent-rose) !important;
  color: #fff;
}

/* Tactical SOC Skills Bar */
.battle-skills-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.7);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.skill-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--accent-indigo);
}

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

/* Player Level & XP HUD */
.player-rpg-hud {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.xp-bar-container {
  flex: 1;
  max-width: 350px;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-indigo), var(--accent-cyan));
  width: 0%;
  transition: width 0.4s ease;
}

/* Modal de Victoire / Défaite */
.battle-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease-out;
}

.battle-modal-card {
  background: linear-gradient(135deg, #111827, #1e293b);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 520px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.4);
}

.battle-modal-card.defeat {
  border-color: var(--accent-rose);
  box-shadow: 0 0 35px rgba(244, 63, 94, 0.4);
}

.battle-modal-icon {
  font-size: 3.5rem;
}

/* ==========================================================================
   1. SIMULATEUR DE JURY D'ORAL (Styles)
   ========================================================================== */
.jury-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .jury-layout {
    grid-template-columns: 1fr;
  }
}

.jury-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jury-list {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
}

.jury-item-card {
  padding: 0.85rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.jury-item-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
}

.jury-item-card.active {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.jury-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.jury-item-tag {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-indicator.mastered { background: var(--accent-emerald); }
.status-indicator.partial { background: var(--accent-amber); }
.status-indicator.review { background: var(--accent-rose); }

.jury-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

/* Zone Principale du Jury */
.jury-stage {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.jury-question-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.jury-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-pillar { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-diff { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }

.jury-question-text {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  margin-bottom: 0.75rem;
}

.jury-context-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-left: 2px solid var(--accent-indigo);
  padding-left: 0.75rem;
  font-style: italic;
}

/* Zone Prise de Notes */
.notes-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notes-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notes-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  resize: vertical;
  min-height: 90px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.notes-textarea:focus {
  border-color: var(--border-focus);
}

/* Grille du Jury */
.rubric-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 0.8);
  display: none;
}

.rubric-container.visible {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.rubric-header {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15));
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-cyan);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rubric-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rubric-block h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rubric-block.key-points h4 { color: var(--accent-emerald); }
.rubric-block.traps h4 { color: var(--accent-rose); }
.rubric-block.mindset h4 { color: var(--accent-amber); }

.rubric-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rubric-block li {
  font-size: 0.9rem;
  color: #cbd5e1;
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.45;
}

.rubric-block.key-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-emerald);
  font-weight: bold;
}

.rubric-block.traps li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--accent-rose);
  font-weight: bold;
}

.rubric-block.mindset p {
  font-size: 0.9rem;
  color: #cbd5e1;
  background: rgba(245, 158, 11, 0.08);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-amber);
}

/* Actions Jury */
.jury-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  color: #fff;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.assessment-btns {
  display: flex;
  gap: 0.5rem;
}

.btn-score {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-score.mastered { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.btn-score.mastered:hover { background: rgba(16, 185, 129, 0.3); }

.btn-score.partial { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.btn-score.partial:hover { background: rgba(245, 158, 11, 0.3); }

.btn-score.review { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); border: 1px solid rgba(244, 63, 94, 0.3); }
.btn-score.review:hover { background: rgba(244, 63, 94, 0.3); }

/* ==========================================================================
   2. FLASHCARDS & RAPPEL ACTIF (Studio 65/35, Lexique & Télémétrie)
   ========================================================================== */

/* Sélecteur de Domaines Tactique */
.fc-domain-switcher-wrapper {
  margin-bottom: 1.75rem;
  width: 100%;
}

.fc-domain-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.35rem 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.fc-domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  outline: none;
}

.fc-domain-pill:hover:not(.active) {
  color: #fff;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
}

.fc-domain-pill.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.3));
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.fc-pill-icon {
  font-size: 0.95rem;
}

.fc-pill-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.55);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  transition: all 0.25s ease;
}

.fc-domain-pill.active .fc-pill-badge {
  background: var(--accent-cyan);
  color: #0a0e17;
  border-color: var(--accent-cyan);
  font-weight: 800;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* Grille Split Studio (65% / 35%) */
.fc-studio-layout {
  display: grid;
  grid-template-columns: 65% calc(35% - 1.75rem);
  gap: 1.75rem;
  width: 100%;
  align-items: start;
}

@media (max-width: 1100px) {
  .fc-studio-layout {
    grid-template-columns: 1fr;
  }
}

/* Colonne Gauche : Scène Holographique & Contrôles */
.fc-stage-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: 100%;
}

.card-viewport.studio-card {
  perspective: 1400px;
  width: 100%;
  height: 420px;
}

.flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.flip-card.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.15);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-face:hover {
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.6);
}

.card-front {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(10, 14, 23, 0.98));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card-back {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(20, 15, 45, 0.96));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: rotateY(180deg);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.2);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-category {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.card-category.verso {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
}

.card-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-hint kbd {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin: 1rem 0;
  overflow-y: auto;
}

.card-front .card-body h3 {
  font-family: var(--font-headline);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.45;
  color: #f8fafc;
  text-align: center;
  max-width: 92%;
}

.fc-back-content {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
}

.fc-back-item {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  line-height: 1.5;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.fc-back-item strong {
  color: var(--accent-cyan);
  font-weight: 700;
}

.fc-bullet {
  color: var(--accent-indigo);
  font-size: 0.9rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.fc-back-p {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  font-size: 0.8rem;
}

.fc-counter-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fc-recall-tag {
  color: #a5b4fc;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.card-face-tag.recto {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
}

.card-face-tag.verso {
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
}

/* Contrôles Flashcard */
.fc-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
  flex-wrap: wrap;
}

.fc-btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

.fc-rate-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-content: center;
  flex: 1;
}

.fc-btn-rate {
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.fc-btn-rate.review {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.15);
}

.fc-btn-rate.review:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: var(--accent-rose);
  color: #fff;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.35);
  transform: translateY(-2px);
}

.fc-btn-rate.mastered {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.fc-btn-rate.mastered:hover {
  background: rgba(16, 185, 129, 0.35);
  border-color: var(--accent-emerald);
  color: #fff;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

.fc-aux-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fc-btn-shuffle {
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
}

/* Raccourcis Clavier Chips */
.fc-shortcuts-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 100%;
}

.shortcut-chip kbd {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: var(--text-secondary);
  margin-right: 0.3rem;
}

/* Colonne Droite : Index du Lexique & Télémétrie */
.fc-lexicon-sidebar {
  background: rgba(13, 19, 33, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 640px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(56, 189, 248, 0.15);
}

.fc-mastery-card {
  padding: 1.4rem 1.6rem;
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fc-mastery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.85rem;
}

.fc-mastery-header h4 {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.fc-mastery-domain-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 0.2rem;
}

.fc-mastery-score {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.fc-mastery-pct {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--accent-cyan);
  margin-left: 0.3rem;
}

.fc-progress-track {
  height: 10px;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #38bdf8 60%, #10b981 100%);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.9);
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-progress-notches {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20%;
  pointer-events: none;
}

.p-notch {
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
}

.fc-search-box {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(10, 14, 23, 0.65);
}

.fc-search-box svg {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.fc-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.98rem;
  font-family: var(--font-sans);
  width: 100%;
}

.fc-search-box input::placeholder {
  color: #94a3b8;
  font-size: 0.92rem;
}

/* Liste Scrollable Spacieuse des Fiches du Lexique */
.fc-lexicon-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.4) rgba(15, 23, 42, 0.6);
}

.fc-lexicon-item {
  background: rgba(22, 30, 49, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 110px;
}

.fc-lexicon-item.status-mastered {
  border-left-color: var(--accent-emerald);
}

.fc-lexicon-item.status-review {
  border-left-color: var(--accent-rose);
}

.fc-lexicon-item:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.5);
  border-left-color: var(--accent-cyan);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(56, 189, 248, 0.25);
}

.fc-lexicon-item.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.3));
  border-color: var(--accent-cyan);
  border-left-color: var(--accent-cyan);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.4);
}

.fc-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.fc-item-title {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.fc-lexicon-item:hover .fc-item-title {
  color: var(--accent-cyan);
}

.fc-item-preview {
  font-size: 0.96rem;
  color: #e2e8f0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  margin-top: 0.2rem;
}

.fc-item-status-badge {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.fc-item-status-badge.mastered {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.fc-item-status-badge.review {
  background: rgba(244, 63, 94, 0.22);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.5);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}

.fc-item-status-badge.none {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-dot-mini {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.status-dot-mini.mastered {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.status-dot-mini.review {
  background: var(--accent-rose);
  box-shadow: 0 0 8px var(--accent-rose);
}

.status-dot-mini.none {
  background: var(--text-muted);
}

.fc-lexicon-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem;
  text-align: center;
  gap: 0.85rem;
  color: #94a3b8;
}

.fc-lexicon-empty span {
  font-size: 2.4rem;
  opacity: 0.6;
}

.fc-lexicon-empty p {
  font-size: 0.98rem;
  line-height: 1.5;
}

/* ==========================================================================
   3. SCÉNARIOS D'INCIDENTS (Styles)
   ========================================================================== */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: all var(--transition-normal);
}

.scenario-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.scenario-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.scenario-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.scenario-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Zone d'Exécution du Scénario */
.scenario-play-area {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.terminal-box {
  background: #050811;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-topbar {
  background: #0e1626;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #f59e0b; }
.term-dot.green { background: #10b981; }

.term-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.terminal-content {
  padding: 1rem;
  font-size: 0.85rem;
  color: #38bdf8;
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
}

.step-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-option-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.step-option-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-focus);
}

.step-option-btn.correct {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: #fff;
}

.step-option-btn.incorrect {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--accent-rose);
  color: #fff;
}

/* ==========================================================================
   4. SPRINT QCM & QUIZ (Styles)
   ========================================================================== */
.quiz-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-indigo), var(--accent-cyan));
  transition: width 0.3s ease;
}

.quiz-question-title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.quiz-explanation-box {
  background: rgba(15, 23, 42, 0.8);
  border-left: 3px solid var(--accent-cyan);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.quiz-explanation-box.visible {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

/* ==========================================================================
   5. RÉFÉRENTIELS & MATRICES (Styles)
   ========================================================================== */
.matrices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .matrices-grid {
    grid-template-columns: 1fr;
  }
}

.matrix-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.matrix-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.timeline-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.timeline-item span {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-indigo);
}

.timeline-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* SWOT Grid */
.swot-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.swot-quadrant {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.swot-quadrant h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.swot-quadrant.f h4 { color: var(--accent-emerald); }
.swot-quadrant.w h4 { color: var(--accent-rose); }
.swot-quadrant.o h4 { color: var(--accent-cyan); }
.swot-quadrant.t h4 { color: var(--accent-amber); }

.swot-quadrant ul {
  list-style: none;
  font-size: 0.82rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.swot-quadrant li {
  padding-left: 0.75rem;
  position: relative;
}

.swot-quadrant li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ==========================================================================
   ARÈNE RPG BOSS BATTLE — Styles Pokémon & SecuSpark
   ========================================================================== */

/* Hub de sélection des Boss */
.boss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.boss-select-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.boss-select-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
  transform: translateY(-2px);
}

.boss-select-card.defeated {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.06);
}

.boss-avatar-large {
  font-size: 2.4rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.boss-meta h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.boss-meta p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
}

.boss-hp-tag {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent-rose);
}

/* XP Bar du joueur */
.player-rpg-hud {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.xp-bar-container {
  flex: 1;
  height: 10px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-purple));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* Arène de combat active */
.battle-arena-wrapper {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.08);
}

/* Stage de combat (disposition Pokémon) */
.battle-stage {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0;
  min-height: 220px;
  position: relative;
}

/* Boss en haut à droite */
.combatant-boss {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 1.5rem;
}

/* Joueur en bas à gauche */
.combatant-player {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 1.5rem;
}

/* HUD de combattant (nom + barre PV) */
.combatant-hud {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  min-width: 260px;
  max-width: 360px;
}

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

.combatant-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}

.combatant-lvl {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

/* Barres de PV */
.hp-bar-container {
  height: 14px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.hp-bar-fill.warn {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.hp-bar-fill.danger {
  background: linear-gradient(90deg, #ef4444, #f87171);
  animation: hp-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes hp-pulse {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

.hp-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Sprites de combattant */
.combatant-sprite {
  font-size: 3.5rem;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.08), transparent);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform var(--transition-fast);
}

.combatant-sprite.hit {
  animation: sprite-hit 0.35s ease;
}

@keyframes sprite-hit {
  0% { transform: translateX(0); filter: brightness(2); }
  20% { transform: translateX(-12px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); filter: brightness(1); }
}

/* Floating Damage Numbers */
.floating-damage {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent-rose);
  text-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
  animation: float-damage 1s ease-out forwards;
  pointer-events: none;
  white-space: nowrap;
  z-index: 20;
}

.floating-damage.crit {
  font-size: 1.4rem;
  color: var(--accent-gold);
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

@keyframes float-damage {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-60px); }
}

/* Screen Shake */
.battle-arena-wrapper.shake {
  animation: screen-shake 0.35s ease;
}

@keyframes screen-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-6px) rotate(-0.5deg); }
  30% { transform: translateX(5px) rotate(0.5deg); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}

/* Compétences SOC tactiques */
.battle-skills-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.skill-btn {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--accent-indigo);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.skill-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--accent-indigo);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.skill-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Boîte de dialogue de combat */
.battle-dialogue-box {
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.6;
  min-height: 60px;
}

.battle-dialogue-box p {
  margin: 0;
}

/* Grille des mouvements / choix (2x2) */
.battle-moves-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.move-btn {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  background: rgba(30, 41, 59, 0.85);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-size: 0.85rem;
  color: #e2e8f0;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.move-btn:hover:not(:disabled):not(.disabled-5050) {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.move-btn.correct {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.move-btn.incorrect {
  border-color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.12);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.2);
}

.move-btn.disabled-5050 {
  opacity: 0.2;
  pointer-events: none;
  text-decoration: line-through;
}

.move-btn:disabled {
  cursor: default;
}

/* Audio Toggle Button */
.btn-audio-toggle {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.btn-audio-toggle:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.15);
}

/* Modale de victoire / défaite */
.battle-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: modal-fade-in 0.3s ease;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.battle-modal-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  max-width: 520px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 0 60px rgba(251, 191, 36, 0.15);
  animation: modal-scale-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.battle-modal-card.defeat {
  border-color: var(--accent-rose);
  box-shadow: 0 0 60px rgba(244, 63, 94, 0.15);
}

@keyframes modal-scale-in {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.battle-modal-icon {
  font-size: 3.5rem;
}

/* Onglet RPG mis en avant */
.nav-tab-btn.rpg-special {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.3);
}

.nav-tab-btn.rpg-special.active {
  background: rgba(251, 191, 36, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.12);
}

/* ==========================================================================
   0.5. PANEL : PROFIL & PROGRESSION MODULAIRE (Concept 2 - Split Dashboard)
   ========================================================================== */
.profile-dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  width: 100%;
}

@media (max-width: 1100px) {
  .profile-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Colonne Gauche : Carte Principale de Carrière */
.profile-main-card {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.profile-hero-header {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(56, 189, 248, 0.15);
}

.profile-holo-avatar {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.3));
  border: 2px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.45);
  flex-shrink: 0;
}

.profile-avatar-emoji {
  font-size: 3rem;
}

.profile-hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.profile-id-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-block;
  align-self: flex-start;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.profile-hero-rank {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.profile-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-track-tag {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Carte XP Détaillée */
.profile-xp-detailed-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.profile-xp-detailed-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.profile-xp-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 700;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.2rem;
}

.profile-xp-huge {
  font-size: 1.9rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #fff;
  line-height: 1;
}

.profile-xp-denom {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.profile-xp-pct-pill {
  font-size: 1.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.xp-bar-container.large {
  height: 16px;
}

.profile-xp-hint-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(10, 14, 23, 0.65);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  color: #f8fafc;
  font-size: 0.88rem;
}

.profile-xp-hint-box .hint-icon {
  font-size: 1.4rem;
  color: var(--accent-gold);
}

.profile-xp-hint-box p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  margin-top: 0.15rem;
}

/* Arbre des 5 Grades d'Ingénieur (Career Ladder) */
.profile-career-ladder {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.profile-career-ladder h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.ladder-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ladder-step {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: rgba(10, 14, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.2rem;
  transition: all var(--transition-fast);
}

.ladder-step.current {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.15));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.ladder-step.unlocked {
  border-color: rgba(16, 185, 129, 0.35);
}

.ladder-step.locked {
  opacity: 0.5;
}

.ladder-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 50px;
}

.ladder-dot {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.ladder-step.current .ladder-dot {
  background: var(--accent-cyan);
  color: #0a0e17;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.ladder-step.unlocked .ladder-dot {
  background: var(--accent-emerald);
  color: #0a0e17;
}

.ladder-step.locked .ladder-dot {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.ladder-lvl-tag {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 700;
}

.ladder-step-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.current-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: var(--accent-cyan);
  color: #0a0e17;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  font-weight: 800;
}

.ladder-step-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Colonne Droite : KPI Sidebar & Readiness */
.profile-kpi-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Carte Indice de Préparation */
.readiness-kpi-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(56, 189, 248, 0.2);
}

.readiness-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.readiness-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.readiness-gauge-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.readiness-gauge-val {
  font-size: 2.6rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
  line-height: 1;
}

.readiness-gauge-bar {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.readiness-gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #38bdf8 60%, #10b981 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.readiness-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

/* 3 Tuiles KPI Dédiées */
.kpi-detail-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all var(--transition-fast);
}

.kpi-detail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.kpi-detail-card.gold { border-color: rgba(251, 191, 36, 0.3); }
.kpi-detail-card.emerald { border-color: rgba(16, 185, 129, 0.3); }
.kpi-detail-card.cyan { border-color: rgba(56, 189, 248, 0.3); }

.kpi-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.kpi-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.kpi-icon-wrap.gold { background: rgba(251, 191, 36, 0.15); border: 1px solid rgba(251, 191, 36, 0.35); }
.kpi-icon-wrap.emerald { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35); }
.kpi-icon-wrap.cyan { background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.35); }

.kpi-card-header h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.kpi-card-header p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.kpi-score {
  margin-left: auto;
  font-size: 1.25rem;
  font-weight: 900;
  font-family: var(--font-mono);
}

.kpi-score.gold { color: var(--accent-gold); text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }
.kpi-score.emerald { color: var(--accent-emerald); text-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
.kpi-score.cyan { color: var(--accent-cyan); text-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }

.kpi-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.5rem;
}

.kpi-breakdown-row strong {
  color: #fff;
}

.kpi-mini-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.kpi-mini-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.kpi-mini-fill.gold { background: var(--accent-gold); box-shadow: 0 0 6px #fbbf24; }
.kpi-mini-fill.emerald { background: var(--accent-emerald); box-shadow: 0 0 6px #10b981; }
.kpi-mini-fill.cyan { background: var(--accent-cyan); box-shadow: 0 0 6px #38bdf8; }

/* ==========================================================================
   OPTIMISATIONS MOBILES & TOUCH (SMARTPHONE, IPHONE & ANDROID)
   ========================================================================== */
@media (max-width: 768px) {
  /* Navigation Bar en haut sur mobile */
  .app-sidebar {
    padding: 0.75rem 1rem;
  }
  .brand-area {
    gap: 0.5rem;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
  }
  .brand-title {
    font-size: 0.95rem;
  }
  .nav-tabs {
    gap: 0.35rem;
  }
  .nav-tab-btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .main-content {
    padding: 1rem 0.85rem 2.5rem;
  }

  /* Command Banner HUD sur mobile */
  .hud-command-banner {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }
  .hud-banner-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .hud-profile-left {
    width: 100%;
  }
  .hud-xp-track-block {
    width: 100%;
  }
  .hud-stats-and-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .hud-kpi-group {
    justify-content: space-between;
    width: 100%;
  }
  .hud-readiness-pill {
    justify-content: center;
    width: 100%;
  }
  .btn-profile-shortcut {
    width: 100%;
    text-align: center;
  }

  /* Flashcards Studio sur mobile */
  .card-viewport.studio-card {
    height: 360px;
  }
  .card-face {
    padding: 1.35rem 1.15rem;
  }
  .card-front .card-body h3 {
    font-size: 1.22rem;
    line-height: 1.4;
  }
  .fc-control-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .fc-rate-group {
    width: 100%;
    gap: 0.5rem;
  }
  .fc-btn-rate {
    flex: 1;
    justify-content: center;
    padding: 0.75rem 0.5rem;
  }
  .fc-btn-nav {
    width: 100%;
    justify-content: center;
  }
  .fc-aux-controls {
    width: 100%;
    justify-content: space-between;
  }
  .fc-lexicon-sidebar {
    height: 480px;
  }

  /* Profil & Progression sur mobile */
  .profile-layout-grid {
    grid-template-columns: 1fr;
  }

  /* Grille des Boss */
  .boss-grid {
    grid-template-columns: 1fr;
  }

  .battle-moves-grid {
    grid-template-columns: 1fr;
  }

  .combatant-boss,
  .combatant-player {
    flex-direction: column;
    align-items: center;
  }

  .combatant-hud {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }

  .battle-skills-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Footer */
.app-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* Utilitaires */
.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-amber { color: var(--accent-amber); }
.text-rose { color: var(--accent-rose); }
.hidden { display: none !important; }
