/*
 * mobile-home-v2.css
 * Page d'accueil mobile MecaSystem - basé sur les templates réels du thème.
 * À charger après mobile.css et après les CSS modules.
 */

@media screen and (max-width: 767px) {

  /* Base accueil */
  body#index,
  body#index #page,
  body#index .columns-container,
  body#index #columns,
  body#index #center_column {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  body#index .container,
  body#index .row {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
  }

  /* Slider principal */
  body#index #homepage-slider {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 14px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body#index #homeslider,
  body#index #homeslider li,
  body#index .homeslider-container,
  body#index #homepage-slider .bx-wrapper,
  body#index #homepage-slider .bx-viewport {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  body#index #homeslider img,
  body#index .homeslider-container img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  body#index .homeslider-description {
    display: none !important;
  }

  /* Les deux bandeaux catalogues qui sont en inline style float:left/right;width:47% */
  body#index #homepage-slider > .bx-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px auto 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  body#index #homepage-slider > .bx-wrapper > a {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  body#index #homepage-slider > .bx-wrapper > a img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Onglets accueil */
  body#index #home-page-tabs {
    width: 100% !important;
    margin: 10px 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    border: 0 !important;
  }

  body#index #home-page-tabs > li {
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body#index #home-page-tabs > li > a {
    display: block !important;
    width: 100% !important;
    padding: 12px 10px !important;
    font-size: 16px !important;
    line-height: 20px !important;
    text-align: center !important;
    background: #111 !important;
    color: #fff !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  body#index .tab-content {
    width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* Produits de l'accueil : la règle d'origine force 2 colonnes entre 480 et 767 */
  body#index ul.product_list,
  body#index ul.product_list.grid,
  body#index ul.product_list.tab-pane {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 10px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  body#index ul.product_list.grid > li,
  body#index ul.product_list.tab-pane > li,
  body#index #homefeatured > li {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  body#index ul.product_list.grid > li .product-container {
    width: 100% !important;
    min-height: 0 !important;
    display: table !important;
    table-layout: fixed !important;
    padding: 10px !important;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.15) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body#index ul.product_list.grid > li .left-block {
    display: table-cell !important;
    width: 92px !important;
    vertical-align: top !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body#index ul.product_list.grid > li .right-block {
    display: table-cell !important;
    width: auto !important;
    vertical-align: top !important;
    float: none !important;
    padding: 0 0 0 10px !important;
    text-align: left !important;
  }

  body#index ul.product_list.grid > li .product-image-container {
    margin: 0 !important;
    padding: 0 !important;
    width: 92px !important;
    max-width: 92px !important;
    border: 0 !important;
  }

  body#index ul.product_list.grid > li .product-image-container img,
  body#index ul.product_list.grid > li .product_img_link img {
    width: auto !important;
    max-width: 92px !important;
    max-height: 92px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain !important;
  }

  body#index ul.product_list.grid > li .product-container h5 {
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 0 6px 0 !important;
  }

  body#index ul.product_list.grid > li .product-name,
  body#index ul.product_list.grid > li .product-name a {
    display: block !important;
    width: 100% !important;
    font-size: 14px !important;
    line-height: 18px !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    color: #222 !important;
  }

  body#index ul.product_list.grid > li .content_price {
    position: static !important;
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    margin: 6px 0 0 0 !important;
    background: none !important;
    text-align: left !important;
  }

  body#index ul.product_list.grid > li .button-container,
  body#index ul.product_list.grid > li .functional-buttons,
  body#index ul.product_list.grid > li .comments_note,
  body#index ul.product_list.grid > li .product-desc {
    display: none !important;
  }

  body#index .new-box,
  body#index .sale-box {
    display: none !important;
  }

  /* Blocs HTML de modules d'accueil courants */
  body#index #htmlcontent_home,
  body#index .htmlcontent-home,
  body#index #htmlcontent_home ul,
  body#index .htmlcontent-home ul,
  body#index #htmlcontent_home li,
  body#index .htmlcontent-home li,
  body#index .hook_home,
  body#index .clearfix > .block,
  body#index #facebook_block,
  body#index #special_block_right,
  body#index #new-products_block_right,
  body#index #best-sellers_block_right {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    margin: 0 0 14px 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
  }

  body#index #htmlcontent_home img,
  body#index .htmlcontent-home img,
  body#index .hook_home img,
  body#index #facebook_block img,
  body#index #special_block_right img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Cartes / images personnalisées en accueil, même si les modules injectent du HTML non standard */
  body#index #center_column div[style*="float:left"],
  body#index #center_column div[style*="float: left"],
  body#index #center_column a[style*="float:left"],
  body#index #center_column a[style*="float: left"],
  body#index #center_column a[style*="float:right"],
  body#index #center_column a[style*="float: right"] {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 0 12px 0 !important;
    box-sizing: border-box !important;
  }

  /* Footer page accueil */
  body#index .footer-container,
  body#index #footer,
  body#index #footer .row,
  body#index #footer .footer-block,
  body#index #footer #block_meca_footer,
  body#index #footer #social_block,
  body#index #footer .blockcategories_footer {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    margin: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }

  body#index #footer h4,
  body#index #footer .title_block {
    font-size: 16px !important;
    line-height: 22px !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 12px 0 !important;
  }

  body#index #footer ul,
  body#index #footer .toggle-footer {
    display: block !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 0 14px !important;
  }

  body#index #footer li,
  body#index #footer a,
  body#index #footer p {
    font-size: 14px !important;
    line-height: 20px !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  body#index .image_paiement,
  body#index .image_paiement center {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin: 10px 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  body#index .image_paiement img {
    max-width: 80px !important;
    height: auto !important;
    margin: 4px !important;
  }
}


