/* Popup de bienvenue avec design simple et épuré */
.welcome-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(3px);
    z-index: 10000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    animation: fadeIn 0.3s ease-out;
    visibility: hidden;
    opacity: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.welcome-popup-overlay.show {
    visibility: visible !important;
    opacity: 1 !important;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.welcome-popup {
    background: white !important;
    border-radius: 15px !important;
    padding: 0 !important;
    max-width: 600px !important;
    width: 90% !important;
    max-height: 90vh !important;
    position: relative !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    animation: slideIn 0.4s ease-out;
    overflow: hidden !important;
    margin: 0 !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

.welcome-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    line-height: 1;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    text-align: center;
    z-index: 10;
}

.welcome-popup-close:hover {
    opacity: 0.7;
}

.welcome-popup-close:focus {
    outline: none;
    opacity: 0.7;
}

.welcome-popup-content {
    padding: 50px 40px 40px 40px;
    text-align: center;
}

.welcome-popup-title {
    font-size: 24px;
    font-weight: bold;
    color: #4A90E2;
    margin: 0 0 25px 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.welcome-popup-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.5;
    font-weight: normal;
}

.welcome-popup-code-section {
    margin: 30px 0 0 0;
}

.welcome-popup-code-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0;
}

.welcome-popup-code {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    letter-spacing: 1px;
    min-width: 160px;
    text-align: center;
}

.welcome-popup-copy-btn {
    background: #FB7514;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}

.welcome-popup-copy-btn:hover {
    background: #ef6e12;
}

.welcome-popup-copy-btn.copied {
    background: #28a745;
    animation: pulse 0.3s ease;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Style pour la croix personnalisée */
.welcome-popup-close .close-icon {
    font-size: 24px !important;
    font-weight: normal !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
    color: #000 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-popup {
        width: 95%;
        margin: 20px;
        max-width: none;
    }
    
    .welcome-popup-content {
        padding: 40px 25px 30px 25px;
    }
    
    .welcome-popup-title {
        font-size: 20px;
    }
    
    .welcome-popup-subtitle {
        font-size: 14px;
    }
    
    .welcome-popup-code-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .welcome-popup-code {
        font-size: 18px;
        min-width: auto;
        width: 100%;
    }
    
    .welcome-popup-copy-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .welcome-popup-content {
        padding: 35px 20px 25px 20px;
    }
    
    .welcome-popup-title {
        font-size: 18px;
        line-height: 1.2;
    }
    
    .welcome-popup-subtitle {
        font-size: 13px;
    }
}