/* Welcome Popup Styles */

/* Overlay du popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Container du popup */
.popup-container {
    position: relative;
    background: #ffffff;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease-in-out;
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

/* Bouton de fermeture */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #ff4444;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.popup-close:hover {
    background: #cc0000;
    transform: rotate(90deg);
}

/* Image du popup */
.popup-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-image .placeholder {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

/* Contenu du popup */
.popup-content {
    padding: 40px 30px;
}

.popup-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.3;
}

.popup-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
}

.popup-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.popup-btn-primary {
    background: #0198CC;
    color: white;
}

.popup-btn-primary:hover {
    background: #017aa3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 152, 204, 0.3);
}

.popup-btn-secondary {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.popup-btn-secondary:hover {
    border-color: #0198CC;
    color: #0198CC;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .popup-image {
        height: 200px;
    }
    
    .popup-content {
        padding: 30px 20px;
    }
    
    .popup-title {
        font-size: 24px;
    }
    
    .popup-description {
        font-size: 14px;
    }
    
    .popup-actions {
        flex-direction: column;
    }
    
    .popup-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .popup-image {
        height: 150px;
    }
    
    .popup-content {
        padding: 20px 15px;
    }
    
    .popup-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .popup-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .popup-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
}

/* Animation de scroll */
.popup-container {
    scrollbar-width: thin;
    scrollbar-color: #0198CC #f1f1f1;
}

.popup-container::-webkit-scrollbar {
    width: 8px;
}

.popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb {
    background: #0198CC;
    border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb:hover {
    background: #017aa3;
}
