/*
Theme Name: Theme GWS Child
Description: Theme par GWS
Author: Johan - GWS
Author URI: https://www.webmarketing-services.com
Template: Divi
Version: 1.1
*/

/*
  ____ _____     _____      ____ ___  __  __ __  __ _   _ _   _ ___ _______   __
 |  _ \_ _\ \   / /_ _|    / ___/ _ \|  \/  |  \/  | | | | \ | |_ _|_   _\ \ / /
 | | | | | \ \ / / | |    | |  | | | | |\/| | |\/| | | | |  \| || |  | |  \ V /
 | |_| | |  \ V /  | |    | |__| |_| | |  | | |  | | |_| | |\  || |  | |   | |
 |____/___|  \_/  |___|    \____\___/|_|  |_|_|  |_|\___/|_| \_|___| |_|   |_|

*/


/* 
** CENTRER DU CONTENU VERTICALEMENT 
** Voir tuto : https://www.divi-community.fr/snippets-divi/centrer-du-contenu-verticalement
*/
  @import url('https://fonts.cdnfonts.com/css/lemon-milk');

.dc-centrer-verticalement {
	display: flex;
	flex-direction: column;
	justify-content: center;
  	display: -webkit-box;
	display: -webkit-flex;
	display: -moz-box;
	display: -ms-flexbox;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-webkit-flex-direction: column;
	 -moz-box-orient: vertical;
	 -moz-box-direction: normal;
	  -ms-flex-direction: column;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-moz-box-pack: center;
	-ms-flex-pack: center;
}


/*
** INVERSER LE SENS DES COLONNES SUR MOBILE
** Voir tuto : https://www.divi-community.fr/snippets-divi/inverser-ordre-des-colonnes-sur-mobile
*/

@media only screen and (max-width : 980px) {
	.dc-inverser-colonnes--section .dc-inverser-colonnes--ligne {
		display: -webkit-flex;
		display: -ms-flex;
		display: flex;
		-webkit-flex-direction: column-reverse;
		-ms-flex-direction: column-reverse;
		flex-direction: column-reverse;
	}

.cart-count {
  top: 0px !important;
  right: 5px !important;
  width: 20px !important;
  height: 20px !important;
  font-size: 11px !important;
}
.btn-search{
    display: block !important;
}
}


/*
** MENU MOBILE : en pleine largeur et le hamburger devient une croix pour fermer
*/

.et_mobile_menu {
	margin-left: -30px;
	padding: 5%;
	width: calc( 100% + 60px);
}

.mobile_nav.opened .mobile_menu_bar:before {
	content: "\4d";
}


/* 
** AUGMENTER LA LARGEUR CHAMP RÉSULTAT CAPTCHA 
** Parfois, suivant la taille du texte, certains chiffres du résultat sont masqués
*/
.et_pb_contact_right p input {
	max-width: 50px;
}


/*
** METTRE EXPOSANTS ET INDICES À LA BONNE TAILLE
** Généralement, ils sont bien trop gros…
*/
sup, sub {
    font-size: 70%;
}

/** HEADER DESKTOP */
.menu-bar {
    list-style: none;     /* plus de points */

  display: flex;
    font-family: 'Josefin Sans',Helvetica,Arial,Lucida,sans-serif;
    font-weight:700;
  color:#434A5F !important;
  justify-content: space-around;
  align-items: center;
  padding: 0px 30px;
  
}
.majestic-menu-wrapper{width:100%;}
.menu-bar a {
  color: #434A5F;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  text-transform: uppercase;
  padding: 0 8px;
  width: 100%;
}  
 
.et-l--header ul {
   list-style-type: none;
  width:85%;}

/* Barres verticales uniquement entre les éléments du menu principal */
.menu-bar > li + li::before {
  content: "|";
  margin: 0 0px;
  color: #d3d3d3;
}

/* Empêche les barres verticales dans les sous-menus */
.menu-bar ul.sub-menu li::before {
  content: none !important;
}


.menu-bar ul.sub-menu li:last-child {
  border-bottom: none;
}





/* Cible le bouton CATÉGORIES */
.btn-categories {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px; /* largeur fixe comme sur la maquette */
  height: 60px;
  background: linear-gradient(135deg, #eeeeee, #e3e3e3);
  border-radius: 14px 0 0 14px;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  color: #2D2F31;
  border: none;
  cursor: pointer;
  position: relative;
}

.btn-categories::before,
.btn-categories::after {
  content: '\25B6'; /* chevrons noirs */
  color: #2D2F31;
  margin: 0 6px;
}
.menu-bar li.categoriegws > a::before {
  content: "\f0c9";
  font-family: "Font Awesome 5 Free";
  font-weight: 700;
  margin-left: -37px;
  font-size: 20px;
  float: left;
    transform: scaleX(1.5);
    display: none;
}
/* Alignement du sous-menu sous le bouton */
.menu-bar li {
  position: relative;
    flex: auto;
    width: 100%;
  display: flex;
  text-align: center;
}
.et_pb_text_inner{width:100%;}
/* Sous-menu avec même largeur */
.menu-bar ul.sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 100%; /* ✅ prend la largeur du  parent */
  background: #3A4A5A;
  padding: 10px 0;
  border-radius: 0 0 0px 0px;
  border: 1px solid #ccc;
  box-shadow: 2px 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}



/* Affichage au survol */
.menu-bar li:hover > ul.sub-menu {
  display: block;
}

