
/*
 * TAC STORE — HEADER MOBILE PROPRE
 * Le desktop n'est pas modifié.
 */

/* Conservation de l’état actuel du desktop : faux avis masqué. */
.elementor-1 .elementor-element-39bc8df {
  display: none !important;
}

.elementor-1 .elementor-element-f0dddb2 {
  width: 100% !important;
}

@media (max-width: 767px) {

  /* Bandeau contact compact */
  .elementor-1 .elementor-element-c61ee22 {
    min-height: 48px !important;
    padding: 0 12px !important;
  }

  .elementor-1 .elementor-element-c61ee22 > .elementor-container,
  .elementor-1 .elementor-element-c61ee22 .elementor-row {
    min-height: 48px !important;
    align-items: center !important;
  }

  /* Conteneur général : 72px de commandes + 50px de recherche */
  #header .header-top {
    padding: 0 !important;
  }

  #header .header-top .inner {
    position: relative !important;
    height: 130px !important;
    min-height: 130px !important;
    padding: 0 !important;
  }

  .elementor-2 {
    position: relative !important;
    height: 72px !important;
    min-height: 72px !important;
  }

  .elementor-2 > .elementor-inner,
  .elementor-2 .elementor-section-wrap {
    position: relative !important;
    height: 72px !important;
    min-height: 72px !important;
  }

  /* Ligne principale */
  .elementor-2 .elementor-element-b20b0bc {
    position: absolute !important;
    inset: 0 !important;
    height: 72px !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .elementor-2 .elementor-element-b20b0bc > .elementor-container,
  .elementor-2 .elementor-element-b20b0bc .elementor-row {
    position: relative !important;
    width: 100% !important;
    height: 72px !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Logo réellement centré */
  .elementor-2 .elementor-element-c7fbdfb {
    position: absolute !important;
    z-index: 10 !important;
    top: 8px !important;
    left: 50% !important;
    width: 110px !important;
    height: 56px !important;
    transform: translateX(-50%) !important;
  }

  .elementor-2 .elementor-element-c7fbdfb > .elementor-column-wrap,
  .elementor-2 .elementor-element-c7fbdfb .elementor-widget-wrap {
    height: 56px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .elementor-2 .elementor-element-c7fbdfb img.logo {
    display: block !important;
    width: 110px !important;
    max-width: 110px !important;
    max-height: 52px !important;
    margin: auto !important;
    object-fit: contain !important;
  }

  /* Compte, favoris et panier à droite */
  .elementor-2 .elementor-element-e4cef92 {
    position: absolute !important;
    z-index: 20 !important;
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    width: auto !important;
    height: 44px !important;
  }

  .elementor-2 .elementor-element-e4cef92 > .elementor-column-wrap,
  .elementor-2 .elementor-element-e4cef92 .elementor-widget-wrap {
    width: auto !important;
    height: 44px !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  /* Burger à gauche */
  .elementor-2 .elementor-element-36b6227 {
    position: absolute !important;
    z-index: 30 !important;
    top: 14px !important;
    left: 14px !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .elementor-2 .elementor-element-36b6227 .elementor-container,
  .elementor-2 .elementor-element-36b6227 .elementor-row,
  .elementor-2 .elementor-element-28ecaad,
  .elementor-2 .elementor-element-28ecaad > .elementor-column-wrap,
  .elementor-2 .elementor-element-c3bebac,
  .elementor-2 .elementor-element-c3bebac .elementor-widget-container,
  .elementor-2 .elementor-element-c3bebac .ApMegamenu,
  .elementor-2 .elementor-element-c3bebac nav,
  .elementor-2 .elementor-element-c3bebac .navbar-header {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .elementor-2 .elementor-element-c3bebac .navbar-toggler {
    position: static !important;
    display: flex !important;
    float: none !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    align-items: center !important;
    justify-content: center !important;
    color: #111 !important;
    font-size: 25px !important;
    line-height: 1 !important;
  }

  /* Barre de recherche sous la ligne principale */
  #leo_search_block_top {
    position: absolute !important;
    z-index: 25 !important;
    top: 78px !important;
    bottom: auto !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f3f3f3 !important;
  }

  #leo_search_block_top .title_block,
  #leo_search_block_top .list-cate-wrapper {
    display: none !important;
  }

  #leo_search_block_top form,
  #leo_search_block_top .leoproductsearch-content,
  #leo_search_block_top .block_content {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #leo_search_block_top #leo_search_query_top {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 52px 0 14px !important;
    border: 1px solid #e2e2e2 !important;
    background: #f5f5f5 !important;
    color: #222 !important;
    font-size: 14px !important;
  }

  #leo_search_block_top #leo_search_top_button {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    display: flex !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    background: transparent !important;
    color: #111 !important;
  }
}


/* TACSTORE-CLEAN-MOBILE-SEARCH */
.tacstore-mobile-search {
  display: none;
}

@media (max-width: 767px) {
  /* Désactivation complète de l’ancien module Leo sur mobile. */
  #leo_search_block_top {
    display: none !important;
  }

  #header .header-top .inner {
    height: auto !important;
    min-height: 130px !important;
  }

  /* Nouvelle recherche dans le flux normal du header. */
  .tacstore-mobile-search {
    position: relative !important;
    display: flex !important;
    width: calc(100% - 28px) !important;
    height: 44px !important;
    margin: 6px 14px 8px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dedede !important;
    background: #f5f5f5 !important;
  }

  .tacstore-mobile-search input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 14px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #222 !important;
    font-size: 14px !important;
  }

  .tacstore-mobile-search button {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid #dedede !important;
    background: #9c9565 !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 42px !important;
    text-align: center !important;
  }
}


/* TACSTORE-MOBILE-PRODUCTS-V1 */
@media (max-width: 767px) {

  /* Deux produits par ligne, quelle que soit la disposition sélectionnée. */
  #js-product-list .product_list.grid {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -6px !important;
  }

  #js-product-list .product_list.grid > .ajax_block_product {
    float: none !important;
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    padding: 6px !important;
  }

  #js-product-list article.product-miniature,
  #js-product-list .thumbnail-container {
    width: 100% !important;
    max-width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #js-product-list .product-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 220px !important;
    margin: auto !important;
    object-fit: contain !important;
  }

  #js-product-list .product-meta {
    padding: 10px 4px !important;
  }

  #js-product-list .product-title {
    min-height: 38px !important;
    margin: 5px 0 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  /* Étoiles compactes sur une seule ligne. */
  #js-product-list .leo-list-product-reviews {
    width: 66px !important;
    height: 17px !important;
    margin: 5px 0 !important;
    overflow: hidden !important;
    text-align: left !important;
  }

  #js-product-list .leo-list-product-reviews .star_content {
    width: 85px !important;
    height: 20px !important;
    margin: 0 !important;
    transform: scale(.74) !important;
    transform-origin: left top !important;
    white-space: nowrap !important;
  }

  /* Bouton panier toujours visible sur les cartes. */
  #js-product-list .button-container.cart {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 8px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  #js-product-list .button-container.cart button,
  #js-product-list button[data-button-action="add-to-cart"] {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 8px 5px !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    font-size: 11px !important;
  }

  /* Fiche produit : quantité puis panier pleine largeur. */
  .product-add-to-cart,
  .product-add-to-cart .product-quantity {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .product-add-to-cart .product-quantity .add {
    display: block !important;
    width: 100% !important;
    margin: 12px 0 0 !important;
  }

  .product-add-to-cart button.add-to-cart {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    min-height: 50px !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .product-rating .star_content,
  #leo_product_reviews_block_extra .star_content {
    transform: scale(.78) !important;
    transform-origin: left center !important;
    white-space: nowrap !important;
  }
}

