:root {
    --nexus-surface-alt: var(--background-alt-grey);
    --nexus-border: var(--border-default-grey);
}


/*
 * NEXUS est volontairement figé en thème clair.
 * Le thème sombre DSFR n'est pas travaillé pour l'instant : on empêche donc
 * le navigateur et le système d'exploitation d'imposer une apparence sombre.
 */
:root,
html,
body {
    color-scheme: light !important;
}

:root[data-fr-scheme="dark"],
:root[data-fr-theme="dark"],
html[data-fr-scheme="dark"],
html[data-fr-theme="dark"] {
    color-scheme: light !important;
}

body {
    min-height: 100vh;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.nexus-main,
.nexus-main .fr-container,
.nexus-main .fr-grid-row > [class*="fr-col"] {
    min-width: 0;
}

.nexus-main {
    min-height: calc(100vh - 22rem);
}

.nexus-header-service {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nexus-userbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nexus-userbox__identity {
    text-align: right;
}

.nexus-userbox__hint {
    display: block;
}

.nexus-page-intro {
    max-width: 48rem;
}

.nexus-stat-card,
.nexus-notification-card {
    background: var(--background-default-grey);
    border: 1px solid var(--nexus-border);
    height: 100%;
}

.nexus-stat-value {
    display: block;
    margin-bottom: 0.5rem;
}

.nexus-login-shell {
    background: linear-gradient(180deg, var(--background-alt-blue-france) 0, var(--background-default-grey) 18rem);
    min-height: 100vh;
}

.nexus-login-main {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.nexus-login-card {
    background: var(--background-default-grey);
    border: 1px solid var(--nexus-border);
    box-shadow: 0 6px 18px rgba(0, 0, 145, 0.08);
}

.nexus-login-sidecard,
.nexus-dashboard-panel,
.nexus-table-card,
.nexus-notification-panel {
    background: var(--background-default-grey);
    border: 1px solid var(--nexus-border);
}

.nexus-login-demo {
    background: var(--background-contrast-grey);
    border-left: 4px solid var(--border-action-high-blue-france);
}

.nexus-badge-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nexus-table-card .fr-table {
    margin-bottom: 0;
    overflow-x: auto;
}

.nexus-table-card table {
    min-width: 48rem;
}

.nexus-notification-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nexus-notification-card--non-lue {
    border-left: 4px solid var(--border-action-high-blue-france);
}

.nexus-footer-note {
    max-width: 44rem;
}

@media (max-width: 48em) {
    .nexus-userbox,
    .nexus-userbox__identity {
        justify-content: flex-start;
        text-align: left;
    }

    .nexus-login-main {
        padding-top: 2rem;
    }
}


.nexus-section-card {
    background: var(--background-default-grey);
    border: 1px solid var(--nexus-border);
}

.nexus-filter-box ul {
    padding-left: 1.25rem;
}

.nexus-notification-meta {
    text-align: right;
}

.nexus-key-value {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.nexus-key-value div {
    display: grid;
    gap: 0.25rem;
}

.nexus-key-value dt {
    font-weight: 700;
}

.nexus-key-value dd {
    margin: 0;
}

@media (max-width: 48em) {
    .nexus-notification-meta {
        text-align: left;
    }
}


.nexus-form-section {
    scroll-margin-top: 2rem;
}

.nexus-form-section__header {
    margin-bottom: 1.5rem;
}

.nexus-checkbox-stack {
    display: grid;
    gap: 0.75rem;
}

.nexus-form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.nexus-step-list,
.nexus-compact-list {
    padding-left: 1.25rem;
}

.nexus-page-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.nexus-page-heading__actions {
    display: flex;
    align-items: flex-start;
}


.nexus-input-auto-group .fr-label {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nexus-badge-auto {
    flex-shrink: 0;
}

.nexus-champ-auto {
    background-color: var(--background-alt-blue-france);
    border-left: 0.375rem solid var(--border-action-high-blue-france);
    font-weight: 500;
}

.nexus-hidden {
    display: none !important;
}


.nexus-nav-admin > .fr-menu {
    min-width: 18rem;
}

@media (min-width: 62em) {
    .nexus-nav-admin {
        position: relative;
    }

    .nexus-nav-admin > .fr-menu {
        left: auto;
        right: 0;
        width: max-content;
    }

    .nexus-nav-admin:hover > .fr-menu,
    .nexus-nav-admin:focus-within > .fr-menu,
    .nexus-nav-admin > .fr-menu.fr-collapse--expanded,
    .nexus-nav-admin > .fr-menu.fr-collapsing {
        max-height: none;
        overflow: visible;
        visibility: visible;
    }

    .nexus-nav-admin:hover > .fr-menu::before,
    .nexus-nav-admin:focus-within > .fr-menu::before,
    .nexus-nav-admin > .fr-menu.fr-collapse--expanded::before,
    .nexus-nav-admin > .fr-menu.fr-collapsing::before {
        margin-top: 0;
    }
}

.nexus-dashboard-panel {
    height: 100%;
}

@media (min-width: 62em) {
    .nexus-userbox__hint {
        max-width: 28rem;
    }
}


.nexus-controls-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nexus-controls-table-card {
    overflow: hidden;
}

.nexus-table-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-mention-grey);
    font-size: 0.875rem;
}

.nexus-table-scroll-shell {
    border: 1px solid var(--nexus-border);
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--background-default-grey);
}

.nexus-controls-table-card .fr-table {
    margin-bottom: 0;
    overflow-x: auto;
    scrollbar-gutter: stable both-edges;
}

.nexus-controls-table-card table {
    min-width: 118rem;
}

.nexus-controls-table-card caption {
    padding-bottom: 1rem;
}

.nexus-controls-table-card th {
    white-space: nowrap;
    background: var(--background-contrast-grey);
}

.nexus-controls-table-card th,
.nexus-controls-table-card td {
    vertical-align: top;
}

.nexus-controls-table-card td {
    word-break: normal;
    overflow-wrap: anywhere;
}

.nexus-table-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 18rem;
    line-height: 1.4;
}

.nexus-controls-table-card td:last-child,
.nexus-controls-table-card th:last-child {
    white-space: nowrap;
}

.nexus-controls-actions {
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.nexus-controls-actions form {
    margin: 0;
    flex: 0 0 auto;
}

.nexus-controls-actions li {
    flex: 0 0 auto;
}

.nexus-controls-actions .fr-btn {
    white-space: nowrap;
}

@media (max-width: 62em) {
    .nexus-controls-toolbar {
        justify-content: flex-start;
    }
}


.nexus-nav-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nexus-global-search {
    padding-bottom: 1rem;
}

.nexus-global-search__form {
    position: relative;
    display: flex;
    align-items: center;
}

.nexus-global-search__field {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 20rem;
    width: 100%;
    border: 1px solid rgba(0, 0, 145, 0.14);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 18, 0.08);
    overflow: hidden;
}

.nexus-global-search__field:focus-within {
    border-color: var(--border-action-high-blue-france);
    box-shadow: 0 0 0 2px rgba(0, 0, 145, 0.18), 0 12px 28px rgba(0, 0, 18, 0.12);
}

.nexus-global-search__field-icon {
    position: absolute;
    left: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    color: var(--text-mention-grey);
    pointer-events: none;
}

.nexus-global-search__field-icon svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

.nexus-global-search__input {
    min-width: 0;
    width: 100%;
    padding-left: 2.5rem;
    padding-right: 0.5rem;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.nexus-global-search__input:focus {
    box-shadow: none;
    outline: none;
}

.nexus-global-search__submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    margin: 0.25rem;
    padding: 0;
    border-radius: 999px;
}

.nexus-global-search__submit svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

.nexus-global-search__panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 20;
}

.nexus-global-search__results {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    border: 1px solid rgba(0, 0, 145, 0.14);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 1rem 2rem rgba(0, 0, 18, 0.14);
}

.nexus-global-search__item {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 0.8rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.nexus-global-search__item:hover,
.nexus-global-search__item:focus,
.nexus-global-search__item.is-active {
    background: linear-gradient(135deg, rgba(0, 0, 145, 0.05), rgba(0, 0, 145, 0.02));
    box-shadow: inset 0 0 0 1px rgba(0, 0, 145, 0.12);
}

.nexus-global-search__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.nexus-search-kind {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.nexus-search-kind--bti {
    background: rgba(0, 0, 145, 0.08);
    color: var(--text-title-blue-france);
}

.nexus-search-kind--controle {
    background: rgba(24, 117, 42, 0.12);
    color: #18752a;
}

.nexus-search-kind--generic {
    background: var(--background-contrast-grey);
    color: var(--text-default-grey);
}

.nexus-global-search__reference-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.nexus-global-search__reference {
    display: block;
    color: var(--text-title-blue-france);
    font-size: 0.95rem;
}

.nexus-global-search__open {
    color: var(--text-mention-grey);
    font-size: 0.8rem;
    white-space: nowrap;
}

.nexus-global-search__excerpt,
.nexus-search-result__excerpt {
    display: block;
    color: var(--text-default-grey);
    line-height: 1.45;
}

.nexus-search-result__field {
    display: inline-flex;
    align-items: center;
    margin-right: 0.45rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: var(--background-alt-grey);
    color: var(--text-mention-grey);
    font-size: 0.78rem;
}

.nexus-global-search__empty {
    padding: 1rem;
    color: var(--text-mention-grey);
}

.nexus-search-result-card {
    border: 1px solid rgba(0, 0, 145, 0.1);
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(0, 0, 18, 0.06);
}

.nexus-search-result-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.nexus-search-result-card__main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.nexus-search-result-card__aside {
    flex: 0 0 auto;
    padding-top: 0.1rem;
}

.nexus-search-result-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-title-blue-france);
    font-weight: 600;
    text-decoration: none;
}

.nexus-search-result-card__link:hover,
.nexus-search-result-card__link:focus {
    text-decoration: underline;
}

.nexus-search-result-card mark,
.nexus-global-search__excerpt mark {
    background: var(--background-open-blue-france);
    color: var(--text-default-grey);
    padding: 0.125rem 0.2rem;
}

.nexus-search-hero {
    background: linear-gradient(180deg, rgba(245, 245, 255, 0.72), #ffffff 65%);
}

.nexus-search-page-form {
    max-width: 48rem;
}

.nexus-search-page-form__field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(0, 0, 145, 0.14);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(0, 0, 18, 0.06);
    padding: 0.35rem;
}

.nexus-search-page-form__field:focus-within {
    border-color: var(--border-action-high-blue-france);
    box-shadow: 0 0 0 2px rgba(0, 0, 145, 0.16), 0 12px 26px rgba(0, 0, 18, 0.1);
}

.nexus-search-page-form__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mention-grey);
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
}

.nexus-search-page-form__icon svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

.nexus-search-page-form__input {
    border: 0;
    box-shadow: none;
    background: transparent;
}

.nexus-search-page-form__input:focus {
    box-shadow: none;
    outline: none;
}

.nexus-search-page-form__submit {
    white-space: nowrap;
    border-radius: 0.85rem;
}

.nexus-search-summary {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nexus-search-summary__count {
    font-size: 1rem;
}

.nexus-search-summary__query {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 145, 0.06);
    color: var(--text-title-blue-france);
    font-weight: 600;
}
.nexus-reference-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: var(--background-contrast-blue-france);
    color: var(--text-title-blue-france);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nexus-reference-pill:hover,
.nexus-reference-pill:focus {
    background: var(--background-alt-blue-france);
}


@media (min-width: 62em) {
    .nexus-nav-layout {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .nexus-global-search {
        flex: 0 0 27rem;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 62em) {
    .nexus-global-search__field {
        min-width: 0;
    }

    .nexus-search-result-card__main {
        flex-direction: column;
    }

    .nexus-search-result-card__aside {
        width: 100%;
    }
}

@media (min-width: 62em) {
    .nexus-nav-layout {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .nexus-global-search {
        flex: 0 0 27rem;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 62em) {
    .nexus-global-search__field {
        min-width: 0;
    }
}


.nexus-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--nexus-border);
    background: var(--background-alt-grey);
    color: var(--text-default-grey);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.nexus-status-badge::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentColor;
    flex: none;
    opacity: 0.92;
}

.nexus-status-badge--draft {
    background: #fff4e5;
    border-color: #ffd59b;
    color: #8f4f00;
}

.nexus-status-badge--progress {
    background: #eef4ff;
    border-color: #bfd6ff;
    color: #0045b8;
}

.nexus-status-badge--review {
    background: #f4f0ff;
    border-color: #d6c7ff;
    color: #5f3dc4;
}

.nexus-status-badge--success {
    background: #e8f8ef;
    border-color: #b8e7ca;
    color: #18753c;
}

.nexus-status-badge--inactive {
    background: #f4f4f4;
    border-color: #d6d6d6;
    color: #666666;
}

.nexus-status-badge--danger {
    background: #fff1f0;
    border-color: #ffb8b0;
    color: #b34000;
}

.nexus-status-badge--caution {
    background: #fff7df;
    border-color: #ffe08a;
    color: #8a5800;
}


.nexus-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.nexus-timeline__step {
    position: relative;
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
    align-items: flex-start;
}

.nexus-timeline__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.4rem;
    left: 1.1rem;
    width: 2px;
    height: calc(100% - 1rem);
    background: var(--border-default-grey);
}

.nexus-timeline__marker {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--border-default-grey);
    background: var(--background-alt-grey);
    color: var(--text-label-grey);
    z-index: 1;
}

.nexus-timeline__content {
    min-width: 0;
    padding-top: 0.1rem;
}

.nexus-timeline__title,
.nexus-timeline__date,
.nexus-timeline__hint {
    margin: 0;
}

.nexus-timeline__title {
    font-weight: 700;
    color: var(--text-title-grey);
}

.nexus-timeline__date {
    margin-top: 0.2rem;
    font-size: 0.875rem;
    color: var(--text-mention-grey);
}

.nexus-timeline__hint {
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: var(--text-default-grey);
}

.nexus-timeline__step--done .nexus-timeline__marker,
.nexus-timeline-step-done .nexus-timeline__marker {
    background: var(--background-action-high-blue-france);
    border-color: var(--border-action-high-blue-france);
    color: var(--text-inverted-blue-france);
}

.nexus-timeline__step--done:not(:last-child)::after,
.nexus-timeline-step-done:not(:last-child)::after {
    background: var(--border-action-high-blue-france);
}

.nexus-timeline__step--current .nexus-timeline__marker,
.nexus-timeline-step-current .nexus-timeline__marker {
    box-shadow: 0 0 0 4px rgba(0, 0, 145, 0.12);
}

.nexus-timeline__step--current .nexus-timeline__title,
.nexus-timeline-step-current .nexus-timeline__title {
    color: var(--text-action-high-blue-france);
}

@media (min-width: 62em) {
    .nexus-timeline {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .nexus-timeline__step {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .nexus-timeline__step:not(:last-child)::after {
        top: 1.1rem;
        left: calc(100% - 0.25rem);
        width: calc(100% - 1.75rem);
        height: 2px;
    }
}


.nexus-record-hero__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nexus-record-hero__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.75rem;
}

.nexus-record-hero__meta-item {
    padding: 0.875rem 1rem;
    border: 1px solid var(--nexus-border);
    background: var(--background-alt-grey);
    border-radius: 0.75rem;
}

.nexus-record-hero__meta-label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-mention-grey);
    font-size: 0.875rem;
}

.nexus-detail-aside-card {
    box-shadow: 0 8px 24px rgba(0, 0, 145, 0.08);
}

.nexus-detail-aside-card__label {
    color: var(--text-mention-grey);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nexus-detail-aside-card__note {
    color: var(--text-mention-grey);
}

.nexus-detail-section {
    box-shadow: 0 6px 20px rgba(0, 0, 145, 0.06);
}

.nexus-detail-section__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.nexus-key-value--cards {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.875rem;
}

.nexus-key-value--cards > div {
    padding: 0.9rem 1rem;
    border: 1px solid var(--nexus-border);
    border-radius: 0.75rem;
    background: var(--background-alt-grey);
    min-width: 0;
}

.nexus-key-value--cards dd {
    overflow-wrap: anywhere;
}

.nexus-key-value--cards > .nexus-key-value__item--wide {
    grid-column: span 2;
}

.nexus-free-text-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.nexus-free-text-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--nexus-border);
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #f9fbff 0%, var(--background-alt-grey) 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 145, 0.02);
    min-width: 0;
}

.nexus-free-text-card--wide {
    grid-column: 1 / -1;
}

.nexus-free-text-card__content {
    margin: 0;
    color: var(--text-default-grey);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.6;
}

.nexus-history-list {
    list-style: none;
    padding: 0;
}

.nexus-history-list__item {
    margin-bottom: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--nexus-border);
    border-radius: 0.75rem;
    background: var(--background-alt-grey);
}

@media (max-width: 48em) {
    .nexus-record-hero__meta {
        grid-template-columns: 1fr;
    }

    .nexus-key-value--cards {
        grid-template-columns: 1fr;
    }

    .nexus-free-text-grid {
        grid-template-columns: 1fr;
    }
}

.nexus-feedback {
    position: relative;
    border: 1px solid var(--border-default-grey);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 12px 32px rgba(0, 0, 145, 0.06);
    overflow: hidden;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.nexus-feedback::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.375rem;
    border-radius: 1rem 0 0 1rem;
    background: var(--border-action-high-blue-france);
}

.nexus-feedback .fr-alert__title {
    margin-bottom: 0.35rem;
    font-size: 1rem;
    line-height: 1.4;
}

.nexus-feedback p:not(.fr-alert__title) {
    margin-bottom: 0;
    color: var(--text-default-grey);
}

.nexus-feedback.fr-alert--success {
    background: #f4f8f3;
    border-color: #9bc79a;
}

.nexus-feedback.fr-alert--success::before {
    background: #18753c;
}

.nexus-feedback.fr-alert--error {
    background: #fef4f4;
    border-color: #f0a7a7;
}

.nexus-feedback.fr-alert--error::before {
    background: #ce0500;
}

