/* =============================================
   Flow Popups - Système de modales
   Préfixe : xpr-fp-
   ============================================= */

/* Overlay */
.xpr-fp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Container */
.xpr-fp-container {
    background: #fff;
    border-radius: 12px;
    padding: 48px;
    max-width: 720px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Bouton déconnexion - rond rouge */
.xpr-fp-logout {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FEE2E2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #DC2626;
    font-size: 16px;
    transition: background 0.2s;
}

.xpr-fp-logout:hover {
    background: #FECACA;
    color: #DC2626;
}

/* Titre */
.xpr-fp-title {
    font-family: 'Gilda Display', serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    margin: 0 0 64px 0;
    color: #333;
}

.xpr-fp-brand {
    font-family: 'Gilda Display', serif;
    font-weight: 400;
    font-size: 32px;
    color: #2563EB;
}

/* Encadré bienvenue */
.xpr-fp-welcome-box {
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.xpr-fp-welcome-name {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #333;
}

.xpr-fp-welcome-text {
    font-size: 14px;
    margin: 0;
    color: #666;
}

/* Vérification email */
.xpr-fp-verify-email {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin-top: 64px;
    margin-bottom: 64px;
}

/* Crédits */
.xpr-fp-credits {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 30px;
}

/* Actions */
.xpr-fp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xpr-fp-change-email {
    font-size: 14px;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}

.xpr-fp-change-email:hover {
    color: #333;
}

.xpr-fp-resend-email {
    background: #2563EB;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.xpr-fp-resend-email:hover {
    background: #1d4ed8;
}

/* Champ changer d'email */
.xpr-fp-change-email-form {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
}

.xpr-fp-change-email-form.active {
    display: flex;
    gap: 8px;
    align-items: center;
}

.xpr-fp-change-email-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.xpr-fp-change-email-form input:focus {
    border-color: #2563EB;
}

.xpr-fp-change-email-form button {
    background: #2563EB;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.xpr-fp-change-email-form button:hover {
    background: #1d4ed8;
}
.xpr-fp-container::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 380px;
    height: 380px;
    background-image: url('https://xpr.immo/wp-content/uploads/2026/03/x_dark_02.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}
.xpr-fp-container > * {
    position: relative;
    z-index: 1;
}
.xpr-fp-logout {
    position: absolute;
    z-index: 2;
}
/* Message succès renvoi */
.xpr-fp-resend-success {
    color: #16A34A;
    font-size: 13px;
    margin-top: 8px;
    text-align: right;
}
.xpr-fp-change-email-form input {
    margin-bottom: 0;
}
/* Modale email confirmé */
.xpr-fp-confirm-text {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 30px;
}

.xpr-fp-actions-centered {
    justify-content: center;
    gap: 16px;
}

.xpr-fp-btn-primary {
    background: #2563EB;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.xpr-fp-btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.xpr-fp-btn-secondary {
    background: #2563EB;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.xpr-fp-btn-secondary:hover {
    background: #1d4ed8;
    color: #fff;
}
/* Bouton fermer - rond gris avec croix */
.xpr-fp-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F3F4F6;
    border: none;
    font-size: 20px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background 0.2s;
    z-index: 2;
}

.xpr-fp-close:hover {
    background: #E5E7EB;
}
.xpr-fp-btn-primary,
.xpr-fp-btn-secondary {
    text-decoration: none !important;
}

.xpr-fp-btn-primary:hover,
.xpr-fp-btn-secondary:hover {
    text-decoration: none !important;
}
/* Mobile */
@media (max-width: 768px) {
.xpr-fp-container {
    padding: 32px 24px;
    width: 85%;
    min-height: auto;
    margin: 40px;
}
    .xpr-fp-title {
        font-size: 24px;
        margin-top: 28px;
        margin-bottom: 20px;
    }

    .xpr-fp-welcome-box {
        padding: 16px;
        margin-bottom: 16px;
    }

    .xpr-fp-welcome-name {
        font-size: 16px;
    }

    .xpr-fp-welcome-text {
        font-size: 13px;
    }

    .xpr-fp-verify-email,
    .xpr-fp-credits {
        font-size: 13px;
    }

    .xpr-fp-resend-email {
        padding: 12px 24px;
        font-size: 14px;
    }

    .xpr-fp-change-email {
        font-size: 13px;
    }
    .xpr-fp-title {
        line-height: 28px;
    }
    .xpr-fp-change-email-form.active {
    flex-direction: column;
}

.xpr-fp-change-email-form button {
    width: 100%;
}
.xpr-fp-container::after {
    width: 300px;
    height: 300px;
}
.xpr-fp-actions {
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
}

.xpr-fp-change-email {
    text-align: center;
}
.xpr-fp-verify-email {
    margin-top: 32px;
    margin-bottom: 32px;
}
.xpr-fp-welcome-box {
    margin-bottom: 12px;
    padding: 16px;
    width: 85%;
}
}
