/* ================================
   Mise en page ergonomique responsive
   Pleine largeur + marges fluides
   ================================ */

/* Par défaut (mobile-first) */
body > #wrapper, 
header, 
footer, 
#content,
.main-content,
#main,
#columns,
#left-column,
#right-column,
#products,
#cart,
.section,
.block,
.block-category,
.featured-products,
#footer {
    width: 100%;             /* 100% - 3% de chaque côté */
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

/* Tablettes et écrans normaux */
@media (min-width: 768px) {
    body > #wrapper, 
    header, 
    footer, 
    #content,
    .main-content,
    #main,
    #columns,
    #left-column,
    #right-column,
    #products,
    #cart,
    .section,
    .block,
    .block-category,
    .featured-products,
    #footer {
        width: 100%;         /* 100% - 2.5% de chaque côté */
        margin-left: 0;
        margin-right: 0;
    }
}

/* Très grands écrans */
@media (min-width: 1900px) {
    body > #wrapper, 
    header, 
    footer, 
    #content,
    .main-content,
    #main,
    #columns,
    #left-column,
    #right-column,
    #products,
    #cart,
    .section,
    .block,
    .block-category,
    .featured-products,
    #footer {
        
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}

/* Supprimer les contraintes Bootstrap container */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* 06.05.20 - Webbax | TUTO 100 - quantités dans les listings */
.products .add-to-cart-or-refresh{background-color:#fff;padding:10px;text-align:center;margin-bottom:50px;    flex-direction: column;}
.products .add-to-cart-or-refresh input[name="qty"]{width:30px;text-align:center;}
.products .add-to-cart-or-refresh .fa-minus-circle, .products .add-to-cart-or-refresh .fa-plus-circle{font-size:16px;cursor:pointer;}
#products .product-miniature, .featured-products .product-miniature, .product-accessories .product-miniature, .product-miniature .product-miniature{height:420px;}
#products .thumbnail-container, .featured-products .thumbnail-container, .product-accessories .thumbnail-container, .product-miniature .thumbnail-container{box-shadow:none;}





.availability-list-in-stock{

background-color: green;
border-radius: 5px ;
}

.availability-list-out-of-stock{

background-color: orange;
border-radius: 5px ;
}
.availability-list-obso {
	background-color :black;
	color: white;
	padding: 10px;
}

.availability-list-out-of-stock_cart {
background-color: orange;
border-radius: 15px;
padding: 0px 5px 0px 18px;
}

.cart-grid-right col-lg-4 {
width:20%;
}

.products .add-to-cart-or-refresh .fa-minus-circle, .products .add-to-cart-or-refresh .fa-plus-circle {
    font-size: 20px;
    cursor: pointer;
}

.product-miniature .product-flags li.product-flag {
display:none;
}

.availability-list-in-stock_cart {
  align-self: self-end;
  background-color: green;
  border-radius: 15px;
  padding: 10px 10px;
  margin: 5px;
  color: #fff;          /* texte lisible sur fond vert */
  z-index: 9999;        /* reste au-dessus des autres éléments */
}

.availability-list-out-of-stock_cart {
  align-self: self-end;
  background-color: orange;
  border-radius: 15px;
  padding: 10px 10px;
  margin: 5px;
  color: #fff;          /* texte lisible sur fond vert */
  z-index: 9999;        /* reste au-dessus des autres éléments */
}


.availability-list-in-stock_cart_product {
  align-self: self-end;
  background-color: green;
  border-radius: 15px;
  padding: 10px 10px;
  margin: 5px;
  color: #fff;          /* texte lisible sur fond vert */
        /* reste au-dessus des autres éléments */
}


.product-prices .tax-shipping-delivery-label {
    font-size: .8125rem;
    color: #7a7a7a;
    word-wrap: break-word;
    display: none;
}

/* Flex pour aligner proprement tous les éléments */
.cart-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px; /* espace régulier */
}