.nexus-feedback.fr-alert--info {
    background: #f4f6ff;
    border-color: #bfc8fb;
}

.nexus-feedback.fr-alert--info::before {
    background: var(--border-action-high-blue-france);
}

.nexus-feedback.fr-alert--warning {
    background: #fff8f2;
    border-color: #f4c7a3;
}

.nexus-feedback.fr-alert--warning::before {
    background: #b34000;
}

.nexus-feedback[data-nexus-auto-dismiss="true"] {
    will-change: opacity, transform;
}

.nexus-feedback.is-dismissing {
    opacity: 0;
    transform: translateY(-0.25rem);
}


.nexus-empty-state {
    border: 1px solid rgba(0, 0, 145, 0.12);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(245, 245, 255, 0.78), #ffffff 72%);
    box-shadow: 0 14px 28px rgba(0, 0, 18, 0.04);
}

.nexus-empty-state__inner {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.nexus-empty-state__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-title-blue-france);
}

.nexus-empty-state__eyebrow::before {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--background-action-high-blue-france);
    box-shadow: 0 0 0 0.3rem rgba(0, 0, 145, 0.08);
    flex: none;
}

.nexus-empty-state__title {
    margin-bottom: 0.75rem;
}

.nexus-empty-state__text {
    max-width: 44rem;
    margin-bottom: 0;
    color: var(--text-mention-grey);
}

.nexus-empty-state__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.nexus-empty-state__tips {
    margin: 0;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(246, 246, 246, 0.92);
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.nexus-empty-state__tips li {
    position: relative;
    padding-left: 1rem;
    color: var(--text-mention-grey);
}

.nexus-empty-state__tips li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: var(--background-action-high-blue-france);
}

.nexus-inline-help {
    border: 1px solid rgba(0, 0, 145, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
}

.nexus-inline-help__title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (min-width: 48em) {
    .nexus-empty-state__inner {
        grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.9fr);
    }
}

@media (max-width: 48em) {
    .nexus-empty-state__tips {
        padding: 0.875rem 1rem;
    }
}

.nexus-action-button,
.nexus-page-heading__actions .fr-btn,
.nexus-controls-toolbar .fr-btn,
.nexus-empty-state__actions .fr-btn,
.nexus-detail-actions .fr-btn,
.nexus-inline-actions .fr-btn,
.nexus-btn-cluster .fr-btn,
.nexus-search-result-card__link,
.nexus-reference-pill {
    border-radius: 0.9rem;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.nexus-action-button:hover,
.nexus-action-button:focus,
.nexus-page-heading__actions .fr-btn:hover,
.nexus-page-heading__actions .fr-btn:focus,
.nexus-controls-toolbar .fr-btn:hover,
.nexus-controls-toolbar .fr-btn:focus,
.nexus-empty-state__actions .fr-btn:hover,
.nexus-empty-state__actions .fr-btn:focus,
.nexus-detail-actions .fr-btn:hover,
.nexus-detail-actions .fr-btn:focus,
.nexus-inline-actions .fr-btn:hover,
.nexus-inline-actions .fr-btn:focus,
.nexus-btn-cluster .fr-btn:hover,
.nexus-btn-cluster .fr-btn:focus,
.nexus-reference-pill:hover,
.nexus-reference-pill:focus,
.nexus-search-result-card__link:hover,
.nexus-search-result-card__link:focus {
    transform: translateY(-1px);
}

.nexus-page-heading__actions,
.nexus-controls-toolbar,
.nexus-btn-cluster,
.nexus-inline-actions,
.nexus-detail-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nexus-btn-cluster--inline,
.nexus-inline-actions--compact {
    gap: 0.5rem;
}

.nexus-btn-cluster > *,
.nexus-inline-actions > *,
.nexus-detail-actions > * {
    margin: 0;
    flex: 0 0 auto;
}

.nexus-btn-cluster form,
.nexus-inline-actions form,
.nexus-detail-actions form {
    margin: 0;
}

.nexus-page-heading__actions .fr-btn,
.nexus-controls-toolbar .fr-btn,
.nexus-detail-actions .fr-btn,
.nexus-btn-cluster .fr-btn,
.nexus-search-page-form__submit,
.nexus-global-search__submit {
    box-shadow: 0 12px 20px rgba(0, 0, 18, 0.05);
}

.nexus-page-heading__actions .fr-btn--secondary,
.nexus-controls-toolbar .fr-btn--secondary,
.nexus-detail-actions .fr-btn--secondary,
.nexus-btn-cluster .fr-btn--secondary,
.nexus-inline-actions .fr-btn--secondary,
.nexus-search-page-form__submit.fr-btn--secondary,
.nexus-global-search__submit.fr-btn--secondary,
.nexus-detail-actions .fr-btn--tertiary-no-outline,
.nexus-inline-actions .fr-btn--tertiary-no-outline,
.nexus-btn-cluster .fr-btn--tertiary-no-outline {
    box-shadow: none;
}

.nexus-inline-actions .fr-btn,
.nexus-controls-actions .fr-btn,
.nexus-detail-actions .fr-btn {
    white-space: nowrap;
}

.nexus-detail-actions {
    align-items: stretch;
}

.nexus-detail-actions .fr-btn,
.nexus-detail-actions form {
    width: 100%;
}

.nexus-detail-actions form .fr-btn {
    width: 100%;
    justify-content: center;
}

.nexus-search-result-card__link {
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(0, 0, 145, 0.14);
    border-radius: 0.9rem;
    background: rgba(245, 245, 255, 0.8);
}

.nexus-table-scroll-hint__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    color: currentColor;
}

.nexus-table-scroll-hint__icon svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

@media (min-width: 62em) {
    .nexus-detail-actions .fr-btn,
    .nexus-detail-actions form {
        width: auto;
    }

    .nexus-detail-actions .fr-btn,
    .nexus-detail-actions form .fr-btn {
        min-width: 14rem;
    }
}

@media (max-width: 48em) {
    .nexus-page-heading__actions,
    .nexus-controls-toolbar,
    .nexus-btn-cluster,
    .nexus-inline-actions,
    .nexus-detail-actions {
        width: 100%;
    }

    .nexus-page-heading__actions .fr-btn,
    .nexus-controls-toolbar .fr-btn,
    .nexus-btn-cluster .fr-btn,
    .nexus-inline-actions .fr-btn,
    .nexus-detail-actions .fr-btn,
    .nexus-btn-cluster form,
    .nexus-inline-actions form,
    .nexus-detail-actions form {
        width: 100%;
    }

    .nexus-btn-cluster form .fr-btn,
    .nexus-inline-actions form .fr-btn,
    .nexus-detail-actions form .fr-btn {
        width: 100%;
        justify-content: center;
    }
}

.nexus-action-button--compact {
    border-radius: 999px;
}

.nexus-home-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 145, 0.08) 0%, rgba(232, 242, 252, 0.92) 42%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid var(--nexus-border);
    border-radius: 1.5rem;
    box-shadow: 0 14px 34px rgba(0, 0, 145, 0.08);
}

.nexus-home-hero::before,
.nexus-home-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.nexus-home-hero::before {
    width: 18rem;
    height: 18rem;
    top: -8rem;
    right: -4rem;
    background: radial-gradient(circle, rgba(106, 173, 255, 0.35) 0%, rgba(106, 173, 255, 0) 70%);
    animation: nexus-float-glow 9s ease-in-out infinite;
}

.nexus-home-hero::after {
    width: 12rem;
    height: 12rem;
    bottom: -5rem;
    left: -2rem;
    background: radial-gradient(circle, rgba(0, 0, 145, 0.12) 0%, rgba(0, 0, 145, 0) 72%);
    animation: nexus-float-glow 11s ease-in-out infinite reverse;
}

.nexus-home-hero__panel {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.nexus-home-hero__eyebrow,
.nexus-home-section-heading__eyebrow {
    margin: 0;
    color: var(--text-action-high-blue-france);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nexus-home-hero__lead {
    max-width: 32rem;
}

.nexus-home-hero__context {
    color: var(--text-mention-grey);
}

.nexus-home-hero__actions {
    margin-bottom: 0;
}

.nexus-home-kpi-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 2rem;
}

.nexus-home-kpi-card,
.nexus-home-panel,
.nexus-home-mini-card,
.nexus-home-action-tile {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.nexus-home-kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 11.5rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 145, 0.10);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 10px 22px rgba(0, 0, 145, 0.06);
}

.nexus-home-kpi-card::after {
    content: "";
    position: absolute;
    inset: auto 1.5rem 1rem 1.5rem;
    height: 0.25rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 0, 145, 0.18), rgba(0, 0, 145, 0.04));
}

.nexus-home-kpi-card--primary {
    background: linear-gradient(180deg, rgba(232, 242, 252, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
    border-color: rgba(0, 0, 145, 0.16);
}

.nexus-home-kpi-card--accent {
    background: linear-gradient(180deg, rgba(254, 243, 227, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
    border-color: rgba(187, 99, 0, 0.18);
}

.nexus-home-kpi-card__label {
    margin: 0 0 0.5rem;
    color: var(--text-mention-grey);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: balance;
    letter-spacing: -0.01em;
}

.nexus-home-kpi-card__value {
    display: block;
    margin: 0 0 0.5rem;
    color: var(--text-title-grey);
    max-width: 100%;
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-variant-numeric: tabular-nums;
}

.nexus-home-kpi-card__meta {
    margin: 0;
    color: var(--text-default-grey);
    font-size: 0.875rem;
    line-height: 1.45;
    max-width: none;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.nexus-home-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.nexus-home-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 251, 0.98) 100%);
    border: 1px solid var(--nexus-border);
    border-radius: 1.25rem;
    box-shadow: 0 8px 20px rgba(0, 0, 145, 0.05);
    height: 100%;
}

.nexus-home-panel__hint {
    color: var(--text-mention-grey);
}

.nexus-home-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
}

.nexus-home-mini-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nexus-home-mini-card {
    background: var(--background-default-grey);
    border: 1px solid rgba(0, 0, 145, 0.1);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 5.5rem;
    padding: 0.875rem;
    text-align: center;
}

.nexus-home-mini-card__value {
    display: block;
    max-width: 100%;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.35rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-variant-numeric: tabular-nums;
}

.nexus-home-mini-card__label {
    color: var(--text-mention-grey);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: balance;
    letter-spacing: -0.01em;
}

.nexus-home-action-tile {
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 145, 0.1);
    box-shadow: none;
    height: 100%;
}

.nexus-home-focus {
    background: linear-gradient(180deg, rgba(232, 242, 252, 0.7) 0%, rgba(255, 255, 255, 1) 100%);
}

.nexus-home-bullet-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.6rem;
}


.nexus-home-kpi-card,
.nexus-home-panel,
.nexus-home-mini-card,
.nexus-home-action-tile,
.nexus-admin-action-tile,
.nexus-table-card,
.nexus-notification-panel,
.nexus-notification-card {
    min-width: 0;
}

.nexus-home-section-heading > div,
.nexus-home-action-tile .fr-tile__body,
.nexus-admin-action-tile .fr-tile__body,
.nexus-home-action-tile .fr-tile__title,
.nexus-home-action-tile .fr-tile__desc,
.nexus-admin-action-tile__meta,
.nexus-home-panel__hint,
.nexus-notification-card p {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.nexus-home-section-heading h2 {
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: balance;
}

.nexus-animate-on-load {
    opacity: 0;
    transform: translateY(16px);
}

.nexus-animate-on-load.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.nexus-home-kpi-card:hover,
.nexus-home-panel:hover,
.nexus-home-mini-card:hover,
.nexus-home-action-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 145, 0.1);
}

@keyframes nexus-float-glow {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, 0.6rem, 0) scale(1.06);
    }
}

@media (max-width: 78em) {
    .nexus-home-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nexus-home-mini-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 62em) {
    .nexus-home-hero__panel,
    .nexus-home-kpi-grid {
        padding: 1.5rem;
    }
}

@media (max-width: 48em) {
    .nexus-home-kpi-grid,
    .nexus-home-mini-grid,
    .nexus-home-mini-grid--four {
        grid-template-columns: 1fr;
    }

    .nexus-home-hero {
        border-radius: 1rem;
    }

    .nexus-home-kpi-card {
        min-height: auto;
    }

    .nexus-home-section-heading {
        align-items: stretch;
    }
}


.nexus-admin-hero {
    background: linear-gradient(135deg, rgba(0, 0, 145, 0.10) 0%, rgba(235, 245, 255, 0.96) 45%, rgba(255, 255, 255, 0.99) 100%);
}

.nexus-admin-hero::before {
    width: 20rem;
    height: 20rem;
    top: -8rem;
    right: -3rem;
}

.nexus-admin-hero__panel {
    min-height: 100%;
}

.nexus-admin-focus-panel {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 0, 145, 0.10);
    border-radius: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.nexus-admin-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nexus-admin-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nexus-admin-mini-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nexus-admin-action-tile {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 251, 0.98) 100%);
}

.nexus-admin-action-tile__meta {
    margin: 0 0 0.5rem;
    color: var(--text-action-high-blue-france);
    font-size: 0.875rem;
    font-weight: 700;
}

@media (max-width: 78em) {
    .nexus-admin-kpi-grid,
    .nexus-admin-mini-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 48em) {
    .nexus-admin-mini-grid,
    .nexus-admin-kpi-grid,
    .nexus-admin-mini-grid--four {
        grid-template-columns: 1fr;
    }

    .nexus-admin-focus-panel {
        border-radius: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nexus-home-hero::before,
    .nexus-home-hero::after,
    .nexus-home-kpi-card,
    .nexus-home-panel,
    .nexus-home-mini-card,
    .nexus-home-action-tile,
    .nexus-animate-on-load,
    .nexus-animate-on-load.is-visible {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .nexus-animate-on-load {
        opacity: 1;
    }
}


.nexus-simple-list-table .fr-table {
    overflow-x: visible;
}

.nexus-simple-list-table .fr-table table {
    width: 100%;
    table-layout: auto;
}

.nexus-simple-list-table .fr-table th {
    white-space: nowrap;
}

.nexus-col-statut {
    width: 12rem;
}


.nexus-col-date {
    width: 8.5rem;
}

.nexus-cell-date {
    min-width: 8.5rem;
}

.nexus-table-date {
    display: inline-block;
    white-space: nowrap;
}

.nexus-col-actions {
    width: 1%;
}

.nexus-cell-statut {
    min-width: 10.5rem;
}

.nexus-cell-actions {
    width: 1%;
    white-space: nowrap;
}

.nexus-status-badge--table {
    display: inline-flex;
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
    align-items: flex-start;
    justify-content: flex-start;
}

.nexus-inline-actions--stackable {
    flex-wrap: wrap;
}

.nexus-inline-actions--stackable .fr-btn {
    white-space: nowrap;
}

.nexus-table-clamp--wide {
    max-width: 24rem;
}

.nexus-table-stack {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.nexus-table-stack__item {
    display: block;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.nexus-table-scroll-shell--static {
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}

.nexus-controls-table-card .fr-table {
    overflow-x: visible;
}

.nexus-controls-table-card table {
    min-width: 0;
    width: 100%;
    table-layout: auto;
}

@media (max-width: 62em) {
    .nexus-simple-list-table .fr-table,
    .nexus-controls-table-card .fr-table {
        overflow-x: auto;
    }

    .nexus-controls-table-card table {
        min-width: 58rem;
    }
}


.nexus-auto-field {
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: rgba(232, 242, 252, 0.65);
    border: 1px solid rgba(0, 0, 145, 0.12);
}

.nexus-auto-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 145, 0.08);
    color: var(--text-title-grey);
    font-size: 0.75rem;
    font-weight: 700;
    vertical-align: middle;
}

.nexus-auto-field__input {
    background-color: rgba(255,255,255,0.94);
}

.nexus-key-value__span-2 {
    grid-column: 1 / -1;
}

.nexus-mini-timeline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nexus-mini-timeline__step {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,145,0.14);
    background: rgba(245, 245, 254, 0.9);
    color: var(--text-mention-grey);
    font-size: 0.78rem;
    font-weight: 700;
}

.nexus-mini-timeline__step--done {
    background: rgba(232, 242, 252, 0.95);
    border-color: rgba(0,0,145,0.22);
    color: var(--text-title-grey);
}

.nexus-mini-timeline__step--current {
    box-shadow: inset 0 0 0 2px rgba(0,0,145,0.18);
}


.nexus-checkbox-group-visible {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.nexus-checkbox-group-visible input[type="checkbox"] {
    position: static;
    opacity: 1;
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
    margin: 0.2rem 0 0;
    accent-color: var(--border-action-high-blue-france);
}

.nexus-checkbox-group-visible input[type="checkbox"] + label {
    margin-left: 0;
    padding: 0;
    display: block;
    cursor: pointer;
}

.nexus-checkbox-group-visible input[type="checkbox"] + label::before {
    display: none;
}


.nexus-native-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 0.75rem;
}

.nexus-native-choice input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    appearance: auto !important;
    position: static !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
    min-width: 1.125rem !important;
    margin: 0.2rem 0 0 !important;
    padding: 0 !important;
    accent-color: var(--border-action-high-blue-france);
}

.nexus-native-choice__label {
    display: block;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.nexus-native-choice__label::before,
.nexus-native-choice__label::after {
    display: none !important;
    content: none !important;
}


/* Ajustements refonte progressive : accueil plus sobre et recherche sans double loupe. */
.nexus-home-hero--compact {
    padding: 2rem;
}

.nexus-home-kpi-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nexus-home-kpi-grid--compact .nexus-home-kpi-card {
    min-height: auto;
}

.nexus-home-feed {
    display: grid;
    gap: 0.75rem;
}

.nexus-home-feed__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--nexus-border);
}

.nexus-home-feed__item:last-child {
    border-bottom: 0;
}

.nexus-home-feed__item a,
.nexus-home-feed__item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.nexus-global-search__input {
    padding-left: 1rem;
    padding-right: 0.75rem;
}

.nexus-global-search__submit {
    width: auto;
    min-width: auto;
    height: auto;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}

