/* On réduit la largeur du bloc qui contient l'image */
.product__images.js-images-container {
    max-width: 500px !important; /* Force la largeur max (ajustez ce chiffre au besoin) */
    margin: 0 auto !important;   /* Centre le bloc si la colonne est plus large */
}

/* On force l'image à s'adapter à ce nouveau bloc plus petit */
.product__images.js-images-container .product-cover img {
    width: 100% !important;
    height: auto !important;
    max-height: 500px !important; /* Évite que l'image soit trop haute */
    object-fit: contain !important; /* Garde les proportions sans déformer */
}




/* ===== MENU DÉROULANT VERTICAL ===== */

/* Parent en position relative */
li.js-menu-item-lvl-0 {
  position: relative !important;
}

/* Sous-menu positionné sous le parent */
li.js-menu-item-lvl-0 .menu-container.js-sub-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: auto !important;
  min-width: 200px !important;
  padding-top: 0 !important;
}

/* Neutraliser le container Bootstrap */
li.js-menu-item-lvl-0 .menu-container.js-sub-menu .container {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Réduire le ul + supprimer le gap */
li.js-menu-item-lvl-0 .menu-container.js-sub-menu ul.row {
  width: auto !important;
  margin: 0 !important;
  row-gap: 0 !important;
  flex-direction: column !important;
}

/* Items verticaux */
.row-cols-4 > * {
  flex: 0 0 auto !important;
  width: 100% !important;
}

/* Style des liens */
.menu-container.js-sub-menu .main-menu__tree__link.dropdown-item {
  display: block;
  padding: 8px 20px;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.menu-container.js-sub-menu .main-menu__tree__link.dropdown-item:hover {
  background-color: #f5f5f5;
  color: #0066cc;
  padding-left: 28px;
  transition: all 0.2s ease;
}




@media (max-width: 767px) {
    /* On cible le conteneur du slider sur mobile */
    .carousel, .carousel-inner, .carousel-item {
        height: auto !important;
        min-height: inherit !important;
    }

    .carousel-item img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Force l'affichage de l'image entière */
    }
    
    /* Optionnel : Ajuster la position des flèches ou du texte s'ils cachent l'image */
    .carousel-caption {
        position: relative;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5); /* Fond semi-transparent pour lire le texte */
        padding: 10px;
    }
}




/* ================================
   SLIDER ACCUEIL
   RESPONSIVE & FLUIDE
   ================================ */
   
.carousel-item {
  transition: transform 0.6s ease-in-out;
}

/* Desktop */
#home-slider {
    height: 360px;
}

/* Désactiver le ratio Bootstrap */
#home-slider.ratio {
    aspect-ratio: unset !important;
}

/* Structure */
#home-slider .carousel,
#home-slider .carousel-inner,
#home-slider .carousel-item {
    height: 100%;
}

/* Image entière */
#home-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Indicateurs */
#home-slider .carousel-indicators {
    bottom: 12px;
}

/* Responsive mobile & tablette */
@media (max-width: 992px) {
    #home-slider {
        height: 28vw; /* basé sur largeur écran */
        min-height: 160px;
        max-height: 260px;
    }
}

/* Mobile */

@media (max-width: 576px) {
    #home-slider .carousel-control-prev,
    #home-slider .carousel-control-next {
        top: 65% !important; /* descend les flèches */
        transform: translateY(-50%);
    }
}


/* Fléches sur les côtés du slider plus visible */

#home-slider .carousel-control-prev,
#home-slider .carousel-control-next {
  opacity: 1 !important;
}

#home-slider .carousel-control-prev-icon,
#home-slider .carousel-control-next-icon {
  filter: invert(1) brightness(10) !important;
  width: 30px !important;
  height: 30px !important;
}
/* Flèches carrousel visibles sur fond noir */
.carousel-control-prev,
.carousel-control-next {
  opacity: 1 !important;
  width: 50px !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border-radius: 4px !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) brightness(10) !important;
  width: 30px !important;
  height: 30px !important;
}

/* Au survol */
.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}





/* Ciblage ultra-précis pour tronquer les liens dans l'accordéon de description */
#product-description-collapse .rich-text a {
    display: inline-block;
    max-width: 100%;          /* Empêche le lien de sortir du div */
    vertical-align: bottom;
    white-space: nowrap;      /* Force le lien sur une seule ligne */
    overflow: hidden;         /* Cache le surplus */
    text-overflow: ellipsis;  /* Ajoute les "..." */
    text-decoration: underline;
}

/* Sécurité : si le lien n'est pas une balise <a> mais du texte brut */
#product-description-collapse .rich-text {
    word-break: break-word;   /* Casse les mots trop longs au bord du cadre */
    overflow-wrap: break-word;
}






/* On cible la grille de la liste de produits spécifiquement */
#index .products.row .product-miniature {
    flex: 0 0 20% !important;
    max-width: 20% !important;
}

/* Ajustement pour les tablettes (3 par ligne) */
@media (max-width: 991px) {
    #index .products.row .product-miniature {
        flex: 0 0 33.33% !important;
        max-width: 33.33% !important;
    }
}

