:root {
    /* Largeur de l'écran de recherche : le formulaire, les résultats et les sections dépliées
       s'alignent dessus.
       Une seule valeur à bouger pour élargir. Les pages de doc gardent leur colonne de lecture. */
    --largeur-ecran: 64rem;
    --sidebar-bg: #14395e;
    --sidebar-bg2: #1b4675;
    --sidebar-fg: #b6c7da;
    --sidebar-fg-dim: #7d93ab;
    --accent: #2270c8;
    --accent-2: #4a94e0;
    --accent-dark: #1a5aa6;
    --accent-soft: #e9f2fc;
    --ink: #17222e;
    --ink-soft: #5c6b7c;
    --bg: #fbfcfe;
    --card: #ffffff;
    --border: #e3e9f1;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(20, 22, 30, 0.04), 0 8px 24px rgba(20, 22, 30, 0.06);
    --font: "Inter", "Segoe UI", system-ui, sans-serif;
    --display: "Sora", "Inter", sans-serif;
    --mono: "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

img.emoji {
    height: 1em;
    width: 1em;
    margin: 0 0.08em;
    vertical-align: -0.12em;
    display: inline-block;
    box-shadow: none;
    border-radius: 0;
}

html, body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, .brand, .stat-count {
    font-family: var(--display);
    letter-spacing: -0.02em;
}

.page { display: flex; min-height: 100vh; }

/* ============ Barre latérale ============ */
.sidebar {
    width: 312px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(175deg, var(--sidebar-bg) 0%, var(--sidebar-bg2) 100%);
    color: var(--sidebar-fg);
    padding: 1.4rem 1rem 1.1rem;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
    scrollbar-width: thin;
    scrollbar-color: #2c567f transparent;
}

.sidebar nav { flex: 1; }

/* ---- Repli de la barre latérale ---- */
.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.collapse-btn {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--sidebar-fg);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.collapse-btn:hover { background: rgba(255, 255, 255, 0.14); color: #ffffff; }

.sidebar.collapsed { width: 56px; padding-left: 0.55rem; padding-right: 0.55rem; }
.sidebar.collapsed .sidebar-top { flex-direction: column; gap: 0.7rem; }
.sidebar.collapsed .brand { padding: 0.1rem 0 0; }
.sidebar.collapsed .brand-name,
.sidebar.collapsed nav { display: none; }

/* Poignée de largeur, sur le bord droit de la barre. La largeur choisie est retenue par le
   navigateur (docsSidebar) ; repliée, la poignée disparaît. */
.sidebar-resize {
    position: fixed;
    top: 0;
    width: 7px;
    height: 100vh;
    z-index: 20;
    cursor: col-resize;
    touch-action: none;
}

.sidebar-resize:hover { background: rgba(255, 255, 255, 0.16); }
.sidebar.collapsed .sidebar-resize { display: none; }

/* Groupes de fiches repris du plan du manuel. */
.tree summary.groupe {
    font-size: 0.83rem;
    font-weight: 600;
    color: #c6d2e2;
    text-transform: none;
}

.tree summary.groupe .node-label { white-space: normal; }

/* ---- Barre supérieure (profil + déconnexion) ---- */
.content-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem 0;
}

.account-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.32rem 0.85rem;
    box-shadow: var(--shadow);
}

/* Le nom du profil ne pousse jamais les onglets hors de l'écran. */
.account-nom {
    max-width: 22rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* La barre du haut passe à la ligne plutôt que de déborder sur un petit écran. */
.topbar { flex-wrap: wrap; }

.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: #2c567f; border-radius: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }

.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    text-decoration: none;
    padding: 0.15rem 0.3rem;
}

