
/* Fallback pour les polices */
* {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Animation de chargement pour le bouton */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

.background-image-container {
    width: 100vw;
    height: 100vh;
}

.form-container {
    position: relative;
    transform: none;
    width: 450px;
    margin: 2.5rem;
    background-color: #FFFFFF;
    background-color: var(--neutral-0);
    border-radius: 1.5rem;
    overflow-x: hidden;
    height: 90vh;
    /* Fallback IE - hauteur plus flexible */
    min-height: 500px;
    max-height: 90vh;
}

.form-container > div {
    overflow-y: auto;
    padding: 2.5rem;
    height: 100%;
    /* Fix IE - scrollbar plus prévisible */
    -ms-overflow-style: scrollbar;
    scrollbar-width: thin;
}

.undo-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #57617A;
    color: var(--neutral-700);
    text-decoration: none;
    cursor: pointer;
}

#cgu_popup {
    position: absolute;
    background-color: white;
    border-radius: 1.5rem;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow: hidden;
    display: none;
    -ms-flex-direction: column;
    flex-direction: column;
    /* Fallback IE */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cgu-header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: start;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
}

.cgu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
}

.cgu-body {
    padding: 1.5rem 2rem 2rem;
    overflow-y: auto;
    height: 100%;
}

.cgu-scrollable-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.cgu-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #ddd;
    background-color: #fff;
    position: relative; /* Compatibilité IE - remplace sticky */
    bottom: 0;
    flex-shrink: 0;
}

.cgu-acceptance-text span {
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    margin-left: -125px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 15px;
    border-radius: 25px;
    display: block;
    text-align: center;
    z-index: 9999;
    font-size: 14px;
    font-weight: 500;
    width: 230px;
    border: 1px solid #333;
    min-height: 90px;
}

.scroll-arrow {
    display: block;
}

.scroll-arrow i {
    font-size: 20px;
    display: block;
    margin-bottom: 25px;
}

.scroll-text {
    white-space: normal;
    display: block;
    line-height: 20px;
    padding: 0 10px;
    height: 40px;
}

.cgu-progress {
    margin-bottom: 15px;
    display: block;
    overflow: hidden;
    height: 25px;
}

.progress-bar {
    float: left;
    width: 70%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-right: 10px;
    border: 1px solid #ccc;
    margin-top: 9px;
}

.progress-fill {
    height: 100%;
    background: #007bff;
    width: 0%;
    border-radius: 3px;
}

.progress-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    min-width: 50px;
    float: right;
    line-height: 25px;
    height: 25px;
    display: block;
}

#cgu-accept-btn {
    transition: all 0.3s ease;
}

#cgu-accept-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

@keyframes disabled-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.4; }
}

@keyframes success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 70px;
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .scroll-arrow i {
        font-size: 18px;
    }
    
    .cgu-progress {
        margin-bottom: 12px;
    }
    
    .progress-text {
        font-size: 11px;
    }
}

/* Compatibilité Internet Explorer */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .scroll-indicator {
        position: absolute !important;
        bottom: 100px !important;
        left: 50% !important;
        margin-left: -125px !important;
        background: rgba(0, 0, 0, 0.8) !important;
        color: white !important;
        padding: 15px 15px !important;
        border-radius: 25px !important;
        display: block !important;
        text-align: center !important;
        z-index: 9999 !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        width: 230px !important;
        border: 1px solid #333 !important;
        min-height: 90px !important;
    }
    
    .scroll-arrow {
        display: block !important;
    }
    
    .scroll-arrow i {
        font-size: 20px !important;
        display: block !important;
        margin-bottom: 25px !important;
    }
    
    .scroll-text {
        white-space: normal !important;
        display: block !important;
        line-height: 20px !important;
        padding: 0 10px !important;
        height: 40px !important;
    }
    
    .cgu-progress {
        margin-bottom: 15px !important;
        display: block !important;
        overflow: hidden !important;
        height: 25px !important;
    }
    
    .progress-bar {
        float: left !important;
        width: 70% !important;
        height: 6px !important;
        background-color: #e0e0e0 !important;
        border-radius: 3px !important;
        overflow: hidden !important;
        margin-right: 10px !important;
        border: 1px solid #ccc !important;
        margin-top: 9px !important;
    }
    
    .progress-fill {
        height: 100% !important;
        background: #007bff !important;
        width: 0% !important;
        border-radius: 3px !important;
    }
    
    .progress-text {
        font-size: 12px !important;
        color: #666 !important;
        font-weight: 500 !important;
        min-width: 50px !important;
        float: right !important;
        line-height: 25px !important;
        height: 25px !important;
        display: block !important;
    }
}

