/* ==========================================================
   STRATEGIC INTELLIGENCE LAB - SILA 2026
   Core Stylesheet (Mobile-First, Responsive & Modern Dark UI)
   ========================================================== */

:root {
  --bg-primary: #0b1120;
  --bg-surface: #111827;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(245, 158, 11, 0.3);
  
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --primary-light: rgba(245, 158, 11, 0.15);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --success: #10b981;
  --danger: #ef4444;
  --info: #3b82f6;

  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navbar */
.app-header {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, #d97706 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #000;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1.2;
}

.logo-text span {
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher Pills */
.lang-switcher {
  display: flex;
  background: var(--bg-card);
  border-radius: 50px;
  padding: 3px;
  border: 1px solid var(--border-color);
}

.lang-pill {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-pill.active {
  background: var(--primary);
  color: #000;
}

/* Notification Bell */
.notif-bell {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid var(--border-highlight);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 30%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 40px;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #d97706 100%);
  color: #000;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -5px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-block {
  width: 100%;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s;
}

.feature-box:hover {
  border-color: var(--border-highlight);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-box h4 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Form Cards */
.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 540px;
  margin: 40px auto;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input, .form-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-top: 10px;
}

/* Test Cards */
.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.test-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s;
}

.test-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-surface) 100%);
}

.badge-featured {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

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

.test-header h3 {
  font-size: 19px;
  color: #fff;
}

.test-difficulty-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.test-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.test-meta {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-dim);
}

.test-meta strong {
  color: #fff;
}

/* Test Arena View */
.arena-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 760px;
  margin: 30px auto;
  box-shadow: var(--shadow-lg);
}

.arena-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dimension-badge {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border-highlight);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg-card);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 100%);
  width: 0%;
  transition: width 0.3s ease;
}

/* Timer Circle */
.timer-widget {
  position: relative;
  width: 54px;
  height: 54px;
}

.timer-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.timer-bg {
  fill: none;
  stroke: var(--bg-card);
  stroke-width: 3.5;
}

.timer-progress {
  fill: none;
  stroke: var(--success);
  stroke-width: 3.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
}

.timer-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

/* Scenario Box */
.scenario-box {
  background: rgba(59, 130, 246, 0.08);
  border-left: 4px solid var(--info);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 14px;
  color: #cbd5e1;
}

.question-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
  line-height: 1.4;
}

/* Options */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  color: #f1f5f9;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  transition: all 0.2s;
  width: 100%;
}

.option-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.option-card.selected {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.option-badge {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--primary);
}

.option-card.selected .option-badge {
  background: var(--primary);
  color: #000;
}

/* Results View */
.result-header-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin: 30px 0;
}

.score-main {
  font-size: 64px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.score-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.indices-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.index-item h5 {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.index-item span {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.profile-archetype-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 30px;
  text-align: center;
}

.profile-tag {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.profile-title {
  font-family: var(--font-heading);
  font-size: 28px;
  color: #fff;
  margin-bottom: 16px;
}

.profile-description {
  font-size: 15px;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto;
}

/* Radar & Strengths Grid */
.results-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.radar-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.radar-wrapper h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: #fff;
}

.strengths-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.strength-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

.dev-tag {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

/* Book Section */
.book-showcase-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.book-badge {
  background: #4338ca;
  color: #e0e7ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 50px;
  align-self: flex-start;
}

.book-quote-box {
  font-size: 19px;
  font-style: italic;
  color: #fde68a;
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin: 16px 0;
}

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

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
}

/* Notifications Drawer */
.notifications-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  z-index: 90;
  box-shadow: var(--shadow-lg);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

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

.notif-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  cursor: pointer;
}

.notif-item.unread {
  border-color: var(--primary);
  background: rgba(245, 158, 11, 0.05);
}

/* Toast */
.app-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: #000;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  transition: all 0.3s ease;
}

.app-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.95);
  z-index: 150;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--bg-card);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer */
.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
  padding: 24px 0;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero h2 { font-size: 28px; }
  .arena-card { padding: 20px; }
  .form-card { padding: 24px; }
  .score-main { font-size: 48px; }
}

/* ==========================================================
   KENZY NUMÉRISATION & CYBERSÉCURITÉ BRAND SHOWCASE
   ========================================================== */
.kenzy-brand-card {
  margin-top: 35px;
  background: radial-gradient(circle at 85% 20%, rgba(0, 229, 255, 0.1) 0%, rgba(7, 14, 26, 0.96) 100%);
  border: 1.5px solid rgba(0, 229, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 229, 255, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.kenzy-brand-card:hover {
  border-color: rgba(0, 229, 255, 0.65);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 229, 255, 0.22);
  transform: translateY(-2px);
}

.kenzy-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.4);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: #00e5ff;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.kenzy-dot {
  width: 8px;
  height: 8px;
  background: #00e5ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00e5ff, 0 0 18px #00e5ff;
}

.kenzy-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.kenzy-text {
  flex: 1 1 500px;
}

.kenzy-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 40%, #bae6fd 70%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kenzy-desc {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 14px;
}

.kenzy-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #94a3b8;
  font-family: monospace;
}

.kenzy-action {
  flex-shrink: 0;
}

.btn-kenzy {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #00e5ff;
  color: #030712 !important;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.45);
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.btn-kenzy:hover {
  background: #38bdf8;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.7);
  transform: translateY(-2px) scale(1.02);
  color: #000000 !important;
}

.btn-kenzy .btn-arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.btn-kenzy:hover .btn-arrow {
  transform: translate(3px, -3px);
}