/* Items internes */
.menu-bar ul.sub-menu li {
  padding: 10px 4px;
  border-bottom: 0px solid #fff;
    position: relative;
}


.menu-bar ul.sub-menu li a {
  color: #fff;
  text-decoration: none;
  display: block;
  font-size: 14px;
  text-transform: uppercase;
}

.majestic-header {
  font-family: 'LEMON MILK', sans-serif;
  padding-bottom: 5px;
  position: relative;
}
  .text-wrapper .label{
    font-size:13px !important;
  }
.points {
  margin-right: -14px;
  font-size: 30px;
    font-family: 'LEMON MILK', sans-serif;

}

#menu-menu {
  padding-bottom: 0px !important;
    line-height: 50px;
}

.majestic-header-row {
  display: flex;
  width: 100%;
  align-items: stretch;
  gap: 10px;
    font-family: 'LEMON MILK', sans-serif;

}

.majestic-header-inner {
  background: #434A5F;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  padding: 0px 30px;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  border-radius: 10px;
    font-family: 'LEMON MILK', sans-serif;

}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-right: 30px;
}

.logo-container img {
  max-height: 150px;
  width: auto;
  display: block;
}

.center-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0;
}
  .imagedevis{
    width:200px;
    height:auto;
  }
  .imagesav{
        width:115px;
    height:auto;

  }

.contact-top {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 12px;
}
  .espace{
position: absolute;
  bottom: 0; 
  left: 0; 
  margin: 10px; 
    font-size: 18px;
      font-weight: 500;

  }

.search-wrapper {
  display: flex;
  align-items: center;
  width: 70%;
  height: 50px;
  background: linear-gradient(135deg, #eeeeee, #e3e3e3);
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
  padding-left: 12px;
      font-family: 'LEMON MILK', sans-serif;
  margin: auto;
}



.search-input {
  flex: 1;
  border: none;
  background: transparent !important;
  padding: 0 12px;
  font-size: 15px;
  font-style: italic;
  color: #3e4d60;
  font-weight: 500;
  border-bottom: 2px solid #999 !important;
    border-top: 0px !important;
    border-left: 0px !important;
    border-right: 0px !important;
      font-family: 'LEMON MILK', sans-serif;
  margin-right: 10px;
}

.search-input::placeholder {
  color: #3e4d60;
    font-weight: 500;
  font-style: italic;
  font-size:14px;
}

.search-input:focus {
  outline: none;
  border-color: #666;
}

.btn-search {
  width: 50px;
  height: 100%;
  background: #92A999;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  margin-left:15px;
}

.btn-search i {
  color: #FFFFFF;
  font-size: 25px;
}

.user-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 10px;
  width: 20%;
  background: #37393C;
  border-radius:10px !important;
  position:relative;
}

.user-inner {
  display: flex;
  gap: 10px;
  width:100%;
}

.btn-space,
.btn-cart {
  border-radius: 12px;
  font-weight: 600;
  text-align: left;
  padding: 0px 11px;
  cursor: pointer;
 aspect-ratio:1/1;
    height:110px;}

.btn-space {
  background: #2D2F31;
  color: #FFFFFF;
    border: solid 1px white;
  position: relative;
  height: 110px;
  width: 50%;
  aspect-ratio: 1/1;
}

.btn-cart {
  position: relative;
  background: #A5B3A7;
  color: #2D2F31;
    width: 50%;
}
  
  .btn-cart .label{
  font-size: 10px;
    text-align:center;
    font-weight:500;
  bottom: 10px;
    width:80%;
  position: absolute;
  color: #fff;
      white-space: nowrap;     
}


.cart-count {
  position: absolute;
  top: 20px;
  right: 25px;
  background-color: red;
  color: white;
  font-size: 13px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}





.btn-refurb-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10% !important;
  border-radius: 0 10px 10px 0;
}

.btn-refurb {
  background: #F60077;
  color: #b7b7b7;
  padding-top: 10px;
  border-radius: 12px;
  text-align: center;
    font-size:11px;

  font-weight: 500;
aspect-ratio:1/1;
  height: 110px;
  border: 1px #b7b7b7 solid;
}
  .imagerecondi{width:40%}




  /* ========== HEADER MOBILE ========== */

  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    display: flex;
    align-items: center;
  }

  .logo img {
    height: 80px;
    margin-top: 10px;
  }

  .header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .icon-img {
    width: 60px;
    object-fit: contain;
  }

  .cart {
    position: relative;
  }

  .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    font-size: 12px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
.search-wrapper-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 20px auto 10px;
  max-width: 700px;
}

.search-bar-mobile {
  display: flex;
  align-items: center;
  flex-grow: 1;
  background: linear-gradient(145deg, #ffffff, #dcdcdc);
  border-radius: 8px;
  padding: 6px 12px;
  box-shadow: 1px 2px 2px #00000033;
}
.search-bar-mobile input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 8px;
  font-style: italic;
  font-size: 16px;
  outline: none;
}

.search-bar-mobile button {
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.search-bar-mobile button img {
  width: 24px;
  height: 24px;
}





.menu-icon-mobile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  padding: 10px;
  border-radius: 1px;
    transform: scaleX(1.7);
}

