.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 80vh;
    max-width: 90vw;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

/* Make popup scrollable when content exceeds max-height */
.popup {
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Ajouter un style pour les boutons dans le popup */
.popup button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
    margin: 10px;
    transition: background-color 0.3s ease;
}

.popup button:hover {
    background-color: #0056b3;
}

.popup button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup p {
    font-size: 1.1rem;
    text-align: center;
}

.popup p em {
    color: #007bff;
}

.popup-objective {
    font-weight: bold;
    color: #007bff;
}

.popup-note {
    color: #868686;
    font-size: 0.9rem;
    font-style: italic;
    
}

.popup img {
    width: 100px;
}