/* TACSTORE-MOBILE-COMPACT-PRODUCTS */
@media (max-width: 767px) {
  body#category #js-product-list .product_list.grid
  button[data-button-action="add-to-cart"] {
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 92px !important;
    max-width: 100px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    line-height: 22px !important;
  }

  body#category #js-product-list .leo-list-product-reviews .star_content,
  body#product .reviews_note .star_content {
    width: 65px !important;
    height: 12px !important;
    line-height: 12px !important;
  }

  body#category #js-product-list .leo-list-product-reviews .star,
  body#product .reviews_note .star {
    width: 11px !important;
    height: 12px !important;
    margin: 0 1px !important;
    line-height: 12px !important;
  }

  body#category #js-product-list .leo-list-product-reviews .star::before,
  body#product .reviews_note .star::before {
    font-size: 12px !important;
    line-height: 12px !important;
  }
}

/* TACSTORE CATEGORY COVER FIX */

/* Masque uniquement l’image de catégorie dupliquée/déformée */
body.page-category #js-product-list-header .category-cover {
  display: none !important;
}

body.page-category #js-product-list-header .block-category-inner {
  height: auto !important;
  min-height: 0 !important;
}

body.page-category #js-product-list-header .block-category {
  height: auto !important;
  min-height: 0 !important;
}

/* END TACSTORE CATEGORY COVER FIX */

/* TACSTORE PRODUCT BUTTONS MOBILE FIX */
@media (max-width: 767px) {

  /* Fiche produit : bouton toujours accessible */
  body#product .product-quantity {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    overflow: visible !important;
  }

  body#product .product-quantity .qty {
    flex: 0 0 90px !important;
    margin: 0 !important;
  }

  body#product .product-quantity .add {
    display: block !important;
    flex: 1 1 190px !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body#product .product-quantity .add .add-to-cart {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: normal !important;
  }

  /* Listes produits : bouton visible sans survol */
  #js-product-list .button-container.cart,
  #js-product-list .button-container.cart form {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
  }

  #js-product-list .button-container.cart .add-to-cart {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Étoiles plus compactes */
  #js-product-list .leo-list-product-reviews .star_content,
  body#product #leo_product_reviews_block_extra .star_content {
    transform: scale(.72) !important;
    transform-origin: left center !important;
  }

  #js-product-list .leo-list-product-reviews {
    height: 14px !important;
    min-height: 14px !important;
    margin: 3px 0 !important;
    line-height: 1 !important;
    overflow: visible !important;
  }
}
/* END TACSTORE PRODUCT BUTTONS MOBILE FIX */

/* TACSTORE PRODUCT ACTIONS HORIZONTAL */
@media (max-width: 767px) {

  body#product .product-add-to-cart .product-quantity {
    display: grid !important;
    grid-template-columns: 80px minmax(0, 1fr) 44px 44px !important;
    gap: 6px !important;
    align-items: center !important;
    width: 100% !important;
    overflow: visible !important;
  }

  body#product .product-quantity .qty {
    width: 80px !important;
    min-width: 0 !important;
    max-width: 80px !important;
    margin: 0 !important;
  }

  body#product .product-quantity .qty .bootstrap-touchspin {
    width: 80px !important;
    max-width: 80px !important;
  }

  body#product .product-quantity .add {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body#product .product-quantity .add .add-to-cart {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 6px 8px !important;
  }

  body#product .product-quantity .wishlist,
  body#product .product-quantity .compare {
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
  }

  body#product .product-quantity .wishlist .btn,
  body#product .product-quantity .compare .btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
  }
}
/* END TACSTORE PRODUCT ACTIONS HORIZONTAL */

/* TACSTORE QUANTITY OVERFLOW FIX */
@media (max-width: 767px) {

  body#product .product-quantity .qty .bootstrap-touchspin {
    display: flex !important;
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
  }

  body#product .product-quantity .qty .bootstrap-touchspin > input.form-control {
    flex: 0 0 58px !important;
    width: 58px !important;
    min-width: 0 !important;
    max-width: 58px !important;
    box-sizing: border-box !important;
  }

  body#product .product-quantity .qty .input-group-btn-vertical {
    flex: 0 0 22px !important;
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
  }
}
/* END TACSTORE QUANTITY OVERFLOW FIX */