.menu-icon-mobile div {
  width: 30px;
  height: 5px;
  background: linear-gradient(145deg, #aaaaaa, #eeeeee);
  margin: 3px 0;
  border-radius: 4px;
}

  .bottom-border {
    display: flex;
    height: 8px;
  }

  .bottom-border div {
    flex: 1;
  }

  .bottom-border .blue { background-color: #0025ff; }
  .bottom-border .white { background-color: #ffffff; }
  .bottom-border .red { background-color: #e4002b; }




 




/* ======== MENU MOBILE MAJESTIC ======== */

#menu-mobile {
  display: none;
  flex-direction: column;
  background-color: #3b4755;
  padding: 20px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: all 0.3s ease-in-out;
}

#menu-mobile.visible {
  display: flex;
}

.menu-bar-mobile {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-bar-mobile > li {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  flex-direction: column; /* ✅ forcer le flux vertical */
  align-items: flex-start; /* ✅ évite que le lien soit centré */
}

.menu-bar-mobile > li.menu-item > a {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 26px; /* espace à gauche pour la flèche */
}

.menu-bar-mobile > li.menu-item > a::before {
  content: '';
  background-image: url('https://www.majestic-innovation.com/wp-content/uploads/2025/08/flechedroit.png');
  background-repeat: no-repeat;
  background-size: 14px 14px;
  width: 14px;
  height: 14px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); /* ✅ centre verticalement la flèche */
}
/* Flèche pour les éléments de sous-menu */
.menu-bar-mobile .sub-menu li::before {
     content: '';
  background-image: url('https://www.majestic-innovation.com/wp-content/uploads/2025/08/fleche_bas.png');
  background-repeat: no-repeat;
  background-size: 12px 12px;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  display: inline-block;
}


.menu-bar-mobile > li.menu-item-has-children.open > a::before {
  background-image: url('https://www.majestic-innovation.com/wp-content/uploads/2025/08/fleche_bas.png');
}




.menu-bar-mobile a {
  color: inherit;
  text-decoration: none;
}

.menu-bar-mobile a:hover {
  text-decoration: underline;
}

/* Corrige le comportement du sous-menu */
.menu-bar-mobile .sub-menu {
  position: static; /* Important pour rester dans le flux */
  margin-top: 8px;
  margin-left: 0; /* Empêche le décalage latéral */
  padding-left: 35px; /* Garde l'indentation souhaitée */
  display: none; /* ✅ important pour que le JS puisse afficher au clic */
}

/* Quand le parent a la classe .open, on affiche */
.menu-bar-mobile li.open > .sub-menu {
  display: block;
}

.menu-bar-mobile .sub-menu li {
  font-size: 15px;
  font-weight: normal;
  color: #ccc;
  margin-bottom: 10px;
  text-transform: none;
  display: flex;
  align-items: center;
}

@media (max-width: 980px) {
#menu-mobile .sub-menu {
  display: none;
  position: static;
  padding-left: 35px;
  margin-top: 8px;
  margin-left: 0;
}

#menu-mobile li.open > .sub-menu {
  display: block;
}
.menu-bar-mobile .sub-menu .sub-menu {
  margin-left: 25px;
  margin-top: 5px;
  display: none;
}

.menu-bar-mobile li.open > .sub-menu > li.open > .sub-menu {
  display: block;
}





  #menu-mobile .sub-menu li {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #ccc;
    margin-bottom: 10px;
  }
}













/* ----- Layout image gauche / contenu droite ----- */
.autofry-loop ul.products li.product .df-product-inner-wrap{
  display: grid;
  grid-template-columns: 150px 1fr;   /* largeur vignette + zone texte */
  grid-auto-rows: auto;
  column-gap: 24px;
  align-items: flex-start;
}

/* Image à gauche, couvrant toute la hauteur du contenu */
.autofry-loop ul.products li.product .df-product-image-wrap{
  grid-column: 1;
  grid-row: 1 / span 3;               /* occupe les 3 lignes titre/prix/bouton */
  width: 150px;
}
.autofry-loop ul.products li.product .df-product-image-wrap img{
  display:block; width:100%; height:auto;
  border:6px solid #fff;
  box-shadow:0 6px 18px rgba(0,0,0,.15);
}

/* Colonne droite : Titre, puis Prix, puis Bouton */
.autofry-loop ul.products li.product .df-product-title-wrap{ grid-column: 2; grid-row: 1;margin-top:10px; }
.autofry-loop ul.products li.product .df-product-price-wrap{ grid-column: 2; grid-row: 2; }
.autofry-loop ul.products li.product .df-add-to-cart-wrap{  grid-column: 2; grid-row: 3; }

.autofry-loop ul.products li.product .df-product-read-more{  grid-column: 2; grid-row: 3; }

/* ----- Styles visuels ----- */
.autofry-loop .woocommerce-loop-product__title{
  font-size: clamp(26px, 3vw, 44px);
  line-height:1.1;
  font-weight:800;
  text-transform:uppercase;
  color:#fff;
  margin:-6px 0 10px;
}

.autofry-loop .price{
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight:900;
  color:#b10000;
  margin:2px 0 6px;
  border:0; box-shadow:none;
}
/* EN STOCK statique juste sous le prix */
.autofry-loop .price::after{
  content:"EN STOCK";
  display:block;
  font-size:14px; font-weight:400; text-transform:uppercase;
  color:#fff; opacity:1; 
}

