#swpm-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    opacity: 0;
}

#swpm-modal {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    z-index: 10001;
    width: 90%; max-width: 700px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    /* Responsive scrolling */
    max-height: 80vh;
    overflow-y: auto;
}

#swpm-modal .content {
    margin-bottom: 20px;
}
#swpm-modal .content img {
    max-width: 99%;
}
#swpm-modal .buttons button {
 /*   margin: 0 10px;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    border-radius: 3px;
    background: #007bff;
    color: #fff;*/
}

#swpm-modal .buttons button:hover {
/*    background: #0056b3;*/
}

#swpm-modal .buttons {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 5px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes slideDown {
    from { transform: translate(-50%, -60%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}
@keyframes slideUp {
    from { transform: translate(-50%, -50%); opacity: 1; }
    to { transform: translate(-50%, -60%); opacity: 0; }
}

.fade-in {
    animation: fadeIn 0.5s forwards;
}
.fade-out {
    animation: fadeOut 0.5s forwards;
}
.slide-down {
    animation: slideDown 0.5s forwards;
}
.slide-up {
    animation: slideUp 0.5s forwards;
}

/* Media query pour mobile */
@media (max-width: 480px) {
    #swpm-modal {
        width: 95%;
        padding: 15px;
    }
}