
/* Masque l’onglet Informations parasite du footer */
#footer .links,
#footer .footer-container .links,
#footer .collapse-icons,
#footer .navbar-toggler {
  display: none !important;
}

/* ===== Header Performances Sécurité ===== */

/* Un peu plus de hauteur */
#header .header-top {
    padding: 15px 0;
}

/* Agrandissement du logo */
#header .logo {
    max-height: 95px !important;
    width: auto;
}

/* Le conteneur du logo ne rétrécit pas */
#_desktop_logo {
    display: flex;
    align-items: center;
}

/* Logo sticky un peu plus petit */
.header-sticky .header-nav.fixed #header .logo,
.header-sticky #header .logo {
    max-height: 70px !important;
}
/* Pastille quantité panier : rouge au lieu de jaune */
#_desktop_cart .cart-products-count,
#_mobile_cart .cart-products-count,
.header .cart-products-count,
.shopping-cart .cart-products-count,
.ajax_cart_quantity {
  background: #d62828 !important;
  color: #ffffff !important;
  border-color: #d62828 !important;
}

/* Page recherche : forcer l'affichage des résultats */
#products,
#products #js-product-list,
#products #js-product-list .products,
#products .products,
#products .product-miniature,
#products .js-product-miniature,
#products .ps-grid-product,
#products .thumbnail-container,
#products .ps-grid-product-link {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#products #js-product-list .products {
    display: flex !important;
    flex-wrap: wrap !important;
}

#products .product-miniature,
#products .ps-grid-product {
    position: relative !important;
    height: auto !important;
    min-height: 1px !important;
    overflow: visible !important;
}

#products .ps-grid-product-link {
    height: 100% !important;
}

#products .ps-grid-product-image img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Page recherche : on évite les colonnes parasites */
#left-column,
.left-column,
#right-column,
.right-column {
    display: none !important;
}

#content-wrapper {
    width: 100% !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

/* Correction recherche : ne pas masquer le contenu principal */
body#search #content-wrapper,
body#search #content-wrapper.left-column,
body#search #content-wrapper.right-column,
body#search #content-wrapper.left-right-column,
body.page-search #content-wrapper,
body.page-search #content-wrapper.left-column,
body.page-search #content-wrapper.right-column,
body.page-search #content-wrapper.left-right-column,
#content-wrapper.left-column,
#content-wrapper.right-column,
#content-wrapper.left-right-column {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

/* Recherche : masquer uniquement les vraies colonnes latérales */
body#search aside#left-column,
body#search div#left-column,
body#search aside#right-column,
body#search div#right-column,
body.page-search aside#left-column,
body.page-search div#left-column,
body.page-search aside#right-column,
body.page-search div#right-column {
    display: none !important;
}

/* Recherche : forcer la grille produits visible */
body#search #products,
body#search #js-product-list,
body#search #js-product-list .products,
body#search #js-product-list .product-miniature,
body#search #js-product-list .ps-grid-product,
body.page-search #products,
body.page-search #js-product-list,
body.page-search #js-product-list .products,
body.page-search #js-product-list .product-miniature,
body.page-search #js-product-list .ps-grid-product {
    visibility: visible !important;
    opacity: 1 !important;
}

body#search #js-product-list .products,
body.page-search #js-product-list .products {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* Correction après recherche : ne pas impacter la home / slider */
body#index #content-wrapper,
body#index #wrapper {
    max-width: none !important;
}

body#index #left-column,
body#index #right-column,
body#index .left-column,
body#index .right-column {
    display: initial !important;
}

/* Home : conserver le format du slider / visuel hero */
body#index .carousel,
body#index .carousel-inner,
body#index .carousel-item,
body#index .homeslider-container,
body#index .homeslider,
body#index .ttloading-bg,
body#index .tt-slider,
body#index .tt-slider-wrapper {
    overflow: hidden !important;
}

body#index .carousel img,
body#index .homeslider img,
body#index .tt-slider img,
body#index .tt-slider-wrapper img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Recherche : correction maintenue mais uniquement sur la page recherche */
body#search #content-wrapper,
body#search #content-wrapper.left-column,
body#search #content-wrapper.right-column,
body#search #content-wrapper.left-right-column,
body.page-search #content-wrapper,
body.page-search #content-wrapper.left-column,
body.page-search #content-wrapper.right-column,
body.page-search #content-wrapper.left-right-column {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

body#search aside#left-column,
body#search div#left-column,
body#search aside#right-column,
body#search div#right-column,
body.page-search aside#left-column,
body.page-search div#left-column,
body.page-search aside#right-column,
body.page-search div#right-column {
    display: none !important;
}
