/* === Bouton Style 2 (Form, Elementor, WooCommerce) === */
body.style2 .form button,
body.style2 .button a,
body.style2 .woocommerce-button {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  border-radius: 50px !important;
  border: 3px solid var(--tertiaire-2) !important;
  background: var(--tertiaire-2) !important;
  color: var(--secondaire-1) !important; /* texte blanc */
  padding: 12px 15px 12px 50px !important;
  font-size: 0.95em;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer !important;
  overflow: hidden !important;
  transition: all 0.3s ease-in-out !important;
  box-shadow: 0 0 1px rgba(0,0,0,0.3);
  z-index: 0 !important;
}

/* === Fond jaune (primaire) qui s’étire === */
body.style2 .form button::before,
body.style2 .button a::before,
body.style2 .woocommerce-button::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  width: 41px !important;
  border-radius: 50px !important;
  background: var(--primaire-1) !important;
  transition: width 0.5s ease-in-out !important;
  z-index: -1 !important;
}

/* === Flèche fine dans le rond jaune === */
body.style2 .form button::after,
body.style2 .woocommerce-button::after {
  content: "→";
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  height: 100% !important;
  width: 41px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 17px !important;
  font-weight: 600;
  color: var(--tertiaire-2) !important; /* flèche jaune */
  z-index: 2 !important;
  transition: transform 0.5s ease-in-out !important;
}

/* === Icône Elementor === */
body.style2 .button a .elementor-button-icon,
body.style2 .woocommerce-button .elementor-button-icon {
  position: absolute !important;
  left: -50px !important;
  top: 0 !important;
  height: 100% !important;
  width: 41px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  font-size: 19px !important;
  z-index: 1 !important;
  transition: transform 0.5s ease-in-out !important;
}

/* === Couleur icônes Elementor : toujours jaune === */
body.style2 .button a .elementor-button-icon .e-font-icon-svg,
body.style2 .woocommerce-button .elementor-button-icon .e-font-icon-svg,
body.style2 .button a .elementor-button-icon i,
body.style2 .woocommerce-button .elementor-button-icon i {
  fill: var(--tertiaire-2) !important;
  color: var(--tertiaire-2) !important;
}

/* === Texte au-dessus du fond === */
body.style2 .form button span,
body.style2 .button a span,
body.style2 .woocommerce-button span,
body.style2 .woocommerce-button strong {
  position: relative !important;
  z-index: 2 !important;
  color: var(--secondaire-1) !important; /* texte blanc par défaut */
}

/* === Hover : fond blanc s’allonge === */
body.style2 .form button:hover::before,
body.style2 .button a:hover::before,
body.style2 .woocommerce-button:hover::before {
  width: 100% !important;
}

/* === Hover : flèche bouge === */
body.style2 .form button:hover::after,
body.style2 .woocommerce-button:hover::after {
  transform: translateX(5px);
}

/* === Hover : fond blanc, texte vert === */
body.style2 .form button:hover,
body.style2 .button a:hover,
body.style2 .woocommerce-button:hover {
  background: var(--primaire-1) !important;
  color: var(--tertiaire-2) !important; /* texte vert */
}

/* === Hover : icônes restent jaunes === */
body.style2 .button a:hover .elementor-button-icon .e-font-icon-svg,
body.style2 .woocommerce-button:hover .elementor-button-icon .e-font-icon-svg,
body.style2 .button a:hover .elementor-button-icon i,
body.style2 .woocommerce-button:hover .elementor-button-icon i,
body.style2 .form button:hover::after,
body.style2 .woocommerce-button:hover::after {
  fill: var(--tertiaire-2) !important;
  color: var(--tertiaire-2) !important;
}

/* === Empêche le hover global d’écraser le jaune des icônes === */
body.style2 .form button:hover *,
body.style2 .button a:hover *,
body.style2 .woocommerce-button:hover * {
  color: inherit !important;
}

/* === Boutons produits WooCommerce === */
.woocommerce-loop-product__buttons a {
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out !important;
}

/* === Compatibilité complète WooCommerce === */
body.style2 .woocommerce-button,
body.style2 .woocommerce-Button,
body.style2 .button.wc-forward,
body.style2 .woocommerce a.button {
  border-radius: 50px !important;
  border: 3px solid var(--tertiaire-2) !important;
  background: var(--tertiaire-2) !important;
  color: var(--secondaire-1) !important;
  padding: 12px 15px 12px 50px !important;
  font-size: 0.95em;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  box-shadow: 0 0 1px rgba(0,0,0,0.3);
  transition: all 0.3s ease-in-out !important;
  z-index: 0 !important;
}