/* Boutons - et + */
.cart-flex .fa-minus-circle,
.cart-flex .fa-plus-circle {
  font-size: 18px;
  color: #a00; /* rouge identique */
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Champ quantité */
.cart-flex .product-quantity-input {
  width: 45px;
  height: 28px;
  text-align: center;
  margin: 0;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 3px;
}

/* Bouton panier */
.cart-flex .add-to-cart {
  height: 32px;
  width: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
    background-color: #b10000;
}
.stock_panier_stock{

  align-self: self-end;
    background-color: green;
    border-radius: 5px;
    padding: 0px 10px;
    margin: 5px;
    color: #fff;
}

.out-of-stock{

background-color: orange;
border-radius: 5px;
    padding: 0px 10px;
    margin: 5px;
    color: #fff;
}

.input_quick_order {
 margin-right : 10px;
}

/* ========== STRUCTURE HEADER DESKTOP ========== */

#header, #header .header-top {
  position: sticky;
  top: 0;
  transition: all 0.25s ease;
}

.header-flex-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 15px 0;
  flex-wrap: nowrap;

}


/* Desktop */
.header-flex-wrapper .header-col a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

/* Icône en blanc */
.header-flex-wrapper .header-col a i.material-icons {
  color: #000;  /* couleur icône */
  font-size: 45px;
}

/* Texte en couleur différente */
.header-flex-wrapper .header-col a span {
  color: #333;  /* texte gris foncé */
  font-size: 16px;
  text-align: center;
}





.header-col {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Logo */
.header-col.logo img {
margin-left: 1rem;
  max-height: 70px;
  width: auto;
}
.header-col.search {
  flex: 1 1 auto;
  min-width: 300px;
}
.header-col.reliquats a,
.header-col.orders a,
.header-col.account a,
.header-col.cart a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
  text-decoration: none;
  color: #333;

}

.header-col i.material-icons {
  font-size: 34px;
  margin-bottom: 4px;
}
.header-col.cart {
  min-width: 90px;
}
/* MOBILE GLOBAL */
.header-mobile-wrapper {
  padding: 10px 0;
}

/* Première ligne : menu / logo / panier */
.mobile-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Ligne des liens */
.mobile-links {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.mobile-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
  text-decoration: none;
  color: #333;
}

.mobile-links i {
  font-size: 24px;
  margin-bottom: 4px;
}
.main-menu-wrapper {
  display: flex;
  justify-content: center;
  background: #5e0b0b;
  color: white;
  padding: 8px 0;
}

.main-menu-wrapper .top-menu {
  display: flex;
  justify-content: center;
  gap: 35px;
  color: white;

}


.main-menu-wrapper a {
  color: #fff; /* texte dark red / sombre */
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 15px;
  display: inline-block;
  transition: all 0.3s ease;
}

.main-menu-wrapper a:hover {
  background-color: #fff; /* dark red */
  color: #ffffff;
  border-radius: 4px;
}

#search_widget {
padding: 10px;
min-width: 95%;
}


/* Icônes */
.header-col a i.material-icons {
  color: #fff;      /* icône blanche */
  font-size: 34px;
  line-height: 1;
}

#header a {
color: #fff;   
}
/* Texte sous icône */
.header-col a span {
  color: #333;       /* texte foncé */
  font-size: 14px;
  text-align: center;
  display: block;
}

