Fix clics qui traversent les ecrans (z-index + background opaque)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-07 18:29:56 +02:00
parent c691c4c191
commit f8d83d8481
2 changed files with 4 additions and 1 deletions

View File

@@ -44,11 +44,14 @@ html, body {
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
transition: opacity 0.4s ease; transition: opacity 0.4s ease;
z-index: 1;
background: var(--fond);
} }
.ecran.actif { .ecran.actif {
opacity: 1; opacity: 1;
pointer-events: all; pointer-events: all;
z-index: 10;
} }
/* === Ecran d'accueil === */ /* === Ecran d'accueil === */

View File

@@ -135,7 +135,7 @@
</section> </section>
<!-- Choix admin : wizard ou parametres --> <!-- Choix admin : wizard ou parametres -->
<section id="ecran-admin-choix" class="ecran"> <section id="ecran-admin-choix" class="ecran" onclick="event.stopPropagation()">
<h2>Administration</h2> <h2>Administration</h2>
<div class="grille-modes"> <div class="grille-modes">
<button class="btn-mode" onclick="ouvrirWizard()"> <button class="btn-mode" onclick="ouvrirWizard()">