/* css/layout.css */

/* ── Vue principale ─────────────────────────────────────────── */
.view {
  position: absolute;
  inset: 0;
  bottom: calc(var(--nav-h) + var(--safe-bottom));
  /* PWA iOS (raccourci écran d'accueil, viewport-fit=cover) : le contenu démarre sinon sous
     l'encoche/la barre de statut — une vue positionnée en absolu ignore le padding de son
     parent (#app), donc le safe-area doit être appliqué ici, sur la vue elle-même. */
  padding-top: var(--safe-top);
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.view--active {
  opacity: 1;
  pointer-events: auto;
}
/* La table couvre la nav */
.view--table {
  bottom: 0;
  background: #050508;
  display: flex;
  flex-direction: column;
}

/* ── Bottom nav ─────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  color: var(--text2);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 12px;
  transition: color var(--transition);
}
.nav-btn svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.nav-btn--active { color: var(--accent); }
.nav-btn--home   { color: var(--text); }
.nav-btn--home.nav-btn--active { color: var(--accent); }