.header-col a {
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-col a i.material-icons {
  transition: color 0.2s ease, transform 0.2s ease;
  font-size: 26px;
}

.header-col a span {
  transition: color 0.2s ease;
  font-size: 12px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Effet hover B2B : discret mais clair */
.header-col a:hover i.material-icons {
  color: #b10000;          /* léger accent jaune (modifiable) */
  transform: scale(1.12);  /* zoom léger, pro */
}

.header-col a:hover span {
  color: #b10000;
}

/* --- Harmonisation page produit --- */

.product-right-panel.card-euro {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0px 6px 18px rgba(0,0,0,0.07);
  margin-right: 20px;
}

/* Titre produit */
.product-right-panel h1.h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Description courte */
.product-description {
  font-size: 15px;
  line-height: 1.5em;
  margin-bottom: 18px;
}

/* Bloc prix */
.product-prices {
  padding: 15px 20px;
  background: #f8f9fb;
  border-radius: 10px;
  margin: 15px 0;
}

/* Disponibilité */
.availability-box {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 8px;
    width: fit-content;
}

/* En stock */
.availability-box.in-stock {
    background: #eaf7ea;
    color: #2a7a2a;
    border: 1px solid #b9e2b9;
}

/* Obsolète */
.availability-box.obsolete {
    background: #000000a6;
    color: #ffffff;
}

/* Remplacée */
.availability-box.replaced {
    background: #f3b2b2;
    color: #b10000;

}

/* Rupture / réappro */
.availability-box.out-stock {
 background: #ff9a52;
    color: #fff;
    border: 1px solid #ff9a529c;
}

.availability-box .icon {
    font-size: 16px;
    line-height: 1;
}

/* Purchase panel (quantité + bouton) */
.purchase-panel {
  background: #ffffff;
  padding: 20px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  margin: 20px 0;
}

/* Bouton ajouter panier */
button.add-to-cart {
background-color: #b10000;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 16px;
  height: auto;
}

button.add-to-cart i {
  font-size: 24px;
    color: white;
}

/* Images produit */
#product .images-container,
.product-cover {
  border-radius: 12px;
  box-shadow: 0px 5px 20px rgba(0,0,0,0.1);
}

.mt-2
 {
margin-top:0;
    border-radius: 5px;
    width: 80%;
}

.btn-primary:hover {
    background-color: #aaa;
}

.btn-primary:focus {
    background-color: #aaa;
}

.has-discount.product-price {
    color: #b10000;
    font-size: 1.5rem;
    font-weight: 800;
}
.has-discount .discount {
background-color: #aaa;
}

#product #content {
    position: relative;
    max-width: 100%;
    margin-left:20px;
}





/* ===========================
   WRAPPER GLOBAL
=========================== */
.add-to-cart-or-refresh {
  display: flex;
  align-items: center;
}

/* ===========================
   BOUTONS + / -
=========================== */
.add-to-cart-or-refresh a i.fa {
  background: #f8f8f8;
  border: 1px solid #d0d0d0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 4px 0 0 4px; /* corrigé pour le bouton gauche */
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  color: #444;
}

/* Bouton + (à droite) */
.add-to-cart-or-refresh a:last-of-type i.fa {
  border-radius: 0 4px 4px 0;
}

/* Effet hover moderne */
.add-to-cart-or-refresh a i.fa:hover {
  background: #eaeaea;
  border-color: #bbb;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

/* ===========================
   INPUT QUANTITÉ
=========================== */
.product-quantity-input-fiche {
  width: 80px !important;
  height: 36px !important;
  border: 1px solid #d0d0d0;
  border-left: 0; /* collé au bouton - */
  border-right: 0; /* collé au bouton + */
  text-align: center;
  font-size: 1.15rem;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Focus input = style Amazon */
.product-quantity-input-fiche:focus {
  border-color: #888;
}

/* ===========================
   MOBILE
=========================== */
@media (max-width: 480px) {
  .add-to-cart-or-refresh a i.fa {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .product-quantity-input-fiche {
    width: 65px !important;
    height: 38px !important;
  }
}


/* Conteneur global pour aligner input + boutons + add */
.add-to-cart-or-refresh form.product-miniature-form {
    display: flex;
    align-items: center;
    gap: 6px; /* espace entre les éléments */
}

/* Boutons + / - */
.add-to-cart-or-refresh a i.fa {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 4px;
    border: 1px solid #d0d0d0;
    background: #f8f8f8;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover boutons */
.add-to-cart-or-refresh a i.fa:hover {
    background: #eaeaea;
    border-color: #bbb;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

/* Input quantité */
.add-to-cart-or-refresh .product-quantity-input {
    width: 60px;
    height: 36px;
    text-align: center;
    font-size: 1rem;
    border: 1px solid #d0d0d0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
}

/* Bouton Ajouter au panier */
.add-to-cart-or-refresh .btn.add-to-cart {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-left: 12px;
}

/* Responsive mobile */
@media (max-width: 480px) {
  .add-to-cart-or-refresh a i.fa {
      width: 32px;
      height: 32px;
      font-size: 16px;
  }
  .add-to-cart-or-refresh .product-quantity-input {
      width: 50px;
      height: 32px;
  }
  .add-to-cart-or-refresh .btn.add-to-cart {
      height: 32px;
      padding: 0 10px;
      font-size: 0.85rem;
  }
}


.logo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  margin-bottom: 40px;
}

.logo-table td {
  width: 16%; /* 6 logos par ligne */
  padding: 10px;
  vertical-align: top;
}

.logo-table img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border: 1px solid #ddd;   /* contour léger */
  border-radius: 8px;       /* coins arrondis */
  transition: transform 0.2s;
}

.logo-table img:hover {
  transform: scale(1.05);   /* petit zoom au hover */
}

.logo-table a {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}
.logo-table a:hover {
  color: #007bff;  /* texte bleu au hover */
}

.text-table {
  width: 90%;
  margin: 0 auto 40px auto;
  border-collapse: collapse;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.text-table th, .text-table td {
  padding: 12px 10px;
  text-align: left;
  border: 1px solid #ddd;
}

.text-table th {
  background-color: #b10000;
  font-size: 18px;
  color: #fff;
  font-weight: bold;
}

.text-table td {
  background-color: #fff;
  font-size: 14px;
}

.text-table a {
  color: #b10000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s, transform 0.2s;
}

.text-table a:hover {
  color: #7a7a7a;
  transform: translateX(3px);
}

a.logout.hidden-sm-down {
  color: black !important ;
}

.cart-product-image.text-center{
  width: 75px;
  height: 75px;
  object-fit: cover; /* garde le ratio et crop si nécessaire */
}

.top-menu a[data-depth="1"], .top-menu a[data-depth="2"]{
color: darkred !important;
}


.menu-category-icon {
    width: 120px;      /* taille de ton choix */
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto;   /* centre l’icône dans le lien */
}

.product-miniature .highlighted-informations {
       background: #d9d9d9;
}

.product-header-flex {
  display: flex;
  align-items: center; /* aligne référence+désignation et image sur la même ligne */
  justify-content: space-between;
  gap: 16px; /* espace entre texte et image */
}

.product-header-title {
  flex: 1; /* occupe tout l’espace restant à gauche */
}

.product-header-title h1 {
  margin: 0; /* évite le décalage vertical */
  font-size: 1.5rem; /* à adapter si tu veux plus grand/petit */
}

.product-category-image img {
  max-height: 120px; /* limite la hauteur de l’image */
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}

.eclates-app {
  display: flex;
  gap: 20px;
  min-height: 650px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* SIDEBAR */
.eclates-sidebar {
  width: 320px;
  padding: 16px;
  border-right: 1px solid #eee;
  background: #fafafa;
}

.eclates-title {
  margin: 0 0 16px;
  font-size: 18px;
}

.eclates-field {
  margin-bottom: 14px;
}

.eclates-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  opacity: 0.8;
}

.eclates-select,
.eclates-search {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* LISTE PDF */
.eclates-file-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  max-height: 420px;
  overflow-y: auto;
}

.eclates-file-list li {
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  background: #fff;
  border: 1px solid #eee;
  transition: background 0.2s, border 0.2s;
}

.eclates-file-list li:hover {
  background: #f1f5ff;
  border-color: #c7d2fe;
}

/* VIEWER */
.eclates-viewer {
  position: relative;
  flex: 1;
  background: #f7f7f7;
}

.eclates-pdf {
  width: 100%;
  height: 100%;
  min-height: 650px;
  border: none;
}

/* LOADER */
.eclates-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  z-index: 5;
  font-size: 15px;
  font-weight: 500;
}
/* Slider full-width */
.fullwidth-slider {
  width: 100vw;                      /* largeur totale de la fenêtre */
  margin-left: calc(-50vw + 50%);    /* sort du container central */
  margin-right: calc(-50vw + 50%);
  max-width: 100%;                    /* jamais plus que l'écran */
}

.fullwidth-slider ul.rslides {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fullwidth-slider ul.rslides li.slide img {
  width: 100%;                        /* image responsive */
  height: auto;
  display: block;
  object-fit: cover;                   /* pour remplir le conteneur sans déformation */
}

.carousel {
    margin-bottom: -0.5rem;
    margin-top: -25px;
}

#wrapper {
    padding: 1.25rem;
}


body#index #wrapper {
  padding-left: 0;
  padding-right: 0;

}

#product #content {
  margin-left: 0;
  }