/* TACSTORE GOOGLE REVIEWS STYLE */
.elementor-element-9c2bacf .tac-google-reviews::before {
  content: "|";
  margin: 0 14px;
  opacity: .55;
}

.elementor-element-9c2bacf .tac-google-reviews .item-text {
  font-weight: 600;
  white-space: nowrap;
}

.elementor-element-9c2bacf .tac-google-star {
  color: #fbbc04;
  margin-right: 5px;
}

@media (max-width: 767px) {
  .elementor-element-9c2bacf .list-items.horizontal {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .elementor-element-9c2bacf .list-item.horizontal {
    float: none !important;
  }

  .elementor-element-9c2bacf .tac-google-reviews {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-top: 3px !important;
    text-align: center !important;
  }

  .elementor-element-9c2bacf .tac-google-reviews::before {
    display: none !important;
  }

  .elementor-element-9c2bacf .tac-google-reviews .item-text {
    font-size: 12px !important;
    line-height: 18px !important;
  }
}
/* END TACSTORE GOOGLE REVIEWS STYLE */

/* TACSTORE GOOGLE REVIEWS INLINE MOBILE */
@media (max-width: 767px) {
  .elementor-element-9c2bacf .tac-google-reviews {
    flex: 0 0 auto !important;
    width: auto !important;
    margin-top: 0 !important;
  }

  .elementor-element-9c2bacf .tac-google-reviews::before {
    display: inline !important;
    margin: 0 8px !important;
  }
}
/* END TACSTORE GOOGLE REVIEWS INLINE MOBILE */

/* TACSTORE HEADER FINAL ALIGNMENT */

/* Masquage de secours de Formulaire de contact */
.elementor-element-9c2bacf
.list-items.horizontal
> .list-item.horizontal:nth-child(2):not(.tac-google-reviews) {
  display: none !important;
}

/* Téléphone et avis Google sur la même ligne */
.elementor-element-9c2bacf .list-items.horizontal {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.elementor-element-9c2bacf .list-item.horizontal,
.elementor-element-9c2bacf .tac-google-reviews {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.elementor-element-9c2bacf a.item-text {
  display: flex !important;
  align-items: center !important;
  font-size: 14px !important;
  line-height: 24px !important;
  white-space: nowrap !important;
}

.elementor-element-9c2bacf .tac-google-reviews::before {
  display: inline-block !important;
  margin: 0 10px !important;
  font-size: 14px !important;
  line-height: 24px !important;
  vertical-align: middle !important;
}

/* END TACSTORE HEADER FINAL ALIGNMENT */

/* TACSTORE HEADER VERTICAL CENTER */

.elementor-element-f0dddb2 > .elementor-column-wrap {
  min-height: 44px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: center !important;
}

.elementor-element-f0dddb2 .elementor-widget-wrap,
.elementor-element-9c2bacf,
.elementor-element-9c2bacf .elementor-widget-container,
.elementor-element-9c2bacf .LeoBlockLink,
.elementor-element-9c2bacf .linklist-menu,
.elementor-element-9c2bacf .list-items.horizontal {
  min-height: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.elementor-element-9c2bacf .list-item.horizontal,
.elementor-element-9c2bacf .tac-google-reviews,
.elementor-element-9c2bacf a.item-text {
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.elementor-element-9c2bacf .tac-google-reviews::before {
  align-self: center !important;
  line-height: 1 !important;
}

/* END TACSTORE HEADER VERTICAL CENTER */

/* TACSTORE HEADER PAGE CENTER */

/* Colonne contenant téléphone et avis Google */
.elementor-element-f0dddb2 {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

.elementor-element-f0dddb2 > .elementor-column-wrap,
.elementor-element-f0dddb2 .elementor-widget-wrap {
  width: 100% !important;
  justify-content: center !important;
}

/* Anciennes colonnes Trustpilot et colonne vide */
.elementor-element-39bc8df,
.elementor-element-edcbe04 {
  display: none !important;
  flex: 0 0 0 !important;
  width: 0 !important;
  max-width: 0 !important;
}

/* Centrage final sur toute la largeur */
.elementor-element-f0dddb2 .elementor-element-9c2bacf {
  width: 100% !important;
}

.elementor-element-f0dddb2 .list-items.horizontal {
  width: 100% !important;
  justify-content: center !important;
}

/* END TACSTORE HEADER PAGE CENTER */

/* TACSTORE FOOTER COPYRIGHT COMPACT */
#footer .footer-bottom {
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#footer .footer-bottom .elementor-section,
#footer .footer-bottom .elementor-container,
#footer .footer-bottom .elementor-column-wrap,
#footer .footer-bottom .elementor-widget-wrap {
  min-height: 0 !important;
}

#footer .footer-bottom .elementor-column-wrap,
#footer .footer-bottom .elementor-widget-wrap {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

#footer .footer-bottom .elementor-widget {
  margin-bottom: 0 !important;
}

#footer .footer-bottom p,
#footer .footer-bottom .elementor-heading-title {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.35 !important;
}
/* END TACSTORE FOOTER COPYRIGHT COMPACT */

/* TACSTORE CLIENT CORRECTIONS LOT 2 */

/* Suppression des grandes images d’en-tête des catégories et produits */
body.page-category .breadcrumb-bg,
body.page-product .breadcrumb-bg {
  background-image: none !important;
  background-color: #fff !important;
  min-height: 0 !important;
  height: auto !important;
  border-bottom: 1px solid #ededed !important;
}

body.page-category .breadcrumb-bg .breadcrumb,
body.page-product .breadcrumb-bg .breadcrumb {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  margin: 0 !important;
}

body.page-category .breadcrumb-bg .breadcrumb a,
body.page-category .breadcrumb-bg .breadcrumb span,
body.page-product .breadcrumb-bg .breadcrumb a,
body.page-product .breadcrumb-bg .breadcrumb span {
  color: #505050 !important;
  text-shadow: none !important;
}

/* Mobile */
@media (max-width: 767px) {

  /* Logo plus visible sans gêner les icônes du header */
  #header .header-top img.logo,
  #header .header-top .logo {
    width: 145px !important;
    max-width: 38vw !important;
    height: auto !important;
  }

  /* Véritable icône de recherche */
  .tacstore-mobile-search button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 0 !important;
  }

  .tacstore-mobile-search .tac-search-icon {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  /* Sur mobile : liste, une colonne ou deux colonnes seulement */
  #btn_view_product .view-3,
  #btn_view_product .view-4 {
    display: none !important;
  }

  #btn_view_product {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
  }

  /* Le mode deux colonnes reste le choix par défaut */
  #btn_view_product .view-2 {
    display: inline-block !important;
  }

  /* Aucune hauteur résiduelle après suppression de la bannière */
  body.page-category .breadcrumb-bg,
  body.page-product .breadcrumb-bg {
    border-bottom: 0 !important;
  }
}