/* === Fond jaune + flèche (hérite de ton style) === */
body.style2 .woocommerce-button::before,
body.style2 .woocommerce-Button::before,
body.style2 .button.wc-forward::before,
body.style2 .woocommerce a.button::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  width: 41px !important;
  border-radius: 50px !important;
  background: var(--primaire-1) !important;
  transition: width 0.5s ease-in-out !important;
  z-index: -1 !important;
}

body.style2 .woocommerce-button::after,
body.style2 .woocommerce-Button::after,
body.style2 .button.wc-forward::after,
body.style2 .woocommerce a.button::after {
  content: "→";
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  height: 100% !important;
  width: 41px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 17px !important;
  font-weight: 600;
  color: var(--tertiaire-2) !important;
  z-index: 2 !important;
  transition: transform 0.5s ease-in-out !important;
}

body.style2 .woocommerce-button:hover,
body.style2 .woocommerce-Button:hover,
body.style2 .button.wc-forward:hover,
body.style2 .woocommerce a.button:hover {
  background: var(--primaire-1) !important;
  color: var(--tertiaire-2) !important;
}

body.style2 .woocommerce-button:hover::before,
body.style2 .woocommerce-Button:hover::before,
body.style2 .button.wc-forward:hover::before,
body.style2 .woocommerce a.button:hover::before {
  width: 100% !important;
}

body.style2 .woocommerce-button:hover::after,
body.style2 .woocommerce-Button:hover::after,
body.style2 .button.wc-forward:hover::after,
body.style2 .woocommerce a.button:hover::after {
  transform: translateX(5px);
}

body.style2 .woocommerce-Button.wc-forward.button,
body.style2 .woocommerce-button.wc-forward.button {
  font-family: "futura-pt"!important;
}

/* === Boutons WooCommerce oubliés (ex : compte / adresses / formulaires) === */
.woocommerce form .button,
.woocommerce-page form .button {
  border-radius: 50px !important;
  border: 3px solid var(--tertiaire-2) !important;
  background: var(--tertiaire-2) !important;
  color: var(--secondaire-1) !important;
  padding: 12px 15px 12px 50px !important;
  font-family: var(--font-secondaire) !important;
  font-size: 0.95em;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  box-shadow: 0 0 1px rgba(0,0,0,0.3);
  transition: all 0.3s ease-in-out !important;
  z-index: 0 !important;
}

.woocommerce form .button::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  width: 41px !important;
  border-radius: 50px !important;
  background: var(--primaire-1) !important;
  transition: width 0.5s ease-in-out !important;
  z-index: -1 !important;
}

.woocommerce form .button::after {
  content: "→";
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  height: 100% !important;
  width: 41px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 17px !important;
  font-weight: 600;
  color: var(--tertiaire-2) !important;
  z-index: 2 !important;
  transition: transform 0.5s ease-in-out !important;
}

.woocommerce form .button:hover {
  background: var(--primaire-1) !important;
  color: var(--tertiaire-2) !important;
}

.woocommerce form .button:hover::before {
  width: 100% !important;
}

.woocommerce form .button:hover::after {
  transform: translateX(5px);
}

/* === Bouton WooCommerce "Retour à la boutique" === */
.woocommerce .button.wc-backward {
  border-radius: 50px !important;
  border: 3px solid var(--tertiaire-2) !important;
  background: var(--tertiaire-2) !important;
  color: var(--secondaire-1) !important;
  padding: 12px 15px 12px 50px !important;
  font-family: var(--font-secondaire) !important;
  font-size: 0.95em;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  box-shadow: 0 0 1px rgba(0,0,0,0.3);
  transition: all 0.3s ease-in-out !important;
  z-index: 0 !important;
}

/* --- Rond jaune à gauche --- */
.woocommerce .button.wc-backward::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  width: 41px !important;
  border-radius: 50px !important;
  background: var(--primaire-1) !important;
  transition: width 0.5s ease-in-out !important;
  z-index: -1 !important;
}

/* --- Flèche dans le rond jaune --- */
.woocommerce .button.wc-backward::after {
  content: "→";
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  height: 100% !important;
  width: 41px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 17px !important;
  font-weight: 600;
  color: var(--tertiaire-2) !important;
  z-index: 2 !important;
  transition: transform 0.5s ease-in-out !important;
}

/* --- Effet hover --- */
.woocommerce .button.wc-backward:hover {
  background: var(--primaire-1) !important;
  color: var(--tertiaire-2) !important;
}

.woocommerce .button.wc-backward:hover::before {
  width: 100% !important;
}

.woocommerce .button.wc-backward:hover::after {
  transform: translateX(5px);
}

.woocommerce .button.wc-backward {
  overflow: visible !important; /* <— la clé du problème */
}

.woocommerce .button.wc-backward::before {
  left: -3px !important; /* petit décalage pour compenser la bordure */
}



