/**
 * Ambassade Cabinet Conseil - Luxury AI Platform Design System
 * Palette: Midnight Noir, Champagne Gold, Emerald Accents, Glassmorphism
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121c;
  --bg-card: rgba(16, 22, 36, 0.75);
  --bg-card-hover: rgba(22, 31, 52, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.25);
  --border-gold-glow: rgba(212, 175, 55, 0.45);

  --gold-300: #f7d674;
  --gold-400: #e5b942;
  --gold-500: #d4af37;
  --gold-600: #aa851e;
  --gold-gradient: linear-gradient(135deg, #fce08a 0%, #d4af37 50%, #9a7210 100%);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.25);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.25);

  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-bg: rgba(59, 130, 246, 0.12);
  --blue-border: rgba(59, 130, 246, 0.25);

  --purple-400: #c084fc;
  --purple-bg: rgba(192, 132, 252, 0.12);
  --purple-border: rgba(192, 132, 252, 0.25);

  --rose-400: #fb7185;
  --rose-bg: rgba(251, 113, 133, 0.12);
  --rose-border: rgba(251, 113, 133, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(59, 130, 246, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Liens & Typographie */
a {
  color: var(--gold-400);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-300);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.font-serif {
  font-family: var(--font-serif);
}

.gold-gradient-text {
  background: var(--gold-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Conteneurs et Layout Pleine Largeur (100% Full-Width) */
.app-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 1.5rem 2rem 4rem;
  box-sizing: border-box;
}

/* Structure d'En-tête Supérieure Double Barre Horizontale Fixe */
.app-header-sticky {
  position: sticky;
  top: 0;
  z-index: 10000 !important;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  overflow: visible !important;
}

/* 1ère Barre Horizontale : Identité de Marque & Utilitaires Session */
.navbar-top-bar {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 2rem;
  background: rgba(9, 13, 22, 0.98);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: visible !important;
  min-height: 56px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

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

/* Pôles Structurés (Clusters) de la Barre Supérieure */
.nav-cluster {
  display: inline-flex;
  align-items: center;
  background: rgba(14, 21, 33, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 9999px;
  padding: 0.22rem 0.65rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  height: 38px;
  box-sizing: border-box;
}

.nav-cluster:hover {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(18, 27, 43, 0.85);
}

.cluster-separator {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 0.45rem;
  flex-shrink: 0;
}

/* Pôle 1 : Garde-fous IA & Toggles */
.guardrail-toggle-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
}

.guardrail-icon {
  font-size: 0.85rem;
}

.guardrail-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.text-red {
  color: #ef4444 !important;
}

.text-emerald {
  color: #10b981 !important;
}

/* Boutons commutateurs des pilules d'en-tête (Contact IA & RDV) */
.pill-toggle-btn {
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

/* État DÉSACTIVÉ / OFF : ROUGE ÉLÉGANT & CLASSE */
.pill-toggle-btn.status-off {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
}

.pill-toggle-btn.status-off:hover {
  background: rgba(239, 68, 68, 0.28) !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

/* État ACTIVÉ / ON : VERT ÉMERAUDE */
.pill-toggle-btn.status-on {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
}

.pill-toggle-btn.status-on:hover {
  background: rgba(16, 185, 129, 0.28) !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

/* Pôle 2 : Utilitaires Session (Docking fluide) */
.nav-cluster-session .user-tz-badge {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 0.15rem !important;
  gap: 5px;
  font-size: 0.78rem;
}

.nav-cluster-session .lang-dropdown-trigger {
  background: rgba(212, 175, 55, 0.12) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
  padding: 0.18rem 0.5rem !important;
  border-radius: 9999px !important;
  color: var(--gold-300) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-cluster-session .lang-dropdown-trigger:hover,
.lang-switcher-dropdown.open .lang-dropdown-trigger {
  background: rgba(212, 175, 55, 0.25) !important;
  border-color: var(--gold-400) !important;
  color: #ffffff !important;
}

.cluster-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.cluster-tool-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.cluster-tool-btn i {
  font-size: 0.82rem;
}

/* Pôle 3 : Profil Utilisateur & Déconnexion Intégrée */
.user-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.2rem;
}

.user-active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
  flex-shrink: 0;
}

.user-text-info {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.user-display-name {
  font-weight: 700;
  color: var(--gold-300);
  font-size: 0.8rem;
}

.user-display-role {
  color: var(--text-dim);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-logout-integrated {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  line-height: 1.2;
}

.btn-logout-integrated:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.02);
}

.admin-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 0.82rem;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 4px;
}

/* 2ème Barre Horizontale : Menu de Navigation Sobre, Aligné à Gauche & Homogène */
.navbar-nav-bar {
  background: #0b101a;
  border-top: 1px solid var(--gold-400);
  /* Grande ligne fine en jaune doré au-dessus des boutons */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  justify-content: flex-start;
  /* Aligné strictement et complètement à gauche */
  align-items: stretch;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  overflow: visible !important;
}

.nav-bar-container {
  width: fit-content;
  max-width: 100%;
  margin: 0 !important;
  /* Collé strictement à gauche sans aucune marge */
  padding: 0 !important;
  display: flex;
  align-items: stretch;
  gap: 0;
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible !important;
}

/* Éléments de Menu : Profil 100% Homogène, Sobre & Équivalent */
.navbar-nav-bar .nav-item-btn,
.navbar-nav-bar .nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  background: transparent !important;
  border: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  /* Même séparation partout */
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #94a3b8 !important;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  user-select: none;
  box-sizing: border-box;
}

/* Dernier bouton : la bordure droite est assurée par le conteneur */
.navbar-nav-bar .nav-dropdown:last-child .nav-dropdown-trigger,
.navbar-nav-bar .nav-bar-container>*:last-child.nav-item-btn {
  border-right: none !important;
}

/* Survol sobre et équivalent pour tous */
.navbar-nav-bar .nav-item-btn:hover,
.navbar-nav-bar .nav-dropdown-trigger:hover,
.navbar-nav-bar .nav-dropdown:hover .nav-dropdown-trigger {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

/* État actif sobre : aucun jaune criard, pas de boîte ronde */
.navbar-nav-bar .nav-item-btn.active,
.navbar-nav-bar .nav-dropdown-trigger.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Fine ligne d'accentuation sobre au bas de l'élément actif */
.navbar-nav-bar .nav-item-btn.active::after,
.navbar-nav-bar .nav-dropdown-trigger.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #cbd5e1;
  box-shadow: none !important;
}

/* Icônes du menu : en jaune doré harmonieux */
.navbar-nav-bar .nav-item-btn i,
.navbar-nav-bar .nav-dropdown-trigger i {
  font-size: 0.88rem;
  color: var(--gold-400) !important;
  transition: all 0.2s ease;
}

.navbar-nav-bar .nav-item-btn:hover i,
.navbar-nav-bar .nav-dropdown-trigger:hover i,
.navbar-nav-bar .nav-dropdown:hover .nav-dropdown-trigger i,
.navbar-nav-bar .nav-item-btn.active i,
.navbar-nav-bar .nav-dropdown-trigger.active i {
  color: var(--gold-300) !important;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
}

/* Compteur sobre doré */
.nav-counter {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
}

.caret-icon {
  font-size: 0.62rem;
  margin-left: 2px;
  transition: transform 0.2s ease;
  color: var(--gold-400) !important;
}

.nav-dropdown:hover .caret-icon {
  transform: rotate(180deg);
  color: var(--gold-300);
}

/* Conteneur Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

/* Menu Déroulant Affiché au Survol : Compact, Carré & Anti-Débordement */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 1px;
  width: 295px;
  max-width: calc(100vw - 24px);
  background: rgba(9, 13, 22, 0.98);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 4px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.9), 0 0 1px rgba(212, 175, 55, 0.4);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
  z-index: 1050;
  pointer-events: none;
}

/* Règle CSS anti-débordement : les sous-menus de la moitié droite s'alignent automatiquement sur la droite */
.nav-dropdown:nth-child(n+3) .dropdown-menu,
.nav-dropdown.align-right .dropdown-menu,
.nav-dropdown:last-child .dropdown-menu {
  left: auto !important;
  right: 0 !important;
}

/* Zone invisible de continuité de survol */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Titre de section interne au sous-menu (prêt pour organiser plein de boutons) */
.dropdown-section-title {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-400);
  padding: 0.3rem 0.5rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.15rem;
}

/* Élément dans le Menu Déroulant : Format Carré & Compact */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.45rem 0.6rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  color: var(--text-muted);
}

.dropdown-item:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.2);
  color: #fff;
}

.dropdown-item.active {
  background: rgba(212, 175, 55, 0.12);
  border-left: 2px solid var(--gold-400);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--gold-300);
}

.dropdown-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--gold-400);
  flex-shrink: 0;
}

.dropdown-item-icon i,
.dropdown-item i {
  color: var(--gold-400) !important;
  transition: all 0.15s ease;
}

.dropdown-item:hover .dropdown-item-icon i,
.dropdown-item.active .dropdown-item-icon i {
  color: var(--gold-300) !important;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
}

.dropdown-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dropdown-item-text .item-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}

.dropdown-item:hover .item-title,
.dropdown-item.active .item-title {
  color: var(--gold-300);
}

.dropdown-item-text .item-desc {
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.2;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-logo-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  box-shadow: var(--gold-glow);
  font-size: 1.4rem;
}

.brand-text h1 {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-text p {
  font-size: 0.78rem;
  color: var(--gold-400);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

.admin-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
}

.admin-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #07090e;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

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

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

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* En-tête Hero du Dashboard (Format Carte Uniformisé) */
.hero-header {
  margin: 1.25rem 0 1.75rem 0;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.hero-title {
  flex: 1 1 500px;
}

.hero-title h2 {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero-title p {
  color: var(--text-muted);
  max-width: 680px;
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  flex: 1 1 540px;
}

@media (max-width: 1200px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-pill {
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-pill:hover {
  transform: translateY(-3px);
  border-color: var(--gold-400);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.18);
}

.stat-pill:active {
  transform: translateY(-1px);
}

.stat-pill .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-400);
  transition: transform 0.2s ease, text-shadow 0.2s ease;
  display: inline-block;
}

.stat-pill:hover .num {
  transform: scale(1.1);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.stat-pill .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.stat-pill:hover .label {
  color: #fff;
}

.stat-pill .click-hint {
  font-size: 0.65rem;
  color: var(--gold-400);
  opacity: 0;
  transform: translateY(2px);
  transition: all 0.2s ease;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.stat-pill:hover .click-hint {
  opacity: 1;
  transform: translateY(0);
}


/* Navigation des Onglets Internes */
.nav-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.nav-tabs .tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-tabs .tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tabs .tab-btn.active {
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--border-gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.nav-tabs .tab-btn .badge-count {
  background: var(--gold-500);
  color: #07090e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Conteneurs de section / Onglets */
.tab-content {
  display: none;
  animation: fadeIn 0.35s ease-out;
}

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

/* Centre de Documentation Officiel & BPMN 2.0 (#tab-doc-center)
   100% de la largeur, aération latérale et lecture plein confort */
#tab-doc-center {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0.5rem 1.5rem 4rem;
  box-sizing: border-box;
}

#tab-doc-center .card {
  width: 100% !important;
  box-sizing: border-box;
  padding: 2rem 2.25rem;
  margin-bottom: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

#tab-doc-center .doc-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

#tab-doc-center .doc-spec-card {
  background: rgba(16, 22, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
}

#tab-doc-center .doc-spec-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

#tab-doc-center .doc-spec-value {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* =========================================================================
   COMPOSANT BPMN 2.0 HORIZONTAL — 100% LARGEUR, FLUIDE & ULTRA-COMPACT
   ========================================================================= */
.bpmn-flow-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.85) 0%, rgba(8, 12, 22, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  box-sizing: border-box;
  margin-top: 1.25rem;
}

.bpmn-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bpmn-flow-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-300);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bpmn-lanes-legend {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.bpmn-legend-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-user {
  background: rgba(212, 175, 55, 0.12);
  color: #f5d77f;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.legend-system {
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.legend-ai {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.legend-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.legend-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.bpmn-track {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.5rem 0;
  width: 100%;
  box-sizing: border-box;
}

.bpmn-track {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.bpmn-track::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.bpmn-track.is-dragging {
  cursor: grabbing !important;
}

.bpmn-node {
  flex: 1 1 0;
  min-width: 165px;
  background: rgba(11, 17, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bpmn-node:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.node-start {
  border-left: 3px solid var(--emerald-400);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(11, 17, 30, 0.95) 100%);
}

.node-user {
  border-left: 3px solid var(--gold-400);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(11, 17, 30, 0.95) 100%);
}

.node-gateway {
  border-left: 3px solid #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(11, 17, 30, 0.95) 100%);
}

.node-system {
  border-left: 3px solid var(--blue-400);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(11, 17, 30, 0.95) 100%);
}

.node-ai {
  border-left: 3px solid #a855f7;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(11, 17, 30, 0.95) 100%);
}

.node-end {
  border-left: 3px solid var(--emerald-400);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(11, 17, 30, 0.95) 100%);
}

.node-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-start {
  color: var(--emerald-400);
}

.badge-user {
  color: var(--gold-300);
}

.badge-gateway {
  color: #fbbf24;
}

.badge-system {
  color: var(--blue-400);
}

.badge-ai {
  color: #c084fc;
}

.badge-end {
  color: var(--emerald-400);
}

.node-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.node-desc {
  font-size: 0.73rem;
  color: #94a3b8;
  line-height: 1.4;
}

.node-branches {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.branch-pill {
  font-size: 0.69rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.branch-yes {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.branch-no {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.bpmn-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(212, 175, 55, 0.45);
  font-size: 0.95rem;
  padding: 0 0.15rem;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  #tab-doc-center {
    padding: 0.5rem 1.5rem 3rem;
  }

  #tab-doc-center .card {
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 640px) {
  #tab-doc-center {
    padding: 0.5rem 0.85rem 2.5rem;
  }

  #tab-doc-center .card {
    padding: 1.25rem 1rem;
  }
}

/* =========================================================================
   BD STORYBOARD HORIZONTAL — TUTORIEL OPÉRATIONNEL INTERNE EN 5 VIGNETTES
   ========================================================================= */
.bd-storyboard-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(16, 24, 42, 0.95) 0%, rgba(9, 14, 26, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.bd-storyboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bd-storyboard-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f5d77f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bd-storyboard-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.bd-storyboard-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.bd-storyboard-strip.strip-2 {
  grid-template-columns: repeat(2, 1fr);
}

.bd-storyboard-strip.strip-3 {
  grid-template-columns: repeat(3, 1fr);
}

.bd-storyboard-strip.strip-4 {
  grid-template-columns: repeat(4, 1fr);
}

.bd-storyboard-strip.strip-5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1300px) {

  .bd-storyboard-strip,
  .bd-storyboard-strip.strip-2,
  .bd-storyboard-strip.strip-3,
  .bd-storyboard-strip.strip-4,
  .bd-storyboard-strip.strip-5 {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .bd-case {
    min-width: 250px;
    flex: 0 0 250px;
  }
}

.bd-case {
  background: #090e1a;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bd-case:hover {
  transform: translateY(-3px);
  border-color: #d4af37;
}

.bd-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bd-art {
  width: 100%;
  height: 135px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  margin-bottom: 0.65rem;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bd-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bd-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid #d4af37;
  padding: 0.45rem 0.55rem;
  border-radius: 0 4px 4px 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cartes Élégantes Glassmorphism */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  position: relative;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-gold-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-gold {
  border-color: var(--border-gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, rgba(13, 18, 28, 0.8) 100%);
}

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

.card-title {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Grilles & Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Badges de Statut */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-france {
  background: var(--blue-bg);
  color: var(--blue-400);
  border: 1px solid var(--blue-border);
}

.badge-intl {
  background: var(--purple-bg);
  color: var(--purple-400);
  border: 1px solid var(--purple-border);
}

.badge-urgency-high {
  background: var(--rose-bg);
  color: var(--rose-400);
  border: 1px solid var(--rose-border);
}

.badge-success {
  background: var(--emerald-bg);
  color: var(--emerald-400);
  border: 1px solid var(--emerald-border);
}

.badge-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-300);
  border: 1px solid var(--border-gold);
}

.badge-gastronomie {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

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

.badge-asia {
  background: rgba(6, 182, 212, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.badge-japan {
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

/* Tableaux de données & Conteneurs Adaptatifs Pleine Largeur */
table,
.data-table,
.leads-table,
.table-responsive table,
.data-table-container table {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
  text-align: left;
  font-size: 0.88rem;
  box-sizing: border-box !important;
}

.data-table-container,
.table-responsive,
.pipeline-board-container {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
  border: 1px solid var(--border-subtle) !important;
  border-bottom: none !important;
  background: rgba(9, 13, 22, 0.6) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  scrollbar-width: none !important;
  /* Masque la barre de défilement sur Firefox */
  -ms-overflow-style: none !important;
  /* Masque la barre sur Edge */
  cursor: grab;
}

/* Masque totalement la barre de défilement Chrome, Safari, Edge, Brave */
.data-table-container::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.pipeline-board-container::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.data-table-container.is-dragging,
.table-responsive.is-dragging,
.pipeline-board-container.is-dragging {
  cursor: grabbing !important;
  user-select: none !important;
}

.data-table-container.is-dragging *,
.table-responsive.is-dragging *,
.pipeline-board-container.is-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}

/* Fixation de la 1ère colonne (Établissement & Catégorie) à gauche */
.data-table th:first-child,
.data-table td:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 10 !important;
  background: #090d16 !important;
  box-shadow: 4px 0 14px rgba(0, 0, 0, 0.85) !important;
  min-width: 220px !important;
  max-width: 280px !important;
}

/* Fixation de la dernière colonne (Actions IA) à droite */
.data-table th:last-child,
.data-table td:last-child {
  position: sticky !important;
  right: 0 !important;
  z-index: 25 !important;
  background: #090d16 !important;
  box-shadow: -6px 0 18px rgba(0, 0, 0, 0.95) !important;
  border-left: 1px solid rgba(212, 175, 55, 0.3) !important;
  text-align: right !important;
  min-width: 155px !important;
}

.data-table thead th:first-child {
  z-index: 40 !important;
  background: #0d121c !important;
}

.data-table thead th:last-child {
  z-index: 40 !important;
  background: #0d121c !important;
}

/* Colonnes centrales déplaçables */
.data-table th:not(:first-child):not(:last-child),
.data-table td:not(:first-child):not(:last-child) {
  position: relative;
  z-index: 1;
}

.data-table th,
.leads-table th,
.table-responsive th,
.data-table-container th {
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td,
.leads-table td,
.table-responsive td,
.data-table-container td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.data-table tr:hover td,
.leads-table tr:hover td,
.table-responsive tr:hover td,
.data-table-container tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.data-table tr:hover td:first-child,
.data-table tr:hover td:last-child,
.leads-table tr:hover td:first-child,
.leads-table tr:hover td:last-child,
.lead-row-clickable:hover td:first-child,
.lead-row-clickable:hover td:last-child {
  background: #141b2a !important;
  /* Masque 100% opaque hermétique */
}

/* Badge Indicateur de la Main d'Agrippement */
.table-hand-drag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-xl);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-weight: 600;
  cursor: grab;
  transition: all 0.2s ease;
  user-select: none;
}

.table-hand-drag-badge:hover {
  background: rgba(212, 175, 55, 0.25);
  color: #fff;
  border-color: var(--gold-400);
}

.table-hand-drag-badge i {
  color: var(--gold-400);
}

/* Formulaires & Champs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(13, 18, 28, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

/* Blocs de Code & Console */
.code-block {
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #38bdf8;
  overflow-x: auto;
  position: relative;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 1rem 1.5rem;
  background: #111827;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  color: var(--text-main);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Page de Login Sécurisée */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-image:
    radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: rgba(13, 18, 28, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--gold-glow);
  backdrop-filter: blur(20px);
  text-align: center;
  position: relative;
}

.login-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.05));
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold-400);
  box-shadow: var(--gold-glow);
}

.login-terminal-hint {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: left;
}

.login-terminal-hint code {
  color: var(--gold-400);
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Styles Spécifiques Gouvernance & Droits */
.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue-400);
  border: 1px solid var(--blue-border);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple-400);
  border: 1px solid var(--purple-border);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-400);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-subtle {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

.perm-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  margin: 2px;
}

.perm-tag.active {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--emerald-400);
  font-weight: 600;
}