/* =========================================================
   PATCH V3 - contentbox2 + header compte/panier compact
   À laisser tout en bas du fichier.
   ========================================================= */

@media screen and (max-width: 767px) {

  /* HEADER : le thème utilise #header_user_info et .shopping_cart */
  header #contenant_header .bloc_icone,
  header .bloc_icone {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 10px 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  header #header_user_info,
  header .shopping_cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 48% !important;
    min-height: 42px !important;
    height: 42px !important;
    float: none !important;
    position: static !important;
    margin: 0 !important;
    padding: 4px 6px !important;
    box-sizing: border-box !important;
    text-align: left !important;
    background: rgba(255,255,255,.88) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }

  header #header_user_info > a,
  header .shopping_cart > a:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #000 !important;
    font-size: 11px !important;
    line-height: 13px !important;
    text-align: left !important;
    text-shadow: none !important;
    white-space: normal !important;
  }

  header #header_user_info img,
  header .shopping_cart img {
    width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    max-height: 24px !important;
    margin: 0 !important;
    flex: 0 0 24px !important;
    object-fit: contain !important;
  }

  header #header_user_info br,
  header .shopping_cart br {
    display: none !important;
  }

  header #header_user_info b,
  header .shopping_cart b {
    display: inline !important;
    font-size: 11px !important;
    line-height: 13px !important;
    padding: 0 !important;
    color: #000 !important;
  }

  header .shopping_cart .ajax_cart_total,
  header .shopping_cart .ajax_cart_product_txt,
  header .shopping_cart .ajax_cart_product_txt_s,
  header .shopping_cart .ajax_cart_no_product {
    display: none !important;
  }

  header .cart_block {
    display: none !important;
  }


  /* CONTENTBOX2 : version carte mobile */
  .contentbox2,
  #contentbox2,
  body#index .contentbox2,
  body#index #contentbox2 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    margin: 12px 0 !important;
    box-sizing: border-box !important;
    clear: both !important;
  }

  .contentbox2 > *,
  #contentbox2 > *,
  body#index .contentbox2 > *,
  body#index #contentbox2 > * {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 0 14px 0 !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.14) !important;
    text-align: center !important;
    overflow: hidden !important;
  }

  .contentbox2 img,
  #contentbox2 img,
  body#index .contentbox2 img,
  body#index #contentbox2 img {
    width: auto !important;
    max-width: 190px !important;
    height: auto !important;
    max-height: 90px !important;
    display: block !important;
    margin: 0 auto 10px !important;
    object-fit: contain !important;
  }

  .contentbox2 p,
  #contentbox2 p,
  .contentbox2 div,
  #contentbox2 div,
  body#index .contentbox2 p,
  body#index #contentbox2 p {
    font-size: 14px !important;
    line-height: 20px !important;
    text-align: left !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }


  /* SLIDE / BANDEAUX : une seule ligne horizontale */
  body#index #homepage-slider,
  body#index .homeslider-container {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body#index #homepage-slider > .bx-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
  }

  body#index #homepage-slider > .bx-wrapper > a,
  body#index #homepage-slider > .bx-wrapper > div {
    flex: 0 0 82% !important;
    width: 82% !important;
    max-width: 82% !important;
    float: none !important;
    margin: 0 !important;
    scroll-snap-align: start !important;
  }

  body#index #homepage-slider > .bx-wrapper img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 10px !important;
  }
}


