/* /Components/Account/Pages/Login.razor.rz.scp.css */
/*
 * CSS isolation — page de connexion Dubut Assurances
 * Direction C « Éditorial » (desktop 1440 × 900 + mobile 390 × 844).
 * Jetons --da-* scopés sur .lg-root pour ne pas polluer le reste de l'app.
 * Fidèle à login.css + DesktopEditorial + MobileEditorial (maquette Claude Design).
 */

/* ── Reset local ───────────────────────────────────────────────── */
.lg-root[b-opbi25i3g0],
.lg-root *[b-opbi25i3g0] {
    box-sizing: border-box;
}

/* ── Tokens ────────────────────────────────────────────────────── */
.lg-root[b-opbi25i3g0] {
    --da-red: #a6261a;
    --da-red-deep: #7e1b12;
    --da-red-soft: #f6e9e6;
    --da-ink: #2b2624;
    --da-gray: #8a8d8f;
    --da-muted: #79706a;
    --da-bg: #faf7f4;
    --da-line: #e9e1da;
    --da-white: #ffffff;
    --da-error: #c0392b;
    --font-head: "Lora", Georgia, serif;
    --font-body: "Figtree", "Helvetica Neue", sans-serif;

    font-family: var(--font-body);
    color: var(--da-ink);
    background: #fff;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ── Layout global ─────────────────────────────────────────────── */
.lg-header[b-opbi25i3g0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 64px;
    border-bottom: 1px solid var(--da-line);
    flex-shrink: 0;
}

.lg-grid[b-opbi25i3g0] {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 80px;
    align-items: center;
    padding: 0 64px 0 96px;
}

/* ── Logo lockup ───────────────────────────────────────────────── */
.da-lockup[b-opbi25i3g0] {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo officiel DA (image PNG — remplace la marque CSS) */
.da-logo-img[b-opbi25i3g0] {
    height: 40px;
    width: auto;
    display: block;
    flex: none;
}

.da-name[b-opbi25i3g0] {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 600;
    color: var(--da-ink);
    line-height: 1.05;
}

.da-name small[b-opbi25i3g0] {
    display: block;
    font-family: var(--font-body);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--da-gray);
    margin-top: 3px;
}

/* ── Ligne d'aide ──────────────────────────────────────────────── */
.help-line[b-opbi25i3g0] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--da-muted);
}

.help-line strong[b-opbi25i3g0] {
    color: var(--da-ink);
    font-weight: 700;
}

/* ── Colonne éditoriale (gauche) ───────────────────────────────── */
.lg-editorial[b-opbi25i3g0] {
    padding: 40px 0;
}

.lg-eyebrow[b-opbi25i3g0] {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--da-red);
    margin: 0 0 18px;
}

.lg-h1[b-opbi25i3g0] {
    font-family: var(--font-head);
    font-size: 52px;
    line-height: 1.12;
    font-weight: 600;
    color: var(--da-ink);
    margin: 0 0 22px;
    max-width: 520px;
}

.lg-intro[b-opbi25i3g0] {
    font-size: 17px;
    line-height: 1.65;
    color: var(--da-muted);
    max-width: 460px;
    margin: 0 0 40px;
}

/* Carte conseiller */
.lg-advisor[b-opbi25i3g0] {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--da-bg);
    border-radius: 14px;
    max-width: 430px;
}

.lg-advisor-avatar[b-opbi25i3g0] {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--da-red-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 17px;
    color: var(--da-red);
    flex: none;
}

.lg-advisor-text[b-opbi25i3g0] {
    font-size: 14px;
    line-height: 1.5;
    color: var(--da-muted);
}

.lg-advisor-text strong[b-opbi25i3g0] {
    color: var(--da-ink);
}

/* ── Carte formulaire (droite) ─────────────────────────────────── */
.lg-card[b-opbi25i3g0] {
    background: var(--da-bg);
    border: 1px solid var(--da-line);
    border-radius: 20px;
    padding: 38px 42px;
}

/* Alerte StatusMessage dans la carte */
.lg-card .alert[b-opbi25i3g0] {
    border-radius: 10px;
    font-size: 14px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

/* ── Formulaire ────────────────────────────────────────────────── */
.lg-form[b-opbi25i3g0] {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fld[b-opbi25i3g0] {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.fld label[b-opbi25i3g0] {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--da-ink);
}

/* InputText / InputCheckbox / ValidationMessage sont des COMPOSANTS enfants : leurs
   éléments rendus (<input>, <div>) ne portent PAS l'attribut de scope CSS isolation
   (b-xxxx). On doit donc traverser la frontière de scope avec ::deep, sinon les règles
   ne s'appliquent pas et les inputs retombent en style navigateur par défaut. */
.lg-root[b-opbi25i3g0]  .lg-input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    background: var(--da-white);
    border: 1px solid var(--da-line);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--da-ink);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lg-root[b-opbi25i3g0]  .lg-input::placeholder {
    color: var(--da-muted);
}

.lg-root[b-opbi25i3g0]  .lg-input:hover {
    border-color: var(--da-gray);
}

.lg-root[b-opbi25i3g0]  .lg-input:focus {
    border-color: var(--da-red);
    box-shadow: 0 0 0 3px rgba(166, 38, 26, 0.1);
}

/* Ligne « Se souvenir de moi » + lien mot de passe oublié */
.check-row[b-opbi25i3g0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
}

.check-row .remember[b-opbi25i3g0] {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--da-muted);
    cursor: pointer;
    user-select: none;
}

