/* ════════════════════════════════════════════════════════════
   MPConnect — theme-dark.css
   Thème sombre Bleu / Jaune / Vert
   À inclure APRÈS style.css et style-additions.css
   Actif uniquement quand <body> ou <html> porte la classe .dark-theme
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables sombre ──────────────────────────────────────── */
:root {
  /* Palette principale */
  --mp-bl:      #1B6FEE;
  --mp-bl2:     #4E96FF;
  --mp-bl3:     #0A47C2;
  --mp-jn:      #F5C518;
  --mp-jn2:     #FFD84D;
  --mp-jn3:     #C79A00;
  --mp-vr:      #22C55E;
  --mp-vr2:     #4ADE80;
  --mp-vr3:     #15803D;

  /* Fonds */
  --mp-bg:      #040C1C;
  --mp-bg2:     #0B1628;
  --mp-bg3:     #0F1F38;

  /* Utilitaires */
  --mp-glass:   rgba(27,111,238,0.08);
  --mp-border:  rgba(255,255,255,0.09);
  --mp-txt:     #FFFFFF;
  --mp-muted:   rgba(255,255,255,0.5);

  /* Animations */
  --mp-trans:   .2s ease;
}

/* ════════════════════════════════════════════════════════════
   RESET GLOBAL EN MODE SOMBRE
   ════════════════════════════════════════════════════════════ */
.dark-theme {
  background: var(--mp-bg) !important;
  color: var(--mp-txt) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Efface le gradient de fond clair du body::before */
.dark-theme body::before,
.dark-theme::before {
  background: none !important;
}

/* ── App container ─────────────────────────────────────────── */
.dark-theme .app-container {
  background: transparent;
  max-width: 430px;
  position: relative;
  overflow-x: hidden;
}

/* ── Blobs d'ambiance ──────────────────────────────────────── */
.mp-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: mpOrb 9s ease-in-out infinite;
}
.mp-orb-1 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(27,111,238,.28), transparent 70%);
  top: -100px; right: -80px;
  animation-delay: 0s;
}
.mp-orb-2 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(245,197,24,.16), transparent 70%);
  top: 420px; left: -80px;
  animation-delay: -4s;
}
.mp-orb-3 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(34,197,94,.18), transparent 70%);
  bottom: 150px; right: -40px;
  animation-delay: -7s;
}
@keyframes mpOrb {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(12px,-24px) scale(1.08); }
}

/* Grille de fond */
.mp-grid-bg {
  position: fixed;
  inset: 0;
  opacity: .04;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Z-index base pour le contenu */
.dark-theme .app-container > *,
.dark-theme main > * {
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */
.dark-theme .app-header {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 16px 20px 8px;
  position: relative;
  z-index: 10;
}

.dark-theme .app-header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
}

/* Logo/titre */
.dark-theme .header-title span {
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #fff !important;
  letter-spacing: -.6px;
  line-height: 1.1;
}
.dark-theme .header-title small {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .8px;
  color: var(--mp-jn) !important;
  text-transform: uppercase;
  display: block;
}

/* Boutons icônes header */
.dark-theme .btn-icon,
.dark-theme .ico-btn {
  width: 40px; height: 40px;
  border-radius: 13px;
  background: var(--mp-glass) !important;
  border: 1px solid var(--mp-border) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--mp-trans);
  position: relative;
  color: rgba(255,255,255,.75);
}
.dark-theme .btn-icon:hover,
.dark-theme .ico-btn:hover {
  background: rgba(27,111,238,.2) !important;
  border-color: rgba(27,111,238,.4) !important;
  transform: scale(1.06);
}
.dark-theme .btn-icon svg,
.dark-theme .ico-btn svg {
  stroke: rgba(255,255,255,.75);
  fill: none;
}

/* Badge notification */
.mp-notif-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 7px; height: 7px;
  background: var(--mp-jn);
  border-radius: 50%;
  border: 2px solid var(--mp-bg);
  animation: mpPing 2s infinite;
}
@keyframes mpPing {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.4); }
}

/* Avatar utilisateur */
.dark-theme .user-avatar,
.dark-theme .av {
  width: 40px; height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--mp-bl), var(--mp-bl2)) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  border: none !important;
  box-shadow: 0 4px 12px rgba(27,111,238,.3);
}

/* ════════════════════════════════════════════════════════════
   BANNIÈRE PLAN / PREMIUM
   ════════════════════════════════════════════════════════════ */