/* END TACSTORE CLIENT CORRECTIONS LOT 2 */

/* TACSTORE CLIENT CORRECTIONS LOT 3 */

/* Rétablissement du bloc des marques */
body#index .elementor-element-aa84297 {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
}

body#index .elementor-element-aa84297 .slick-slide,
body#index .elementor-element-aa84297 .item-description,
body#index .elementor-element-aa84297 .item-description img {
  visibility: visible !important;
  opacity: 1 !important;
}

body#index .elementor-element-aa84297 img[src*="placeholder.png"] {
  display: none !important;
}

body#index .elementor-element-aa84297 .item-title {
  display: none !important;
}

body#index .elementor-element-aa84297 .block-carousel-image-container a {
  min-height: 90px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body#index .elementor-element-aa84297 .item-description img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 180px !important;
  max-height: 80px !important;
  margin: auto !important;
  object-fit: contain !important;
}

/* Tableau et guide des tailles */
.tac-size-guide-scroll {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}

.tac-size-guide-scroll table {
  width: max-content !important;
  min-width: 100% !important;
  margin-bottom: 5px !important;
}

.tac-size-guide-hint {
  display: none;
}

/* Mobile */
@media (max-width: 767px) {

  /* Centrage du texte Maintenant en stock */
  .tac-stock-caption {
    left: 16px !important;
    right: 16px !important;
    width: calc(100% - 32px) !important;
    text-align: center !important;
  }

  .tac-stock-caption .caption-contain {
    width: 100% !important;
    text-align: center !important;
  }

  /* Marges cohérentes du bloc blog */
  body#index .tacstore-real-blog {
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
  }

  body#index .tacstore-real-blog__header {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body#index .tacstore-real-blog__header h2,
  body#index .tacstore-real-blog__header a {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Marques visibles et correctement dimensionnées */
  body#index .elementor-element-aa84297 {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body#index .elementor-element-aa84297 .item-description img {
    max-width: 135px !important;
    max-height: 65px !important;
  }

  /* Guide des tailles */
  .tac-size-guide-hint {
    display: block !important;
    margin: 0 0 8px !important;
    color: #777 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .tac-size-guide-scroll {
    padding-bottom: 8px !important;
    border-bottom: 1px solid #ededed !important;
  }

  .tac-size-guide-scroll table {
    min-width: 620px !important;
  }
}

