/* Barre d'onglets — design FF.pen, id Pencil WF20V */
.ff-tabbar {
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  width: 100%;
  height: 64px;
  padding: var(--ff-space-2);
  background-color: var(--ff-surface);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-control);
  box-shadow: 0 4px 16px var(--ff-shadow-overlay);
}

.ff-tabbar__item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ff-space-half);
  min-width: 0;
  height: 100%;
  border-radius: var(--ff-radius-s);
  background-color: transparent;
  color: var(--ff-text-muted);
  font-family: var(--ff-font-body);
  font-size: var(--ff-font-size-xs);
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .14s ease;
}

.ff-tabbar__icon {
  font-size: 22px;
  line-height: 1;
  color: inherit;
}

.ff-tabbar__item:hover,
.ff-tabbar__item.is-hover {
  background-color: var(--ff-surface-alt);
}

.ff-tabbar__item:focus-visible,
.ff-tabbar__item.is-focus {
  outline: 2px solid var(--ff-focus);
  outline-offset: 2px;
}

.ff-tabbar__item[aria-current="page"] {
  background-color: var(--ff-series-tint);
  color: var(--ff-text);
  font-weight: 600;
}

.ff-tabbar__item[aria-current="page"] .ff-tabbar__icon {
  color: var(--ff-crystal-strong);
}

.ff-tabbar__item:active,
.ff-tabbar__item.is-active {
  background-color: var(--ff-border);
}

@media (prefers-reduced-motion: reduce) {
  .ff-tabbar__item {
    transition: none;
  }
}
