html {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin-bottom: 60px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-weight: 600;
}

h4, h5, h6 {
    font-weight: 500;
}

.navbar-brand img {
    height: 30px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .navbar-brand img {
        height: 30px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.btn {
    border-radius: 10px;
}

.btn-primary {
    background: #213163;
    border: none;
}

.navbar-main {
    background-color: #F3F8FF;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.btn-primary:hover, .btn-primary:active:focus {
    background: #32343a;
}

.btn-primary:active:focus, .btn-primary:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #32343a;
}


:root {
    --bs-primary: #213463;
    --bs-link-color: #1E226B;
    --bs-btn-color: #213463;
    --bs-btn-border-color: #213463;
}

.btn-outline-secondary {
    color: #213463;
    --bs-btn-border-color: #ABC;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}

    .btn-outline-secondary:hover, .btn-outline-secondary:active {
        background: #EAF3FF;
        color: #213463;
    }

.btn-circle {
    border-radius: 50px;
    padding: 5px 6px;
    width: 40px;
    line-height: 28px;
    /*border: 1px solid #213463;*/
}

    .btn-circle img {
        width: 100%;
        height: 100%;
    }

a.btn-circle {
    color: #213463;
}

.divider-or {
    border-color: #AABBCC;
    border-top: 1px solid #AABBCC;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: #1E226B;
}

.menubar {
    padding: 10px;
    box-shadow: none;
}

img.external-provider-logo {
    height: 32px;
}

.account-home {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 0 2rem;
}

.account-home__hero {
    background: #f8f9fb;
    border: 1px solid #e8ecf4;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.account-home__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.account-card {
    background: #fff;
    border: 1px solid #e8ecf4;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 6px 24px rgba(23, 35, 79, 0.06);
}

    .account-card h2 {
        font-size: 1.1rem;
        margin-bottom: .65rem;
        color: #1E226B;
    }

    .account-card p {
        color: #4f5b75;
        min-height: 3.5rem;
    }

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #F3F8FF;
    border-left: 6px solid #0066DC;
    border-radius: 1rem;
}

.info-card__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0066DC;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.info-card__body {
    min-width: 0;
}

.info-card__title {
    margin-bottom: .5rem;
    color: #1f2430;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.info-card__message {
    color: #1f2430;
    font-size: 13px;
    line-height: 1.45;
}

.info-card__message--collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.info-card__toggle {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: underline;
}

.info-card__toggle:hover,
.info-card__toggle:focus {
    color: #0a58ca;
}

.info-card__toggle[hidden] {
    display: none;
}

.verification-code-inputs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.verification-code-inputs__digit {
    aspect-ratio: 1;
    min-height: 4.25rem;
    padding: 0;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    border-radius: 12px;
}

.verification-code-inputs__digit::-webkit-outer-spin-button,
.verification-code-inputs__digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media (max-width: 575.98px) {
    .info-card {
        padding: 1rem 1.125rem;
        gap: .875rem;
    }

    .info-card__icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.65rem;
    }

    .verification-code-inputs {
        gap: 0.5rem;
    }

    .verification-code-inputs__digit {
        min-height: 3.5rem;
        font-size: 1.5rem;
    }
}

/* --- Password toggle --- */
.password-toggle-wrapper {
    position: relative;
}

.password-toggle-wrapper input[type="password"],
.password-toggle-wrapper input[type="text"] {
    padding-right: 2.75rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 1.75rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.password-toggle-btn:hover {
    color: #213163;
}

.password-toggle-btn:focus-visible {
    outline: 2px solid #258cfb;
    outline-offset: 2px;
}

/* Masquer le bouton natif du navigateur (Edge, IE, Chrome) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-strong-password-auto-fill-button {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}