@media (max-width: 48em) {
    .nexus-home-kpi-grid--compact {
        grid-template-columns: 1fr;
    }

    .nexus-home-feed__item {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .nexus-global-search__field {
        border-radius: 1rem;
        align-items: stretch;
    }

    .nexus-global-search__submit {
        margin-left: 0;
    }
}

/* Menu agent et profil personnel */
.fr-header__body-row {
    align-items: center;
}

.fr-header__tools {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    margin-left: auto;
}

.nexus-agent-menu {
    position: relative;
    display: inline-block;
    width: auto;
    margin-left: auto;
}

.nexus-agent-menu__summary {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: min(22rem, calc(100vw - 2rem));
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
    border: 1px solid var(--nexus-border);
    border-radius: 999px;
    padding: 0.35rem 0.7rem 0.35rem 0.35rem;
    background: var(--background-default-grey);
}

.nexus-agent-menu__summary::-webkit-details-marker {
    display: none;
}

.nexus-agent-menu__identity {
    display: block;
    min-width: 0;
    line-height: 1.2;
    text-align: left;
}

.nexus-agent-menu__identity strong {
    display: block;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nexus-agent-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 30;
    min-width: 13rem;
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--nexus-border);
    border-radius: 1rem;
    background: var(--background-default-grey);
    box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 12%);
}

.nexus-agent-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--background-alt-blue-france);
    color: var(--text-action-high-blue-france);
    font-weight: 700;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.nexus-agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nexus-agent-avatar--sm {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.8rem;
}

.nexus-profile-card {
    text-align: center;
}

.nexus-profile-card__avatar {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-alt-blue-france);
    color: var(--text-action-high-blue-france);
    font-size: 2rem;
    font-weight: 700;
}

.nexus-profile-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nexus-hidden-option {
    display: none;
}

@media (max-width: 48em) {
    .nexus-agent-menu__identity {
        display: none;
    }

    .nexus-agent-menu__panel {
        right: -0.5rem;
    }
}

.nexus-inline-card {
    border: 1px solid var(--nexus-border);
    border-radius: 0.75rem;
    background: var(--background-default-grey);
}

/* Version 0.9.7 — navigation minimaliste et recherche compacte */
.nexus-nav-layout--compact {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.nexus-nav-main-list {
    flex: 1 1 auto;
}

.nexus-global-search--collapsed {
    flex: 0 0 auto;
    padding-bottom: 0;
    position: relative;
}

.nexus-global-search__details {
    position: relative;
}

.nexus-global-search__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--nexus-border);
    border-radius: 999px;
    background: var(--background-default-grey);
    color: var(--text-action-high-blue-france);
    cursor: pointer;
    list-style: none;
}

.nexus-global-search__toggle::-webkit-details-marker {
    display: none;
}

.nexus-global-search__details[open] .nexus-global-search__toggle {
    background: var(--background-action-low-blue-france);
}

.nexus-global-search--collapsed .nexus-global-search__form {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 35;
    width: min(34rem, calc(100vw - 2rem));
}

.nexus-global-search--collapsed .nexus-global-search__field {
    min-width: 0;
    width: 100%;
}

.nexus-global-search--collapsed .nexus-global-search__input {
    padding-left: 1rem;
}

.nexus-global-search--collapsed .nexus-global-search__submit {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    margin: 0.25rem;
}

.nexus-agent-menu__panel {
    min-width: 14rem;
}

.nexus-agent-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-default-grey);
}

.nexus-agent-menu__link:hover,
.nexus-agent-menu__link:focus {
    color: var(--text-action-high-blue-france);
}

.nexus-notification-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    min-height: 1.5rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: var(--background-action-high-blue-france);
    color: var(--text-inverted-blue-france);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.nexus-notification-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.nexus-home-section-heading--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nexus-callout-compact .fr-callout__title {
    white-space: normal;
}

@media (max-width: 48em) {
    .nexus-nav-layout--compact {
        flex-wrap: wrap;
    }

    .nexus-global-search--collapsed .nexus-global-search__form {
        right: auto;
        left: 0;
        width: calc(100vw - 2rem);
    }
}

/* Version 0.9.8 — corrections visuelles recherche/avatar */
.nexus-icon-search {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
    flex: 0 0 auto;
}

.nexus-agent-avatar img + span,
.nexus-profile-card__avatar img + span {
    display: none;
}

.nexus-global-search__toggle,
.nexus-global-search__submit {
    box-shadow: none;
}

.nexus-global-search__submit.fr-btn,
.nexus-global-search__submit.fr-btn--secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-image: none;
}

.nexus-search-minimal__topline,
.nexus-advanced-search__actions,
.nexus-home-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nexus-search-minimal__topline {
    justify-content: space-between;
}

.nexus-home-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--nexus-border);
    border-radius: 1rem;
    background: rgba(255,255,255,.78);
}

.nexus-home-notice__count {
    min-width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: var(--background-action-low-blue-france);
    color: var(--text-action-high-blue-france);
}

.nexus-advanced-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: .5rem 1rem;
}

.nexus-referentiel-list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--nexus-border);
}

.nexus-referentiel-list-card:last-child {
    border-bottom: 0;
}

@media (max-width: 48em) {
    .nexus-search-minimal__topline,
    .nexus-advanced-search__actions,
    .nexus-home-notice {
        align-items: stretch;
    }
}

/* Version 0.9.9 — référentiels métier plus sobres */
.nexus-page-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.nexus-ref-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem;
}

.nexus-ref-dashboard__item {
    padding: 1rem;
    border: 1px solid var(--nexus-border);
    border-radius: 1rem;
    background: rgba(255,255,255,.82);
}

.nexus-ref-dashboard__item strong {
    display: block;
    font-size: 1.65rem;
    line-height: 1.15;
}

.nexus-ref-dashboard__item span {
    color: var(--text-mention-grey);
    font-size: .875rem;
}

.nexus-inline-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.nexus-inline-search .fr-input {
    min-width: min(18rem, 70vw);
}

.nexus-disclosure {
    position: relative;
}

.nexus-disclosure > summary {
    list-style: none;
    cursor: pointer;
}

.nexus-disclosure > summary::-webkit-details-marker {
    display: none;
}

.nexus-disclosure__panel {
    margin-top: .75rem;
    padding: 1rem;
    border: 1px solid var(--nexus-border);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .5rem 1.5rem rgba(0,0,18,.08);
    z-index: 5;
}

.nexus-disclosure__panel--right {
    min-width: min(28rem, calc(100vw - 2rem));
}

@media (min-width: 48em) {
    .nexus-disclosure--floating .nexus-disclosure__panel--right {
        position: absolute;
        right: 0;
        top: 100%;
    }
}

.nexus-ref-actions {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    flex-wrap: wrap;
}

.nexus-value-list {
    display: grid;
    gap: .75rem;
}

.nexus-value-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: .75rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--nexus-border);
}

.nexus-value-row:last-child {
    border-bottom: 0;
}

.nexus-value-row__actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nexus-value-row__edit .nexus-disclosure__panel {
    min-width: min(42rem, calc(100vw - 2rem));
}

@media (max-width: 62em) {
    .nexus-value-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .nexus-value-row__actions {
        justify-content: flex-start;
    }
}

/* Version 0.9.10 — finitions icônes et recherche avancée neutre */
.nexus-inline-icon {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
    flex: 0 0 auto;
}

.nexus-button-with-icon {
    display: inline-flex !important;
    align-items: center;
    gap: .4rem;
    background-image: none !important;
}

.nexus-icon-button {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    padding: 0;
    border: 1px solid var(--nexus-border);
    border-radius: 999px;
    background: #fff;
    color: var(--text-action-high-blue-france);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.nexus-icon-button:hover,
.nexus-icon-button:focus {
    background: var(--background-action-low-blue-france);
    border-color: var(--border-action-high-blue-france);
    transform: translateY(-1px);
}

.nexus-icon-button--secondary {
    background: var(--background-action-low-blue-france);
    border-color: transparent;
}

.nexus-icon-button--primary {
    background: var(--background-action-high-blue-france);
    border-color: var(--background-action-high-blue-france);
    color: var(--text-inverted-blue-france);
}

.nexus-icon-button--primary:hover,
.nexus-icon-button--primary:focus {
    background: var(--background-action-high-blue-france-hover);
    color: var(--text-inverted-blue-france);
}

.nexus-icon-button--danger {
    color: var(--text-default-error);
}

.nexus-icon-button--danger:hover,
.nexus-icon-button--danger:focus {
    background: var(--background-contrast-error);
    border-color: var(--border-plain-error);
}

.nexus-icon-actions,
.nexus-value-row__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
    flex-wrap: wrap;
}

.nexus-icon-actions form,
.nexus-value-row__actions form {
    margin: 0;
}

.nexus-inline-search .nexus-icon-button {
    flex: 0 0 auto;
}

.nexus-disclosure__panel {
    min-width: min(38rem, calc(100vw - 2rem));
}

.nexus-disclosure__panel--right {
    min-width: min(34rem, calc(100vw - 2rem));
}

.nexus-value-row__edit .nexus-disclosure__panel {
    min-width: min(52rem, calc(100vw - 2rem));
}

.nexus-global-search__submit.nexus-icon-button {
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    margin: .25rem;
}

.nexus-global-search__toggle {
    background-image: none !important;
}

/* Version 0.9.11 — harmonisation des écrans d'administration */
.nexus-admin-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    flex-wrap: wrap;
}

.nexus-admin-filter .fr-input,
.nexus-admin-filter .fr-select {
    min-width: min(12rem, 80vw);
    width: auto;
}

.nexus-admin-filter .fr-input[type="search"] {
    min-width: min(16rem, 80vw);
}

.nexus-admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: .75rem;
}

.nexus-admin-menu-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid var(--nexus-border);
    border-radius: 1rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.nexus-admin-menu-card:hover,
.nexus-admin-menu-card:focus {
    background: var(--background-action-low-blue-france);
    border-color: var(--border-action-high-blue-france);
    transform: translateY(-1px);
}

.nexus-admin-menu-card strong,
.nexus-admin-menu-card small {
    display: block;
}

.nexus-admin-menu-card small {
    color: var(--text-mention-grey);
    margin-top: .15rem;
}

@media (max-width: 62em) {
    .nexus-admin-filter {
        justify-content: flex-start;
        width: 100%;
    }

    .nexus-admin-filter .fr-input,
    .nexus-admin-filter .fr-select {
        width: 100%;
    }
}


/* Version 0.9.12 — finitions navigation, administration et connexion */
.nexus-login-main--centered {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: clamp(2.5rem, 7vw, 5rem);
}

.nexus-login-panel {
    width: min(100%, 34rem);
    margin: 0 auto;
}

.nexus-login-heading {
    text-align: center;
}

.nexus-login-legend {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}

.nexus-login-submit {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.nexus-login-submit .fr-btn {
    min-width: 12rem;
    justify-content: center;
}

.nexus-admin-menu-grid--standalone {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.nexus-admin-menu-grid--standalone .nexus-admin-menu-card {
    min-height: 6rem;
    padding: 1.25rem;
}

.nexus-admin-table-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.nexus-admin-table-toolbar > .fr-link {
    margin-left: auto;
}

.nexus-admin-table-toolbar .nexus-admin-filter {
    flex: 1 1 auto;
    justify-content: flex-start;
}

.nexus-admin-filter--wide {
    display: grid;
    grid-template-columns: minmax(14rem, 1.6fr) repeat(4, minmax(9.5rem, 1fr)) auto auto;
    align-items: center;
    width: 100%;
}

.nexus-admin-filter--wide .fr-input,
.nexus-admin-filter--wide .fr-select {
    width: 100%;
    min-width: 0;
}

.nexus-admin-filter--wide .nexus-icon-button,
.nexus-admin-filter--wide .fr-link {
    align-self: center;
}

@media (max-width: 75em) {
    .nexus-admin-filter--wide {
        grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto;
    }
}

@media (max-width: 48em) {
    .nexus-admin-filter--wide {
        grid-template-columns: 1fr;
    }

    .nexus-admin-filter--wide .nexus-icon-button,
    .nexus-admin-filter--wide .fr-link {
        justify-self: start;
    }
}

/* Version 0.9.13 — socle modules et questionnaires métier */
.nexus-nav-dropdown {
    position: relative;
}

.nexus-nav-dropdown details {
    position: relative;
}

.nexus-nav-dropdown__summary {
    list-style: none;
    cursor: pointer;
    background-image: none !important;
}

.nexus-nav-dropdown__summary::-webkit-details-marker {
    display: none;
}

.nexus-nav-dropdown__summary::after {
    content: "";
    width: .45rem;
    height: .45rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-.15rem);
    margin-left: .5rem;
    display: inline-block;
}

.nexus-nav-dropdown__panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + .25rem);
    left: 0;
    min-width: 15rem;
    padding: .5rem;
    border: 1px solid var(--nexus-border);
    border-radius: .85rem;
    background: #fff;
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .12);
}

.nexus-nav-dropdown__panel a,
.nexus-nav-dropdown__empty {
    display: block;
    padding: .55rem .65rem;
    border-radius: .6rem;
    color: var(--text-default-grey);
    text-decoration: none;
    font-size: .95rem;
}

.nexus-nav-dropdown__panel a:hover,
.nexus-nav-dropdown__panel a:focus {
    background: var(--background-action-low-blue-france);
    color: var(--text-action-high-blue-france);
}

.nexus-nav-dropdown__empty {
    color: var(--text-mention-grey);
}

.nexus-form-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.nexus-form-progress__item {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .75rem;
    border: 1px solid var(--nexus-border);
    border-radius: .9rem;
    background: #fff;
    color: var(--text-mention-grey);
}

.nexus-form-progress__item span,
.nexus-step-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--nexus-border);
    background: #fff;
    color: var(--text-action-high-blue-france);
    font-weight: 700;
    flex: 0 0 auto;
}

.nexus-form-progress__item--done,
.nexus-form-progress-item-done {
    color: var(--text-default-grey);
    border-color: var(--border-action-high-blue-france);
    background: var(--background-action-low-blue-france);
}

.nexus-form-progress__item--done span,
.nexus-form-progress-item-done span,
.nexus-step-circle {
    background: var(--background-action-high-blue-france);
    color: var(--text-inverted-blue-france);
    border-color: var(--background-action-high-blue-france);
}

.nexus-step-circle--sm {
    width: 1.75rem;
    height: 1.75rem;
    font-size: .8rem;
}

.nexus-form-step {
    max-width: 64rem;
    margin: 0 auto;
}

.nexus-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    flex-wrap: wrap;
}

.nexus-access-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1rem;
}

.nexus-access-card,
.nexus-volet-card,
.nexus-field-row {
    border: 1px solid var(--nexus-border);
    border-radius: 1rem;
    background: #fff;
}

.nexus-access-card {
    padding: 1rem;
}

.nexus-access-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.nexus-disclosure__panel--plain {
    position: static;
    box-shadow: none;
    border-radius: .75rem;
    margin-top: .5rem;
    min-width: auto;
}

.nexus-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nexus-chip-list li {
    padding: .35rem .6rem;
    border: 1px solid var(--nexus-border);
    border-radius: 999px;
    background: var(--background-alt-grey);
    font-size: .9rem;
}

.nexus-volet-card {
    height: 100%;
    padding: 1rem;
}

.nexus-volet-card .nexus-step-circle {
    margin-bottom: .75rem;
}

.nexus-question-field-panel {
    min-width: min(38rem, calc(100vw - 2rem));
}

.nexus-two-checkboxes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nexus-field-list {
    display: grid;
    gap: .75rem;
}

.nexus-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) auto auto;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1rem;
}

.nexus-field-row__title {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.nexus-field-row__badges {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nexus-volet-list {
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: .5rem;
}

.nexus-volet-list li {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.nexus-volet-list span {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--background-action-low-blue-france);
    color: var(--text-action-high-blue-france);
    font-weight: 700;
}

@media (max-width: 48em) {
    .nexus-form-progress {
        grid-template-columns: 1fr 1fr;
    }

    .nexus-field-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .nexus-field-row__badges,
    .nexus-field-row .nexus-icon-actions {
        justify-content: flex-start;
    }

    .nexus-nav-dropdown__panel {
        position: static;
        box-shadow: none;
        margin: .25rem 0 .5rem;
    }
}

.nexus-hidden {
    display: none !important;
}

.nexus-question-builder {
    display: grid;
    gap: 1.25rem;
}

.nexus-question-volet {
    border: 1px solid var(--nexus-border);
    border-radius: 1.15rem;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 .35rem 1.2rem rgba(0, 0, 0, .035);
}

.nexus-question-volet__header {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
}

.nexus-question-preview {
    display: grid;
    gap: .85rem;
}

.nexus-question-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid var(--nexus-border);
    border-radius: 1rem;
    background: var(--background-alt-grey);
    padding: 1rem;
}

.nexus-question-field--paused {
    opacity: .7;
}

.nexus-question-field--historic {
    opacity: .65;
    background: #fff7e8;
}

.nexus-question-field__handle {
    display: grid;
    gap: .22rem;
    padding-top: .4rem;
    width: 1rem;
}

.nexus-question-field__handle span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: var(--text-mention-grey);
}

.nexus-question-field__body {
    min-width: 0;
}

.nexus-question-field__title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .25rem;
}

.nexus-question-field__badges,
.nexus-question-field__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    justify-content: flex-end;
}

.nexus-question-field__actions {
    max-width: 8.75rem;
}

.nexus-question-preview-control .fr-input,
.nexus-question-preview-control .fr-select {
    background-color: #fff;
}

.nexus-preview-options {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    min-height: 2.5rem;
}

.nexus-preview-pill {
    border: 1px solid var(--nexus-border);
    border-radius: 999px;
    background: #fff;
    padding: .35rem .6rem;
    font-size: .9rem;
}

.nexus-add-field {
    margin-top: 1rem;
}

.nexus-add-field__button {
    list-style: none;
    cursor: pointer;
    min-height: 4.5rem;
    border: 1px dashed var(--border-action-high-blue-france);
    border-radius: 1rem;
    background: var(--background-action-low-blue-france);
    color: var(--text-action-high-blue-france);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    text-align: center;
}