/* Bouton */
.autofry-loop .df-add-to-cart-wrap a.button,
.autofry-loop .df-add-to-cart-wrap .df-product-read-more .added_to_cart{
  display:inline-block;
  padding:10px 18px;
  font-weight:800;
  letter-spacing:.5px;
  text-transform:uppercase;
  background:#7a8797;
  color:#fff !important;
  border-radius:6px;
  box-shadow:0 3px 0 rgba(0,0,0,.25) inset;
}

/* Petites largeurs : on empile */
@media (max-width:980px){
  .autofry-loop ul.products li.product .df-product-inner-wrap{
    grid-template-columns:1fr;
    column-gap:0;
  }
  .autofry-loop ul.products li.product .df-product-image-wrap{
    grid-column:1; grid-row:auto; width:100%;
    margin:0 0 14px 0;
  }
  .autofry-loop ul.products li.product .df-product-title-wrap,
  .autofry-loop ul.products li.product .df-product-price-wrap,
  .autofry-loop ul.products li.product .df-add-to-cart-wrap,
  .autofry-loop ul.products li.product .df-product-read-more{
    grid-column:1;
  }
}
/* Place le bouton en colonne 2 (comme le titre/prix) */
.autofry-loop ul.products li.product .df_button {
  grid-column: 2;
  grid-row: 3;                /* sous le prix */
  justify-self: start;        /* aligne à gauche, sinon center/right */
  display: inline-block;

}
.autofry-loop ul.products li.product .df_button:hover {
  filter: brightness(1.05);
}
/* Empêche le clearfix de créer des lignes fantômes dans la grille */
.autofry-loop ul.products li.product .df-product-inner-wrap:before,
.autofry-loop ul.products li.product .df-product-inner-wrap:after{
  content: none !important;
  display: none !important;
}

/* Place le bloc "Add to cart" en colonne 2, ligne 3 (à droite, sous le prix) */
.autofry-loop ul.products li.product .df-product-button-wrap{
  grid-column: 2;
  grid-row: 3;
  margin: 0px 0 0 0;
  width: 35%;
  text-align: center;
}

/* Style du bouton et évite qu'il prenne toute la largeur */
.autofry-loop ul.products li.product .df-product-add-to-cart-wrap a.button{
  display: inline-block;
}

/* (Optionnel) Alignement à gauche explicite dans la colonne */
.autofry-loop ul.products li.product .df-product-add-to-cart-wrap{
  justify-self: start;
}








/* Réglages (modifie ces variables) */
.faq-underline{
  --line-width: 120px;     /* largeur fixe du trait */
  --line-height: 3px;      /* épaisseur */
  --line-gap: 14px;        /* espace sous le titre */
  --line-color: #fff;      /* couleur du trait */
}

/* Le trait est dessiné sur le wrapper, pas sur le texte */
.faq-underline .difl_faq_item .faq_question_wrapper{
  position: relative;
  padding-bottom: var(--line-gap);
}

/* TRAIT visible quand l'item est fermé */
.faq-underline .difl_faq_item .faq_question_wrapper::after{
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: var(--line-width);           /* => même largeur partout */
  height: var(--line-height);
  background: var(--line-color);
  border-radius: 2px;
  transform: translateX(-50%) scaleX(1);
  transform-origin: center;
  transition: transform .2s ease, opacity .2s ease;
  opacity: 1;
}

/* TRAIT masqué quand l'item est ouvert */
.faq-underline .difl_faq_item_active .faq_question_wrapper::after{
  transform: translateX(-50%) scaleX(0) !important; /* rétracte la ligne */
  opacity: 0 !important;
  pointer-events: none;
}

/* Variante alignée à gauche (remplace left/transform ci-dessus si tu préfères)
.faq-underline .difl_faq_item .faq_question_wrapper::after{
  left: 0; transform: none;
}
.faq-underline .difl_faq_item_active .faq_question_wrapper::after{
  transform: scaleX(0) !important;
}
*/



#footer-wrap {
  background-color: #434A5F !important;
}








/* Ombre de la flèche */
.menu-bar li.menu-item-has-children:hover > ul.sub-menu::before {
  content: "";
  position: absolute;
  top: -10px;                 /* monte la pointe au-dessus du sous-menu */
  left: 48%;                 /* position horizontale par défaut (à ajuster) */
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 12px solid rgba(0,0,0,0.18); /* même style d’ombre que le menu */
  pointer-events: none;
}

/* Corps de la flèche (même couleur que le fond du sous-menu) */
.menu-bar li.menu-item-has-children:hover > ul.sub-menu::after {
  content: "";
  position: absolute;
  top: -10px;                 /* 2px de moins que l’ombre pour « sortir » par-dessus */
  left: 48%;                 /* idem que ::before */
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #343A5F; /* ← mets la même couleur que ton sous-menu */
  /* si ton sous-menu a un rayon, on peut arrondir la pointe optiquement : */
  /* filter: drop-shadow(0 6px 8px rgba(0,0,0,.08)); */
  pointer-events: none;
}

/* Optionnel : cacher la flèche sur mobile si le menu est en accordéon */
@media (max-width: 980px) {
  .menu-bar ul.sub-menu::before,
  .menu-bar ul.sub-menu::after { display: none; }
}

.menu-bar ul.sub-menu a {
    font-weight: 300;
      font-family: 'Josefin Sans',Helvetica,Arial,Lucida,sans-serif;
      text-align: left;
  margin-left: 20%;
}







