/* Popup de chargement — même base visuelle que confirmation-popup */
.loading-popup {
    z-index: 1100;
}

.loading-popup .popup-content {
    background: var(--primary-color);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.loading-popup.active .popup-content {
    transform: translateY(0);
    opacity: 1;
}

.loading-popup .logo-container {
    text-align: center;
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-popup .popup-logo {
    width: 220px;
    max-width: 70%;
    height: auto;
    display: block;
    animation: loadingLogoPulse 1.6s ease-in-out infinite;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 1.25rem;
    border: 3px solid color-mix(in srgb, var(--accent-color) 20%, transparent);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: formPopupSpin 0.85s linear infinite;
}

.loading-popup .popup-title {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.loading-popup .popup-message {
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.5;
}

.form-submitting [type="submit"] {
    opacity: 0.7;
    cursor: wait;
}

@keyframes formPopupSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loadingLogoPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.75;
        transform: scale(0.98);
    }
}

@media (max-width: 768px) {
    .loading-popup .popup-content {
        padding: 2rem 1.5rem;
    }

    .loading-popup .popup-logo {
        width: 180px;
    }

    .loading-popup .popup-title {
        font-size: 1.25rem;
    }
}
