/* Barre de navigation du bas : UNE seule définition, utilisée par la carte, le fil et le compte.
   Position et taille identiques partout : fixe, à 2 rem du bas de l'écran (volontairement SANS zone de sécurité : selon que la page déclare « viewport-fit=cover » ou non, iPhone la compte (34 px) ou pas (0), et la barre se retrouvait 34 px plus haut sur Compte que sur la carte), 58 px + 1 px de bordure de chaque côté.
   Fond uni, aucune animation permanente → légère même sur un petit téléphone. */
#tabbar { position: fixed; left: .6rem; right: .6rem; max-width: 460px; margin: 0 auto; bottom: 2rem; z-index: 6; box-sizing: content-box; height: 58px; display: grid; grid-template-columns: 1fr 1fr 74px 1fr 1fr; align-items: center; border-radius: 22px; background: var(--nx-bg); border: 1px solid var(--nx-line); box-shadow: 0 6px 22px color-mix(in srgb, var(--nx-blue) 28%, transparent); font: 16px/1.5 system-ui, -apple-system, sans-serif; }
#tabbar, #tabbar * { -webkit-tap-highlight-color: transparent; }
#tabbar *, #tabbar *::before, #tabbar *::after { box-sizing: border-box; }
#tabbar.hidden { display: none; }
#tabbar .tab { display: grid; justify-items: center; gap: .08rem; padding: .3rem 0; border: 0; background: none; color: var(--nx-text-dim); font: inherit; font-size: .68rem; font-weight: 600; line-height: 1.5; text-decoration: none; cursor: pointer; }
#tabbar .tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#tabbar .tab.on { color: var(--nx-blue-light); } 
#tab-locate { justify-self: center; width: 58px; height: 58px; margin-top: -30px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--nx-white); cursor: pointer; text-decoration: none; background: radial-gradient(circle at 50% 28%, var(--nx-blue), var(--nx-blue) 75%); box-shadow: 0 0 0 6px var(--nx-bg), 0 0 16px 6px color-mix(in srgb, var(--nx-blue) 55%, transparent); }
#tab-locate svg { width: 28px; height: 28px; fill: var(--nx-strong); stroke: var(--nx-strong); stroke-width: 1.2; }
#tab-locate svg circle { fill: var(--nx-blue-light); stroke: none; }
#tab-locate:active { transform: scale(.94); }
#tabbar .tab { position: relative; }
#tabbar #notif-badge { position: absolute; top: 1px; left: calc(50% + 4px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--nx-blue); color: var(--nx-white); font-size: .62rem; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--nx-bg); }
#tabbar #notif-badge[hidden] { display: none; }
#tabbar #tab-indicator { opacity: 1; position: absolute; left: 0; top: 6px; height: 46px; border-radius: 16px; background: color-mix(in srgb, var(--nx-blue) 17%, transparent); pointer-events: none; z-index: 0; will-change: transform; transition: transform .34s cubic-bezier(.3,.85,.3,1), opacity .25s ease; }
#tabbar #tab-indicator[hidden] { display: none; }
#tabbar .tab { z-index: 1; transition: color .25s ease; }
#tabbar .tab svg { transition: transform .3s cubic-bezier(.3,.85,.3,1), fill .25s ease; }
#tabbar .tab.on svg { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { #tabbar #tab-indicator, #tabbar .tab, #tabbar .tab svg { transition: none; } }
/* Pages à barre du bas : le document ne défile pas (c'est la zone « .shell » qui défile), comme sur la carte.
   Ainsi la barre d'adresse et la barre du navigateur ne bougent jamais et la barre du bas reste exactement au même endroit. */
html:has(.shell), body:has(.shell) { height: 100%; overflow: hidden; overscroll-behavior: none; }
.shell { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#tabbar #tab-feed.on svg rect { fill: currentColor; } #tabbar #tab-feed.on svg path { stroke: var(--nx-text); }
#tabbar #tab-videos.on svg circle { fill: currentColor; } #tabbar #tab-videos.on svg path { stroke: var(--nx-text); fill: var(--nx-text); }
#tabbar .tab span { white-space: nowrap; }
