/* ============================================================
   LEMARCHAND.CI — THEME CSS v3
   Police  : Outfit (Google Fonts)
   Palette : Bleu ciel #38BDF8 / Blanc / Dark #0F172A
   Fix v3  : bouton panier visible au hover + z-index corrigé
   ============================================================ */

:root {
  --org:    #38BDF8;   /* bleu ciel principal  */
  --org2:   #0EA5E9;   /* bleu ciel foncé hover */
  --dark:   #0F172A;   /* quasi-noir bleuté     */
  --mid:    #334155;
  --muted:  #64748B;
  --border: #E2E8F0;
  --bg:     #F0F9FF;   /* fond très légèrement bleu */
  --white:  #fff;
  --font:   'Outfit', sans-serif;
  --r:      10px;
  --rlg:    14px;
}

/* ===== RESET & BASE ===== */
*,*::before,*::after { box-sizing: border-box; }
body {
  font-family: var(--font) !important;
  background: var(--bg) !important;
  color: var(--dark) !important;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font) !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
}
a { color: var(--org); text-decoration: none; transition: color .15s; }
a:hover { color: var(--org2); }

/* ===== CONTENEUR ===== */
.lm-w { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.site-content > .lm-w { padding-top: 0; }

/* ===== TOPBAR ===== */
.lm-topbar { background: var(--dark); font-size: 11px; }
.lm-topbar .lm-w {
  display: flex; align-items: center;
  justify-content: space-between; padding: 7px 0;
}
.lm-topbar-left,.lm-topbar-right { display: flex; align-items: center; gap: 10px; }
.lm-topbar a { color: rgba(255,255,255,.5); font-weight: 500; }
.lm-topbar a:hover { color: #fff; }
.lm-topbar span { color: rgba(255,255,255,.2); }
.lm-topbar-promo {
  background: var(--org); color: var(--dark);
  font-size: 10px; font-weight: 800;
  padding: 3px 10px; border-radius: 3px;
}

/* ===== ANNOUNCE BAR ===== */
.lm-announce {
  background: var(--org);
  padding: 9px 24px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: .04em;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--white) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 500 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.06) !important;
}
.lm-header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px; height: 70px;
  display: flex; align-items: center; gap: 20px;
}

/* Logo */
.lm-logo { text-decoration: none; display: flex; flex-direction: column; gap: 1px; flex-shrink: 0; }
.lm-logo img { height: 36px; width: auto; display: block; }
.lm-logo-name { font-size: 21px; font-weight: 900; color: var(--dark); letter-spacing: -.04em; line-height: 1; }
.lm-logo-name span { color: var(--org); }
.lm-logo-sub { font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Recherche */
.lm-search-wrap { flex: 1; max-width: 500px; min-width: 200px; position: relative; }
.lm-search-wrap form,
.lm-search-form {
  display: flex; height: 42px;
  border: 2px solid var(--border); border-radius: 8px;
  overflow: hidden; background: var(--white); transition: border-color .2s;
}
.lm-search-wrap form:focus-within,
.lm-search-form:focus-within { border-color: var(--org); }
.lm-search-wrap input[type="search"],
.lm-search-form input[type="search"] {
  flex: 1; border: none !important; outline: none !important;
  padding: 0 14px !important; font-size: 13px !important;
  background: transparent !important; min-width: 0;
}
.lm-search-wrap button,
.lm-search-form button {
  width: 45px; background: var(--org); border: none; color: var(--dark);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s; flex-shrink: 0;
}
.lm-search-wrap button:hover,
.lm-search-form button:hover { background: var(--org2); color: #fff; }
.lm-search-form button svg { width: 18px; height: 18px; }

/* Résultats recherche */
.lm-search-results {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; margin-top: 5px;
  box-shadow: 0 5px 20px rgba(0,0,0,.1);
  z-index: 1000; display: none;
  max-height: 400px; overflow-y: auto;
}
.lm-search-results.active { display: block; }

/* Header actions */
.lm-header-right,
.lm-header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto; }

.lm-hdr-icon,
.lm-action-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 10px; border-radius: 7px;
  color: var(--dark) !important; transition: background .15s;
  text-decoration: none; white-space: nowrap;
}
.lm-hdr-icon:hover,
.lm-action-btn:hover { background: var(--bg); }
.lm-hdr-icon span,
.lm-action-text { font-size: 10px; font-weight: 600; color: var(--mid); }