.mp-plan-bar {
  margin: 6px 20px 14px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(27,111,238,.2), rgba(245,197,24,.12));
  border: 1px solid rgba(245,197,24,.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.mp-plan-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.04) 50%, transparent 100%);
  animation: mpShim 2.5s linear infinite;
}
@keyframes mpShim {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
.mp-plan-bar .pb-l { display: flex; align-items: center; gap: 8px; }
.mp-plan-bar .pb-icon {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: rgba(245,197,24,.2);
  border: 1px solid rgba(245,197,24,.35);
  display: flex; align-items: center; justify-content: center;
}
.mp-plan-bar .pb-icon svg { width: 14px; height: 14px; stroke: var(--mp-jn2); fill: none; stroke-width: 2.5; }
.mp-plan-bar .pb-t { font-size: 10px; color: rgba(255,255,255,.55); font-weight: 600; letter-spacing: .4px; }
.mp-plan-bar .pb-v { font-size: 13px; font-weight: 800; color: #fff; }
.mp-plan-bar .pb-btn {
  padding: 5px 13px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--mp-jn3), var(--mp-jn));
  border: none;
  color: #040C1C;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all var(--mp-trans);
  position: relative;
  z-index: 1;
}
.mp-plan-bar .pb-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(245,197,24,.35);
}

/* ════════════════════════════════════════════════════════════
   CARTE HÉROS — FRÉQUENCE CARDIAQUE
   ════════════════════════════════════════════════════════════ */
.mp-hero {
  margin: 0 20px 14px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(27,111,238,.22), rgba(10,71,194,.18));
  border: 1px solid rgba(27,111,238,.35);
  position: relative;
  overflow: hidden;
  animation: mpUp .45s .05s both;
}
.mp-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(27,111,238,.25), transparent 65%);
  pointer-events: none;
}
.mp-hero .hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mp-hero .hero-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.mp-hero .hero-num {
  font-size: 54px;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  color: #fff;
}
.mp-hero .hero-unit {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  margin-left: 2px;
}

/* Badge LIVE */
.mp-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 10px;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.3);
  font-size: 11px;
  font-weight: 700;
  color: var(--mp-vr2);
}
.mp-live-badge .ldot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mp-vr2);
  animation: mpPing 1.5s infinite;
}

/* ECG */
.mp-ecg-wrap {
  height: 52px;
  overflow: hidden;
  position: relative;
}
.mp-ecg-line {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: mpEcgAnim 3s ease-in-out infinite;
}
@keyframes mpEcgAnim {
  0%   { stroke-dashoffset:  700; opacity: .3; }
  45%  { stroke-dashoffset:    0; opacity: 1; }
  100% { stroke-dashoffset: -700; opacity: .3; }
}

