/* =================================================================
   MARS — style-nav-fix.css
   À coller dans style.css (remplace le bloc .bottom-nav existant)
   OU charger après style.css pour override.
   =================================================================
   Règles IDENTIQUES au bottom-nav-fix.css (déjà livré) mais aussi
   ciblées sur les états et interactions visuelles (pill active,
   pressed, disabled, badge).
   ================================================================= */

/* Pill active state */
.bottom-nav .nav-item.active {
  color: var(--m-accent, #F5F5F0);
  background: rgba(25, 230, 57, 0.08);
  position: relative;
}
.bottom-nav .nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--m-accent-green, #19E639);
  border-radius: 0 0 3px 3px;
}

/* Pressed */
.bottom-nav .nav-item:active {
  background: rgba(25, 230, 57, 0.12);
}

/* Badge (notif) */
.bottom-nav .nav-item .badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--m-danger, #FF6B6B);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--m-black, #0A0A0A);
}

/* Disabled (fallback offline) */
.bottom-nav .nav-item.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* FAB pressed */
.nav-add-btn:active {
  transform: scale(0.94);
  box-shadow: 0 4px 12px -2px rgba(25, 230, 57, 0.4);
}

/* FAB long-press feedback */
.nav-add-btn.pressing {
  box-shadow: 0 0 0 4px rgba(25, 230, 57, 0.2), 0 8px 24px -4px rgba(25, 230, 57, 0.5);
}

/* Quand le scrim modal est ouvert, la nav s'efface (on la plaque derrière) */
body.modal-open .bottom-nav,
body.sheet-open .bottom-nav {
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.22s ease;
}
