.popup {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    overflow-y: auto;
}

.popup.show {
    display: block;
}

/* Contenu de la popup - Positionné à DROITE */
.popup-content {
    background: white;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 600px;
    height: 100%;
    padding: 2rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.popup.show .popup-content {
    transform: translateX(0);
}

/* Bouton de fermeture */
.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.popup-close:hover {
    background-color: #f0f0f0;
    color: #000;
}

/* Titre de la popup */
#popup-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #000091;
    font-size: 1.5rem;
    padding-right: 3rem; /* Espace pour le bouton de fermeture */
}

/* Responsive */
@media (max-width: 768px) {
    .popup {
        padding: 1rem;
    }
    
    .popup-content {
        padding: 1.5rem;
    }
    
    #popup-title {
        font-size: 1.25rem;
    }
}