/* Popup Exit Intent - Styles */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-container {
    background: var(--white, #ffffff);
    border-radius: var(--border-radius-lg, 16px);
    max-width: 500px;
    width: 100%;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-xl, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.popup-overlay.active .popup-container {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100, #f3f4f6);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-primary, #1a1a1a);
    line-height: 1;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: var(--gray-200, #e5e7eb);
    transform: rotate(90deg);
}

.popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.popup-badge {
    display: inline-block;
    background: var(--gradient-primary, linear-gradient(135deg, #00BFA6 0%, #00A896 100%));
    color: var(--white, #ffffff);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.popup-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary, #1a1a1a);
}

.popup-description {
    font-size: 16px;
    color: var(--text-secondary, #6b7280);
    line-height: 1.6;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popup-form input,
.popup-form select {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--gray-200, #e5e7eb);
    border-radius: var(--border-radius, 12px);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    color: var(--text-primary, #1a1a1a);
}

.popup-form input:focus,
.popup-form select:focus {
    outline: none;
    border-color: var(--primary-color, #00BFA6);
}

.popup-form input::placeholder {
    color: var(--text-muted, #9ca3af);
}

.popup-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.popup-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary, linear-gradient(135deg, #00BFA6 0%, #00A896 100%));
    color: var(--white, #ffffff);
    border: none;
    border-radius: var(--border-radius, 12px);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 191, 166, 0.4);
}

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

.popup-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.popup-privacy {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    margin-top: 16px;
}

@media (max-width: 768px) {
    .popup-container {
        padding: 30px 20px;
        max-width: calc(100% - 40px);
    }

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

    .popup-form input,
    .popup-form select {
        min-height: 44px; /* Zone tactile minimale pour mobile */
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }
}

