/* Onglets FDSP (décidé le 2026-10-23 : le style de la Library pour tous les onglets).
   <div class="tabs" role="tablist"><button class="tab" role="tab" aria-selected="true">Tracks <span>3</span></button>…</div>
   L'onglet actif : aria-selected="true" (onglets) ou aria-pressed="true" (filtres de liste). Hors couche, comme buttons.css. */

.tabs { display: flex; gap: 20px; padding: 0; border: 0; background: transparent; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: none; padding: 4px 0 11px; border: 0; border-radius: 0; box-shadow: none; background: transparent;
  color: var(--dim); font: 700 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .08s;
}
.tab > span { margin-left: 4px; opacity: .7; }
/* Le trait est une ombre intérieure, pas une bordure : Safari iOS laissait une trace fine de la bordure transparente sous l'onglet quitté (2026-11-01). */
.tab[aria-selected="true"], .tab[aria-pressed="true"] { color: var(--fg); box-shadow: inset 0 -3px 0 var(--fg); }
@media (hover: hover) { .tab:hover { color: var(--fg); } }
.tab:active { color: var(--fg); }
.tab:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tab { transition: none; } }
