/* Correctifs communs a toutes les pages, charges juste apres le bundle Webflow.
   Chaque regle est justifiee par une mesure, comme dans emd-comparatif.css.
   Theme clair uniquement : aucun bloc prefers-color-scheme ici. */

/* Parasite du bundle IM8 (ligne 7486) :
     @media (max-width: 479px) { .text-weight-semibold { order: -1; } }
   Pose sur une classe utilitaire de graisse, il fait remonter en tete de son conteneur
   flex tout texte en semi-gras. Mesure en 375 px le 24/09/2026, il deplacait des elements
   a 10 endroits de la home, et aucun de ces deplacements n'etait voulu :
   - lignes d'information des cartes : la valeur passait AU-DESSUS de son libelle
     (« Rano lub po poludniu / Pora dnia: ») ;
   - pays avant son drapeau, code promo avant son libelle, code avant l'icone de copie ;
   - badge « Wybor redakcji » : le texte passait devant le lys de gauche ;
   - cartes « Jak powstal ten ranking » : le titre remontait au-dessus de son icone ;
   - deuxieme badge du hero passe devant le premier.
   Le bundle contient deja un rustine locale pour une seule combinaison
   (.text-color-primary-2.text-weight-semibold { order: 0 }) : l'auteur du gabarit avait
   bute sur le meme probleme. On neutralise ici la regle entiere, meme specificite,
   chargee apres. La variante -4 (ligne 7916) n'est utilisee par aucune page mais subit
   le meme sort par precaution. */
@media screen and (max-width: 479px) {
  .text-weight-semibold,
  .text-weight-semibold-4 {
    order: 0;
  }
}

/* Bandeau de consentement cookies (CookieConsent.astro). Carte en bas a gauche sur ordinateur,
   pleine largeur sur mobile ; le bouton flottant « Kod rabatowy » est masque tant qu'il est ouvert
   sur mobile, pour ne pas se superposer. Sous la popup d'offre (z-index 10000). */
