/* Fichier fabriqué par outils/build-css.mjs à partir de assets/src/base.css : ne pas modifier ici. */
/* ADS — charte de la carte : polices, couleurs, typographie, boutons, apparitions.
   Adapté du base.css / tokens.css de Big M (thème bigm-child), aux couleurs d'alldaysnack.com :
   fond noir, jaune #FFD100, orange #FF9416, titres en Alfa Slab One, texte en Poppins.

   Classes en « snack- » et non en « ads- » : les bloqueurs de publicité masquent les blocs dont la
   classe commence par « ads- » (ex. .ads-main), ce qui vidait la page.

   Ce fichier est une SOURCE : outils/build-css.mjs enferme chaque règle dans .snack-carte
   (body .snack-carte …) et écrit assets/css/. Le reste du site (UiCore Pro, Elementor) n'est
   donc jamais touché. :root devient le bloc .snack-carte lui-même. */

/* Polices auto-hébergées, sous un nom propre à la carte pour ne pas croiser celles que le thème
   charge depuis Google. Une seule graisse pour Alfa Slab One : la plage 400-900 évite le faux gras
   quand un composant demande 600. */
@font-face { font-family: "ADS Display"; src: url("../fonts/alfa-slab-one-latin-400-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "ADS Text"; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "ADS Text"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "ADS Text"; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

body:not(#snack-x) .snack-carte {
  color-scheme: dark;
  --bg: #000000;          /* fond du site */
  --surface: #141414;     /* cartes : vignettes, filtres, sections de la fiche */
  --surface-2: #232323;   /* survol, traces */
  --tile: #FFD100;        /* fond des photos (jaune ADS) */
  --line: rgba(255, 255, 255, 0.12);
  --ink: #FFFFFF;         /* texte sur fond noir */
  --muted: #B8B8B8;       /* texte secondaire (contraste AA sur noir) */
  --dark: #070707;        /* texte sur jaune */
  --yellow: #FFD100;      /* jaune ADS : boutons, barre de catégories, bandeaux */
  --yellow-hover: #FFE14D;
  --orange: #FF9416;
  --accent: #FFD100;      /* liens et survols sur fond noir */
  --btn: #FFD100;
  --btn-ink: #000000;
  --btn-hover: #FFE14D;
  --radius: 23px;         /* arrondi des cartes du site */
  --radius-sm: 14px;
  --max: 1240px;
  --pad: clamp(16px, 3vw, 32px);
  --font-display: "ADS Display", "Alfa Slab One", Rockwell, Georgia, serif;
  --font-text: "ADS Text", "Poppins", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: clamp(48px, 7vw, 88px);
  /* La marge haute de la barre de catégories ne doit pas sortir du bloc (bande blanche). */
  display: flow-root;
}

/* Pages de la carte : la carte a son propre titre, le bandeau de titre et le fil d'Ariane
   d'UiCore Pro sont masqués. */
body.snack-page .uicore-page-title { display: none; }
body.snack-page .uicore-content { background: #000; }

body:not(#snack-x) .snack-carte *, body:not(#snack-x) .snack-carte *::before, body:not(#snack-x) .snack-carte *::after { box-sizing: border-box; }
body:not(#snack-x) .snack-carte h1, body:not(#snack-x) .snack-carte h2, body:not(#snack-x) .snack-carte h3, body:not(#snack-x) .snack-carte p, body:not(#snack-x) .snack-carte figure, body:not(#snack-x) .snack-carte ul, body:not(#snack-x) .snack-carte ol { margin: 0; padding: 0; }
body:not(#snack-x) .snack-carte ul[class], body:not(#snack-x) .snack-carte ol[class] { list-style: none; padding: 0; }
body:not(#snack-x) .snack-carte img { display: block; max-width: 100%; height: auto; }
body:not(#snack-x) .snack-carte a { color: inherit; }
body:not(#snack-x) .snack-carte button, body:not(#snack-x) .snack-carte input { font: inherit; color: inherit; }
body:not(#snack-x) .snack-carte button { background: none; border: 0; padding: 0; cursor: pointer; }
body:not(#snack-x) .snack-carte :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
body:not(#snack-x) .snack-carte h1, body:not(#snack-x) .snack-carte h2, body:not(#snack-x) .snack-carte h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; line-height: 1.05; text-wrap: balance; color: inherit; text-transform: none; }
body:not(#snack-x) .snack-carte h1 { text-transform: uppercase; }

body:not(#snack-x) .snack-carte .container { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* boutons */
body:not(#snack-x) .snack-carte .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 12px; background: var(--btn); color: var(--btn-ink); font-family: var(--font-display); font-weight: 400; font-size: 17px; line-height: 1.1; text-decoration: none; white-space: nowrap; transition: background-color .18s ease, transform .14s var(--ease); }
body:not(#snack-x) .snack-carte .btn:hover { background: var(--btn-hover); color: var(--btn-ink); }
body:not(#snack-x) .snack-carte .btn:active { transform: scale(0.96); transition-duration: .08s; }
body:not(#snack-x) .snack-carte .btn--light { background: #fff; color: #000; }
body:not(#snack-x) .snack-carte .btn--light:hover { background: #ececec; color: #000; }
body:not(#snack-x) .snack-carte .btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
body:not(#snack-x) .snack-carte .btn--outline:hover { background: var(--ink); color: #000; }
body:not(#snack-x) .snack-carte .btn svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* apparitions */
@media (prefers-reduced-motion: no-preference) {
  .js body:not(#snack-x) .snack-carte [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js body:not(#snack-x) .snack-carte [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { body:not(#snack-x) .snack-carte * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

body:not(#snack-x) .snack-carte .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- animations des boutons ---------- */
body:not(#snack-x) .snack-carte .btn { position: relative; overflow: hidden; isolation: isolate; transition: background-color .2s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease; }
body:not(#snack-x) .snack-carte .btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%); transform: translateX(-120%); }
body:not(#snack-x) .snack-carte .btn svg { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
body:not(#snack-x) .snack-carte .ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); pointer-events: none; animation: ads-ripple .6s cubic-bezier(.22, 1, .36, 1) forwards; z-index: -1; }
@keyframes ads-ripple { to { transform: scale(1); opacity: 0; } }
@media (hover: hover) and (pointer: fine) {
  body:not(#snack-x) .snack-carte .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px -8px rgba(255, 209, 0, .55); }
  body:not(#snack-x) .snack-carte .btn--light:hover, body:not(#snack-x) .snack-carte .btn--outline:hover { box-shadow: 0 8px 22px -10px rgba(255, 255, 255, .35); }
  body:not(#snack-x) .snack-carte .btn:hover::before { transition: transform .7s cubic-bezier(.22, 1, .36, 1); transform: translateX(120%); }
  body:not(#snack-x) .snack-carte .btn:hover svg { transform: rotate(-12deg) scale(1.12); }
}
body:not(#snack-x) .snack-carte .btn:active { transform: scale(.95); transition-duration: .1s; box-shadow: none; }
@keyframes ads-wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 60% { transform: rotate(9deg); } }
@keyframes ads-pop { 0% { transform: scale(.88); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { body:not(#snack-x) .snack-carte .btn::before { display: none; } }

/* Description d'un produit saisie dans l'admin : paragraphes espacés. */
body:not(#snack-x) .snack-carte .p-main > p + p { margin-top: .6em; }
