diff --git a/public/assets/js/app.js b/public/assets/js/app.js
index 0a0d41251703b964f4f85daea9e7e08b37c5aa58..8daf231fe4edc95d7d535f93f74be399ed82a9ed 100755
--- a/public/assets/js/app.js
+++ b/public/assets/js/app.js
@@ -15,6 +15,21 @@ $(function() {
         });
     });
 
+    // Bug rencontré par Mathieu sous firefox Linux (mais pas Chrome), plusieurs overlay sont ouverts, on supprime ceux en trop
+    document.addEventListener('show.bs.modal', function () {
+        // Select all modal-backdrop elements
+        const backdrops = document.querySelectorAll('.modal-backdrop');
+
+        // If there are more than one, remove all except the first one
+        if (backdrops.length > 1) {
+            backdrops.forEach((backdrop, index) => {
+                if (index > 0) {
+                    backdrop.remove();
+                }
+            });
+        }
+    });
+
 
     // Initialize Tooltips Bootstrap 5
     var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))