.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Contenu de la modal */
.modal-content {
  background: #2a2a2a;
  color: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.25s ease-out;
}

/* Animation d’apparition */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Bouton de fermeture rond et discret */
.close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #444;
  color: #fff;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.close:hover { background: #4CAF50; transform: rotate(90deg); }

/* Mobile */
@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    padding: 20px 16px;
  }
}

/* caché par défaut, visible seulement avec .is-open */
.modal{display:none; position:fixed; inset:0; z-index:2000; background:rgba(0,0,0,.6); 
       display:flex; justify-content:center; align-items:center; padding:20px}
.modal:not(.is-open){display:none}
.modal.is-open{display:flex}

.modal-content{background:#2a2a2a; color:#fff; border-radius:12px; width:90%; max-width:420px; 
               padding:24px 20px; position:relative}
.close{position:absolute; top:8px; right:10px; width:28px; height:28px; border-radius:50%;
       background:#444; color:#fff; font-size:18px; line-height:28px; text-align:center; cursor:pointer}
