/* ============================================================
   BOTTOM NAVIGATION — floating glass pill, phones only
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; inset-inline: 0; z-index: 96;
  display: none; grid-template-columns: repeat(5, 1fr);
  background: var(--paper, #fffdf9);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(59, 47, 38, .12);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 5px 2px 4px;
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted); text-decoration: none;
  transition: color .18s;
  /* grid items default min-width:auto: long labels ("Suivre ma commande")
     forced tracks wider than the screen and cut off the 5th tab */
  min-width: 0;
}
.bottom-nav a > span:last-child { min-width: 0; overflow-wrap: break-word; }
.bottom-nav .bn-ico {
  width: 40px; height: 23px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, transform .18s;
}
.bottom-nav .bn-svg { width: 18px; height: 18px; stroke: currentColor;
  fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav a.active { color: var(--gold); }
.bottom-nav a.active .bn-ico { background: var(--gold-soft); transform: translateY(-1px); }
.bottom-nav a:active .bn-ico { transform: scale(0.92); }
.bottom-nav .bn-badge {
  position: absolute; top: 1px; inset-inline-end: calc(50% - 22px);
  background: var(--gold); color: #fff; font-size: 0.56rem; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 999px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--paper);
}

@media (max-width: 860px) {
  .bottom-nav { display: grid; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  /* floating buttons ride above the bar */
  .call-fab { bottom: calc(70px + env(safe-area-inset-bottom)) !important; }
  .wa-fab { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .wa-float { bottom: calc(70px + env(safe-area-inset-bottom)); }
}
