/* === STYLES DE LA POPUP (ISOLÉS) === */
/* J'utilise des préfixes 'nl-' pour éviter les conflits avec votre site */

/* Police par défaut pour la popup uniquement */
.nl-font-wrapper {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

/* Pour s'assurer que le padding/margin ne déborde pas */
.nl-font-wrapper *,
.nl-font-wrapper *::before,
.nl-font-wrapper *::after {
    box-sizing: border-box;
}

/* Overlay (Fond sombre) */
.nl-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    /* Noir à 60% */
    z-index: 9999 !important;
    /* Très élevé pour être au-dessus de tout */
    display: none !important;
    /* Caché par défaut */
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    backdrop-filter: blur(4px) !important;
    /* Effet de flou moderne */
}

/* Modal (La boîte blanche) */
.nl-modal {
    background-color: #ffffff;
    width: 100%;
    max-width: 600px;
    position: relative;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(20px);
    /* Reset des styles hérités potentiels */
    color: #1f2937;
    line-height: 1.5;
}

/* Animations */
.nl-animate-fade-in {
    display: flex !important;
    animation: nlFadeIn 0.3s ease-out forwards;
}

.nl-animate-slide-in {
    animation: nlSlideIn 0.4s ease-out 0.1s forwards;
}

@keyframes nlFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes nlSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typographie */
.nl-title {
    font-size: 1.875rem;
    /* 30px */
    font-weight: 700;
    color: #000000;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.nl-subtitle {
    font-size: 0.875rem;
    /* 14px */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    /* tracking-widest */
    color: #1f2937;
    margin: 0 0 1.5rem 0;
    font-weight: 500;
}

.nl-description {
    color: #374151;
    margin-bottom: 2rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.93rem;
}

/* Formulaire */
.nl-form-group {
    margin-bottom: 1rem;
}

.nl-error-message {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-align: center;
    display: none;
    border-radius: 4px;
}

.nl-input {
    width: 100%;
    border: 1px solid #1f2937;
    padding: 0.875rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
    background: white;
    color: #000;
    border-radius: 0;
    /* Design carré */
}

.nl-input:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.nl-btn {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    padding: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 0;
}

.nl-btn:hover {
    background-color: #1f2937;
}

/* Boutons secondaires et liens */
.nl-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #1f2937;
    padding: 0.5rem;
    transition: color 0.2s;
}

.nl-close-btn:hover {
    color: #000000;
}

.nl-link-cancel {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: underline;
    text-decoration-color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.nl-link-cancel:hover {
    color: #000000;
    text-decoration-color: #000000;
}

.nl-legal {
    margin-top: 2rem;
    font-size: 1rem;
    /* 10px */
    color: #6b7280;
    line-height: 1.4;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
}

.nl-legal a {
    color: inherit;
    text-decoration: underline;
    font-size: 1rem;
}

/* Utilitaires d'affichage */
.nl-hidden {
    display: none !important;
}

.nl-success-icon {
    color: #16a34a;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (min-width: 768px) {
    .nl-modal {
        padding: 3rem;
    }

    .nl-title {
        font-size: 2.25rem;
    }
}