/* END TACSTORE CLIENT CORRECTIONS LOT 3 */

/* TACSTORE COMPACT STICKY HEADER */

/*
 * En descendant :
 * - masque le bandeau téléphone/avis ;
 * - masque la grande zone logo et compte ;
 * - masque la recherche ;
 * - conserve uniquement la navigation principale.
 */
body.tac-header-compact #header .header-nav,
body.tac-header-compact #header .elementor-element-b20b0bc,
body.tac-header-compact #header #leo_search_block_top,
body.tac-header-compact #header .tacstore-mobile-search {
  display: none !important;
}

body.tac-header-compact #header {
  min-height: 0 !important;
  height: auto !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12) !important;
}

body.tac-header-compact #header .header-top,
body.tac-header-compact #header .header-top > .inner {
  min-height: 0 !important;
  height: auto !important;
}

body.tac-header-compact #header .elementor-element-36b6227 {
  margin: 0 !important;
}

body.tac-header-compact #header .elementor-element-36b6227 > .elementor-container {
  min-height: 44px !important;
}

/* Mobile et tablette */
@media (max-width: 991px) {
  body.tac-header-compact #header .elementor-element-36b6227 {
    min-height: 52px !important;
  }

  body.tac-header-compact #header .elementor-element-36b6227 > .elementor-container {
    min-height: 52px !important;
  }

  body.tac-header-compact #header .navbar-header,
  body.tac-header-compact #header .navbar-toggler {
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* END TACSTORE COMPACT STICKY HEADER */


/* TACSTORE MOBILE FINAL LOT 5 */

/* Véritable logo blanc dans le footer */
#footer img.logo,
footer img.logo {
  content: url("/themes/leo_tactiko_elements/assets/img/logo-white.png") !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Corrections spécifiques au catalogue mobile */
@media (max-width: 767px) {

  /* Suppression du titre de catégorie redondant et de ses 400 px */
  body#category .breadcrumb-bg,
  body.page-category .breadcrumb-bg,
  body.category .breadcrumb-bg {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }

  /* La grille reste fixée à deux colonnes, sans sélecteur visible */
  body#category #btn_view_product,
  body.page-category #btn_view_product,
  body.category #btn_view_product {
    display: none !important;
  }

  body#category .js-product-list-top .grid-selecting,
  body.page-category .js-product-list-top .grid-selecting,
  body.category .js-product-list-top .grid-selecting {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Header mobile compact réellement fixe */
  body.tac-header-compact #header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 1050 !important;
    width: 100% !important;
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14) !important;
  }

  body.tac-header-compact #page {
    padding-top: 72px !important;
  }

  /* Masquer le bandeau, la recherche et le menu desktop */
  body.tac-header-compact #header .header-banner,
  body.tac-header-compact #header .header-nav,
  body.tac-header-compact #header #leo_search_block_top,
  body.tac-header-compact .tacstore-mobile-search,
  body.tac-header-compact #header .elementor-element-36b6227 {
    display: none !important;
  }

  /* Conserver la ligne mobile : hamburger, logo et icônes */
  body.tac-header-compact #header .header-top,
  body.tac-header-compact #header .elementor-element-b20b0bc {
    display: block !important;
  }

  body.tac-header-compact #header .header-top {
    min-height: 0 !important;
    height: auto !important;
  }

  body.tac-header-compact #header .elementor-element-b20b0bc {
    max-height: 72px !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  body.tac-header-compact #header .elementor-element-b20b0bc > .elementor-container {
    min-height: 72px !important;
  }

  body.tac-header-compact #header .header-top img.logo {
    width: 122px !important;
    max-width: 38vw !important;
    max-height: 48px !important;
  }
}