.lm-hdr-cart,
.lm-cart-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 16px; background: var(--dark);
  border-radius: 8px; color: #fff !important;
  position: relative; transition: background .15s; text-decoration: none;
}
.lm-hdr-cart:hover,
.lm-cart-btn:hover { background: var(--org) !important; color: var(--dark) !important; }

.lm-cart-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--org); color: var(--dark);
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 9px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--dark);
}
.lm-action-icon { position: relative; font-size: 18px; line-height: 1; }

/* ===== TRUST BAR ===== */
.lm-trust-bar {
  display: flex; background: #EFF6FF;
  border: 1px solid #BFDBFE; border-radius: var(--rlg);
  overflow: hidden; margin: 25px 0;
}
.lm-trust-item {
  flex: 1; display: flex; align-items: center;
  gap: 12px; padding: 15px 20px;
  border-right: 1px solid #BFDBFE;
}
.lm-trust-item:last-child { border-right: none; }
.dti {
  width: 36px; height: 36px; background: var(--org);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 18px; color: var(--dark);
}
.lm-trust-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--dark); }
.lm-trust-item span { display: block; font-size: 11px; color: var(--muted); }

/* Trust bar top */
.lm-trust-bar-top { background: var(--bg); border-bottom: 1px solid var(--border); }
.lm-trust-items { display: flex; justify-content: center; align-items: center; gap: 30px; padding: 10px 0; flex-wrap: wrap; }
.lm-trust-items span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--mid); }

/* ===== CATEGORY PILLS ===== */
.lm-cat-pills { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0 20px; scrollbar-width: none; }
.lm-cat-pills::-webkit-scrollbar { display: none; }
.lm-cat-pill {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 15px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--rlg); min-width: 100px;
  text-decoration: none; transition: all 0.2s;
}
.lm-cat-pill:hover { border-color: var(--org); background: #EFF6FF; }
.dcp-ico { font-size: 24px; }
.dcp-name { font-size: 12px; font-weight: 600; color: var(--dark); }
.dcp-count { font-size: 10px; color: var(--muted); }

/* ===== HERO SECTION ===== */
.lm-hero {
  display: grid; grid-template-columns: 3fr 2fr;
  background: var(--dark); min-height: 350px;
  border-radius: var(--rlg); overflow: hidden; margin-top: 20px;
}
.lm-hero-main {
  padding: 40px; display: flex; flex-direction: column;
  justify-content: center; color: white; position: relative; z-index: 1;
}
.lm-hero-main::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: var(--org); opacity: 0.12; border-radius: 50%; z-index: -1;
}
.lm-hero-tag {
  display: inline-block; background: rgba(56,189,248,0.2);
  color: var(--org); font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 30px; margin-bottom: 15px; width: fit-content;
}
.lm-hero-title { color: #fff !important; font-size: 42px !important; line-height: 1.1; margin-bottom: 20px; font-weight: 900 !important; }
.lm-hero-title em { color: var(--org); font-style: normal; }
.lm-hero-sub { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 25px; max-width: 450px; }
.lm-hero-ctas { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; justify-content: flex-start; }

/* Countdown */
.lm-countdown { display: flex; gap: 12px; justify-content: center; margin: 25px 0; }
.lm-countdown-item {
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.2);
  padding: 12px; border-radius: 8px;
  min-width: 70px; text-align: center;
}
.lm-countdown-item b { display: block; font-size: 24px; color: var(--org); line-height: 1; }
.lm-countdown-item span { font-size: 10px; text-transform: uppercase; color: #888; display: block; }

/* ===== BOUTONS ===== */
.lm-btn-org {
  background: var(--org) !important;
  color: var(--dark) !important;
  padding: 15px 35px !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none !important;
}
.lm-btn-org:hover {
  background: var(--org2) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}
.lm-btn-ghost {
  background: transparent; color: #fff !important;
  padding: 12px 28px; border-radius: 8px; font-weight: 600;
  display: inline-block; transition: background 0.2s;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.3);
}
.lm-btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* ===== SECTION HEADERS ===== */
.lm-sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.lm-sec-title { font-size: 22px; font-weight: 800; color: var(--dark); margin: 0; }
.lm-sec-link { color: var(--org); font-size: 13px; font-weight: 600; }
.lm-sec-link:hover { color: var(--org2); }
.lm-section { margin: 40px 0; }

/* ============================================================
   GRILLE PRODUITS WOOCOMMERCE
   ============================================================ */
