/* ============================================
   BIZME.FR — UX PALETTE OFFICIELLE 2026
   Validee : 09/05/2026
   Palette : Bleu confiance + Corail franco-africain
   Version : 1.0.0
   ============================================ */

:root {
  --bizme-blue-deep:   #1E40AF;
  --bizme-blue:        #2563EB;
  --bizme-blue-light:  #3B82F6;
  --bizme-coral:       #F97316;
  --bizme-coral-light: #FB923C;
  --bizme-gold:        #F59E0B;
  --bizme-dark:        #0F172A;
  --bizme-card-dark:   #1E293B;
  --bizme-neutral:     #F8FAFC;
  --bizme-border:      #E2E8F0;
  --bizme-text:        #1E293B;
  --bizme-text-muted:  #64748B;
  --bizme-success:     #10B981;
  --bizme-radius:      12px;
  --bizme-shadow:      0 4px 24px rgba(30, 64, 175, 0.08);
  --bizme-shadow-lg:   0 8px 40px rgba(30, 64, 175, 0.15);
}

/* === GLASSMORPHISM === */

.bizme-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--bizme-radius);
  box-shadow: var(--bizme-shadow);
}

.bizme-glass-dark {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--bizme-radius);
}

.card.mission-card,
.mission-item,
[class*="mission-card"] {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(30, 64, 175, 0.1);
  border-radius: var(--bizme-radius);
  box-shadow: var(--bizme-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.mission-card:hover,
.mission-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--bizme-shadow-lg);
  border-color: rgba(37, 99, 235, 0.25);
}

/* === BOUTONS CTA === */

.btn-bizme-primary,
.btn-coral,
.btn-cta {
  background: linear-gradient(135deg, var(--bizme-coral), var(--bizme-coral-light));
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-bizme-primary:hover,
.btn-coral:hover,
.btn-cta:hover {
  background: linear-gradient(135deg, #EA6C0A, var(--bizme-coral));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
  color: #ffffff;
}

/* === BADGES === */

.badge-level-novice,
.badge-level-confirme,
.badge-level-expert,
.badge-level-ambassador,
.badge-level-elite,
.badge-match-high,
.badge-match-medium,
.badge-match-low {
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-block;
  color: #fff;
}

.badge-level-novice     { background: #94A3B8; }
.badge-level-confirme   { background: var(--bizme-blue-light); }
.badge-level-expert     { background: var(--bizme-blue-deep); }
.badge-level-ambassador { background: var(--bizme-coral); }
.badge-level-elite      { background: linear-gradient(135deg, var(--bizme-gold), #F97316); }
.badge-match-high       { background: #10B981; }
.badge-match-medium     { background: var(--bizme-coral); }
.badge-match-low        { background: #94A3B8; }

.badge-portage-secure {
  background: linear-gradient(135deg, var(--bizme-blue-deep), var(--bizme-blue));
  color: #fff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* === PROGRESSION === */

.bizme-progress {
  background: var(--bizme-border);
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
}

.bizme-progress-bar {
  background: linear-gradient(90deg, var(--bizme-blue), var(--bizme-blue-light));
  height: 100%;
  border-radius: 8px;
  transition: width 0.6s ease;
}

.bizme-progress-bar.high {
  background: linear-gradient(90deg, #10B981, #34D399);
}

/* === STREAMING TEXT === */

.biz-streaming-text {
  overflow: hidden;
  border-right: 2px solid var(--bizme-coral);
  white-space: pre-wrap;
  animation: biz-cursor-blink 0.8s step-end infinite;
}

@keyframes biz-cursor-blink {
  0%, 100% { border-color: var(--bizme-coral); }
  50%       { border-color: transparent; }
}

.biz-typing-dots::after {
  content: '.';
  animation: biz-typing 1.2s infinite;
}

@keyframes biz-typing {
  0%   { content: '.'; }
  33%  { content: '..'; }
  66%  { content: '...'; }
  100% { content: '.'; }
}

/* === CHAT COACH BIZ === */

.biz-coach-widget {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(30, 64, 175, 0.15);
  border-radius: 16px;
  box-shadow: var(--bizme-shadow-lg);
}

.biz-coach-header {
  background: linear-gradient(135deg, var(--bizme-blue-deep), var(--bizme-blue));
  color: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.biz-coach-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.biz-message-user {
  background: var(--bizme-blue-light);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  max-width: 80%;
  margin-left: auto;
  font-size: 0.9rem;
}

.biz-message-coach {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid var(--bizme-border);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  max-width: 85%;
  font-size: 0.9rem;
  color: var(--bizme-text);
}

/* === STREAK BADGE === */

.streak-badge {
  background: linear-gradient(135deg, #FF6B35, var(--bizme-coral));
  color: #fff;
  border-radius: 20px;
  padding: 4px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.3);
  animation: streak-pulse 2s ease infinite;
}

@keyframes streak-pulse {
  0%, 100% { box-shadow: 0 3px 10px rgba(249, 115, 22, 0.3); }
  50%       { box-shadow: 0 3px 20px rgba(249, 115, 22, 0.5); }
}

/* === PODIUM === */

.podium-first  { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.podium-second { background: linear-gradient(135deg, #94A3B8, #CBD5E1); }
.podium-third  { background: linear-gradient(135deg, #92400E, #B45309); }

.badge-maker-du-mois {
  background: linear-gradient(135deg, var(--bizme-coral), var(--bizme-gold));
  color: #fff;
  border-radius: 20px;
  padding: 4px 14px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-block;
}

/* === DARK MODE TOGGLE === */

.bizme-darkmode-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: var(--bizme-card-dark);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.bizme-darkmode-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

/* === DARK MODE AUTO === */

@media (prefers-color-scheme: dark) {
  body { background: var(--bizme-dark); color: #E2E8F0; }
  .card, .bizme-glass {
    background: rgba(30, 41, 59, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #E2E8F0;
  }
  .card-body { color: #E2E8F0; }
  .text-muted { color: #94A3B8 !important; }
  .biz-message-coach {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
  }
  .biz-coach-widget {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }
  input, textarea, select {
    background: var(--bizme-card-dark) !important;
    color: #E2E8F0 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
  }
  .btn-light {
    background: var(--bizme-card-dark);
    color: #E2E8F0;
    border-color: rgba(255, 255, 255, 0.12);
  }
  .table { color: #E2E8F0; }
  .navbar, .sidebar {
    background: var(--bizme-dark) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
  }
  .bg-white, .bg-light {
    background: var(--bizme-card-dark) !important;
  }
}

/* === DARK MODE FORCE === */

body.dark-mode { background: var(--bizme-dark) !important; color: #E2E8F0; }
body.dark-mode .card,
body.dark-mode .bizme-glass {
  background: rgba(30, 41, 59, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #E2E8F0;
}
body.dark-mode .card-body { color: #E2E8F0; }
body.dark-mode .text-muted { color: #94A3B8 !important; }
body.dark-mode .biz-message-coach {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
}
body.dark-mode .navbar,
body.dark-mode .sidebar {
  background: var(--bizme-dark) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}
body.dark-mode .table { color: #E2E8F0; }
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: var(--bizme-card-dark) !important;
  color: #E2E8F0 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
body.dark-mode .bg-white,
body.dark-mode .bg-light {
  background: var(--bizme-card-dark) !important;