/* ─────────────────────────────────────────────
   MG Catalog & Product — CSS Front-end v1.1
   Fix : images homogènes, sans filtres
───────────────────────────────────────────── */
:root{
  --mg-gold:#D4AF37;
  --mg-blue:#B7D7E8;
  --mg-black:#111111;
  --mg-cream:#F8F8F6;
  --mg-yellow:#DFFF00;
  --mg-grey:#D9D9D9;
  --mg-text:#3d3d3d;
}
.mg-shop-page *,
.mg-product-detail *{ box-sizing:border-box; }

/* ══ KICKER ══ */
.mg-kicker{
  display:inline-block; margin-bottom:18px;
  color:var(--mg-gold); font-size:13px; font-weight:900;
  letter-spacing:.18em; text-transform:uppercase;
}

/* ════════════════════════════════════════
   CATALOGUE
════════════════════════════════════════ */
.mg-shop-page{
  font-family:Inter,Arial,sans-serif;
  color:var(--mg-black); background:var(--mg-cream); overflow:hidden;
}

/* ── HERO ── */
.mg-shop-hero{
  min-height:78vh; display:flex; align-items:center; padding:110px 6%;
  background:
    linear-gradient(90deg,rgba(17,17,17,.86),rgba(17,17,17,.48),rgba(17,17,17,.1)),
    var(--hero-bg,url('')) center right/cover no-repeat;
  background-color:var(--mg-black);
}
.mg-shop-hero-content{ max-width:850px; color:#fff; }
.mg-shop-hero h1{
  margin:0 0 26px; font-size:clamp(42px,7vw,92px);
  line-height:.92; letter-spacing:-.07em; font-weight:950;
}
.mg-shop-hero p{ max-width:690px; font-size:20px; line-height:1.7; margin:0 0 34px; color:rgba(255,255,255,.78); }

/* ── BOUTONS ── */
.mg-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.mg-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:15px 30px; border-radius:999px; font-size:14px; font-weight:900;
  text-decoration:none; transition:.25s ease;
}
.mg-btn:hover{ transform:translateY(-3px); }
.mg-btn-gold{ background:var(--mg-gold); color:var(--mg-black)!important; }
.mg-btn-dark{ background:var(--mg-black); color:#fff!important; }
.mg-btn-outline{ color:#fff!important; box-shadow:inset 0 0 0 1px rgba(255,255,255,.35); }
.mg-btn-soft{ background:#fff; color:var(--mg-black)!important; }

/* ── PACK ── */
.mg-feature-pack{
  margin:100px 6% 120px; padding:90px; border-radius:48px;
  background:#fff; display:grid; grid-template-columns:1.05fr .95fr;
  gap:80px; align-items:center; box-shadow:0 35px 100px rgba(0,0,0,.05);
}
.mg-feature-text h2{
  font-size:clamp(36px,5vw,72px); line-height:.92;
  letter-spacing:-.07em; font-weight:950; margin:0 0 26px;
}
.mg-feature-text p{ font-size:20px; line-height:1.7; color:var(--mg-text); margin:0 0 34px; }
.mg-feature-list{ display:grid; gap:16px; margin:36px 0; }
.mg-feature-list div{ padding:22px; border-radius:24px; background:var(--mg-cream); }
.mg-feature-list strong{ display:block; margin-bottom:6px; font-size:18px; }
.mg-feature-list span{ color:#555; }
.mg-feature-image img{
  width:100%; height:520px; object-fit:cover;
  border-radius:38px; display:block; box-shadow:0 35px 90px rgba(0,0,0,.15);
}
.mg-pack-cart .button{
  display:inline-flex!important; align-items:center; justify-content:center;
  padding:15px 30px!important; border-radius:999px!important;
  background:var(--mg-black)!important; color:#fff!important;
  font-size:14px!important; font-weight:900!important;
  text-decoration:none; border:none; cursor:pointer; transition:.25s ease;
}
.mg-pack-cart .button:hover{ background:var(--mg-gold)!important; color:var(--mg-black)!important; }

/* ── PRODUITS ── */
.mg-products-section{ padding:120px 6%; background:#fff; }
.mg-section-head{ max-width:920px; margin-bottom:60px; }
.mg-section-head h2{
  font-size:clamp(36px,5vw,72px); line-height:.92;
  letter-spacing:-.07em; font-weight:950; margin:0 0 26px;
}
.mg-section-head p{ font-size:20px; line-height:1.7; color:var(--mg-text); }

/* GRILLE — 3 colonnes, cartes homogènes */
.mg-products-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  align-items:stretch;         /* toutes les cartes même hauteur dans la ligne */
}

.mg-product-card{
  position:relative; border-radius:38px; overflow:hidden;
  background:var(--mg-cream); transition:.3s ease;
  display:flex; flex-direction:column;  /* permet au contenu de grandir */
}
.mg-product-card:hover{ transform:translateY(-8px); box-shadow:0 30px 80px rgba(0,0,0,.08); }

/* ── IMAGE HOMOGÈNE : ratio fixe 4/3 ── */
.mg-card-img-link{ display:block; }
.mg-card-img-wrap{
  position:relative;
  width:100%;
  padding-top:75%;          /* ratio 4:3 — toutes les images ont la même hauteur */
  overflow:hidden;
  background:var(--mg-grey);
}
.mg-card-img-wrap img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;         /* recadrage centré, aucune déformation */
  object-position:center;
  display:block;
  transition:transform .4s ease;
}
.mg-product-card:hover .mg-card-img-wrap img{ transform:scale(1.04); }

.mg-badge{
  position:absolute; top:18px; left:18px; z-index:2;
  padding:9px 14px; border-radius:999px;
  background:var(--mg-black); color:#fff;
  font-size:12px; font-weight:900; letter-spacing:.08em;
}
.mg-badge.blue{ background:var(--mg-blue); color:var(--mg-black); }
.mg-badge.yellow{ background:var(--mg-yellow); color:var(--mg-black); }
.mg-badge.green{ background:#dff5e8; color:var(--mg-black); }
.mg-badge.gold{ background:var(--mg-gold); color:var(--mg-black); }

.mg-product-info{
  padding:28px 28px 24px;
  display:flex; flex-direction:column; flex:1; /* grandit pour aligner les boutons */
}
.mg-product-type{ color:var(--mg-gold); font-size:12px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.mg-product-info h3{ margin:12px 0 10px; font-size:22px; line-height:1.15; letter-spacing:-.03em; font-weight:900; }
.mg-product-info h3 a{ color:inherit; text-decoration:none; }
.mg-product-info > p{ color:#555; line-height:1.6; margin-bottom:14px; font-size:15px; }
.mg-card-rating{ margin-bottom:12px; font-size:13px; }
.mg-stars{ color:var(--mg-gold); font-weight:900; }
.mg-rating-count{ color:#888; margin-left:3px; }

/* Prix — aligne en bas de la carte */
.mg-product-bottom{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-top:auto; padding-top:16px;
}
.mg-card-price{ display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.mg-price-old{
  font-size:15px; font-weight:700;
  color:#aaa; text-decoration:line-through;
}
.mg-price-sale{
  font-size:20px; font-weight:950; color:var(--mg-black);
}
.mg-price-regular .price,
.mg-price-regular,
.mg-price-regular .woocommerce-Price-amount{
  font-size:20px; font-weight:950; color:var(--mg-black)!important;
  text-decoration:none!important;
}
.mg-product-btn{
  flex-shrink:0;
  padding:11px 18px; border-radius:999px;
  background:var(--mg-black); color:#fff!important;
  text-decoration:none; font-weight:900; font-size:13px; white-space:nowrap;
  transition:.2s;
}
.mg-product-btn:hover{ background:var(--mg-gold); color:var(--mg-black)!important; }

/* ── GUIDE ── */
.mg-guide{ padding:100px 6%; display:grid; grid-template-columns:repeat(3,1fr); gap:28px; background:var(--mg-cream); }
.mg-guide-card{ padding:48px; border-radius:36px; background:#fff; }
.mg-guide-card span{ color:var(--mg-gold); font-weight:900; font-size:13px; }
.mg-guide-card h3{ margin:22px 0 12px; font-size:34px; letter-spacing:-.045em; font-weight:900; }
.mg-guide-card p{ color:#555; line-height:1.6; }

/* ── POURQUOI ── */
.mg-benefits{ padding:140px 6%; background:var(--mg-black); color:#fff; }
.mg-benefits div{ max-width:900px; }
.mg-benefits h2{ font-size:clamp(36px,5vw,72px); line-height:.92; letter-spacing:-.07em; font-weight:950; margin:0 0 26px; }
.mg-benefits p{ font-size:20px; line-height:1.7; color:rgba(255,255,255,.72); }

/* ── FAQ CATALOGUE ── */
.mg-faq{ padding:120px 6%; background:#fff; }
.mg-faq-list{ max-width:980px; display:grid; gap:16px; }
.mg-faq details{ padding:26px 30px; border-radius:24px; background:var(--mg-cream); }
.mg-faq summary{ cursor:pointer; font-size:18px; font-weight:900; list-style:none; }
.mg-faq summary::-webkit-details-marker{ display:none; }
.mg-faq details p{ color:#555; line-height:1.7; margin:18px 0 0; }

/* ── CTA FINAL CATALOGUE ── */
.mg-final-cta{ padding:140px 6%; text-align:center; background:#fff; }
.mg-final-cta h2{ font-size:clamp(36px,5vw,72px); line-height:.92; letter-spacing:-.07em; font-weight:950; margin:0 0 26px; }
.mg-final-cta .mg-btn{ margin-top:10px; }

/* ── ANIMATIONS ── */
.mg-reveal,.mg-reveal-left,.mg-reveal-right{ opacity:0; transition:opacity .95s ease,transform .95s ease; }
.mg-reveal{ transform:translateY(70px); }
.mg-reveal-left{ transform:translateX(-80px); }
.mg-reveal-right{ transform:translateX(80px); }
.mg-reveal.is-visible,.mg-reveal-left.is-visible,.mg-reveal-right.is-visible{ opacity:1; transform:translate(0,0); }


/* ════════════════════════════════════════
   PAGE DÉTAIL PRODUIT
════════════════════════════════════════ */
.mg-product-detail{
  font-family:Inter,Arial,sans-serif;
  background:var(--mg-cream); color:var(--mg-black); overflow:hidden;
}

/* ── HERO PRODUIT ── */
.mg-product-hero{
  padding:90px 6%; display:grid; grid-template-columns:1.05fr .95fr;
  gap:70px; align-items:start; background:#fff;
}
.mg-product-gallery{ display:grid; gap:18px; }
.mg-main-image{ border-radius:42px; overflow:hidden; background:var(--mg-cream); }
.mg-main-image img{ width:100%; height:580px; object-fit:cover; display:block; transition:.4s ease; }
.mg-thumbs{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.mg-thumbs img{
  width:100%; height:120px; object-fit:cover; border-radius:18px;
  cursor:pointer; opacity:.55; transition:opacity .2s,transform .2s;
  border:3px solid transparent;
}
.mg-thumbs img:hover{ opacity:.85; }
.mg-thumbs img.active{ opacity:1; border-color:var(--mg-gold); }
.mg-product-info{ padding:40px; }
.mg-product-info h1{
  margin:0 0 18px; font-size:clamp(30px,3.8vw,58px);
  line-height:.95; letter-spacing:-.06em; font-weight:950;
}
.mg-subtitle{ font-size:18px; line-height:1.7; color:var(--mg-text); margin-bottom:22px; }
.mg-rating{ color:var(--mg-gold); font-weight:900; margin-bottom:22px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.mg-rating span{ color:#555; font-weight:700; font-size:14px; }
.mg-stars-big{ font-size:22px; color:var(--mg-gold); }
.mg-price .price,.mg-price .woocommerce-Price-amount{ font-size:32px; font-weight:950; color:var(--mg-black)!important; }
.mg-price{ margin-bottom:26px; }
.mg-product-highlights{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:28px; }
.mg-product-highlights div{ padding:14px 16px; border-radius:16px; background:var(--mg-cream); font-weight:800; font-size:13px; }

/* Panier WooCommerce */
.mg-wc-cart-wrap .cart{ margin:0!important; }
.mg-wc-cart-wrap .quantity{ margin-bottom:12px!important; }
.mg-wc-cart-wrap .qty{ width:80px; padding:10px; border:1px solid #ddd; border-radius:12px; font-size:16px; font-weight:700; }
.mg-wc-cart-wrap .single_add_to_cart_button,
.mg-wc-cart-wrap .button{
  display:block!important; width:100%!important; padding:18px 32px!important;
  border-radius:999px!important; background:var(--mg-black)!important; color:#fff!important;
  font-size:15px!important; font-weight:950!important; text-align:center!important;
  border:none!important; cursor:pointer!important; transition:.25s ease!important;
}
.mg-wc-cart-wrap .single_add_to_cart_button:hover,.mg-wc-cart-wrap .button:hover{
  background:var(--mg-gold)!important; color:var(--mg-black)!important; transform:translateY(-3px)!important;
}
.mg-cart-center .cart{ max-width:360px; margin:25px auto 0!important; }
.mg-microcopy{ text-align:center; color:#666; font-size:14px; margin:16px 0 28px; }
.mg-trust-box{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.mg-trust-box div{ padding:18px; border-radius:20px; background:var(--mg-cream); }
.mg-trust-box strong{ display:block; margin-bottom:5px; font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.mg-trust-box span{ color:#555; font-size:14px; }

/* ── PROMESSE ── */
.mg-promise{ padding:100px 6%; text-align:center; max-width:1050px; margin:0 auto; }
.mg-promise h2{ font-size:clamp(34px,5vw,68px); line-height:.92; letter-spacing:-.065em; font-weight:950; margin:0 0 24px; }
.mg-promise-text{ font-size:18px; line-height:1.75; color:var(--mg-text); max-width:800px; margin:0 auto; }
.mg-promise-text p{ margin-bottom:16px; }

/* ── BÉNÉFICES PRODUIT ── */
.mg-benefits-prod{ padding:100px 6%; display:grid; grid-template-columns:repeat(3,1fr); gap:28px; background:var(--mg-black); color:#fff; }
.mg-benefits-prod>div{ padding:44px; border-radius:34px; background:rgba(255,255,255,.07); }
.mg-benefits-prod span{ color:var(--mg-gold); font-weight:900; font-size:13px; }
.mg-benefits-prod h3{ margin:22px 0 12px; font-size:30px; letter-spacing:-.045em; font-weight:900; }
.mg-benefits-prod p{ color:rgba(255,255,255,.72); line-height:1.65; }

/* ── SPLIT ── */
.mg-split{ padding:120px 6%; display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; background:#fff; }
.mg-split h2{ font-size:clamp(30px,4vw,60px); line-height:.95; letter-spacing:-.06em; font-weight:950; margin:0 0 22px; }
.mg-split p{ font-size:18px; line-height:1.7; color:var(--mg-text); }
.mg-split ul{ list-style:none; padding:0; margin:24px 0 0; display:grid; gap:10px; }
.mg-split li{ padding:14px 16px; border-radius:16px; background:var(--mg-cream); font-weight:800; font-size:14px; }
.mg-split-image img{ width:100%; height:520px; object-fit:cover; border-radius:36px; display:block; }

/* ── ZONES ── */
.mg-zones{ padding:110px 6%; text-align:center; }
.mg-zones h2{ font-size:clamp(30px,4vw,60px); line-height:.95; letter-spacing:-.06em; font-weight:950; margin:0 0 22px; }
.mg-zone-grid{ margin-top:44px; display:grid; grid-template-columns:repeat(6,1fr); gap:14px; }
.mg-zone-grid div{ padding:22px 14px; border-radius:999px; background:#fff; font-weight:900; font-size:14px; box-shadow:0 16px 44px rgba(0,0,0,.04); }

/* ── CARACTÉRISTIQUES ── */
.mg-details{ padding:110px 6%; background:#fff; display:grid; grid-template-columns:.85fr 1.15fr; gap:70px; }
.mg-details h2{ font-size:clamp(30px,4vw,60px); line-height:.95; letter-spacing:-.06em; font-weight:950; margin:0 0 22px; }
.mg-detail-list{ display:grid; gap:14px; }
.mg-detail-list>div{ padding:22px 24px; border-radius:20px; background:var(--mg-cream); display:flex; justify-content:space-between; align-items:baseline; gap:16px; flex-wrap:wrap; }
.mg-detail-list strong{ font-size:15px; font-weight:900; min-width:120px; }
.mg-detail-list span{ color:#555; text-align:right; }

/* ── AVIS ── */
.mg-reviews{ padding:110px 6%; }
.mg-reviews h2{ font-size:clamp(30px,4vw,60px); line-height:.95; letter-spacing:-.06em; font-weight:950; margin:0 0 20px; }
.mg-reviews-summary{ display:flex; align-items:center; gap:14px; margin-bottom:48px; padding:24px 28px; background:#fff; border-radius:24px; display:inline-flex; }
.mg-reviews-summary strong{ font-size:26px; font-weight:950; }
.mg-review-total{ color:#888; font-size:15px; }
.mg-review-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.mg-review-card{ padding:28px; border-radius:24px; background:#fff; }
.mg-review-header{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.mg-review-header .mg-stars{ color:var(--mg-gold); font-size:16px; }
.mg-review-author{ font-weight:900; font-size:14px; }
.mg-review-date{ color:#bbb; font-size:12px; margin-left:auto; }
.mg-review-card p{ color:#444; line-height:1.65; font-size:15px; }
.mg-no-reviews{ color:#888; font-style:italic; }
.mg-review-form-wrap{ margin-top:56px; max-width:680px; }
.mg-review-form-wrap h3{ font-size:22px; font-weight:900; margin-bottom:20px; }
.mg-review-form-wrap #review_form_wrapper{ background:#fff; padding:32px; border-radius:24px; }
.mg-review-submit-btn{
  padding:14px 32px!important; border-radius:999px!important;
  background:var(--mg-black)!important; color:#fff!important;
  font-weight:900!important; font-size:14px!important;
  border:none!important; cursor:pointer; transition:.2s!important;
}
.mg-review-submit-btn:hover{ background:var(--mg-gold)!important; color:var(--mg-black)!important; }

/* ── FAQ PRODUIT ── */
.mg-faq-prod{ padding:110px 6%; background:#fff; }
.mg-faq-prod h2{ font-size:clamp(30px,4vw,60px); line-height:.95; letter-spacing:-.06em; font-weight:950; margin:0 0 36px; }
.mg-faq-prod details{ max-width:980px; padding:24px 28px; margin-bottom:14px; border-radius:20px; background:var(--mg-cream); }
.mg-faq-prod summary{ cursor:pointer; font-size:17px; font-weight:900; list-style:none; }
.mg-faq-prod summary::-webkit-details-marker{ display:none; }
.mg-faq-prod details p{ color:#555; line-height:1.7; margin-top:14px; }

/* ── PRODUITS LIÉS ── */
.mg-related{ padding:110px 6%; }
.mg-related h2{ font-size:clamp(30px,4vw,60px); line-height:.95; letter-spacing:-.06em; font-weight:950; margin:0 0 22px; }

/* ── CTA FINAL PRODUIT ── */
.mg-final-cta-prod{ padding:130px 6%; text-align:center; background:var(--mg-black); color:#fff; }
.mg-final-cta-prod h2{ font-size:clamp(30px,4vw,60px); line-height:.95; letter-spacing:-.06em; font-weight:950; margin:0 0 22px; }

/* ══ RESPONSIVE ══ */
@media(max-width:1000px){
  .mg-feature-pack,.mg-split,.mg-details,.mg-benefits-prod,.mg-review-grid,
  .mg-products-grid,.mg-guide{ grid-template-columns:1fr; }

  .mg-feature-pack{ margin:80px 5%; padding:40px 24px; border-radius:30px; }

  .mg-shop-hero,.mg-products-section,.mg-guide,.mg-benefits,.mg-faq,.mg-final-cta,
  .mg-product-hero,.mg-promise,.mg-benefits-prod,.mg-split,.mg-zones,
  .mg-details,.mg-reviews,.mg-faq-prod,.mg-final-cta-prod,.mg-related{ padding:72px 5%; }

  .mg-product-info{ padding:8px 0; }
  .mg-main-image img{ height:420px; }
  .mg-split-image img{ height:380px; }
  .mg-zone-grid{ grid-template-columns:repeat(3,1fr); }
  .mg-product-highlights,.mg-trust-box{ grid-template-columns:1fr; }
  .mg-product-hero{ grid-template-columns:1fr; }
}

@media(max-width:600px){
  .mg-zone-grid{ grid-template-columns:repeat(2,1fr); }
  .mg-review-grid{ grid-template-columns:1fr; }
  .mg-products-grid{ grid-template-columns:1fr 1fr; gap:16px; }
}


/* ════════════════════════════════════════
   PAGE LISTE DES CATÉGORIES [mg_categories]
════════════════════════════════════════ */
.mg-categories-page {
  font-family: Inter, Arial, sans-serif;
  background: var(--mg-cream);
  color: var(--mg-black);
}

/* Hero liste catégories */
.mg-cat-list-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 100px 6%;
  background:
    linear-gradient(90deg, rgba(17,17,17,.88), rgba(17,17,17,.5), rgba(17,17,17,.1)),
    var(--hero-bg, url('')) center right / cover no-repeat;
  background-color: var(--mg-black);
}
.mg-cat-list-hero-content { max-width: 780px; color: #fff; }
.mg-cat-list-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 6vw, 82px);
  line-height: .92; letter-spacing: -.07em; font-weight: 950;
}
.mg-cat-list-hero p {
  font-size: 20px; line-height: 1.7;
  color: rgba(255,255,255,.78); margin: 0;
}

/* Grille catégories */
.mg-cat-grid-section { padding: 100px 6%; background: #fff; }
.mg-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mg-cat-card {
  display: flex;
  flex-direction: column;
  border-radius: 36px;
  overflow: hidden;
  background: var(--mg-cream);
  text-decoration: none;
  color: var(--mg-black);
  transition: .3s ease;
  position: relative;
}
.mg-cat-card:hover { transform: translateY(-8px); box-shadow: 0 32px 80px rgba(0,0,0,.1); }

/* Image catégorie — ratio 16/9 */
.mg-cat-card-img {
  position: relative;
  width: 100%;
  padding-top: 56.25%;   /* 16:9 */
  overflow: hidden;
  background: var(--mg-grey);
}
.mg-cat-card-img img {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .5s ease;
}
.mg-cat-card:hover .mg-cat-card-img img { transform: scale(1.06); }
.mg-cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,.55) 0%, transparent 55%);
}

/* Corps de la carte */
.mg-cat-card-body { padding: 28px 28px 24px; flex: 1; display: flex; flex-direction: column; }
.mg-cat-card-body h2 {
  margin: 0 0 10px;
  font-size: 26px; font-weight: 950; letter-spacing: -.04em; line-height: 1.1;
}
.mg-cat-card-body > p { color: #555; font-size: 14px; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.mg-cat-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.mg-cat-count { font-size: 13px; font-weight: 700; color: #888; }
.mg-cat-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mg-cat-tags span {
  padding: 4px 10px; border-radius: 999px;
  background: #fff; font-size: 11px; font-weight: 700;
  color: var(--mg-text); border: 1px solid #e5e5e5;
}
.mg-cat-arrow {
  font-weight: 900; font-size: 14px; color: var(--mg-gold);
  white-space: nowrap;
}

/* CTA liste catégories */
.mg-cat-cta {
  padding: 120px 6%;
  text-align: center;
  background: var(--mg-black);
  color: #fff;
}
.mg-cat-cta h2 {
  font-size: clamp(32px, 5vw, 68px);
  line-height: .92; letter-spacing: -.07em; font-weight: 950; margin: 0 0 28px;
}


/* ════════════════════════════════════════
   PAGE CATÉGORIE (/product-category/xxx/)
════════════════════════════════════════ */
.mg-cat-page {
  font-family: Inter, Arial, sans-serif;
  background: var(--mg-cream);
  color: var(--mg-black);
}

/* Fil d'Ariane */
.mg-breadcrumb {
  padding: 18px 6%;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mg-breadcrumb a { color: var(--mg-text); text-decoration: none; font-weight: 600; }
.mg-breadcrumb a:hover { color: var(--mg-gold); }
.mg-breadcrumb span { color: #aaa; }
.mg-breadcrumb span:last-child { color: var(--mg-black); font-weight: 800; }

/* Hero catégorie */
.mg-cat-hero {
  min-height: 52vh;
  display: flex;
  align-items: center;
  padding: 90px 6%;
}
.mg-cat-hero.has-bg {
  background:
    linear-gradient(90deg, rgba(17,17,17,.88), rgba(17,17,17,.5), rgba(17,17,17,.06)),
    var(--cat-bg) center / cover no-repeat;
}
.mg-cat-hero.no-bg {
  background: var(--mg-black);
}
.mg-cat-hero-content { max-width: 860px; color: #fff; }
/* Override thème — force couleur blanche dans hero */
.mg-cat-page .mg-cat-hero-content h1,
.mg-cat-page .mg-cat-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: .92; letter-spacing: -.07em; font-weight: 950;
}
.mg-cat-hero-content p {
  font-size: 20px; line-height: 1.7;
  color: rgba(255,255,255,.80); margin: 0 0 24px; max-width: 700px;
}
.mg-cat-count-badge {
  display: inline-block;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.15);
  font-size: 13px; font-weight: 800; color: #fff;
  backdrop-filter: blur(8px);
}

/* Sous-catégories */
.mg-sub-cats {
  padding: 20px 6%;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.mg-sub-cats-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mg-sub-cats-label { font-size: 13px; font-weight: 700; color: #888; white-space: nowrap; }
.mg-sub-cat-pill {
  padding: 8px 16px; border-radius: 999px;
  background: var(--mg-cream); border: 1px solid #e5e5e5;
  font-size: 13px; font-weight: 800; color: var(--mg-black);
  text-decoration: none; transition: .2s;
}
.mg-sub-cat-pill:hover { background: var(--mg-black); color: #fff; border-color: var(--mg-black); }
.mg-sub-cat-pill span { color: #aaa; font-weight: 600; margin-left: 3px; }

/* Promesse catégorie */
.mg-cat-promise {
  padding: 80px 6%;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}
.mg-cat-promise h2 {
  font-size: clamp(30px, 4.5vw, 62px);
  line-height: .92; letter-spacing: -.065em; font-weight: 950; margin: 0 0 20px;
}
.mg-cat-promise p { font-size: 19px; line-height: 1.7; color: var(--mg-text); }

/* Bénéfices catégorie */
.mg-cat-benefits {
  padding: 80px 6%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: var(--mg-black);
  color: #fff;
}
.mg-cat-benefits > div { padding: 40px; border-radius: 30px; background: rgba(255,255,255,.07); }
.mg-cat-benefits span { color: var(--mg-gold); font-weight: 900; font-size: 13px; }
.mg-cat-benefits h3 { margin: 18px 0 10px; font-size: 28px; letter-spacing: -.04em; font-weight: 900; }
.mg-cat-benefits p { color: rgba(255,255,255,.72); line-height: 1.65; }

/* Section produits */
.mg-cat-products-section { padding: 80px 6%; background: #fff; }
.mg-cat-products-header { margin-bottom: 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.mg-cat-count-text { font-size: 14px; color: #888; font-weight: 700; }

/* Pagination */
.mg-pagination { margin-top: 60px; display: flex; justify-content: center; }
.mg-pagination .page-numbers {
  display: inline-flex; list-style: none; padding: 0; margin: 0; gap: 8px;
}
.mg-pagination .page-numbers li a,
.mg-pagination .page-numbers li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 16px;
  border-radius: 999px; font-size: 14px; font-weight: 800;
  text-decoration: none; transition: .2s;
  background: var(--mg-cream); color: var(--mg-black);
}
.mg-pagination .page-numbers li a:hover { background: var(--mg-black); color: #fff; }
.mg-pagination .page-numbers li span.current { background: var(--mg-gold); color: var(--mg-black); }
.mg-pagination .page-numbers li a.prev,
.mg-pagination .page-numbers li a.next { font-weight: 900; padding: 0 20px; }

/* Vide */
.mg-cat-empty { text-align: center; padding: 60px 0; }
.mg-cat-empty p { font-size: 18px; color: #888; margin-bottom: 24px; }

/* Pourquoi */
.mg-cat-why {
  padding: 100px 6%;
  background: var(--mg-cream);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.mg-cat-why h2 {
  font-size: clamp(30px, 4.5vw, 62px);
  line-height: .92; letter-spacing: -.065em; font-weight: 950; margin: 0 0 20px;
}
.mg-cat-why p { font-size: 19px; line-height: 1.7; color: var(--mg-text); }

/* FAQ catégorie */
.mg-cat-faq { padding: 100px 6%; background: #fff; }
.mg-cat-faq h2 {
  font-size: clamp(28px, 4vw, 56px);
  line-height: .95; letter-spacing: -.06em; font-weight: 950; margin: 0 0 36px;
}
.mg-cat-faq .mg-faq-list { max-width: 980px; display: grid; gap: 14px; }
.mg-cat-faq details { padding: 24px 28px; border-radius: 20px; background: var(--mg-cream); }
.mg-cat-faq summary { cursor: pointer; font-size: 17px; font-weight: 900; list-style: none; }
.mg-cat-faq summary::-webkit-details-marker { display: none; }
.mg-cat-faq details p { color: #555; line-height: 1.7; margin-top: 14px; }

/* ── Responsive catégories ── */
@media (max-width: 1000px) {
  .mg-cat-grid { grid-template-columns: 1fr 1fr; }
  .mg-cat-benefits { grid-template-columns: 1fr; }
  .mg-cat-list-hero, .mg-cat-hero, .mg-cat-products-section,
  .mg-cat-promise, .mg-cat-why, .mg-cat-faq { padding: 70px 5%; }
  .mg-cat-grid-section { padding: 70px 5%; }
}
@media (max-width: 600px) {
  .mg-cat-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   OVERRIDES THÈME — neutralise les styles
   du thème WordPress actif sur nos pages
════════════════════════════════════════ */

/* Force couleur noire sur tous les H1/H2/H3 de nos pages (thème peut mettre orange) */
.mg-cat-page h1,
.mg-cat-page h2,
.mg-cat-page h3,
.mg-shop-page h1,
.mg-shop-page h2,
.mg-shop-page h3,
.mg-product-detail h1,
.mg-product-detail h2,
.mg-product-detail h3,
.mg-categories-page h1,
.mg-categories-page h2 {
  color: inherit !important;
}

/* Dans les heros (fond noir) : force blanc */
.mg-cat-hero h1,
.mg-cat-list-hero h1,
.mg-shop-hero h1,
.mg-final-cta-prod h2,
.mg-benefits-prod h3,
.mg-cat-benefits h3 {
  color: #fff !important;
}

/* Dans les sections claires : force noir */
.mg-products-section h2,
.mg-section-head h2,
.mg-product-info h1,
.mg-product-info h3,
.mg-cat-promise h2,
.mg-cat-why h2,
.mg-cat-faq h2,
.mg-details h2,
.mg-reviews h2,
.mg-faq-prod h2,
.mg-split h2,
.mg-zones h2,
.mg-promise h2,
.mg-cat-card-body h2,
.mg-guide-card h3 {
  color: var(--mg-black) !important;
}

/* Empêche le thème de casser les liens dans les cartes */
.mg-product-info h3 a,
.mg-product-info h3 a:visited,
.mg-cat-card,
.mg-cat-card:visited {
  color: inherit !important;
  text-decoration: none !important;
}

/* Supprime les marges/paddings que le thème pourrait ajouter */
.mg-cat-page,
.mg-shop-page,
.mg-product-detail,
.mg-categories-page {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Supprime le container du thème qui peut limiter la largeur */
.mg-cat-page > *,
.mg-shop-page > *,
.mg-product-detail > *,
.mg-categories-page > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