.nexus-add-field__button::-webkit-details-marker,
.nexus-disclosure--inline-edit > summary::-webkit-details-marker {
    display: none;
}

.nexus-add-field__button span {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
}

.nexus-add-field__panel,
.nexus-question-edit-panel {
    border: 1px solid var(--nexus-border);
    border-radius: 1rem;
    background: #fff;
    padding: 1rem;
    margin-top: .75rem;
}

.nexus-disclosure--inline-edit {
    position: relative;
}

.nexus-disclosure--inline-edit > summary {
    list-style: none;
}

.nexus-question-edit-panel {
    position: absolute;
    z-index: 25;
    right: 0;
    width: min(42rem, calc(100vw - 2rem));
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .14);
}

@media (max-width: 48em) {
    .nexus-question-field {
        grid-template-columns: 1fr;
    }

    .nexus-question-field__actions,
    .nexus-question-field__badges {
        justify-content: flex-start;
        max-width: none;
    }

    .nexus-question-edit-panel {
        position: static;
        width: 100%;
    }
}

/* Version 0.9.15 — prévisualisation questionnaires et constructeur plus direct */
.nexus-toggle-choice {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 2.5rem;
    padding: .5rem .75rem;
    border: 1px solid var(--nexus-border);
    border-radius: .75rem;
    background: #fff;
    cursor: pointer;
    user-select: none;
}

.nexus-toggle-choice input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    accent-color: var(--background-action-high-blue-france);
}

.nexus-toggle-choice span {
    font-weight: 600;
}

.nexus-question-field__handle {
    border: 0;
    background: transparent;
    cursor: grab;
    display: grid;
    gap: .22rem;
    padding: .65rem .25rem;
    width: 1.4rem;
    color: var(--text-mention-grey);
}

.nexus-question-field__handle:active {
    cursor: grabbing;
}

.nexus-question-field__handle span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.nexus-question-field--dragging {
    opacity: .55;
    outline: 2px dashed var(--border-action-high-blue-france);
}

.nexus-preview-options--stacked {
    align-items: stretch;
    flex-direction: column;
}

.nexus-preview-choice {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    width: fit-content;
    min-height: 2rem;
    padding: .3rem .55rem;
    border: 1px solid var(--nexus-border);
    border-radius: .7rem;
    background: #fff;
}

.nexus-preview-choice input {
    margin: 0;
}

.nexus-preview-tabs {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.nexus-preview-shell,
.nexus-pdf-preview__page {
    border: 1px solid var(--nexus-border);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .045);
}

.nexus-preview-shell {
    padding: 1.25rem;
}

.nexus-preview-shell__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid var(--nexus-border);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.nexus-runtime-progress {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.nexus-runtime-progress__item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem;
    border: 1px solid var(--nexus-border);
    border-radius: .9rem;
    background: var(--background-alt-grey);
}

.nexus-runtime-progress__item span {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--nexus-border);
    font-weight: 700;
}

.nexus-runtime-progress__item--current,
.nexus-runtime-progress-item-current {
    background: var(--background-action-low-blue-france);
    border-color: var(--border-action-high-blue-france);
}

.nexus-runtime-progress-item-done {
    background: var(--background-alt-grey);
    border-color: var(--border-action-high-blue-france);
}

.nexus-runtime-progress-item-done span {
    background: var(--background-action-high-blue-france);
    color: var(--text-inverted-blue-france);
    border-color: var(--background-action-high-blue-france);
}

.nexus-runtime-volet {
    padding: 1rem 0;
    border-top: 1px solid var(--nexus-border);
}

.nexus-runtime-volet:first-of-type {
    border-top: 0;
}

.nexus-runtime-volet__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.nexus-runtime-fields {
    display: grid;
    gap: 1rem;
}

.nexus-runtime-field {
    padding: 1rem;
    border: 1px solid var(--nexus-border);
    border-radius: 1rem;
    background: var(--background-alt-grey);
}

.nexus-pdf-preview {
    display: flex;
    justify-content: center;
}

.nexus-pdf-preview__page {
    width: min(52rem, 100%);
    padding: 2rem;
}

.nexus-pdf-preview__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 2px solid var(--text-title-grey);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.nexus-pdf-preview__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: .75rem;
    margin: 0 0 1.25rem;
}

.nexus-pdf-preview__meta div {
    border: 1px solid var(--nexus-border);
    border-radius: .75rem;
    padding: .65rem;
}

.nexus-pdf-preview__meta dt {
    color: var(--text-mention-grey);
    font-size: .82rem;
}

.nexus-pdf-preview__meta dd {
    margin: 0;
    font-weight: 700;
}

.nexus-pdf-preview__section {
    border-top: 1px solid var(--nexus-border);
    padding-top: 1rem;
    margin-top: 1rem;
}

.nexus-pdf-preview__field {
    display: grid;
    grid-template-columns: minmax(10rem, 16rem) 1fr;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--nexus-border);
}

@media (max-width: 48em) {
    .nexus-preview-shell__header,
    .nexus-pdf-preview__header,
    .nexus-pdf-preview__field {
        display: block;
    }

    .nexus-pdf-preview__page {
        padding: 1rem;
    }
}

/* Version 0.9.16 — aperçu formulaire/PDF et champs de structure */
.nexus-readonly-field {
    min-height: 2.75rem;
    border: 1px solid var(--nexus-border);
    border-radius: .75rem;
    background: var(--background-alt-grey);
    padding: .75rem 1rem;
    font-weight: 700;
}

.nexus-builder-title-block,
.nexus-runtime-field--title {
    border-left: .35rem solid var(--border-action-high-blue-france);
    background: #fff;
}

.nexus-builder-title-block {
    display: grid;
    gap: .25rem;
    padding: .85rem 1rem;
    border-radius: .85rem;
}

.nexus-builder-title-block strong,
.nexus-runtime-field--title h4 {
    color: var(--text-title-grey);
}

.nexus-builder-title-block span {
    color: var(--text-mention-grey);
    font-size: .92rem;
}

.nexus-preview-options--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    align-items: stretch;
    width: 100%;
}

.nexus-preview-options--grid .nexus-preview-choice {
    width: 100%;
    min-width: 0;
}

.nexus-multiselect-preview {
    position: relative;
    width: min(100%, 32rem);
}

.nexus-multiselect-preview > summary {
    list-style: none;
    cursor: pointer;
    min-height: 2.75rem;
    border: 1px solid var(--border-default-grey);
    border-radius: .25rem .25rem 0 0;
    background: #fff;
    padding: .75rem 2.5rem .75rem 1rem;
    color: var(--text-default-grey);
}

.nexus-multiselect-preview > summary::-webkit-details-marker {
    display: none;
}

.nexus-multiselect-preview > summary::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 1.05rem;
    width: .55rem;
    height: .55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.nexus-multiselect-preview[open] > summary::after {
    top: 1.25rem;
    transform: rotate(225deg);
}

.nexus-multiselect-preview > div {
    display: grid;
    gap: .45rem;
    max-height: 16rem;
    overflow: auto;
    border: 1px solid var(--nexus-border);
    border-top: 0;
    border-radius: 0 0 .75rem .75rem;
    background: #fff;
    padding: .75rem;
    box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .08);
}

.nexus-runtime-auto-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    border: 1px solid var(--nexus-border);
    border-radius: 1rem;
    background: var(--background-alt-grey);
    padding: 1rem;
}

.nexus-runtime-auto-block dl {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: .75rem;
    margin: 0;
}

.nexus-runtime-auto-block dt {
    color: var(--text-mention-grey);
    font-size: .82rem;
}

.nexus-runtime-auto-block dd {
    margin: 0;
    font-weight: 700;
}

.nexus-agent-popover-preview {
    position: relative;
    justify-self: end;
}

.nexus-agent-popover-preview > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--nexus-border);
    border-radius: 999px;
    background: #fff;
    padding: .25rem .75rem .25rem .25rem;
}

.nexus-agent-popover-preview > summary::-webkit-details-marker {
    display: none;
}

.nexus-agent-popover-preview > div {
    position: absolute;
    right: 0;
    z-index: 30;
    width: min(18rem, calc(100vw - 2rem));
    margin-top: .5rem;
    border: 1px solid var(--nexus-border);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .14);
    padding: 1rem;
}

.nexus-agent-popover-preview p {
    margin: 0 0 .75rem;
}

.nexus-runtime-history {
    border: 1px solid var(--nexus-border);
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
}

.nexus-runtime-history ol {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding-left: 1.25rem;
}

.nexus-runtime-history li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--nexus-border);
    padding-bottom: .45rem;
}

.nexus-pdf-preview__field--title,
.nexus-pdf-preview-field-title {
    display: block;
    border-bottom: 0;
    padding-top: 1rem;
}

.nexus-pdf-preview__title-block {
    border-left: .25rem solid #000;
    padding-left: .75rem;
}

.nexus-pdf-preview__title-block h4 {
    margin: 0 0 .25rem;
    font-size: 1.05rem;
}

.nexus-pdf-preview__title-block p {
    margin: 0;
    color: #555;
}

.nexus-pdf-answer {
    min-width: 0;
}

.nexus-pdf-line {
    display: block;
    min-height: 1.75rem;
    border-bottom: 1px solid #333;
    color: #777;
}

.nexus-pdf-box {
    display: block;
    min-height: 5.5rem;
    border: 1px solid #333;
    border-radius: .25rem;
    padding: .5rem;
    color: #777;
}

.nexus-pdf-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: .45rem .8rem;
}

.nexus-pdf-choices span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.nexus-pdf-choices i {
    width: .9rem;
    height: .9rem;
    border: 1.5px solid #000;
    display: inline-block;
    flex: 0 0 auto;
}

.nexus-pdf-choices--radio i {
    border-radius: 999px;
}

.nexus-pdf-choices b {
    font-weight: 500;
}

.nexus-pdf-attachments {
    margin: 0;
    padding-left: 1.25rem;
}

.nexus-pdf-history-row {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    gap: .75rem;
    padding: .45rem 0;
    border-bottom: 1px solid var(--nexus-border);
}

@media (max-width: 48em) {
    .nexus-runtime-auto-block,
    .nexus-runtime-history li,
    .nexus-pdf-history-row {
        display: block;
    }

    .nexus-agent-popover-preview {
        justify-self: start;
    }
}

/* Version 0.9.17 — traçabilité automatique des formulaires */
.nexus-runtime-flow {
    border: 1px solid var(--nexus-border);
    border-radius: 1rem;
    background: #fff;
    padding: 1rem;
}

.nexus-runtime-flow__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nexus-runtime-flow__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: .75rem;
}

.nexus-runtime-flow__grid > div,
.nexus-runtime-volet-auto > div {
    border: 1px solid var(--nexus-border);
    border-radius: .85rem;
    background: var(--background-alt-grey);
    padding: .75rem .9rem;
}

.nexus-runtime-flow__grid strong,
.nexus-runtime-volet-auto span {
    display: block;
    color: var(--text-mention-grey);
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.nexus-runtime-flow__grid p,
.nexus-runtime-flow__grid ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    color: var(--text-default-grey);
}

.nexus-runtime-flow__grid li + li {
    margin-top: .25rem;
}

.nexus-runtime-volet-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.nexus-runtime-volet-auto strong {
    display: block;
    font-size: .95rem;
}

.nexus-pdf-auto-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    margin: .5rem 0 .75rem;
}

.nexus-pdf-auto-row span {
    border: 1px solid #999;
    border-radius: .25rem;
    padding: .45rem .55rem;
    min-width: 0;
}

.nexus-pdf-auto-row em {
    color: #555;
    font-style: normal;
}

.nexus-advanced-families {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: .5rem 1rem;
}

@media (max-width: 48em) {
    .nexus-runtime-flow__header,
    .nexus-pdf-auto-row {
        display: block;
    }

    .nexus-pdf-auto-row span {
        display: block;
        margin-bottom: .5rem;
    }
}

/* Version 0.9.18 — champs limités par administration et option Autre */
.nexus-toggle-choice--wide {
    width: 100%;
    justify-content: flex-start;
}

.nexus-fieldset-card {
    display: grid;
    gap: .75rem;
    border: 1px solid var(--nexus-border);
    border-radius: 1rem;
    background: var(--background-alt-grey);
    padding: 1rem;
}

.nexus-fieldset-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.nexus-fieldset-card__header span {
    color: var(--text-mention-grey);
    font-size: .9rem;
}

.nexus-admin-scope-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: .5rem;
}

.nexus-other-preview-input {
    max-width: 22rem;
    background: #fff;
}

.nexus-preview-options--grid .nexus-other-preview-input {
    grid-column: 1 / -1;
}

.nexus-pdf-preview__field small {
    display: block;
    margin-top: .25rem;
    color: #555;
    font-size: .78rem;
    font-weight: 500;
}


/* Version 0.9.19 — finitions des aperçus de questionnaire */
.nexus-select-with-other-preview {
    display: grid;
    gap: .5rem;
}

.nexus-runtime-field--title {
    border-left-color: var(--border-action-high-blue-france);
    background: linear-gradient(90deg, rgba(0, 0, 145, .08), #fff 78%);
    border-radius: .9rem;
    padding: 1rem 1.1rem;
}

.nexus-runtime-field--title h4 {
    color: var(--text-action-high-blue-france);
}

.nexus-pdf-preview__title-block {
    border-left-color: var(--border-action-high-blue-france);
    background: rgba(0, 0, 145, .07);
    border-radius: .35rem;
    padding: .55rem .75rem .55rem 1rem;
}

.nexus-pdf-preview__title-block h4 {
    color: var(--text-action-high-blue-france);
}


/* Version 0.9.20 — indication des champs obligatoires */
.nexus-required-star {
    color: #ce0500;
    font-weight: 800;
    margin-left: .25rem;
    font-size: 1.05em;
    line-height: 1;
}

.nexus-required-star--pdf {
    margin-left: .15rem;
}

.nexus-required-note {
    color: var(--text-mention-grey);
}

.nexus-required-note span {
    color: #ce0500;
    font-weight: 800;
}

.nexus-required-note--pdf {
    margin: -.2rem 0 .9rem;
    font-size: .82rem;
}

.nexus-runtime-attachments-field {
    border: 1px dashed var(--border-default-grey);
    border-radius: 0.75rem;
    padding: 1rem;
    background: var(--background-alt-grey);
}

.nexus-attachment-list {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: var(--background-default-grey);
}

.nexus-attachment-list ul,
.nexus-runtime-attachments ul {
    margin: 0;
    padding-left: 1.25rem;
}

.nexus-runtime-attachments {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid var(--border-default-grey);
    border-radius: 1rem;
    padding: 1.25rem;
    background: var(--background-default-grey);
}

.nexus-runtime-attachments__body {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    min-width: min(100%, 22rem);
}

@media (max-width: 48em) {
    .nexus-runtime-attachments {
        flex-direction: column;
    }

    .nexus-runtime-attachments__body {
        align-items: flex-start;
        min-width: 0;
    }
}

.nexus-selected-files {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-default-grey);
    background: var(--background-alt-grey);
}

.nexus-selected-files ul {
    margin: 0;
    padding-left: 1.25rem;
}

.nexus-selected-files li,
.nexus-attachment-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nexus-file-remove {
    border: 0;
    background: transparent;
    color: var(--text-action-high-blue-france);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.875rem;
}

.nexus-attachment-existing {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-action-high-blue-france);
}

/* 0.9.28 — formulaire de renseignement : acheminement, timeline et saisie */
.nexus-runtime-progress {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 1rem 0 1.5rem;
}

.nexus-runtime-progress__item {
    position: relative;
    flex: 1 1 0;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: .35rem;
    padding: 0 .75rem;
    border: 0;
    background: transparent;
    color: var(--text-mention-grey);
    text-align: center;
}

.nexus-runtime-progress__item::before {
    content: "";
    position: absolute;
    top: 1rem;
    left: 0;
    width: 50%;
    height: 2px;
    background: var(--border-default-grey);
    z-index: 0;
}

.nexus-runtime-progress__item::after {
    content: "";
    position: absolute;
    top: 1rem;
    right: 0;
    width: 50%;
    height: 2px;
    background: var(--border-default-grey);
    z-index: 0;
}

.nexus-runtime-progress__item:first-child::before,
.nexus-runtime-progress__item:last-child::after {
    display: none;
}

.nexus-runtime-progress__item span {
    position: relative;
    z-index: 1;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: #fff;
    border: 2px solid var(--border-default-grey);
    color: var(--text-mention-grey);
}

.nexus-runtime-progress__item strong {
    font-size: .9rem;
    font-weight: 700;
}

.nexus-runtime-progress-item-current {
    color: var(--text-action-high-blue-france);
}

.nexus-runtime-progress-item-current span {
    background: var(--background-action-low-blue-france);
    border-color: var(--border-action-high-blue-france);
    color: var(--text-action-high-blue-france);
}

.nexus-runtime-progress-item-done {
    color: var(--text-default-grey);
}

.nexus-runtime-progress-item-done::before,
.nexus-runtime-progress-item-done::after {
    background: var(--border-action-high-blue-france);
}

.nexus-runtime-progress-item-done span {
    background: var(--background-action-high-blue-france);
    color: var(--text-inverted-blue-france);
    border-color: var(--background-action-high-blue-france);
}

.nexus-routing-picker .fr-select + .fr-label,
.nexus-routing-picker .fr-label + .fr-select {
    margin-top: .35rem;
}

.nexus-copy-directions {
    margin-top: .75rem;
}

.nexus-copy-directions[hidden],
.nexus-other-preview-input[hidden] {
    display: none !important;
}

.nexus-runtime-auto-block__agent dd {
    font-weight: 400;
}

.nexus-runtime-auto-block__agent .nexus-agent-popover-preview {
    justify-self: start;
}

.nexus-runtime-auto-block__agent .nexus-agent-popover-preview > summary {
    padding-right: .85rem;
}

@media (max-width: 48em) {
    .nexus-runtime-progress {
        align-items: flex-start;
    }

    .nexus-runtime-progress__item strong {
        font-size: .78rem;
    }
}

