/* ==========================================================================
   ATLAS XP - DESIGN SYSTEM OFFICIEL & EXPÉRIENCE UTILISATEUR 2.0
   Version: 2.0 (Octobre 2026) - Atlas Acquisition
   Direction Artistique: Cyber Obsidian Luxury, Rouge Atlas (#E63946), Or Gamifié, Emerald Neon
   Typographie: Plus Jakarta Sans
   Accessibilité: WCAG 2.2 AA (Cibles tactiles >= 48px, contrastes élevés)
   ========================================================================== */

:root {
  /* Palette Principale (Obsidian Dark) */
  --atlas-bg: #080a10;
  --atlas-bg-elevated: #0f131d;
  --atlas-card-bg: rgba(16, 20, 31, 0.82);
  --atlas-card-border: rgba(255, 255, 255, 0.08);
  --atlas-card-border-hover: rgba(230, 57, 70, 0.45);
  
  /* Textes & Contrastes WCAG */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #080a10;

  /* Couleurs Gamification & Actions */
  --atlas-red: #e63946;
  --atlas-red-bright: #ff4d5a;
  --atlas-red-glow: rgba(230, 57, 70, 0.5);
  --atlas-red-subtle: rgba(230, 57, 70, 0.12);

  --atlas-green: #10b981;
  --atlas-green-bright: #34d399;
  --atlas-green-glow: rgba(16, 185, 129, 0.45);
  --atlas-green-subtle: rgba(16, 185, 129, 0.12);

  --atlas-gold: #f59e0b;
  --atlas-gold-bright: #fbbf24;
  --atlas-gold-glow: rgba(245, 158, 11, 0.45);
  --atlas-gold-subtle: rgba(245, 158, 11, 0.14);

  --atlas-blue: #3b82f6;
  --atlas-blue-bright: #60a5fa;
  --atlas-blue-glow: rgba(59, 130, 246, 0.4);
  --atlas-blue-subtle: rgba(59, 130, 246, 0.14);

  /* Typographie & Rayons */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Ombres & Lueurs Néon (Specular Glassmorphism 2.0) */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 14px 34px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: inset 0 1px 0 0 rgba(255, 255, 255, 0.16), 0 24px 55px -8px rgba(0, 0, 0, 0.8);
  --shadow-neon-red: 0 10px 32px rgba(230, 57, 70, 0.45);
  --shadow-neon-green: 0 10px 32px rgba(16, 185, 129, 0.4);
  --shadow-neon-gold: 0 10px 32px rgba(245, 158, 11, 0.4);
}

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