@supports (transform: translate(0, 0)) {
    .form-container {
        transform: translateX(-120%);
        animation: slideIn 0.5s forwards;
    }
}

.form-container > div:first-child {
    display: flex;
    flex-direction: column;
    /* Fallback IE - pas de flexbox */
    display: block;
}

.septeo-logo {
    width: 140px;
    height: 34px;
    margin-bottom: 1.5rem;
    min-height: 34px;
}

.link-account-container {
    justify-content: center;
    margin-top: 1rem;
    position: relative;
    min-height: 132px;
    padding-left: 1rem;
}

.link-account-container::before {
    content: '' !important;
    position: absolute !important;
    left: 12px !important;
    top: 0.5rem !important;
    bottom: 0.5rem !important;
    width: 2px !important;
    background: #E1E7F2 !important;
    border-radius: 1px !important;
}

.link-account-block {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    align-items: center;
    position: relative;
    padding: 8px;
}

.link-account-logo {
    position: relative;
    z-index: 2;
    margin-bottom: -30px;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.link-account-logo-bg-septeo {
    background-color: #FFF3ED;
}

.link-account-logo-bg-provider {
    background-color: #F2F6FA;
}

.link-account-logo img {
    width: 48px;
    height: 48px;
}

.link-account-card {
    width: 140px;
    background: white;
    padding: 2.5rem 1rem 1rem 1rem;
    text-align: center;
    z-index: 1;
    position: relative;
    box-sizing: border-box;
}

.link-account-card {
    width: 100% !important;
    text-align: left !important;
    border: 1px solid #E1E7F2 !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem 0.75rem 3.5rem !important;
    background: #fff !important;
}

.link-account-logo {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-bottom: 0 !important;
    width: 40px !important;
    height: 40px !important;
}

.link-account-logo img {
    width: 24px !important;
    height: 24px !important;
}

.link-account-user-name {
    font-weight: 600;
    font-size: 0.875rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    color: #1C1D24;
    color: var(--neutral-950);
}

.link-account-user-email {
    font-size: 0.75rem;
    font-weight: 600;
    color: #57617A;
    color: var(--neutral-700);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.link-account-separator {
    position: absolute;
    left: 2px; /* centré sur la ligne */
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border-radius: 999px;
    padding: 4px;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #57617A;
    color: var(--neutral-700);
}

/* Carte d'information pour la liaison de compte */
.link-account-info-card {
    background-color: #F8F9FA;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    padding: 1rem;
}

.link-account-info-header {
    align-items: center;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
}

.link-account-info-header i {
    color: #007BFF;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.link-account-info-content {
    color: #6C757D;
    font-size: 0.9rem;
    line-height: 1.5;
}

.link-account-info-content p {
    margin-bottom: 0.5rem;
}

.link-account-info-content p:last-child {
    margin-bottom: 0;
}

.social-login-button {
    display: inline-flex;
    align-items: center;
    padding: 8px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: background-color 0.2s ease-in-out;
    justify-content: center;
    text-decoration: none;
    height: 40px;
    gap: 8px;
}

.social-text {
    height: 17px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 100%;
    color: #57617A;
    color: var(--neutral-700);
}

.social-login-button:hover {
    background-color: #f3f3f3;
}

.social-logo img {
    height: 20px;
    width: 20px;
    margin-right: 10px;
}

.title {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1D1E22;
    color: var(--neutral-950);
    line-height: 29px;
    margin-bottom: 0.75rem;
}

.subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #1C1D24;
    color: var(--neutral-950);
    margin-bottom: 0.25rem;
}

.text-welcome {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1D1E22;
    color: var(--neutral-950);
}

.text-content, .text-content-secondary {
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 21px !important;
}

.text-content {
    color: #57617A;
    color: var(--neutral-700);
    margin-bottom: 1.25rem;
}

.text-content-secondary {
    color: #1C1D24;
    color: var(--neutral-950);
    margin-bottom: 0.75rem !important;
}

.validation-summary ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    color: #F62D70;
    color: var(--danger-500);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 21px;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    /*background-image: url('../images/Background.jpg');*/
}