.brand-mark {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(34, 112, 200, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-sub { color: var(--sidebar-fg-dim); font-weight: 600; }

.sidebar nav { margin-top: 1.4rem; }

.sidebar nav::before {
    content: "Documentation";
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--sidebar-fg-dim);
    padding: 0 0.7rem 0.6rem;
}

.tree { list-style: none; margin: 0; padding: 0; }

/* Guides d'indentation façon éditeur de code */
.tree .tree {
    margin-left: 0.95rem;
    padding-left: 0.55rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.tree summary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.34rem 0.55rem;
    border-radius: 8px;
    user-select: none;
    color: #cbd3e0;
    list-style: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.tree summary::-webkit-details-marker { display: none; }
.tree summary::marker { content: ""; }
.tree summary:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff; }

/* Chevron animé */
.chev {
    flex-shrink: 0;
    width: 0.85rem;
    height: 0.85rem;
    display: grid;
    place-items: center;
    color: #6e8cab;
    transition: transform 0.18s ease, color 0.15s ease;
}

.chev::before {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.18s ease;
}

details[open] > summary .chev::before { transform: rotate(45deg); }
.tree summary:hover .chev { color: #aeb9cb; }

/* Catégories de premier niveau */
.tree summary.cat {
    margin-top: 0.55rem;
    padding: 0.42rem 0.55rem;
    font-size: 0.86rem;
    color: #e2e7f0;
}

.cat-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.8rem;
}

.node-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge compteur */
.count {
    flex-shrink: 0;
    font-size: 0.66rem;
    font-weight: 700;
    font-family: var(--mono);
    color: #9db6cf;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    padding: 0.05rem 0.5rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.tree summary:hover .count { background: rgba(34, 112, 200, 0.35); color: #dfe3ff; }

/* Documents */
.tree .doc-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--sidebar-fg);
    text-decoration: none;
    padding: 0.27rem 0.55rem;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.doc-dot {
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #517299;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.tree .doc-link:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff; }
.tree .doc-link:hover .doc-dot { background: #94a2ba; }

.tree .doc-link.active {
    background: linear-gradient(90deg, rgba(34, 112, 200, 0.32) 0%, rgba(34, 112, 200, 0.14) 100%);
    color: #ffffff;
}

.tree .doc-link.active .doc-dot {
    background: var(--accent-2);
    box-shadow: 0 0 8px rgba(74, 148, 224, 0.8);
}

/* ============ Contenu ============ */
.content {
    margin-inline: auto;
    min-width: 0;
    padding: 1.6rem 3.5rem 6rem;
    max-width: 1120px;
    animation: fadeUp 0.25s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

h1 { font-size: 1.75rem; font-weight: 800; margin: 0 0 1rem; }

/* La recherche doc est un écran large : la liste des résultats et les sections
   dépliées ont besoin de place. Le champ de saisie suit la largeur du formulaire. */
.content:has(.search-head) { max-width: calc(var(--largeur-ecran) + 7rem); }
.section-corps .markdown { max-width: 100%; }

.btn-classic {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.btn-classic:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent-dark); }
.btn-classic:disabled { opacity: 0.55; transform: none; cursor: default; }

/* Accueil : le plan de la documentation, une carte par rubrique de premier niveau. */
.home-plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.home-rubrique ul { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; line-height: 1.7; }
.home-rubrique a { color: var(--accent-dark); text-decoration: none; }
.home-rubrique a:hover { text-decoration: underline; }
.home-rubrique-icone { display: inline-flex; vertical-align: -2px; color: var(--accent-dark); }
.home-compte { font-size: 0.76rem; font-weight: 500; color: var(--ink-soft); }

/* Dossiers du plan : repliés par défaut, dépliés au clic — le chevron dit que ça s'ouvre. */
.home-node > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-weight: 700;
    padding: 0.1rem 0;
    border-radius: 4px;
}
.home-node > summary::-webkit-details-marker { display: none; }
.home-node > summary::before {
    content: "";
    flex: none;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1.5px solid var(--ink-soft);
    border-bottom: 1.5px solid var(--ink-soft);
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
}
.home-node[open] > summary::before { transform: rotate(45deg); }
.home-node > summary:hover { color: var(--accent-dark); }
.home-node > summary:hover::before { border-color: var(--accent-dark); }
.home-node > ul { padding-left: 1rem; }

/* ---- Panneaux ---- */
.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow);
}