html {
  font-family: var(--font-main);
  background-color: var(--atlas-bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #ffffff;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: 
    radial-gradient(circle at 18% 12%, rgba(230, 57, 70, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 82% 22%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--atlas-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ==========================================================================
   HEADER PRINCIPAL UNIQUE ET ÉPURÉ (TOP NAVIGATION)
   ========================================================================== */

.saas-top-header {
  background: rgba(10, 13, 22, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  position: sticky;
  top: 0;
  z-index: 1200;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65);
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1440px;
  margin: 0 auto;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.saas-logo {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  position: relative;
  transition: transform 0.2s ease;
}

.saas-logo:hover {
  transform: scale(1.02);
}

.saas-logo span {
  background: linear-gradient(135deg, #ff4d5a 0%, #e63946 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 2px;
  position: relative;
}

.saas-logo-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(230, 57, 70, 0.18);
  color: #ff6b6b;
  border: 1px solid rgba(230, 57, 70, 0.4);
  border-radius: var(--radius-full);
  padding: 2px 7px;
  margin-left: 8px;
  box-shadow: 0 0 14px rgba(230, 57, 70, 0.3);
}

.tenant-badge {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.live-beacon-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   MENU DÉROULANT DE NAVIGATION (DÉPEND DU PROFIL)
   ========================================================================== */

.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 6px;
}

.nav-dropdown-trigger {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.nav-dropdown-trigger:hover,
.nav-dropdown-wrapper.open .nav-dropdown-trigger {
  background: rgba(230, 57, 70, 0.14);
  border-color: rgba(230, 57, 70, 0.5);
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
  transform: translateY(-1px);
}

.dropdown-trigger-icon {
  font-size: 16px;
  line-height: 1;
}

.dropdown-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-secondary);
}

.nav-dropdown-wrapper.open .dropdown-chevron {
  transform: rotate(180deg);
  color: #ffffff;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 330px;
  background: rgba(14, 18, 29, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 40px rgba(230, 57, 70, 0.15);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1500;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-wrapper.open .nav-dropdown-menu {
  display: flex;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nav-dropdown-group {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.nav-dropdown-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.nav-group-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 6px 12px 4px 12px;
}

.nav-drop-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.nav-drop-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  transform: translateX(3px);
}

.nav-drop-item.active {
  background: rgba(230, 57, 70, 0.16);
  border-color: rgba(230, 57, 70, 0.45);
  color: #ffffff;
  box-shadow: inset 3px 0 0 var(--atlas-red);
}

.nav-item-emoji {
  font-size: 18px;
  line-height: 1;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.nav-drop-item.active .nav-item-emoji {
  background: rgba(230, 57, 70, 0.2);
  border-color: rgba(230, 57, 70, 0.5);
}

.nav-item-info {
  flex: 1;
}

.nav-item-name {
  font-size: 13px;
  font-weight: 700;
  color: inherit;
  line-height: 1.2;
  margin-bottom: 2px;
}

.nav-drop-item.active .nav-item-name {
  color: #ff6b6b;
}

.nav-item-sub {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.25;
}

/* Actions Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-add-tenant {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-add-tenant:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55);
}

.btn-sync-simulation {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
  transition: all 0.2s ease;
}

.btn-sync-simulation:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.55);
}

.btn-sound-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sound-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.sidebar-user-avatar {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.btn-logout {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
}

.btn-logout:hover {
  color: #ffffff;
  background: rgba(230, 57, 70, 0.15);
  border-color: var(--atlas-red);
}

/* ==========================================================================
   CONTENEUR PRINCIPAL DE TRAVAIL
   ========================================================================== */

.app-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px;
  flex: 1;
}

@media (min-width: 900px) {
  .app-container.wide-mode {
    max-width: 1180px;
  }
}

/* ==========================================================================
   VUE 1 : ESPACE COMMERCIAL — "MA JOURNÉE"
   =====================================================================/* Carte Profil & XP */
.commercial-header {
  background: var(--atlas-card-bg);
  border: 1px solid var(--atlas-card-border);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 16px 36px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.commercial-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--atlas-red), var(--atlas-gold), var(--atlas-green));
}

.user-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.greeting-text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.greeting-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.level-tag {
  font-family: var(--font-display);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.12));
  color: #fbbf24;
  font-weight: 800;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 18px rgba(245, 158, 11, 0.25);
  letter-spacing: 0.02em;
}

.xp-bar-container {
  margin-top: 10px;
}

.xp-bar-labels {
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.streak-pill {
  font-family: var(--font-mono);
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.16);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.xp-track {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6);
}

.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #e63946 0%, #ff6b6b 70%, #ff8585 100%);
  border-radius: var(--radius-full);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 16px rgba(230, 57, 70, 0.7);
  position: relative;
}

.xp-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: xpGlowMove 2.5s infinite;
}

@keyframes xpGlowMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Grille des 3 capsules de missions */
.daily-missions-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.mission-stat-capsule {
  background: var(--atlas-card-bg);
  border: 1px solid var(--atlas-card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mission-stat-capsule:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), var(--shadow-md);
}

.mission-stat-capsule.to-call {
  border-left: 4px solid var(--atlas-red);
}
.mission-stat-capsule.to-call:hover {
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 10px 25px rgba(230, 57, 70, 0.25);
}

.mission-stat-capsule.to-recall {
  border-left: 4px solid var(--atlas-blue);
}
.mission-stat-capsule.to-recall:hover {
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 10px 25px rgba(59, 130, 246, 0.25);
}

.mission-stat-capsule.to-confirm {
  border-left: 4px solid var(--atlas-green);
}
.mission-stat-capsule.to-confirm:hover {
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 10px 25px rgba(16, 185, 129, 0.25);
}

