/* Fichier fabriqué par outils/build-css.mjs à partir de assets/src/barre-categories.css : ne pas modifier ici. */
/* ADS — barre de catégories en capsule jaune, collante sous l'en-tête du site.
   La hauteur de l'en-tête (UiCore Pro : il se cache en descendant et revient en remontant)
   est suivie par assets/js/base.js dans --ads-top. */

@media (hover: hover) and (pointer: fine) {
  body:not(#snack-x) .snack-carte .cat-tabs a:hover svg { animation: ads-wiggle .5s ease; }
}

body:not(#snack-x) .snack-carte .cat-tabs { position: sticky; top: var(--ads-top, 12px); z-index: 40; max-width: 1240px; margin: 10px auto 0; width: calc(100% - 2 * var(--pad)); border-radius: var(--radius); background: var(--yellow); color: var(--dark); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .9); overflow: hidden; transition: top .25s var(--ease); }
body:not(#snack-x) .snack-carte .cat-tabs ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; justify-content: space-between; padding-inline: 8px; max-width: none; }
body:not(#snack-x) .snack-carte .cat-tabs ul::-webkit-scrollbar { display: none; }
body:not(#snack-x) .snack-carte .cat-tabs a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 12px; min-width: 88px; text-decoration: none; font-family: var(--font-display); font-weight: 400; font-size: 14px; white-space: nowrap; color: var(--dark); border-bottom: 3px solid transparent; transition: background-color .18s ease, border-color .18s ease; }
body:not(#snack-x) .snack-carte .cat-tabs a:hover { color: var(--dark); background: rgba(0, 0, 0, .07); }
body:not(#snack-x) .snack-carte .cat-tabs a[aria-current="page"] { border-color: var(--dark); background: rgba(0, 0, 0, .1); }
/* Sous-catégorie ou fiche produit : la catégorie parente reste allumée. */
body:not(#snack-x) .snack-carte .cat-tabs a[aria-current="true"] { border-color: var(--dark); background: rgba(0, 0, 0, .1); }
body:not(#snack-x) .snack-carte .cat-tabs svg { width: 28px; height: 28px; }
@media (max-width: 960px) { body:not(#snack-x) .snack-carte .cat-tabs ul { justify-content: flex-start; } }
@media (max-width: 760px) { body:not(#snack-x) .snack-carte .cat-tabs { width: calc(100% - 20px); border-radius: 18px; } body:not(#snack-x) .snack-carte .cat-tabs a { min-width: 76px; padding: 8px 10px 10px; font-size: 13px; } body:not(#snack-x) .snack-carte .cat-tabs svg { width: 24px; height: 24px; } }

/* Elementor : la barre est enfermée dans le bloc du widget. C'est donc ce bloc qui colle
   sous l'en-tête (dans le conteneur qui le porte). Règles laissées hors de .snack-carte. */
.elementor-widget-ads-barre-categories { position: sticky; top: var(--ads-top, 12px); z-index: 40; transition: top .25s cubic-bezier(0.22, 1, 0.36, 1); }
body:not(#snack-x) .elementor-widget-ads-barre-categories .cat-tabs { position: relative; top: 0; }
