/* Variables CSS */
:root {
    --sunwest-primary-color: #ec900a;
    --sunwest-text-primary: #333333;
    --sunwest-text-secondary: #666666;
    --sunwest-bg-light: #ffffff;
    --sunwest-bg-overlay: rgba(0, 0, 0, 0.5);
    --sunwest-border-radius: 12px;
    --sunwest-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --sunwest-transition: all 0.3s ease;
}

/* Overlay */
.sunwest-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--sunwest-bg-overlay);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--sunwest-transition);
}

.sunwest-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.sunwest-popup-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: var(--sunwest-bg-light);
    border-radius: var(--sunwest-border-radius);
    box-shadow: var(--sunwest-box-shadow);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    padding: 40px 30px;
    opacity: 0;
    visibility: hidden;
    transition: var(--sunwest-transition);
    animation: slideIn 0.4s ease;
}

.sunwest-popup-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Bouton fermer */
.sunwest-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sunwest-text-secondary);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--sunwest-transition);
    z-index: 10000;
}

.sunwest-popup-close:hover {
    color: var(--sunwest-primary-color);
}

.sunwest-popup-close svg {
    width: 24px;
    height: 24px;
}

/* Contenu */
.sunwest-popup-content {
    text-align: center;
}

.sunwest-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--sunwest-text-primary);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.sunwest-popup-description {
    font-size: 16px;
    color: var(--sunwest-text-secondary);
    line-height: 1.6;
    margin: 0 0 30px 0;
}

/* CTA Button */
.sunwest-popup-cta {
    display: inline-block;
    padding: 14px 40px;
    background-color: var(--sunwest-primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--sunwest-transition);
    box-shadow: 0 4px 15px rgba(236, 144, 10, 0.3);
    border: none;
    cursor: pointer;
}

.sunwest-popup-cta:hover {
    background-color: #d17a08;
    box-shadow: 0 6px 20px rgba(236, 144, 10, 0.4);
    transform: translateY(-2px);
}

.sunwest-popup-cta:active {
    transform: translateY(0);
}

/* Animation d'entrée */
@keyframes slideIn {
    from {
        transform: translate(-50%, -50%) scale(0.85) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1) translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sunwest-popup-modal {
        width: 95%;
        max-width: 450px;
        padding: 30px 20px;
    }

    .sunwest-popup-title {
        font-size: 24px;
    }

    .sunwest-popup-description {
        font-size: 15px;
    }

    .sunwest-popup-cta {
        padding: 12px 30px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .sunwest-popup-modal {
        width: 90%;
        max-width: 400px;
        padding: 25px 15px;
    }

    .sunwest-popup-title {
        font-size: 22px;
    }

    .sunwest-popup-description {
        font-size: 14px;
    }

    .sunwest-popup-cta {
        padding: 11px 25px;
        font-size: 14px;
        width: 100%;
    }

    .sunwest-popup-close {
        top: 10px;
        right: 10px;
    }
}