/* ============================================================
   LEC V7.1 — vraie expérience mobile dédiée (<= 768px)
   ============================================================ */
.lec-v71-mobile-header,.lec-v71-mobile-nav,.lec-v71-product-buybar{display:none}

@media(max-width:768px){
  :root{--lec71-ink:#2f241d;--lec71-brown:#49362b;--lec71-sand:#f7f2ea;--lec71-line:#e6ddd4;--lec71-gold:#d0a05b}
  html{scroll-padding-top:76px}
  body.lec-v7{padding-top:68px!important;padding-bottom:74px!important;background:#fff}

  /* On remplace réellement le header mobile Shopkeeper, on ne l'empile pas. */
  body.lec-v7 #masthead,body.lec-v7 .site-header,body.lec-v7 .header-mobile,body.lec-v7 .mobile-header,body.lec-v7 .top-headers-wrapper{display:none!important}
  .lec-v71-mobile-header{display:flex;position:fixed;z-index:10020;top:0;left:0;right:0;height:68px;padding:8px 12px 8px 14px;align-items:center;justify-content:space-between;background:rgba(255,255,255,.98);border-bottom:1px solid var(--lec71-line);box-shadow:0 4px 18px rgba(46,34,27,.06);backdrop-filter:blur(12px)}
  .lec-v71-mobile-logo{display:flex;align-items:center;min-width:0;max-width:44%;height:52px;text-decoration:none!important}
  .lec-v71-mobile-logo__img{display:block!important;width:auto!important;max-width:100%!important;height:auto!important;max-height:48px!important;object-fit:contain}
  .lec-v71-mobile-logo__fallback{font-size:13px;line-height:1.05;font-weight:900;color:var(--lec71-ink)}
  .lec-v71-mobile-actions{display:flex;align-items:center;gap:3px}
  .lec-v71-mobile-actions>a,.lec-v71-mobile-menu{position:relative;width:42px;height:42px;display:grid;place-items:center;border:0;border-radius:12px;background:transparent;color:var(--lec71-ink)!important;padding:0!important;text-decoration:none!important}
  .lec-v71-mobile-actions svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .lec-v71-mobile-cart b{position:absolute;right:1px;top:0;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--lec71-brown);color:#fff;font-size:9px;line-height:1}
  .lec-v71-mobile-menu{cursor:pointer}

  /* Navigation basse : 4 actions nettes, vrais SVG, aucun symbole bricolé. */
  .lec-v7-mobile-nav{display:none!important}
  .lec-v71-mobile-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;z-index:10010;left:0;right:0;bottom:0;min-height:66px;padding:4px 4px calc(5px + env(safe-area-inset-bottom));background:rgba(255,255,255,.98);border-top:1px solid var(--lec71-line);box-shadow:0 -8px 24px rgba(43,31,24,.08);backdrop-filter:blur(12px)}
  .lec-v71-mobile-nav a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;border-radius:12px;color:#75675e!important;text-decoration:none!important;font-size:10px;font-weight:750;line-height:1}
  .lec-v71-mobile-nav a.is-active{background:var(--lec71-sand);color:var(--lec71-brown)!important}
  .lec-v71-mobile-nav__icon{display:grid;place-items:center;width:23px;height:23px}
  .lec-v71-mobile-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .lec-v71-mobile-nav b{position:absolute;top:2px;right:24%;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--lec71-brown);color:#fff;font-size:9px}

  /* SHOP — on supprime le pavé vide et on garde un appel compact vraiment utile. */
  body.lec-v7-catalog .site-content,body.lec-v7-catalog #primary{padding-top:0!important;margin-top:0!important}
  body.lec-v7-catalog .woocommerce-products-header,body.lec-v7-catalog .page-title{margin-top:0!important;padding-top:14px!important}
  body.lec-v7-catalog .lec-advisor-promo--shop,body.lec-v7-catalog .lec-advisor-promo--category{width:calc(100% - 24px)!important;margin:14px 12px 18px!important;display:grid!important;grid-template-columns:1fr auto!important;gap:12px!important;min-height:0!important;padding:18px!important;border-radius:18px!important;background:linear-gradient(135deg,#4a382d,#6a4f3e)!important}
  body.lec-v7-catalog .lec-advisor-promo__visual{display:none!important}
  body.lec-v7-catalog .lec-advisor-promo__copy{min-width:0!important}
  body.lec-v7-catalog .lec-advisor-promo__eyebrow{font-size:9px!important;margin-bottom:5px!important;color:#efd49d!important}
  body.lec-v7-catalog .lec-advisor-promo h2{margin:0 0 5px!important;font-size:20px!important;line-height:1.08!important;color:#fff!important}
  body.lec-v7-catalog .lec-advisor-promo p{display:none!important}
  body.lec-v7-catalog .lec-advisor-promo__benefits{display:none!important}
  body.lec-v7-catalog .lec-advisor-promo__action{grid-column:2!important;align-self:center!important;min-width:0!important;width:auto!important}
  body.lec-v7-catalog .lec-advisor-promo__button{width:auto!important;min-height:44px!important;padding:0 14px!important;border-radius:12px!important;font-size:11px!important;white-space:nowrap!important}
  body.lec-v7-catalog .lec-advisor-promo__action small{display:none!important}
  .lec-v7-catalog-search{width:auto!important;margin:8px 12px 14px!important;padding:0!important}
  .lec-v7-catalog-search form{min-height:50px!important;border-radius:15px!important;box-shadow:none!important}
  .lec-v7-catalog-search input[type=search]{font-size:16px!important}
  .lec-v7-mobile-catalogbar{left:12px!important;right:12px!important;bottom:76px!important;grid-template-columns:1fr 1fr!important;border-radius:14px!important}
  .lec-v7-catalog ul.products{padding:0 12px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 10px!important}
  .lec-v7-catalog ul.products li.product{background:#fff!important;border:1px solid #eee5dd!important;border-radius:14px!important;overflow:hidden!important;box-shadow:none!important}
  .lec-v7-catalog ul.products li.product>a:first-child{display:block!important}
  .lec-v7-catalog ul.products li.product img{display:block!important;width:100%!important;margin:0!important;border-radius:0!important;aspect-ratio:1/1!important;object-fit:cover!important}
  .lec-v7-catalog ul.products li.product .woocommerce-loop-product__title,.lec-v7-catalog ul.products li.product h2,.lec-v7-catalog ul.products li.product h3{min-height:46px!important;margin:0!important;padding:12px 10px 8px!important;font-size:13px!important;line-height:1.2!important;font-weight:800!important}
  .lec-v7-catalog ul.products li.product .button{min-height:44px!important;margin-top:auto!important;border-radius:0!important;font-size:11px!important;letter-spacing:.02em!important}

  /* PRODUIT — même hiérarchie que desktop, réellement reflowée. */
  body.lec-v7-product{padding-bottom:132px!important}
  .lec-product-page{width:100%!important;max-width:none!important;margin:0!important;padding:10px 12px 38px!important}
  .lec-product-breadcrumb{margin:2px 0 12px!important;overflow:auto;white-space:nowrap;scrollbar-width:none}
  .lec-product-breadcrumb .woocommerce-breadcrumb{font-size:10px!important}
  .lec-product-hero{display:flex!important;flex-direction:column!important;gap:16px!important}
  .lec-product-gallery{order:1;width:100%!important}
  .lec-product-gallery .woocommerce-product-gallery{margin:0!important}
  .lec-product-gallery .woocommerce-product-gallery__image img{width:100%!important;border-radius:16px!important;aspect-ratio:1/1!important;object-fit:contain!important;background:#faf8f4}
  .lec-product-gallery .flex-control-thumbs{grid-template-columns:repeat(4,1fr)!important;gap:7px!important;margin-top:8px!important}
  .lec-product-buy-column{order:2;width:100%!important}
  .lec-product-buy-card{position:static!important;width:100%!important;padding:20px 16px!important;border-radius:18px!important;box-shadow:none!important;border:1px solid var(--lec71-line)!important}
  .lec-product-title-row{display:flex!important;align-items:flex-start!important;gap:10px!important}
  .lec-product-title{flex:1!important;margin:0 0 10px!important;font-size:30px!important;line-height:1.02!important;letter-spacing:-.035em!important}
  .lec-bio-badge{flex:0 0 auto!important;transform:scale(.9);transform-origin:top right}
  .lec-stock{margin-bottom:14px!important;font-size:11px!important}
  .lec-product-intro{font-size:14px!important;line-height:1.55!important}
  .lec-product-price-block{padding:16px 0!important}
  .lec-product-price-block .price,.lec-product-price-block .amount{font-size:26px!important}
  .lec-product-request-block{margin-top:16px!important}
  .lec-product-cart-block{margin-top:16px!important;padding-top:16px!important}
  .lec-product-cart-block .variations select,.lec-product-request-block select{width:100%!important;min-height:48px!important;font-size:16px!important}
  .lec-product-cart-block .woocommerce-variation-add-to-cart,.lec-product-cart-block form.cart:not(.variations_form){display:grid!important;grid-template-columns:92px 1fr!important;gap:10px!important;align-items:stretch!important}
  .lec-product-cart-block .quantity,.lec-product-cart-block .quantity input.qty{width:100%!important;min-width:0!important;height:50px!important}
  .lec-product-cart-block .single_add_to_cart_button{width:100%!important;min-height:50px!important;margin:0!important;border-radius:12px!important;font-size:13px!important}
  .lec-conversion-points{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;margin-top:16px!important}
  .lec-product-pro-points{grid-template-columns:1fr!important;margin-top:10px!important}
  .lec-shop-cta{margin:24px 0!important;padding:20px 16px!important;border-radius:18px!important;display:block!important}
  .lec-shop-cta h2{font-size:23px!important;line-height:1.1!important}
  .lec-shop-cta p{font-size:13px!important;line-height:1.5!important}
  .lec-shop-cta-button{width:100%!important;margin-top:14px!important;min-height:48px!important;display:flex!important;align-items:center!important;justify-content:center!important}
  .lec-smart-crosssell{margin:26px 0!important;padding-top:0!important}
  .lec-smart-crosssell__head h2{font-size:24px!important}
  .lec-smart-crosssell__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .lec-product-content-wrap{display:block!important;padding:30px 0!important}
  .lec-content-heading{position:static!important;margin-bottom:20px!important}
  .lec-content-heading h2{font-size:27px!important}
  .lec-product-content{font-size:15px!important;line-height:1.65!important;overflow-wrap:anywhere}
  .lec-product-content h2{font-size:24px!important;margin-top:34px!important;padding-top:28px!important}
  .lec-product-content h3{font-size:19px!important;margin-top:28px!important}
  .lec-advisor-product-cta{margin:26px 0 8px!important;padding:20px 16px!important;display:grid!important;grid-template-columns:44px 1fr!important;gap:12px!important;border-radius:18px!important}
  .lec-advisor-product-cta-icon{width:44px!important;height:44px!important}
  .lec-advisor-product-cta-copy h2{font-size:22px!important}
  .lec-advisor-product-cta-copy p{font-size:13px!important}
  .lec-advisor-product-cta-button{grid-column:1/-1!important;width:100%!important;min-height:48px!important}
  .lec-v7-footer-trust{grid-template-columns:1fr!important;margin:28px 12px 12px!important;border-radius:16px!important}
  .lec-v7-footer-trust>div,.lec-v7-footer-trust>div:nth-child(odd){border-right:0!important;border-bottom:1px solid var(--lec71-line)!important;padding:14px 16px!important}
  .lec-v7-footer-trust>div:last-child{border-bottom:0!important}
  .lec-v7-footer-trust strong{font-size:13px!important}.lec-v7-footer-trust span{font-size:11px!important}

  .lec-v71-product-buybar{display:flex;position:fixed;z-index:10015;left:8px;right:8px;bottom:72px;align-items:center;justify-content:space-between;gap:10px;padding:9px 9px 9px 13px;border-radius:15px;background:rgba(52,40,32,.97);box-shadow:0 10px 28px rgba(0,0,0,.18);color:#fff;backdrop-filter:blur(10px)}
  .lec-v71-product-buybar div{display:flex;min-width:0;flex-direction:column}.lec-v71-product-buybar small{font-size:8px;text-transform:uppercase;letter-spacing:.08em;opacity:.7}.lec-v71-product-buybar strong{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.lec-v71-product-buybar a{display:flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border-radius:11px;background:var(--lec71-gold);color:#2d241e!important;font-size:11px;font-weight:900;text-decoration:none!important}
  .lec-mobile-buybar{display:none!important}

  /* PANIER — même logique visuelle desktop, simplement empilée. */
  .lec-v7-cart .lec-cart-snapshot{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;padding:0!important;margin:12px!important;border-radius:18px!important;background:#fff!important;box-shadow:none!important}
  .lec-v7-cart .lec-cart-snapshot>div{min-height:78px!important;padding:14px 12px!important;border-right:1px solid var(--lec71-line)!important;border-bottom:0!important;background:#fff!important}
  .lec-v7-cart .lec-cart-snapshot>div:nth-child(3){border-right:0!important}
  .lec-v7-cart .lec-cart-snapshot span{font-size:9px!important}.lec-v7-cart .lec-cart-snapshot strong{font-size:18px!important}
  .lec-v7-cart .lec-cart-snapshot__franco{grid-column:1/-1!important;min-height:82px!important;border-top:1px solid rgba(255,255,255,.18)!important;border-right:0!important;border-radius:0 0 18px 18px!important;background:var(--lec71-brown)!important;color:#fff!important}
  .lec-v7-cart .lec-cart-snapshot__franco span,.lec-v7-cart .lec-cart-snapshot__franco strong{color:#fff!important}
  .lec-v7-cart .lec-cart-reorder{margin:28px 12px!important}.lec-v7-cart .lec-cart-reorder__head h2{font-size:25px!important;line-height:1.1!important}
  .lec-v7-cart .lec-cart-reorder__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .lec-v7-cart .lec-cart-reorder-card{border-radius:14px!important}.lec-v7-cart .lec-cart-reorder-card__title{font-size:13px!important}
  .lec-v7-cart .lec-cart-reorder-card__cta{font-size:10px!important;min-height:42px!important}
  body.woocommerce-cart .cart_totals,body.woocommerce-cart .woocommerce-cart-form{width:auto!important;float:none!important;margin-left:12px!important;margin-right:12px!important}

  /* CHECKOUT — une étape après l'autre, récapitulatif compact et clair. */
  .lec-v7-checkout form.checkout{display:block!important;padding:0 12px!important}.lec-v7-checkout form.checkout #customer_details,.lec-v7-checkout form.checkout #order_review_heading,.lec-v7-checkout form.checkout #order_review{width:100%!important;float:none!important}
  .lec-v7-checkout .lec-checkout-steps{margin:10px 12px 16px!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:4px!important;border-radius:14px!important}
  .lec-v7-checkout .lec-checkout-steps>*{padding:10px 5px!important;font-size:9px!important;text-align:center!important}
  .lec-v7-checkout form.checkout #order_review{position:static!important;margin-top:18px!important;padding:14px!important;border-radius:16px!important;box-shadow:none!important}
  .lec-v7-checkout #place_order{position:static!important;min-height:54px!important;margin-top:12px!important}
  .lec-v7-checkout .form-row{width:100%!important;float:none!important}.lec-v7-checkout .form-row input,.lec-v7-checkout .form-row select,.lec-v7-checkout .form-row textarea{width:100%!important;min-height:48px!important;font-size:16px!important}

  /* COMPTE */
  .lec-v7-account .woocommerce{padding-left:12px!important;padding-right:12px!important}.lec-v7-account-head{padding:18px!important;border-radius:18px!important}.lec-v7-account-head h2{font-size:29px!important}.lec-v7-account-card{min-height:108px!important;padding:16px!important}.lec-v7-account-card strong{font-size:18px!important}

  /* Blog / recettes : une seule colonne, aucun débordement. */
  .lec-blog-v59,.lec-recipes-archive,.lec-recipe-single{overflow-x:hidden!important}.lec-blog-v59 .lec-blog-grid,.lec-recipes-archive .lec-recipe-grid{grid-template-columns:1fr!important}.lec-blog-v59 .lec-blog-hero,.lec-recipes-archive .lec-recipes-hero,.lec-recipe-single .lec-recipe-hero{padding-left:14px!important;padding-right:14px!important}.lec-recipe-single .entry-content{font-size:15px!important;line-height:1.65!important}
}

@media(max-width:390px){
  .lec-v71-mobile-logo{max-width:41%}
  .lec-v71-mobile-actions>a,.lec-v71-mobile-menu{width:39px;height:39px}
  body.lec-v7-catalog .lec-advisor-promo--shop,body.lec-v7-catalog .lec-advisor-promo--category{grid-template-columns:1fr!important}
  body.lec-v7-catalog .lec-advisor-promo__action{grid-column:1!important;width:100%!important}
  body.lec-v7-catalog .lec-advisor-promo__button{width:100%!important}
  .lec-product-title{font-size:28px!important}
  .lec-smart-crosssell__grid{grid-template-columns:1fr 1fr!important}
  .lec-v7-cart .lec-cart-snapshot>div{padding:12px 9px!important}.lec-v7-cart .lec-cart-snapshot strong{font-size:16px!important}
}

/* ============================================================
   LEC V7.2 — Cross-sell produit mobile reconstruit
   ============================================================ */
@media(max-width:768px){
  body.lec-v7-product .lec-smart-crosssell{
    width:100%!important;
    margin:28px 0!important;
    padding:18px 14px!important;
    border-radius:18px!important;
    background:#f7f2ea!important;
    overflow:hidden!important;
  }
  body.lec-v7-product .lec-smart-crosssell__head{
    display:block!important;
    margin:0 0 16px!important;
  }
  body.lec-v7-product .lec-smart-crosssell__head>div>span{
    margin-bottom:5px!important;
    font-size:9px!important;
  }
  body.lec-v7-product .lec-smart-crosssell__head h2{
    margin:0!important;
    font-size:23px!important;
    line-height:1.08!important;
    letter-spacing:-.02em!important;
  }
  body.lec-v7-product .lec-smart-crosssell__head p{
    margin:8px 0 0!important;
    font-size:12px!important;
    line-height:1.45!important;
  }
  body.lec-v7-product .lec-smart-crosssell__head>a{
    display:inline-flex!important;
    align-items:center!important;
    min-height:40px!important;
    margin-top:12px!important;
    padding:0 13px!important;
    border:1px solid #ded2c7!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#49362b!important;
    font-size:10px!important;
    font-weight:850!important;
  }
  body.lec-v7-product .lec-smart-crosssell__grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    width:100%!important;
  }
  body.lec-v7-product .lec-smart-crosssell__item{
    display:grid!important;
    grid-template-columns:112px minmax(0,1fr)!important;
    width:100%!important;
    min-width:0!important;
    min-height:112px!important;
    overflow:hidden!important;
    border:1px solid #e7ddd4!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  body.lec-v7-product .lec-smart-crosssell__image{
    display:block!important;
    width:112px!important;
    height:112px!important;
    aspect-ratio:auto!important;
    overflow:hidden!important;
    background:#f4efe9!important;
  }
  body.lec-v7-product .lec-smart-crosssell__image img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    margin:0!important;
    object-fit:cover!important;
  }
  body.lec-v7-product .lec-smart-crosssell__copy{
    display:flex!important;
    min-width:0!important;
    min-height:112px!important;
    padding:13px 12px!important;
    flex-direction:column!important;
    justify-content:space-between!important;
    gap:10px!important;
  }
  body.lec-v7-product .lec-smart-crosssell__copy strong{
    display:-webkit-box!important;
    overflow:hidden!important;
    color:#2f241d!important;
    font-size:14px!important;
    line-height:1.25!important;
    font-weight:800!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
  }
  body.lec-v7-product .lec-smart-crosssell__copy small{
    display:inline-flex!important;
    align-items:center!important;
    align-self:flex-start!important;
    min-height:32px!important;
    padding:0 10px!important;
    border-radius:9px!important;
    background:#49362b!important;
    color:#fff!important;
    font-size:9px!important;
    font-weight:850!important;
    letter-spacing:.02em!important;
    text-transform:none!important;
  }
  /* Trois suggestions suffisent sur mobile : plus lisible et moins long. */
  body.lec-v7-product .lec-smart-crosssell__item:nth-child(n+4){display:none!important}
}

@media(max-width:390px){
  body.lec-v7-product .lec-smart-crosssell{padding:16px 12px!important}
  body.lec-v7-product .lec-smart-crosssell__item{grid-template-columns:102px minmax(0,1fr)!important;min-height:102px!important}
  body.lec-v7-product .lec-smart-crosssell__image{width:102px!important;height:102px!important}
  body.lec-v7-product .lec-smart-crosssell__copy{min-height:102px!important;padding:11px!important}
  body.lec-v7-product .lec-smart-crosssell__head h2{font-size:21px!important}
}