.woocommerce ul.products,
.woocommerce-page ul.products,
.woocommerce-page .products,
.woocommerce .products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  margin: 30px 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after { content: none !important; display: none !important; }

/* ── CARTE PRODUIT ── */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products.columns-4 li.product,
.woocommerce-page ul.products.columns-4 li.product,
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last {
  width: 100% !important;
  margin: 0 !important;
  margin-right: 0 !important;
  clear: none !important;
  float: none !important;
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--rlg) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  transition: all 0.25s ease !important;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 35px rgba(14,165,233,.15) !important;
  border-color: #BAE6FD !important;
}

/* Image produit */
.woocommerce ul.products li.product a img {
  width: 100% !important; height: 200px !important;
  object-fit: contain !important; padding: 15px !important;
  background: #fff; margin: 0 !important;
  transition: transform 0.3s ease !important; display: block !important;
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.03) !important; }

/* Badge promo */
.woocommerce ul.products li.product .onsale {
  position: absolute !important; top: 10px !important; left: 10px !important;
  background: #EF4444 !important; color: #fff !important;
  font-size: 11px !important; font-weight: 800 !important;
  padding: 4px 10px !important; border-radius: 4px !important;
  z-index: 10 !important; margin: 0 !important; min-width: auto !important;
  min-height: auto !important; line-height: 1 !important; border: none !important;
  box-shadow: 0 2px 5px rgba(0,0,0,.1) !important;
}

/* Titre produit */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 12px 14px 5px !important; font-size: 14px !important;
  font-weight: 700 !important; color: var(--dark) !important;
  margin: 0 !important; line-height: 1.4 !important;
}

/* Prix */
.woocommerce ul.products li.product .price {
  padding: 0 14px 12px !important; margin: 0 !important;
  display: flex !important; align-items: center !important;
  gap: 8px !important; flex-wrap: wrap !important;
}
.woocommerce ul.products li.product .price ins {
  text-decoration: none !important; color: var(--org2) !important;
  font-size: 18px !important; font-weight: 900 !important;
}
.woocommerce ul.products li.product .price del { color: #999 !important; font-size: 13px !important; opacity: 0.7 !important; }

/* ──────────────────────────────────────────────────────────
   BOUTON AJOUTER AU PANIER — TOUJOURS VISIBLE
   Clé du fix : on retire le positionnement absolu/hover
   Le bouton reste dans le flux normal de la carte.
   L'overlay .lm-pc-hover s'affiche AU-DESSUS mais le bouton
   reste accessible car il est SOUS l'overlay dans le DOM.
   On pousse l'overlay vers le haut (bottom partiel) pour ne
   pas couvrir le bouton.
────────────────────────────────────────────────────────── */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
  margin: auto 14px 14px 14px !important;
  background: var(--dark) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  text-align: center !important;
  padding: 10px 12px !important;
  width: calc(100% - 28px) !important;
  border: none !important;
  transition: background 0.2s !important;
  font-size: 13px !important;
  display: block !important;
  position: relative !important;
  z-index: 15 !important;   /* au-dessus de l'overlay */
  cursor: pointer !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
  background: var(--org) !important;
  color: var(--dark) !important;
}

/* ============================================================
   OVERLAY HOVER PRODUIT
   Fix : l'overlay couvre image + titre + prix SEULEMENT
   (pas le bouton). On utilise bottom: 52px pour laisser la
   place au bouton qui est dans le flux normal.
   ============================================================ */