/* Version 0.9.29 — corrections du flux réel de renseignement */
.nexus-agent-popover-card h3 {
    margin: 0 0 .75rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--border-default-grey);
    color: var(--text-title-grey);
    font-size: 1rem;
}

.nexus-agent-popover-card dl {
    display: grid;
    gap: .65rem;
    margin: 0;
}

.nexus-agent-popover-card dl > div {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: .75rem;
    align-items: baseline;
}

.nexus-agent-popover-card dt {
    color: var(--text-mention-grey);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.nexus-agent-popover-card dd {
    margin: 0;
    font-weight: 600;
    color: var(--text-default-grey);
    overflow-wrap: anywhere;
}

.nexus-validation-summary ul {
    margin-bottom: 0;
}

.nexus-validation-summary li + li {
    margin-top: .25rem;
}

/* Version 0.9.30 — suivi des dossiers de renseignement */
.nexus-agent-popover-preview {
    position: relative;
}

.nexus-agent-popover-card {
    min-width: min(34rem, calc(100vw - 3rem));
    max-width: 40rem;
}

.nexus-agent-popover-card__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .85rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border-default-grey);
}

.nexus-agent-popover-card__header h3 {
    margin: 0;
    padding: 0;
    border: 0;
}

.nexus-agent-popover-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nexus-agent-popover-card dl > div {
    grid-template-columns: 7rem minmax(0, 1fr);
}

.nexus-runtime-history--timeline {
    overflow: visible;
}

.nexus-timeline--runtime {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem 0 0;
    overflow: visible;
}

.nexus-timeline--runtime .nexus-timeline__step {
    position: relative;
    min-width: 0;
    padding: 0 0 1rem 0;
    border-bottom: 1px solid var(--border-default-grey);
}

.nexus-timeline--runtime .nexus-timeline__step::before {
    content: "";
    position: absolute;
    top: 1.15rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-default-grey);
    z-index: 0;
}

.nexus-timeline--runtime .nexus-timeline__step:first-child::before {
    left: 1.1rem;
}

.nexus-timeline--runtime .nexus-timeline__step:last-child::before {
    right: 1.1rem;
}

.nexus-timeline--runtime .nexus-timeline-step-done::before,
.nexus-timeline--runtime .nexus-timeline__step--done::before {
    background: var(--border-action-high-blue-france);
}

.nexus-timeline--runtime .nexus-timeline__marker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    border: 2px solid var(--border-default-grey);
    background: #fff;
    color: var(--text-mention-grey);
    font-weight: 800;
    white-space: nowrap;
}

.nexus-timeline--runtime .nexus-timeline-step-done .nexus-timeline__marker,
.nexus-timeline--runtime .nexus-timeline__step--done .nexus-timeline__marker {
    background: var(--background-action-high-blue-france);
    border-color: var(--background-action-high-blue-france);
    color: var(--text-inverted-blue-france);
}

.nexus-timeline--runtime .nexus-timeline-step-current .nexus-timeline__marker {
    background: #fff;
    border-color: var(--border-action-high-blue-france);
    color: var(--text-action-high-blue-france);
}

.nexus-timeline--runtime .nexus-timeline__content {
    margin-top: .55rem;
}

.nexus-timeline--runtime .nexus-timeline__title {
    margin: 0 0 .25rem;
    font-weight: 700;
}

.nexus-timeline--runtime .nexus-timeline__date,
.nexus-timeline--runtime .nexus-timeline__hint {
    margin: .15rem 0;
    color: var(--text-mention-grey);
}

.nexus-step-dots {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .25rem;
}

.nexus-step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    border: 2px solid var(--border-default-grey);
    background: #fff;
    color: var(--text-mention-grey);
    font-size: .72rem;
    font-weight: 800;
}

.nexus-step-dot-current {
    border-color: var(--border-action-high-blue-france);
    color: var(--text-action-high-blue-france);
}

.nexus-step-dot-done {
    background: var(--background-action-high-blue-france);
    border-color: var(--background-action-high-blue-france);
    color: var(--text-inverted-blue-france);
}

.nexus-inline-form {
    display: inline-flex;
    margin: 0;
}

.nexus-filter-row {
    display: flex;
    align-items: end;
    gap: 1rem;
}

@media (max-width: 62em) {
    .nexus-timeline--runtime,
    .nexus-agent-popover-card dl {
        grid-template-columns: 1fr;
    }
}

/* Version 0.9.31 — suivi renseignements, timeline et actions */
.nexus-icon-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: .45rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nexus-table-actions .nexus-inline-form,
.nexus-icon-actions .nexus-inline-form {
    display: inline-flex;
    margin: 0;
}

.nexus-table-actions {
    min-width: 8.5rem;
}

.nexus-step-dots {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.nexus-step-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-default-grey);
    background: #fff;
    color: var(--text-mention-grey);
    font-weight: 700;
    font-size: .78rem;
}

.nexus-step-dot-current {
    border-color: var(--border-action-high-blue-france);
    color: var(--text-action-high-blue-france);
    background: var(--background-action-low-blue-france);
}

.nexus-step-dot-done {
    border-color: var(--border-action-high-blue-france);
    background: var(--background-action-high-blue-france);
    color: var(--text-inverted-blue-france);
}

.nexus-module-field-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
}

.nexus-advanced-modules {
    max-height: 18rem;
    overflow: auto;
}

.nexus-runtime-history--timeline {
    overflow: visible;
}

.nexus-timeline--runtime {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.nexus-timeline--runtime .nexus-timeline__step {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .75rem;
    min-width: 0;
}

.nexus-timeline--runtime .nexus-timeline__step:not(:last-child)::after {
    top: 1.1rem;
    left: 2.25rem;
    width: calc(100% - 2.25rem);
    height: 2px;
}

.nexus-timeline--runtime .nexus-timeline__marker {
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: .82rem;
}

.nexus-timeline--runtime .nexus-timeline__title {
    line-height: 1.25;
}

.nexus-timeline--runtime .nexus-timeline__hint {
    overflow-wrap: anywhere;
}

.nexus-agent-popover-preview > div,
.nexus-agent-popover-card {
    width: min(34rem, calc(100vw - 3rem));
    max-width: 34rem;
}

.nexus-agent-popover-preview > div {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.nexus-agent-popover-card__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.nexus-agent-popover-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem 1rem;
    margin: 0;
}

.nexus-agent-popover-card dt {
    color: var(--text-mention-grey);
    font-size: .78rem;
}

.nexus-agent-popover-card dd {
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 62em) {
    .nexus-timeline--runtime {
        grid-template-columns: 1fr;
    }

    .nexus-timeline--runtime .nexus-timeline__step:not(:last-child)::after {
        top: 2.35rem;
        left: 1.15rem;
        width: 2px;
        height: calc(100% - 1rem);
    }
}

@media (max-width: 48em) {
    .nexus-icon-actions {
        flex-wrap: wrap;
    }

    .nexus-agent-popover-preview > div {
        left: 0;
        transform: none;
    }

    .nexus-agent-popover-card dl {
        grid-template-columns: 1fr;
    }
}

@media print {
    .fr-header,
    .fr-footer,
    .nexus-form-actions,
    .nexus-global-search,
    .nexus-navigation,
    .nexus-runtime-attachments .fr-btn,
    button {
        display: none !important;
    }

    .nexus-section-card,
    .nexus-runtime-flow,
    .nexus-runtime-history,
    .nexus-runtime-auto-block,
    .nexus-runtime-attachments {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
}

/* Version 0.9.32 — corrections BTI/renseignements : PDF, timeline, filtres et navigation */
.nexus-nav-main-list > .fr-nav__item > .fr-nav__link,
.nexus-nav-dropdown__summary {
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    min-width: max-content;
}

.nexus-nav-admin .fr-nav__link {
    min-width: 8.8rem;
    text-align: center;
}

.nexus-timeline--runtime {
    align-items: start;
}

.nexus-timeline--runtime .nexus-timeline__step {
    display: block;
    text-align: center;
    min-width: 0;
}

.nexus-timeline--runtime .nexus-timeline__marker {
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.nexus-timeline--runtime .nexus-timeline__content {
    margin-top: 1rem;
    padding-top: .75rem;
    min-height: 6rem;
}

.nexus-timeline--runtime .nexus-timeline__step:not(:last-child)::after {
    top: 1.15rem;
    left: calc(50% + 1.2rem);
    width: calc(100% - 2.4rem);
    height: 2px;
}

.nexus-field-filter-select {
    width: 100%;
    background: #fff;
}

.nexus-field-filter-select summary {
    min-height: 2.5rem;
    align-items: center;
}

.nexus-advanced-modules,
.nexus-advanced-families,
.nexus-advanced-columns {
    min-width: 0;
}

.nexus-advanced-modules__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: .5rem 1rem;
    min-width: 0;
}

.nexus-advanced-modules .fr-checkbox-group,
.nexus-advanced-families .fr-checkbox-group,
.nexus-advanced-columns .fr-checkbox-group {
    min-width: 0;
}

.nexus-advanced-modules .fr-label,
.nexus-advanced-families .fr-label,
.nexus-advanced-columns .fr-label {
    overflow-wrap: anywhere;
}

@media (max-width: 62em) {
    .nexus-timeline--runtime .nexus-timeline__step {
        display: grid;
        grid-template-columns: 2.5rem minmax(0, 1fr);
        text-align: left;
    }

    .nexus-timeline--runtime .nexus-timeline__marker {
        margin: 0;
    }

    .nexus-timeline--runtime .nexus-timeline__content {
        margin-top: 0;
        padding-top: .1rem;
        min-height: 0;
    }

    .nexus-timeline--runtime .nexus-timeline__step:not(:last-child)::after {
        top: 2.35rem;
        left: 1.15rem;
        width: 2px;
        height: calc(100% - 1rem);
    }
}

/* Version 0.9.33 — filtres métiers BTI/renseignements et export Excel ciblé */
.nexus-disclosure--wide {
    display: block;
}

.nexus-export-columns-form {
    max-width: 100%;
}

.nexus-export-columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: .75rem;
}

.nexus-export-choice {
    align-items: flex-start;
}

.nexus-export-choice span {
    display: grid;
    gap: .15rem;
}

.nexus-export-choice small {
    color: var(--text-mention-grey);
    font-size: .78rem;
}

.nexus-module-field-filters-by-volet + .nexus-module-field-filters-by-volet {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--nexus-border);
}

.nexus-field-filter-volet-title {
    position: sticky;
    top: .5rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    margin: 0 0 .9rem;
    padding: .35rem .75rem;
    border: 1px solid var(--border-action-low-blue-france);
    border-radius: 999px;
    background: var(--background-action-low-blue-france);
    color: var(--text-action-high-blue-france);
    font-size: .92rem;
    font-weight: 700;
}

.nexus-field-filter {
    min-width: 0;
}

.nexus-date-filter-pair,
.nexus-range-filter__numbers,
.nexus-range-filter__sliders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.nexus-range-filter {
    display: grid;
    gap: .55rem;
}

.nexus-range-filter__sliders input[type="range"] {
    width: 100%;
}

@media (max-width: 48em) {
    .nexus-date-filter-pair,
    .nexus-range-filter__numbers,
    .nexus-range-filter__sliders {
        grid-template-columns: 1fr;
    }
}

/* Nexus 0.9.34 - export renseignements */
.nexus-export-columns-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* Nexus 0.9.35 — alignements renseignements et actions conditionnelles */
.nexus-runtime-auto-block dt,
.nexus-agent-popover-card dt {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.nexus-agent-popover-card dl > div {
  grid-template-columns: minmax(7.8rem, auto) minmax(0, 1fr);
}

.nexus-runtime-auto-block dl > div {
  min-width: 0;
}

.nexus-runtime-auto-block dd,
.nexus-agent-popover-card dd {
  min-width: 0;
}

/* Nexus 0.9.36 — visibilité brouillons, filtres métiers et export Excel */
.nexus-export-bar {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .75rem;
}

.nexus-export-bar > .nexus-disclosure {
  margin: 0;
  min-width: min(100%, 18rem);
  flex: 1 1 18rem;
}

.nexus-agent-popover-card dl {
  grid-template-columns: 1fr;
}

.nexus-agent-popover-card dl > div {
  grid-template-columns: minmax(10.25rem, max-content) minmax(0, 1fr);
  gap: .9rem;
}

.nexus-agent-popover-card dt {
  min-width: 10.25rem;
}

@media (max-width: 48em) {
  .nexus-agent-popover-card dl > div {
    grid-template-columns: 1fr;
    gap: .2rem;
  }

  .nexus-agent-popover-card dt {
    min-width: 0;
  }
}

/* Contrôles conjoints — cascade administration/direction */
.nexus-cascade-list {
  margin: 0;
  padding: 0;
  border: 0;
}

.nexus-cascade-list__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nexus-cascade-list__item {
  padding: 1rem;
  border: 1px solid var(--border-default-grey, #ddd);
  background: var(--background-alt-grey, #f6f6f6);
}

.nexus-cascade-list__details {
  margin-top: 1.75rem;
}

.nexus-cascade-list__remove-cell {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.nexus-cascade-list__remove[hidden] {
  display: none !important;
}

.nexus-cascade-list option[hidden],
.nexus-cascade-list .nexus-preview-choice[hidden] {
  display: none !important;
}

/* Annuaire informations */
.nexus-annuaire-direction {
  border-top: 1px solid #e5e5e5;
  padding-top: 1.5rem;
}

.nexus-annuaire-card {
  height: 100%;
  padding: 1.25rem;
  border: 1px solid #e5e5e5;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.nexus-annuaire-card__header {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1rem;
}

.nexus-annuaire-card__details {
  margin: 0;
  display: grid;
  gap: .55rem;
}

.nexus-annuaire-card__details > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 40%) 1fr;
  gap: .75rem;
}

.nexus-annuaire-card__details dt {
  color: #666;
  font-size: .875rem;
}

.nexus-annuaire-card__details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Version 0.10.9 — teinte Nexus verte et accueil opérationnel */
:root,
[data-fr-theme="light"] {
  --nexus-green: #00875a;
  --nexus-green-dark: #006b49;
  --nexus-green-soft: #e5f6ee;
  --nexus-green-border: #58b98d;
  --text-action-high-blue-france: var(--nexus-green-dark);
  --text-title-blue-france: var(--nexus-green-dark);
  --text-inverted-blue-france: #ffffff;
  --border-action-high-blue-france: var(--nexus-green);
  --border-action-low-blue-france: #b9e2cf;
  --background-action-high-blue-france: var(--nexus-green);
  --background-action-high-blue-france-hover: #00704c;
  --background-action-high-blue-france-active: #005b3e;
  --background-action-low-blue-france: var(--nexus-green-soft);
  --background-alt-blue-france: #eefaf4;
  --background-contrast-blue-france: #d9f1e7;
  --background-open-blue-france: #f4fbf7;
}

.nexus-home-v2__hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.75rem;
  border: 1px solid var(--nexus-border, #e5e5e5);
  background: linear-gradient(135deg, #f8fffb 0%, #edf8f2 54%, #fff 100%);
  box-shadow: 0 10px 26px rgba(0, 97, 65, .08);
}

.nexus-home-v2__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.nexus-home-stat-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .65rem 1rem;
  min-height: 9rem;
  padding: 1.25rem;
  border: 1px solid var(--nexus-border, #e5e5e5);
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 97, 65, .06);
}

.nexus-home-stat-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.nexus-home-stat-card__value {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  color: var(--nexus-green-dark);
  font-variant-numeric: tabular-nums;
}

.nexus-home-stat-card__label {
  grid-column: 1 / -1;
  font-size: 1rem;
}

.nexus-home-stat-card__hint {
  grid-column: 1 / -1;
  color: var(--text-mention-grey);
  font-size: .9rem;
}

.nexus-home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--nexus-green-border);
  background: var(--nexus-green-soft);
  color: var(--nexus-green-dark);
  font-weight: 800;
  letter-spacing: .02em;
}

.nexus-home-icon--large {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
}

.nexus-home-v2__panel {
  border-radius: 0;
  box-shadow: 0 8px 18px rgba(0, 97, 65, .05);
}

