/**
 * Module Popup First Visit
 * Styles pour la popup
 */

.popup-first-visit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-first-visit-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-first-visit-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.popup-first-visit-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.popup-first-visit-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.popup-first-visit-content img {
    max-width: 100%;
    max-height: 90vh;
    height: auto;
    margin: 0 auto;
}

/* Image mobile et desktop - géré par JavaScript */
.popup-image-mobile,
.popup-image-desktop {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: none; /* Par défaut masqué, JavaScript gère l'affichage */
}

/* Responsive pour très petits écrans */
@media (max-width: 480px) {
    .popup-first-visit-container {
        max-width: 95%;
        max-height: 95%;
    }

    .popup-first-visit-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 5px;
        right: 5px;
    }
}

