.modal-body img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin: 0 auto;
}

/* 🟢 Texte et mise en forme */
.modal-info h3 {
  font-size: 1.5rem;
  color: #2e4d32; /* vert doux foncé */
  margin-bottom: 0.5rem;
}

.modal-info p {
  margin-bottom: 0.5rem;
  color: #333;
}

.modal-info label {
  font-weight: 500;
  color: #2e4d32;
}

/* 🟢 Champ quantité */
#modal-quantity {
  width: 70px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* 🟢 Bouton principal */
#modal-ajouter-panier {
  background-color: #87a37c;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

#modal-ajouter-panier:hover:not(:disabled) {
  background-color: #729267;
}

#modal-ajouter-panier:disabled {
  background-color: #b0c0ad;
  cursor: not-allowed;
}

/* 🟢 Message de stock */
#modal-stock-message {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* 🔄 Animation d'apparition */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 📱 Responsive Mobile */
@media (max-width: 576px) {
  .modal-content {
    padding: 1rem;
    max-width: 95%;
  }

  .modal-info h3 {
    font-size: 1.25rem;
  }

  #modal-ajouter-panier {
    width: 100%;
    padding: 0.75rem;
  }
}




