/* /Components/Layout/FocusedLayout.razor.rz.scp.css */
.focused-shell[b-gzkjbhezw5] {
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--body);
}

.focused-top[b-gzkjbhezw5] {
    height: 3.5rem;
    padding: 0 1.5rem;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.focused-brand-link[b-gzkjbhezw5] {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.focused-brand[b-gzkjbhezw5] {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
}

.brand-logo[b-gzkjbhezw5] {
    max-height: 34px;
    width: auto;
    display: block;
}

.focused-right[b-gzkjbhezw5] {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.focused-logout[b-gzkjbhezw5] {
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
}

.focused-main[b-gzkjbhezw5] {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-omfvjood7y] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-omfvjood7y] {
    flex: 1;
    min-width: 0;
}

.sidebar[b-omfvjood7y] {
    background-color: var(--surface);
    border-right: 1px solid var(--border);
}

.top-row[b-omfvjood7y] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-omfvjood7y]  a, .top-row[b-omfvjood7y]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-omfvjood7y]  a:hover, .top-row[b-omfvjood7y]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-omfvjood7y]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-omfvjood7y] {
        justify-content: space-between;
    }

    .top-row[b-omfvjood7y]  a, .top-row[b-omfvjood7y]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-omfvjood7y] {
        flex-direction: row;
    }

    .sidebar[b-omfvjood7y] {
        width: 250px;
        flex-shrink: 0;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-omfvjood7y] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-omfvjood7y]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-omfvjood7y], article[b-omfvjood7y] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Le bandeau `#blazor-error-ui` est rendu par CETTE mise en page ET par FocusedLayout : sa règle
   d'affichage vit désormais dans wwwroot/app.css, hors de toute portée scopée. Ici, elle n'atteignait
   que la copie de MainLayout — l'autre restait visible en permanence. */
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-5mk14sussg] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid var(--border);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2871, 71, 71, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem transparent;
}

.navbar-toggler:checked[b-5mk14sussg] {
    background-color: var(--surface-2);
}

.top-row[b-5mk14sussg] {
    height: 3.5rem;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
}

.navbar-brand[b-5mk14sussg] {
    font-size: 1.1rem;
    font-family: var(--font-heading, 'Manrope', sans-serif);
    font-weight: 800;
    color: var(--text);
}

.bi[b-5mk14sussg] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
    flex-shrink: 0;
}

.bi-house-door-fill-nav-menu[b-5mk14sussg] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239a9a9a' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-5mk14sussg] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239a9a9a' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

/* Document (pages) — Questionnaires */
.bi-file-text-nav-menu[b-5mk14sussg] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%239a9a9a' d='M4 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V5L9 1H4z'/%3E%3Cg stroke='%23ffffff' stroke-width='1' stroke-linecap='round'%3E%3Cline x1='5.5' y1='7' x2='10.5' y2='7'/%3E%3Cline x1='5.5' y1='9' x2='10.5' y2='9'/%3E%3Cline x1='5.5' y1='11' x2='8.5' y2='11'/%3E%3C/g%3E%3C/svg%3E");
}

/* Graphique (barres) — Analyse du parcours */
.bi-bar-chart-nav-menu[b-5mk14sussg] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239a9a9a' viewBox='0 0 16 16'%3E%3Crect x='2' y='9' width='3' height='5' rx='0.5'/%3E%3Crect x='6.5' y='6' width='3' height='8' rx='0.5'/%3E%3Crect x='11' y='3' width='3' height='11' rx='0.5'/%3E%3C/svg%3E");
}

/* Réglages (sliders) — Apparence */
.bi-sliders-nav-menu[b-5mk14sussg] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cg stroke='%239a9a9a' stroke-width='1.5' stroke-linecap='round'%3E%3Cline x1='2' y1='5' x2='14' y2='5'/%3E%3Cline x1='2' y1='11' x2='14' y2='11'/%3E%3C/g%3E%3Ccircle cx='6' cy='5' r='2' fill='%23ffffff' stroke='%239a9a9a' stroke-width='1.5'/%3E%3Ccircle cx='10' cy='11' r='2' fill='%23ffffff' stroke='%239a9a9a' stroke-width='1.5'/%3E%3C/svg%3E");
}

.nav-item[b-5mk14sussg] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-5mk14sussg] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-5mk14sussg] {
        padding-bottom: 1rem;
    }

    .nav-item[b-5mk14sussg]  .nav-link {
        color: var(--body);
        background: none;
        border: none;
        border-left: 3px solid transparent;
        border-radius: 0;
        font-family: var(--font-heading, 'Manrope', sans-serif);
        font-weight: 500;
        min-height: 3rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        display: flex;
        align-items: center;
        line-height: 1.25;
        width: 100%;
    }

.nav-item[b-5mk14sussg]  a.active {
    background-color: var(--surface-2);
    color: var(--text);
    font-weight: 700;
    border-left-color: var(--accent);
}

.nav-item[b-5mk14sussg]  .nav-link:hover {
    background-color: var(--surface-2);
    color: var(--text);
}

.nav-scrollable[b-5mk14sussg] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-5mk14sussg] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-5mk14sussg] {
        display: none;
    }

    .nav-scrollable[b-5mk14sussg] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