/* ── BASE ── */
.lm-pc-hover {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ── DESKTOP (≥769px) ── */
@media (min-width: 769px) {
  .lm-pc-hover {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    /* S'arrête AVANT le bouton panier (≈52px de hauteur bouton + marges) */
    bottom: 52px;
    background: linear-gradient(
      to top,
      rgba(14,165,233,0.88) 0%,
      rgba(14,165,233,0.45) 55%,
      transparent 100%
    );
    padding: 12px 14px 14px;
    transform: translateY(6px);
    z-index: 5;   /* SOUS le bouton (z-index: 15) */
    border-radius: var(--rlg) var(--rlg) 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  /* Apparition */
  .woocommerce ul.products li.product:hover .lm-pc-hover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: none; /* ne bloque JAMAIS les clics */
  }

  /* Description */
  .lm-pc-hover .lm-pc-desc {
    display: block;
    color: rgba(255,255,255,0.92);
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 6px;
  }

  /* Tags sur fond bleu : blanc semi-transparent */
  .lm-pc-hover .lm-ptag {
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    backdrop-filter: blur(4px);
  }
}

/* ── MOBILE (≤768px) ── */
@media (max-width: 768px) {
  .lm-pc-hover {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    background: transparent !important;
    padding: 4px 10px 8px !important;
    z-index: auto !important;
    border-radius: 0 !important;
    transition: none !important;
  }
  .lm-pc-hover .lm-pc-desc { display: none !important; }
  .lm-pc-hover .lm-pc-tags { display: flex !important; flex-wrap: wrap !important; gap: 3px !important; }
  .lm-pc-hover .lm-ptag { background: revert !important; color: revert !important; backdrop-filter: none !important; font-size: 9px !important; padding: 2px 6px !important; }
  .lm-pc-hover .lm-ptag.lm-pt-new      { background: #E8F5E9 !important; color: #2E7D32 !important; }
  .lm-pc-hover .lm-ptag.lm-pt-sale     { background: #EFF6FF !important; color: #0EA5E9 !important; }
  .lm-pc-hover .lm-ptag.lm-pt-limited  { background: #FFF3E0 !important; color: #F57C00 !important; }
  .lm-pc-hover .lm-ptag.lm-pt-instock  { background: #E8F5E9 !important; color: #2E7D32 !important; }
  .lm-pc-hover .lm-ptag.lm-pt-outstock { background: #FFEBEE !important; color: #C62828 !important; }
  .lm-pc-hover .lm-ptag.lm-pt-sales    { background: #EFF6FF !important; color: #1D4ED8 !important; }
  .lm-pc-hover .lm-ptag.lm-pt-rating   { background: #FFF8E1 !important; color: #FFA000 !important; }
  .lm-pc-hover .lm-ptag.lm-pt-shipping { background: #E0F2F1 !important; color: #00695C !important; }
  .lm-pc-hover .lm-ptag.lm-pt-warranty { background: #EFF6FF !important; color: #1D4ED8 !important; }
  .lm-pc-hover .lm-ptag.lm-pt-colors   { background: #F3E5F5 !important; color: #7B1FA2 !important; }
  .lm-pc-hover .lm-ptag.lm-pt-stock    { background: #EFF6FF !important; color: #0369A1 !important; }
}

/* ── BOUTON PANIER FLOTTANT (lm-add-cart-hover) — SUPPRIMÉ ──
   On n'utilise plus ce pattern. Le bouton natif WooCommerce
   reste dans le flux et est toujours cliquable.
   Le bloc ci-dessous est conservé uniquement pour neutraliser
   d'éventuelles instances déjà dans le DOM.
── */
.lm-add-cart-hover { display: none !important; }

/* ── WISHLIST YITH ── */
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist,
.woocommerce ul.products li.product .yith-wcwl-add-button,
.woocommerce ul.products li.product .yith_add_to_wishlist {
  position: absolute !important;
  top: 10px !important; right: 10px !important;
  z-index: 20 !important;
  opacity: 0 !important; transition: opacity 0.25s ease !important;
  pointer-events: none !important;
}
.woocommerce ul.products li.product:hover .yith-wcwl-add-to-wishlist,
.woocommerce ul.products li.product:hover .yith-wcwl-add-button,
.woocommerce ul.products li.product:hover .yith_add_to_wishlist {
  opacity: 1 !important; pointer-events: auto !important;
}
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist a,
.woocommerce ul.products li.product .yith_add_to_wishlist {
  width: 34px !important; height: 34px !important;
  background: var(--white) !important; border-radius: 50% !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.15) !important;
  color: var(--dark) !important; font-size: 14px !important;
  border: none !important; transition: all 0.2s !important;
}
.woocommerce ul.products li.product:hover .yith-wcwl-add-to-wishlist a:hover,
.woocommerce ul.products li.product:hover .yith_add_to_wishlist:hover {
  background: var(--org) !important; color: var(--dark) !important;
}
@media (max-width: 768px) {
  .woocommerce ul.products li.product .yith-wcwl-add-to-wishlist,
  .woocommerce ul.products li.product .yith-wcwl-add-button,
  .woocommerce ul.products li.product .yith_add_to_wishlist {
    opacity: 1 !important; pointer-events: auto !important;
  }
}

/* ── TAGS PRODUITS ── */
.lm-pc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lm-ptag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  margin-bottom: 4px; margin-right: 2px;
}
.lm-pt-new      { background: #DCFCE7; color: #166534; }
.lm-pt-sale     { background: #DBEAFE; color: #1D4ED8; }
.lm-pt-limited  { background: #FEF3C7; color: #92400E; }
.lm-pt-instock  { background: #DCFCE7; color: #166534; }
.lm-pt-outstock { background: #FEE2E2; color: #991B1B; }
.lm-pt-sales    { background: #DBEAFE; color: #1E40AF; }
.lm-pt-rating   { background: #FEF9C3; color: #854D0E; }
.lm-pt-shipping { background: #CCFBF1; color: #065F46; }
.lm-pt-warranty { background: #EDE9FE; color: #5B21B6; }
.lm-pt-colors   { background: #F0FDF4; color: #166534; }
.lm-pt-stock    { background: #DBEAFE; color: #1D4ED8; }

.lm-pc-desc { font-size: 11px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.lm-pc-body { display: flex; flex-direction: column; }

/* ===== BANNIÈRE PROMO ===== */
html body .lm-promo-banner {
  background: linear-gradient(135deg, #0F172A 0%, #0C2340 100%) !important;
  border-radius: 14px !important;
  padding: 60px 30px !important;
  margin: 40px auto !important;
  max-width: 1232px !important;
  text-align: center !important;
  border: 1px solid rgba(56,189,248,0.3) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  position: relative !important;
  clear: both !important;
}
html body .lm-promo-banner h2 {
  color: #ffffff !important;
  font-size: clamp(24px, 5vw, 42px) !important;
  font-weight: 900 !important;
  margin: 15px 0 !important;
  line-height: 1.1 !important;
}
html body .lm-promo-banner p {
  color: rgba(255,255,255,0.7) !important;
  font-size: 16px !important;
  margin-bottom: 30px !important;
}
html body .lm-countdown {
  display: flex !important; gap: 12px !important;
  justify-content: center !important; margin: 25px 0 !important;
}
html body .lm-countdown-item {
  background: rgba(56,189,248,0.1) !important;
  border: 1px solid rgba(56,189,248,0.25) !important;
  padding: 12px !important; border-radius: 10px !important;
  min-width: 75px !important; text-align: center !important;
}
html body .lm-countdown-item b {
  display: block !important; font-size: 26px !important;
  color: var(--org) !important; line-height: 1 !important;
}
html body .lm-countdown-item span {
  font-size: 9px !important; text-transform: uppercase !important;
  color: #aaa !important; display: block !important;
}

/* ===== PAGINATION ===== */
.woocommerce nav.woocommerce-pagination { margin-top: 30px; clear: both; }
.woocommerce nav.woocommerce-pagination ul { border: none; }
.woocommerce nav.woocommerce-pagination ul li { border: none; margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  padding: 8px 15px; border-radius: 6px;
  border: 1px solid var(--border) !important;
  background: var(--white); color: var(--dark); font-weight: 600;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--org) !important;
  color: var(--dark) !important;
  border-color: var(--org) !important;
}

/* ===== ÉLÉMENTS MASQUÉS ===== */
.woocommerce ul.products li.product a.yith-wcqv-button,
.site-header-cart .cart-contents { display: none !important; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark) !important; color: #94A3B8 !important;
  padding: 50px 0 20px !important; margin-top: 50px;
}
.lm-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 40px; }
.lm-footer-logo { font-size: 24px; font-weight: 900; color: #fff !important; text-decoration: none; display: inline-block; margin-bottom: 15px; }
.lm-footer-logo span { color: var(--org); }
.lm-footer-tagline { font-size: 12px; color: #64748B; margin-bottom: 20px; }
.lm-footer-contact { font-size: 12px; line-height: 1.8; }
.lm-footer-contact a { color: #94A3B8 !important; }
.lm-footer-contact a:hover { color: #fff !important; }
.lm-footer-col-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.lm-footer-links { display: flex; flex-direction: column; gap: 10px; }
.lm-footer-links a { color: #94A3B8 !important; font-size: 13px; text-decoration: none; transition: color 0.2s; }
.lm-footer-links a:hover { color: #fff !important; }
.lm-footer-payments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.lm-footer-payments span { background: rgba(56,189,248,0.1); padding: 5px 12px; border-radius: 30px; font-size: 12px; color: #94A3B8; border: 1px solid rgba(56,189,248,0.2); }
.lm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 15px; font-size: 12px; color: #64748B;
}
.lm-footer-legal { display: flex; gap: 20px; }
.lm-footer-legal a { color: #64748B !important; text-decoration: none; transition: color 0.2s; }
.lm-footer-legal a:hover { color: #CBD5E1 !important; }

/* ===== BACK TO TOP ===== */
.lm-back-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 45px; height: 45px; background: var(--dark);
  color: #fff; border: none; border-radius: 8px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999;
  border: 1px solid rgba(56,189,248,0.3);
}
.lm-back-top.visible { opacity: 1; visibility: visible; }
.lm-back-top:hover { background: var(--org); color: var(--dark); transform: translateY(-3px); }

/* ===== UTILITAIRES ===== */
.lm-flex { display: flex; }
.lm-justify-between { justify-content: space-between; }
.lm-align-center { align-items: center; }
.lm-justify-center { justify-content: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── TABLETTE LARGE (≤1024px) ── */
@media (max-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce .products,
  .woocommerce-page .products { grid-template-columns: repeat(3, 1fr) !important; }
  .lm-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── TABLETTE (≤992px) ── */
@media (max-width: 992px) {
  .lm-header-inner { padding: 0 15px; gap: 15px; }
  .lm-search-wrap { max-width: 350px; }
  .lm-action-text { display: none; }
  .lm-action-btn { padding: 8px; }
  .lm-cart-btn { padding: 8px 12px; }
  .lm-trust-bar { flex-wrap: wrap; }
  .lm-trust-item { flex: 0 0 50%; border-bottom: 1px solid #BFDBFE; }
  .lm-trust-item:nth-child(2) { border-right: none; }
  .lm-trust-items { flex-wrap: wrap; gap: 15px; }
  .lm-trust-items span { font-size: 12px; }
}

/* ── MOBILE (≤768px) ── */
@media (max-width: 768px) {
  .lm-header-inner { height: auto; flex-wrap: wrap; padding: 10px 15px !important; gap: 10px; }
  .lm-logo { order: 1; width: auto; }
  .lm-header-right, .lm-header-actions { order: 2; margin-left: auto; }
  .lm-search-wrap { order: 3; flex: 0 0 100%; max-width: 100%; }
  .lm-action-btn { padding: 6px; }
  .lm-cart-btn { padding: 6px 10px; }
  .lm-action-icon { font-size: 20px; }

  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce .products,
  .woocommerce-page .products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .woocommerce ul.products li.product a img { height: 150px !important; }

  .lm-hero { grid-template-columns: 1fr; min-height: auto; }
  .lm-hero-main { padding: 30px; }
  .lm-hero-title { font-size: 32px !important; }
  .lm-hero-cards { display: none; }

  .lm-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .lm-trust-item { flex: 0 0 100%; border-right: none; border-bottom: 1px solid #BFDBFE; }
  .lm-trust-item:last-child { border-bottom: none; }
  html body .lm-promo-banner { padding: 40px 20px !important; }
}

/* ── PETIT MOBILE (≤480px) ── */
@media (max-width: 480px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .woocommerce .products,
  .woocommerce-page .products { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .woocommerce ul.products li.product a img { height: 120px !important; }
  .lm-hero-title { font-size: 26px !important; }
  .lm-hero-main { padding: 25px; }
  .lm-btn-org, .lm-btn-ghost { width: 100%; text-align: center; display: block; }
  .lm-hero-ctas { flex-direction: column; gap: 10px; }
  .lm-header-actions { gap: 5px; }
  .lm-action-btn { padding: 5px; }
  .lm-cart-btn { padding: 5px 8px; }
  .lm-action-icon { font-size: 18px; }
  .lm-cart-badge { width: 16px; height: 16px; font-size: 9px; top: -6px; right: -6px; border-width: 1.5px; }
  .lm-footer-bottom { flex-direction: column; text-align: center; }
  .lm-footer-legal { justify-content: center; }
  html body .lm-countdown { gap: 8px !important; }
  html body .lm-countdown-item { min-width: 60px !important; padding: 8px !important; }
  html body .lm-countdown-item b { font-size: 20px !important; }
}
/* Badge coloré avant le titre */
.lm-cat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 16px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Badge offre après le titre */
.lm-badge-offer {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 12px;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .lm-cat-badge {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .lm-badge-offer {
        font-size: 10px;
        padding: 3px 8px;
        margin-left: 8px;
    }
}