.perm-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.perm-checkbox-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-gold);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.active {
  background: var(--emerald-400);
  box-shadow: 0 0 8px var(--emerald-400);
}

.status-dot.suspended {
  background: var(--rose-400);
  box-shadow: 0 0 8px var(--rose-400);
}

/* Responsivité de la Double Barre Supérieure et des Sous-Menus */
@media (max-width: 1120px) {
  .navbar-top-bar {
    padding: 0.6rem 1.25rem;
  }

  .navbar-nav-bar {
    padding: 0 !important;
  }

  .nav-bar-container {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .nav-bar-container::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar-top-bar {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
  }

  .navbar-nav-bar {
    padding: 0 !important;
  }

  .nav-bar-container {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-bar-container::-webkit-scrollbar {
    display: none;
  }

  .nav-dropdown-trigger,
  .nav-item-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.76rem;
  }

  .dropdown-menu {
    width: 260px;
    max-width: 90vw;
  }
}

/* ========================================================================= */
/* SÉQUENCEUR D'APPROCHE PALACE EN 3 TEMPS                                   */
/* ========================================================================= */
.sequence-step-tab {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.sequence-step-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.sequence-step-tab.active {
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.objection-script-text {
  user-select: all;
}

.copy-objection-btn:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #93c5fd !important;
  border-color: #60a5fa !important;
}

/* ========================================================================= */
/* TUTORIEL & PROCESSUS BPMN 2.0                                             */
/* ========================================================================= */
.tutorial-subtab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: var(--transition);
}

.tutorial-subtab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(212, 175, 55, 0.4);
}

.tutorial-subtab-btn.active {
  background: var(--gold-gradient);
  color: #07090e;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.tutorial-view-panel {
  display: none;
}

.tutorial-view-panel.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Plateau BPMN interactif avec couloirs (Swimlanes) */
.bpmn-board-container {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow-x: auto;
  position: relative;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}

.bpmn-swimlanes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 1050px;
}

.bpmn-lane {
  display: flex;
  background: rgba(16, 22, 36, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.bpmn-lane:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.bpmn-lane-header {
  width: 220px;
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bpmn-lane-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bpmn-lane-actor {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.bpmn-lane-body {
  flex-grow: 1;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
}

/* Nœuds BPMN */
.bpmn-node {
  background: rgba(22, 31, 52, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  min-width: 175px;
  max-width: 220px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.bpmn-node:hover {
  transform: translateY(-3px);
  border-color: var(--gold-400);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
}

.bpmn-node.selected {
  border-color: var(--gold-400);
  background: rgba(30, 42, 68, 0.95);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.bpmn-node-type-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.bpmn-node-title {
  font-weight: 600;
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.35;
}

.bpmn-node-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}

/* Événement Début BPMN (Cercle vert) */
.bpmn-event-start {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--emerald-400);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-400);
  font-size: 1.1rem;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
  transition: var(--transition);
}

.bpmn-event-start:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
}

/* Événement Minuteur / Attente (Double cercle) */
.bpmn-event-timer {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  border: 2px dashed var(--gold-400);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  padding: 2px;
}

.bpmn-event-timer:hover {
  transform: scale(1.1);
  border-style: solid;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* Événement Fin BPMN (Double cercle épais doré) */
.bpmn-event-end {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 4px double var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-300);
  font-size: 1.25rem;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  transition: var(--transition);
}

.bpmn-event-end:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.7);
}

/* Passerelle Décisionnelle XOR (Losange) */
.bpmn-gateway {
  width: 50px;
  height: 50px;
  transform: rotate(45deg);
  background: rgba(30, 42, 68, 0.9);
  border: 2px solid var(--purple-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.25);
  margin: 0 0.5rem;
}

.bpmn-gateway:hover {
  transform: rotate(45deg) scale(1.12);
  border-color: #fff;
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.5);
}

.bpmn-gateway-content {
  transform: rotate(-45deg);
  color: var(--purple-400);
  font-size: 0.95rem;
  font-weight: 800;
}

/* Connecteurs Flèches */
.bpmn-arrow {
  color: var(--text-dim);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.65;
}

/* Tiroir d'Inspection Tactique BPMN */
.bpmn-details-panel {
  margin-top: 1.5rem;
  background: rgba(16, 22, 36, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

/* Cartes Méthodologiques "Trouver les Choses" */
.methodology-pillar-card {
  background: rgba(16, 22, 36, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.methodology-pillar-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Cartes Dorking interactives avec copie 1-clic */
.dork-query-box {
  background: #06090e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
}

.dork-query-box code {
  overflow-x: auto;
  white-space: nowrap;
}

/* Timeline Routine Journalière Laura & Lara */
.daily-routine-step {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 1.75rem;
}

.daily-routine-step::before {
  content: '';
  position: absolute;
  left: 0.65rem;
  top: 1.5rem;
  bottom: -1.75rem;
  width: 2px;
  background: var(--border-subtle);
}

.daily-routine-step:last-child::before {
  display: none;
}

.daily-routine-bullet {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--gold-400);
  font-weight: 800;
}

/* ==========================================================================
   SÉLECTEUR BILINGUE FR / EN AVEC DRAPEAUX (AU-DESSUS DE LA BARRE DE MENU)
   ========================================================================== */
.lang-switcher-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 9999px;
  padding: 2px 4px;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

.lang-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.1) 100%);
  border-color: var(--gold-400);
  color: #fff;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.lang-btn .flag-icon {
  font-size: 0.95rem;
  line-height: 1;
}



/* ==========================================================================
   FUSEAU HORAIRE & HORLOGE DE L'UTILISATEUR CONNECTÉ
   ========================================================================== */
.user-tz-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 22, 36, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.user-tz-badge #userTzClock {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.tz-switch-btn {
  background: transparent;
  border: none;
  color: var(--gold-400);
  cursor: pointer;
  padding: 0 2px;
  margin-left: 2px;
  font-size: 0.82rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.tz-switch-btn:hover {
  transform: scale(1.15);
  color: #fff;
}

/* ==========================================================================
   PETITE HORLOGE & FUSEAU DYNAMIQUE SUR LES OFFRES (LEAD TIMEZONE WIDGET)
   ========================================================================== */
.lead-tz-box {
  margin-top: 4px;
  margin-bottom: 3px;
  padding: 3px 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  max-width: 200px;
}

.mini-clock-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-analog-clock {
  flex-shrink: 0;
  transform-origin: center;
}

.lead-clock-digital {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.lead-tz-delta-pill {
  font-size: 0.68rem;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-300);
  font-weight: 600;
}

.lead-tz-status-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 3px;
  padding: 1px 4px;
  width: fit-content;
}

.lead-tz-status-pill .tz-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}

.tz-status-open {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tz-status-open .tz-dot {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.tz-status-service {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.tz-status-service .tz-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.tz-status-closed {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.tz-status-closed .tz-dot {
  background: #818cf8;
  box-shadow: 0 0 6px #818cf8;
}

/* Filtres Utilisateurs Gouvernance */
.gov-user-filter-btn {
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.gov-user-filter-btn.active {
  background: var(--gold-400) !important;
  color: #000 !important;
  font-weight: 700;
  border-color: var(--gold-400) !important;
}

/* Grille Pleine Largeur : 2 Collaborateurs par Ligne */
#govUserListContainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 992px) {
  #govUserListContainer {
    grid-template-columns: 1fr;
  }
}

.gov-user-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gov-user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  border-color: rgba(212, 175, 55, 0.45) !important;
}

.gov-user-search-input:focus {
  border-color: var(--gold-400) !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35) !important;
}


/* ==========================================================================
   REDIMENSIONNEMENT DES COLONNES (COLUMN RESIZING) SUR TOUS LES TABLEAUX
   ========================================================================== */
table.resizable-table {
  border-collapse: separate;
  border-spacing: 0;
}

table.resizable-table th {
  position: relative;
  overflow: visible;
}

.table-col-resizer {
  position: absolute;
  top: 0;
  right: -5px;
  width: 10px;
  cursor: col-resize;
  user-select: none;
  height: 100%;
  z-index: 25;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.table-col-resizer:hover,
.table-col-resizer.resizing {
  background: var(--gold-400);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.85);
}

.pipeline-pole-filter-btn.active {
  background: var(--gold-400) !important;
  color: #000 !important;
  font-weight: 700 !important;
  border-color: var(--gold-300) !important;
}

/* ==========================================================================
   PAGINATION UNIVERSELLE DE TOUS LES TABLEAUX (10, 20, 50, 100, 300, 500)
   ========================================================================== */
.table-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(13, 18, 28, 0.95);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pagination-controls-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pagination-size-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 6px;
  color: var(--text-main);
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
}

.pagination-size-select:focus {
  border-color: var(--gold-400);
}

.pagination-controls-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-main);
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-400);
  color: #fff;
}

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

.pagination-btn.active {
  background: var(--gold-400);
  color: #000;
  font-weight: 700;
  border-color: var(--gold-400);
}

/* ==========================================================================
   OUTIL DE SOURCING : MOTS-CLÉS SURVEILLÉS CLAMPÉS À 2 LIGNES & MODIFICATION
   ========================================================================== */
.keywords-clamp-box {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
  max-width: 320px;
}

.keywords-clamp-box:hover {
  color: var(--gold-300);
}

.keywords-more-badge {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--gold-400);
  font-weight: 600;
  margin-top: 2px;
  cursor: pointer;
  text-decoration: underline;
}

.sourcing-inline-editable {
  cursor: pointer;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.4);
  transition: all 0.15s ease;
}

.sourcing-inline-editable:hover {
  border-bottom-color: var(--gold-400);
  background: rgba(212, 175, 55, 0.08);
}

/* ==========================================================================
   STRUCTURE STRICTE 3 LIGNES POUR LOCALISATION & MARCHÉ
   ========================================================================== */
.lead-loc-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 175px;
}

.lead-loc-line {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lead-time-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
}

.lead-person-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.lead-alloc-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
}

.lead-assign-select {
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(10, 15, 26, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.38);
  color: #f8fafc;
  border-radius: 6px;
  cursor: pointer;
  max-width: 195px;
  width: auto;
  text-align: left;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.lead-assign-select:hover {
  border-color: rgba(212, 175, 55, 0.65);
  background: rgba(15, 22, 38, 0.98);
}

.lead-assign-select:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  outline: none;
}

body.theme-light .lead-assign-select {
  background: #ffffff;
  color: #1e293b;
  border-color: rgba(212, 175, 55, 0.5);
}

/* ==========================================================================
   MINI-HORLOGES EN DIRECT DANS LA COLONNE SOURCE & DÉTECTION
   ========================================================================== */
.source-live-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.35);
  margin-top: 4px;
  font-size: 0.78rem;
}

.source-clock-city {
  color: var(--gold-400);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.source-clock-time {
  font-family: var(--font-mono);
  color: #fff;
  font-weight: 700;
}

/* ==========================================================================
   KPI CARDS & CARTES DE PILOTAGE CLIQUABLES AVEC DEEP LINKING
   ========================================================================== */
.kpi-clickable-card {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.kpi-clickable-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-400) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 14px rgba(212, 175, 55, 0.3) !important;
}

.kpi-clickable-card:active {
  transform: translateY(-1px);
}

/* Fixation de la largeur pour redimensionnement fluide des colonnes */
table.resizable-table {
  table-layout: fixed;
  width: 100%;
}

/* ==========================================================================
   MATRICE PÔLES PAYS EN VEILLE CONTINUE : 3 COLONNES COMPACTES (HAUTE HORLOGERIE)
   Zéro cadrage lourd, chaque pays sur une seule ligne (Drapeau + Nom + Compteur)
   ========================================================================== */
.pole-country-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.22rem 0.4rem;
  border-radius: 4px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.pole-country-item:hover {
  background: rgba(197, 160, 89, 0.12) !important;
  transform: translateY(-1px);
}