.nexus-home-chart {
  min-height: 16rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: .6rem;
  padding: 1rem 0 .25rem;
  border-bottom: 1px solid var(--nexus-border, #ddd);
}

.nexus-home-chart__month {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
  height: 15rem;
}

.nexus-home-chart__bar {
  width: min(2rem, 80%);
  min-height: .35rem;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  overflow: hidden;
  background: #edf1ef;
  border: 1px solid #d8e3dd;
}

.nexus-home-chart__segment {
  display: block;
  width: 100%;
  min-height: .25rem;
}

.nexus-home-chart__segment--bti,
.nexus-home-chart__dot--bti { background: #006b49; }
.nexus-home-chart__segment--fiche,
.nexus-home-chart__dot--fiche { background: #39a96b; }
.nexus-home-chart__segment--controle,
.nexus-home-chart__dot--controle { background: #9a6b00; }
.nexus-home-chart__segment--renseignement,
.nexus-home-chart__dot--renseignement { background: #2d6cdf; }

.nexus-home-chart__label {
  font-size: .78rem;
  color: var(--text-mention-grey);
  white-space: nowrap;
}

.nexus-home-chart__legend {
  display: flex;
  gap: .8rem 1rem;
  flex-wrap: wrap;
  color: var(--text-mention-grey);
  font-size: .875rem;
}

.nexus-home-chart__legend span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.nexus-home-chart__dot {
  display: inline-block;
  width: .65rem;
  height: .65rem;
}

.nexus-home-dossier-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: .75rem;
}

.nexus-home-dossier {
  display: grid;
  gap: .35rem;
  padding: 1rem;
  border: 1px solid var(--nexus-border, #e5e5e5);
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.nexus-home-dossier:hover,
.nexus-home-shortcut:hover,
.nexus-home-stat-card:hover {
  border-color: var(--nexus-green);
  box-shadow: 0 10px 24px rgba(0, 97, 65, .10);
}

.nexus-home-dossier__type {
  color: var(--text-mention-grey);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nexus-home-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: .85rem;
}

.nexus-home-shortcut {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 6rem;
  padding: 1rem;
  border: 1px solid var(--nexus-border, #e5e5e5);
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.nexus-home-shortcut strong,
.nexus-home-shortcut small {
  display: block;
}

.nexus-home-shortcut small {
  color: var(--text-mention-grey);
}

.nexus-empty-state--compact {
  padding: 1rem;
}

.nexus-annuaire-filters {
  border-radius: 0;
}

.nexus-annuaire-card {
  border-radius: 0;
}

@media (max-width: 62em) {
  .nexus-home-v2__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nexus-home-chart {
    overflow-x: auto;
    grid-template-columns: repeat(12, minmax(3rem, 1fr));
  }
}

@media (max-width: 48em) {
  .nexus-home-v2__stats {
    grid-template-columns: 1fr;
  }

  .nexus-home-v2__hero {
    align-items: stretch;
  }
}

/* Informations — Échos */
.nexus-echo-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 100%;
}

.nexus-echo-stat-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--nexus-green-soft, #e4f4ec);
    color: var(--nexus-green, #007a4d);
    flex: 0 0 auto;
}

.nexus-echo-stat-card__icon svg,
.nexus-echo-vote-button svg {
    width: 1.35rem;
    height: 1.35rem;
}

.nexus-echo-composer,
.nexus-echo-filters,
.nexus-echo-card {
    border: 1px solid var(--border-default-grey);
}

.nexus-echo-feed {
    display: grid;
    gap: 1rem;
}

.nexus-echo-card {
    position: relative;
}

.nexus-echo-card__header,
.nexus-echo-card__footer,
.nexus-echo-votes {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.nexus-echo-card__header {
    align-items: flex-start;
}

.nexus-echo-card__footer {
    justify-content: space-between;
    border-top: 1px solid var(--border-default-grey);
    padding-top: 1rem;
}

.nexus-echo-card__identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nexus-echo-card__identity span,
.nexus-echo-card__date,
.nexus-echo-card__target,
.nexus-echo-card__link {
    color: var(--text-mention-grey);
    font-size: .875rem;
}

.nexus-echo-card__date {
    margin-left: auto;
    white-space: nowrap;
}

.nexus-echo-card__target {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
}

.nexus-echo-card__content {
    font-size: 1.05rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.nexus-echo-card__hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.nexus-echo-card__hashtags a {
    display: inline-flex;
    padding: .2rem .5rem;
    border-radius: .35rem;
    background: var(--nexus-green-soft, #e4f4ec);
    color: var(--nexus-green, #007a4d);
    font-weight: 600;
    text-decoration: none;
}

.nexus-echo-card__photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: .5rem;
}

.nexus-echo-card__photos img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: .35rem;
    border: 1px solid var(--border-default-grey);
    background: var(--background-alt-grey);
}

.nexus-echo-vote-button {
    border: 1px solid var(--border-default-grey);
    background: var(--background-default-grey);
    color: var(--text-default-grey);
    min-height: 2.25rem;
    border-radius: .35rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .6rem;
    cursor: pointer;
    font-weight: 700;
}

.nexus-echo-vote-button:hover,
.nexus-echo-vote-button--active {
    color: var(--nexus-green, #007a4d);
    border-color: var(--nexus-green, #007a4d);
    background: var(--nexus-green-soft, #e4f4ec);
}

.nexus-echo-vote-button--quiet span:not(.fr-sr-only) {
    display: none;
}

.nexus-agent-avatar--anonymous {
    background: var(--background-alt-grey);
    color: var(--text-mention-grey);
}

@media (max-width: 48em) {
    .nexus-echo-card__header,
    .nexus-echo-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .nexus-echo-card__date {
        margin-left: 0;
    }
}

/* Version 0.10.11 — uniformisation sobre, DSFR vert carré et Échos allégés */
:root,
[data-fr-theme="light"] {
  --nexus-green: #00875a;
  --nexus-green-dark: #005f43;
  --nexus-green-soft: #e9f7f0;
  --nexus-green-soft-2: #f6fcf9;
  --nexus-green-border: #55b98d;
  --nexus-shadow-soft: 0 10px 26px rgba(0, 97, 65, .08);
  --nexus-shadow-hover: 0 16px 34px rgba(0, 97, 65, .13);
  --nexus-transition: 160ms ease;
}

.nexus-section-card,
.nexus-table-card,
.nexus-dashboard-panel,
.nexus-notification-panel,
.nexus-notification-card,
.nexus-stat-card,
.nexus-admin-menu-card,
.nexus-home-stat-card,
.nexus-home-shortcut,
.nexus-home-dossier,
.nexus-annuaire-card,
.nexus-empty-state,
.fr-alert.nexus-feedback {
  border-radius: 0 !important;
  border-color: rgba(0, 97, 65, .18) !important;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 97, 65, .045);
  transition: transform var(--nexus-transition), box-shadow var(--nexus-transition), border-color var(--nexus-transition), background-color var(--nexus-transition);
}

.nexus-section-card:hover,
.nexus-admin-menu-card:hover,
.nexus-home-stat-card:hover,
.nexus-home-shortcut:hover,
.nexus-home-dossier:hover,
.nexus-annuaire-card:hover {
  border-color: var(--nexus-green-border) !important;
  box-shadow: var(--nexus-shadow-hover);
  transform: translateY(-1px);
}

.fr-btn,
.nexus-action-button,
.nexus-page-heading__actions .fr-btn,
.nexus-controls-toolbar .fr-btn,
.nexus-empty-state__actions .fr-btn,
.nexus-detail-actions .fr-btn,
.nexus-inline-actions .fr-btn,
.nexus-btn-cluster .fr-btn,
.nexus-search-result-card__link,
.nexus-reference-pill,
.nexus-icon-button,
.fr-badge {
  border-radius: 0 !important;
}

.fr-btn,
.nexus-action-button,
.nexus-icon-button,
.nexus-global-search__toggle,
.nexus-agent-menu__summary {
  transition: transform var(--nexus-transition), box-shadow var(--nexus-transition), background-color var(--nexus-transition), color var(--nexus-transition), border-color var(--nexus-transition);
}

.fr-btn:hover,
.nexus-action-button:hover,
.nexus-icon-button:hover,
.nexus-global-search__toggle:hover,
.nexus-agent-menu__summary:hover {
  transform: translateY(-1px);
}

.fr-input,
.fr-select,
.fr-upload {
  border-radius: 0 !important;
  transition: box-shadow var(--nexus-transition), border-color var(--nexus-transition), background-color var(--nexus-transition);
}

.fr-input:focus,
.fr-select:focus,
.fr-upload:focus {
  box-shadow: inset 0 -2px 0 var(--nexus-green), 0 0 0 3px rgba(0, 135, 90, .13) !important;
}

.nexus-page-heading-row--clean {
  align-items: flex-start;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(0, 97, 65, .14);
}

.nexus-home-hero__eyebrow,
.nexus-empty-state__eyebrow,
.nexus-annuaire-card__details dt {
  color: var(--nexus-green-dark) !important;
}

.nexus-echo-page {
  --echo-gap: 1rem;
}

.nexus-echo-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--echo-gap);
}

.nexus-echo-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 6.5rem;
  padding: 1.15rem;
  border: 1px solid rgba(0, 97, 65, .18);
  background: linear-gradient(135deg, #fff 0%, var(--nexus-green-soft-2) 100%);
  box-shadow: 0 6px 18px rgba(0, 97, 65, .055);
}

.nexus-echo-stat-card__icon,
.nexus-echo-composer__icon,
.nexus-echo-target-type {
  border-radius: 0;
}

.nexus-echo-stat-card__icon,
.nexus-echo-composer__icon {
  width: 2.7rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nexus-green-border);
  background: var(--nexus-green-soft);
  color: var(--nexus-green-dark);
  flex: 0 0 auto;
}

.nexus-echo-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.nexus-echo-sidebar {
  position: sticky;
  top: 1rem;
}

.nexus-echo-composer,
.nexus-echo-filters,
.nexus-echo-card {
  border: 1px solid rgba(0, 97, 65, .18) !important;
  background: #fff;
}

.nexus-echo-composer__header {
  display: flex;
  gap: .85rem;
  align-items: center;
}

.nexus-echo-counter {
  color: var(--text-mention-grey);
  font-size: .8rem;
  text-align: right;
}

.nexus-echo-submit {
  width: 100%;
  justify-content: center;
}

.nexus-echo-toolbar {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(10rem, .35fr) minmax(8rem, .28fr) auto;
  gap: .75rem;
  align-items: end;
}

.nexus-echo-toolbar__search {
  min-width: 0;
}

.nexus-echo-feed {
  display: grid;
  gap: .9rem;
}

.nexus-echo-card {
  position: relative;
  overflow: hidden;
}

.nexus-echo-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--nexus-green);
  opacity: .75;
}

.nexus-echo-card__header,
.nexus-echo-card__footer,
.nexus-echo-votes {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nexus-echo-card__header {
  align-items: flex-start;
}

.nexus-echo-card__footer {
  justify-content: space-between;
  border-top: 1px solid rgba(0, 97, 65, .12);
  padding-top: .85rem;
}

.nexus-echo-card__identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nexus-echo-card__identity strong {
  line-height: 1.25;
}

.nexus-echo-card__identity span,
.nexus-echo-card__date,
.nexus-echo-card__target,
.nexus-echo-card__link {
  color: var(--text-mention-grey);
  font-size: .875rem;
}

.nexus-echo-card__date {
  margin-left: auto;
  white-space: nowrap;
  color: #66736d;
}

.nexus-echo-card__target {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  padding: .65rem .75rem;
  background: var(--nexus-green-soft-2);
  border-left: 2px solid var(--nexus-green-border);
}

.nexus-echo-target-type {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: .15rem .45rem;
  background: var(--nexus-green-soft);
  color: var(--nexus-green-dark);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nexus-echo-card__content {
  color: #1f2b27;
  font-size: 1.02rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.nexus-echo-card__hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.nexus-echo-card__hashtags a,
.nexus-echo-card__link a {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: .2rem .55rem;
  border: 1px solid rgba(0, 97, 65, .2);
  background: var(--nexus-green-soft);
  color: var(--nexus-green-dark);
  font-weight: 650;
  text-decoration: none;
  transition: background-color var(--nexus-transition), border-color var(--nexus-transition), transform var(--nexus-transition);
}

.nexus-echo-card__hashtags a:hover,
.nexus-echo-card__link a:hover {
  transform: translateY(-1px);
  border-color: var(--nexus-green);
  background: #dff3ea;
}

.nexus-echo-card__photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .5rem;
}

.nexus-echo-card__photos a {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(0, 97, 65, .18);
}

.nexus-echo-card__photos img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  background: var(--background-alt-grey);
  transition: transform 220ms ease;
}

.nexus-echo-card__photos a:hover img {
  transform: scale(1.025);
}

.nexus-echo-vote-button {
  border: 1px solid rgba(0, 97, 65, .2);
  background: #fff;
  color: var(--text-default-grey);
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .65rem;
  cursor: pointer;
  font-weight: 700;
  transition: transform var(--nexus-transition), border-color var(--nexus-transition), background-color var(--nexus-transition), color var(--nexus-transition);
}

.nexus-echo-vote-button:hover,
.nexus-echo-vote-button--active {
  color: var(--nexus-green-dark);
  border-color: var(--nexus-green);
  background: var(--nexus-green-soft);
  transform: translateY(-1px);
}

.nexus-echo-vote-button--quiet {
  padding-inline: .45rem;
  opacity: .76;
}

.nexus-echo-vote-button--quiet span:not(.fr-sr-only) {
  display: none;
}

.nexus-agent-avatar--anonymous {
  background: var(--background-alt-grey);
  color: var(--text-mention-grey);
}

.nexus-annuaire-filters,
.nexus-annuaire-card {
  border-radius: 0;
}

@media (max-width: 62em) {
  .nexus-echo-layout {
    grid-template-columns: 1fr;
  }

  .nexus-echo-sidebar {
    position: static;
  }

  .nexus-echo-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 48em) {
  .nexus-echo-overview,
  .nexus-echo-toolbar {
    grid-template-columns: 1fr;
  }

  .nexus-echo-card__header,
  .nexus-echo-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nexus-echo-card__date {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nexus-section-card,
  .nexus-admin-menu-card,
  .nexus-home-stat-card,
  .nexus-home-shortcut,
  .nexus-home-dossier,
  .nexus-annuaire-card,
  .fr-btn,
  .nexus-action-button,
  .nexus-icon-button,
  .nexus-echo-vote-button,
  .nexus-echo-card__photos img,
  .nexus-echo-card__hashtags a,
  .nexus-echo-card__link a {
    transition: none !important;
    transform: none !important;
  }
}

/* Version 0.10.12 — adaptation mobile/tablette globale */
.nexus-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
}

.nexus-mobile-menu-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  min-height: 2.5rem;
  padding: .45rem .75rem;
  border: 1px solid rgba(0, 97, 65, .24);
  background: #fff;
  color: var(--nexus-green-dark, #005f43);
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
  box-shadow: none;
  transition: transform var(--nexus-transition, 160ms ease), border-color var(--nexus-transition, 160ms ease), background-color var(--nexus-transition, 160ms ease);
}

.nexus-mobile-menu-toggle:hover,
.nexus-mobile-menu-toggle:focus {
  border-color: var(--nexus-green, #00875a);
  background: var(--nexus-green-soft, #e9f7f0);
  transform: translateY(-1px);
}

.nexus-mobile-menu-toggle__icon,
.nexus-mobile-menu-toggle__icon::before,
.nexus-mobile-menu-toggle__icon::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  transition: transform var(--nexus-transition, 160ms ease), opacity var(--nexus-transition, 160ms ease);
}

.nexus-mobile-menu-toggle__icon {
  position: relative;
}

.nexus-mobile-menu-toggle__icon::before,
.nexus-mobile-menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nexus-mobile-menu-toggle__icon::before {
  top: -.42rem;
}

.nexus-mobile-menu-toggle__icon::after {
  top: .42rem;
}

.nexus-mobile-menu-open .nexus-mobile-menu-toggle__icon {
  background: transparent;
}

.nexus-mobile-menu-open .nexus-mobile-menu-toggle__icon::before {
  transform: translateY(.42rem) rotate(45deg);
}

.nexus-mobile-menu-open .nexus-mobile-menu-toggle__icon::after {
  transform: translateY(-.42rem) rotate(-45deg);
}

.nexus-mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 760;
  background: rgba(0, 0, 0, .18);
}

.nexus-mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 75em) {
  .nexus-main {
    width: min(100%, 70rem);
  }

  .nexus-page-heading,
  .nexus-page-heading-row--clean,
  .nexus-search-minimal__topline,
  .nexus-home-section-heading--inline {
    gap: .85rem;
  }

  .nexus-home-v2__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 62em) {
  .fr-header {
    position: sticky;
    top: 0;
    z-index: 820;
    background: #fff;
    border-bottom: 1px solid rgba(0, 97, 65, .14);
  }

  .fr-header__body-row {
    align-items: center;
    gap: .75rem;
  }

  .fr-header__brand {
    min-width: 0;
  }

  .fr-header__service-title {
    white-space: nowrap;
  }

  .nexus-header-tools {
    flex: 0 0 auto;
  }

  .nexus-mobile-menu-toggle {
    display: inline-flex;
  }

  .nexus-agent-menu__identity {
    display: none;
  }

  #navigation-principale.fr-nav {
    display: block;
    position: fixed;
    inset: var(--nexus-mobile-nav-top, 4.75rem) 0 0 0;
    z-index: 800;
    background: #fff;
    border-top: 1px solid rgba(0, 97, 65, .12);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
    overflow-y: auto;
    transform: translateY(-110%);
    visibility: hidden;
    opacity: 0;
    transition: transform 200ms ease, opacity 160ms ease, visibility 160ms ease;
  }

  #navigation-principale.fr-nav.nexus-mobile-nav--open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  #navigation-principale .nexus-nav-layout--compact {
    width: min(100%, 42rem);
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  #navigation-principale .nexus-nav-main-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: .45rem;
    width: 100%;
    margin: 0;
  }

  #navigation-principale .fr-nav__item,
  #navigation-principale .fr-nav__link,
  #navigation-principale .nexus-nav-dropdown__summary {
    width: 100%;
  }

  #navigation-principale .fr-nav__link,
  #navigation-principale .nexus-nav-dropdown__summary {
    min-height: 3rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(0, 97, 65, .16);
    background: #fff;
    color: var(--text-default-grey);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
  }

  #navigation-principale .fr-nav__link:hover,
  #navigation-principale .fr-nav__link:focus,
  #navigation-principale .nexus-nav-dropdown__summary:hover,
  #navigation-principale .nexus-nav-dropdown__summary:focus {
    border-color: var(--nexus-green, #00875a);
    background: var(--nexus-green-soft, #e9f7f0);
    color: var(--nexus-green-dark, #005f43);
  }

  #navigation-principale .nexus-nav-dropdown__panel {
    position: static;
    width: 100%;
    min-width: 0;
    margin: .35rem 0 .65rem;
    padding: .35rem;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid rgba(0, 97, 65, .12);
    background: var(--nexus-green-soft-2, #f6fcf9);
  }

  #navigation-principale .nexus-nav-dropdown__panel a,
  #navigation-principale .nexus-nav-dropdown__empty {
    border-radius: 0;
    padding: .75rem .85rem;
  }

  #navigation-principale .nexus-global-search--collapsed {
    width: 100%;
  }

  #navigation-principale .nexus-global-search__details,
  #navigation-principale .nexus-global-search--collapsed .nexus-global-search__form {
    position: static;
    width: 100%;
  }

  #navigation-principale .nexus-global-search__toggle {
    display: none;
  }

  #navigation-principale .nexus-global-search__form {
    display: block;
  }

  #navigation-principale .nexus-global-search__details:not([open]) .nexus-global-search__form {
    display: block;
  }

  #navigation-principale .nexus-global-search__panel {
    position: static;
    margin-top: .35rem;
  }

  .nexus-main {
    width: min(100%, 44rem);
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
  }

  .fr-grid-row {
    row-gap: 1rem;
  }

  .nexus-page-heading,
  .nexus-page-heading-row--clean,
  .nexus-search-result-card__main,
  .nexus-home-v2__hero,
  .nexus-notification-card__header,
  .nexus-detail-actions,
  .nexus-form-actions,
  .nexus-controls-toolbar,
  .nexus-btn-cluster,
  .nexus-inline-actions {
    align-items: stretch;
  }

  .nexus-page-heading__actions,
  .nexus-form-actions,
  .nexus-detail-actions,
  .nexus-controls-toolbar,
  .nexus-btn-cluster,
  .nexus-inline-actions {
    width: 100%;
  }

  .nexus-page-heading__actions .fr-btn,
  .nexus-form-actions .fr-btn,
  .nexus-detail-actions .fr-btn,
  .nexus-controls-toolbar .fr-btn,
  .nexus-btn-cluster .fr-btn,
  .nexus-inline-actions .fr-btn,
  .nexus-empty-state__actions .fr-btn {
    justify-content: center;
    width: 100%;
  }

  .nexus-table-card,
  .fr-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nexus-table-card table,
  .fr-table table {
    min-width: 42rem;
  }

  .nexus-home-chart,
  .nexus-home-dossier-list,
  .nexus-home-shortcuts,
  .nexus-annuaire-grid,
  .nexus-echo-feed {
    max-width: 100%;
  }
}

