/* Style des boutons + et - */
.BtnPlus,
.BtnMoins {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 2px solid #20257f;
  background-color: transparent;
  color: #20257f;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.2s ease;
}

.BtnPlus:hover,
.BtnMoins:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

/* Style des boutons + et - */
.BtnPlus,
.BtnMoins {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 2px solid #20257f !important;
  background-color: transparent !important;
  color: #20257f !important;
  font-size: 20px !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.BtnPlus:hover,
.BtnMoins:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

/* Style de l'input quantité au centre */
#QntyInput {
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  width: 40px;
  font-size: 20px;
  font-weight: bold;
  background: transparent;
  border: none;
  color: #000;
  pointer-events: none;
}

/* Wrapper qui aligne et équilibre les éléments */
.qty-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px; /* égalise l’espace entre - 0 + */
}

/* Switch Toggle */
/* Agrandir le switch */
.custom-switch .form-check-input {
  width: 3rem;
  height: 1.6rem;
  cursor: pointer;
}

/* Agrandir le curseur rond */
.custom-switch .form-check-input:before {
  
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  top: 0.2rem;
  left: 0.2rem;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

/* Changer la couleur quand activé */
.custom-switch .form-check-input:checked {
  background-color: #ee273c; /* jaune Bootstrap */
  border-color: #fff;
}

/* Déplacement du rond quand activé */
.custom-switch .form-check-input:checked:before {
  transform: translateX(1.4rem);
}

/* Bouton Sticky Telegram */

/* Style commun pour les boutons Sticky */
.telegram-help-btn, .whatsapp-help-btn {
  position: fixed !important;
  right: 20px;
  color: white;
  padding: 12px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 9999;
  overflow: hidden;
  white-space: nowrap;
  max-width: 50px; /* État initial fermé */
}

/* Positionnement vertical distinct */
.whatsapp-help-btn {
  bottom: 20px; /* Tout en bas */
  background-color: #25D366;
}

.telegram-help-btn {
  bottom: 80px; /* Juste au-dessus du bouton WhatsApp */
  background-color: #229ED9;
}

/* Style des icônes */
.telegram-help-btn .telegram-icon, 
.whatsapp-help-btn .whatsapp-icon {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}

/* Telegram icon filter (si l'image n'est pas déjà blanche) */
.telegram-help-btn .telegram-icon {
  filter: brightness(0) invert(1);
}

/* Texte caché par défaut */
.telegram-help-btn .telegram-text,
.whatsapp-help-btn .whatsapp-text {
  margin-left: 10px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  visibility: hidden;
}

/* Effet au survol (Expansion) */
.telegram-help-btn:hover, 
.whatsapp-help-btn:hover {
  padding-right: 20px;
  max-width: 200px; /* S'ouvre pour laisser place au texte */
  color: white;
}

.telegram-help-btn:hover .telegram-text,
.whatsapp-help-btn:hover .whatsapp-text {
  opacity: 1;
  visibility: visible;
}