.background > img, .background > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fallback IE - object-fit non supporté */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.background > video {
    transform: scaleX(-1);
}

.dual-authentication-container {
    border: 1px solid #C5CDDD;
    border: 1px solid var(--neutral-200);
    border-radius: 10px;
    cursor: pointer;
    height: 40px;
}

.dual-authentication-container:hover {
    border: 1px solid #3660F4;
    border: 1px solid var(--ultramarine-500);
}

.dual-authentication-container:active, .dual-authentication-selected {
    border: 1px solid #3660F4;
    border: 1px solid var(--ultramarine-500);
}

.dual-authentication-icon {
    font-size: 1.25rem;
    margin: 0 2px 0 14px;
    color: #3660F4;
    color: var(--ultramarine-500);
}

.dual-authentication-icon-primary {
    font-size: 1.25rem;
    margin: 0 2px 0 14px;
}

.dual-authentication-text {
    padding: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.twofa-choice-card {
    height: auto;
    min-height: 56px;
}

.twofa-choice-primary-card {
    min-height: 52px;
}

.twofa-choice-text {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    line-height: 1.2;
}

.twofa-choice-title {
    display: block;
    font-weight: 600;
}

.twofa-choice-subtitle {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: #57617A;
    color: var(--neutral-700);
    word-break: break-word;
}

.twofa-choice-icon-neutral {
    color: #1C1D24;
    color: var(--neutral-950);
}

.twofa-choice-text-primary {
    color: #FFFFFF;
    line-height: 1.15;
    padding-top: 6px;
    padding-bottom: 6px;
}

.twofa-choice-subtitle-primary {
    color: rgba(255, 255, 255, 0.9);
}

#twofa-authenticator .twofa-choice-title,
#twofa-authenticator .twofa-choice-subtitle {
    color: #FFFFFF !important;
}

.twofa-prompt-heading {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 0.75rem;
}

.twofa-prompt-heading-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: #3660F4;
    color: var(--ultramarine-500);
}

.twofa-prompt-points {
    border: 1px solid #E8ECF5;
    border: 1px solid var(--neutral-100);
    border-radius: 10px;
    background-color: #F2F6FA;
    background-color: var(--neutral-50);
    padding: 0.75rem;
}

.twofa-prompt-point {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
}

.twofa-prompt-point + .twofa-prompt-point {
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid #E8ECF5;
    border-top: 1px solid var(--neutral-100);
}

.twofa-prompt-point > i {
    font-size: 1.1rem;
    margin: 1px 0.5rem 0 0;
}

.twofa-prompt-point-title {
    display: block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    color: #1C1D24;
    color: var(--neutral-950);
}

.twofa-prompt-point-text {
    display: block;
    margin-top: 1px;
    font-size: 0.8125rem;
    line-height: 1.2rem;
    color: #57617A;
    color: var(--neutral-700);
}

.twofa-prompt-note {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    background: #E9F5FB;
    border: 1px solid #C2E7F5;
    border-radius: 8px;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.3rem;
    color: #0F5173;
}

.twofa-prompt-note > i {
    margin: 2px 0.5rem 0 0;
    font-size: 1rem;
    color: #0F6D99;
}

.user-info {
    font-size: 0.875rem;
    font-weight: 600;
}

.authenticator-visual {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 18px;
}

.authenticator-scene {
    position: relative;
    width: 132px;
    height: 84px;
}

.authenticator-hand-shape {
    position: absolute;
    left: 22px;
    bottom: 8px;
    width: 86px;
    height: 38px;
    border-radius: 20px 20px 14px 14px;
    background: #d9e4ff;
    border: 1px solid #c4d5ff;
    box-shadow: 0 2px 8px rgba(54, 96, 244, 0.15);
}

.authenticator-phone {
    position: absolute;
    left: 44px;
    top: 8px;
    font-size: 44px;
    line-height: 1;
    color: #3660F4;
    display: block;
    transform-origin: 52% 90%;
    animation: auth-phone-swing 1.1s ease-in-out infinite;
}

.authenticator-shield {
    position: absolute;
    right: 8px;
    top: 2px;
    font-size: 24px;
    line-height: 1;
    color: #3660F4;
    color: var(--ultramarine-500);
    transform-origin: center;
    display: block;
    animation: auth-shield-pop 1.1s ease-in-out infinite;
}