/* =========================================================
   PATCH V4 - slider catalogues + blocs sociétés fond rouge
   À laisser tout en bas du fichier.
   ========================================================= */

@media screen and (max-width: 767px) {

  /* SLIDER / BANDEAUX CATALOGUES : forcer les 2 bandeaux sur la même ligne */
  body#index #homepage-slider > div.bx-wrapper[style*="820px"],
  body#index #homepage-slider > .bx-wrapper:last-child,
  body#index #homepage-slider > .bx-wrapper:last-of-type {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    margin: 8px 0 12px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  body#index #homepage-slider > div.bx-wrapper[style*="820px"] > a,
  body#index #homepage-slider > .bx-wrapper:last-child > a,
  body#index #homepage-slider > .bx-wrapper:last-of-type > a {
    float: none !important;
    display: block !important;
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  body#index #homepage-slider > div.bx-wrapper[style*="820px"] > a img,
  body#index #homepage-slider > .bx-wrapper:last-child > a img,
  body#index #homepage-slider > .bx-wrapper:last-of-type > a img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 8px !important;
  }

  /* Le vrai bxSlider ne doit pas devenir flex */
  body#index #homepage-slider .bx-wrapper .bx-viewport,
  body#index #homepage-slider .bx-wrapper #homeslider,
  body#index #homepage-slider .bx-wrapper .homeslider-container {
    display: block !important;
  }


  /* CONTENTBOX2 / BLOCS SOCIETES SUR FOND ROUGE */
  body#index .contentbox2,
  body#index #contentbox2,
  body#index .content_box2,
  body#index #content_box2,
  body#index .content-box2,
  body#index #content-box2,
  body#index [class*="contentbox2"],
  body#index [id*="contentbox2"],
  body#index [class*="content_box2"],
  body#index [id*="content_box2"],
  body#index [class*="content-box2"],
  body#index [id*="content-box2"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    float: none !important;
    margin: 14px 0 !important;
    padding: 12px 10px !important;
    box-sizing: border-box !important;
    background: #b3112a !important;
    overflow: hidden !important;
  }

  body#index .contentbox2 > *,
  body#index #contentbox2 > *,
  body#index .content_box2 > *,
  body#index #content_box2 > *,
  body#index .content-box2 > *,
  body#index #content-box2 > *,
  body#index [class*="contentbox2"] > *,
  body#index [id*="contentbox2"] > *,
  body#index [class*="content_box2"] > *,
  body#index [id*="content_box2"] > *,
  body#index [class*="content-box2"] > *,
  body#index [id*="content-box2"] > * {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 0 12px 0 !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.16) !important;
    text-align: center !important;
    overflow: hidden !important;
  }

  body#index .contentbox2 > *:last-child,
  body#index #contentbox2 > *:last-child,
  body#index [class*="contentbox2"] > *:last-child,
  body#index [id*="contentbox2"] > *:last-child {
    margin-bottom: 0 !important;
  }

  body#index .contentbox2 img,
  body#index #contentbox2 img,
  body#index .content_box2 img,
  body#index #content_box2 img,
  body#index .content-box2 img,
  body#index #content-box2 img,
  body#index [class*="contentbox2"] img,
  body#index [id*="contentbox2"] img,
  body#index [class*="content_box2"] img,
  body#index [id*="content_box2"] img,
  body#index [class*="content-box2"] img,
  body#index [id*="content-box2"] img {
    width: auto !important;
    max-width: 190px !important;
    height: auto !important;
    max-height: 95px !important;
    display: block !important;
    margin: 0 auto 10px !important;
    object-fit: contain !important;
  }

  body#index .contentbox2 p,
  body#index #contentbox2 p,
  body#index .content_box2 p,
  body#index #content_box2 p,
  body#index .content-box2 p,
  body#index #content-box2 p,
  body#index [class*="contentbox2"] p,
  body#index [id*="contentbox2"] p,
  body#index [class*="content_box2"] p,
  body#index [id*="content_box2"] p,
  body#index [class*="content-box2"] p,
  body#index [id*="content-box2"] p {
    font-size: 14px !important;
    line-height: 20px !important;
    text-align: left !important;
    color: #222 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
}


