feat: Modal de déconnexion personnalisée remplaçant le confirm natif (v1.2.3)

- Nouvelle modal moderne avec design élégant et animations
- Icône emoji 👋 avec gradient violet et animation pulse
- Textes en français avec titre et description
- Fond flou avec overlay sombre pour meilleur focus
- Trois méthodes de fermeture : bouton, clic externe, Escape
- Suppression du popup système Electron
This commit is contained in:
Pierre Marx
2025-09-04 15:27:22 -04:00
parent fb9430936c
commit da20170bef
4 changed files with 204 additions and 3 deletions

View File

@@ -715,6 +715,120 @@ body {
animation: fadeIn 0.3s;
}
/* === MODAL DE DÉCONNEXION === */
.modal-overlay {
display: none;
position: fixed;
z-index: 3000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(10px);
animation: fadeIn 0.2s;
justify-content: center;
align-items: center;
}
.modal-overlay.active {
display: flex;
}
.logout-modal {
background: white;
border-radius: 16px;
padding: 40px;
max-width: 420px;
width: 90%;
text-align: center;
animation: scaleIn 0.3s ease;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
@keyframes scaleIn {
from {
transform: scale(0.9);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
.logout-modal-icon {
width: 80px;
height: 80px;
margin: 0 auto 20px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 40px;
animation: pulse 2s infinite;
}
.logout-modal h2 {
margin: 0 0 15px 0;
color: #333;
font-size: 28px;
font-weight: 600;
}
.logout-modal p {
margin: 0 0 10px 0;
color: #555;
font-size: 16px;
line-height: 1.5;
}
.logout-modal-subtitle {
color: #999 !important;
font-size: 14px !important;
margin-bottom: 30px !important;
}
.logout-modal-buttons {
display: flex;
gap: 12px;
justify-content: center;
margin-top: 30px;
}
.btn-modal-cancel,
.btn-modal-confirm {
padding: 12px 30px;
border: none;
border-radius: 8px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
min-width: 140px;
}
.btn-modal-cancel {
background: #f1f3f5;
color: #495057;
}
.btn-modal-cancel:hover {
background: #e9ecef;
transform: translateY(-2px);
}
.btn-modal-confirm {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.btn-modal-confirm:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }