/*
 * forfreepeople — Tabbar (paradigme iOS, items équivalents)
 * Préfixe ffp-tabbar — propre au site, anti cross-site fingerprint.
 * Palette : bleu pétrole sourd (#0d4f5c) + sable (#e9d8a6) — distincte des
 * jumeaux Tailwind du réseau (qui utilisent par défaut Bootstrap blue/red).
 */

:root {
  --ffp-tabbar-h: 60px;
  --ffp-safe: env(safe-area-inset-bottom, 0px);
  --ffp-tabbar-bg: #0d4f5c;
  --ffp-tabbar-fg: #cbd5d8;
  --ffp-tabbar-fg-active: #e9d8a6;
  --ffp-tabbar-line: #1a6573;
}

body { padding-bottom: calc(var(--ffp-tabbar-h) + var(--ffp-safe)); }

.ffp-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--ffp-tabbar-h) + var(--ffp-safe));
  padding-bottom: var(--ffp-safe);
  background: var(--ffp-tabbar-bg);
  border-top: 1px solid var(--ffp-tabbar-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  z-index: 100;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (min-width: 1100px) { .ffp-tabbar { display: none; } }

.ffp-tabbar__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px 4px;
  border: 0;
  background: transparent;
  color: var(--ffp-tabbar-fg);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ffp-tabbar__cell svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ffp-tabbar__cell:active { background: rgba(233, 216, 166, 0.08); }
.ffp-tabbar__cell.is-current { color: var(--ffp-tabbar-fg-active); }
.ffp-tabbar__cell.is-current::before {
  content: '';
  position: absolute;
  top: 0;
  width: 28px;
  height: 2px;
  background: var(--ffp-tabbar-fg-active);
  border-radius: 0;
}
.ffp-tabbar__cell { position: relative; }