/* Checkbox stylée (InputCheckbox = composant enfant → ::deep) */
.lg-root[b-opbi25i3g0]  .lg-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--da-line);
    background: var(--da-white);
    cursor: pointer;
    flex: none;
    position: relative;
    transition: background 0.15s, border-color 0.15s;
}

.lg-root[b-opbi25i3g0]  .lg-checkbox:checked {
    background: var(--da-red);
    border-color: var(--da-red);
}

.lg-root[b-opbi25i3g0]  .lg-checkbox:checked::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 5px;
    width: 6px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(42deg);
}

.lg-root[b-opbi25i3g0]  .lg-checkbox:focus-visible {
    outline: 2px solid var(--da-red);
    outline-offset: 2px;
}

.check-row a[b-opbi25i3g0] {
    color: var(--da-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 13.5px;
}

.check-row a:hover[b-opbi25i3g0] {
    text-decoration: underline;
}

/* Bouton submit principal */
.btn-da-primary[b-opbi25i3g0] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 10px;
    background: var(--da-red);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 6px 16px -6px rgba(166, 38, 26, 0.45);
    transition: background 0.15s, box-shadow 0.15s;
}

.btn-da-primary:hover[b-opbi25i3g0] {
    background: var(--da-red-deep);
    box-shadow: 0 8px 20px -6px rgba(166, 38, 26, 0.55);
}

.btn-da-primary:focus-visible[b-opbi25i3g0] {
    outline: 2px solid var(--da-red);
    outline-offset: 3px;
}

/* Message d'erreur de validation (ValidationMessage = composant enfant → ::deep) */
.lg-root[b-opbi25i3g0]  .lg-validation-message {
    font-size: 12px;
    color: var(--da-error);
    margin-top: 2px;
}

/* ── Footer ────────────────────────────────────────────────────── */
.lg-foot[b-opbi25i3g0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 64px;
    border-top: 1px solid var(--da-line);
    font-size: 12px;
    color: var(--da-gray);
    flex-shrink: 0;
    gap: 18px;
}

.lg-foot a[b-opbi25i3g0] {
    color: var(--da-gray);
    text-decoration: none;
}

.lg-foot a:hover[b-opbi25i3g0] {
    color: var(--da-muted);
    text-decoration: underline;
}

/* Lien Espace cabinet — volontairement discret (cf. décision §4.3 fallback F1) */
.lg-collab-link[b-opbi25i3g0] {
    color: var(--da-line);
    font-size: 11px;
    text-decoration: none;
    transition: color 0.2s;
}

.lg-collab-link:hover[b-opbi25i3g0],
.lg-collab-link:focus-visible[b-opbi25i3g0] {
    color: var(--da-gray);
    text-decoration: underline;
}

