@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap');

.pricing-wrapper {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
  font-family: 'Manrope', sans-serif;
  color: #2c3531;
  /* Sécurité pour ne pas coller aux bords sur mobile */
  padding: 0 15px; 
  box-sizing: border-box;
}

/* Badge Nom de l'offre */
.plan-badge {
  font-family: 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  font-weight: 700;
  color: #c2715b;
  margin-bottom: 10px;
  display: inline-block;
  border: 1px solid #c2715b;
  padding: 6px 18px;
  border-radius: 50px;
}

.price-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  min-height: 60px;
}

#dynamic-price {
  font-size: 68px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  color: #2c3531;
}

/* Ajustement taille police prix sur petit mobile */
@media (max-width: 480px) {
  #dynamic-price {
    font-size: 52px;
  }
}

.price-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.discount-badge {
  background-color: #9aab9e;
  color: #ffffff;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 2px;
  line-height: 1.2;
}

.old-price {
  font-size: 22px;
  text-decoration: line-through;
  opacity: 0.5;
  font-weight: 500;
  color: #2c3531;
}

/* --- CONTENEUR SLIDER + BOUTONS --- */
.slider-controls-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Utilise tout l'espace */
  gap: 10px;
  margin-bottom: 5px;
  width: 100%;
}

.range-container {
  flex-grow: 1; /* La barre prend toute la place restante */
  display: flex;
  align-items: center;
  /* Important : permet à la barre de rétrécir si besoin sans écraser les boutons */
  min-width: 0; 
}

/* --- BOUTONS (FIX MOBILE) --- */
.control-btn {
  /* ANTI-ECRASEMENT : On force la taille et on interdit le rétrécissement */
  flex: 0 0 32px; 
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  
  border-radius: 50%;
  border: none;
  background-color: #9aab9e;
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1; /* Centre le symbole verticalement */
  cursor: pointer;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  padding: 0; /* Reset du padding */
  padding-bottom: 2px; /* Ajustement visuel optique */
  margin: 0;
  
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.control-btn:hover {
  background-color: #88998c;
}

.control-btn:active {
  transform: scale(0.95);
}

.control-btn:disabled {
  background-color: #e0e6e1;
  color: #ffffff;
  cursor: not-allowed;
  box-shadow: none;
}

/* --- Style de la Barre --- */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  margin: 0;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: #9aab9e;
  cursor: pointer;
  margin-top: -10px;
  box-shadow: 0 4px 10px rgba(154, 171, 158, 0.4);
  border: 3px solid #fff;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: #e0e6e1;
  border-radius: 4px;
}
/* Firefox */
input[type=range]::-moz-range-thumb {
  height: 28px;
  width: 28px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #9aab9e;
  cursor: pointer;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: #e0e6e1;
  border-radius: 4px;
}

.slider-steps {
  display: flex;
  justify-content: space-between;
  /* On aligne les chiffres avec la barre, en tenant compte de la largeur des boutons (32px) + gap (10px) */
  padding: 0 42px; 
  font-size: 12px;
  color: #9aab9e;
  font-weight: 700;
  margin-bottom: 20px;
}

.unit-footer {
  font-size: 24px;