.stat-icon {
  font-size: 26px;
  line-height: 1;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-text {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   CARTE MISSION PRIORITAIRE (LE CŒUR DU JEU)
   ========================================================================== */

.hero-mission-card {
  background: linear-gradient(180deg, rgba(30, 36, 56, 0.94) 0%, rgba(16, 20, 32, 0.98) 100%);
  border: 1.5px solid rgba(230, 57, 70, 0.45);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-radius: var(--radius-xl);
  padding: 30px 28px;
  margin-bottom: 26px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 50px rgba(230, 57, 70, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-mission-card.urgent-border {
  border-color: var(--atlas-red);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 24px 65px rgba(0, 0, 0, 0.8), 0 0 60px rgba(230, 57, 70, 0.3);
}

.hero-mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4d5a, #e63946, #c2192d);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-quest-badge {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ff6b6b;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-badge-urgent {
  font-family: var(--font-display);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 18px rgba(239, 68, 68, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: beaconPing 1.4s infinite;
}

@keyframes beaconPing {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.prospect-profile-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.prospect-avatar-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.prospect-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.prospect-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-tag.tag-service {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.35);
}

.meta-tag.tag-phone {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.3);
}

.meta-tag.tag-source {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.3);
}

/* Compte à rebours défi réactivité (5 minutes - High Tech Cyber Capsule) */
.countdown-box {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.12) 0%, rgba(20, 24, 38, 0.75) 100%);
  border: 1.5px solid rgba(230, 57, 70, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.countdown-box.delayed {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(20, 24, 38, 0.75) 100%);
  border-color: rgba(245, 158, 11, 0.45);
}

.countdown-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.countdown-icon {
  font-size: 22px;
}

.countdown-text {
  font-size: 13px;
  font-weight: 700;
  color: #fca5a5;
  line-height: 1.3;
}

.countdown-box.delayed .countdown-text {
  color: #fde68a;
}

.countdown-timer {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  background: #05070d;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(230, 57, 70, 0.55);
  letter-spacing: 0.08em;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(230, 57, 70, 0.35);
  text-shadow: 0 0 12px rgba(255, 77, 90, 0.65);
  display: inline-block;
  min-width: 105px;
  text-align: center;
}

.countdown-box.delayed .countdown-timer {
  border-color: rgba(245, 158, 11, 0.65);
  color: #fbbf24;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.35);
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

/* LE BOUTON DOMINANT D'APPEL GÉANT (Tactile > 64px, accessible au pouce) */
.btn-dominant-call {
  font-family: var(--font-display);
  width: 100%;
  min-height: 68px;
  background: linear-gradient(135deg, #ff4d5a 0%, #e63946 55%, #b31627 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 40px rgba(230, 57, 70, 0.55);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}

.btn-dominant-call::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  animation: buttonSheen 3.5s infinite;
}

@keyframes buttonSheen {
  0% { left: -100%; }
  35% { left: 150%; }
  100% { left: 150%; }
}

.btn-dominant-call:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 42px rgba(230, 57, 70, 0.7);
  background: linear-gradient(135deg, #ff5e6a 0%, #ee3543 55%, #a81223 100%);
}

.btn-dominant-call:active {
  transform: scale(0.98);
}

.btn-dominant-call.pulse-cta {
  animation: pulseCta 2.2s infinite;
}

@keyframes pulseCta {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
  70% { box-shadow: 0 0 0 16px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* État vide / Félicitations */
.all-done-card {
  background: var(--atlas-card-bg);
  border: 1px solid var(--atlas-card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 56px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.all-done-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: bounceCelebration 2s infinite ease-in-out;
}

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

/* ==========================================================================
   MODAL DE DÉCISION POST-APPEL (STRICTEMENT 3 CHOIX PAR ÉTAPE)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 16px;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 540px;
  background: rgba(17, 20, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.18), 0 35px 85px rgba(0, 0, 0, 0.9), 0 0 50px rgba(230, 57, 70, 0.15);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-backdrop.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.025em;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.4;
}

.decision-options-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.btn-choice {
  font-family: var(--font-display);
  width: 100%;
  min-height: 64px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
  letter-spacing: -0.01em;
}

.btn-choice:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-choice.success-choice {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}

.btn-choice.success-choice:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--atlas-green);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.35);
}

.btn-choice.danger-choice {
  background: rgba(230, 57, 70, 0.12);
  border-color: rgba(230, 57, 70, 0.4);
  color: #fca5a5;
}

.btn-choice.danger-choice:hover {
  background: rgba(230, 57, 70, 0.22);
  border-color: var(--atlas-red);
  box-shadow: 0 6px 25px rgba(230, 57, 70, 0.35);
}

/* ==========================================================================
   FEEDBACK GAMIFIÉ & TOAST XP
   ========================================================================== */

.xp-toast {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #111422;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(230, 57, 70, 0.4);
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3000;
  border: 1.5px solid var(--atlas-red);
}

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

/* ==========================================================================
   FORMULAIRES, INPUTS & COMPOSANTS DARK MODE
   ========================================================================== */

.form-input, 
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="number"], 
input[type="date"], 
input[type="time"], 
select, 
textarea {
  width: 100%;
  background: #0d101a !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-sm);
  color: #ffffff !important;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-main);
  transition: all 0.18s ease;
}

.form-input:focus, 
input:focus, 
select:focus, 
textarea:focus {
  outline: none;
  border-color: var(--atlas-red) !important;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.25) !important;
  background: #101422 !important;
}

select option {
  background: #101422 !important;
  color: #ffffff !important;
  padding: 8px 12px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.015em;
}

.daily-missions-card {
  background: var(--atlas-card-bg);
  border: 1px solid var(--atlas-card-border);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 14px 34px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   KPI GRIDS & DIAGNOSTICS STRATÉGIQUES (SITUATIONS A, B, C)
   ========================================================================== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

@media (min-width: 600px) {
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi-card {
  background: var(--atlas-card-bg);
  border: 1px solid var(--atlas-card-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 10px 25px rgba(0, 0, 0, 0.6);
}

.kpi-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kpi-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 6px;
  letter-spacing: -0.03em;
}

.diagnostic-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 22px;
  border: 1.5px solid;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), var(--shadow-md);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.diagnostic-card.sit-A {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
  color: #a7f3d0;
}

.diagnostic-card.sit-B {
  background: rgba(245, 158, 11, 0.12);
  border-color: #f59e0b;
  color: #fde68a;
}

.diagnostic-card.sit-C {
  background: rgba(239, 68, 68, 0.14);
  border-color: #ef4444;
  color: #fecaca;
}

.diag-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #ffffff;
}

.diag-body {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.92;
}

/* ==========================================================================
   PIPELINE KANBAN DARK OBSIDIAN
   ========================================================================== */

.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 18px;
  margin-top: 18px;
}

.kanban-column {
  flex: 0 0 300px;
  background: rgba(15, 19, 30, 0.85);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  max-height: 72vh;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), var(--shadow-sm);
}

.kanban-column-header {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e2e8f0;
}

.kanban-cards-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1;
  padding-right: 2px;
}

.kanban-card {
  background: rgba(26, 32, 50, 0.85);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.kanban-card:hover {
  transform: translateY(-2px);
  border-color: var(--atlas-red);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.kanban-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 4px;
}

.kanban-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-top-row {
    padding: 10px 14px;
  }
  .app-container {
    padding: 16px 12px;
  }
  .prospect-name {
    font-size: 22px;
  }
  .btn-dominant-call {
    min-height: 60px;
    font-size: 16px;
  }
  .daily-missions-summary-grid {
    gap: 8px;
  }
  .mission-stat-capsule {
    padding: 12px 10px;
    gap: 8px;
  }
  .stat-number {
    font-size: 20px;
  }
}

/* ==========================================================================
   CONSOLE SUPER-ADMINISTRATEUR ATLAS GLOBALE
   ========================================================================== */

.superadmin-table-wrapper {
  width: 100%;
  overflow-x: auto;
  background: var(--atlas-card-bg);
  border: 1px solid var(--atlas-card-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), var(--shadow-md);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.superadmin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.superadmin-table th {
  font-family: var(--font-display);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.superadmin-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  vertical-align: middle;
}

.superadmin-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.superadmin-table tr:last-child td {
  border-bottom: none;
}

.role-badge {
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.role-badge.role-commercial {
  background: rgba(230, 57, 70, 0.16);
  color: #ff6b6b;
  border: 1px solid rgba(230, 57, 70, 0.35);
}

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

.role-badge.role-admin {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.role-badge.role-superadmin {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.btn-action-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 14px;
}

.btn-action-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-action-icon.btn-delete:hover {
  background: rgba(230, 57, 70, 0.25);
  border-color: var(--atlas-red);
  color: #ff6b6b;
}

.btn-action-icon.btn-edit:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: var(--atlas-blue);
  color: #93c5fd;
}

/* ==========================================================================
   SCROLLBAR OBSIDIAN LUXE & UTILITAIRES DE PRÉCISION TYPOGRAPHIQUE
   ========================================================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(8, 10, 16, 0.95);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  border: 2px solid rgba(8, 10, 16, 0.95);
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--atlas-red);
}

/* Utilitaires typographiques */
.font-display {
  font-family: var(--font-display) !important;
  letter-spacing: -0.025em;
}

.font-mono {
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums;
}

.num-tabular {
  font-variant-numeric: tabular-nums;
}