.kgr-consent {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  max-width: 26rem;
  padding: 1.25rem;
  background: #fff;
  color: #242424;
  border: 1px solid #eee9df;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  font-size: 0.875rem;
  line-height: 1.5;
}
.kgr-consent[hidden] { display: none; }
.kgr-consent_text { margin: 0 0 1rem; }
.kgr-consent_text a { color: #ef7a1a; text-decoration: underline; }
.kgr-consent_buttons { display: flex; gap: 0.75rem; }
.kgr-consent_btn {
  flex: 1 1 0;
  padding: 0.75rem 1rem;
  border-radius: 2rem;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.kgr-consent_btn.is-accept { background: #ef7a1a; color: #fff; border: 2px solid #ef7a1a; }
.kgr-consent_btn.is-accept:hover { background: #d96a10; border-color: #d96a10; }
.kgr-consent_btn.is-reject { background: #fff; color: #242424; border: 2px solid #242424; }
.kgr-consent_btn.is-reject:hover { background: #242424; color: #fff; }
.kgr-consent_btn:focus-visible { outline: 3px solid #ef7a1a; outline-offset: 2px; }
@media (max-width: 767px) {
  .kgr-consent { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; }
  body.kgr-consent-open .tb-bp-trigger { display: none !important; }
}

/* lmc-retrofit-v3 (2026-11-16) : barre d'achat collante, carte collante des articles et pilule cookies, copiés de
   templates/assets/emd-v3.css (gabarit v3). Rien d'autre du rendu ne change. */
/* ---------- boutons communs (code copiable, CTA plein) ---------- */
.lmc-code {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.25rem; padding: .5rem 1rem; width: 100%;
  background: #fff; color: #ef7a1a; border: 1px dashed #ef7a1a; border-radius: 6px;
  font: 600 .875rem/1.2 Archivo, sans-serif; cursor: pointer; transition: background .2s;
}
.lmc-code:hover { background: #fff6ee; }
.lmc-code.is-copied { background: #ef7a1a; color: #fff; border-style: solid; }
.lmc-code:focus-visible, .lmc-btn:focus-visible { outline: 3px solid #242424; outline-offset: 2px; }
.lmc-code_text { white-space: nowrap; }
.lmc-code.is-atc { font-size: .875rem; }
.lmc-code_icon { width: 1rem; height: 1rem; display: inline-flex; flex: none; }
.lmc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.25rem; padding: .5rem 1rem; width: 100%;
  background: #ef7a1a; color: #fff; border-radius: 6px; text-decoration: none;
  font: 500 .875rem/1.2 Archivo, sans-serif; transition: background .2s;
}
.lmc-btn:hover { background: #d96a10; color: #fff; }
.lmc-btn_arrow { width: 1.05rem; height: 1.05rem; display: inline-flex; flex: none; }
.lmc-tag { display: inline-block; padding: .1rem .3rem; background: #ef7a1a; color: #fff; border-radius: 2px; font-weight: 600; font-size: .8125rem; line-height: 1.3; }
.lmc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; }
.lmc-price_from { color: #242424; font-size: .875rem; }
.lmc-price_old { color: #242424; font-size: .875rem; text-decoration: line-through; }
.lmc-price_new { color: #ef7a1a; font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.lmc-note { margin: 0; color: #6b6b6b; font-size: .75rem; }

/* ---------- blocs d'article ---------- */

.lmc-side { height: 100%; }
.lmc-side_card {
  position: sticky; top: 6rem; display: flex; flex-direction: column; gap: .75rem;
  padding: 3.25rem 1.5rem 1.5rem; background: #fff; border-radius: 8px; box-shadow: 0 2px 14px rgba(0, 0, 0, .09);
}
.lmc-ribbon {
  position: absolute; top: .85rem; left: -.6rem; display: inline-flex; align-items: center; gap: .35rem;
  height: 1.6rem; padding: 0 .5rem 0 .7rem; background: #ef7a1a; color: #fff; font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
/* pointe à droite + repli sous le bord gauche de la carte (comme le ruban « En promo ! » LMC) */
.lmc-ribbon::before { content: ""; position: absolute; right: -.6rem; top: 0; border-top: .8rem solid #ef7a1a; border-bottom: .8rem solid #ef7a1a; border-right: .6rem solid transparent; }
.lmc-ribbon::after { content: ""; position: absolute; left: 0; bottom: -.45rem; border-top: .45rem solid #b4550c; border-left: .6rem solid transparent; }
.lmc-ribbon > span { width: .95rem; height: .95rem; display: inline-flex; }
.lmc-side_img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 1rem; background: #f4f2ec; border-radius: 8px; }
.lmc-side_img img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.lmc-side_name { font-size: 1.125rem; line-height: 1.3; }
.lmc-side_code { display: flex; align-items: center; gap: .35rem; font-size: .8125rem; }
.lmc-side_btns { display: flex; flex-direction: column; gap: .5rem; }

/* ---------- barre d'achat collante en bas (articles) ---------- */
.lmc-atc {
  position: fixed; left: 0; right: 0; bottom: .75rem; z-index: 55; padding: 0 1.5rem; pointer-events: none;
  visibility: hidden; opacity: 0; transform: translateY(120%); transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s;
}
.lmc-atc.is-on { visibility: visible; opacity: 1; transform: none; transition: transform .3s ease, opacity .3s ease; }
/* bandeau cookies ouvert : la barre reste visible, posée juste au-dessus de la pilule (Elias 12/11) ;
   --lmc-consent-h = hauteur occupée par la pilule depuis le bas de l'écran, mesurée par lmc_promo_js */
body.kgr-consent-open .lmc-atc { bottom: calc(var(--lmc-consent-h, 0px) + .5rem); }
.lmc-atc_bar {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 70rem; margin: 0 auto; padding: .6rem 1rem; background: #fff; border: 1px solid #ececec;
  border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}
.lmc-atc_prod { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.lmc-atc_img { width: 48px; height: 48px; flex: none; object-fit: contain; }
.lmc-atc_info { min-width: 0; }
.lmc-atc_name { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.lmc-atc .lmc-price { gap: .5rem; }
.lmc-atc .lmc-price_new { font-size: 1.125rem; }
.lmc-atc_actions { display: flex; align-items: center; gap: .6rem; flex: none; }
/* unité du prix (barre collante des comparateurs : « 0,45 € » + « /Portion ») */
.lmc-price_unit { margin-left: .1rem; font-size: .8125rem; font-weight: 500; color: #6b6b6b; white-space: nowrap; }
.lmc-atc .lmc-price_new { white-space: nowrap; }
.lmc-atc_badge { padding: .3rem .6rem; background: #ef7a1a; color: #fff; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.lmc-atc .lmc-code, .lmc-atc .lmc-btn { width: auto; white-space: nowrap; }
.lmc-atc .lmc-code { min-width: 5.75rem; }
body.lmc-atc-on { padding-bottom: calc(5.5rem + var(--lmc-consent-h, 0px)); }
/* bouton flottant « offre » du gabarit : masqué tant que la barre est affichée (même offre, évite le chevauchement) */
body.lmc-atc-on .tb-bp-trigger { display: none !important; }
@media (max-width: 767px) {
  .lmc-atc { bottom: .5rem; padding: 0 .375rem; }
  .lmc-atc_bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; padding: .75rem; border-radius: 12px; }
  .lmc-atc_prod { gap: .6rem; }
  .lmc-atc_img { width: 64px; height: 76px; }
  .lmc-atc_name { font-size: .9375rem; }
  .lmc-atc .lmc-price { flex-direction: column; align-items: flex-start; gap: 0; }
  .lmc-atc .lmc-price_unit { font-size: .75rem; }
  .lmc-atc_actions { flex-direction: column; align-items: stretch; gap: .5rem; }
  .lmc-atc_badge { display: none; }
  .lmc-atc .lmc-code, .lmc-atc .lmc-btn { width: 100%; padding: .5rem .5rem; font-size: .8125rem; }
  body.lmc-atc-on { padding-bottom: calc(8.5rem + var(--lmc-consent-h, 0px)); }
}

/* ---------- bandeau cookies « pill » (layout.consent_style = pill) : même balisage et même JS ---------- */
.kgr-consent.is-pill {
  left: 50%; right: auto; bottom: 1.25rem; transform: translateX(-50%);
  width: calc(100% - 2rem); max-width: 47.5rem; padding: .75rem .9rem .75rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  background: #0b0b0b; color: #fff; border: 0; border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
  font-size: .8125rem; line-height: 1.45;
}
.kgr-consent.is-pill[hidden] { display: none; }
.kgr-consent.is-pill .kgr-consent_text { margin: 0; flex: 1 1 auto; min-width: 0; color: #fff; font-size: .8125rem; line-height: 1.45; }
.kgr-consent.is-pill .kgr-consent_text a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.kgr-consent.is-pill .kgr-consent_buttons { flex: none; gap: .5rem; }
.kgr-consent.is-pill .kgr-consent_btn { flex: 0 0 auto; padding: .5rem .95rem; border-radius: 8px; font-size: .8125rem; font-weight: 600; line-height: 1.2; }
.kgr-consent.is-pill .kgr-consent_btn.is-reject { background: transparent; color: #fff; border: 1px solid #fff; }
.kgr-consent.is-pill .kgr-consent_btn.is-reject:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.kgr-consent.is-pill .kgr-consent_btn.is-accept { background: #fff; color: #0b0b0b; border: 1px solid #fff; }
.kgr-consent.is-pill .kgr-consent_btn.is-accept:hover { background: #e9e9e9; border-color: #e9e9e9; }
.kgr-consent.is-pill .kgr-consent_btn:focus-visible { outline: 2px solid #ef7a1a; outline-offset: 2px; }
@media (max-width: 767px) {
  .kgr-consent.is-pill { left: 6px; right: 6px; bottom: 6px; transform: none; width: auto; max-width: none;
    flex-direction: column; align-items: stretch; gap: .65rem; padding: .85rem; }
  .kgr-consent.is-pill .kgr-consent_buttons { display: flex; }
  .kgr-consent.is-pill .kgr-consent_btn { flex: 1 1 0; }
}


/* montant du code toujours visible à côté du code (Elias 11/11) ; seul data-code est copié */
.lmc-code_pct { margin-left: .05em; font-weight: 700; white-space: nowrap; }
.lmc-code_text { white-space: nowrap; }


.lmc-explore table { width: 100%; border-collapse: collapse; margin: .75rem 0 1.5rem; }
.lmc-explore th, .lmc-explore td { padding: .5rem .75rem; border-bottom: 1px solid #ececec; text-align: left; vertical-align: top; }
.lmc-explore th { font-weight: 600; }
.lmc-side_img { padding: 0; overflow: hidden; }
.lmc-side_img img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.lmc-atc_img { object-fit: cover; border-radius: 6px; }
/* /lmc-retrofit-v3 */

.kgr-ref-url,.gar-ref-url,.lmi-ref-url{overflow-wrap:anywhere;word-break:break-word}