.pole-country-item .country-info {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.pole-country-item .country-text {
  font-size: 0.77rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.pole-country-item:hover .country-text {
  color: #c5a059 !important;
}

.pole-country-item .country-count {
  font-size: 0.77rem;
  font-weight: 800;
  color: #c5a059;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Grille 6 Colonnes Harmonique pour les 6 KPIs Majeurs (Zéro Case Orpheline) */
.kpis-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 0.85rem !important;
  margin-bottom: 1.5rem !important;
}

@media (max-width: 1200px) {
  .kpis-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 680px) {
  .kpis-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ==========================================================================
   NAVIGATION UNIVERSELLE & CARTES INTERACTIVES DU COCKPIT
   ========================================================================== */
.action-task-card {
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

body:not(.theme-light) .action-task-card:hover {
  transform: translateY(-2px);
  background: rgba(22, 32, 50, 0.85) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 12px rgba(212, 175, 55, 0.25);
  border-color: rgba(212, 175, 55, 0.6) !important;
}

.action-task-card:active {
  transform: translateY(0);
}

.cabinet-pole-card {
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

body:not(.theme-light) .cabinet-pole-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-400) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), 0 0 15px rgba(212, 175, 55, 0.35);
  background: rgba(18, 25, 38, 0.95) !important;
}

.clickable-chart-card {
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.clickable-chart-card:hover {
  border-color: rgba(212, 175, 55, 0.45) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.clickable-user-badge {
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.clickable-user-badge:hover {
  transform: translateY(-1px);
  border-color: var(--gold-400) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.clickable-metric-chip {
  cursor: pointer;
  transition: all 0.2s ease;
}

body:not(.theme-light) .clickable-metric-chip:hover {
  transform: translateY(-2px);
  background: rgba(212, 175, 55, 0.15) !important;
  border-color: var(--border-gold);
}

.modal-crossnav-toolbar {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  margin-top: 1.25rem;
}

@keyframes highlightPulseAnim {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8);
    background-color: rgba(212, 175, 55, 0.25);
  }

  50% {
    box-shadow: 0 0 25px 6px rgba(212, 175, 55, 0.6);
    background-color: rgba(212, 175, 55, 0.35);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

.highlight-pulse {
  animation: highlightPulseAnim 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lead-row-clickable:hover td {
  background: rgba(212, 175, 55, 0.05) !important;
  cursor: pointer;
}

/* =============================================================================
   INSPECTEUR FLOTTANT / FENÊTRE CONTEXTUELLE SUIVANT LA SOURIS
   ============================================================================= */
.cursor-inspector-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  max-width: 360px;
  min-width: 240px;
  background: rgba(10, 14, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 10px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(212, 175, 55, 0.18);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.45;
  opacity: 0;
  transform: scale(0.95) translateY(4px);
  transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, top, left, opacity;
}

.cursor-inspector-tooltip.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.cit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cit-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--gold-300);
  font-size: 0.86rem;
  letter-spacing: 0.2px;
}

.cit-header-left i {
  color: var(--gold-400);
  font-size: 0.9rem;
}

.cit-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cit-body {
  color: var(--text-main);
  font-size: 0.82rem;
  line-height: 1.5;
  word-break: break-word;
}

.cit-body strong {
  color: #fff;
}

.cit-footer {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.7rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Boutons d'activation rapide sur les cartes de connecteurs */
.toggle-connector-btn {
  background: transparent;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  user-select: none;
}

.toggle-connector-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.toggle-connector-btn.active {
  border-color: rgba(212, 175, 55, 0.6) !important;
  background: rgba(212, 175, 55, 0.14) !important;
  color: var(--gold-300) !important;
}

.intercept-source-btn {
  cursor: pointer;
  transition: all 0.2s ease;
}

.intercept-source-btn:hover {
  transform: translateY(-1px);
}

/* Bouton Sélecteur Thème (Jour / Nuit) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 5px 12px;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.25s ease;
  user-select: none;
}

.theme-toggle-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-400);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

/* =============================================================================
   MODE CLAIR DE PRESTIGE (IVOIRE, BLANC ALABASTER, SAPHIR ROYAL & OR NAPOLÉONIEN)
   PALETTE DE CHARME POUR LA HAUTE HÔTELLERIE & DIPLOMATIE — 0 COULEURS ÉLECTRIQUES
   ============================================================================= */
body.theme-light,
html.theme-light {
  --bg-primary: #f6f8fb;
  --bg-base: #f6f8fb;
  --bg-secondary: #eef2f7;
  --bg-tertiary: #e2e8f0;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.94);

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;

  --border-subtle: #e2e8f0;
  --border-gold: rgba(180, 130, 20, 0.35);
  --border-gold-glow: rgba(180, 130, 20, 0.5);

  /* Or napoléonien & Bronze feutré (chaleureux, lisible et prestigieux) */
  --gold-300: #6d4508;
  --gold-400: #8a5a12;
  --gold-500: #b45309;
  --gold-600: #92400e;
  --gold-gradient: linear-gradient(135deg, #78350f 0%, #b45309 50%, #92400e 100%);
  --gold-glow: 0 4px 16px rgba(180, 130, 20, 0.15);
  --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);

  /* Accents Nobles & Contrastés (Adieu les néons criards sur fond blanc !) */
  --blue-400: #1e40af;
  /* Bleu Saphir Diplomatique */
  --blue-500: #1d4ed8;
  --blue-bg: #eff6ff;
  --blue-border: #bfdbfe;

  --emerald-400: #065f46;
  /* Vert Émeraude Impériale Feutrée */
  --emerald-500: #047857;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;

  --purple-400: #6b21a8;
  /* Améthyste / Prune Aristocratique */
  --purple-500: #7e22ce;
  --purple-bg: #faf5ff;
  --purple-border: #e9d5ff;

  --rose-400: #9f1239;
  /* Bordeaux Grand Cru / Rubis Feutré */
  --rose-500: #be123c;
  --rose-bg: #fff1f2;
  --rose-border: #fecdd3;

  background-color: #f6f8fb !important;
  color: #0f172a !important;
}

/* Fond de page et structure globale en mode jour */
body.theme-light {
  background: #f6f8fb !important;
  color: #0f172a !important;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(180, 130, 20, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(30, 64, 175, 0.03) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(6, 95, 70, 0.02) 0%, transparent 60%) !important;
}

/* =============================================================================
   EN-TÊTE FIXE ET NAVIGATION EN MODE JOUR (IVOIRE LUMINEUX & TOUCHES D'OR)
   ============================================================================= */
body.theme-light .app-header-sticky {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(180, 130, 20, 0.22) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .navbar-top-bar {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #0f172a !important;
}

body.theme-light .navbar-nav-bar {
  background: #fbfcfe !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body.theme-light .brand-logo-icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
  border: 1px solid #d97706 !important;
  color: #78350f !important;
  box-shadow: 0 2px 6px rgba(180, 130, 20, 0.2) !important;
}

body.theme-light .brand-text h1 {
  color: #0f172a !important;
}

body.theme-light .brand-text p {
  color: #8a5a12 !important;
}

body.theme-light .nav-cluster {
  background: #f8fafc !important;
  border: 1px solid rgba(180, 130, 20, 0.28) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

body.theme-light .nav-cluster:hover {
  background: #ffffff !important;
  border-color: #b45309 !important;
  box-shadow: 0 3px 10px rgba(180, 130, 20, 0.15) !important;
}

body.theme-light .cluster-separator {
  background: rgba(0, 0, 0, 0.12) !important;
}

body.theme-light .cluster-tool-btn {
  color: #334155 !important;
}

body.theme-light .cluster-tool-btn:hover {
  color: #0f172a !important;
  background: rgba(180, 130, 20, 0.08) !important;
}

body.theme-light .guardrail-label {
  color: #475569 !important;
}

body.theme-light .pill-toggle-btn.status-off {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fca5a5 !important;
}

body.theme-light .pill-toggle-btn.status-on {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #86efac !important;
}

body.theme-light .user-display-name {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.theme-light .user-display-role {
  color: #475569 !important;
  background: #f1f5f9 !important;
}

body.theme-light .btn-logout-integrated {
  color: #9f1239 !important;
}

body.theme-light .btn-logout-integrated:hover {
  background: #fff1f2 !important;
  color: #881337 !important;
}

/* Boutons de navigation (Onglets horizontaux) */
body.theme-light .nav-item-btn {
  color: #334155 !important;
  background: transparent !important;
}

body.theme-light .nav-item-btn:hover {
  color: #0f172a !important;
  background: rgba(180, 130, 20, 0.08) !important;
}

body.theme-light .nav-item-btn.active {
  color: #78350f !important;
  background: rgba(180, 130, 20, 0.12) !important;
  border-color: rgba(180, 130, 20, 0.38) !important;
  font-weight: 700 !important;
}

body.theme-light .nav-dropdown-trigger {
  color: #334155 !important;
}

body.theme-light .nav-dropdown-trigger:hover {
  color: #0f172a !important;
  background: rgba(180, 130, 20, 0.08) !important;
}

body.theme-light .nav-dropdown-trigger.active {
  color: #78350f !important;
  background: rgba(180, 130, 20, 0.12) !important;
  font-weight: 700 !important;
}

body.theme-light .nav-counter {
  background: rgba(180, 130, 20, 0.14) !important;
  color: #78350f !important;
  border: 1px solid rgba(180, 130, 20, 0.3) !important;
}

body.theme-light .dropdown-menu {
  background: #ffffff !important;
  border: 1px solid rgba(180, 130, 20, 0.3) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12) !important;
}

body.theme-light .dropdown-section-title {
  color: #8a5a12 !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

body.theme-light .dropdown-item {
  color: #0f172a !important;
}

body.theme-light .dropdown-item:hover {
  background: #f8fafc !important;
}

body.theme-light .dropdown-item.active {
  background: #fdfaf3 !important;
  border-left: 3px solid #b45309 !important;
}

body.theme-light .dropdown-item-icon {
  background: #f1f5f9 !important;
  color: #8a5a12 !important;
}

body.theme-light .dropdown-item-text .item-title {
  color: #0f172a !important;
}

body.theme-light .dropdown-item-text .item-desc {
  color: #64748b !important;
}

/* Bouton Sélecteur Thème */
body.theme-light .theme-toggle-btn {
  background: #ffffff !important;
  border-color: rgba(180, 130, 20, 0.4) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

/* =============================================================================
   HERO BANNER & STAT PILLS EN MODE JOUR
   ============================================================================= */
/* =============================================================================
   HERO BANNER & STAT PILLS EN MODE JOUR
   ============================================================================= */
body.theme-light .hero-header {
  background: #ffffff !important;
  border: 1px solid rgba(180, 130, 20, 0.35) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .hero-title h2 {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.theme-light .hero-title p {
  color: #1e293b !important;
  font-weight: 500 !important;
}

body.theme-light .hero-stealth-badge {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #10b981 !important;
  font-weight: 700 !important;
}

body.theme-light .hero-bpmn-modal-btn {
  background: #fef3c7 !important;
  color: #78350f !important;
  border: 1px solid #d97706 !important;
  font-weight: 700 !important;
}

body.theme-light .hero-stealth-desc {
  color: #334155 !important;
  font-weight: 600 !important;
}

body.theme-light .stat-pill {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .stat-pill:hover {
  background: #ffffff !important;
  border-color: #8a5a12 !important;
  box-shadow: 0 4px 14px rgba(180, 130, 20, 0.12) !important;
  transform: translateY(-2px);
}

body.theme-light .stat-pill .num {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.theme-light .stat-pill .label {
  color: #1e293b !important;
  font-weight: 700 !important;
}

body.theme-light .stat-pill .sub-label {
  font-weight: 700 !important;
}

body.theme-light .hero-stat-france .sub-label {
  color: #1e40af !important;
}

body.theme-light .hero-stat-intl .sub-label {
  color: #6b21a8 !important;
}

body.theme-light .stat-pill .click-hint {
  color: #78350f !important;
  font-weight: 700 !important;
}

/* =============================================================================
   CARTES, BLOCS DE CONTENU & COCKPIT EN MODE JOUR
   ============================================================================= */
body.theme-light .card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

body.theme-light .card.card-gold {
  border-color: rgba(180, 130, 20, 0.35) !important;
  box-shadow: 0 8px 30px rgba(180, 130, 20, 0.07) !important;
  background: #ffffff !important;
}

body.theme-light .card-header {
  border-bottom-color: #e2e8f0 !important;
}

body.theme-light .card-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* Sous-cartes opérationnelles (Mode de Conduite, Matrice Pôles, Télémétrie) */
body.theme-light .cockpit-sub-card {
  background: #ffffff !important;
  border: 1px solid rgba(197, 160, 89, 0.28) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  color: #0f172a !important;
}

body.theme-light .cockpit-view-switcher.btn-secondary {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}

body.theme-light .cockpit-view-switcher.btn-secondary:hover {
  background: #fffdf7 !important;
  border-color: #c5a059 !important;
  color: #8a5a12 !important;
}

body.theme-light .cockpit-view-switcher.btn-primary.active {
  background: #0f172a !important;
  border: 1px solid #c5a059 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15) !important;
}

/* Pôles Pays en Veille Continue - Mode Jour (3 Colonnes Compactes, Zéro Cadrage Lourd) */
body.theme-light .pole-country-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.theme-light .pole-country-item:hover {
  background: rgba(197, 160, 89, 0.08) !important;
}

body.theme-light .pole-country-item .country-text {
  color: #1e293b !important;
}

body.theme-light .pole-country-item:hover .country-text {
  color: #8a5a12 !important;
}

body.theme-light .pole-country-item .country-count {
  color: #8a5a12 !important;
}

body.theme-light .telemetry-label {
  color: #1e293b !important;
  font-weight: 600 !important;
}

body.theme-light .telemetry-val {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.theme-light .telemetry-status-badge {
  color: #047857 !important;
  font-weight: 700 !important;
}

body.theme-light .subcard-footer-text {
  color: #334155 !important;
  font-weight: 600 !important;
}

body.theme-light .stealth-active-banner {
  background: #ecfdf5 !important;
  border: 1px solid #10b981 !important;
  color: #065f46 !important;
}

body.theme-light .stealth-active-banner span,
body.theme-light .stealth-active-banner strong {
  color: #065f46 !important;
  font-weight: 700 !important;
}

/* =============================================================================
   KPI CARDS & METRIQUES EN MODE JOUR (HAUTE HORLOGERIE & PALACES - 100% HARMONIEUX)
   ============================================================================= */
body.theme-light .kpi-clickable-card {
  background: #ffffff !important;
  border: 1px solid rgba(197, 160, 89, 0.22) !important;
  border-top: 3px solid #c5a059 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.theme-light .kpi-clickable-card:hover {
  background: #fffdfa !important;
  border-color: rgba(180, 130, 20, 0.6) !important;
  border-top-color: #b45309 !important;
  box-shadow: 0 6px 20px rgba(180, 130, 20, 0.12) !important;
  transform: translateY(-2px) !important;
}

body.theme-light .kpi-label {
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

body.theme-light .kpi-num,
body.theme-light .kpi-num-gold,
body.theme-light .kpi-num-emerald,
body.theme-light .kpi-num-purple,
body.theme-light .kpi-num-blue,
body.theme-light .kpi-num-rose,
body.theme-light .kpi-num-cyan {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 2.1rem !important;
}

/* Badges de sous-métriques harmonieux et nobles */
body.theme-light .kpi-sub-badge,
body.theme-light .kpi-badge-gold {
  color: #854d0e !important;
  background: #fefce8 !important;
  border: 1px solid rgba(202, 138, 4, 0.35) !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  font-size: 0.76rem !important;
}

body.theme-light .kpi-badge-emerald,
body.theme-light .kpi-badge-green {
  color: #065f46 !important;
  background: #ecfdf5 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  font-size: 0.76rem !important;
}

body.theme-light .kpi-badge-purple,
body.theme-light .kpi-badge-rose,
body.theme-light .kpi-badge-cyan {
  color: #854d0e !important;
  background: #fefce8 !important;
  border: 1px solid rgba(202, 138, 4, 0.35) !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  font-size: 0.76rem !important;
}

body.theme-light .kpi-action-link {
  color: #8a5a12 !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  transition: color 0.15s ease !important;
}

body.theme-light .kpi-action-link:hover {
  color: #b45309 !important;
  text-decoration: underline !important;
}

body.theme-light .chart-card-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.theme-light .chart-subtitle {
  color: #1e293b !important;
  font-weight: 500 !important;
}

/* Bouclier global anti-couleurs pastels / transparentes sur fond blanc */
body.theme-light [style*="color: #a7f3d0"],
body.theme-light [style*="color:#a7f3d0"] {
  color: #065f46 !important;
  font-weight: 600 !important;
}

body.theme-light [style*="color: #60a5fa"],
body.theme-light [style*="color:#60a5fa"],
body.theme-light [style*="color: #93c5fd"],
body.theme-light [style*="color:#93c5fd"],
body.theme-light [style*="color: var(--blue-300)"] {
  color: #1e40af !important;
  font-weight: 600 !important;
}

body.theme-light [style*="color: #c084fc"],
body.theme-light [style*="color:#c084fc"],
body.theme-light [style*="color: var(--purple-300)"] {
  color: #6b21a8 !important;
  font-weight: 600 !important;
}

body.theme-light [style*="color: #f472b6"],
body.theme-light [style*="color:#f472b6"] {
  color: #9f1239 !important;
  font-weight: 600 !important;
}

body.theme-light [style*="color: #67e8f9"],
body.theme-light [style*="color:#67e8f9"],
body.theme-light [style*="color: #22d3ee"],
body.theme-light [style*="color:#22d3ee"] {
  color: #0e7490 !important;
  font-weight: 600 !important;
}

body.theme-light [style*="color: var(--text-dim)"],
body.theme-light [style*="color: var(--text-muted)"] {
  color: #1e293b !important;
}

body.theme-light .bpmn-flow-card {
  background: #fdfaf3 !important;
  border: 1px solid rgba(180, 130, 20, 0.32) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03) !important;
}

body.theme-light .bpmn-flow-header {
  border-bottom: 1px solid rgba(180, 130, 20, 0.18) !important;
}

body.theme-light .bpmn-flow-title {
  color: #78350f !important;
}

body.theme-light .bpmn-track {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 0.85rem !important;
}

body.theme-light .bpmn-node {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .bpmn-node:hover {
  border-color: #b45309 !important;
  box-shadow: 0 6px 18px rgba(180, 130, 20, 0.15) !important;
}

body.theme-light .node-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.theme-light .node-desc {
  color: #334155 !important;
}

body.theme-light .bpmn-connector {
  color: #b45309 !important;
}

body.theme-light .connector-card,
body.theme-light .gov-user-card,
body.theme-light .pipeline-deal-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  color: #0f172a !important;
}

body.theme-light .connector-card:hover,
body.theme-light .gov-user-card:hover,
body.theme-light .pipeline-deal-card:hover {
  border-color: rgba(180, 130, 20, 0.45) !important;
  box-shadow: 0 8px 24px rgba(180, 130, 20, 0.08) !important;
}

/* =============================================================================
   TABLEAUX, COLONNES FIXES & CELLULES EN MODE JOUR
   ============================================================================= */
body.theme-light .data-table-container,
body.theme-light .table-responsive,
body.theme-light #connectorsTableContainer {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

body.theme-light #connectorsTableContainer table,
body.theme-light .data-table,
body.theme-light .leads-table {
  background: #ffffff !important;
}

body.theme-light .data-table th,
body.theme-light .leads-table th,
body.theme-light #connectorsTableContainer th {
  background: #f8fafc !important;
  color: #334155 !important;
  border-bottom: 2px solid #e2e8f0 !important;
  font-weight: 700 !important;
}

body.theme-light .data-table td,
body.theme-light .leads-table td,
body.theme-light #connectorsTableContainer td {
  background: #ffffff;
  color: #0f172a !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

body.theme-light .data-table tr:hover td,
body.theme-light .leads-table tr:hover td,
body.theme-light #connectorsTableContainer tbody tr:hover td {
  background: #fdfaf3 !important;
}

/* Colonnes fixes épinglées (Hermétiques 100% opaques en blanc albâtre) */
body.theme-light .data-table th:first-child,
body.theme-light .data-table td:first-child,
body.theme-light #connectorsTableContainer th:first-child,
body.theme-light #connectorsTableContainer td:first-child,
body.theme-light #connectorsTableContainer th.connector-col-platform,
body.theme-light #connectorsTableContainer td.connector-col-platform {
  background: #ffffff !important;
  box-shadow: 6px 0 18px rgba(0, 0, 0, 0.06), 1px 0 0 rgba(180, 130, 20, 0.25) !important;
  border-right: 1px solid rgba(180, 130, 20, 0.25) !important;
  color: #0f172a !important;
}

body.theme-light .data-table th:last-child,
body.theme-light .data-table td:last-child,
body.theme-light #connectorsTableContainer th:last-child,
body.theme-light #connectorsTableContainer td:last-child,
body.theme-light #connectorsTableContainer th.connector-col-actions,
body.theme-light #connectorsTableContainer td.connector-col-actions {
  background: #ffffff !important;
  box-shadow: -6px 0 18px rgba(0, 0, 0, 0.06), -1px 0 0 rgba(180, 130, 20, 0.25) !important;
  border-left: 1px solid rgba(180, 130, 20, 0.25) !important;
  color: #0f172a !important;
}

body.theme-light .data-table thead th:first-child,
body.theme-light .data-table thead th:last-child,
body.theme-light #connectorsTableContainer thead th:first-child,
body.theme-light #connectorsTableContainer thead th:last-child {
  background: #f8fafc !important;
  border-bottom: 2px solid #b45309 !important;
  color: #78350f !important;
}

body.theme-light #connectorsTableContainer tbody tr.connector-row:hover td:first-child,
body.theme-light #connectorsTableContainer tbody tr.connector-row:hover td:last-child {
  background: #faf4e4 !important;
}

/* =============================================================================
   FORMULAIRES, BOUTONS & BADGES DE PRESTIGE EN MODE JOUR
   ============================================================================= */
body.theme-light .form-control {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light .form-control:focus {
  border-color: #b45309 !important;
  box-shadow: 0 0 0 3px rgba(180, 130, 20, 0.15) !important;
}

body.theme-light .form-label {
  color: #1e293b !important;
  font-weight: 600 !important;
}

body.theme-light .btn-primary {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15), 0 0 10px rgba(212, 175, 55, 0.1) !important;
}

body.theme-light .btn-primary:hover {
  background: linear-gradient(135deg, #1e293b 0%, #1e40af 100%) !important;
  border-color: #d4af37 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22), 0 0 15px rgba(212, 175, 55, 0.2) !important;
}

body.theme-light .btn-gold {
  background: linear-gradient(135deg, #92400e 0%, #78350f 100%) !important;
  border: 1px solid #b45309 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(146, 64, 14, 0.2) !important;
}

body.theme-light .btn-gold:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%) !important;
  border-color: #d97706 !important;
  color: #ffffff !important;
}

body.theme-light .btn-secondary {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

body.theme-light .btn-secondary:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Badges Haute Lisibilité (Contraste > 7:1) */
body.theme-light .badge-subtle {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

body.theme-light .badge-gold {
  background: #fefce8 !important;
  border-color: #fde68a !important;
  color: #78350f !important;
  font-weight: 700 !important;
}

body.theme-light .badge-blue {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1e40af !important;
  font-weight: 700 !important;
}

body.theme-light .badge-emerald {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #065f46 !important;
  font-weight: 700 !important;
}

body.theme-light .badge-purple {
  background: #faf5ff !important;
  border-color: #e9d5ff !important;
  color: #6b21a8 !important;
  font-weight: 700 !important;
}

body.theme-light .badge-france {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1e3a8a !important;
  font-weight: 700 !important;
}

body.theme-light .badge-intl {
  background: #f5f3ff !important;
  border-color: #ddd6fe !important;
  color: #5b21b6 !important;
  font-weight: 700 !important;
}

/* Remplacement des styles en ligne néon */
body.theme-light [style*="color: var(--emerald-400)"] {
  color: #065f46 !important;
}

body.theme-light [style*="color: var(--blue-400)"] {
  color: #1e40af !important;
}

body.theme-light [style*="color: var(--purple-400)"] {
  color: #6b21a8 !important;
}

body.theme-light [style*="color: #a7f3d0"] {
  color: #065f46 !important;
  font-weight: 600 !important;
}

body.theme-light [style*="color: #93c5fd"] {
  color: #1e40af !important;
  font-weight: 600 !important;
}

body.theme-light [style*="color: #c084fc"] {
  color: #6b21a8 !important;
  font-weight: 600 !important;
}

body.theme-light [style*="color: #fb7185"] {
  color: #9f1239 !important;
  font-weight: 600 !important;
}

body.theme-light [style*="color: #f87171"] {
  color: #991b1b !important;
  font-weight: 600 !important;
}

body.theme-light [style*="color: #38bdf8"] {
  color: #0369a1 !important;
  font-weight: 600 !important;
}

body.theme-light [style*="color: #6ee7b7"] {
  color: #065f46 !important;
  font-weight: 600 !important;
}

body.theme-light .table-pagination-bar {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

body.theme-light .gold-gradient-text {
  background: linear-gradient(135deg, #78350f 0%, #b45309 50%, #6d4508 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

body.theme-light .lead-country-flag {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18) !important;
}

/* Modales & Inspecteur Flottant en Mode Clair */
body.theme-light .modal-box {
  background: #ffffff !important;
  border: 1px solid rgba(180, 130, 20, 0.4) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.16), 0 0 30px rgba(180, 130, 20, 0.08) !important;
  color: #0f172a !important;
}

body.theme-light .cursor-inspector-tooltip {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(180, 130, 20, 0.45) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(180, 130, 20, 0.08) !important;
  color: #0f172a !important;
}

body.theme-light .cit-body {
  color: #334155 !important;
}

body.theme-light .cit-body strong {
  color: #0f172a !important;
}

body.theme-light .cit-header-left {
  color: #8a5a12 !important;
}

body.theme-light .cit-footer {
  border-top-color: #e2e8f0 !important;
  color: #64748b !important;
}

/* ==========================================================================
   CENTRE DOCUMENTAIRE & MODALE DOCUMENTATION BPMN 2.0 DANS L'INTERFACE
   ========================================================================== */

/* Bouton Spécial Navbar Docs */
.nav-item-btn.nav-btn-doc {
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(13, 23, 38, 0.6) 100%);
  transition: all var(--transition-normal);
}

.nav-item-btn.nav-btn-doc:hover,
.nav-item-btn.nav-btn-doc.active {
  border-color: var(--gold-400);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(26, 38, 57, 0.9) 100%);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Boutons "Doc & BPMN" intégrés dans l'en-tête de chaque outil */
.open-tool-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.open-tool-doc-btn:hover {
  background: rgba(212, 175, 55, 0.25);
  color: #ffffff;
  border-color: var(--gold-400);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.open-tool-doc-btn i {
  color: var(--gold-400);
}

/* Modale Interactive de Documentation BPMN */
#toolDocModal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

#toolDocModal.active {
  display: flex;
  opacity: 1;
}

.doc-modal-container {
  width: 96%;
  max-width: 1520px;
  width: 96vw;
  height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.15);
  overflow: hidden;
  animation: docModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes docModalIn {
  from {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.doc-modal-header {
  padding: 1.25rem 1.75rem;
  background: linear-gradient(90deg, rgba(13, 23, 38, 0.95) 0%, rgba(20, 32, 50, 0.95) 100%);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.doc-modal-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Sidebar des 9 Outils dans la Modale */
.doc-modal-sidebar {
  width: 290px;
  background: rgba(8, 14, 23, 0.9);
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.doc-modal-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
}

.doc-modal-tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.08);
}

.doc-modal-tab-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  color: var(--gold-300);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: inset 2px 0 0 var(--gold-400);
}

.doc-modal-tab-btn .doc-tab-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-400);
  background: rgba(212, 175, 55, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Zone de contenu principale de la modale */
.doc-modal-main,
.doc-modal-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: radial-gradient(circle at 10% 20%, rgba(20, 32, 50, 0.4) 0%, rgba(13, 23, 38, 0.8) 100%);
}

.doc-modal-panel,
.doc-modal-content-panel {
  display: none;
}

.doc-modal-panel.active,
.doc-modal-content-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

/* Mermaid Wrapper */
.doc-mermaid-wrapper {
  background: #06090e;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  overflow-x: auto;
  text-align: center;
  margin: 1.25rem 0;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.doc-mermaid-wrapper pre.mermaid {
  margin: 0;
  background: transparent;
}

/* Fiches synthétiques dans la doc */
.doc-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.doc-spec-card {
  background: rgba(13, 23, 38, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.doc-spec-card h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.doc-spec-card p,
.doc-spec-card ul {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.doc-spec-card ul {
  padding-left: 1.2rem;
}

/* Theme clair pour le centre documentaire et la modale */
body.theme-light .nav-item-btn.nav-btn-doc {
  background: #fbf8f0 !important;
  border-color: #d4af37 !important;
}

body.theme-light .open-tool-doc-btn {
  background: #fdfaf3 !important;
  border-color: #d4af37 !important;
  color: #8a620b !important;
}

body.theme-light .open-tool-doc-btn:hover {
  background: #f5eed8 !important;
  color: #4a3405 !important;
}

body.theme-light .doc-modal-container {
  background: #ffffff !important;
  border-color: #d4af37 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
}

body.theme-light .doc-modal-header {
  background: #fcfbf9 !important;
  border-bottom-color: #e5e7eb !important;
}

body.theme-light .doc-modal-sidebar {
  background: #f8fafc !important;
  border-right-color: #e5e7eb !important;
}

body.theme-light .doc-modal-tab-btn {
  color: #475569 !important;
}

body.theme-light .doc-modal-tab-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.theme-light .doc-modal-tab-btn.active {
  background: #fdf6e2 !important;
  color: #8a620b !important;
  border-color: #d4af37 !important;
}

body.theme-light .doc-modal-main {
  background: #ffffff !important;
}

body.theme-light .doc-mermaid-wrapper {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

body.theme-light .doc-spec-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

body.theme-light .doc-spec-card h5 {
  color: #8a620b !important;
}

body.theme-light .doc-spec-card p,
body.theme-light .doc-spec-card ul {
  color: #334155 !important;
}

/* =============================================================================
   SYSTÈME BPMN 2.0 ORGANISATIONNEL LINÉAIRE ("SUR UNE LIGNE") — AMBASSADE HUB
   STANDARD FORMEL ISO/IEC 19510 SANS UML — ÉVÉNEMENTS, TÂCHES COULOIRS & GATEWAYS
   ============================================================================= */
.bpmn-org-container {
  width: 100%;
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.95) 0%, rgba(8, 12, 22, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.bpmn-org-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
}

.bpmn-org-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-300);
}

.bpmn-org-lanes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bpmn-lane-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.bpmn-lane-direction {
  background: rgba(212, 175, 55, 0.15);
  color: #f7d674;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.bpmn-lane-consultant {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.bpmn-lane-system {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.bpmn-lane-target {
  background: rgba(192, 132, 252, 0.12);
  color: #d8b4fe;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

/* Axe Linéaire Continu ("Sur une Ligne") */
.bpmn-linear-axis-wrapper {
  position: relative;
  width: 100%;
}

.bpmn-linear-axis {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1.25rem 0.5rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: smooth;
}

.bpmn-linear-axis::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.bpmn-linear-axis.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
}

.bpmn-nav-chevron {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14, 22, 38, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-400);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  opacity: 0.88;
}

.bpmn-nav-chevron:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  background: var(--gold-400);
  color: #0b111e;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.6);
}

.bpmn-nav-chevron.chevron-left {
  left: 8px;
}

.bpmn-nav-chevron.chevron-right {
  right: 8px;
}

body.theme-light .bpmn-nav-chevron {
  background: #ffffff !important;
  border: 1px solid rgba(180, 130, 20, 0.45) !important;
  color: #854d0e !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
}

body.theme-light .bpmn-nav-chevron:hover {
  background: #854d0e !important;
  color: #ffffff !important;
}

.bpmn-track-row {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  padding: 0 0.5rem;
}

/* 1. Événement BPMN (Cercle fin pour Début, double pour Intermédiaire, épais pour Fin) */
.bpmn-el-event {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 110px;
  flex-shrink: 0;
  position: relative;
}

.bpmn-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s ease;
  position: relative;
}

.bpmn-circle-start {
  border: 2px solid #10b981;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.bpmn-circle-intermediate {
  border: 2px solid #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  box-shadow: inset 0 0 0 3px rgba(14, 22, 38, 0.9), inset 0 0 0 5px #f59e0b;
}

.bpmn-circle-end {
  border: 4px solid #ef4444;
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.bpmn-el-label {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.25;
  max-width: 105px;
}

.bpmn-el-sub {
  font-size: 0.67rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
  line-height: 1.2;
}

/* 2. Tâche BPMN Organisationnelle (Boîte arrondie aux normes BPMN 2.0) */
.bpmn-el-task {
  width: 215px;
  min-height: 125px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.bpmn-el-task:hover {
  transform: translateY(-2px);
  border-color: var(--gold-400);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.2);
}

.bpmn-task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.bpmn-task-type-icon {
  font-size: 0.78rem;
  color: var(--gold-400);
}

.bpmn-task-lane-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.lane-tag-dir {
  background: rgba(212, 175, 55, 0.15);
  color: #f7d674;
}

.lane-tag-con {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
}

.lane-tag-sys {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.lane-tag-tar {
  background: rgba(192, 132, 252, 0.15);
  color: #d8b4fe;
}

.bpmn-task-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.bpmn-task-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* 3. Passerelle Exclusive BPMN (Losange 45° avec 'X') */
.bpmn-el-gateway {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
  flex-shrink: 0;
  position: relative;
}

.bpmn-diamond-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bpmn-diamond {
  width: 36px;
  height: 36px;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid #f59e0b;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
  transition: all 0.25s ease;
}

.bpmn-diamond-icon {
  transform: rotate(-45deg);
  font-size: 0.85rem;
  font-weight: 900;
  color: #fbbf24;
}

.bpmn-gateway-branches {
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  width: 100%;
}

.bpmn-branch-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.branch-pass {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.branch-fail {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 4. Connecteurs de Flux de Séquence Linéaire */
.bpmn-seq-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  flex-shrink: 0;
  position: relative;
}

.bpmn-line {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.8));
  position: relative;
}

.bpmn-arrow-head {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--gold-400);
}

/* =============================================================================
   ADAPTATION DU SYSTÈME BPMN EN MODE CLAIR DE PRESTIGE
   ============================================================================= */
body.theme-light .bpmn-org-container {
  background: #fdfaf3 !important;
  border: 1px solid rgba(180, 130, 20, 0.35) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .bpmn-org-header {
  border-bottom: 1px solid rgba(180, 130, 20, 0.2) !important;
}

body.theme-light .bpmn-org-title {
  color: #78350f !important;
}

body.theme-light .bpmn-lane-direction {
  background: #fefce8 !important;
  color: #78350f !important;
  border-color: #fde68a !important;
}

body.theme-light .bpmn-lane-consultant {
  background: #eff6ff !important;
  color: #1e40af !important;
  border-color: #bfdbfe !important;
}

body.theme-light .bpmn-lane-system {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border-color: #a7f3d0 !important;
}

body.theme-light .bpmn-lane-target {
  background: #faf5ff !important;
  color: #6b21a8 !important;
  border-color: #e9d5ff !important;
}

body.theme-light .bpmn-linear-axis {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  scrollbar-color: rgba(180, 130, 20, 0.4) transparent !important;
}

body.theme-light .bpmn-circle-start {
  background: #ecfdf5 !important;
  border-color: #059669 !important;
  color: #065f46 !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15) !important;
}

body.theme-light .bpmn-circle-intermediate {
  background: #fffbeb !important;
  border-color: #d97706 !important;
  color: #92400e !important;
  box-shadow: inset 0 0 0 3px #ffffff, inset 0 0 0 5px #d97706 !important;
}

body.theme-light .bpmn-circle-end {
  background: #fff1f2 !important;
  border-color: #be123c !important;
  color: #9f1239 !important;
  box-shadow: 0 2px 8px rgba(190, 18, 60, 0.15) !important;
}

body.theme-light .bpmn-el-label {
  color: #0f172a !important;
}

body.theme-light .bpmn-el-sub {
  color: #64748b !important;
}

body.theme-light .bpmn-el-task {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .bpmn-el-task:hover {
  border-color: #b45309 !important;
  box-shadow: 0 6px 18px rgba(180, 130, 20, 0.15) !important;
}

body.theme-light .bpmn-task-type-icon {
  color: #8a5a12 !important;
}

body.theme-light .bpmn-task-title {
  color: #0f172a !important;
}

body.theme-light .bpmn-task-desc {
  color: #334155 !important;
}

body.theme-light .lane-tag-dir {
  background: #fefce8 !important;
  color: #78350f !important;
}

body.theme-light .lane-tag-con {
  background: #eff6ff !important;
  color: #1e40af !important;
}

body.theme-light .lane-tag-sys {
  background: #ecfdf5 !important;
  color: #065f46 !important;
}

body.theme-light .lane-tag-tar {
  background: #faf5ff !important;
  color: #6b21a8 !important;
}

body.theme-light .bpmn-diamond {
  background: #fffbeb !important;
  border-color: #d97706 !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15) !important;
}

body.theme-light .bpmn-diamond-icon {
  color: #b45309 !important;
}

body.theme-light .branch-pass {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border-color: #a7f3d0 !important;
}

body.theme-light .branch-fail {
  background: #fff1f2 !important;
  color: #9f1239 !important;
  border-color: #fecdd3 !important;
}

body.theme-light .bpmn-line {
  background: linear-gradient(90deg, rgba(180, 130, 20, 0.3), rgba(180, 130, 20, 0.8)) !important;
}

body.theme-light .bpmn-arrow-head {
  border-left-color: #b45309 !important;
}

/* Amélioration de la modale BPMN en mode clair */
body.theme-light #toolDocModal {
  background: rgba(15, 23, 42, 0.45) !important;
}

body.theme-light .doc-modal-content-panel h4 {
  color: #78350f !important;
}

body.theme-light .doc-modal-content-panel p {
  color: #334155 !important;
}

/* =========================================================================
   SÉLECTEUR MULTILINGUE LUXE & HAUTE FIDÉLITÉ (i18n NATIF)
   ========================================================================= */
.lang-switcher-dropdown {
  position: relative;
  display: inline-block;
  z-index: 999999 !important;
  overflow: visible !important;
}

.hub-flag-svg {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.lang-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.75rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 9999px;
  color: var(--gold-300);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.lang-trigger-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-trigger-flag .hub-flag-svg {
  width: 21px;
  height: 15px;
}

.lang-trigger-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.lang-dropdown-trigger:hover,
.lang-switcher-dropdown.open .lang-dropdown-trigger {
  background: rgba(212, 175, 55, 0.26);
  border-color: var(--gold-400);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 440px;
  max-width: calc(100vw - 20px);
  background: linear-gradient(165deg, rgba(14, 21, 38, 0.98) 0%, rgba(8, 12, 22, 0.99) 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.92), 0 0 25px rgba(212, 175, 55, 0.2);
  padding: 0.85rem;
  display: none;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 9999999 !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  animation: fadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-switcher-dropdown.open .lang-dropdown-menu {
  display: flex !important;
}

/* En-tête Prestigieux */
.lang-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.lang-header-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lang-header-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-size: 0.85rem;
}

.lang-header-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.lang-header-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.lang-header-sub {
  font-size: 0.63rem;
  color: var(--text-dim);
  font-weight: 500;
}

.lang-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  color: var(--gold-200);
  font-weight: 600;
}

.lang-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Barre Rapide des Drapeaux */
.lang-quick-flags-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 0.4rem 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.lang-quick-flag-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-quick-flag-btn .quick-flag-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-quick-flag-btn .quick-flag-img .hub-flag-svg {
  width: 19px;
  height: 13px;
}

.lang-quick-flag-btn .quick-flag-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1;
}

.lang-quick-flag-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.lang-quick-flag-btn:hover .quick-flag-label {
  color: var(--gold-300);
}

.lang-quick-flag-btn.active {
  background: rgba(212, 175, 55, 0.24);
  border-color: var(--gold-400);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.lang-quick-flag-btn.active .quick-flag-label {
  color: var(--gold-200);
  font-weight: 800;
}

/* Séparateur élégant */
.lang-grid-divider {
  display: flex;
  align-items: center;
  margin: 0.15rem 0;
  text-align: center;
  position: relative;
}

.lang-grid-divider::before,
.lang-grid-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.lang-grid-divider span {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-dim);
  padding: 0 0.5rem;
  font-weight: 600;
}

/* Grille 2 Colonnes des Blocs de Langues */
.lang-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.lang-opt-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  position: relative;
}

.lang-card-flag-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lang-card-flag-box .hub-flag-svg {
  width: 22px;
  height: 15px;
  border-radius: 2px;
}

.lang-card-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  line-height: 1.25;
}

.lang-card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.lang-name-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-iso-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-region-text {
  font-size: 0.65rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-card-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  color: transparent;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.lang-opt-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.lang-opt-btn:hover .lang-name-text {
  color: var(--gold-300);
}

.lang-opt-btn.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-400);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.15);
}

.lang-opt-btn.active .lang-name-text {
  color: var(--gold-200);
  font-weight: 800;
}

.lang-opt-btn.active .lang-iso-badge {
  color: var(--gold-200);
  background: rgba(212, 175, 55, 0.25);
  border-color: rgba(212, 175, 55, 0.45);
}

.lang-opt-btn.active .lang-card-check {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Pied de boîte */
.lang-dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.64rem;
  color: var(--text-dim);
}

.lang-footer-protocol {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-footer-badge {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 0.6rem;
  font-weight: 600;
}

/* =========================================================================
   THÈME CLAIR (MODE LUXE PRESTIGE • PALACE WHITE & GOLD)
   ========================================================================= */
body.theme-light .hub-flag-svg {
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

body.theme-light .lang-dropdown-trigger {
  background: #ffffff !important;
  border-color: rgba(180, 140, 30, 0.45) !important;
  color: #8a620b !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

body.theme-light .lang-dropdown-trigger:hover,
body.theme-light .lang-switcher-dropdown.open .lang-dropdown-trigger {
  background: #fffbeb !important;
  border-color: #d4af37 !important;
  color: #714e05 !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25) !important;
}

body.theme-light .lang-dropdown-menu {
  background: linear-gradient(165deg, #ffffff 0%, #faf8f5 100%) !important;
  border-color: rgba(190, 145, 30, 0.4) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16), 0 0 20px rgba(212, 175, 55, 0.14) !important;
}

body.theme-light .lang-dropdown-header {
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .lang-header-icon-box {
  background: rgba(212, 175, 55, 0.12) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
  color: #8a620b !important;
}

body.theme-light .lang-header-title {
  color: #8a620b !important;
}

body.theme-light .lang-header-sub {
  color: #64748b !important;
}

body.theme-light .lang-active-pill {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light .lang-quick-flags-row {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

body.theme-light .lang-quick-flag-btn .quick-flag-label {
  color: #64748b !important;
}

body.theme-light .lang-quick-flag-btn:hover {
  background: #fef9c3 !important;
  border-color: rgba(212, 175, 55, 0.5) !important;
}

body.theme-light .lang-quick-flag-btn:hover .quick-flag-label {
  color: #8a620b !important;
}

body.theme-light .lang-quick-flag-btn.active {
  background: #fef3c7 !important;
  border-color: #d97706 !important;
  box-shadow: 0 0 8px rgba(217, 119, 6, 0.25) !important;
}

body.theme-light .lang-quick-flag-btn.active .quick-flag-label {
  color: #8a620b !important;
}

body.theme-light .lang-grid-divider::before,
body.theme-light .lang-grid-divider::after {
  background: #e2e8f0 !important;
}

body.theme-light .lang-grid-divider span {
  color: #64748b !important;
}

body.theme-light .lang-opt-btn {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

body.theme-light .lang-name-text {
  color: #0f172a !important;
}

body.theme-light .lang-region-text {
  color: #64748b !important;
}

body.theme-light .lang-iso-badge {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

body.theme-light .lang-opt-btn:hover {
  background: #fefce8 !important;
  border-color: rgba(212, 175, 55, 0.55) !important;
}

body.theme-light .lang-opt-btn:hover .lang-name-text {
  color: #8a620b !important;
}

body.theme-light .lang-opt-btn.active {
  background: #fffbeb !important;
  border-color: #d97706 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.12) !important;
}

body.theme-light .lang-opt-btn.active .lang-name-text {
  color: #8a620b !important;
}

body.theme-light .lang-opt-btn.active .lang-iso-badge {
  background: #fef3c7 !important;
  border-color: rgba(217, 119, 6, 0.4) !important;
  color: #8a620b !important;
}

body.theme-light .lang-opt-btn.active .lang-card-check {
  color: #059669 !important;
  background: #d1fae5 !important;
  border: 1px solid rgba(5, 150, 105, 0.3) !important;
}

body.theme-light .lang-dropdown-footer {
  border-top-color: #e2e8f0 !important;
  color: #64748b !important;
}

body.theme-light .lang-footer-badge {
  background: #fef3c7 !important;
  color: #8a620b !important;
  border-color: rgba(212, 175, 55, 0.35) !important;
}

/* =========================================================================
   INDICATEUR DE LOCALISATION DYNAMIQUE & COPIE EMPLACEMENT POUR L'IA (1 CLIC)
   ========================================================================= */
.active-page-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 9999px;
  padding: 0.22rem 0.35rem 0.22rem 0.75rem;
  height: 38px;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-family: inherit;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  margin-left: 0.5rem;
}

.active-page-indicator:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold-400);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
}

.active-page-indicator:active {
  transform: translateY(1px);
}

.indicator-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
}

.indicator-pin {
  color: var(--gold-400);
  font-size: 0.82rem;
  transition: transform 0.2s ease;
}

.active-page-indicator:hover .indicator-pin {
  transform: scale(1.15);
}

.indicator-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.indicator-url {
  background: rgba(0, 0, 0, 0.65);
  color: var(--gold-300);
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-left: 0.15rem;
}

.indicator-copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #d4af37, #f59e0b);
  color: #0b0f19 !important;
  font-weight: 800;
  font-size: 0.73rem;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.active-page-indicator:hover .indicator-copy-badge {
  filter: brightness(1.12);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  transform: scale(1.02);
}

/* État Succès Instantané Copié (1 Clic) */
.active-page-indicator.copied {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.45) !important;
}

.active-page-indicator.copied .indicator-copy-badge {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
}

/* Adaptation Thème Clair */
body.theme-light .active-page-indicator {
  background: #fdfaf3 !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

body.theme-light .indicator-title {
  color: #1e293b !important;
}

body.theme-light .indicator-url {
  background: #ffffff !important;
  color: #8a620b !important;
  border-color: rgba(212, 175, 55, 0.35) !important;
}

body.theme-light .nav-cluster {
  background: #f8fafc !important;
  border-color: rgba(212, 175, 55, 0.35) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

body.theme-light .nav-cluster:hover {
  border-color: var(--gold-400) !important;
  background: #ffffff !important;
}

body.theme-light .cluster-separator {
  background: rgba(0, 0, 0, 0.1) !important;
}

body.theme-light .cluster-tool-btn {
  color: #475569 !important;
}

body.theme-light .cluster-tool-btn:hover {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .user-display-name {
  color: #8a620b !important;
}

body.theme-light .user-display-role {
  color: #64748b !important;
  background: #f1f5f9 !important;
}

@media (max-width: 992px) {
  .active-page-indicator {
    display: none;
  }
}

/* ========================================================================= */
/* LIVE TELEMETRY HUD & SCAN IA HOVER MICRO-POPOVER                          */
/* ========================================================================= */
.radar-telemetry-hud {
  transition: all 0.25s ease;
}

.radar-telemetry-hud:hover {
  border-color: rgba(212, 175, 55, 0.5) !important;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15) !important;
  background: rgba(18, 25, 38, 0.9) !important;
}

#triggerAutonomousScanBtn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

#triggerAutonomousScanBtn:hover {
  border-color: var(--gold-400) !important;
  background: rgba(212, 175, 55, 0.15) !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3) !important;
  transform: translateY(-1px);
}

#triggerAutonomousScanBtn:hover+.scan-ia-hover-tooltip,
.scan-ia-hover-tooltip:hover {
  display: block !important;
  animation: fadeInDown 0.2s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Rapport d'Auscultation */
#scanIaRecapModal .modal-box {
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
}

/* =========================================================================
   CARTOGRAPHIE MONDIALE DES CONNECTEURS : DUAL VIEW (VIGNETTES / TABLEAU)
   ========================================================================= */
.view-switcher-group {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.view-switcher-group button {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
}

.view-switcher-group button.active {
  background: var(--gold-500) !important;
  color: #0b0f19 !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}

#connectorShowAllBtn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#connectorShowAllBtn:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(6, 182, 212, 0.28)) !important;
  border-color: var(--gold-300) !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25) !important;
  transform: translateY(-1px);
}

#connectorsTableContainer {
  position: relative;
  overflow-x: auto !important;
  background: #080b12 !important;
  padding: 0 !important;
}

#connectorsTableContainer table {
  font-size: 0.86rem;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: max-content !important;
  min-width: 100% !important;
  background: #080b12 !important;
}

/* =========================================================================
   COLONNES FIXES HERMÉTIQUES : GAUCHE (PORTAIL) & DROITE (ACTIONS IA)
   100% OPAQUES - MASQUE TOTAL SANS AUCUN DÉBORDEMENT NI FUITES LATÉRALES
   ========================================================================= */

/* 1. Colonne Gauche Fixe (Portail & Plateforme) */
#connectorsTableContainer th.connector-col-platform,
#connectorsTableContainer td.connector-col-platform,
#connectorsTableContainer th:first-child,
#connectorsTableContainer td:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 25 !important;
  background: #0b0f19 !important;
  /* 100% OPAQUE */
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.98), 1px 0 0 rgba(212, 175, 55, 0.35) !important;
  border-right: 1px solid rgba(212, 175, 55, 0.35) !important;
  border-left: none !important;
  width: 290px !important;
  min-width: 290px !important;
  max-width: 290px !important;
  padding-left: 1.25rem !important;
  box-sizing: border-box !important;
}

/* 2. Colonne Droite Fixe (Actions IA) - Masque Parfait Hermétique */
#connectorsTableContainer th.connector-col-actions,
#connectorsTableContainer td.connector-col-actions,
#connectorsTableContainer th:last-child,
#connectorsTableContainer td:last-child {
  position: sticky !important;
  right: 0 !important;
  z-index: 25 !important;
  background: #0b0f19 !important;
  /* 100% OPAQUE */
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.98), -1px 0 0 rgba(212, 175, 55, 0.35) !important;
  border-left: 1px solid rgba(212, 175, 55, 0.35) !important;
  border-right: none !important;
  width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;
  padding-right: 1.25rem !important;
  box-sizing: border-box !important;
  text-align: right !important;
}

/* 3. En-têtes d'angles (Coins supérieurs Gauche & Droite) : double sticky */
#connectorsTableContainer thead th:first-child {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 40 !important;
  background: #0f1523 !important;
  /* 100% Opaque */
  border-bottom: 2px solid var(--gold-400) !important;
  border-right: 1px solid rgba(212, 175, 55, 0.35) !important;
  border-left: none !important;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.98) !important;
  padding-left: 1.25rem !important;
}

#connectorsTableContainer thead th:last-child {
  position: sticky !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 40 !important;
  background: #0f1523 !important;
  /* 100% Opaque */
  border-bottom: 2px solid var(--gold-400) !important;
  border-left: 1px solid rgba(212, 175, 55, 0.35) !important;
  border-right: none !important;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.98) !important;
  padding-right: 1.25rem !important;
}