/* =========================================================
   PATCH V5 - correctifs forts : contentbox2 + slides accueil
   À laisser tout en bas du fichier.
   ========================================================= */

@media screen and (max-width: 767px) {

  /* =======================================================
     SLIDER ACCUEIL : toutes les slides sur une ligne scrollable
     ======================================================= */

  body#index #homepage-slider {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 0 10px !important;
    margin: 0 0 14px 0 !important;
    box-sizing: border-box !important;
  }

  body#index #homepage-slider .bx-wrapper,
  body#index #homepage-slider .bx-viewport {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
  }

  body#index #homeslider {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    transform: none !important;
    left: auto !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 0 8px 0 !important;
    overflow: visible !important;
    scroll-snap-type: x mandatory !important;
    box-sizing: border-box !important;
  }

  body#index #homeslider > li,
  body#index #homeslider .homeslider-container {
    float: none !important;
    display: block !important;
    flex: 0 0 84% !important;
    width: 84% !important;
    max-width: 84% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
  }

  body#index #homeslider > li img,
  body#index #homeslider .homeslider-container img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 10px !important;
  }

  body#index #homepage-slider .bx-controls,
  body#index #homepage-slider .bx-controls-direction,
  body#index #homepage-slider .bx-pager {
    display: none !important;
  }

  /* Les 2 bandeaux catalogues sous le slider : même ligne */
  body#index #homepage-slider > .bx-wrapper[style*="820px"] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 10px 0 0 0 !important;
  }

  body#index #homepage-slider > .bx-wrapper[style*="820px"] > a {
    float: none !important;
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body#index #homepage-slider > .bx-wrapper[style*="820px"] > a img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 8px !important;
  }


  /* =======================================================
     CONTENTBOX2 / BLOCS SOCIETES : forcer une carte par ligne
     ======================================================= */

  body#index .contentbox2,
  body#index #contentbox2,
  body#index .content_box2,
  body#index #content_box2,
  body#index .content-box2,
  body#index #content-box2,
  body#index [class*="contentbox2"],
  body#index [id*="contentbox2"],
  body#index [class*="content_box2"],
  body#index [id*="content_box2"],
  body#index [class*="content-box2"],
  body#index [id*="content-box2"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 14px 0 !important;
    padding: 12px 10px !important;
    background: #b3112a !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* On cible fortement les colonnes internes, même si le module utilise table/inline-block/col */
  body#index .contentbox2 > *,
  body#index #contentbox2 > *,
  body#index .contentbox2 li,
  body#index #contentbox2 li,
  body#index .contentbox2 .col-xs-1,
  body#index .contentbox2 .col-xs-2,
  body#index .contentbox2 .col-xs-3,
  body#index .contentbox2 .col-xs-4,
  body#index .contentbox2 .col-xs-5,
  body#index .contentbox2 .col-xs-6,
  body#index .contentbox2 .col-xs-7,
  body#index .contentbox2 .col-xs-8,
  body#index .contentbox2 .col-xs-9,
  body#index .contentbox2 .col-xs-10,
  body#index .contentbox2 .col-xs-11,
  body#index .contentbox2 .col-xs-12,
  body#index [class*="contentbox2"] > *,
  body#index [id*="contentbox2"] > *,
  body#index [class*="contentbox2"] li,
  body#index [id*="contentbox2"] li,
  body#index [class*="contentbox2"] [class*="col-"],
  body#index [id*="contentbox2"] [class*="col-"],
  body#index [class*="content_box2"] > *,
  body#index [id*="content_box2"] > *,
  body#index [class*="content-box2"] > *,
  body#index [id*="content-box2"] > * {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 0 12px 0 !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.16) !important;
    text-align: center !important;
    overflow: hidden !important;
  }

  body#index .contentbox2 img,
  body#index #contentbox2 img,
  body#index [class*="contentbox2"] img,
  body#index [id*="contentbox2"] img,
  body#index [class*="content_box2"] img,
  body#index [id*="content_box2"] img,
  body#index [class*="content-box2"] img,
  body#index [id*="content-box2"] img {
    display: block !important;
    width: auto !important;
    max-width: 190px !important;
    height: auto !important;
    max-height: 90px !important;
    object-fit: contain !important;
    margin: 0 auto 10px !important;
  }

  body#index .contentbox2 p,
  body#index #contentbox2 p,
  body#index .contentbox2 div,
  body#index #contentbox2 div,
  body#index [class*="contentbox2"] p,
  body#index [id*="contentbox2"] p,
  body#index [class*="content_box2"] p,
  body#index [id*="content_box2"] p,
  body#index [class*="content-box2"] p,
  body#index [id*="content-box2"] p {
    width: auto !important;
    max-width: 100% !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: #222 !important;
    text-align: left !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body#index .contentbox2 a,
  body#index #contentbox2 a,
  body#index [class*="contentbox2"] a,
  body#index [id*="contentbox2"] a {
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
}


