<div class="modal fade" id="visualiserMatiereModal<?= $m['id'] ?>" tabindex="-1" aria-labelledby="visualiserMatiereModalLabel<?= $m['id'] ?>" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header bg-info text-white">
        <h5 class="modal-title">Détails Matière Première #<?= $m['id'] ?></h5>
        <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
      </div>
      <div class="modal-body">
        <p><strong>Produit :</strong> <?= htmlspecialchars($m['produit']) ?></p>
        <p><strong>Quantité :</strong> <?= (int)$m['quantite'] ?></p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Fermer</button>
      </div>
    </div>
  </div>
</div>
