/* Bottom Navigation */
.bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; width: 100%;
  /* box-sizing:border-box → la hauteur INCLUT le padding (sinon safe-area
     comptée 2× : contenu 56+safe PUIS padding safe = barre trop haute +
     bande vide). Ici : total = 56 + safe, contenu 56px, padding = safe. */
  box-sizing: border-box;
  /* Hauteur de base 56px + zone safe-area (home indicator iPhone X+) */
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; align-items: stretch;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -2px 12px rgba(14,59,58,.08);
}
.bnav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; padding: 6px 0 4px;
  color: var(--muted); text-decoration: none;
  font-size: .6875rem; font-weight: 500;
  transition: color .15s;
  position: relative; /* pour le ::after active pill */
}
.bnav-item svg { width: 22px; height: 22px; }

/* ── Onglet actif : couleur accent + pill derrière l'icône ── */
.bnav-item.active { color: var(--moana); }
.bnav-item:not(.bnav-cta).active::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%; transform: translateX(-50%);
  width: 36px; height: 28px;
  background: rgba(42,123,119,.12);
  border-radius: 10px;
  z-index: 0;
  pointer-events: none;
}

.bnav-item:not(.bnav-cta):hover { color: var(--moana); }
.bnav-cta { flex: 1.1; }
.bnav-cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.bnav-cta-circle {
  width: 40px; height: 40px;
  background: var(--moana); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(42,123,119,.35);
  margin-top: -10px;
}
.bnav-cta-circle svg { width: 20px; height: 20px; stroke: #fff; }
.bnav-cta-label { font-size: .6875rem; font-weight: 600; color: var(--moana); }
.bnav-badge {
  position: absolute; top: -4px; right: -6px;
  background: #e53935; color: #fff;
  font-size: .6rem; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}
