/* Yassine BOUAJANI 2024 https://www.linkedin.com/in/yassinebouajani/ */


/* surcharge pour supprimer le uppercase natif */


.product-miniature .product-title {
    text-transform: none !important;
}


/* surcharge pour mettre en blanc le fond du menu mobile */

@media (max-width: 767px) {
    .ets_mm_megamenu .container {
        background-color: #ffffff;
    }
    
    .mm_menus_ul {
        background-color: #ffffff;
    }
    
}

/* surcharge pour mettre en noir le contenu (icones) du menu mobile */

@media (max-width: 767px) {
    .transition_floating .close_menu *, .transition_full .close_menu *, .ybc-menu-vertical-button .icon-bar {
        color: #333333 !important ;
    }
    
     .close_menu .icon-bar, .ybc-menu-vertical-button .icon-bar {
        background-color: #333333 !important ;
    }
}

/* surcharge pour supprimer un padding sur les pages cms */ 

.page-content.page-cms{
    padding: 0 !important ;
}


/* surcharge Accessoires Module Multi Accessoires Pro */ 

.titreaccessoires {
    color: #232323;
    font-size: 1.1rem;
    font-weight: bolder;
}
 
/* surcharge ajustement modale panier */

#blockcart-modal .product-name {
    
    color: #0D5B4E;
}

#blockcart-modal .modal-title i.material-icons {
    
    color: #0D5B4E;
}

.btn-primary, .btn-primary:hover {
    
    background-color: #0D5B4E;
}

/* Surcharge étapes de commande */

body#checkout section.checkout-step.-reachable.-current .step-number{
    background-color:#0D5B4E;
}

.done{
    color: #0D5B4E;
}

body#checkout #footer {
    padding: unset;
    color: unset;
    background: unset;
}


body.page-order a {
    
    color: #95BA3F;
    
}

body#checkout #order-summary-content h4.black {
    color: #0D5B4E;
}

body.page-order a :hover {
    color: #7A9B33 !important; 
}

body.page-order .ets_mm_url a :hover{
    color: #0D5B4E !important;

}


.custom-radio input[type=radio]:checked+span {
    background-color: #0D5B4E;
}

body#checkout section.checkout-step .step-title {
    font-size: 1rem;
    font-weight: bolder;
    
}

#checkout-payment-step .content {
    background-color: rgba(149, 186, 63, 0.05); 
    border-radius: 5px; 
    padding-bottom : 1rem !important;
}

#payment-option-1-container label span,
#payment-option-2-container label span, #payment-option-3-container label span, #payment-option-4-container label span, #payment-option-5-container label span {
    font-size: 1.1em;
}

body.page-order label.js-terms {
    font-size: 1em; 
}

/* Surcharge footer */ 

titrefooter h2 {
    color: white !important;
}

/* Surcharge class hide on mobile */ 


@media screen and (max-width: 768px) { /* Taille max pour les écrans de mobile/tablette */
  .hide-on-mobile {
    display: none !important;
  }
}

/* surcharge reduction catégorie */
.product-flags li.product-flag.discount, .product-flags li.product-flag.discount-amount, .product-flags li.product-flag.discount-percentage {
    background-color:#95BA3F;
}

.product-flags li.product-flag {
background:#95BA3F;
}

/* correction wrapper */

#wrapper {
 background:    #fff;}





 /* Aligne le bouton radio, le texte et le logo PayPal sur une seule ligne */
.custom-radio.float-xs-left {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}

.custom-radio.float-xs-left input[type="radio"] {
  margin: 0;
  position: relative;
  top: 0;
  vertical-align: middle;
}

/* CSS : alignement et style */
.payment-option {
  display: flex;
  align-items: center;        /* aligne verticalement le texte, le radio et le logo */
  gap: 10px;                  /* espacement horizontal entre éléments */
  margin-bottom: 10px;
  flex-wrap: nowrap;          /* empêche le logo de passer à la ligne */
}

/* Label englobe le radio et le texte pour plus d'accessibilité */
.payment-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

/* Radio personnalisé - conserve l'input mais masque l'élément natif visuellement */
.custom-radio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  position: relative;
}

.custom-radio input[type="radio"] {
  /* on laisse l'input accessible mais on le rend invisible visuellement */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

/* Faux indicateur visuel du radio */
.custom-radio-faux {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #777;
  box-sizing: border-box;
  background: #fff;
}

/* état checked : style du pseudo-radio */
.custom-radio input[type="radio"]:checked + .custom-radio-faux {
  background: radial-gradient(circle at center, #222 0 45%, transparent 46%);
  border-color: #222;
}

/* Texte du moyen de paiement */
.payment-text {
  line-height: 1;
  white-space: nowrap;
}

/* Conteneur des logos */
.paypal-mark-container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  white-space: nowrap;
}

/* wrapper pour plusieurs logos possibles */
.paypal-marks {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* style pour chaque logo */
.paypal-mark {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  background: #fff;
  line-height: 0; /* évite les sauts liés à l'image */
}

/* image du logo */
.paypal-mark img {
  height: 20px;   /* ajuste la taille du logo */
  width: auto;
  display: inline-block;
  vertical-align: middle;
}



/* Ajoute le logo PayPal à côté du texte PayPal */
label[for="payment-option-7"] span::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 28px;
  background-image: url('https://www.paypalobjects.com/webstatic/icon/pp258.png');
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 8px;
  vertical-align: middle;
}