/* END TACSTORE MOBILE FINAL LOT 5 */

/* TACSTORE MOBILE QA PATCH LOT 5B */

/* Nouveau logo TAC-STORE rendu en blanc dans le footer */
#footer img.logo,
footer img.logo {
  content: normal !important;
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

/* Corrections finales du catalogue mobile */
@media (max-width: 767px) {

  /* Suppression du fil d’Ariane redondant sur les fiches produit */
  body#product .breadcrumb-bg,
  body.page-product .breadcrumb-bg {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }

  /* Grille toujours fixée à deux colonnes */
  body#category #js-product-list .products,
  body.page-category #js-product-list .products,
  body.category #js-product-list .products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 14px !important;
    row-gap: 24px !important;
    width: 100% !important;
  }

  body#category #js-product-list .products > .ajax_block_product,
  body.page-category #js-product-list .products > .ajax_block_product,
  body.category #js-product-list .products > .ajax_block_product {
    float: none !important;
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* END TACSTORE MOBILE QA PATCH LOT 5B */

/* TACSTORE MOBILE GRID STRUCTURE LOT 5C */

@media (max-width: 767px) {

  body#category #js-product-list .products,
  body.page-category #js-product-list .products,
  body.category #js-product-list .products {
    display: block !important;
    width: 100% !important;
    grid-template-columns: none !important;
    column-gap: normal !important;
    row-gap: normal !important;
  }

  body#category #js-product-list .products > .product_list,
  body.page-category #js-product-list .products > .product_list,
  body.category #js-product-list .products > .product_list {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body#category #js-product-list .product_list > .row,
  body.page-category #js-product-list .product_list > .row,
  body.category #js-product-list .product_list > .row {
    display: flex !important;
    flex-wrap: wrap !important;
    width: auto !important;
    margin-right: -7px !important;
    margin-left: -7px !important;
  }

  body#category #js-product-list .product_list > .row > .ajax_block_product,
  body.page-category #js-product-list .product_list > .row > .ajax_block_product,
  body.category #js-product-list .product_list > .row > .ajax_block_product {
    float: none !important;
    flex: 0 0 50% !important;
    width: 50% !important;
    min-width: 0 !important;
    max-width: 50% !important;
    margin: 0 0 24px !important;
    padding-right: 7px !important;
    padding-left: 7px !important;
    box-sizing: border-box !important;
  }
}

/* END TACSTORE MOBILE GRID STRUCTURE LOT 5C */

/* TACSTORE IPHONE FINAL LOT 6 */

/*
 * L’accueil utilise logo-second, contrairement aux pages internes.
 * On remplace visuellement l’ancien TACTIKO par le SVG TAC-STORE actuel.
 */
#footer img.logo-second,
footer img.logo-second {
  content: url("/img/logo-1795601966.svg") !important;
  filter: brightness(0) invert(1) !important;
  width: 176px !important;
  max-width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
}