/* 4. En-têtes centraux (Sticky vertical au scroll) */
#connectorsTableContainer thead th:not(:first-child):not(:last-child) {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  background: #0f1523 !important;
  /* 100% Opaque */
  border-bottom: 2px solid rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6) !important;
}

/* 5. Cellules centrales qui glissent SOUS les colonnes fixes */
#connectorsTableContainer tbody td:not(:first-child):not(:last-child) {
  position: relative !important;
  z-index: 5 !important;
  background: #080b12 !important;
}

/* 6. Survol des lignes : COULEURS 100% SOLIDES (AUCUN RGBA TRANSLUCIDE QUI TRAHIT LE FOND) */
#connectorsTableContainer tbody tr.connector-row:hover td {
  background: #121927 !important;
}

#connectorsTableContainer tbody tr.connector-row:hover td:first-child,
#connectorsTableContainer tbody tr.connector-row:hover td:last-child {
  background: #141b2a !important;
  /* Couleur 100% OPAQUE sur les colonnes fixes */
}

/* Drapeaux et cellule pays */
.connector-country-cell {
  transition: all 0.2s ease;
}

.connector-country-cell:hover .country-flag-badge {
  transform: scale(1.15);
  transition: transform 0.2s ease;
}

.connector-country-cell:hover {
  background: rgba(212, 175, 55, 0.08) !important;
}

