/*
 * A4W Home Specialties — bloc « Nos spécialités » en onglets.
 * Couleurs, polices et rayon viennent des jetons du thème (avec repli) ; aucun :root ici.
 * L'espacement entre sections de l'accueil est posé par le thème.
 */
.a4w-hs__title {
  margin: 0;
  font-family: var(--font-family-title, Georgia, serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-color, #1D191B);
}

/* Barre d'onglets : visible seulement quand le JS l'a activée (sinon chaque panneau garde son titre). */
.a4w-hs__tablist {
  display: none;
}

.a4w-hs--js .a4w-hs__tablist {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 0 32px;
  margin-top: 20px;
  border-bottom: 1px solid var(--border-color, #E4E3E4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.a4w-hs--js .a4w-hs__tablist::-webkit-scrollbar {
  display: none;
}

.a4w-hs__tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 0;
  border: 0;
  background: none;
  color: var(--muted-color, #6C6A6B);
  font-family: var(--font-family-title, Georgia, serif);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}

.a4w-hs__tab:hover,
.a4w-hs__tab[aria-selected="true"] {
  color: var(--text-color, #1D191B);
}

.a4w-hs__tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background-color: var(--text-color, #1D191B);
}

.a4w-hs__tab:focus-visible {
  outline: 2px solid var(--text-color, #1D191B);
  outline-offset: 2px;
}

.a4w-hs__panel:focus-visible {
  outline: 2px solid var(--text-color, #1D191B);
  outline-offset: 4px;
}

.a4w-hs__panel[hidden] {
  display: none;
}

/* Titre du panneau : repli sans JS uniquement. */
.a4w-hs__panel-title {
  margin: 32px 0 0;
  font-family: var(--font-family-title, Georgia, serif);
  font-size: var(--font-size-h3, 1.25rem);
  font-weight: 600;
  color: var(--text-color, #1D191B);
}

.a4w-hs--js .a4w-hs__panel-title {
  display: none;
}

.a4w-hs__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 24px;
  margin-top: 32px;
}

.a4w-hs__all {
  margin-top: 24px;
}

@media (max-width: 991.98px) {
  .a4w-hs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }
}

/* Mobile : onglets sur une seule ligne, qui défile horizontalement dans la barre (jamais dans la page). */
@media (max-width: 767.98px) {
  .a4w-hs--js .a4w-hs__tablist {
    gap: 0 24px;
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }
}
