diff --git a/Js/fonctions.js b/Js/fonctions.js
index a0fa1bb..0baecf4 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -192,12 +192,31 @@ function baseSwal(options) {
title: 'responsive-swal-title',
htmlContainer: 'responsive-swal-html'
},
- didOpen: adjustSwalContent,
+ didOpen: (popup) => {
+ // Ajuste ton contenu responsive
+ adjustSwalContent(popup);
+
+ // Trouver le z-index le plus élevé parmi les modals ouverts
+ const highestModalZ = [...document.querySelectorAll('.modal.show')]
+ .map(m => parseInt(window.getComputedStyle(m).zIndex) || 1050)
+ .reduce((a, b) => Math.max(a, b), 1050);
+
+ // Forcer SweetAlert à passer au-dessus
+ const swalContainer = popup.closest('.swal2-container');
+ if (swalContainer) {
+ swalContainer.style.zIndex = highestModalZ + 50;
+ }
+ },
willOpen: () => { document.body.style.overflow = 'hidden'; },
willClose: () => { document.body.style.overflow = 'auto'; }
});
}
+// 🔒 Fonction utilitaire pour fermer SweetAlert
+function closeSwal() {
+ Swal.close();
+}
+
/**
* ALERTE SIMPLE
* Affiche une information bilingue.
diff --git a/Vue/gabarit.php b/Vue/gabarit.php
index ee30680..17fa958 100755
--- a/Vue/gabarit.php
+++ b/Vue/gabarit.php
@@ -663,7 +663,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte'];
-
+