/* le petit filet comme sur accueil.jpg */
.menu-bar ul.sub-menu li > a::after {
  content: "";
  position: absolute;
  left: 24px;                        /* marge gauche du filet */
  right: 24px;                       /* marge droite du filet  → filet plus court */
  bottom: 0;                         /* collé en bas du lien */
  height: 1px;
  background: rgba(255,255,255,0.35);/* couleur du trait (mets la tienne) */
  pointer-events: none;
}

/* pas de trait sur le dernier item */
.menu-bar ul.sub-menu li:last-child > a::after {
  display: none;
}

/* Option : survol un peu plus visible */
.menu-bar ul.sub-menu li > a:hover::after {
  background: rgba(255,255,255,0.55);
}





/* Le lien occupe toute la ligne */
.menu-bar ul.sub-menu li > a {
  display: block;          /* clé pour prendre toute la largeur */
  width: 100%;
  border-bottom: 0 !important;
}

/* Hover/Focus sur toute la ligne */
.menu-bar ul.sub-menu li:hover,
.menu-bar ul.sub-menu li:focus-within {
  background: rgba(255,255,255,0.10);   /* ta couleur de survol */
}

/* La couleur du texte au survol */
.menu-bar ul.sub-menu li:hover > a,
.menu-bar ul.sub-menu li:focus-within > a {
  color: #fff;
}

/* ⚠️ enlève toute contrainte de largeur qui traîne */
.menu-bar ul.sub-menu li > a:hover { width: auto !important; }






/* ====== Grille 9 colonnes ====== */
.grid9-bs .et_pb_column{
  display:grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 22px);
}
.grid9-bs .et_pb_column > .et_pb_module{ margin-bottom:0; }

/* ====== Carte produit ====== */
.bs-item{
  position: relative;
  background:#fff;
  border:2px solid #FF5A00;         /* couleur par défaut, surchargée par .c-* */
  border-radius:0px;
  padding:0px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:140px;                  /* ajuste selon tes visuels */
  overflow:visible;
  text-align:center;
}
.bs-item img{ max-width:100%; height:auto; display:block; }

/* ====== Pastille numéro au-dessus ====== */
.bs-item::before{
  content:"";
  position:absolute;
  top:-14px;                         /* place la pastille au-dessus du cadre */
  left:50%;
  transform:translateX(-50%);
  width:34px; height:34px;
  line-height:34px;
  font-weight:800;
  font-family:inherit;
  text-align:center;
  color:#fff;
  border:4px solid #fff;
  border-radius:50%;
}

/* Numéros 1..9 */
.n1::before{ content:"1"; }
.n2::before{ content:"2"; }
.n3::before{ content:"3"; }
.n4::before{ content:"4"; }
.n5::before{ content:"5"; }
.n6::before{ content:"6"; }
.n7::before{ content:"7"; }
.n8::before{ content:"8"; }
.n9::before{ content:"9"; }