/* Footer hero */
.mp-hero .hero-foot {
  display: flex;
  gap: 0;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.mp-hero .hf-item { flex: 1; text-align: center; }
.mp-hero .hf-item + .hf-item { border-left: 1px solid rgba(255,255,255,.07); }
.mp-hero .hf-v { font-size: 17px; font-weight: 800; color: #fff; line-height: 1; }
.mp-hero .hf-u { font-size: 9px; font-weight: 600; color: var(--mp-muted); margin-top: 3px; letter-spacing: .3px; text-transform: uppercase; }

/* ════════════════════════════════════════════════════════════
   EN-TÊTES DE SECTIONS
   ════════════════════════════════════════════════════════════ */
.dark-theme .section-header,
.mp-sec-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  margin-bottom: 8px;
}
.mp-sec-hdr .sec-ttl { font-size: 15px; font-weight: 800; color: #fff; }
.mp-sec-hdr .sec-lnk { font-size: 11px; font-weight: 700; color: var(--mp-bl2); cursor: pointer; text-decoration: none; }
.mp-sec-hdr .sec-lnk:hover { color: var(--mp-bl2); text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   CARTES MÉTRIQUES
   ════════════════════════════════════════════════════════════ */
.mp-mrow {
  display: flex;
  gap: 10px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 14px;
}
.mp-mrow::-webkit-scrollbar { display: none; }

.mp-mc {
  min-width: 122px;
  padding: 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: transform var(--mp-trans);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.mp-mc:hover { transform: translateY(-3px); }

.mp-mc-bl  { background: rgba(27,111,238,.18);  border: 1px solid rgba(27,111,238,.3); }
.mp-mc-jn  { background: rgba(245,197,24,.15);  border: 1px solid rgba(245,197,24,.28); }
.mp-mc-vr  { background: rgba(34,197,94,.15);   border: 1px solid rgba(34,197,94,.28); }
.mp-mc-mxd { background: linear-gradient(135deg, rgba(27,111,238,.15), rgba(34,197,94,.12)); border: 1px solid rgba(78,150,255,.25); }

.mp-mc .mc-ico {
  width: 30px; height: 30px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.mp-mc .mc-ico svg { width: 15px; height: 15px; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.ico-bl { background: rgba(27,111,238,.3); }   .ico-bl svg { stroke: var(--mp-bl2); }
.ico-jn { background: rgba(245,197,24,.25); }  .ico-jn svg { stroke: var(--mp-jn2); }
.ico-vr { background: rgba(34,197,94,.25); }   .ico-vr svg { stroke: var(--mp-vr2); }
.ico-mx { background: rgba(78,150,255,.2); }   .ico-mx svg { stroke: var(--mp-bl2); }

.mp-mc .mc-v { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -1px; line-height: 1; }
.mp-mc .mc-s { font-size: 10px; color: var(--mp-muted); font-weight: 600; margin-bottom: 2px; }

.mp-mc .mc-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}
.badge-ok   { background: rgba(34,197,94,.18);  color: var(--mp-vr2); }
.badge-warn { background: rgba(245,197,24,.18); color: var(--mp-jn2); }
.badge-hi   { background: rgba(255,80,80,.18);  color: #FF8080; }

/* ════════════════════════════════════════════════════════════
   TUILES D'ACCÈS RAPIDE (2×2)
   ════════════════════════════════════════════════════════════ */
.mp-agrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 14px;
  animation: mpUp .45s .28s both;
}
.mp-atile {
  padding: 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--mp-trans);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.mp-atile:hover { transform: translateY(-2px); color: inherit; }

.mp-at-bl  { background: linear-gradient(135deg, rgba(27,111,238,.35), rgba(78,150,255,.25));  border: 1px solid rgba(78,150,255,.35); }
.mp-at-jn  { background: linear-gradient(135deg, rgba(245,197,24,.3), rgba(255,216,77,.2));    border: 1px solid rgba(245,197,24,.35); }
.mp-at-vr  { background: linear-gradient(135deg, rgba(34,197,94,.3), rgba(74,222,128,.2));     border: 1px solid rgba(34,197,94,.35); }
.mp-at-mxd { background: linear-gradient(135deg, rgba(27,111,238,.2), rgba(34,197,94,.2));     border: 1px solid rgba(78,150,255,.25); }

.mp-atile .at-ico {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mp-atile .at-ico svg { width: 17px; height: 17px; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke: #fff; }
.mp-atile .at-body span  { font-size: 9px;  color: rgba(255,255,255,.6); font-weight: 600; letter-spacing: .3px; display: block; }
.mp-atile .at-body strong { font-size: 12px; font-weight: 800; color: #fff; display: block; line-height: 1.25; }
.mp-atile::after {
  content: '';
  position: absolute;
  bottom: -16px; right: -16px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}

/* ════════════════════════════════════════════════════════════
   GRAPHIQUE BPM
   ════════════════════════════════════════════════════════════ */
.mp-chart-card {
  margin: 0 20px 14px;
  padding: 16px;
  border-radius: 22px;
  background: var(--mp-glass);
  border: 1px solid var(--mp-border);
  animation: mpUp .45s .36s both;
}
.mp-chart-card .chart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.mp-chart-card .chart-ttl { font-size: 14px; font-weight: 800; color: #fff; }
.mp-chart-card .chart-pct { font-size: 18px; font-weight: 900; color: var(--mp-vr2); }

.mp-ctabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}
.mp-ctab {
  padding: 4px 12px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--mp-muted);
  background: transparent;
  transition: all var(--mp-trans);
}
.mp-ctab.active {
  background: linear-gradient(135deg, var(--mp-bl3), var(--mp-bl));
  color: #fff;
}

.mp-bars-row {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 76px;
}
.mp-bw { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mp-bar {
  width: 100%;
  border-radius: 5px 5px 0 0;
  transition: height .6s cubic-bezier(.34,1.56,.64,1);
  min-height: 4px;
}
.mp-bday { font-size: 9px; color: var(--mp-muted); font-weight: 700; text-transform: uppercase; }

/* ════════════════════════════════════════════════════════════
   CARTE RENDEZ-VOUS
   ════════════════════════════════════════════════════════════ */
.mp-rdv {
  margin: 0 20px 14px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(245,197,24,.12), rgba(27,111,238,.1));
  border: 1px solid rgba(245,197,24,.22);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: mpUp .45s .44s both;
}
.mp-rdv .rdv-cal {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--mp-jn3), var(--mp-jn));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mp-rdv .rdv-d { font-size: 20px; font-weight: 900; color: #040C1C; line-height: 1; }
.mp-rdv .rdv-m { font-size: 8px; font-weight: 800; color: rgba(4,12,28,.7); text-transform: uppercase; letter-spacing: 1px; }
.mp-rdv .rdv-info { flex: 1; }
.mp-rdv .rdv-dr  { font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 1px; }
.mp-rdv .rdv-sp  { font-size: 10px; color: var(--mp-muted); font-weight: 600; margin-bottom: 5px; }
.mp-rdv .rdv-hr  { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; color: var(--mp-jn2); }
.mp-rdv .rdv-hr svg { width: 11px; height: 11px; stroke: var(--mp-jn2); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mp-rdv .rdv-go {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: all var(--mp-trans);
  text-decoration: none;
}
.mp-rdv .rdv-go:hover { background: rgba(245,197,24,.2); transform: scale(1.1); }
.mp-rdv .rdv-go svg { width: 14px; height: 14px; stroke: rgba(255,255,255,.7); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Pas de RDV */
.mp-rdv-empty {
  margin: 0 20px 14px;
  padding: 16px;
  border-radius: 22px;
  background: var(--mp-glass);
  border: 1px solid var(--mp-border);
  text-align: center;
  font-size: 12px;
  color: var(--mp-muted);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════
   BLOC ASSISTANT IA
   ════════════════════════════════════════════════════════════ */
.mp-ai {
  margin: 0 20px 110px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(27,111,238,.1));
  border: 1px solid rgba(34,197,94,.25);
  position: relative;
  overflow: hidden;
  animation: mpUp .45s .52s both;
}
.mp-ai::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(34,197,94,.18), transparent 65%);
  pointer-events: none;
}
.mp-ai .ai-hdr { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mp-ai .ai-orb {
  width: 32px; height: 32px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--mp-vr3), var(--mp-vr));
  display: flex; align-items: center; justify-content: center;
  animation: mpAiGlow 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes mpAiGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
  50%      { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}
.mp-ai .ai-orb svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mp-ai .ai-ttl { font-size: 12px; font-weight: 800; color: var(--mp-vr2); }
.mp-ai .ai-sub { font-size: 9px; color: var(--mp-muted); font-weight: 600; }
.mp-ai .ai-txt { font-size: 12px; color: rgba(255,255,255,.82); line-height: 1.65; font-weight: 400; }
.mp-ai .ai-txt b { color: var(--mp-jn2); font-weight: 700; }
.mp-ai .ai-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mp-ai .ai-tag {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.22);
  font-size: 10px;
  font-weight: 700;
  color: var(--mp-vr2);
  cursor: pointer;
  transition: all var(--mp-trans);
  text-decoration: none;
}
.mp-ai .ai-tag:hover { background: rgba(34,197,94,.25); }

/* Skeleton loader IA */
.mp-ai-loading .ai-txt {
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  height: 52px;
  animation: mpSkeleton 1.5s ease-in-out infinite;
}
@keyframes mpSkeleton {
  0%,100% { opacity: .5; }
  50%      { opacity: 1; }
}

/* ════════════════════════════════════════════════════════════
   BARRE DE NAVIGATION FLOTTANTE
   ════════════════════════════════════════════════════════════ */
.dark-theme .bottom-nav,
.dark-theme .bottom-nav-improved {
  /* Annule le style blanc hérité */
  background: rgba(11,22,40,.94) !important;
  backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 26px !important;
  box-shadow: 0 -8px 32px rgba(0,0,0,.5) !important;
  padding: 10px 8px !important;
  width: min(390px, calc(100% - 32px)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: 16px !important;
  border-bottom: 1px solid rgba(255,255,255,.1) !important;
  border-bottom-left-radius: 26px !important;
  border-bottom-right-radius: 26px !important;
}

.dark-theme .bottom-nav .nav-item,
.dark-theme .bottom-nav-improved .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 5px 14px;
  border-radius: 14px;
  transition: all .22s;
  position: relative;
  color: rgba(255,255,255,.38) !important;
  background: none !important;
}
.dark-theme .bottom-nav .nav-item:hover,
.dark-theme .bottom-nav-improved .nav-item:hover {
  background: rgba(255,255,255,.05) !important;
  color: rgba(255,255,255,.65) !important;
  transform: none;
}
.dark-theme .bottom-nav .nav-item svg,
.dark-theme .bottom-nav-improved .nav-item svg {
  stroke: rgba(255,255,255,.38) !important;
  fill: none !important;
  width: 21px; height: 21px;
  transition: stroke .22s;
}
.dark-theme .bottom-nav .nav-item span,
.dark-theme .bottom-nav-improved .nav-item span {
  font-size: 9px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.38) !important;
  letter-spacing: .3px;
  transition: color .22s;
}
.dark-theme .bottom-nav .nav-item.active svg,
.dark-theme .bottom-nav-improved .nav-item.active svg {
  stroke: #fff !important;
}
.dark-theme .bottom-nav .nav-item.active span,
.dark-theme .bottom-nav-improved .nav-item.active span {
  color: #fff !important;
}
.dark-theme .bottom-nav .nav-item.active,
.dark-theme .bottom-nav-improved .nav-item.active {
  background: none !important;
  color: #fff !important;
}

/* Point de couleur sous l'onglet actif */
.mp-nav-dot {
  position: absolute;
  bottom: 1px;
  width: 4px; height: 4px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .22s;
}
.dark-theme .nav-item.active .mp-nav-dot { opacity: 1; }
.mp-nav-dot-bl { background: var(--mp-bl2); }
.mp-nav-dot-jn { background: var(--mp-jn); }
.mp-nav-dot-vr { background: var(--mp-vr2); }

/* Bouton central + */
.mp-nav-center {
  width: 54px; height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--mp-bl3), var(--mp-bl2));
  display: flex; align-items: center; justify-content: center;
  margin-top: -16px;
  cursor: pointer;
  transition: all .22s;
  box-shadow: 0 6px 20px rgba(27,111,238,.45);
  flex-shrink: 0;
  border: none;
}
.mp-nav-center:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 10px 26px rgba(27,111,238,.55);
}
.mp-nav-center svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ════════════════════════════════════════════════════════════
   CARDS GÉNÉRIQUES (remplace .card, .metric-card, etc.)
   ════════════════════════════════════════════════════════════ */
.dark-theme .card,
.dark-theme .stat-card,
.dark-theme .info-card {
  background: var(--mp-glass) !important;
  border: 1px solid var(--mp-border) !important;
  border-radius: 22px !important;
  color: var(--mp-txt) !important;
  box-shadow: none !important;
}
.dark-theme .card h2,
.dark-theme .card h3,
.dark-theme .stat-card h2,
.dark-theme .stat-card h3 {
  color: #fff !important;
}
.dark-theme .card p,
.dark-theme .stat-card p {
  color: var(--mp-muted) !important;
}

/* ── Inputs & selects ── */
.dark-theme input,
.dark-theme select,
.dark-theme textarea {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid var(--mp-border) !important;
  color: #fff !important;
  border-radius: 12px !important;
}
.dark-theme input::placeholder,
.dark-theme textarea::placeholder {
  color: var(--mp-muted) !important;
}
.dark-theme input:focus,
.dark-theme select:focus,
.dark-theme textarea:focus {
  border-color: rgba(27,111,238,.5) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(27,111,238,.15) !important;
}

/* ── Boutons ── */
.dark-theme .btn-primary {
  background: linear-gradient(135deg, var(--mp-bl3), var(--mp-bl)) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
}
.dark-theme .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(27,111,238,.4) !important;
  transform: translateY(-1px);
}
.dark-theme .btn-secondary {
  background: var(--mp-glass) !important;
  border: 1px solid var(--mp-border) !important;
  color: rgba(255,255,255,.8) !important;
  border-radius: 14px !important;
}

/* ════════════════════════════════════════════════════════════
   ANIMATIONS ENTRÉE
   ════════════════════════════════════════════════════════════ */
@keyframes mpUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dark-theme .app-header { animation: mpUp .35s both; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .dark-theme .bottom-nav,
  .dark-theme .bottom-nav-improved {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    border-radius: 18px 18px 0 0 !important;
    border-left: none !important;
    border-right: none !important;
    bottom: 0 !important;
  }
  .mp-agrid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .dark-theme .app-container { max-width: 960px; }
  .mp-hero { margin: 0 0 14px; }
  .mp-agrid { grid-template-columns: repeat(4,1fr); }
}