/* =========================================================================
   POPOVER CARTOGRAPHIE MONDIALE INTERACTIVE AU SURVOL DU PAYS
   ========================================================================= */
.country-map-popover {
  position: fixed;
  z-index: 99999;
  width: 340px;
  background: rgba(10, 14, 23, 0.98);
  border: 1px solid var(--gold-400);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(14px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.country-map-popover.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.country-map-popover .popover-header {
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.country-map-popover .popover-map-wrapper {
  padding: 0.6rem 0.9rem;
  background: radial-gradient(circle at center, rgba(18, 26, 44, 0.98), rgba(7, 10, 17, 1));
}

.country-map-popover .world-map-svg {
  width: 100%;
  height: 150px;
  display: block;
}

.country-map-popover .map-land {
  fill: #1a2538;
  stroke: rgba(212, 175, 55, 0.4);
  stroke-width: 1.2;
}

.country-map-popover .popover-footer {
  padding: 0.55rem 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

@keyframes beaconSonar {
  0% {
    r: 6;
    opacity: 1;
  }

  100% {
    r: 36;
    opacity: 0;
  }
}

.beacon-sonar-1 {
  animation: beaconSonar 1.8s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

.beacon-sonar-2 {
  animation: beaconSonar 1.8s infinite 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}



/* ==========================================================================
   ERGONOMIE : MODE EN-TÊTE COMPACT AU DÉFILEMENT (GAIN DE 40PX D'ESPACE UTILE)
   ========================================================================== */
.app-header-sticky {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-header-sticky.header-compact .navbar-top-bar {
  min-height: 42px !important;
  padding: 0.25rem 1.5rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-header-sticky.header-compact .brand-logo-icon {
  width: 32px !important;
  height: 32px !important;
  font-size: 0.9rem !important;
}

.app-header-sticky.header-compact .brand-text h1 {
  font-size: 1.1rem !important;
}

.app-header-sticky.header-compact .brand-text p {
  display: none !important;
}

.app-header-sticky.header-compact .nav-cluster {
  height: 32px !important;
  padding: 0.15rem 0.5rem !important;
}


/* =============================================================================
   HARMONISATION COMPLÈTE DU MODE CLAIR POUR TOUTES LES MODALES DU HUB
   (Zéro couleur électrique, WCAG AAA, Élimination des blocs grisâtres)
   ============================================================================= */
body.theme-light .doc-modal-container {
  background: #ffffff !important;
  border: 1px solid rgba(180, 130, 20, 0.45) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2), 0 0 35px rgba(180, 130, 20, 0.1) !important;
}

body.theme-light .doc-modal-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body.theme-light .doc-modal-header h4,
body.theme-light .doc-modal-header .font-serif.gold-gradient-text {
  color: #78350f !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

body.theme-light .doc-modal-sidebar {
  background: #f8fafc !important;
  border-right: 1px solid #e2e8f0 !important;
}

body.theme-light .doc-modal-sidebar div[style*="text-transform: uppercase"] {
  color: #78350f !important;
}

body.theme-light .doc-modal-tab-btn {
  color: #334155 !important;
}

body.theme-light .doc-modal-tab-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.theme-light .doc-modal-tab-btn.active {
  background: #fefce8 !important;
  color: #78350f !important;
  border-color: #fde68a !important;
  box-shadow: inset 3px 0 0 #b45309 !important;
}

body.theme-light .doc-modal-content-area,
body.theme-light .doc-modal-main,
body.theme-light .doc-modal-body {
  background: #fdfcf9 !important;
  color: #0f172a !important;
}

body.theme-light .doc-modal-content-panel h4 {
  color: #78350f !important;
}

body.theme-light .doc-modal-content-panel p {
  color: #334155 !important;
}

body.theme-light .doc-modal-content-panel [style*="background: rgba(255,255,255,0.03)"] {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .doc-modal-content-panel [style*="color: var(--text-main)"] {
  color: #0f172a !important;
}

body.theme-light .doc-modal-content-panel [style*="color: var(--gold-400)"] {
  color: #854d0e !important;
}

/* Modales Générales (stealthProtocolModal, teamAllocationModal, addLeadModal, etc.) */
body.theme-light .modal-box {
  background: #ffffff !important;
  border: 1px solid rgba(180, 130, 20, 0.35) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 0 35px rgba(180, 130, 20, 0.08) !important;
  color: #0f172a !important;
}

body.theme-light .modal-header,
body.theme-light .modal-box>div:first-child[style*="border-bottom"] {
  border-bottom-color: #e2e8f0 !important;
}

body.theme-light .modal-box h2,
body.theme-light .modal-box h3,
body.theme-light .modal-box h4,
body.theme-light .modal-box .font-serif.gold-gradient-text {
  color: #78350f !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

/* Remplacement universel des fonds sombres inline dans toutes les modales */
body.theme-light .modal-box [style*="background: rgba(0,0,0"],
body.theme-light .modal-box [style*="background: rgba(0, 0, 0"],
body.theme-light .modal-box [style*="background:rgba(0,0,0"],
body.theme-light .modal-box [style*="background: #0b111e"],
body.theme-light .modal-box [style*="background:#0b111e"],
body.theme-light .modal-box [style*="background: #0f172a"],
body.theme-light .modal-box [style*="background:#0f172a"],
body.theme-light .modal-box [style*="background: rgba(56, 189, 248, 0.05)"],
body.theme-light .modal-box [style*="background: rgba(16, 185, 129, 0.08)"] {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Remplacement des textes blancs inline */
body.theme-light .modal-box [style*="color: #fff"],
body.theme-light .modal-box [style*="color:#fff"],
body.theme-light .modal-box [style*="color: #ffffff"],
body.theme-light .modal-box [style*="color:#ffffff"],
body.theme-light .modal-box [style*="color: white"],
body.theme-light .modal-box [style*="color:white"] {
  color: #0f172a !important;
}

/* Remplacement des textes délavés / trop clairs */
body.theme-light .modal-box [style*="color: #d1fae5"],
body.theme-light .modal-box [style*="color:#d1fae5"] {
  color: #065f46 !important;
}

body.theme-light .modal-box [style*="color: #a7f3d0"],
body.theme-light .modal-box [style*="color:#a7f3d0"] {
  color: #047857 !important;
}

body.theme-light .modal-box [style*="color: #93c5fd"],
body.theme-light .modal-box [style*="color:#93c5fd"],
body.theme-light .modal-box [style*="color: #60a5fa"] {
  color: #1e40af !important;
}

body.theme-light .modal-box [style*="color: #c084fc"],
body.theme-light .modal-box [style*="color:#c084fc"],
body.theme-light .modal-box [style*="color: #e9d5ff"] {
  color: #6b21a8 !important;
}

body.theme-light .modal-box [style*="color: #fcd34d"],
body.theme-light .modal-box [style*="color:#fcd34d"],
body.theme-light .modal-box [style*="color: #fef08a"] {
  color: #92400e !important;
}

body.theme-light .modal-box [style*="color: #fda4af"],
body.theme-light .modal-box [style*="color:#fda4af"] {
  color: #9f1239 !important;
}

/* Boutons de fermeture de modale */
body.theme-light .modal-box .close-modal,
body.theme-light .modal-box .close-doc-modal {
  color: #64748b !important;
  transition: all 0.2s ease !important;
}

body.theme-light .modal-box .close-modal:hover,
body.theme-light .modal-box .close-doc-modal:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
  border-radius: 6px !important;
}

/* Tableaux dans les modales */
body.theme-light .modal-box table th {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border-bottom: 2px solid #cbd5e1 !important;
}

body.theme-light .modal-box table td {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

body.theme-light .modal-box table tr:hover td {
  background: #f8fafc !important;
}

/* Formulaires et Inputs dans les modales */
body.theme-light .modal-box input,
body.theme-light .modal-box select,
body.theme-light .modal-box textarea {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light .modal-box input:focus,
body.theme-light .modal-box select:focus,
body.theme-light .modal-box textarea:focus {
  border-color: #854d0e !important;
  box-shadow: 0 0 0 3px rgba(180, 130, 20, 0.15) !important;
}


/* =============================================================================
   SUPPRESSION UNIVERSELLE DES ASCENSEURS HORIZONTAUX SUR TOUT LE PROJET
   (Ergonomie par glissement de souris, main d'accroche 'grab', et navigation fluide)
   ============================================================================= */
.bpmn-linear-axis,
.bpmn-track,
.bd-storyboard-strip,
.chart-scroll-wrap,
.kpi-scroll-container,
.tags-scroll,
.doc-mermaid-wrapper {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: smooth;
}

.bpmn-linear-axis::-webkit-scrollbar,
.bpmn-track::-webkit-scrollbar,
.bd-storyboard-strip::-webkit-scrollbar,
.chart-scroll-wrap::-webkit-scrollbar,
.kpi-scroll-container::-webkit-scrollbar,
.tags-scroll::-webkit-scrollbar,
.doc-mermaid-wrapper::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.bpmn-linear-axis.is-dragging,
.bpmn-track.is-dragging,
.bd-storyboard-strip.is-dragging,
.chart-scroll-wrap.is-dragging,
.kpi-scroll-container.is-dragging,
.tags-scroll.is-dragging,
.doc-mermaid-wrapper.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
}


/* =============================================================================
   VULGARISATION PÉDAGOGIQUE BPMN & TUTORIELS DÉBUTANT
   ============================================================================= */
.bpmn-beginner-guide {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.15rem;
}

body.theme-light .bpmn-beginner-guide {
  background: #fdfaf3 !important;
  border-color: rgba(180, 130, 20, 0.35) !important;
  box-shadow: 0 2px 8px rgba(180, 130, 20, 0.06) !important;
}

.bpmn-guide-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.theme-light .bpmn-guide-title {
  color: #78350f !important;
}

.bpmn-guide-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.4;
}

body.theme-light .bpmn-guide-legend {
  color: #1e293b !important;
}

.bpmn-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.bpmn-guide-sym {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.bpmn-guide-tip {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.25);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

body.theme-light .bpmn-guide-tip {
  color: #475569 !important;
  border-top-color: #e2e8f0 !important;
}

/* Badge Étape Numérotée Débutant */
.bpmn-step-badge {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(212, 175, 55, 0.2);
  color: #f7d674;
  border: 1px solid rgba(212, 175, 55, 0.45);
  padding: 1px 7px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
}

body.theme-light .bpmn-step-badge {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fcd34d !important;
}

/* Boîte Tutoriel Débutant pour les 9 Outils */
.bpmn-tuto-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.15rem;
}

body.theme-light .bpmn-tuto-box {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04) !important;
}

.bpmn-tuto-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

body.theme-light .bpmn-tuto-badge {
  color: #854d0e !important;
}

.bpmn-tuto-summary {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

body.theme-light .bpmn-tuto-summary {
  color: #0f172a !important;
}

.bpmn-tuto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

body.theme-light .bpmn-tuto-steps {
  color: #334155 !important;
}

.bpmn-tuto-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
}

body.theme-light .bpmn-tuto-step {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* =============================================================================
   HARMONISATION CHROMATIQUE MODE CLAIR (RADAR, STATUTS, TÉLÉPHONES, PROFILS & HUD)
   STYLE HAUTE HÔTELLERIE & PALACES : ACCENTS FEUTRÉS, CONTRASTES NOBLES, 0 NÉON
   ============================================================================= */

/* Éléments du tableau Radar en Mode Clair & Sombre */
.lead-job-title {
  color: var(--text-main);
  font-weight: 700;
}

.lead-location-title {
  color: var(--text-main);
  font-weight: 700;
}

.lead-country-pole-badge {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-weight: 700;
}

.lead-assign-select {
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  max-width: 195px;
  width: auto;
  text-align: left;
  background: rgba(10, 15, 26, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.38);
  color: #f8fafc;
  transition: all var(--transition-fast);
}

.lead-assign-select:hover,
.lead-assign-select:focus {
  border-color: var(--gold-400);
  outline: none;
}

.lead-phone-pill {
  font-size: 0.74rem;
  color: var(--emerald-400);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  transition: all var(--transition-fast);
}

.lead-phone-pill:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--emerald-400);
}

.lead-linkedin-pill {
  font-size: 0.74rem;
  color: #38bdf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(56, 189, 248, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: all var(--transition-fast);
}

.lead-linkedin-pill:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
}

/* Radar Live Telemetry HUD */
.radar-telemetry-hud {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(15, 20, 28, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.hud-col-portals {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 0.85rem;
}

.hud-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-400);
  font-size: 0.9rem;
}

.hud-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.hud-count-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-300);
  font-family: monospace;
  line-height: 1.1;
}

.hud-total-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hud-col-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-languages-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.hud-gold-icon {
  color: var(--gold-400);
  font-size: 0.7rem;
}

.hud-scan-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.hud-bolt-icon {
  color: var(--emerald-400);
  font-size: 0.68rem;
}

.hud-scan-time {
  color: var(--emerald-400);
}

/* Radar Pills Bar */
.radar-pills-bar {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.radar-pills-label {
  font-size: 0.72rem;
  color: var(--gold-400);
  font-weight: 700;
  text-transform: uppercase;
}

/* Hero Stealth Bar */
.hero-stealth-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: #a7f3d0;
  flex-wrap: wrap;
}

.hero-stealth-badge {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 1.02rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-bpmn-modal-btn {
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-primary);
  transition: all var(--transition-fast);
}

.hero-stealth-desc {
  color: #a7f3d0;
  font-size: 0.88rem;
}

/* -----------------------------------------------------------------------------
   SURCHARGES LUXE POUR LE MODE CLAIR (body.theme-light)
   ----------------------------------------------------------------------------- */
body.theme-light .lead-job-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.theme-light .lead-location-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.theme-light .lead-country-pole-badge {
  background: #fdfaf3 !important;
  color: #78350f !important;
  border: 1px solid rgba(180, 130, 20, 0.35) !important;
  font-weight: 700 !important;
}

body.theme-light .lead-tz-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .tz-status-service {
  color: #166534 !important;
  font-weight: 600 !important;
}

body.theme-light .tz-status-service .tz-dot {
  background: #16a34a !important;
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.35) !important;
}

body.theme-light .tz-status-night {
  color: #475569 !important;
  font-weight: 600 !important;
}

/* Sélecteur de consultant : Élégant albâtre & lisible */
body.theme-light .lead-assign-select {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(180, 130, 20, 0.4) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  font-weight: 600 !important;
}

body.theme-light .lead-assign-select:hover,
body.theme-light .lead-assign-select:focus {
  border-color: #b45309 !important;
  box-shadow: 0 0 0 3px rgba(180, 130, 20, 0.15) !important;
}

/* Bouton Téléphone Standard : Vert Émeraude Impériale Feutrée */
body.theme-light .lead-phone-pill {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(22, 101, 52, 0.05) !important;
}

body.theme-light .lead-phone-pill:hover {
  background: #dcfce7 !important;
  color: #14532d !important;
  border-color: #86efac !important;
}

/* Bouton LinkedIn Profils : Bleu Saphir Diplomatique */
body.theme-light .lead-linkedin-pill {
  background: #eff6ff !important;
  color: #1e40af !important;
  border: 1px solid #bfdbfe !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(30, 64, 175, 0.05) !important;
}

body.theme-light .lead-linkedin-pill:hover {
  background: #dbeafe !important;
  color: #1e3a8a !important;
  border-color: #93c5fd !important;
}

/* Badge Urgence Haute : Bordeaux Grand Cru Noble (Adieu le rose néon !) */
body.theme-light .badge-urgency-high {
  background: #fff1f2 !important;
  color: #9f1239 !important;
  border: 1px solid #fecdd3 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(159, 18, 57, 0.06) !important;
}

/* Badges Statuts Diplomatiques */
body.theme-light .badge-france {
  background: #eff6ff !important;
  color: #1e40af !important;
  border: 1px solid #bfdbfe !important;
  font-weight: 700 !important;
}

body.theme-light .badge-intl {
  background: #faf5ff !important;
  color: #6b21a8 !important;
  border: 1px solid #e9d5ff !important;
  font-weight: 700 !important;
}

body.theme-light .badge-success {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
  font-weight: 700 !important;
}

body.theme-light .badge-gold {
  background: #fefce8 !important;
  color: #78350f !important;
  border: 1px solid #fde68a !important;
  font-weight: 700 !important;
}

/* HUD Statistique Radar : Carte Albâtre & Or Feutré */
body.theme-light .radar-telemetry-hud {
  background: #ffffff !important;
  border: 1px solid rgba(180, 130, 20, 0.3) !important;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .radar-telemetry-hud:hover {
  background: #fdfaf3 !important;
  border-color: rgba(180, 130, 20, 0.5) !important;
  box-shadow: 0 6px 20px rgba(180, 130, 20, 0.1) !important;
}

body.theme-light .hud-col-portals {
  border-right-color: #e2e8f0 !important;
}

body.theme-light .hud-icon-box {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
  color: #166534 !important;
}

body.theme-light .hud-label {
  color: #64748b !important;
}

body.theme-light .hud-count-value {
  color: #78350f !important;
}

body.theme-light .hud-count-value #hudActivePortalsCount {
  color: #78350f !important;
  font-weight: 800 !important;
}

body.theme-light .hud-total-label {
  color: #475569 !important;
}

body.theme-light .hud-languages-line {
  color: #334155 !important;
}

body.theme-light .hud-languages-line strong {
  color: #0f172a !important;
}

body.theme-light .hud-gold-icon {
  color: #92400e !important;
}

body.theme-light .hud-scan-line {
  color: #475569 !important;
}

body.theme-light .hud-bolt-icon {
  color: #166534 !important;
}

body.theme-light .hud-scan-time {
  color: #166534 !important;
}

/* Barre de Filtres Pôles Pays */
body.theme-light .radar-pills-bar {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.theme-light .radar-pills-label {
  color: #78350f !important;
}

body.theme-light .radar-pills-bar .filter-btn.btn-primary {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important;
  color: #ffffff !important;
  border-color: rgba(212, 175, 55, 0.45) !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15) !important;
}

body.theme-light .radar-pills-bar .filter-btn.btn-secondary {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

body.theme-light .radar-pills-bar .filter-btn.btn-secondary:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

/* En-tête Hero & Stat Pills */
body.theme-light .hero-stealth-bar {
  color: #334155 !important;
}

body.theme-light .hero-stealth-desc {
  color: #475569 !important;
  font-weight: 500 !important;
}

body.theme-light .hero-stealth-badge {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border-color: #bbf7d0 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(22, 101, 52, 0.08) !important;
}

body.theme-light .hero-stealth-badge:hover {
  background: #dcfce7 !important;
  color: #14532d !important;
  border-color: #86efac !important;
}

body.theme-light .hero-bpmn-modal-btn {
  background: #fdfaf3 !important;
  color: #78350f !important;
  border-color: rgba(180, 130, 20, 0.45) !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(180, 130, 20, 0.08) !important;
}

body.theme-light .hero-bpmn-modal-btn:hover {
  background: #fbf3dc !important;
  color: #6d4508 !important;
  border-color: #b45309 !important;
}

body.theme-light .hero-stat-france .num,
body.theme-light .hero-stat-intl .num,
body.theme-light .hero-stat-stealth .num {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.theme-light .hero-stat-france .sub-label,
body.theme-light .hero-stat-intl .sub-label {
  color: #475569 !important;
  font-weight: 600 !important;
}

body.theme-light .hero-stat-france .click-hint,
body.theme-light .hero-stat-intl .click-hint {
  color: #8a5a12 !important;
  font-weight: 700 !important;
}

body.theme-light .hero-stat-stealth .click-hint {
  color: #065f46 !important;
  font-weight: 700 !important;
}

/* Filet de sécurité global pour tous les styles en ligne */
body.theme-light [style*="color: #e2e8f0"],
body.theme-light [style*="color:#e2e8f0"] {
  color: #0f172a !important;
}

body.theme-light [style*="background: rgba(16,185,129"],
body.theme-light [style*="background: rgba(16, 185, 129"] {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
}

body.theme-light [style*="background: rgba(56,189,248"],
body.theme-light [style*="background: rgba(56, 189, 248"] {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}

body.theme-light [style*="background: rgba(168,85,247"],
body.theme-light [style*="background: rgba(168, 85, 247"] {
  background: #faf5ff !important;
  border-color: #e9d5ff !important;
}

body.theme-light [style*="background: rgba(251,113,133"],
body.theme-light [style*="background: rgba(251, 113, 133"],
body.theme-light [style*="background: rgba(244,63,94"],
body.theme-light [style*="background: rgba(244, 63, 94"] {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
}

body.theme-light [style*="background: rgba(212,175,55"],
body.theme-light [style*="background: rgba(212, 175, 55"] {
  background: #fefce8 !important;
  border-color: #fde68a !important;
}

/* =============================================================================
   COCKPIT EXÉCUTIF : CONSOLE D'ÉQUIPES, TÂCHES & EXPANSION 360° (DARK & LIGHT)
   ZÉRO FOND GRIS • CONTRASTES DE PRESTIGE HAUTE HORLOGERIE & PALACES
   ============================================================================= */

/* 1. Console de Pilotage des Équipes (Team Driver) */
.cockpit-leader-card {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.25s ease;
}

body:not(.theme-light) .leader-card-france {
  background: rgba(14, 27, 49, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

body:not(.theme-light) .leader-card-intl {
  background: rgba(28, 18, 48, 0.65);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.leader-card-heading {
  font-size: 1.05rem;
  margin: 0;
  cursor: pointer;
  color: var(--text-main);
  font-weight: 700;
}

.leader-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
  text-align: center;
}

.chip-number {
  font-size: 1.25rem;
  font-weight: 800;
}

.chip-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

.leader-consultants-box {
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.85rem;
  transition: all 0.2s ease;
}

body:not(.theme-light) .leader-consultants-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.leader-consultants-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 6px;
}

.leader-consultants-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.cockpit-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

/* 2. Centre d'Action : Mes Tâches & Priorités du Jour */
.action-task-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  padding: 0.95rem 1.25rem;
  flex-wrap: wrap;
  gap: 0.85rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

body:not(.theme-light) .action-task-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.task-card-danger {
  border-left: 4px solid #ef4444 !important;
}

.task-card-warning {
  border-left: 4px solid #f59e0b !important;
}

.task-card-purple {
  border-left: 4px solid #a855f7 !important;
}

.task-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
}

.task-card-meta {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* 3. Avancement du Déploiement Commercial Multi-Activités */
.cockpit-expansion-container {
  border-radius: var(--radius-md);
}

body:not(.theme-light) .cockpit-expansion-container {
  background: linear-gradient(180deg, rgba(13, 18, 28, 0.95) 0%, rgba(8, 12, 19, 0.98) 100%);
  border-color: rgba(212, 175, 55, 0.3);
}

.cabinet-pole-card {
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

body:not(.theme-light) .cabinet-pole-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pole-recrutement {
  border-top: 4px solid var(--gold-400) !important;
}

.pole-formation {
  border-top: 4px solid var(--blue-400) !important;
}

.pole-audits {
  border-top: 4px solid var(--emerald-400) !important;
}

.pole-mystere {
  border-top: 4px solid var(--purple-400) !important;
}

.pole-conseil {
  border-top: 4px solid #f43f5e !important;
}

.pole-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.pole-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.pole-progress-track {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
}

.pole-footer-link {
  font-size: 0.74rem;
  font-weight: 700;
  text-align: right;
  transition: transform 0.15s ease;
}

.cabinet-pole-card:hover .pole-footer-link {
  transform: translateX(3px);
}

body:not(.theme-light) .pole-recrutement .pole-title { color: var(--gold-300); }
body:not(.theme-light) .pole-recrutement .pole-footer-link { color: var(--gold-400); }
body:not(.theme-light) .pole-formation .pole-title { color: var(--blue-300); }
body:not(.theme-light) .pole-formation .pole-footer-link { color: var(--blue-400); }
body:not(.theme-light) .pole-audits .pole-title { color: var(--emerald-300); }
body:not(.theme-light) .pole-audits .pole-footer-link { color: var(--emerald-400); }
body:not(.theme-light) .pole-mystere .pole-title { color: var(--purple-300); }
body:not(.theme-light) .pole-mystere .pole-footer-link { color: var(--purple-400); }
body:not(.theme-light) .pole-conseil .pole-title { color: #fda4af; }
body:not(.theme-light) .pole-conseil .pole-footer-link { color: #f43f5e; }

/* =============================================================================
   MODE CLAIR DE PRESTIGE : CARTES OPÉRATIONNELLES SANS AUCUN FOND GRIS
   TOUT EN BLANC ALBÂTRE, IVOIRE ET BORDURES FEUTRÉES HAUTE HORLOGERIE
   ============================================================================= */

/* Cartes Pilotes (France & International) */
body.theme-light .cockpit-leader-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

body.theme-light .leader-card-france {
  background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%) !important;
  border: 1px solid #bfdbfe !important;
}

body.theme-light .leader-card-intl {
  background: linear-gradient(145deg, #ffffff 0%, #faf8ff 100%) !important;
  border: 1px solid #e9d5ff !important;
}

body.theme-light .leader-card-heading {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* Puces métriques de pilotage : ZÉRO GRIS, BLANC PUR & BORDURES PASTEL NOBLES */
body.theme-light .clickable-metric-chip {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

body.theme-light .clickable-metric-chip:hover {
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(180, 130, 20, 0.12) !important;
  transform: translateY(-2px) !important;
  border-color: rgba(180, 130, 20, 0.45) !important;
}

body.theme-light .chip-contacts {
  border-color: #dbeafe !important;
}

body.theme-light .chip-contacts .chip-number {
  color: #1d4ed8 !important;
  font-weight: 800 !important;
}

body.theme-light .chip-contacts-intl {
  border-color: #f3e8ff !important;
}

body.theme-light .chip-contacts-intl .chip-number {
  color: #6b21a8 !important;
  font-weight: 800 !important;
}

body.theme-light .chip-rdv {
  border-color: #d1fae5 !important;
}

body.theme-light .chip-rdv .chip-number {
  color: #047857 !important;
  font-weight: 800 !important;
}

body.theme-light .chip-relance-france {
  border-color: #fee2e2 !important;
}

body.theme-light .chip-relance-france .chip-number {
  color: #b91c1c !important;
  font-weight: 800 !important;
}

body.theme-light .chip-relance-intl {
  border-color: #fef3c7 !important;
}

body.theme-light .chip-relance-intl .chip-number {
  color: #b45309 !important;
  font-weight: 800 !important;
}

body.theme-light .chip-label {
  color: #475569 !important;
  font-weight: 600 !important;
}

/* Boîte des consultants rattachés : Blanche, pure et contrastée */
body.theme-light .leader-consultants-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
}

body.theme-light .leader-consultants-label {
  color: #78350f !important;
  font-weight: 700 !important;
}

body.theme-light .leader-consultants-sub {
  color: #475569 !important;
  font-weight: 500 !important;
}

/* Badges de consultants Haute Visibilité (Fini le texte blanc sur fond pâle !) */
body.theme-light .badge-consultant-laura {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1e40af !important;
  font-weight: 600 !important;
}

body.theme-light .badge-consultant-alexandre {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
  font-weight: 600 !important;
}

body.theme-light .badge-consultant-lara {
  background: #faf5ff !important;
  border: 1px solid #e9d5ff !important;
  color: #6b21a8 !important;
  font-weight: 600 !important;
}

body.theme-light .badge-consultant-soraya {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #92400e !important;
  font-weight: 600 !important;
}

body.theme-light .badge-consultant-meiling {
  background: #ecfeff !important;
  border: 1px solid #a5f3fc !important;
  color: #0e7490 !important;
  font-weight: 600 !important;
}

body.theme-light .badge-consultant-kenji {
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  color: #9f1239 !important;
  font-weight: 600 !important;
}

body.theme-light .cockpit-progress-track {
  background: #e2e8f0 !important;
}

body.theme-light .chip-progress-box .progress-title {
  color: #334155 !important;
  font-weight: 600 !important;
}

body.theme-light .chip-progress-box .progress-pct {
  color: #047857 !important;
  font-weight: 700 !important;
}

/* =============================================================================
   PLAN D'EXÉCUTION QUOTIDIEN (MES TÂCHES DU JOUR) EN MODE CLAIR
   CARTES BLANCHES LISIBLES, BORDURES ÉCLATANTES, ADIEU LES BLOCS GRIS !
   ============================================================================= */
body.theme-light .action-task-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

body.theme-light .action-task-card:hover {
  background: #fafcff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07) !important;
  transform: translateY(-2px) !important;
}

body.theme-light .action-task-card.task-card-danger {
  border-left: 4px solid #dc2626 !important;
}

body.theme-light .action-task-card.task-card-warning {
  border-left: 4px solid #d97706 !important;
}

body.theme-light .action-task-card.task-card-purple {
  border-left: 4px solid #7c3aed !important;
}

body.theme-light .action-task-card .task-card-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.theme-light .action-task-card .task-card-meta {
  color: #475569 !important;
  font-weight: 500 !important;
}

/* =============================================================================
   EXPANSION 360° DU CABINET (5 BRANCHES MULTI-ACTIVITÉS) EN MODE CLAIR
   SUB-CARTES LUMINEUSES, ADIEU LES RECTANGLES BOUEUX DÉGRISÉS !
   ============================================================================= */
body.theme-light .cockpit-expansion-container {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .cabinet-pole-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

body.theme-light .cabinet-pole-card:hover {
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-3px) !important;
}

body.theme-light .pole-recrutement {
  border-top: 4px solid #b45309 !important;
}

body.theme-light .pole-recrutement .pole-title {
  color: #78350f !important;
}

body.theme-light .pole-recrutement .pole-footer-link {
  color: #b45309 !important;
}

body.theme-light .pole-formation {
  border-top: 4px solid #1d4ed8 !important;
}

body.theme-light .pole-formation .pole-title {
  color: #1e3a8a !important;
}

body.theme-light .pole-formation .pole-footer-link {
  color: #1d4ed8 !important;
}

body.theme-light .pole-audits {
  border-top: 4px solid #047857 !important;
}

body.theme-light .pole-audits .pole-title {
  color: #064e3b !important;
}

body.theme-light .pole-audits .pole-footer-link {
  color: #047857 !important;
}

body.theme-light .pole-mystere {
  border-top: 4px solid #7e22ce !important;
}

body.theme-light .pole-mystere .pole-title {
  color: #581c87 !important;
}

body.theme-light .pole-mystere .pole-footer-link {
  color: #7e22ce !important;
}

body.theme-light .pole-conseil {
  border-top: 4px solid #be123c !important;
}

body.theme-light .pole-conseil .pole-title {
  color: #881337 !important;
}

body.theme-light .pole-conseil .pole-footer-link {
  color: #be123c !important;
}

body.theme-light .cabinet-pole-card .pole-desc {
  color: #334155 !important;
  font-weight: 500 !important;
}

body.theme-light .cabinet-pole-card .pole-progress-track {
  background: #e2e8f0 !important;
}

/* =============================================================================
   BOUCLIER UNIVERSEL ANTI-FONDS GRIS (TOUTES LES PAGES, ONGLETS ET MODALES)
   NEUTRALISATION RADICALE DES FONDS DÉGRISÉS SUR TOUT LE PORTAIL
   ============================================================================= */
body.theme-light [style*="background: rgba(0,0,0"],
body.theme-light [style*="background:rgba(0,0,0"],
body.theme-light [style*="background: rgba(0, 0, 0"],
body.theme-light [style*="background:rgba(0, 0, 0"],
body.theme-light [style*="background: rgba(15,23,42"],
body.theme-light [style*="background: rgba(15, 23, 42"],
body.theme-light [style*="background: #1e293b"],
body.theme-light [style*="background:#1e293b"],
body.theme-light [style*="background: #334155"],
body.theme-light [style*="background:#334155"],
body.theme-light [style*="background: #475569"],
body.theme-light [style*="background:#475569"],
body.theme-light [style*="background: #64748b"],
body.theme-light [style*="background:#64748b"],
body.theme-light [style*="background: #0f172a"],
body.theme-light [style*="background:#0f172a"] {
  background: #ffffff !important;
  border-color: #e2e8f0;
  color: #0f172a !important;
}

/* Titres, textes forts et headings dans des containers précédemment gris */
body.theme-light [style*="background: rgba(0,0,0"] strong,
body.theme-light [style*="background:rgba(0,0,0"] strong,
body.theme-light [style*="background: rgba(0, 0, 0"] strong,
body.theme-light [style*="background: rgba(0,0,0"] h4,
body.theme-light [style*="background:rgba(0,0,0"] h4,
body.theme-light [style*="background: rgba(0,0,0"] h3,
body.theme-light [style*="background:rgba(0,0,0"] h3,
body.theme-light [style*="background: rgba(0,0,0"] div,
body.theme-light [style*="background:rgba(0,0,0"] div {
  color: #0f172a;
}

/* Correction universelle du texte #fff / white sur fond clair */
body.theme-light strong[style*="color: #fff"],
body.theme-light strong[style*="color:#fff"],
body.theme-light strong[style*="color: #ffffff"],
body.theme-light strong[style*="color:#ffffff"],
body.theme-light h4[style*="color: #fff"],
body.theme-light h4[style*="color:#fff"],
body.theme-light h4[style*="color: #ffffff"],
body.theme-light h3[style*="color: #fff"],
body.theme-light h3[style*="color:#fff"],
body.theme-light h2[style*="color: #fff"],
body.theme-light h2[style*="color:#fff"],
body.theme-light div[style*="color: #fff"]:not(.btn *):not(.btn):not(.badge *):not(.badge),
body.theme-light div[style*="color:#fff"]:not(.btn *):not(.btn):not(.badge *):not(.badge),
body.theme-light div[style*="color: #ffffff"]:not(.btn *):not(.btn):not(.badge *):not(.badge),
body.theme-light div[style*="color:#ffffff"]:not(.btn *):not(.btn):not(.badge *):not(.badge),
body.theme-light span[style*="color: #fff"]:not(.btn *):not(.btn):not(.badge *):not(.badge) {
  color: #0f172a !important;
}

/* Correction universelle des textes grisés pâles (#e2e8f0, #cbd5e1) sur fond clair */
body.theme-light div[style*="color: #e2e8f0"],
body.theme-light div[style*="color:#e2e8f0"],
body.theme-light p[style*="color: #e2e8f0"],
body.theme-light p[style*="color:#e2e8f0"],
body.theme-light div[style*="color: #cbd5e1"],
body.theme-light div[style*="color:#cbd5e1"],
body.theme-light p[style*="color: #cbd5e1"],
body.theme-light p[style*="color:#cbd5e1"],
body.theme-light span[style*="color: #cbd5e1"],
body.theme-light span[style*="color: #e2e8f0"] {
  color: #334155 !important;
}


/* Barres de progression universelles en mode clair */
body.theme-light [style*="background: rgba(255,255,255,0.08)"],
body.theme-light [style*="background:rgba(255,255,255,0.08)"],
body.theme-light [style*="background: rgba(255, 255, 255, 0.08)"] {
  background: #e2e8f0 !important;
}

/* Colonnes Kanban du Pipeline CRM en mode clair */
body.theme-light [style*="border-top: 3px solid var(--blue-400)"],
body.theme-light [style*="border-top: 3px solid var(--gold-400)"],
body.theme-light [style*="border-top: 3px solid var(--purple-400)"],
body.theme-light [style*="border-top: 3px solid var(--emerald-400)"],
body.theme-light [style*="border-top: 3px solid var(--text-dim)"] {
  background: #ffffff !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

.pipeline-column {
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all 0.2s ease;
}
body:not(.theme-light) .pipeline-column {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
body.theme-light .pipeline-column {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}
.pipeline-column.col-qualified { border-top: 3px solid var(--blue-400) !important; }
.pipeline-column.col-pitch { border-top: 3px solid var(--gold-400) !important; }
.pipeline-column.col-contacted { border-top: 3px solid var(--purple-400) !important; }
.pipeline-column.col-rdv { border-top: 3px solid var(--emerald-400) !important; }
.pipeline-column.col-disabled { border-top: 3px solid var(--text-dim) !important; }

/* Cartes deals et prospects dans le Pipeline CRM */
body.theme-light .pipeline-deal-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

body.theme-light .pipeline-deal-card:hover {
  background: #fdfaf3 !important;
  border-color: rgba(180, 130, 20, 0.45) !important;
  box-shadow: 0 4px 14px rgba(180, 130, 20, 0.08) !important;
}

/* Barre de filtres du pipeline CRM */
body.theme-light .pipeline-filter-toolbar {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

/* Modales & fenêtres contextuelles (Cadrage contact, BPMN, Sourcing) */
body.theme-light .modal-box [style*="background: rgba(0,0,0"],
body.theme-light .modal-box [style*="background:rgba(0,0,0"],
body.theme-light .modal-box [style*="background: rgba(0, 0, 0"],
body.theme-light .modal-box [style*="background:rgba(0, 0, 0"] {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

body.theme-light .modal-box pre,
body.theme-light .modal-box code {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

body.theme-light #modalCardScript {
  background: #f8fafc !important;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
}

/* Studio d'Ingestion & Analyseur Flash */
.analyzer-meta-box {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}
body:not(.theme-light) .analyzer-meta-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
body.theme-light .analyzer-meta-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

.analyzer-preview-box {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  border: 1px solid var(--border-subtle);
}
body:not(.theme-light) .analyzer-preview-box {
  background: rgba(10, 14, 24, 0.7);
  color: #e2e8f0;
}
body.theme-light .analyzer-preview-box {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

/* Administration des Comptes */
.admin-user-card {
  transition: all 0.2s ease;
}
body:not(.theme-light) .admin-user-card {
  background: rgba(15, 23, 42, 0.6);
}
body.theme-light .admin-user-card {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

body:not(.theme-light) .admin-security-box {
  background: rgba(15, 23, 42, 0.6);
}
body.theme-light .admin-security-box {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

/* Gouvernance & Modales Universelles */
.gov-role-card {
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all 0.2s ease;
}
body:not(.theme-light) .gov-role-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
}
body.theme-light .gov-role-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

.gov-role-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
body:not(.theme-light) .gov-role-title { color: #ffffff; }
body.theme-light .gov-role-title { color: #0f172a !important; }

.gov-toolbar {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
body:not(.theme-light) .gov-toolbar {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
body.theme-light .gov-toolbar {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

.gov-perms-box {
  margin: 0.85rem 0;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
}
body:not(.theme-light) .gov-perms-box {
  background: rgba(0, 0, 0, 0.25);
}
body.theme-light .gov-perms-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.gov-empty-box {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(212, 175, 55, 0.3);
}
body:not(.theme-light) .gov-empty-box {
  background: rgba(15, 23, 42, 0.6);
}
body.theme-light .gov-empty-box {
  background: #ffffff !important;
}

.modal-form-section {
  padding: 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
}
body:not(.theme-light) .modal-form-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
body.theme-light .modal-form-section {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

/* Connecteurs & Sources */
.connector-stat-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
body:not(.theme-light) .connector-stat-card {
  background: rgba(15, 23, 42, 0.6);
}
body.theme-light .connector-stat-card {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}
.connector-stat-card.border-gold { border-left: 3px solid var(--gold-400) !important; }
.connector-stat-card.border-emerald { border-left: 3px solid var(--emerald-400) !important; }
.connector-stat-card.border-purple { border-left: 3px solid var(--purple-400) !important; }

.connector-stat-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.35rem 0;
}
body:not(.theme-light) .connector-stat-title { color: #ffffff; }
body.theme-light .connector-stat-title { color: #0f172a !important; }

.connector-pillar-card {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.2s ease;
}
body:not(.theme-light) .connector-pillar-card {
  background: rgba(15, 23, 42, 0.6);
}
body.theme-light .connector-pillar-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}
.connector-pillar-card.pillar-gold { border: 1px solid var(--border-gold); }
.connector-pillar-card.pillar-blue { border: 1px solid var(--border-subtle); }
.connector-pillar-card.pillar-purple { border: 1px solid var(--border-subtle); }

.connector-pulse-card {
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold-400) !important;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}
body:not(.theme-light) .connector-pulse-card {
  background: rgba(15, 23, 42, 0.6);
}
body.theme-light .connector-pulse-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}
.connector-pulse-card .pulse-title {
  font-size: 0.9rem;
}
body:not(.theme-light) .connector-pulse-card .pulse-title { color: #ffffff; }
body.theme-light .connector-pulse-card .pulse-title { color: #0f172a !important; }

.connector-filter-header {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body:not(.theme-light) .connector-filter-header {
  background: rgba(10, 14, 24, 0.7);
}
body.theme-light .connector-filter-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body.theme-light #connectorShowAllBtn {
  background: #fff8eb !important;
  border-color: var(--gold-400) !important;
  color: #78350f !important;
  box-shadow: 0 1px 3px rgba(180, 130, 20, 0.15) !important;
}

.connector-sniff-panel {
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
}
body:not(.theme-light) .connector-sniff-panel {
  background: rgba(15, 23, 42, 0.75);
}
body.theme-light .connector-sniff-panel {
  background: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

/* Référentiel Sémantique Mots-Clés */
.referentiel-category-card {
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  transition: all 0.2s ease;
}
body:not(.theme-light) .referentiel-category-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
}
body.theme-light .referentiel-category-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

.referentiel-term-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}
body:not(.theme-light) .referentiel-term-item {
  background: rgba(10, 14, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
body.theme-light .referentiel-term-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
body.theme-light .referentiel-term-item .term-text-primary {
  color: #0f172a !important;
}
body.theme-light .referentiel-term-item .term-text-secondary {
  color: #0369a1 !important;
}

/* Espace Concept & Stratégie */
.concept-quote-box {
  border-radius: 6px;
  padding: 1rem;
  font-size: 0.84rem;
  line-height: 1.5;
  transition: all 0.2s ease;
}
body:not(.theme-light) .concept-quote-box {
  background: rgba(15, 23, 42, 0.6);
}
body.theme-light .concept-quote-box {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}
.concept-quote-box .quote-body {
  font-style: italic;
}
body:not(.theme-light) .concept-quote-box .quote-body { color: #e2e8f0; }
body.theme-light .concept-quote-box .quote-body { color: #1e293b !important; }

.concept-card-box {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
body:not(.theme-light) .concept-card-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body.theme-light .concept-card-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

.concept-step-box {
  padding: 0.85rem;
  border-radius: 6px;
}
body:not(.theme-light) .concept-step-box {
  background: rgba(10, 14, 24, 0.6);
}
body.theme-light .concept-step-box {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
}

/* Outreach Studio */
body:not(.theme-light) .outreach-sequence-nav {
  background: rgba(0, 0, 0, 0.45);
}
body.theme-light .outreach-sequence-nav {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

body:not(.theme-light) .outreach-phone-box {
  background: rgba(0, 0, 0, 0.4);
}
body.theme-light .outreach-phone-box {
  background: #fffdfa !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
}

/* Blocs Modales & Cartes Décideurs */
.modal-card-block {
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
body:not(.theme-light) .modal-card-block {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
}
body.theme-light .modal-card-block {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

.team-modal-card {
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  transition: all 0.2s ease;
}
body:not(.theme-light) .team-modal-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body.theme-light .team-modal-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}
.team-modal-card .team-card-name {
  font-weight: 700;
  font-size: 0.95rem;
}
body:not(.theme-light) .team-modal-card .team-card-name { color: #ffffff; }
body.theme-light .team-modal-card .team-card-name { color: #0f172a !important; }

.multi-deal-card {
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  transition: all 0.2s ease;
}
body:not(.theme-light) .multi-deal-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body.theme-light .multi-deal-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}
.multi-deal-card .deal-card-title {
  font-size: 0.95rem;
}
body:not(.theme-light) .multi-deal-card .deal-card-title { color: #ffffff; }
body.theme-light .multi-deal-card .deal-card-title { color: #0f172a !important; }

/* ========================================================================= */
/* SUPPORT MULTILINGUE & DIRECTIONNALITÉ RTL (ARABE)                         */
/* ========================================================================= */
[dir="rtl"], body.lang-ar {
  direction: rtl;
  text-align: right;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
}
body.lang-ar .navbar-top-bar,
body.lang-ar .card-header,
body.lang-ar .table th,
body.lang-ar .table td {
  text-align: right;
}
body.lang-ar .lang-dropdown-menu {
  left: 0 !important;
  right: auto !important;
}
body.lang-ar .cockpit-view-switcher {
  justify-content: flex-end;
}