/* ====== Couleurs de bordure (reprends ton exemple) ====== */
.c-rouge { border-color:#f93a06; }   /* du 1 au 3 rouge */
.c-vert  { border-color:#60f708; }   /* du 4 au 6 vert vif */
.c-violet   { border-color:#ee98f1; }   /* du 7 au 9 violet */
.c-pink   { border-color:#ff8ad6; }   /* rose */
.c-white  { border-color:#ffffff; }   /* blanc (utile sur fond sombre) */
.c-blue   { border-color:#4ec3ff; }   /* optionnel */
.c-purple { border-color:#a675ff; }   /* optionnel */

/* ====== Responsive ====== */

@media (max-width:980px){
  .grid9-bs .et_pb_column{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width:767px){
  .grid9-bs .et_pb_column{ grid-template-columns: repeat(2, minmax(0,1fr)); } /* ou 1fr si tu veux 1/ligne */
}

/* ====== Titre (optionnel, style proche de ton mockup) ====== */
.best-sellers-title{
  color:#1f3551;
  font-weight:900;
  letter-spacing:0.04em;
  margin-bottom:16px;
}
/* Grille 9 colonnes (comme déjà vu) */
.grid9-bs .et_pb_column{
  display:grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 22px);
}


/* === Auto-numérotation === */
.grid9-bs .et_pb_column{ counter-reset: bs; }  /* démarre à 0 */
.grid9-bs .et_pb_column > .et_pb_module::before{
  counter-increment: bs;            /* +1 par module */
  content: counter(bs);             /* 1,2,3… */
  position:absolute;
  top:-45px;                        /* place la pastille au-dessus */
  left:50%;
  transform:translateX(-50%);
  width:34px; height:34px; line-height:34px;
  font-weight:800; text-align:center;
  color:#fff;   /* fond bleu nuit */
  border:0px solid #fff;            /* anneau blanc */
  border-radius:50%;
  z-index:2;
}

.grid9-bs img{ max-width:100%; height:auto; display:block; }

/* Responsive (ajuste à ton goût) */
@media (max-width:980px){  .grid9-bs .et_pb_column{ grid-template-columns: repeat(3,1fr); } }
@media (max-width:767px){  .grid9-bs .et_pb_column{ grid-template-columns: repeat(2,1fr); } } /* ou 1fr */









/* Page catégorie de produit */

/* =============================
   LISTE PRODUITS – TEMPLATE CATEGORIE (Divi)
   Objectif : maquette 3 colonnes (Image / Contenu / Colonne Droite)
   ============================= */

/* --- Ancien layout FLEX, réservé aux listes hors module Divi --- */


@media (min-width: 168px) and (max-width: 2980px) {

  
/* --- DIVI SHOP (maquette cible) : Grille 3 colonnes --- */
.et_pb_shop ul.products li.product {
  display: grid !important;
  grid-template-columns: 280px 1fr 220px; /* Image / Contenu / Colonne droite */
  grid-template-rows: auto auto auto; /* Permet d'empiler titre + description */
  gap: 12px 28px;
  align-items: start;
  padding: 24px 28px;
  margin-bottom: 28px;
  background: #fff;
}
.et_pb_shop ul.products li.product a.woocommerce-LoopProduct-link { display: contents; }

/* Colonne 1 : image */
.et_pb_shop ul.products li.product a img {
  grid-column: 1;
  grid-row: 1 / span 3; /* image occupe toute la hauteur */
  width: 100% !important;
  max-width: 280px;
  height: auto !important;
  object-fit: contain;
}

/* Colonne 2 : titre et description empilés */
.et_pb_shop ul.products li.product h2.woocommerce-loop-product__title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  color:#46556a;
  font-family: 'LEMON MILK', sans-serif;
}
.et_pb_shop ul.products li.product .woocommerce-product-details__short-description {
  grid-column: 2;
  grid-row: 2;
  margin: 6px 0 14px 0;
  color: #46556a;
  font-size: 14px;
  line-height: 1.4;
      font-family: 'Josefin Sans',Helvetica,Arial,Lucida,sans-serif;
}
.et_pb_shop ul.products li.product .product-actions {
  grid-column: 2;
  grid-row: 3;
  margin-top: 8px;
}
.et_pb_shop ul.products li.product .product-actions a {
  display:inline-block; margin-right:10px; margin-top:6px; padding:8px 14px;
  border-radius:0px; font-size:13px; font-weight:700; text-decoration:none;
}
.et_pb_shop ul.products li.product .btn-compare{ background:#f1f3f5; border:1px solid #e9ecef; color:#333; }
.et_pb_shop ul.products li.product .btn-view{ background:#2ecc71; color:#fff; }

/* Colonne 3 : référence, promo, prix, stock empilés */
.et_pb_shop ul.products li.product .product-ref,
.et_pb_shop ul.products li.product .product-ref-badge,
.et_pb_shop ul.products li.product .price-badge-sale,
.et_pb_shop ul.products li.product .price,
.et_pb_shop ul.products li.product .stock {
  grid-column: auto;          /* <-- annule l’ancienne règle */
  justify-self: auto;         /* <-- l’alignement se fait par .col-droite */
  text-align: right;
}

/* Référence */
.et_pb_shop ul.products li.product .product-ref,
.et_pb_shop ul.products li.product .product-ref-badge {
   font-size: 12px;
  font-weight: 700;
  background-color:#434A5F;
  color:#fff;
  border-radius:0px;
  padding:2px 10px;
  margin-bottom:8px;
  width:auto;
}

/* Badge promo */
.et_pb_shop ul.products li.product .price-badge-sale {
  background:#ef3d2f; color:#fff; font-size:12px; font-weight:800;
  padding:4px 10px; border-radius:4px; margin-bottom:8px;
}

/* Prix */
.et_pb_shop ul.products li.product .price {
  font-size:22px; font-weight:800; color:#e03131;
  margin:0; min-width:160px;
}
.et_pb_shop ul.products li.product .price del {
  display:block; opacity:.65; font-size:14px; color:#2b3642; margin-bottom:2px;
}
.et_pb_shop ul.products li.product .price ins {
  display:block; font-size:22px; font-weight:800; color:#e03131; text-decoration:none;
}

/* Stock */
.et_pb_shop ul.products li.product .stock {
  margin-top:-10px; font-size:12px; font-weight:900; text-transform:uppercase;
}
.et_pb_shop ul.products li.product .stock.in-stock{ color:#22c55e; }
.et_pb_shop ul.products li.product .stock.out-of-stock{ color:#e03131; }

/* Responsive */
@media(max-width:980px){
  .et_pb_shop ul.products li.product { grid-template-columns:200px 1fr; }
  .et_pb_shop ul.products li.product .product-ref,
  .et_pb_shop ul.products li.product .product-ref-badge,
  .et_pb_shop ul.products li.product .price-badge-sale,
  .et_pb_shop ul.products li.product .price,
  .et_pb_shop ul.products li.product .stock {
    grid-column:2; justify-self:start; text-align:left;
  }
}
@media(max-width:600px){
  .et_pb_shop ul.products li.product{ grid-template-columns:1fr; }
  .et_pb_shop ul.products li.product a img{ max-width:100%; }

.bloc-centre{display:none;}

.col-droite{width:95%;margin-left:8px;margin-right:8px;}
.stock.in-stock{
    color: #22c55e !important;
}

}
}

@media(max-width:980px){

.product-actions{display:none;}
.product-ref{
 font-size: 11px;
      font-weight: 700;
      background-color: #434A5F;
      color: #fff;
      border-radius: 0px;
      padding: 5px 5px;
      margin-bottom: 0px;
      line-height: 1em;
      width: 60%;
    }
}






/* Grille : image | centre (titre, desc, actions) | droite */
.et_pb_shop ul.products li.product{
  display: grid !important;
  grid-template-columns: 280px 1fr 220px;
  grid-template-areas:
    "img title  right"
    "img desc   right"
    "img actions right";
  gap: 16px 28px;
  align-items: start;
}
.et_pb_shop ul.products li.product a.woocommerce-LoopProduct-link{ display: contents; }
.et_pb_shop ul.products li.product a img{ grid-area: img !important; }
.et_pb_shop ul.products li.product h2.woocommerce-loop-product__title{ grid-area: title !important; margin:0 !important; }
.et_pb_shop ul.products li.product .woocommerce-product-details__short-description{ grid-area: desc !important; display:block !important; }
.et_pb_shop ul.products li.product .product-actions{ grid-area: actions !important;
  margin-top: 8px; }

/* Colonne droite inchangée */

.et_pb_shop ul.products li.product .col-droite{
  grid-area: right !important;
  justify-self: end;
  text-align: right;
  display: flex;              /* <-- on empile proprement */
  flex-direction: column;
  align-items: flex-end;
}

/* Style boutons (existant possible) */
.et_pb_shop ul.products li.product .product-actions .btn-view{
  display:inline-block; padding:0px 20px;
    border: 2px #47566b solid;
  font-weight:500; background:#a1b5a9; color:#47566d; text-decoration:none;
  text-transform: uppercase;
    font-family: 'LEMON MILK', sans-serif;
}
.et_pb_shop ul.products li.product .product-actions .compare{
  display:inline-block; padding:0px 20px;
  font-weight:700; background:#f1f3f5; border:1px solid #e9ecef; color:#333; text-decoration:none;
 

}

/* Mobile : on garde le même ordre et une seule colonne */
@media (max-width:600px){
  .et_pb_shop ul.products li.product{
    grid-template-columns: 1fr;
    grid-template-areas:
      "img"
      "title"
      "desc"
      "actions"
      "right";
  }
}




.et_pb_shop ul.products li.product .col-droite{
  grid-area: right !important;   /* la zone de ta grille */
  place-self: start end;         /* = align-self:start + justify-self:end */
  text-align: right;
  display: flex;                 /* empile proprement les éléments */
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;                      /* espace entre ref / prix / stock */
}




/* 1) La carte : tous les items démarrent en haut de leur cellule */
.et_pb_shop ul.products li.product{
  align-items: start;                 /* déjà présent chez toi, on confirme */
}

/* 2) Le bloc centre ne rajoute aucun espace en haut */
.et_pb_shop ul.products li.product .bloc-centre{
  align-self: start;                  /* colle le bloc au haut de la rangée */
  margin: 0 !important;
  padding-top: 15px !important;
}

/* 3) Le titre : vraiment tout en haut de sa zone "title" */
.et_pb_shop ul.products li.product h2.woocommerce-loop-product__title{
  grid-area: title !important;        /* tu l’as déjà */
  align-self: start;                  /* clé : évite tout centrage vertical résiduel */
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.1;                   /* évite un “décollage” visuel */
}

/* (optionnel) si un style global injecte une marge sur le 1er enfant */
.et_pb_shop ul.products li.product .bloc-centre > :first-child{
  margin-top: 0 !important;
}



/* Trait de séparation sous le titre, avant la description */
.et_pb_shop ul.products li.product .bloc-centre > h2.woocommerce-loop-product__title{
  border-bottom: 1px solid #47566b;   /* couleur du trait */
  padding-bottom: 30px !important;               /* espace au-dessus du trait */
  margin: 0 0 30px 0 !important;                 /* espace sous le trait */
  line-height: 1.1;                   /* cohérent avec ton titre */
}


/* Divi Shop : supprimer l'overlay (rond bleu +) sur les images produit */
.et_pb_shop .et_shop_image .et_overlay,
.et_pb_shop .et_shop_image .et_overlay::before{
  display: none !important;
  content: none !important;
}

/* Pas d’assombrissement ni de zoom au survol */
.et_pb_shop .et_shop_image img,
.et_pb_shop .et_shop_image:hover img{
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Évite qu'un overlay caché prenne de la place */
.et_pb_shop .et_shop_image{ overflow: visible !important; }
.fichepdf{margin-top:20px;}



/* FICHE PRODUIT : grille des produits similaires en 4 colonnes */
.single-product .related ul.products{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0; padding: 0;
}

/* Annule le flex/float/width hérités sur les items */
.single-product .related ul.products li.product{
  display: block !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  align-items: initial !important;
}

/* Responsive */
@media (max-width: 1200px){
  .single-product .related ul.products{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 980px){
  .single-product .related ul.products{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px){
  .single-product .related ul.products{ grid-template-columns: 1fr; }
}

/* Fiche produit → listes internes : enlever le padding sur chaque carte */
.single-product .related ul.products li.product,
.single-product .upsells  ul.products li.product,
.single-product .cross-sells ul.products li.product,
.et_pb_wc_related_products ul.products li.product{
  padding: 0 !important;   /* neutralise le 20px sans impacter .woocommerce:not(.et_pb_shop) */
}






/* MOBILE : plier UNIQUEMENT la description produit dans #texteproduit */

@media (max-width: 800px){
  .gws-shortdesc,
  .gws-shortdesc .et_pb_text_inner{ /* si la classe est sur le module texte Divi */
    position: relative;
    transition: max-height .25s ease;
  }
  .argugws{display: none;}
  /* état plié */
  .gws-shortdesc.is-collapsed,
  .gws-shortdesc .et_pb_text_inner.is-collapsed{
    max-height: 7.5em;              /* ≈ 3–4 lignes, ajuste si besoin */
    overflow: hidden;
  }
  }

/* MOBILE : description pliable (cible le module portant .gws-shortdesc) */
@media (max-width: 2500px){
  .gws-shortdesc,
  .gws-shortdesc .et_pb_text_inner{ /* si la classe est sur le module texte Divi */
    position: relative;
    transition: max-height .25s ease;
  }
  /* état plié */
  .gws-shortdesc.is-collapsed,
  .gws-shortdesc .et_pb_text_inner.is-collapsed{
    max-height: 20em;              /* ≈ 3–4 lignes, ajuste si besoin */
    overflow: hidden;
  }
  /* petit dégradé en bas quand c’est plié */
  .gws-shortdesc.is-collapsed::after,
  .gws-shortdesc .et_pb_text_inner.is-collapsed::after{
    content:"";
    position:absolute; left:0; right:0; bottom:0;
    height: 2.8em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 70%);
    pointer-events:none;
  }

  /* bouton sous la description */
  .gws-shortdesc-toggle{
    display:flex; align-items:center; justify-content:center; gap:.5rem;
    width:100%; 
    background:#fff; border:0px solid #434A5F;
    font-weight:800; text-transform:uppercase;
    font-size:.9rem; color:#434A5F;
  }
  .gws-shortdesc-toggle .arrow{ transition: transform .2s ease; }
  /* flèche vers le haut quand c'est ouvert */
  .gws-shortdesc + .gws-shortdesc-toggle[data-open="true"] .arrow{ transform: rotate(180deg); }
  .gws-shortdesc .et_pb_text_inner + .gws-shortdesc-toggle[data-open="true"] .arrow{ transform: rotate(180deg); }
}

/* Bouton = gros V */
.gws-shortdesc-toggle{
  border-radius: 999px;
}
.gws-shortdesc-toggle .label,
.gws-shortdesc-toggle .arrow{
  display: none !important;   /* on masque le texte */
}
.gws-shortdesc-toggle::before{
  content: "V";               /* le gros V */
  font-size: 2rem;            /* ajuste la taille */
  line-height: 1;
  font-weight: 500;
  letter-spacing: .02em;
    font-family: 'LEMON MILK', sans-serif;

}

.gws-title-link{
  font-family: 'Josefin Sans',Helvetica,Arial,Lucida,sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  color: #46556a !important;
}
}

.c4-izmir figcaption > * {
  opacity: 0;
  border: 1px solid #fff;
  padding-top: 55%;
  padding-bottom: 55%;
  border-radius: 20px;
  padding-left: 15%;
  padding-right: 15%;
}



/* 1) Masquer juste le libellé "UGS :" et garder la valeur */
.et_pb_wc_meta .sku_wrapper { visibility: hidden; }      /* cache le texte "UGS :" */
.et_pb_wc_meta .sku_wrapper .sku {
  visibility: visible;                                   /* ré-affiche le SKU */
  position: relative;                                     /* pour stabilité d'affichage */
  display: inline;                                        /* reste en ligne */
}


/* Supprimer le libellé "UGS :" sans laisser d'espace */
.et_pb_wc_meta .sku_wrapper{
  font-size: 0;            /* on "éteint" le texte brut du wrapper */
}
.et_pb_wc_meta .sku_wrapper .sku{
  font-size: 1rem;         /* on rétablit la taille normale pour le SKU */
  /* Optionnel : préfixe perso
  position: relative;
  }
  .et_pb_wc_meta .sku_wrapper .sku::before{
    content: "";           /* ou "Réf : " si tu veux un libellé */
    margin-right: .35em;
  }
*/}



/* Le cadre qui coupe ce qui dépasse */
.et_pb_image.zoom-fixe .et_pb_image_wrap{
  position: relative;
  display: block;
  overflow: hidden;      /* essentiel */
  border-radius: 12px;   /* optionnel */
  line-height: 0;        /* supprime le petit gap sous l'image */
}

/* Le lien prend tout le bloc (important avec Divi) */
.et_pb_image.zoom-fixe a{
  display: block;
}

/* L'image reste en flux, prend la largeur, et ne change pas la taille du cadre */
.et_pb_image.zoom-fixe img{
  display: block;
  width: 100%;
  height: auto;
  transition: transform .35s ease;
  transform-origin: center center;
  will-change: transform;
}

/* Zoom visuel au survol (sans grossir le cadre) */
.et_pb_image.zoom-fixe a:hover img,
.et_pb_image.zoom-fixe a:focus-visible img{
  transform: scale(1.06);   /* ajuste 1.03–1.12 selon ton goût */
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce){
  .et_pb_image.zoom-fixe img{ transition: none; }
}




/* Colonne clippée, avec lien plein cadre */
.zummoviva{
  position: relative;
  overflow: hidden;                 /* rien ne déborde */
  border-radius: 12px;              /* optionnel */
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: 100% !important; /* point de départ */
  transition: background-size .45s ease; /* lisse le zoom */
}

/* Si tu as un lien à l’intérieur, on le fait couvrir toute la colonne */
.zummoviva > a{
  position:absolute; inset:0; 
  display:block; z-index:2;
}

/* Zoom au survol (ou focus clavier) */
.zummoviva:hover,
.zummoviva:focus-within{
  background-size: 108% !important; /* 105–112% selon ton goût */
}