/* =========================================================
   PATCH V7 - correction slider visible + header plus compact
   Remplace la logique V6. À charger après mobile-home-v5.css
   ou utiliser directement ce fichier complet.
   ========================================================= */

@media screen and (max-width: 767px) {

  /* =========================
     HEADER COMPACT - ciblage plus fort
     ========================= */

  #header,
  header,
  #contenant_header,
  header .container,
  header .row,
  #header .container,
  #header .row {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  #header_logo {
    padding-top: 8px !important;
    padding-bottom: 4px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  #header_logo img {
    width: 62% !important;
    max-width: 220px !important;
    height: auto !important;
  }

  .bloc_icone,
  #contenant_header .bloc_icone {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #header_user_info,
  .shopping_cart {
    height: 34px !important;
    min-height: 34px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 3px 6px !important;
  }

  #header_user_info img,
  .shopping_cart img {
    width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    max-height: 20px !important;
  }

  #header_user_info a,
  .shopping_cart a {
    font-size: 10px !important;
    line-height: 12px !important;
  }


  /* =========================
     SLIDER VISIBLE ET LISIBLE
     ========================= */

  body#index #homepage-slider {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 14px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body#index #homepage-slider .bx-wrapper,
  body#index #homepage-slider .bx-viewport {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body#index #homeslider {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    left: 0 !important;
    position: relative !important;
  }

  body#index #homeslider > li,
  body#index #homeslider .homeslider-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  body#index #homeslider > li:not(:first-child),
  body#index #homeslider .homeslider-container:not(:first-child) {
    display: none !important;
  }

  body#index #homeslider img,
  body#index #homeslider > li img,
  body#index #homeslider .homeslider-container img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    border-radius: 12px !important;
  }

  body#index #homepage-slider .bx-controls,
  body#index #homepage-slider .bx-controls-direction,
  body#index #homepage-slider .bx-pager {
    display: none !important;
  }

  /* Si BXSlider clone les slides, on ne garde pas les clones visibles */
  body#index #homeslider .bx-clone {
    display: none !important;
  }


  /* =========================
     BANDEAUX SOUS SLIDER : pleine largeur lisible
     ========================= */

  body#index #homepage-slider > .bx-wrapper[style*="820px"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    margin: 12px 0 0 0 !important;
    padding: 0 !important;
  }

  body#index #homepage-slider > .bx-wrapper[style*="820px"] > a {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
  }

  body#index #homepage-slider > .bx-wrapper[style*="820px"] > a img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
  }
}
