/* Fichier fabriqué par outils/build-css.mjs à partir de assets/src/slider.css : ne pas modifier ici. */
/* ADS — slider « à la une » et bannières (.hs), repris de Big M aux couleurs d'ADS. */

/* ---------- slider « à la une » : slide centrée, voisines visibles, photo ou vidéo ---------- */
body:not(#snack-x) .snack-carte .hs { --hs-w: min(1040px, 84vw); --hs-gap: 20px; --hs-ratio: 2 / 1; position: relative; padding-block: 8px 0; }
body:not(#snack-x) .snack-carte .hs--banner { --hs-w: min(1176px, 90vw); --hs-ratio: 3 / 1; --hs-gap: 16px; }
body:not(#snack-x) .snack-carte .hs__viewport { position: relative; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
body:not(#snack-x) .snack-carte .hs__viewport.is-dragging { cursor: grabbing; }
body:not(#snack-x) .snack-carte .hs__track { display: flex; gap: var(--hs-gap); will-change: transform; }
body:not(#snack-x) .snack-carte .hs__slide { flex: 0 0 var(--hs-w); aspect-ratio: var(--hs-ratio); border-radius: var(--radius); overflow: hidden; position: relative; background: var(--surface); transform: translateZ(0); }
body:not(#snack-x) .snack-carte .hs__slide a { display: block; width: 100%; height: 100%; -webkit-user-drag: none; }
body:not(#snack-x) .snack-carte .hs__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
body:not(#snack-x) .snack-carte .hs__slide::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); opacity: 1; transition: opacity .45s ease; pointer-events: none; }
body:not(#snack-x) .snack-carte .hs__slide.is-active::after { opacity: 0; }
body:not(#snack-x) .snack-carte .hs__arrow { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: var(--yellow); color: var(--dark); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5); transition: transform .14s var(--ease), background-color .18s ease; }
body:not(#snack-x) .snack-carte .hs__arrow:hover { background: var(--yellow-hover); }
body:not(#snack-x) .snack-carte .hs__arrow:active { transform: scale(0.92); }
body:not(#snack-x) .snack-carte .hs__arrow--prev { left: calc((100% - var(--hs-w)) / 2 - 26px); }
body:not(#snack-x) .snack-carte .hs__arrow--next { right: calc((100% - var(--hs-w)) / 2 - 26px); }
body:not(#snack-x) .snack-carte .hs__bar { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 6px; }
body:not(#snack-x) .snack-carte .hs__dots { display: flex; gap: 2px; }
body:not(#snack-x) .snack-carte .hs__dots button { min-width: 28px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
body:not(#snack-x) .snack-carte .hs__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.3); transition: width .35s var(--ease), background-color .2s ease; }
body:not(#snack-x) .snack-carte .hs__dots button[aria-current="true"]::before { width: 26px; background: var(--yellow); }
body:not(#snack-x) .snack-carte .hs__pause { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
body:not(#snack-x) .snack-carte .hs__pause:hover { background: var(--surface-2); }
body:not(#snack-x) .snack-carte .hs__pause svg { width: 18px; height: 18px; }
body:not(#snack-x) .snack-carte .hs__badge { position: absolute; left: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; background: rgba(20, 10, 4, 0.55); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
body:not(#snack-x) .snack-carte .hs__badge svg { width: 12px; height: 12px; }
@media (max-width: 760px) {
  body:not(#snack-x) .snack-carte .hs { --hs-w: 88vw; --hs-gap: 10px; --hs-ratio: 2 / 1; }
  body:not(#snack-x) .snack-carte .hs--banner { --hs-w: 90vw; --hs-ratio: 2 / 1; }
  body:not(#snack-x) .snack-carte .hs__arrow { display: none; }
  body:not(#snack-x) .snack-carte .hs__slide { border-radius: 16px; }
}

/* flèches du slider */
@media (hover: hover) and (pointer: fine) { body:not(#snack-x) .snack-carte .hs__arrow:hover svg { transform: translateX(var(--nudge, 2px)); } }
body:not(#snack-x) .snack-carte .hs__arrow svg { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
body:not(#snack-x) .snack-carte .hs__arrow--prev { --nudge: -2px; }

/* Section du slider hero. */
body:not(#snack-x) .snack-carte .hs-section { padding-top: 20px; }
/* Bannières de la carte. Sur la page d'une catégorie, la marge des filtres suffit. */
body:not(#snack-x) .snack-carte .hs-banners { margin-bottom: 32px; }
/* Une seule bannière : image fixe centrée. */
body:not(#snack-x) .snack-carte .hs--single .hs__slide { width: var(--hs-w); margin-inline: auto; }
body:not(#snack-x) .snack-carte .hs--single .hs__slide::after { display: none; }
body:not(#snack-x) .snack-carte .hs--single video.hs__media { opacity: 1; }
body:not(#snack-x) .snack-carte .hs-banners--serre { margin-bottom: 0; }

/* Elementor : .elementor img { height: auto } empêcherait l'image de remplir la slide. */
/* !important : certains thèmes posent width/height en ligne sur les images. */
body:not(#snack-x) .snack-carte .hs__media { width: 100% !important; height: 100% !important; max-width: none !important; border-radius: 0; }