.panel-title {
    margin: 0 0 0.9rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.doc-meta {
    display: inline-block;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-family: var(--mono);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.28rem 0.95rem;
    margin-bottom: 1.6rem;
    box-shadow: var(--shadow);
}

.not-found { color: #b42318; }

/* ============ Rendu Markdown ============ */
.markdown { max-width: 52rem; }
.markdown h1 { font-size: 1.65rem; margin-top: 0; }

.markdown h2 {
    font-size: 1.22rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.45rem;
    margin-top: 2.4rem;
}

.markdown h3 { font-size: 1.02rem; font-weight: 700; margin-top: 1.7rem; }

.markdown a {
    color: var(--accent-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(34, 112, 200, 0.3);
    transition: border-color 0.15s ease;
}
.markdown a:hover { border-bottom-color: var(--accent-dark); }

.markdown img { max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.markdown code {
    background: var(--accent-soft);
    color: #1d5290;
    padding: 0.12rem 0.42rem;
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 0.84em;
}

.markdown pre {
    background: #14314f;
    color: #e6edf5;
    border-radius: var(--radius);
    padding: 1.05rem 1.25rem;
    overflow-x: auto;
    box-shadow: var(--shadow);
}

.markdown pre code { background: none; color: inherit; padding: 0; }

.markdown blockquote {
    margin: 1.3rem 0;
    padding: 0.75rem 1.2rem;
    border-left: 3px solid var(--accent);
    background: linear-gradient(90deg, var(--accent-soft) 0%, rgba(238, 238, 251, 0.35) 100%);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #3c4258;
}

.markdown blockquote p { margin: 0.3rem 0; }

.markdown table, .content table {
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.2rem 0;
    display: block;
    overflow-x: auto;
    max-width: 100%;
}

.markdown th, .markdown td, .content th, .content td {
    border-bottom: 1px solid var(--border);
    padding: 0.55rem 0.95rem;
    text-align: left;
}

.markdown thead th, .content thead th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    border-bottom: 2px solid var(--border);
    background: none;
}

.markdown tbody tr:last-child td, .content tbody tr:last-child td { border-bottom: none; }
.markdown tbody tr:hover td, .content tbody tr:hover td { background: #fafaf8; }

.content table a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.content table a:hover { text-decoration: underline; }
.content table code { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); background: none; padding: 0; }
.date-cell { color: var(--ink-soft); font-size: 0.85rem; white-space: nowrap; }

.markdown hr { border: none; border-top: 1px solid var(--border); margin: 2.2rem 0; }
.markdown pre.mermaid { background: var(--card); border: 1px solid var(--border); }
.mermaid { margin: 1.2rem 0; }

/* ============ Recherche & formulaires ============ */
.search-form { display: flex; gap: 0.6rem; margin: 1.3rem 0; }

.search-form input {
    flex: 1;
    padding: 0.65rem 1.05rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font);
    background: var(--card);
    box-shadow: var(--shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(34, 112, 200, 0.14);
}

.search-form button {
    padding: 0.65rem 1.6rem;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(34, 112, 200, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.search-form button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(34, 112, 200, 0.42); }
.search-form button:disabled { opacity: 0.55; transform: none; cursor: default; }

.search-results { list-style: none; padding: 0; }

.search-results li {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1.15rem;
    margin-bottom: 0.65rem;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease;
}

.search-results li:hover { transform: translateX(3px); }
.search-results a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.search-results a:hover { text-decoration: underline; }
.search-results code { margin-left: 0.75rem; font-size: 0.74rem; color: var(--ink-soft); font-family: var(--mono); }
.snippet { color: var(--ink-soft); font-size: 0.88rem; margin-top: 0.3rem; }

/* Le titre de la recherche doc — il sert aussi de repère au .content pour élargir la page.
   Plus de bouton « Mode agent » ici : l'Agent est un onglet de la barre du haut. */
.search-head { margin-bottom: 0; }

/* Le bouton « Réinitialiser » vit dans .search-form : neutraliser le dégradé du bouton d'envoi. */
.search-form .btn-classic {
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--shadow);
    font-size: 0.95rem;
}

.search-form .btn-classic:hover { box-shadow: var(--shadow); border-color: var(--accent); color: var(--accent-dark); }

.search-summary {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin: 0 0 0.9rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.section-toggle {
    margin-top: 0.5rem;
    padding: 0.25rem 0.6rem 0.25rem 0;
    border: none;
    background: none;
    color: var(--accent-dark);
    font-size: 0.84rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
}

.section-toggle:hover { text-decoration: underline; }

.sections { margin-top: 0.55rem; border-top: 1px solid var(--border); }

.section { border-bottom: 1px solid var(--border); }

.section-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.2rem;
    border: none;
    background: none;
    text-align: left;
    font-family: var(--font);
    font-size: 0.88rem;
    color: var(--ink);
    cursor: pointer;
}

.section-head:hover { background: var(--accent-soft); }
.section-chevron { color: var(--accent); }
.section-titre { flex: 1; font-weight: 600; }
.section-niveau { font-size: 0.7rem; color: var(--ink-soft); font-family: var(--mono); }

.section-corps {
    padding: 0.2rem 0.4rem 0.9rem 1.3rem;
    border-left: 2px solid var(--accent-soft);
    margin-left: 0.35rem;
}

.section-corps > :first-child { margin-top: 0; }

.sections-vide { color: var(--ink-soft); font-size: 0.85rem; margin: 0.4rem 0 0; }

/* ============ Connexion ============ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(55rem 32rem at 12% -8%, rgba(34, 112, 200, 0.4), transparent 60%),
        radial-gradient(48rem 30rem at 108% 108%, rgba(74, 148, 224, 0.32), transparent 60%),
        linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg2) 100%);
}

.login-box {
    background: var(--card);
    border-radius: 18px;
    padding: 2.6rem 2.8rem;
    width: 23.5rem;
    text-align: center;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.login-box h1 { margin: 0 0 1.6rem; font-size: 1.3rem; }

.login-box input,
.login-box select {
    width: 100%;
    padding: 0.7rem 1.05rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font);
    margin-bottom: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-box select { background: #fff; color: inherit; }

.login-box input:focus,
.login-box select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(34, 112, 200, 0.14);
}

.login-box button {
    width: 100%;
    padding: 0.7rem;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(34, 112, 200, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-box button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(34, 112, 200, 0.48); }
.login-error { color: #b42318; margin: 0.95rem 0 0; font-size: 0.9rem; }

.login-sub { font-size: 0.88rem; color: var(--muted, #5b6472); margin: -0.8rem 0 1.3rem; }

.login-hint { font-size: 0.78rem; color: var(--muted, #5b6472); margin: 0.4rem 0 0; }

.login-remember {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.9rem 0 1.1rem;
    font-size: 0.85rem;
    color: var(--muted, #5b6472);
    cursor: pointer;
}

.login-remember input { width: auto; margin: 0; accent-color: var(--accent); }

.logout-form { margin: 0; }

.logout-form button {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font);
    padding: 0.32rem 0.9rem;
    white-space: nowrap;
    box-shadow: var(--shadow);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.logout-form button:hover {
    color: #b42318;
    border-color: #e4b6b1;
    background: #fdf5f4;
}

/* ============ Divers ============ */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

/* Onglets de la barre du haut : accueil et recherche, à un clic. */
.topbar { justify-content: flex-end; }

.topbar-lien {
    margin-right: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.topbar-lien:hover { background: var(--accent-soft); color: var(--accent-dark); }
.topbar-lien.active { background: var(--accent-soft); color: var(--accent-dark); }