/* Ajustement pour mobiles (2 par ligne) */
@media (max-width: 575px) {
    #index .products.row .product-miniature {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}


/* Option : Aligne le contenu à droite (prix/bouton) plus haut sur ordinateur */
@media (min-width: 992px) {
    .product-container .row {
        align-items: flex-start !important;
    }
}

.optional {
  font-weight: 600;
  color: #0ea5e9; /* bleu pro */
}


/* slider banniere */
.ratio {
    position: relative;
    width: 68%;
    margin: 0 auto;
}


/* On réduit la colonne de gauche (l'image) */
.product__left.col-xl-7 {
    flex: 0 0 55% !important; /* On descend de 58% à 45% */
    max-width: 55% !important;
}

/* On augmente la colonne de droite (le menu) */
.product__col.col-xl-5 {
    flex: 0 0 45% !important; /* On monte de 42% à 55% */
    max-width: 45% !important;
    padding-left: 0px !important; /* On réduit l'espace vide interne */
}

/* Force l'alignement côte à côte sans retour à la ligne */
.product-container .row {
    display: flex !important;
    flex-wrap: nowrap !important;
}

/* Optionnel : Colle l'image vers la droite de son bloc pour toucher le menu */
.product-cover {
    text-align: right !important;
}



/* Décale le bouton précédent vers la gauche */
.carousel-control-prev {
    left: -0px !important; /* Ajuste la valeur (ex: -30px) si c'est trop loin */
    width: auto !important;
}

/* Décale le bouton suivant vers la droite */
.carousel-control-next {
    right: -0px !important;
    width: auto !important;
}
/* On force le bouton à être un carré fixe au lieu de prendre toute la hauteur */
.carousel-control-prev,
.carousel-control-next {
    width: 40px !important;       /* Largeur du cercle */
    height: 40px !important;      /* Hauteur identique pour un cercle parfait */
    background-color: rgba(0, 0, 0, 0.2) !important; /* Fond gris translucide */
    border-radius: 50% !important; /* Donne la forme ronde */
    top: 50% !important;           /* Centre verticalement */
    transform: translateY(-50%) !important; /* Ajustement précis du centrage */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* On s'assure que l'icône à l'intérieur ne déforme pas le cercle */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px !important;
    height: 20px !important;
    background-size: 100% 100% !important;
    filter: invert(1) brightness(0) !important; /* Flèche noire */
}




/* On force l'affichage à 4 colonnes sur les écrans d'ordinateur */
@media (min-width: 992px) {
    #products .product-miniature,
    .products .product-miniature,
    .featured-products .product-miniature {
        flex: 0 0 25% !important; /* 100% / 4 = 25% */
        max-width: 25% !important;
    }
}

/* Optionnel : Ajuster la taille des images pour qu'elles ne soient pas floues */
.product-miniature img {
    width: 100% !important;
    height: auto !important;
}




/* Supprime l'image des sous-catégories */
.subcategory__image {
    display: none !important;
}

/* Réajuste le bloc pour que le texte soit bien centré et propre */
.subcategory__wrapper {
    margin-bottom: 10px !important;
    text-align: center;
	justify-content: center !important; /* Centre horizontalement le contenu */
    align-items: center !important;     /* Centre verticalement si besoin */
    text-align: center !important;
    float: none !important;
}

/* Optionnel : Donne un style de "bouton" ou de liste au texte pour qu'il ne flotte pas dans le vide */
.subcategory__name {
	display: inline-block !important;
    padding: 8px 15px;
    background: #f6f6f6;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    text-align:center;
    width: auto !important;             /* Permet au texte de rester compact */
    margin: 0 auto !important;          /* Centre le bloc dans son parent */
}






/* Bandeau bleu */

.innova-cta-band {
  background: #185FA5;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 10px 10px 0 0;
}

.innova-cta-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.innova-cta-text span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.innova-cta-btn {
  background: #fff;
  color: #185FA5;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.innova-cta-btn:hover {
  background: #f0f0f0;
  color: #185FA5;
}

@media (max-width: 768px) {
  .innova-cta-band {
    flex-direction: column;
    text-align: center;
  }
}






/* Bloc connexion et inscription */

.header-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.header-block__action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-block__action-btn i.material-icons {
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Page d'accueil étape d'inscription explication */

.innova-steps {
  display: flex;
  align-items: flex-start;
  background: #f5f4f0;
  border: 1px solid #e2e0d8;
  border-radius: 0 0 10px 10px;
  padding: 28px 32px;
  gap: 0;
  margin: 24px 0;
  margin-top: 0px !important;
  flex-wrap: wrap;
}

.innova-step {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.innova-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #185FA5;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.innova-step-body strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.innova-step-body p {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.innova-step-sep {
  width: 1px;
  background: #d5d3cb;
  align-self: stretch;
  margin: 0 28px;
}

@media (max-width: 768px) {
  .innova-steps {
    flex-direction: column;
    gap: 20px;
  }
  .innova-step-sep {
    width: 100%;
    height: 1px;
    margin: 0;
  }
}