@media (max-width: 48em) {
  body {
    overflow-x: hidden;
  }

  .fr-container,
  .fr-container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .fr-header__body .fr-container {
    padding-left: .75rem !important;
    padding-right: .75rem !important;
  }

  .fr-header__logo .fr-logo {
    font-size: .82rem;
  }

  .nexus-header-service {
    gap: 0;
  }

  .fr-header__service-title {
    font-size: 1.05rem;
  }

  .nexus-mobile-menu-toggle__label {
    display: none;
  }

  .nexus-mobile-menu-toggle {
    width: 2.5rem;
    justify-content: center;
    padding-inline: .55rem;
  }

  .nexus-agent-menu__summary {
    min-width: 2.5rem;
    padding-inline: .35rem !important;
  }

  .nexus-agent-menu__panel {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 4.75rem;
    width: auto;
    min-width: 0;
  }

  .nexus-page-heading,
  .nexus-home-section-heading--inline,
  .nexus-search-minimal__topline,
  .nexus-echo-card__header,
  .nexus-echo-card__footer,
  .nexus-notification-card__header {
    flex-direction: column;
  }

  .nexus-section-card,
  .nexus-dashboard-panel,
  .nexus-table-card,
  .nexus-notification-panel,
  .nexus-home-v2__panel,
  .nexus-echo-composer,
  .nexus-echo-filters,
  .nexus-echo-card,
  .nexus-annuaire-card {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .nexus-home-v2__stats,
  .nexus-home-mini-grid,
  .nexus-home-mini-grid--four,
  .nexus-home-dossier-list,
  .nexus-home-shortcuts,
  .nexus-echo-overview,
  .nexus-echo-toolbar,
  .nexus-echo-layout {
    grid-template-columns: 1fr !important;
  }

  .nexus-home-chart {
    grid-template-columns: repeat(12, minmax(2.75rem, 1fr));
    overflow-x: auto;
    padding-bottom: .75rem;
  }

  .nexus-home-chart__month {
    height: 12rem;
  }

  .nexus-global-search__reference-row,
  .nexus-search-result-card__topline,
  .nexus-echo-card__target {
    align-items: flex-start;
    flex-direction: column;
  }

  .nexus-global-search__open,
  .nexus-echo-card__date {
    margin-left: 0;
    white-space: normal;
  }

  .nexus-echo-card__photos {
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  }

  .nexus-echo-card__photos img {
    height: 8.5rem;
  }
}

@media (max-width: 36em) {
  .nexus-main {
    width: 100%;
    padding-left: .85rem !important;
    padding-right: .85rem !important;
  }

  .fr-container,
  .fr-container-fluid {
    padding-left: .85rem !important;
    padding-right: .85rem !important;
  }

  .fr-btn:not(.nexus-icon-button):not(.nexus-global-search__submit),
  .nexus-action-button:not(.nexus-icon-button) {
    width: 100%;
    justify-content: center;
  }

  .nexus-home-stat-card,
  .nexus-home-shortcut,
  .nexus-home-dossier,
  .nexus-echo-stat-card {
    min-height: auto;
  }

  .nexus-home-stat-card__value {
    font-size: 2.2rem;
  }
}

@media (orientation: landscape) and (max-width: 62em) {
  #navigation-principale.fr-nav {
    top: 3.75rem;
  }

  #navigation-principale .nexus-nav-layout--compact {
    max-width: 56rem;
    display: grid;
    grid-template-columns: minmax(15rem, .75fr) minmax(16rem, 1fr);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  #navigation-principale.fr-nav,
  .nexus-mobile-menu-toggle,
  .nexus-mobile-menu-toggle__icon,
  .nexus-mobile-menu-toggle__icon::before,
  .nexus-mobile-menu-toggle__icon::after {
    transition: none !important;
  }
}


/* Version 0.10.13 — responsive ciblé administration, notifications et connexion */
.nexus-admin-menu-grid,
.nexus-ref-dashboard,
.nexus-notification-list,
.nexus-login-panel {
  box-sizing: border-box;
}

.nexus-admin-menu-grid--standalone {
  align-items: stretch;
}

.nexus-admin-menu-grid--standalone .nexus-admin-menu-card,
.nexus-admin-menu-card {
  border-radius: 0;
  border-color: rgba(0, 97, 65, .18);
  background: #fff;
  min-width: 0;
  box-shadow: 0 1px 0 rgba(0, 97, 65, .06);
}

.nexus-admin-menu-card .nexus-icon-button,
.nexus-admin-menu-card .nexus-icon-button--secondary {
  flex: 0 0 auto;
}

.nexus-admin-menu-card > span:last-child {
  min-width: 0;
}

.nexus-admin-menu-card strong,
.nexus-admin-menu-card small {
  overflow-wrap: anywhere;
}

