/* ============================================================
   LIDERCIEL — Modales de recuperation (2FA + mot de passe oublie)
   + notifications + overlays. Extrait du campus, recolore LIDERCIEL.
   N'affecte pas le design de la page (classes lb-*/notification).
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
        @keyframes popIn {
            from { transform: scale(0.5); opacity: 0; }
            to   { transform: scale(1);   opacity: 1; }
        }
/* ============================================================
   LIGHTBOX — MODALE 2FA
   ============================================================ */
.lb-2fa-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}
.lb-2fa-box {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Animation d'entrée — léger rebond élastique */
@keyframes modalSlideIn {
    0%   { transform: scale(0.85) translateY(30px); opacity: 0; }
    60%  { transform: scale(1.02) translateY(-4px); opacity: 1; }
    80%  { transform: scale(0.99) translateY(2px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.lb-2fa-header {
    background:
        radial-gradient(at 15% 20%, rgba(204,148,40, 0.25) 0%, transparent 40%),
        radial-gradient(at 85% 70%, rgba(16, 185, 129, 0.20) 0%, transparent 40%),
        radial-gradient(at 50% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0B2E5E 0%, #024E9E 40%, #2952b5 75%, #2f5fc4 100%);
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.lb-2fa-header::before {
    content: '';
    position: absolute;
    width: 220px; height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    top: -100px; right: -60px;
}
.lb-2fa-header::after {
    content: '';
    position: absolute;
    width: 140px; height: 140px;
    border-radius: 50%;
    border: 1px solid rgba(204,148,40,0.1);
    bottom: -60px; left: -30px;
}
.lb-2fa-icon-wrap {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: rgba(204,148,40,0.15);
    border: 1.5px solid rgba(204,148,40,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative; z-index: 1;
}
.lb-2fa-icon-wrap i { font-size: 26px; color: #CC9428; }
.lb-2fa-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px; font-weight: 800;
    color: white; margin-bottom: 8px;
    position: relative; z-index: 1;
}
.lb-2fa-sub {
    font-size: 13px; color: rgba(255,255,255,0.55);
    line-height: 1.6; position: relative; z-index: 1;
}
.lb-2fa-sub span { color: #CC9428; font-weight: 600; }
.lb-2fa-body { padding: 32px; }
.lb-2fa-label { text-align: center; font-size: 13px; color: #64748B; margin-bottom: 20px; line-height: 1.6; }
.lb-otp-wrap { display: flex; gap: 10px; justify-content: center; margin-bottom: 8px; }
.lb-otp-input {
    width: 54px; height: 64px;
    border: 2px solid #E2E8F0; border-radius: 14px;
    text-align: center; font-size: 26px; font-weight: 700;
    font-family: 'Outfit', sans-serif; color: #15265B;
    background: #F8FAFC; outline: none;
    transition: all 0.2s; caret-color: #024E9E;
}
.lb-otp-input:focus {
    border-color: #024E9E; background: white;
    box-shadow: 0 0 0 3px rgba(2,78,158,0.12);
    transform: scale(1.06);
}
.lb-otp-input.filled { border-color: #024E9E; background: #EEF4FF; }
.lb-otp-input.error  { border-color: #EF4444; background: #FEF2F2; animation: shake 0.4s ease; }
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}
.lb-2fa-error {
    text-align: center; font-size: 12.5px; color: #EF4444; font-weight: 600;
    margin-top: 10px; padding: 8px 12px;
    background: #FEF2F2; border-radius: 8px; border: 1px solid #FECACA;
}
.lb-2fa-resend { text-align: center; font-size: 13px; color: #94A3B8; margin: 14px 0 22px; }
.lb-2fa-resend a { color: #024E9E; font-weight: 700; cursor: pointer; }
.lb-otp-timer { color: #CC9428; font-weight: 700; }
.lb-2fa-btn {
    width: 100%; height: 52px; border-radius: 14px; border: none;
    background: linear-gradient(135deg, #15265B 0%, #024E9E 100%);
    color: white; font-size: 15px; font-weight: 700;
    font-family: 'Outfit', sans-serif;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer; position: relative; overflow: hidden;
    box-shadow: 0 4px 16px rgba(21,38,91,0.28);
    transition: all 0.25s;
}
.lb-2fa-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.lb-2fa-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21,38,91,0.36); }
.lb-2fa-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.lb-2fa-btn.loading span, .lb-2fa-btn.loading i { opacity: 0; }
.lb-2fa-btn.loading::after {
    content: ''; position: absolute;
    width: 20px; height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white; border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.lb-2fa-footer { text-align: center; margin-top: 14px; font-size: 12.5px; color: #94A3B8; }
.lb-2fa-footer a { color: #EF4444; font-weight: 700; cursor: pointer; }
.lb-tfa-success { display: none; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 12px; }
.lb-tfa-success.show { display: flex; }
.lb-success-circle {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    border: 2px solid #0E8A5F;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #0E8A5F; margin-bottom: 14px;
    animation: popIn 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
.lb-success-title { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 800; color: #15265B; margin-bottom: 6px; }
.lb-success-desc  { font-size: 13px; color: #64748B; line-height: 1.6; }

/* ============================================================
   LIGHTBOX — MODALE FORGOT PASSWORD
   ============================================================ */
.lb-forgot-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}
.lb-forgot-box {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.lb-forgot-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 13px; z-index: 1; transition: all 0.2s;
}
.lb-forgot-close:hover { background: rgba(239,68,68,0.8); border-color: transparent; color: white; }
.lb-forgot-header {
    background:
        radial-gradient(at 15% 20%, rgba(204,148,40, 0.25) 0%, transparent 40%),
        radial-gradient(at 85% 70%, rgba(16, 185, 129, 0.20) 0%, transparent 40%),
        radial-gradient(at 50% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0B2E5E 0%, #024E9E 40%, #2952b5 75%, #2f5fc4 100%);
    padding: 28px 32px 24px;
    position: relative; overflow: hidden;
}
.lb-forgot-header::before {
    content: ''; position: absolute;
    width: 200px; height: 200px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    top: -80px; right: -60px;
}
.lb-forgot-header::after {
    content: ''; position: absolute;
    width: 120px; height: 120px; border-radius: 50%;
    border: 1px solid rgba(204,148,40,0.1);
    bottom: -40px; left: 40px;
}
.lb-steps { display: flex; align-items: center; margin-bottom: 20px; position: relative; z-index: 1; margin-top: 20px; }
.lb-step-item { display: flex; align-items: center; gap: 8px; }
.lb-step-circle {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; font-family: 'Outfit', sans-serif;
    transition: all 0.3s; flex-shrink: 0;
}
.lb-step-circle.active { background: #CC9428; color: white; }
.lb-step-circle.done   { background: #0E8A5F; color: white; }
.lb-step-circle.idle   { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.5); }
.lb-step-label { font-size: 11px; font-weight: 600; white-space: nowrap; transition: all 0.3s; }
.lb-step-label.active { color: white; }
.lb-step-label.done   { color: rgba(255,255,255,0.6); }
.lb-step-label.idle   { color: rgba(255,255,255,0.35); }
.lb-step-line { flex: 1; height: 1.5px; background: rgba(255,255,255,0.15); margin: 0 10px; min-width: 24px; }
.lb-step-line.done { background: rgba(14,138,95,0.6); }
.lb-forgot-title {
    font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800;
    color: white; margin-bottom: 6px; position: relative; z-index: 1;
}
.lb-forgot-sub {
    font-size: 13px; color: rgba(255,255,255,0.55);
    line-height: 1.5; position: relative; z-index: 1;
}
.lb-forgot-sub span { color: #CC9428; font-weight: 600; }
.lb-forgot-body { padding: 28px 32px 32px; }
.lb-step-panel { display: none; }
.lb-step-panel.active { display: block; }
.lb-field { margin-bottom: 20px; }
.lb-field-label {
    display: block; font-size: 11.5px; font-weight: 700;
    color: #475569; text-transform: uppercase;
    letter-spacing: 0.8px; margin-bottom: 8px;
}
.lb-input {
    width: 100%; height: 50px; padding: 0 14px 0 44px;
    border: 1.5px solid #E2E8F0; border-radius: 12px;
    font-size: 14.5px; font-family: 'Nunito Sans', sans-serif;
    color: #1A202C; background: #F8FAFC; outline: none; transition: all 0.2s;
}
.lb-input:focus { border-color: #024E9E; background: white; box-shadow: 0 0 0 3px rgba(2,78,158,0.1); }
.lb-input.error { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.lb-input-wrap { position: relative; }
.lb-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94A3B8; font-size: 14px; pointer-events: none; }
.lb-pwd-wrap { position: relative; }
.lb-pwd-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #94A3B8; cursor: pointer; font-size: 14px; }
.lb-otp-resend { text-align: center; font-size: 13px; color: #94A3B8; margin-top: 14px; }
.lb-otp-resend a { color: #024E9E; font-weight: 700; cursor: pointer; }
.lb-strength-wrap { display: flex; gap: 4px; margin-top: 8px; }
.lb-strength-seg { flex: 1; height: 4px; border-radius: 2px; background: #E2E8F0; transition: background 0.3s; }
.lb-strength-label { font-size: 11.5px; font-weight: 600; margin-top: 5px; height: 16px; }
.lb-criteria-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; }
.criteria-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #94A3B8; transition: color 0.2s; }
.criteria-item.ok { color: #0E8A5F; }
.criteria-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #E2E8F0; display: flex; align-items: center; justify-content: center; font-size: 8px; flex-shrink: 0; transition: all 0.2s; }
.criteria-item.ok .criteria-dot { background: #D1FAE5; border-color: #0E8A5F; color: #0E8A5F; }
.lb-btn {
    width: 100%; height: 52px; border-radius: 14px; border: none;
    background: linear-gradient(135deg, #15265B 0%, #024E9E 100%);
    color: white; font-size: 15px; font-weight: 700; font-family: 'Outfit', sans-serif;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer; position: relative; overflow: hidden;
    box-shadow: 0 4px 16px rgba(21,38,91,0.28); transition: all 0.25s; margin-top: 4px;
}
.lb-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%); }
.lb-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21,38,91,0.36); }
.lb-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.lb-btn.loading span, .lb-btn.loading i { opacity: 0; }
.lb-btn.loading::after { content: ''; position: absolute; width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }
.lb-btn-back {
    width: 100%; margin-top: 10px; padding: 10px; border-radius: 12px;
    border: 1.5px solid #E2E8F0; background: white; color: #64748B;
    font-size: 13px; font-weight: 600; font-family: 'Nunito Sans', sans-serif; cursor: pointer;
}
.lb-success-state { display: none; flex-direction: column; align-items: center; text-align: center; padding: 40px 20px 20px; }
.lb-success-state.show { display: flex; }
.lb-success-anim {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    border: 2px solid #0E8A5F;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #0E8A5F; margin-bottom: 20px;
    animation: popIn 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
.lb-success-big-title { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; color: #15265B; margin-bottom: 10px; }
.lb-success-big-desc  { font-size: 14px; color: #64748B; line-height: 1.65; margin-bottom: 24px; max-width: 300px; }
.lb-success-close {
    padding: 12px 36px; border-radius: 12px; border: none;
    background: linear-gradient(135deg, #15265B, #024E9E);
    color: white; font-size: 14px; font-weight: 700;
    font-family: 'Outfit', sans-serif; cursor: pointer;
    box-shadow: 0 4px 14px rgba(21,38,91,0.25);
}

/* ============================================================
   LOADERS — #loader, #loader2 (overlay plein écran)
   ============================================================ */
#loader,
#loader2,
#loader3 {
    display: none;
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
#loader  { background: rgba(21,38,91,0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 1000; }
#loader2 { background: rgba(21,38,91,0.65); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 1005; }
#loader3 { background: rgba(21,38,91,0.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 1010; }

#loader.show,
#loader2.show,
#loader3.show {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

#loader[style*="display: block"],
#loader[style*="display:block"],
#loader2[style*="display: block"],
#loader2[style*="display:block"],
#loader3[style*="display: block"],
#loader3[style*="display:block"] {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

#div_preloader {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   NOTIFICATION — Dialog PAEEJ Academy
   ============================================================ */
.lightbox-notification {
    background: #FFFFFF;
    border-radius: 18px;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22), 0 6px 18px rgba(0,0,0,0.10);
    transform: scale(0.90) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.35s ease;
    opacity: 0;
}
.lightbox-notification.show { transform: scale(1) translateY(0); opacity: 1; }

.entete-lightbox-notification {
    padding: 18px 20px 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
}
.entete-lightbox-notification::before {
    content: '';
    position: absolute;
    width: 160px; height: 160px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.07);
    top: -70px; right: -40px;
    pointer-events: none;
}
.entete-lightbox-notification::after {
    content: '';
    position: absolute;
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 1px solid rgba(204,148,40,0.14);
    bottom: -35px; left: 20px;
    pointer-events: none;
}

.notification-info    .entete-lightbox-notification { background: linear-gradient(135deg, #0a1628 0%, #15265B 40%, #024E9E 100%); }
.notification-success .entete-lightbox-notification { background: linear-gradient(135deg, #0d2b0d 0%, #1E6B1E 45%, #388E3C 100%); }
.notification-warning .entete-lightbox-notification { background: linear-gradient(135deg, #0a1628 0%, #15265B 40%, #024E9E 100%); }
.notification-danger  .entete-lightbox-notification { background: linear-gradient(135deg, #3d0808 0%, #B91C1C 50%, #EF4444 100%); }

.notification-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: rgba(204,148,40,0.15);
    border: 1.5px solid rgba(204,148,40,0.30);
    position: relative; z-index: 1;
    font-size: 16px; color: #CC9428;
}

.entete-lightbox-notification .notif-titles {
    flex: 1; position: relative; z-index: 1; min-width: 0;
}
#titre-lightbox {
    display: block;
    font-size: 16px; font-weight: 700; color: #FFFFFF;
    letter-spacing: -0.2px;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-subtitle { display: block; font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }
.notif-subtitle span { color: #CC9428; font-weight: 600; }

.close-lightbox-notification {
    width: 28px; height: 28px;
    border-radius: 6px;
    border: 1.5px solid rgba(255,255,255,0.40);
    background: transparent;
    color: rgba(255,255,255,0.55);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 12px; font-weight: 700;
    flex-shrink: 0; line-height: 1;
    position: relative; z-index: 1;
    transition: all 0.2s; font-family: inherit;
}
.close-lightbox-notification:hover {
    background: rgba(239,68,68,0.80);
    border-color: transparent;
    color: white;
}

.contenu-lightbox-notification {
    padding: 18px 22px 4px;
    font-size: 13.5px; color: #64748B;
    line-height: 1.7; text-align: left;
    background: #FFFFFF;
}

.conteneur-btn-lightbox-notification {
    padding: 14px 22px 20px;
    background: #FFFFFF;
    display: flex; gap: 8px;
}

.btn-lightbox-notification {
    flex: 1;
    padding: 11px 16px;
    border-radius: 9px;
    border: none;
    font-size: 13.5px; font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    color: #1A202C;
    text-align: center; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.2s, opacity 0.2s;
    min-width: 0;
    background: #FFFFFF;
}
.btn-lightbox-notification:hover { opacity: 0.87; color: #FFFFFF; }

.notification-info    .btn-lightbox-notification:first-child { border: 2px solid #024E9E !important; color: #024E9E; }
.notification-info    .btn-lightbox-notification:first-child:hover { background: #EEF4FF; opacity: 1; }
.notification-success .btn-lightbox-notification:first-child { border: 2px solid #1E6B1E !important; color: #1E6B1E; }
.notification-success .btn-lightbox-notification:first-child:hover { background: #f0f7f0; opacity: 1; }
.notification-warning .btn-lightbox-notification:first-child { border: 2px solid #E2E8F0 !important; color: #64748B; }
.notification-warning .btn-lightbox-notification:first-child:hover { background: #F8FAFC; opacity: 1; }
.notification-warning .btn-lightbox-notification:last-child  { border: 2px solid #1E6B1E !important; color: #1E6B1E; }
.notification-warning .btn-lightbox-notification:last-child:hover  { background: #f0f7f0; opacity: 1; }
.notification-danger  .btn-lightbox-notification:first-child { border: 2px solid #15265B !important; color: #15265B; }
.notification-danger  .btn-lightbox-notification:first-child:hover { background: #EEF4FF; opacity: 1; }
.notification-danger  .btn-lightbox-notification:last-child  { border: 2px solid #B91C1C !important; color: #B91C1C; }
.notification-danger  .btn-lightbox-notification:last-child:hover  { background: #FEF2F2; opacity: 1; }

@keyframes notifSlideIn {
    0%   { transform: scale(0.80) translateY(40px); opacity: 0; }
    50%  { transform: scale(1.03) translateY(-6px); opacity: 1; }
    75%  { transform: scale(0.98) translateY(2px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes notifIconPulse {
    0%   { transform: scale(0.5) rotate(-15deg); opacity: 0; }
    60%  { transform: scale(1.15) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.lightbox-notification.animated {
    animation: notifSlideIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.lightbox-notification.animated .notification-icon {
    animation: notifIconPulse 0.5s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalSlideIn {
    0% { transform: scale(0.85) translateY(30px); opacity: 0; }
    60% { transform: scale(1.02) translateY(-4px); opacity: 1; }
    80% { transform: scale(0.99) translateY(2px); }
    100% { transform: scale(1) translateY(0); }
}