/* === Calculateur de Big Bags - Style aligné centré === */
#bigbag-calculator.bigbag-calculator {
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #f8f8f8;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: 2rem auto;
  transition: all 0.3s ease;
  text-align: center; /* Centrage du texte global */
}

#bigbag-calculator:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* --- Titre --- */
#bigbag-calculator h3 {
  font-size: 1.3rem;
  color: #2d7a35;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}
#bigbag-calculator h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #2d7a35;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* --- Champs en ligne centrés --- */
#bigbag-calculator .form-group {
  display: flex;
  align-items: center;
  justify-content: center; /* centrage horizontal du contenu */
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  text-align: left;
}

#bigbag-calculator label {
  flex: 0 0 150px; /* largeur fixe des labels */
  text-align: right; /* aligne le texte du label à droite */
  font-weight: 500;
  color: #333;
  margin: 0;
  font-size: 0.95rem;
}

#bigbag-calculator input {
  flex: 0 0 100px; /* largeur fixe des champs */
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
  text-align: right;
  transition: all 0.2s ease;
}

#bigbag-calculator input:focus {
  border-color: #2d7a35;
  box-shadow: 0 0 0 2px rgba(45,122,53,0.1);
  outline: none;
}

/* --- Bouton --- */
#bigbag-calculator #calculer {
  background: #2d7a35;
  color: #fff;
  border: none;
  padding: 0.7rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  width: 60%;
  margin-top: 1rem;
}
#bigbag-calculator #calculer:hover {
  background: #24902f;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* --- Résultat --- */
#bigbag-calculator #resultat {
  margin-top: 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  text-align: center;
  padding: 0.8rem 1rem;
}
#bigbag-calculator .alert-info {
  background-color: #eaf6ec;
  color: #1f6d2b;
  border: 1px solid #cfe8d4;
}
#bigbag-calculator .alert-warning {
  background-color: #fff6e0;
  color: #b87300;
  border: 1px solid #ffe5a3;
}

#intro_calculateur_bb{
	margin:1rem 0;
}

/* --- Responsive --- */
@media (max-width: 576px) {
  #bigbag-calculator .form-group {
    flex-direction: column;
    align-items: center;
  }
  #bigbag-calculator label {
    text-align: center;
    margin-bottom: 0.2rem;
    flex: 0 0 auto;
  }
  #bigbag-calculator input {
    width: 100%;
    max-width: 180px;
    text-align: center;
  }
  #bigbag-calculator #calculer {
    width: 100%;
  }
}