/* ── Responsive — mobile (≤ 720px) ────────────────────────────── */
@media (max-width: 720px) {
    .lg-header[b-opbi25i3g0] {
        padding: 20px 24px;
        border-bottom: 1px solid var(--da-line);
    }

    /* Masquer la ligne d'aide dans le header sur mobile */
    .lg-header .help-line[b-opbi25i3g0] {
        display: none;
    }

    /* Logo officiel légèrement réduit sur mobile */
    .lg-header .da-logo-img[b-opbi25i3g0] {
        height: 36px;
    }

    .lg-header .da-name[b-opbi25i3g0] {
        font-size: 17px;
    }

    /* Flex colonne (au lieu de grid) pour que les `order` ci-dessous prennent effet
       et que la carte conseiller puisse être épinglée en bas via margin-top:auto. */
    .lg-grid[b-opbi25i3g0] {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 24px;
    }

    /* display:contents fait « disparaître » la boîte .lg-editorial : ses enfants
       (eyebrow, h1, intro, carte conseiller) deviennent enfants directs de .lg-grid,
       donc des items flex sur lesquels `order` s'applique réellement. */
    .lg-editorial[b-opbi25i3g0] {
        display: contents;
    }

    .lg-eyebrow[b-opbi25i3g0] {
        font-size: 12px;
        margin-top: 34px;
        margin-bottom: 12px;
    }

    .lg-h1[b-opbi25i3g0] {
        font-size: 32px;
        line-height: 1.18;
        margin-bottom: 14px;
        max-width: 100%;
    }

    .lg-intro[b-opbi25i3g0] {
        font-size: 15px;
        margin-bottom: 28px;
        max-width: 100%;
    }

    /* La carte conseiller se place après le formulaire sur mobile */
    .lg-advisor[b-opbi25i3g0] {
        gap: 12px;
        padding: 14px 16px;
        border-radius: 12px;
        max-width: 100%;
        margin: auto 0 26px;
        order: 3;
    }

    .lg-advisor-avatar[b-opbi25i3g0] {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .lg-advisor-text[b-opbi25i3g0] {
        font-size: 12.5px;
        line-height: 1.45;
    }

    .lg-card[b-opbi25i3g0] {
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        order: 2;
    }

    .lg-form[b-opbi25i3g0] {
        gap: 15px;
    }

    /* Pas de footer sur mobile (conforme à la maquette MobileEditorial :
       l'écran se termine sur la carte conseiller). */
    .lg-foot[b-opbi25i3g0] {
        display: none;
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/*
 * CSS isolation — MainLayout (tiroir latéral gestionnaire)
 * Consomme les tokens --da-* déclarés au :root dans app.css.
 * Les anciens styles .page/.sidebar/.top-row sont remplacés par MudBlazor (MudLayout/MudDrawer).
 */

/* ── Bandeau d'erreur Blazor ────────────────────────────────────────── */
#blazor-error-ui[b-mkp9ny9nbk] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-mkp9ny9nbk] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ── Logo officiel DA dans l'en-tête du tiroir ──────────────────────── */
.da-drawer-logo-img[b-mkp9ny9nbk] {
    height: 36px;
    width: auto;
    display: block;
    flex: none;
}

/* ── Nom du cabinet ──────────────────────────────────────────────────── */
.da-drawer-name[b-mkp9ny9nbk] {
    font-family: "Lora", Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--da-ink);
    line-height: 1.05;
}

.da-drawer-name small[b-mkp9ny9nbk] {
    display: block;
    font-family: "Figtree", "Helvetica Neue", sans-serif;
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--da-gray);
    margin-top: 2px;
}

/* ── Zone navigation (scrollable) ───────────────────────────────────── */
.da-drawer-nav[b-mkp9ny9nbk] {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* ── Zone utilisateur (bas du tiroir) ───────────────────────────────── */
.da-drawer-user[b-mkp9ny9nbk] {
    padding: 8px 0 12px;
}

/* Survol boutons utilisateur en fond rouge-soft */
[b-mkp9ny9nbk] .da-drawer-user-btn:hover {
    background: var(--da-red-soft) !important;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/*
 * CSS isolation — NavMenu (liens de navigation dans le tiroir)
 * Consomme les tokens --da-* du :root (app.css).
 *
 * MudNavMenu génère les classes .mud-nav-link et .active.
 * On surcharge via ::deep pour traverser l'isolation du composant enfant.
 */

/* ── Lien de navigation normal ──────────────────────────────────────── */
[b-2gb71d5v7l] .mud-nav-link {
    color: var(--da-ink) !important;
    border-radius: 8px;
    margin: 1px 8px;
    transition:
        background 0.15s,
        color 0.15s;
}

[b-2gb71d5v7l] .mud-nav-link:hover {
    background: var(--da-red-soft) !important;
    color: var(--da-red) !important;
}

/* ── Lien actif (page courante) ─────────────────────────────────────── */
[b-2gb71d5v7l] .mud-nav-link.active {
    color: var(--da-red) !important;
    background: var(--da-red-soft) !important;
    font-weight: 600;
}

/* ── Icônes des liens ───────────────────────────────────────────────── */
[b-2gb71d5v7l] .mud-nav-link .mud-icon-root {
    color: var(--da-muted);
    transition: color 0.15s;
}

[b-2gb71d5v7l] .mud-nav-link:hover .mud-icon-root,
[b-2gb71d5v7l] .mud-nav-link.active .mud-icon-root {
    color: var(--da-red);
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-qhtohvsijd],
.components-reconnect-repeated-attempt-visible[b-qhtohvsijd],
.components-reconnect-failed-visible[b-qhtohvsijd],
.components-pause-visible[b-qhtohvsijd],
.components-resume-failed-visible[b-qhtohvsijd],
.components-rejoining-animation[b-qhtohvsijd] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-qhtohvsijd],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-qhtohvsijd],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-qhtohvsijd],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-qhtohvsijd],
#components-reconnect-modal.components-reconnect-retrying[b-qhtohvsijd],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-qhtohvsijd],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-qhtohvsijd],
#components-reconnect-modal.components-reconnect-failed[b-qhtohvsijd],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-qhtohvsijd] {
    display: block;
}


#components-reconnect-modal[b-qhtohvsijd] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-qhtohvsijd 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-qhtohvsijd 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-qhtohvsijd 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-qhtohvsijd]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-qhtohvsijd 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-qhtohvsijd {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-qhtohvsijd {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-qhtohvsijd {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-qhtohvsijd] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-qhtohvsijd] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-qhtohvsijd] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-qhtohvsijd] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-qhtohvsijd] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-qhtohvsijd] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-qhtohvsijd] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-qhtohvsijd 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-qhtohvsijd] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-qhtohvsijd {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