.nexus-admin-menu-card:hover,
.nexus-admin-menu-card:focus {
  background: var(--nexus-green-soft, #e9f7f0);
  border-color: var(--nexus-green, #00875a);
  color: var(--nexus-green-dark, #005f43);
}

.nexus-ref-dashboard__item {
  border-radius: 0;
  border-color: rgba(0, 97, 65, .18);
}

.nexus-notification-list {
  gap: .85rem;
}

.nexus-notification-card {
  border-radius: 0;
  transition: transform var(--nexus-transition, 160ms ease), border-color var(--nexus-transition, 160ms ease), background-color var(--nexus-transition, 160ms ease);
}

.nexus-notification-card:hover,
.nexus-notification-card:focus-within {
  border-color: var(--nexus-green, #00875a);
  transform: translateY(-1px);
}

.nexus-notification-card--non-lue {
  border-left-color: var(--nexus-green, #00875a);
  background: linear-gradient(90deg, rgba(0, 135, 90, .06), #fff 28%);
}

.nexus-notification-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
}

.nexus-notification-meta .fr-badge,
.nexus-notification-meta p {
  margin-bottom: 0 !important;
}

.nexus-login-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--nexus-green-soft, #e9f7f0) 0, #fff 18rem);
}

.nexus-login-shell .fr-header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 97, 65, .14);
}

.nexus-login-main--centered {
  flex: 1 0 auto;
  width: min(100%, 44rem);
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.nexus-login-card {
  border-radius: 0;
  border-color: rgba(0, 97, 65, .18);
  box-shadow: 0 12px 30px rgba(0, 97, 65, .08);
}

.nexus-login-card .fr-input,
.nexus-login-card .fr-btn {
  min-height: 2.75rem;
}

.nexus-login-heading h1 {
  color: var(--nexus-green-dark, #005f43);
}

@media (max-width: 75em) {
  .nexus-admin-menu-grid--standalone {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nexus-ref-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 62em) {
  .nexus-admin-menu-grid,
  .nexus-admin-menu-grid--standalone {
    width: min(100%, 44rem);
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .nexus-admin-menu-grid--standalone .nexus-admin-menu-card,
  .nexus-admin-menu-card {
    min-height: 4.75rem;
    padding: 1rem;
  }

  .nexus-ref-dashboard {
    width: min(100%, 44rem);
    margin-left: auto;
    margin-right: auto;
    gap: .75rem;
  }

  .nexus-admin-table-toolbar,
  .nexus-admin-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .nexus-admin-filter,
  .nexus-admin-filter .fr-input,
  .nexus-admin-filter .fr-select,
  .nexus-admin-filter .fr-btn {
    width: 100%;
  }

  .nexus-login-shell .fr-header__body-row {
    justify-content: center;
  }

  .nexus-login-shell .fr-header__brand {
    width: auto;
    margin: 0 auto;
  }

  .nexus-login-main--centered {
    align-items: center;
    padding-top: clamp(1.5rem, 6vw, 3rem) !important;
    padding-bottom: 2rem !important;
  }

  .nexus-login-panel {
    width: min(100%, 34rem);
  }

  .nexus-notification-list {
    width: min(100%, 44rem);
    margin-left: auto;
    margin-right: auto;
  }

  .nexus-notification-card .fr-grid-row {
    align-items: stretch;
  }

  .nexus-notification-meta {
    align-items: flex-start;
    text-align: left;
    padding-top: .75rem;
    border-top: 1px solid rgba(0, 97, 65, .12);
  }

  .nexus-notification-meta form,
  .nexus-notification-meta .fr-btn,
  .nexus-notification-list .fr-link {
    width: 100%;
  }

  .nexus-notification-meta .fr-btn,
  .nexus-notification-list .fr-link {
    justify-content: center;
  }
}

@media (max-width: 48em) {
  .nexus-ref-dashboard {
    grid-template-columns: 1fr;
  }

  .nexus-ref-dashboard__item,
  .nexus-admin-menu-card,
  .nexus-notification-card,
  .nexus-login-card {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .nexus-admin-menu-card {
    align-items: flex-start;
  }

  .nexus-admin-menu-card .nexus-icon-button {
    width: 2.4rem;
    height: 2.4rem;
  }

  .nexus-login-heading {
    text-align: left;
  }

  .nexus-login-heading h1 {
    font-size: clamp(1.75rem, 8vw, 2.15rem);
  }

  .nexus-login-legend {
    text-align: left;
  }

  .nexus-login-submit,
  .nexus-login-submit .fr-btn {
    width: 100%;
  }

  .nexus-login-shell .fr-footer__body,
  .nexus-login-shell .fr-footer__content,
  .nexus-login-shell .fr-footer__bottom-copy {
    text-align: center;
  }

  .nexus-notification-card h2 {
    font-size: 1.08rem;
  }
}

@media (orientation: landscape) and (max-width: 62em) {
  .nexus-login-main--centered {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .nexus-login-card {
    margin-bottom: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nexus-notification-card,
  .nexus-admin-menu-card {
    transition: none !important;
    transform: none !important;
  }
}

/* Action directe après saisie d'un volet */
.nexus-next-step-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-default-grey);
    border-left: 0.35rem solid var(--nexus-green, #18753c);
    background: var(--background-default-grey);
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.06);
}

.nexus-next-step-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

@media (max-width: 48em) {
    .nexus-next-step-card {
        align-items: stretch;
        flex-direction: column;
        text-align: left;
    }

    .nexus-next-step-card .fr-btn,
    .nexus-next-step-card__actions,
    .nexus-next-step-card__actions .fr-btn {
        width: 100%;
        justify-content: center;
    }
}


/* Accueil 0.10.15 : graphique plus lisible et épuré */
.nexus-home-v2__hero .fr-btn {
    white-space: nowrap;
}

.nexus-home-chart__month {
    position: relative;
    gap: 0.35rem;
}

.nexus-home-chart__total {
    font-size: 0.78rem;
    line-height: 1;
    color: var(--text-title-grey);
    min-height: 1rem;
}

.nexus-home-chart__segment {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: filter 0.18s ease, transform 0.18s ease;
}

.nexus-home-chart__segment:hover,
.nexus-home-chart__segment:focus-visible {
    filter: brightness(1.06);
    transform: translateY(-1px);
    outline: 2px solid rgba(0, 121, 77, 0.22);
    outline-offset: -2px;
}

.nexus-home-chart__readout {
    color: var(--text-mention-grey);
    font-size: 0.9rem;
}

@media (min-width: 62em) {
    .nexus-home-chart {
        min-height: 18rem;
    }
}

/* Version 0.10.16 — identité Nexus, annuaire et échos épurés */
.nexus-header-brand.fr-enlarge-link::after,
.nexus-footer-brand.fr-enlarge-link::after {
  content: none !important;
}

.nexus-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .02em;
  color: #161616 !important;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none !important;
  line-height: 1;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
}

.nexus-wordmark__x {
  color: var(--nexus-green, #00875a);
}

.nexus-wordmark--footer {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.fr-footer {
  border-top: 4px solid var(--nexus-green, #00875a) !important;
  box-shadow: none !important;
}

.fr-footer__bottom {
  box-shadow: inset 0 1px 0 rgba(0, 97, 65, .18) !important;
}

.fr-footer__bottom-list {
  gap: .4rem .85rem;
}

.fr-footer__bottom-item:not(:last-child)::after {
  content: '|';
  margin-left: .85rem;
  color: var(--nexus-green-dark, #006b49);
}

.nexus-footer-note {
  color: var(--text-mention-grey);
}

.nexus-agent-avatar:not(.nexus-agent-avatar--sm) {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1rem;
}

.nexus-annuaire-card .nexus-agent-avatar {
  width: 3.25rem;
  height: 3.25rem;
  max-width: 3.25rem;
  max-height: 3.25rem;
}

.nexus-annuaire-card .nexus-agent-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.nexus-copy-field {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
}

.nexus-copy-field > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nexus-copy-button {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 97, 65, .22);
  background: #fff;
  color: var(--nexus-green-dark, #006b49);
  cursor: pointer;
  transition: background-color var(--nexus-transition, 160ms ease), border-color var(--nexus-transition, 160ms ease), transform var(--nexus-transition, 160ms ease);
}

.nexus-copy-button svg {
  width: 1rem;
  height: 1rem;
}

.nexus-copy-button:hover,
.nexus-copy-button.is-copied {
  background: var(--nexus-green-soft, #e5f6ee);
  border-color: var(--nexus-green, #00875a);
  transform: translateY(-1px);
}

.nexus-echo-page--feed {
  max-width: 58rem;
  margin-inline: auto;
}

.nexus-echo-page--feed .nexus-page-heading-row {
  max-width: 58rem;
}

.nexus-echo-composer--timeline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  border-color: rgba(0, 97, 65, .2) !important;
}

.nexus-echo-composer__avatar {
  padding-top: .15rem;
}

.nexus-echo-composer__body {
  min-width: 0;
}

.nexus-echo-composer__topline {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}

.nexus-echo-composer__topline span {
  color: var(--text-mention-grey);
  font-size: .875rem;
}

.nexus-echo-composer__textarea {
  min-height: 7.25rem;
  resize: vertical;
  border-color: rgba(0, 97, 65, .2) !important;
  background: #fff !important;
}

.nexus-echo-composer__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, .55fr);
  gap: .75rem;
}

.nexus-echo-composer__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.nexus-echo-image-button {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .65rem;
  border: 1px solid rgba(0, 97, 65, .22);
  background: #fff;
  color: var(--nexus-green-dark, #006b49);
  font-weight: 700;
  cursor: pointer;
}

.nexus-echo-image-button svg {
  width: 1.1rem;
  height: 1.1rem;
}

.nexus-echo-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nexus-echo-submit--inline {
  margin-left: auto;
  width: auto;
  min-width: 6rem;
}

.nexus-echo-filters--simple {
  display: grid;
  gap: .9rem;
  border-color: rgba(0, 97, 65, .16) !important;
}

.nexus-echo-periods {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.nexus-echo-periods a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .25rem .65rem;
  border: 1px solid rgba(0, 97, 65, .18);
  color: var(--text-default-grey);
  background: #fff;
  text-decoration: none;
  font-weight: 650;
}

.nexus-echo-periods a:hover,
.nexus-echo-period--active {
  border-color: var(--nexus-green, #00875a) !important;
  background: var(--nexus-green-soft, #e5f6ee) !important;
  color: var(--nexus-green-dark, #006b49) !important;
}

.nexus-echo-search-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .6rem;
}

.nexus-echo-card--tweet {
  border-color: rgba(0, 97, 65, .16) !important;
}

.nexus-echo-card--tweet::before {
  width: 0;
}

.nexus-echo-author-popover > summary {
  padding: 0 !important;
  min-height: auto !important;
}

.nexus-echo-author-popover > summary::after {
  content: none !important;
}

.nexus-echo-card--tweet .nexus-echo-card__target {
  background: #f8fbf9;
  border-left: 2px solid var(--nexus-green-border, #58b98d);
}

.nexus-echo-card--tweet .nexus-echo-card__content {
  font-size: 1rem;
  line-height: 1.55;
}

.nexus-echo-vote-button span:not(.fr-sr-only) {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 48em) {
  .nexus-wordmark {
    font-size: 1.55rem;
  }

  .nexus-echo-page--feed {
    max-width: 100%;
  }

  .nexus-echo-composer--timeline {
    grid-template-columns: 1fr;
  }

  .nexus-echo-composer__meta,
  .nexus-echo-search-line {
    grid-template-columns: 1fr;
  }

  .nexus-echo-submit--inline {
    margin-left: 0;
    width: 100%;
  }

  .nexus-echo-composer__actions {
    align-items: stretch;
  }

  .nexus-echo-image-button {
    justify-content: center;
    width: 100%;
  }
}

/* Version 0.10.17 — finitions visuelles, thème agent et listes */
:root {
  --nexus-accent: var(--nexus-green, #00875a);
  --nexus-accent-soft: color-mix(in srgb, var(--nexus-accent) 12%, white);
  --nexus-accent-border: color-mix(in srgb, var(--nexus-accent) 45%, white);
  --text-action-high-blue-france: var(--nexus-accent) !important;
  --text-title-blue-france: var(--nexus-accent) !important;
  --border-action-high-blue-france: var(--nexus-accent) !important;
  --background-action-high-blue-france: var(--nexus-accent) !important;
  --background-action-low-blue-france: var(--nexus-accent-soft) !important;
}

.nexus-wordmark__x,
.nexus-login-wordmark-title .nexus-wordmark__x {
  color: var(--nexus-accent, #00875a) !important;
}

.nexus-login-wordmark-title {
  letter-spacing: .08em;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  line-height: 1;
  font-weight: 900;
}

.nexus-filter-row .fr-input-group,
.nexus-filter-row .fr-input,
.nexus-filter-row input[type="search"] {
  width: 100%;
  max-width: none;
}
.nexus-filter-row {
  width: 100%;
}

.nexus-admin-table tbody tr:nth-child(odd),
.nexus-simple-list-table tbody tr:nth-child(odd),
.nexus-controls-table-card tbody tr:nth-child(odd) {
  background: #f6f6f6;
}
.nexus-admin-table tbody tr:nth-child(even),
.nexus-simple-list-table tbody tr:nth-child(even),
.nexus-controls-table-card tbody tr:nth-child(even) {
  background: #fff;
}
.nexus-admin-table tbody tr,
.nexus-simple-list-table tbody tr,
.nexus-controls-table-card tbody tr {
  transition: background-color 140ms ease, box-shadow 140ms ease;
}
.nexus-admin-table tbody tr:hover,
.nexus-simple-list-table tbody tr:hover,
.nexus-controls-table-card tbody tr:hover {
  background: var(--nexus-accent-soft, #e9f7f0);
}

.nexus-home-v2__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 62em) {
  .nexus-home-v2__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48em) {
  .nexus-home-v2__stats { grid-template-columns: 1fr; }
}

.nexus-clickable-card {
  cursor: pointer;
}
.nexus-clickable-card:focus-visible {
  outline: 3px solid var(--nexus-accent, #00875a);
  outline-offset: 3px;
}

.nexus-profile-color-form {
  display: grid;
  gap: 1rem;
}
.nexus-color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.nexus-color-presets label {
  cursor: pointer;
}
.nexus-color-presets input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nexus-color-presets span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--nexus-border, #ddd);
  padding: .45rem .7rem;
  background: #fff;
  font-size: .9rem;
}
.nexus-color-presets span::before {
  content: "";
  width: .9rem;
  height: .9rem;
  background: var(--pastille, #00875a);
  border: 1px solid rgba(0,0,0,.14);
}
.nexus-color-presets input:checked + span {
  border-color: var(--nexus-accent, #00875a);
  box-shadow: inset 0 -2px 0 var(--nexus-accent, #00875a);
}
.nexus-profile-color-actions {
  display: flex;
  align-items: flex-end;
}

.nexus-agent-popover-preview,
.nexus-echo-author-popover {
  position: relative;
  z-index: 20;
}
.nexus-agent-popover-preview[open],
.nexus-echo-author-popover[open] {
  z-index: 2000;
}
.nexus-agent-popover-card {
  z-index: 2100 !important;
  max-width: min(26rem, calc(100vw - 2rem));
}

.nexus-echo-card {
  overflow: visible !important;
}
.nexus-echo-card__content a {
  font-weight: 700;
}
.nexus-echo-card__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 10rem));
  gap: .6rem;
  max-width: 21rem;
}
.nexus-echo-card__photos a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--nexus-border, #ddd);
  background: #f6f6f6;
}
.nexus-echo-card__photos img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
@media (max-width: 48em) {
  .nexus-echo-card__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
}

.nexus-volet-agents-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.nexus-volet-agents-grid > div {
  display: grid;
  gap: .25rem;
  border: 1px solid var(--nexus-border, #ddd);
  background: #fff;
  padding: 1rem;
}
.nexus-volet-agents-grid strong {
  color: var(--nexus-accent, #00875a);
}
.nexus-volet-agents-grid small,
.nexus-volet-agents-grid time {
  color: #666;
}
@media (max-width: 62em) {
  .nexus-volet-agents-grid { grid-template-columns: 1fr; }
}

/* Version 0.10.18 — couleur personnelle réellement propagée et menu mobile stabilisé */
html[data-fr-theme="light"],
:root[data-fr-theme="light"] {
  --nexus-accent: var(--nexus-green, #00875a) !important;
  --nexus-green-dark: var(--nexus-accent, #00875a) !important;
  --nexus-green-soft: color-mix(in srgb, var(--nexus-accent, #00875a) 10%, white) !important;
  --nexus-green-soft-2: color-mix(in srgb, var(--nexus-accent, #00875a) 5%, white) !important;
  --nexus-green-border: color-mix(in srgb, var(--nexus-accent, #00875a) 45%, white) !important;
  --nexus-accent-soft: color-mix(in srgb, var(--nexus-accent, #00875a) 12%, white) !important;
  --nexus-accent-border: color-mix(in srgb, var(--nexus-accent, #00875a) 45%, white) !important;
  --text-action-high-blue-france: var(--nexus-accent, #00875a) !important;
  --text-title-blue-france: var(--nexus-accent, #00875a) !important;
  --border-action-high-blue-france: var(--nexus-accent, #00875a) !important;
  --background-action-high-blue-france: var(--nexus-accent, #00875a) !important;
  --background-action-low-blue-france: var(--nexus-accent-soft, #e9f7f0) !important;
}

.nexus-home-v2__hero,
.nexus-echo-stat-card,
.nexus-echo-page--feed,
.nexus-login-shell {
  background: linear-gradient(135deg, #fff 0%, var(--nexus-accent-soft, #e9f7f0) 58%, #fff 100%) !important;
}

.nexus-section-card,
.nexus-table-card,
.nexus-dashboard-panel,
.nexus-notification-panel,
.nexus-notification-card,
.nexus-stat-card,
.nexus-admin-menu-card,
.nexus-home-stat-card,
.nexus-home-shortcut,
.nexus-home-dossier,
.nexus-annuaire-card,
.nexus-empty-state,
.nexus-echo-composer,
.nexus-echo-filters,
.nexus-echo-card,
.fr-alert.nexus-feedback,
#navigation-principale .fr-nav__link,
#navigation-principale .nexus-nav-dropdown__summary,
#navigation-principale .nexus-nav-dropdown__panel,
.fr-header,
.fr-footer {
  border-color: var(--nexus-accent-border, #55b98d) !important;
}

.nexus-home-stat-card__value,
.nexus-home-icon,
.nexus-home-hero__eyebrow,
.nexus-empty-state__eyebrow,
.nexus-annuaire-card__details dt,
.nexus-page-heading-row--clean h1,
.nexus-detail-section__header h2,
.nexus-volet-agents-grid strong,
.nexus-mobile-menu-toggle,
.nexus-wordmark__x,
.nexus-login-wordmark-title .nexus-wordmark__x {
  color: var(--nexus-accent, #00875a) !important;
}

.nexus-home-icon,
.nexus-echo-composer__icon,
.nexus-echo-stat-card__icon,
.nexus-mobile-menu-toggle:hover,
.nexus-mobile-menu-toggle:focus,
#navigation-principale .fr-nav__link:hover,
#navigation-principale .fr-nav__link:focus,
#navigation-principale .nexus-nav-dropdown__summary:hover,
#navigation-principale .nexus-nav-dropdown__summary:focus,
.nexus-admin-table tbody tr:hover,
.nexus-simple-list-table tbody tr:hover,
.nexus-controls-table-card tbody tr:hover {
  background: var(--nexus-accent-soft, #e9f7f0) !important;
  border-color: var(--nexus-accent, #00875a) !important;
}

.fr-input:focus,
.fr-select:focus,
.fr-upload:focus {
  box-shadow: inset 0 -2px 0 var(--nexus-accent, #00875a), 0 0 0 3px var(--nexus-accent-soft, #e9f7f0) !important;
}

.fr-header,
.fr-footer__bottom,
.nexus-page-heading-row--clean {
  border-color: var(--nexus-accent-border, #55b98d) !important;
}

@media (max-width: 62em) {
  #navigation-principale .nexus-nav-dropdown details:not([open]) .nexus-nav-dropdown__panel {
    display: none !important;
  }
  #navigation-principale .nexus-nav-dropdown details[open] .nexus-nav-dropdown__panel {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: .25rem;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
  }
  #navigation-principale .nexus-nav-dropdown__panel a,
  #navigation-principale .nexus-nav-dropdown__empty {
    display: flex !important;
    align-items: center;
    min-height: 2.75rem;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.nexus-echo-upload-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 5.5rem));
  gap: .5rem;
  width: 100%;
}
.nexus-echo-upload-preview[hidden] { display: none !important; }
.nexus-echo-upload-preview__item {
  border: 1px solid var(--nexus-accent-border, #ddd);
  background: #f6f6f6;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.nexus-echo-upload-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nexus-echo-upload-preview__name {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: .2rem .3rem;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: .7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 48em) {
  .nexus-echo-upload-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nexus-action-history-mini {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
}
.nexus-action-history-mini li {
  display: grid;
  grid-template-columns: minmax(8rem, auto) minmax(10rem, auto) 1fr;
  gap: .75rem;
  align-items: center;
  padding: .65rem .75rem;
  border: 1px solid var(--nexus-accent-border, #ddd);
  background: #fff;
}
.nexus-action-history-mini strong { color: var(--nexus-accent, #00875a); }
.nexus-action-history-mini small { color: #666; overflow-wrap: anywhere; }
@media (max-width: 48em) {
  .nexus-action-history-mini li { grid-template-columns: 1fr; gap: .25rem; }
}

/* Version 0.10.19 — avatars cliquables dans le suivi des volets */
.nexus-volet-agent-popover > summary,
.nexus-history-agent-popover > summary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
}
.nexus-volet-agent-popover > summary span:not(.nexus-agent-avatar),
.nexus-history-agent-popover > summary small {
  overflow-wrap: anywhere;
}
.nexus-action-history-mini--avatars li {
  position: relative;
  overflow: visible;
}
.nexus-action-history-mini--avatars .nexus-agent-popover-card,
.nexus-volet-agents-grid--with-avatars .nexus-agent-popover-card {
  left: 0;
  top: calc(100% + .5rem);
}
.nexus-volet-agents-grid--with-avatars > div {
  position: relative;
  overflow: visible;
}

/* Version 0.10.21 — menu mobile, Échos et export Excel */
@media (max-width: 62em) {
  #navigation-principale .nexus-nav-dropdown,
  #navigation-principale .nexus-nav-dropdown details {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  #navigation-principale .nexus-nav-main-list > .fr-nav__item > .fr-nav__link,
  #navigation-principale .nexus-nav-dropdown__summary {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  #navigation-principale .nexus-nav-dropdown__summary::after {
    flex: 0 0 auto;
    margin-left: .75rem;
  }

  #navigation-principale .nexus-nav-dropdown details[open] .nexus-nav-dropdown__panel {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .35rem;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  #navigation-principale .nexus-nav-dropdown__panel a,
  #navigation-principale .nexus-nav-dropdown__empty {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.nexus-echo-composer-block {
  position: relative;
  padding: .85rem;
  border: 1px solid var(--nexus-accent-border, #55b98d);
  background: linear-gradient(180deg, var(--nexus-accent-soft, #e9f7f0) 0%, #fff 46%);
}

.nexus-echo-composer-block .nexus-echo-composer {
  border-width: 2px !important;
  border-color: var(--nexus-accent, #00875a) !important;
  box-shadow: 0 12px 28px rgba(0, 97, 65, .10) !important;
}

.nexus-echo-composer-block .nexus-echo-composer__textarea {
  min-height: 8rem;
  border: 1px solid rgba(0, 97, 65, .32) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 97, 65, .04);
}

.nexus-echo-stream-label {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--text-mention-grey);
  font-size: .86rem;
}

.nexus-echo-stream-label::before,
.nexus-echo-stream-label::after {
  content: "";
  height: 1px;
  background: rgba(0, 97, 65, .18);
}

.nexus-echo-stream-label::before {
  width: 1.4rem;
}

.nexus-echo-stream-label::after {
  flex: 1 1 auto;
}

.nexus-echo-stream-label strong {
  color: var(--nexus-accent, #00875a);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .78rem;
}

.nexus-echo-stream-label span {
  font-weight: 650;
}

.nexus-echo-stream-label--feed {
  margin-top: .25rem;
}

.nexus-echo-filters--simple {
  border-style: dashed !important;
  background: #fbfdfc !important;
}

.nexus-export-columns-grid {
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)) !important;
  align-items: stretch;
}

.nexus-export-choice {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch !important;
  min-height: 4.65rem;
  height: 100%;
  padding: .75rem .85rem !important;
  border: 1px solid rgba(0, 97, 65, .18);
  background: #fff;
}

.nexus-export-choice input[type="checkbox"] {
  align-self: start;
  margin-top: .15rem;
}

.nexus-export-choice span {
  min-width: 0;
  height: 100%;
  align-content: start;
}

.nexus-export-choice strong,
.nexus-export-choice small {
  overflow-wrap: anywhere;
  word-break: normal;
}

.nexus-export-choice strong {
  line-height: 1.28;
}

@media (max-width: 48em) {
  .nexus-echo-composer-block {
    padding: .65rem;
  }

  .nexus-echo-stream-label {
    align-items: flex-start;
  }

  .nexus-export-columns-grid {
    grid-template-columns: 1fr !important;
  }
}



/* Version 0.10.22 — export Excel homogène et périmètre admin structure */
.nexus-export-columns-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)) !important;
  grid-auto-rows: 1fr;
  align-items: stretch !important;
  gap: .75rem;
}

.nexus-export-choice {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  align-items: start !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 6rem;
  padding: .85rem .9rem !important;
}

.nexus-export-choice input[type="checkbox"] {
  align-self: start;
  justify-self: start;
  margin-top: .2rem;
}

.nexus-export-choice > span {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
  min-width: 0;
  min-height: 100%;
}

.nexus-export-choice strong,
.nexus-export-choice small {
  display: block;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

.nexus-export-choice strong {
  line-height: 1.25;
}

.nexus-export-choice small {
  line-height: 1.2;
}

@media (max-width: 48em) {
  .nexus-export-columns-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 1fr;
  }

  .nexus-export-choice {
    min-height: 5.75rem;
  }
}

/* Version 0.10.23 — Échos administrables et export Excel strictement homogène */
.nexus-export-columns-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)) !important;
  grid-auto-rows: 1fr !important;
  align-items: stretch !important;
}

.nexus-export-choice {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 1.15rem minmax(0, 1fr) !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 6.25rem !important;
  margin: 0 !important;
}

.nexus-export-choice > span {
  justify-content: center !important;
  min-height: 100% !important;
}

@media (max-width: 48em) {
  .nexus-export-columns-grid {
    grid-template-columns: 1fr !important;
  }

  .nexus-export-choice {
    min-height: 6.25rem !important;
  }
}

/* Version 0.10.32 — finitions des tableaux d'administration */
.nexus-admin-table.fr-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.nexus-admin-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.nexus-admin-table th,
.nexus-admin-table td {
  vertical-align: middle;
}

.nexus-admin-table td {
  overflow-wrap: anywhere;
  word-break: normal;
}

.nexus-admin-table .nexus-icon-actions {
  min-width: 0;
}

.nexus-admin-table--administrations th:nth-child(1) { width: 8.5rem; }
.nexus-admin-table--administrations th:nth-child(3) { width: 13.5rem; }
.nexus-admin-table--administrations th:nth-child(4) { width: 8.5rem; }

.nexus-admin-table--questionnaires th:nth-child(1) { width: 38%; }
.nexus-admin-table--questionnaires th:nth-child(2) { width: 20%; }
.nexus-admin-table--questionnaires th:nth-child(3) { width: 11rem; }
.nexus-admin-table--questionnaires th:nth-child(4) { width: 6.5rem; }
.nexus-admin-table--questionnaires th:nth-child(5) { width: 8rem; }

.nexus-admin-table--referentiels th:nth-child(1) { width: 10rem; }
.nexus-admin-table--referentiels th:nth-child(3) { width: 8rem; }
.nexus-admin-table--referentiels th:nth-child(4) { width: 7rem; }
.nexus-admin-table--referentiels th:nth-child(5) { width: 8.5rem; }

.nexus-admin-table--comptes th:nth-child(1) { width: 9rem; }
.nexus-admin-table--comptes th:nth-child(2) { width: 8rem; }
.nexus-admin-table--comptes th:nth-child(3) { width: 8rem; }
.nexus-admin-table--comptes th:nth-child(4) { width: 9rem; }
.nexus-admin-table--comptes th:nth-child(8) { width: 7rem; }
.nexus-admin-table--comptes th:nth-child(9) { width: 5.75rem; }

.nexus-icon-actions--grid2 {
  display: grid;
  grid-template-columns: repeat(2, 2.1rem);
  justify-content: end;
  align-items: center;
  gap: .35rem;
  white-space: normal;
}

.nexus-icon-actions--grid2 form,
.nexus-icon-actions--grid2 a,
.nexus-icon-actions--grid2 button {
  margin: 0;
}

.nexus-icon-actions--grid2 .nexus-icon-button {
  width: 2.1rem;
  min-width: 2.1rem;
  height: 2.1rem;
}

.nexus-icon-actions--grid2 > span {
  grid-column: 1 / -1;
  justify-self: end;
  text-align: right;
}

.nexus-access-card,
.nexus-access-card .fr-badge,
.nexus-chip-list li,
.nexus-preview-pill,
.nexus-reference-pill,
.nexus-status-badge,
.fr-tag,
.fr-badge {
  border-radius: 0 !important;
}

@media (max-width: 62em) {
  .nexus-admin-table table {
    min-width: 52rem;
  }

  .nexus-admin-table--comptes table {
    min-width: 70rem;
  }
}