@media (max-width: 767px) {

  /* Masquage global du sélecteur de colonnes */
  #btn_view_product {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  #btn_view_product .grid-select {
    display: none !important;
  }

  /* Logo légèrement agrandi dans le header mobile complet */
  #header .header-top img.logo {
    width: 155px !important;
    max-width: 155px !important;
    max-height: 44px !important;
    height: auto !important;
  }

  /*
   * Le burger appartient à la section 36b6227.
   * Elle doit rester visible dans le header compact.
   */
  body.tac-header-compact #header .elementor-element-36b6227 {
    display: block !important;
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 20 !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    overflow: visible !important;
  }

  body.tac-header-compact #header .elementor-element-36b6227 .navbar-header,
  body.tac-header-compact #header .elementor-element-36b6227 .navbar-toggler {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Logo légèrement plus grand dans le header sticky */
  body.tac-header-compact #header .header-top img.logo {
    width: 150px !important;
    max-width: 150px !important;
    max-height: 42px !important;
    height: auto !important;
  }
}

/* END TACSTORE IPHONE FINAL LOT 6 */

/* TACSTORE FIXED COMPACT HEADER V2 */
body.tac-header-compact #header {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 1050 !important;
  width: 100% !important;
  background: #fff !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14) !important;
}

body.tac-header-compact #page {
  padding-top: 44px !important;
}

@media (max-width: 991px) {
  body.tac-header-compact #page {
    padding-top: 72px !important;
  }
}
/* END TACSTORE FIXED COMPACT HEADER V2 */

/* TACSTORE DESKTOP LOGO STICKY V3 */
@media (min-width: 992px) {
  /* Réafficher la barre logo/compte dans le header compact */
  body.tac-header-compact #header .elementor-element-b20b0bc {
    display: block !important;
  }

  /* La recherche reste masquée dans le sticky */
  body.tac-header-compact #header #leo_search_block_top,
  body.tac-header-compact #header .tacstore-mobile-search {
    display: none !important;
  }

  /* Compensation automatique de la hauteur logo + navigation */
  body.tac-header-compact #page {
    padding-top: var(--tac-sticky-placeholder-height, 240px) !important;
  }
}
/* END TACSTORE DESKTOP LOGO STICKY V3 */

/* TACSTORE DESKTOP HEADER ALWAYS FIXED V4 */
@media (min-width: 992px) {
  /*
   * Desktop : header complet fixe dès l'affichage.
   * Aucun changement de structure au premier défilement.
   */
  #header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 1050 !important;
    width: 100% !important;
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12) !important;
  }

  #page {
    padding-top: var(--tac-desktop-header-height, 105px) !important;
  }
}
/* END TACSTORE DESKTOP HEADER ALWAYS FIXED V4 */

/* TACSTORE CHECKOUT CLEANUP V1 */

/* Supprimer la grande bannière uniquement du tunnel de commande */
body#cart .breadcrumb-bg,
body.page-cart .breadcrumb-bg,
body#checkout .breadcrumb-bg,
body.page-order .breadcrumb-bg,
body#order-confirmation .breadcrumb-bg,
body.page-order-confirmation .breadcrumb-bg {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

/* La livraison n'est pas encore choisie dans le panier */
body#cart #cart-subtotal-shipping > span.value,
body.page-cart #cart-subtotal-shipping > span.value {
  max-width: 220px !important;
  color: #666 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  text-align: right !important;
}

body#cart #cart-subtotal-shipping small.value,
body.page-cart #cart-subtotal-shipping small.value {
  display: none !important;
}

/* END TACSTORE CHECKOUT CLEANUP V1 */

/* TACSTORE CHECKOUT SPACING V2 */

/*
 * La grande bannière a été retirée du tunnel.
 * Cet espacement empêche le contenu de passer sous le header fixe.
 */
@media (min-width: 992px) {
  body#cart #wrapper,
  body.page-cart #wrapper,
  body#checkout #wrapper,
  body.page-order #wrapper,
  body#order-confirmation #wrapper,
  body.page-order-confirmation #wrapper {
    padding-top: 32px !important;
  }
}

@media (max-width: 991px) {
  body#cart #wrapper,
  body.page-cart #wrapper,
  body#checkout #wrapper,
  body.page-order #wrapper,
  body#order-confirmation #wrapper,
  body.page-order-confirmation #wrapper {
    padding-top: 18px !important;
  }
}

/* END TACSTORE CHECKOUT SPACING V2 */