@keyframes auth-phone-swing {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-9deg) translateY(-1px); }
    75% { transform: rotate(8deg) translateY(-1px); }
}

@keyframes auth-shield-pop {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.78; }
}

.success-circle {
    display: inline-block;
    width: 40px;
    height: 40px;
    font-size: 40px;
    line-height: 40px;
    color: #2BA198;
}

.hidden {
    display: none;
}

.text-justify {
    text-align: justify;
}

.separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.separator hr {
    border: none;
    border-top: 1px solid #E1E7F2;
    margin: 0;
    opacity: 1;
}

.separator span {
    position: absolute;
    top: 50%;
    left: 50%;
    background: white;
    padding: 0 10px;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
    color: #57617A;
    color: var(--neutral-700);
}

.numeric-input-no-spinner::-webkit-inner-spin-button,
.numeric-input-no-spinner::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.numeric-input-no-spinner {
    -moz-appearance: textfield;
}

.readonly-label {
    width: 100%;
    height: 40px;
    border: 1px solid #C5CDDD;
    border-radius: 0.5rem;
    padding: 0.625rem 0.5rem 0.625rem 0.75rem;
    background-color: #f8f9fa;
    color: #1D1E22;
    font-size: 0.875rem;
    font-weight: 500;
}

.input-validation-error {
    border-color: #ED152F;
}

.field-validation-error {
    color: #ED152F;
    font-size: 0.875rem;
}

.alert-color {
    color: #FB9814;
}

.alert-color-700 {
    color: #FB9814;
}

.alert-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #c45e0a;
    color: var(--warning-700);
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    line-height: 1rem;
    text-decoration: underline;
}

.input-validation-alert {
    font-size: 0.875rem;
    font-weight: 500;
    color: #c45e0a;
    color: var(--alert-300);
    text-decoration: none;
}

.input-alert-border {
    border: 2px solid #FB9814 !important;
}

.code-inputs {
    text-align: center;
}

.code-inputs>* {
    padding-right: 0.25rem;
    padding-left: 0.25rem;
}

.code-input {
    font-weight: 500;
    font-size: 24px;
    text-align: center;
    border: 1px solid #C5CDDD;
    border-radius: 5px;
    margin: 3px;
    display: inline-block;
    height: 3.813rem;
    width: 100%;
    border-radius: 0.5rem;
}

.code-input:focus {
    border-color: #007bff;
    outline: none;
}

.twofa-paste-helper {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #C5CDDD;
    border-radius: 999px;
    background-color: #FFFFFF;
    color: #57617A;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.1rem;
}

.twofa-paste-helper:hover {
    border-color: #3660F4;
    color: #3660F4;
}

.twofa-paste-helper > i {
    margin-right: 4px;
}

@media (max-width: 600px) {
    .background-image-container, .background {
        display: none;
    }

    .form-container {
        width: 100vw;
        padding: 3rem 2rem;
        margin: 0;
    }
}

/* Fix IE spécifique - gestion des hauteurs et layout */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .form-container {
        /* Fix IE - hauteur plus flexible */
        height: auto !important;
        min-height: 500px !important;
        max-height: 90vh !important;
        /* Fix IE - espacement forcé */
        margin: 2.5rem !important;
        margin-top: 2.5rem !important;
        margin-bottom: 2.5rem !important;
        margin-left: 2.5rem !important;
        margin-right: 2.5rem !important;
    }
    
    .form-container > div {
        overflow-y: auto !important;
        -ms-overflow-style: scrollbar !important;
        /* Fix IE - padding forcé */
        padding: 2.5rem !important;
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
    }
    
    .form-container > div:first-child {
        display: block !important;
    }
    
    .background {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    .background > img, .background > video {
        width: 100% !important;
        height: 100% !important;
        object-fit: none !important;
        /* Fix IE - masquer l'image et utiliser background */
        display: none !important;
    }
    
    /* Fix IE - div de remplacement avec background-image */
    .background::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-image: url('../images/Background.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        z-index: -1 !important;
    }
}

@media (min-width: 2000px) {
    .form-container {
        zoom: 1.5;
    }
}

@media (min-width: 3000px) {
    .form-container {
        zoom: 2;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-120%);
    }

    to {
        transform: translateX(0);
    }
}

.mb-1 {

}