body {
    background: #f5f8fb;
    color: #1f2a37;
    max-width: 100%;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

html {
    max-width: 100%;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

.home-services-section {
    padding-top: 3.5rem;
    scroll-margin-top: 5.5rem;
}

.navbar-brand-logo {
    background: #f8fafc;
    border-radius: 0.45rem;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28);
    flex-shrink: 0;
    height: 2.25rem;
    object-fit: contain;
    padding: 0.2rem;
    width: auto;
}

.navbar-brand-title {
    font-size: clamp(0.82rem, 1vw + 0.5rem, 1.05rem);
    letter-spacing: -0.015em;
    line-height: 1.25;
    max-width: min(100%, 19rem);
}

@media (min-width: 992px) {
    .navbar-brand-title {
        max-width: 24rem;
    }
}

.hero-home-copy {
    margin-left: 0;
}

.hero-home-actions {
    padding-top: 0.2rem;
}

.hero-home-logo-wrap {
    min-height: clamp(11rem, 28vw, 20rem);
    padding: 0.75rem 0;
}

.hero-home-logo {
    animation: hero-home-logo-fade-in 1.05s ease-out both;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: block;
    filter: drop-shadow(0 0.45rem 1rem rgba(15, 23, 42, 0.12));
    height: auto;
    object-fit: contain;
}

@keyframes hero-home-logo-fade-in {
    from {
        opacity: 0;
        transform: translateY(0.85rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-home-logo {
        animation: none;
    }
}

.portal-panel {
    border: 0;
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.08);
}

.dashboard-sidebar {
    background: #0f3f70;
    border-radius: 1.25rem;
    color: #fff;
}

.dashboard-sidebar a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
}

.dashboard-sidebar a:hover,
.dashboard-sidebar a:focus {
    color: #fff;
}

.status-pill {
    border-radius: 999px;
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
}

.client-dashboard-body {
    background: linear-gradient(180deg, #f1f5f9 0%, #e8edf3 100%);
    color: #0f172a;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/*
 * Tailwind utilities on controls (text-transparent, gradient text, opacity, -webkit-text-fill-color)
 * can leak into Chromium’s native <select> listbox so <option> labels paint as blank.
 * Preflight is off in base_client, but arbitrary utilities still affect the host <select>.
 * color-scheme + explicit option/optgroup colors restore black-on-white list rows.
 */
.client-dashboard-body select {
    color: #1e293b;
    color-scheme: light;
    -webkit-text-fill-color: #1e293b;
}

.client-dashboard-body select option,
.client-dashboard-body select optgroup {
    background-color: #fff !important;
    color: #0f172a !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #0f172a !important;
}

.client-sidebar {
    background: #0b132b;
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0.35rem 0 1.25rem rgba(2, 6, 23, 0.35);
    color: #fff;
    flex-direction: column;
    height: 100vh;
    left: 0;
    padding: 0 0.65rem 0.85rem;
    position: fixed;
    top: 0;
    width: 16rem;
    z-index: 1030;
}

.client-sidebar-logo {
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex;
    justify-content: center;
    margin: 0.5rem 0 0.85rem;
    padding: 0.25rem 0;
    text-decoration: none;
    width: 100%;
}

.client-sidebar-logo:focus-visible {
    border-radius: 0.85rem;
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 4px;
}

/* Sidebar brand — shared white capsule (client, agent, admin-style sidebars) */
.client-sidebar-logo__frame,
.agent-sidebar-logo__frame,
.sidebar-brand__frame {
    align-items: center;
    background: #ffffff !important;
    border-radius: 0.85rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    display: flex;
    height: 7.75rem;
    justify-content: center;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden !important;
    padding: 2px;
    width: 100%;
}

.client-sidebar-logo__img,
.client-sidebar-logo img,
.agent-sidebar-logo__img,
.agent-sidebar-logo img,
.sidebar-brand img {
    box-sizing: border-box;
    display: block;
    height: 100% !important;
    margin: 0;
    max-height: none;
    max-width: none;
    min-height: 0;
    min-width: 0;
    object-fit: contain !important;
    transform: scale(0.92) !important;
    width: 100% !important;
}

/* Espace client — sidebar plus étroite : capsule logo compacte + image limitée (règles agent séparées plus bas). */
.client-sidebar .client-sidebar-logo__frame,
.client-mobile-sidebar .client-sidebar-logo__frame {
    height: auto;
    max-height: none;
    min-height: 0;
    padding: 0.625rem 0.75rem;
    width: auto;
    max-width: calc(100% - 0.125rem);
}

.client-sidebar .client-sidebar-logo__img,
.client-sidebar .client-sidebar-logo img,
.client-mobile-sidebar .client-sidebar-logo__img,
.client-mobile-sidebar .client-sidebar-logo img {
    height: auto !important;
    max-height: 3.5rem !important;
    margin-left: auto;
    margin-right: auto;
    max-width: 100% !important;
    min-height: 0;
    object-fit: contain !important;
    transform: none !important;
    width: auto !important;
}

.client-mobile-sidebar .client-sidebar-logo--mobile {
    margin-bottom: 0.75rem;
    padding: 0.2rem 0;
}

/* Espace agent (back-office) — aligné sur le client : sidebar 16rem (w-64), capsule logo compacte. */
.agent-sidebar > .agent-sidebar-brand.agent-sidebar-brand--logo {
    gap: 0.5rem;
    padding: 0.65rem 0.75rem 0.55rem;
}

.agent-sidebar .agent-sidebar-logo__frame,
.agent-mobile-sidebar .agent-sidebar-logo__frame {
    height: auto;
    max-height: none;
    min-height: 0;
    padding: 0.625rem 0.75rem;
    width: auto;
    max-width: calc(100% - 0.125rem);
}

.agent-sidebar .agent-sidebar-logo__img,
.agent-sidebar .agent-sidebar-logo img,
.agent-mobile-sidebar .agent-sidebar-logo__img,
.agent-mobile-sidebar .agent-sidebar-logo img {
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
    max-height: 3.5rem !important;
    max-width: 100% !important;
    min-height: 0;
    object-fit: contain !important;
    transform: none !important;
    width: auto !important;
}

.client-nav {
    display: grid;
    gap: 0.4rem;
}

.client-nav-link {
    align-items: center;
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.82);
    display: flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 0.75rem;
    padding: 0.72rem 0.78rem;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.client-nav-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.client-nav-link i {
    color: rgba(255, 255, 255, 0.72);
    width: 1.15rem;
}

.client-nav-chevron {
    font-size: 0.72rem;
    margin-left: auto;
    transition: transform 180ms ease;
}

.client-nav-toggle[aria-expanded="true"] .client-nav-chevron {
    transform: rotate(180deg);
}

/* Parcours dossier : sous-menu forcé ouvert côté SSR — chevron « ouvert » même sans instance Collapse sur le bouton */
.client-nav-toggle--pinned .client-nav-chevron {
    transform: rotate(180deg);
}

.client-subnav {
    display: grid;
    gap: 0.25rem;
    padding: 0.25rem 0 0.5rem 2rem;
}

.client-subnav-link {
    align-items: center;
    border-radius: 0.65rem;
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    font-size: 0.86rem;
    font-weight: 700;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.client-subnav-link i {
    color: rgba(255, 255, 255, 0.62);
    width: 1rem;
}

.client-subnav-link:hover,
.client-subnav-link:focus,
.client-subnav-link.active {
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
}

.client-subnav-link:hover i,
.client-subnav-link:focus i,
.client-subnav-link.active i {
    color: #fff;
}

.client-nav-link:hover,
.client-nav-link:focus {
    background: rgba(147, 197, 253, 0.1);
    color: #fff;
    transform: translateX(2px);
}

.client-nav-link:hover i,
.client-nav-link:focus i {
    color: #fff;
}

/* Premium anchor items — align with Espace Agent (blue → emerald) */
a.client-nav-link.active {
    background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.32);
    color: #fff;
    transform: none;
}

a.client-nav-link.active i {
    color: #fff;
}

a.client-nav-link.active:hover,
a.client-nav-link.active:focus-visible {
    background: linear-gradient(135deg, #1d4ed8 0%, #047857 100%);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.25);
    color: #fff;
}

/* Toggle / submenu parent — subtle rail, not full gradient */
button.client-nav-link.active,
button.client-nav-toggle.client-nav-toggle--pinned {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 3px 0 0 #34d399;
    color: #fff;
    transform: none;
}

button.client-nav-link.active i,
button.client-nav-toggle.client-nav-toggle--pinned i {
    color: rgba(255, 255, 255, 0.95);
}

.client-subnav-link.active {
    background: rgba(16, 185, 129, 0.18);
    box-shadow: inset 2px 0 0 rgba(52, 211, 153, 0.85);
    color: #fff;
}

.client-subnav-link.active i {
    color: #a7f3d0;
}

/* Force Sidebar Subnav Links to be completely visible (Tailwind / inheritance on dark collapse). */
.client-sidebar .client-subnav,
#clientNewDemandeMenuDesktop .client-subnav,
#clientNewDemandeMenuMobile .client-subnav {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.client-sidebar .client-subnav-link,
#clientNewDemandeMenuDesktop .client-subnav-link,
#clientNewDemandeMenuMobile .client-subnav-link {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    padding: 8px 16px !important;
}

/* Hover state just in case */
.client-sidebar .client-subnav-link:hover,
#clientNewDemandeMenuDesktop .client-subnav-link:hover,
#clientNewDemandeMenuMobile .client-subnav-link:hover {
    color: #38bdf8 !important; /* sky blue on hover */
    -webkit-text-fill-color: #38bdf8 !important;
}

.client-mobile-sidebar {
    background: #0b132b;
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    color: #fff;
}

.client-mobile-sidebar .offcanvas-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    color: #f8fafc;
}

.client-mobile-sidebar .offcanvas-title {
    color: #f8fafc;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.client-main {
    isolation: isolate;
    max-width: 100%;
    min-height: 100vh;
    min-width: 0;
    overflow-x: hidden;
    width: 100%;
}

.client-topbar {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(0, 86, 179, 0.08);
    display: flex;
    min-height: 64px;
    padding: 0 1rem;
    position: sticky;
    top: 0;
}

.client-topbar--premium {
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    gap: 0.75rem;
    justify-content: space-between;
    min-height: 4rem;
    padding: 0 1.5rem;
}

.client-topbar__left,
.client-topbar__right {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    min-width: 0;
}

.client-topbar__right {
    flex-shrink: 0;
    margin-left: auto;
}

.client-topbar-title {
    color: #475569;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.client-topbar-menu-btn {
    align-items: center;
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    padding: 0;
    width: 2.25rem;
}

.client-notification-btn {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(0, 86, 179, 0.12);
    border-radius: 999px;
    color: #0056b3;
    display: inline-flex;
    flex-shrink: 0;
    height: 2.5rem;
    justify-content: center;
    position: relative;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    width: 2.5rem;
}

.client-notification-btn:hover,
.client-notification-btn:focus {
    background: #f8fbff;
    border-color: rgba(0, 86, 179, 0.22);
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.1);
    color: #00448f;
}

.client-notif-menu {
    max-height: 22rem;
    min-width: 18rem;
    overflow-y: auto;
    padding-bottom: 0.35rem;
}

.client-notif-item {
    align-items: flex-start;
    display: flex;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    white-space: normal;
}

.client-notif-item--unread {
    background: rgba(0, 86, 179, 0.05);
}

.client-notif-item--unread .client-notif-item__message {
    font-weight: 600;
}

.client-notif-item__icon {
    flex-shrink: 0;
    line-height: 1.35;
    margin-top: 0.1rem;
    width: 1.1rem;
}

.client-notif-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.client-notif-item__message {
    font-size: 0.8125rem;
    line-height: 1.4;
}

.client-notif-item__meta {
    font-size: 0.6875rem;
}

.client-notification-badge {
    align-items: center;
    background: #dc3545;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.625rem;
    font-weight: 800;
    height: 1.05rem;
    justify-content: center;
    line-height: 1;
    min-width: 1.05rem;
    padding: 0 0.2rem;
    position: absolute;
    right: 0.12rem;
    top: 0.1rem;
}

.client-user-chip {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    color: inherit;
    display: inline-flex;
    gap: 0.55rem;
    max-width: min(100%, 16rem);
    padding: 0.28rem 0.65rem 0.28rem 0.28rem;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.client-user-chip:hover,
.client-user-chip:focus {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    color: inherit;
}

.client-user-avatar {
    align-items: center;
    background: linear-gradient(145deg, #0056b3 0%, #1672d8 100%);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 800;
    height: 2.35rem;
    justify-content: center;
    letter-spacing: 0.02em;
    width: 2.35rem;
}

.client-user-text {
    display: grid;
    gap: 0;
    line-height: 1.2;
    min-width: 0;
    text-align: left;
}

.client-user-greeting {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 600;
}

.client-user-name {
    color: #1f2a37;
    font-size: 0.84rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .client-user-text {
        display: none;
    }

    .client-user-chip {
        padding: 0.2rem;
    }

    .client-topbar-title {
        font-size: 0.92rem;
    }
}

.client-content {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding: 1rem 1.1rem;
    width: 100%;
}

/* Dashboard — vertical rhythm (évite le collage hero / stats / tableau) */
.client-dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.client-dashboard-layout > .client-hero {
    margin-bottom: 0;
}

.client-dashboard-layout > .client-stats-row {
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.client-dashboard-layout > .client-stats-row > [class*='col-'] {
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

@media (min-width: 768px) {
    .client-dashboard-layout {
        gap: 2.5rem;
    }

    .client-dashboard-layout > .client-stats-row {
        --bs-gutter-x: 1.25rem;
    }
}

.client-hero,
.client-table-card,
.client-profile-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 86, 179, 0.08);
    border-radius: 0.95rem;
    box-shadow: 0 0.65rem 1.35rem rgba(15, 23, 42, 0.06);
}

.client-hero {
    display: block;
    padding: 1.05rem 1.2rem;
}

.client-hero__title-row {
    gap: 0.75rem 1rem;
}

.client-hero__title-row .h2 {
    flex: 1 1 auto;
    min-width: min(100%, 12rem);
}

.client-hero__cta {
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.client-hero__cta:hover {
    box-shadow: 0 0.35rem 0.75rem rgba(0, 86, 179, 0.22);
    transform: translateY(-1px);
}

.client-hero__lead {
    line-height: 1.55;
    max-width: none;
}

.client-content .client-hero .h2 {
    font-size: 1.35rem;
}

.client-eyebrow {
    color: #0056b3;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.client-reclamation-banner {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.98) 0%, rgba(255, 255, 255, 0.98) 55%);
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 0.95rem;
    box-shadow: 0 0.55rem 1.1rem rgba(15, 23, 42, 0.05);
    padding: 1.1rem 1.2rem;
}

.client-reclamation-banner__content {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
}

.client-reclamation-banner__icon {
    align-items: center;
    background: rgba(217, 119, 6, 0.12);
    border-radius: 0.75rem;
    color: #b45309;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.35rem;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.client-reclamation-banner__text {
    flex: 1 1 14rem;
    min-width: 0;
}

.client-reclamation-banner__cta {
    font-weight: 700;
}

.client-demandes-actions {
    align-items: center;
    white-space: nowrap;
}

.client-demandes-actions .btn {
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .client-reclamation-banner__cta {
        width: 100%;
    }
}

.btn-srm-primary {
    background: #0056b3;
    border-color: #0056b3;
    color: #fff;
    font-weight: 800;
}

.btn-srm-primary:hover,
.btn-srm-primary:focus {
    background: #00448f;
    border-color: #00448f;
    color: #fff;
}

.client-stat-card {
    align-items: center;
    border: 0;
    border-radius: 0.95rem;
    box-shadow: 0 0.55rem 1.1rem rgba(15, 23, 42, 0.07);
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 0;
    overflow: hidden;
    padding: 0.85rem 1rem;
    position: relative;
}

.client-stat-card::after {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    content: "";
    height: 5.5rem;
    position: absolute;
    right: -1.25rem;
    top: -2rem;
    width: 5.5rem;
}

.client-stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.2rem;
    opacity: 0.9;
}

.client-stat-card strong {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.05;
}

.client-stat-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.15rem;
    height: 2.5rem;
    justify-content: center;
    position: relative;
    width: 2.5rem;
    z-index: 1;
}

.stat-blue {
    background: linear-gradient(135deg, #0056b3, #1672d8);
}

.stat-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.stat-green {
    background: linear-gradient(135deg, #28a745, #39c96b);
}

.client-table-card,
.client-profile-card {
    padding: 0.95rem 1.05rem;
}

.client-card-header {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.client-table-count {
    background: #eaf3ff;
    border-radius: 999px;
    color: #0056b3;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.32rem 0.65rem;
}

.client-demandes-table {
    font-size: 0.875rem;
}

.client-demandes-table thead th {
    background: #f5f8fc;
    border-bottom: 0;
    color: #64748b;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    padding: 0.55rem 0.75rem;
    text-transform: uppercase;
}

.client-demandes-table tbody td {
    border-color: #edf2f7;
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}

.client-demandes-table .btn-sm {
    font-size: 0.8125rem;
    padding: 0.28rem 0.65rem;
}

.client-demandes-table tbody tr:hover {
    background: #f8fbff;
}

/* Dashboard — contrats actifs + profil (grille) */
.client-dashboard-contracts-profile-row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.client-dashboard-contracts-profile-row > [class*='col-'] {
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

.client-contrats-services-card .client-card-header .h4 {
    font-size: 1.05rem;
}

.client-service-contract-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.client-service-contract-row {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(0, 86, 179, 0.12);
    border-radius: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.client-service-contract-row--eau {
    background: linear-gradient(135deg, rgba(231, 246, 255, 0.92) 0%, #fff 58%);
    border-color: rgba(23, 162, 184, 0.35);
}

.client-service-contract-row--elec {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.96) 0%, #fff 52%);
    border-color: rgba(245, 158, 11, 0.42);
}

.client-service-contract-row--autre {
    background: linear-gradient(135deg, rgba(245, 248, 252, 0.95) 0%, #fff 60%);
    border-color: rgba(100, 116, 139, 0.2);
}

.client-service-contract-row__main {
    align-items: flex-start;
    display: flex;
    flex: 1 1 14rem;
    gap: 0.75rem;
    min-width: 0;
}

.client-service-contract-row__icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.client-service-contract-row__text {
    min-width: 0;
}

.client-service-contract-row__label {
    color: #64748b;
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.client-service-contract-row__value {
    color: #0f172a;
    display: block;
    font-size: 1rem;
}

.client-service-contract-row__meta {
    color: #64748b;
    display: block;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.client-service-contract-row__dot {
    opacity: 0.55;
    padding: 0 0.15rem;
}

.client-service-contract-row__action {
    flex-shrink: 0;
}

.client-service-contract-row__action .btn {
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    white-space: normal;
}

@media (min-width: 576px) {
    .client-service-contract-row__action .btn {
        white-space: nowrap;
    }
}

.client-contrats-empty {
    background: rgba(245, 248, 252, 0.65);
    border: 1px dashed rgba(0, 86, 179, 0.22);
    border-radius: 0.65rem;
    line-height: 1.5;
    padding: 0.85rem 1rem;
}

/* Mes demandes — pagination (Bootstrap, thème SRM) */
.client-demandes-pagination .page-link {
    border-color: rgba(0, 86, 179, 0.18);
    color: #0056b3;
}

.client-demandes-pagination .page-item.active .page-link {
    background: #0056b3;
    border-color: #0056b3;
    color: #fff;
    font-weight: 800;
}

.client-demandes-pagination .page-item.disabled .page-link {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.client-hero--suivi .client-hero__inner {
    align-items: center;
}

.client-hero--suivi .client-hero__info {
    flex: 1 1 auto;
    min-width: min(100%, 14rem);
}

.client-hero--suivi .client-hero__info .h2 {
    margin-bottom: 0.5rem;
}

.client-hero-type-badge {
    background: rgba(0, 86, 179, 0.08);
    border: 1px solid rgba(0, 86, 179, 0.12);
    border-radius: 999px;
    color: #0056b3;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 0.2rem 0.65rem;
}

.client-hero-count-badge {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.35rem 0.6rem;
    vertical-align: middle;
}

.client-hero-action {
    align-items: center;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 600;
    justify-content: center;
    line-height: 1.25;
    min-height: 2.375rem;
    padding: 0.5rem 0.95rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.client-hero-action:hover {
    box-shadow: 0 0.2rem 0.5rem rgba(15, 23, 42, 0.08);
}

.client-hero-back {
    background: #fff;
    border-color: #d8e2ee;
    color: #475569;
}

.client-hero-back:hover,
.client-hero-back:focus {
    background: #f8fafc;
    border-color: #c5d3e3;
    color: #1f2a37;
}

.client-hero--suivi .client-hero-action.btn-outline-primary {
    border-color: rgba(0, 86, 179, 0.35);
    color: #0056b3;
}

.client-hero--suivi .client-hero-action.btn-outline-primary:hover,
.client-hero--suivi .client-hero-action.btn-outline-primary:focus {
    background: rgba(0, 86, 179, 0.06);
    border-color: #0056b3;
    color: #00448f;
}

.client-hero--suivi .client-hero-action.btn-srm-primary {
    font-weight: 600;
}

.client-hero--suivi .client-hero-action.btn-srm-primary:hover,
.client-hero--suivi .client-hero-action.btn-srm-primary:focus {
    box-shadow: 0 0.35rem 0.75rem rgba(0, 86, 179, 0.22);
}

.client-demandes-list-card .client-card-header {
    margin-bottom: 0.65rem;
}

.client-demandes-toolbar {
    align-items: center;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 0.75rem;
    margin-bottom: 0;
    padding: 0 0 0.85rem;
}

.client-demandes-toolbar__filters {
    align-items: center;
    display: flex;
    flex: 1 1 16rem;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    min-width: 0;
}

.client-filter-select {
    flex: 1 1 10.5rem;
    font-size: 0.8125rem;
    max-width: 100%;
    min-height: 2.375rem;
    min-width: 10.5rem;
    padding: 0.42rem 1.75rem 0.42rem 0.65rem;
    width: auto;
}

.client-demandes-toolbar .client-filter-select:focus,
.client-demandes-toolbar .client-filter-select:focus-visible {
    box-shadow: 0 0 0 0.12rem rgba(13, 110, 253, 0.22);
}

.client-demandes-toolbar__actions {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: auto;
}

.client-demandes-toolbar .client-hero-action {
    min-height: 2.375rem;
}

.client-demandes-table-wrap {
    margin-top: 0.65rem;
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    z-index: 1;
}

.client-demandes-list-card .client-demandes-table tbody td {
    padding: 0.45rem 0.75rem;
}

.client-demandes-list-card .client-empty-state {
    padding: 1.75rem 1rem 1.25rem;
}

@media (max-width: 767.98px) {
    .client-demandes-toolbar__filters,
    .client-demandes-toolbar__actions {
        flex: 1 1 100%;
        margin-left: 0;
        width: 100%;
    }

    .client-filter-select {
        flex: 1 1 100%;
        width: 100%;
    }

    .client-demandes-toolbar__actions {
        justify-content: flex-end;
    }
}

.client-status-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 0.26rem 0.55rem;
}

.status-new {
    background: #e8f3ff;
    color: #0056b3;
}

.status-checking {
    background: #f1e8ff;
    color: #7c3aed;
}

.status-approved,
.status-done {
    background: #e9f9ee;
    color: #1d8f3d;
}

.status-rejected {
    background: #fdecef;
    color: #dc3545;
}

.status-complement {
    background: #fff4e0;
    color: #b45309;
}

.status-default {
    background: #eef2f7;
    color: #475569;
}

.client-empty-state {
    padding: 2rem 1rem;
    text-align: center;
}

.client-table-card .client-card-header .h4,
.client-profile-card .client-card-header .h4 {
    font-size: 1.05rem;
}

.client-empty-state i {
    color: #0056b3;
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.client-profile-avatar {
    align-items: center;
    background: #eaf3ff;
    border-radius: 0.85rem;
    color: #0056b3;
    display: inline-flex;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.client-profile-field {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 0.85rem;
    height: 100%;
    padding: 0.85rem 0.95rem;
}

.client-profile-field span {
    color: #64748b;
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.client-profile-field strong {
    color: #1f2a37;
    overflow-wrap: anywhere;
}

.client-form-intro {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #e6eef8;
    border-radius: 1rem;
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
}

.client-form-hero,
.client-form-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}

.client-form-intro-compact {
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
}

.client-profile-avatar-sm {
    border-radius: 0.8rem;
    height: 2.35rem;
    width: 2.35rem;
}

/* Client dashboard — wizard panels: inactive steps must not stack or intercept input */
.dashboard-wizard-step[hidden],
.dashboard-wizard-step.d-none {
    display: none !important;
}

.dashboard-wizard-step:not(.active) {
    pointer-events: none;
}

.dashboard-wizard-step.active {
    position: relative;
    z-index: 1;
}

/* Nouvelle demande — stepper (états .active / .completed pilotés par le JS du wizard) */
#dashboard-demande-stepper > .dashboard-form-step.active {
    background: rgb(239 246 255 / 0.6) !important;
    border-color: rgb(219 234 254) !important;
}

#dashboard-demande-stepper > .dashboard-form-step.completed {
    background: rgb(248 250 252 / 0.5) !important;
    border-color: rgb(241 245 249) !important;
}

#dashboard-demande-stepper .dashboard-form-step.active .dashboard-form-step-circle {
    background: #2563eb !important;
    box-shadow: 0 1px 2px 0 rgb(37 99 235 / 0.2);
    color: #fff !important;
}

#dashboard-demande-stepper .dashboard-form-step.completed .dashboard-form-step-circle {
    background: #10b981 !important;
    box-shadow: none;
    color: #fff !important;
}

/* Nouvelle demande — étape 1 : grille resserrée et centrée pour personne physique */
.dashboard-demande-step1-grid {
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
}

.dashboard-demande-step1-grid.dashboard-demande-step1-grid--full {
    max-width: 100%;
}

/* Inscription — type de client (radios) */
.client-type-choice {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 576px) {
    .client-type-choice {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

.client-type-choice .form-check {
    margin-bottom: 0;
}

.dashboard-client-info-card {
    background: #f8fbff;
    border: 1px solid #e6eef8;
    border-radius: 1rem;
    padding: 1rem;
}

.dashboard-client-info-card .form-control[readonly] {
    background-color: #fff;
    border-color: #dbe7f5;
    color: #334155;
}

.dashboard-form-review {
    align-items: center;
    background: rgb(248 250 252 / 0.65);
    border: 1px solid rgb(241 245 249);
    border-radius: 0.75rem;
    color: #334155;
    display: flex;
    gap: 0.85rem;
    padding: 1.25rem;
}

.dashboard-form-review i {
    align-items: center;
    background: #2563eb;
    border-radius: 0.75rem;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

.dashboard-form-review p {
    color: #64748b;
    font-size: 0.875rem;
}

/* Client — suivi workflow (étapes Evenement) */
.client-workflow-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    justify-content: space-between;
}

.client-workflow-step {
    flex: 1 1 120px;
    max-width: 160px;
    position: relative;
    text-align: center;
}

.client-workflow-step:not(:last-child)::after {
    background: #dbe3ef;
    content: "";
    height: 2px;
    left: calc(50% + 1.4rem);
    position: absolute;
    top: 1.1rem;
    width: calc(100% - 2.8rem);
}

.client-workflow-step.completed:not(:last-child)::after {
    background: #198754;
}

.client-workflow-dot {
    align-items: center;
    background: #e9eef5;
    border: 3px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
    color: #64748b;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 800;
    height: 2.25rem;
    justify-content: center;
    margin: 0 auto 0.35rem;
    width: 2.25rem;
}

.client-workflow-step.completed .client-workflow-dot {
    background: #198754;
    color: #fff;
}

.client-workflow-step.active .client-workflow-dot {
    background: #0056b3;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.2);
}

.client-workflow-label {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
}

.client-workflow-step.completed .client-workflow-label,
.client-workflow-step.active .client-workflow-label {
    color: #1f2a37;
}

.client-workflow-step.future .client-workflow-dot {
    background: #f1f5f9;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35);
    color: #94a3b8;
}

.client-workflow-step.future .client-workflow-label {
    color: #94a3b8;
}

.client-workflow-step.future:not(:last-child)::after {
    background: #e2e8f0;
}

/* Client — suivi demande (show) */
.srm-client-suivi-card {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 0.95rem;
    box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.srm-client-suivi-card__header {
    align-items: center;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
    border-bottom: 1px solid #e8eef5;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 0.85rem;
    justify-content: space-between;
    padding: 0.95rem 1.1rem;
}

.srm-client-suivi-card__header--compact {
    padding: 0.85rem 1rem;
}

.srm-client-suivi-card__body {
    padding: 1rem 1.1rem 1.1rem;
}

.srm-client-suivi-card__body--compact {
    padding: 0.75rem 1rem 0.85rem;
}

.srm-suivi-dossier-messagerie-row > [class*="col-"] {
    display: flex;
}

.srm-suivi-dossier-messagerie-row .srm-client-suivi-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.srm-suivi-dossier-messagerie-row .srm-client-suivi-card__body {
    flex: 1 1 auto;
}

.srm-suivi-workflow-panel {
    background: #fff;
    border-color: #e2e8f0 !important;
}

.client-workflow-step.stepper-clickable:hover .client-workflow-dot,
.client-workflow-step.stepper-clickable:focus-visible .client-workflow-dot {
    transform: scale(1.08);
}

.client-workflow-step.stepper-clickable:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.45);
    outline-offset: 4px;
}

.srm-suivi-details-accordion .accordion-button {
    background: #f8fafc;
    font-size: 0.9rem;
}

.srm-suivi-details-accordion .accordion-button:not(.collapsed) {
    background: #fff;
    box-shadow: none;
}

.srm-historique-item {
    scroll-margin-top: 6rem;
}

.srm-suivi-workflow-steps .client-workflow-dot {
    height: 2.5rem;
    width: 2.5rem;
}

.client-workflow-steps--compact .client-workflow-step {
    flex: 1 1 140px;
    max-width: 200px;
}

.client-workflow-steps--compact .client-workflow-dot {
    font-size: 0.7rem;
}

.process-steps.client-workflow-steps--compact .process-step {
    flex: 1 1 140px;
}

.srm-workflow-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.srm-workflow-legend__item {
    align-items: center;
    color: #64748b;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 600;
    gap: 0.45rem;
}

.srm-workflow-legend__item .dot {
    border-radius: 999px;
    display: inline-block;
    height: 0.65rem;
    width: 0.65rem;
}

.srm-workflow-legend__item--done .dot {
    background: #198754;
}

.srm-workflow-legend__item--current .dot {
    background: #0056b3;
    box-shadow: 0 0 0 0.15rem rgba(0, 86, 179, 0.22);
}

.srm-workflow-legend__item--pending .dot {
    background: #e2e8f0;
}

.srm-suivi-dl dt {
    border-top: 1px solid #edf2f7;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.65rem 0 0.2rem;
    text-transform: uppercase;
}

.srm-suivi-dl dd {
    border-bottom: 1px solid #edf2f7;
    color: #1f2a37;
    font-weight: 600;
    margin-bottom: 0;
    padding: 0 0 0.65rem;
}

.srm-suivi-dl dt:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.srm-client-suivi-card__body--compact .srm-suivi-dl dt {
    padding-top: 0.5rem;
}

.srm-client-suivi-card__body--compact .srm-suivi-dl dd {
    padding-bottom: 0.5rem;
}

/* Données transmises — compact property grid */
.srm-transmitted-data {
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 0.65rem;
    padding: 0.75rem 0.85rem;
}

.srm-prop-grid {
    display: grid;
    gap: 0.65rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

@media (min-width: 768px) {
    .srm-prop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .srm-prop-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Identité & localisation — 5 champs sans trou */
.srm-prop-grid--identity {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .srm-prop-grid--identity {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .srm-prop-grid--identity {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.srm-prop-stack {
    display: grid;
    gap: 0.6rem;
    margin: 0;
}

.srm-prop-item {
    margin: 0;
    min-width: 0;
}

.srm-prop-item dt {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.3;
    margin: 0 0 0.2rem;
    text-transform: uppercase;
}

.srm-prop-item dd {
    color: #1f2a37;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    overflow-wrap: anywhere;
}

.srm-transmitted-data__extras {
    border-top: 1px solid #e2e8f0;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
}

.srm-client-suivi-card .h5 {
    font-size: 1rem;
}

.srm-suivi-empty {
    align-items: center;
    background: #f8fafc;
    border-radius: 0.85rem;
    display: flex;
    padding: 1rem 1.1rem;
}

.srm-suivi-docs-table {
    font-size: 0.875rem;
}

.srm-suivi-docs-table thead th {
    background: #f5f8fc;
    border-bottom: 1px solid #e8eef5;
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.55rem 0.75rem;
    text-transform: uppercase;
}

.srm-suivi-docs-table tbody td {
    border-color: #edf2f7;
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}

.srm-client-doc-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.srm-client-doc-list__item {
    align-items: center;
    background: #fafbfc;
    border: 1px solid #edf2f7;
    border-radius: 0.85rem;
    display: flex;
    gap: 0.85rem;
    padding: 0.75rem 0.95rem;
}

.srm-client-doc-list__action {
    margin-left: auto;
}

.srm-parcours-step-docs__label {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.srm-parcours-step-docs__row:last-child {
    margin-bottom: 0 !important;
}

.srm-parcours-commercial {
    border-radius: 0.85rem;
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 0;
}

.srm-parcours-commercial__inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.05rem;
}

.srm-parcours-commercial__inner--stack {
    align-items: stretch;
    flex-direction: column;
    gap: 0.85rem;
}

.srm-parcours-commercial__icon {
    align-items: center;
    background: rgba(0, 86, 179, 0.08);
    border-radius: 0.65rem;
    color: #0056b3;
    display: flex;
    flex-shrink: 0;
    font-size: 1.35rem;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.srm-parcours-commercial__icon--payment {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.srm-parcours-commercial__title {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.srm-parcours-commercial__text {
    color: #64748b;
    font-size: 0.8125rem;
}

.srm-parcours-commercial__amount {
    color: #334155;
    font-size: 0.9rem;
}

.srm-parcours-commercial__amount strong {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
}

.srm-parcours-commercial--devis {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f6ff 100%);
    border: 1px solid rgba(0, 86, 179, 0.14);
    border-left: 4px solid #0056b3;
    box-shadow: 0 1px 4px rgba(0, 86, 179, 0.06);
}

.srm-parcours-commercial--payment {
    background: linear-gradient(135deg, #fffdf8 0%, #fff8eb 100%);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.srm-parcours-commercial__action {
    white-space: nowrap;
}

.srm-parcours-commercial__hint {
    line-height: 1.45;
    max-width: 42rem;
}

.srm-parcours-commercial__actions-row {
    align-items: stretch;
    width: 100%;
}

.srm-parcours-commercial__action--download {
    --bs-btn-border-color: #0056b3;
    --bs-btn-color: #0056b3;
    --bs-btn-hover-bg: #0056b3;
    --bs-btn-hover-border-color: #0056b3;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #004494;
    --bs-btn-active-border-color: #004494;
    font-weight: 600;
}

.srm-payment-checkout {
    background: #fff;
}

@media (max-width: 575.98px) {
    .srm-parcours-commercial__inner {
        align-items: stretch;
        flex-direction: column;
    }

    .srm-parcours-commercial__action {
        width: 100%;
    }

    .srm-parcours-commercial__actions-row .btn {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }
}

.srm-client-doc-list__icon {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    font-size: 1.35rem;
    justify-content: center;
    width: 1.75rem;
}

.srm-client-doc-list__body {
    flex: 1;
    min-width: 0;
}

.srm-client-doc-list__title {
    color: #0f172a;
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
}

.srm-client-doc-list__meta {
    line-height: 1.35;
}

.srm-historique-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.srm-historique-item {
    background: #fafbfc;
    border: 1px solid #edf2f7;
    border-radius: 0.85rem;
    border-left-width: 4px;
    padding: 0.95rem 1.05rem 1rem;
}

.srm-historique-item--closed {
    border-left-color: #22c55e;
}

.srm-historique-item--open {
    border-left-color: #0056b3;
    box-shadow: 0 6px 18px rgba(0, 86, 179, 0.06);
}

.srm-historique-item__head {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.srm-historique-item__title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

.srm-historique-item__date {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.srm-historique-item__comment {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 0.75rem;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.45;
    padding: 0.75rem 0.9rem;
}

.srm-historique-item__comment-label {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.client-timeline-item:last-child {
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 767.98px) {
    .client-workflow-step:not(:last-child)::after {
        display: none;
    }

    .client-workflow-steps {
        flex-direction: column;
        text-align: left;
    }

    .client-workflow-step {
        align-items: center;
        display: flex;
        gap: 0.75rem;
        max-width: none;
        text-align: left;
    }

    .client-workflow-dot {
        margin: 0;
    }
}

.agent-body {
    background: #f3f6fb;
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
}

.agent-sidebar {
    /* Midnight blue — aligns with SRM logo blues, premium corporate shell */
    background: #0f172a;
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    color: #f8fafc;
    flex-direction: column;
    height: 100vh;
    left: 0;
    padding: 0;
    position: fixed;
    top: 0;
    width: 16rem;
    z-index: 1030;
}

.agent-sidebar-brand {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    flex-shrink: 0;
    gap: 0.75rem;
    margin-bottom: 0;
    padding: 1.25rem 1.15rem 1.1rem;
}

.agent-sidebar-brand--logo {
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.agent-sidebar-brand--logo:hover,
.agent-sidebar-brand--logo:focus-visible {
    opacity: 0.95;
}

.agent-sidebar-brand--logo:focus-visible {
    border-radius: 0.75rem;
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 3px;
}

.agent-sidebar-brand--logo-offcanvas {
    margin-right: 0.5rem;
    min-width: 0;
    padding: 0;
}

.agent-sidebar-brand--offcanvas {
    border-bottom-color: rgba(148, 163, 184, 0.12);
    padding-bottom: 1rem;
    width: 100%;
}

.agent-mobile-sidebar .offcanvas-header.agent-sidebar-brand--offcanvas {
    padding: 0.65rem 0.85rem 0.65rem;
}

.agent-sidebar-brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.agent-sidebar-brand__title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.agent-sidebar-brand__subtitle {
    color: rgba(248, 250, 252, 0.65);
    font-size: 0.78rem;
    font-weight: 500;
}

.agent-brand-mark {
    align-items: center;
    background: #2563eb;
    border-radius: 0.75rem;
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    height: 2.5rem;
    justify-content: center;
    letter-spacing: 0.06em;
    width: 2.5rem;
}

.agent-sidebar-nav-wrap {
    overflow-y: auto;
    padding: 0.65rem 0.75rem 1.25rem;
    scrollbar-color: rgba(148, 163, 184, 0.35) rgba(15, 23, 42, 0.45);
    scrollbar-width: thin;
}

.agent-sidebar-nav {
    --bs-nav-link-padding-x: 0.85rem;
    --bs-nav-link-padding-y: 0.65rem;
}

.agent-sidebar-section-label {
    color: rgba(148, 186, 220, 0.72) !important;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    padding-left: 1rem;
    pointer-events: none;
    text-transform: uppercase;
    user-select: none;
}

.agent-sidebar-link {
    align-items: center;
    border-radius: 0 999px 999px 0;
    color: rgba(248, 250, 252, 0.8);
    display: flex;
    gap: 0.65rem;
    margin-right: 0.35rem;
    padding: 0.65rem 0.85rem 0.65rem 1rem;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 200ms ease;
}

.agent-sidebar-link:not(.active):hover,
.agent-sidebar-link:not(.active):focus-visible {
    background: rgba(147, 197, 253, 0.1);
    color: #fff;
}

.agent-sidebar-link.active {
    background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
    color: #fff;
}

.agent-sidebar-link.active:hover,
.agent-sidebar-link.active:focus-visible {
    background: linear-gradient(135deg, #1d4ed8 0%, #047857 100%);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.22);
    color: #fff;
}

.agent-sidebar-link.active .agent-sidebar-link__icon {
    color: #fff;
    opacity: 1;
}

.agent-sidebar-link__icon {
    color: rgba(248, 250, 252, 0.85);
    flex-shrink: 0;
    font-size: 1.05rem;
    width: 1.25rem;
}

.agent-sidebar-link__text {
    flex: 1 1 auto;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    min-width: 0;
}

.agent-sidebar-link__badge {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 600;
    margin-left: auto;
    min-width: 1.35rem;
    padding: 0.2em 0.45em;
}

.agent-sidebar-link.active .agent-sidebar-link__badge.text-bg-danger {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #dc3545 !important;
}

.agent-sidebar-link.active .agent-sidebar-link__badge.border-primary-subtle {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
}

/* Legacy nav classes (mobile fallback) */
.agent-nav {
    display: grid;
    gap: 0.35rem;
}

.agent-nav-link {
    align-items: center;
    border-radius: 0 999px 999px 0;
    color: rgba(248, 250, 252, 0.8);
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.agent-nav-link:not(.active):hover,
.agent-nav-link:not(.active):focus {
    background: rgba(147, 197, 253, 0.1);
    color: #fff;
}

.agent-nav-link.active {
    background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
    color: #fff;
}

.agent-main {
    max-width: 100%;
    min-height: 100vh;
    min-width: 0;
    overflow-x: hidden;
    width: 100%;
}

/* Floating success (Tailwind emerald palette equivalent) — agent back-office */
.agent-flash-success-portal {
    box-sizing: border-box;
    left: 50%;
    max-width: 36rem;
    padding: 0.75rem 1rem 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    z-index: 1080;
}

.agent-flash-success-portal .agent-flash-success-card {
    pointer-events: auto;
}

.agent-flash-success-card {
    align-items: center;
    animation: agent-flash-fade-in 0.35s ease-out;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 0.75rem;
    box-shadow:
        0 10px 15px -3px rgba(15, 23, 42, 0.08),
        0 4px 6px -4px rgba(15, 23, 42, 0.06);
    color: #047857;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 1rem;
}

.agent-flash-success-card__icon {
    color: #059669;
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.agent-flash-success-card__text {
    flex: 1 1 auto;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
}

.agent-flash-success-card__close {
    background: transparent;
    border: 0;
    border-radius: 0.375rem;
    color: #047857;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    opacity: 0.65;
    padding: 0.25rem;
    transition: opacity 0.15s ease;
}

.agent-flash-success-card__close:hover,
.agent-flash-success-card__close:focus-visible {
    opacity: 1;
}

.animate-fade-in {
    animation: agent-flash-fade-in 0.35s ease-out;
}

@keyframes agent-flash-fade-in {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agent-topbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.agent-notif-bell-btn {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #475569;
    display: inline-flex;
    height: 2.5rem;
    justify-content: center;
    padding: 0;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
    width: 2.5rem;
}

.agent-notif-bell-btn:hover,
.agent-notif-bell-btn:focus-visible {
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    color: #0f172a;
}

.agent-notif-bell-btn .bi {
    font-size: 1.1rem;
}

.agent-user-menu-toggle {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    max-width: 16rem;
    padding: 0.35rem 0.55rem 0.35rem 0.35rem;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.agent-user-menu-toggle:hover,
.agent-user-menu-toggle:focus-visible,
.agent-user-menu-toggle.show {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.agent-user-avatar {
    align-items: center;
    background: linear-gradient(145deg, #1d4ed8 0%, #059669 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.22);
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 800;
    height: 2.35rem;
    justify-content: center;
    letter-spacing: 0.02em;
    width: 2.35rem;
}

.agent-user-menu-kicker {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.agent-user-menu-name {
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 600;
    max-width: 10rem;
}

.agent-user-menu-chevron {
    font-size: 0.7rem;
    margin-left: 0.15rem;
}

.agent-user-menu-panel {
    border-radius: 0.85rem !important;
    margin-top: 0.5rem !important;
    min-width: 13.5rem;
    padding-bottom: 0.35rem !important;
    padding-top: 0.35rem !important;
}

.agent-user-menu-logout {
    color: #64748b !important;
    font-weight: 600;
}

.agent-user-menu-logout:hover,
.agent-user-menu-logout:focus {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.agent-user-menu-logout:hover .bi,
.agent-user-menu-logout:focus .bi {
    color: #b91c1c !important;
}

.agent-topbar__start {
    flex: 1 1 auto;
    min-width: 0;
}

.agent-topbar__end {
    margin-left: auto;
}

.agent-content {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding: 1.5rem;
    width: 100%;
}

.agent-mobile-sidebar {
    background: #0f172a;
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    color: #f8fafc;
    width: min(300px, 88vw);
}

.agent-stat-card {
    border: 0;
    border-radius: 1.15rem;
    box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.08);
}

.agent-stat-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 0.85rem;
    display: inline-flex;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

/* Agent dashboard — executive KPI & table (aligned with midnight sidebar) */
.agent-page-eyebrow {
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* KPI card shadow / hover — driven by Tailwind on templates/agent/index.html.twig */
.agent-kpi-grid .agent-kpi-card {
    background: #fff;
    overflow: hidden;
}

.agent-kpi-card--primary {
    border-left: 4px solid #2563eb;
}

.agent-kpi-card--info {
    border-left: 4px solid #0ea5e9;
}

.agent-kpi-card--warning {
    border-left: 4px solid #f59e0b;
}

.agent-kpi-card--danger {
    border-left: 4px solid #ef4444;
}

.agent-kpi-label {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.agent-kpi-value {
    color: #0f172a;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
}

.agent-kpi-icon {
    align-items: center;
    border-radius: 50%;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.95),
        0 6px 14px rgba(15, 23, 42, 0.12);
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.15rem;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.agent-kpi-icon--primary {
    background: linear-gradient(145deg, #0056b3 0%, #2563eb 100%);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.95),
        0 8px 18px rgba(37, 99, 235, 0.28);
}

.agent-kpi-icon--info {
    background: linear-gradient(145deg, #0e7490 0%, #06b6d4 100%);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.95),
        0 8px 18px rgba(6, 182, 212, 0.25);
}

.agent-kpi-icon--warning {
    background: linear-gradient(145deg, #b45309 0%, #f59e0b 100%);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.95),
        0 8px 18px rgba(245, 158, 11, 0.25);
}

.agent-kpi-icon--danger {
    background: linear-gradient(145deg, #b91c1c 0%, #ef4444 100%);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.95),
        0 8px 18px rgba(239, 68, 68, 0.25);
}

.agent-filter-card,
.agent-table-card {
    background: #fff;
    border: 1px solid #e8eef5 !important;
    border-radius: 1rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 8px 20px rgba(15, 23, 42, 0.04);
}

.agent-filter-card--advanced {
    background: linear-gradient(180deg, #fbfdff 0%, #fff 38%);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 10px 26px rgba(15, 23, 42, 0.06);
}

/*
 * Grille filtres agent — équivalent visuel Tailwind :
 * grid grid-cols-1 md:grid-cols-4 gap-4 items-end
 */
.agent-advanced-filter-grid {
    align-items: end;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .agent-advanced-filter-grid {
        gap: 1.5rem;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.agent-advanced-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.agent-advanced-filter-field .form-label {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 0;
    text-transform: uppercase;
}

.agent-advanced-filter-field--actions .agent-advanced-filter-field-label-spacer {
    display: block;
    min-height: 0.68rem;
}

@media (min-width: 768px) {
    .agent-advanced-filter-field--actions .agent-advanced-filter-field-label-spacer {
        min-height: 1.15rem;
    }
}

.agent-search-group--compact .form-control {
    font-size: 0.9rem;
    min-height: 2.55rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.agent-search-group--compact .input-group-text {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.agent-filter-select-premium {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    border-radius: 0.65rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 2.55rem;
    padding-left: 0.85rem;
    padding-right: 2rem;
}

.agent-filter-select-premium:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 0.2rem rgba(20, 184, 166, 0.2);
}

.agent-search-group .input-group-text {
    background: #fff;
    border-color: #e2e8f0;
    border-right: 0;
    color: #94a3b8;
}

.agent-search-group .form-control {
    border-color: #e2e8f0;
    border-left: 0;
    box-shadow: none;
}

.agent-search-group .form-control:focus {
    border-color: #14b8a6;
    box-shadow: none;
}

.agent-search-group:focus-within .input-group-text {
    border-color: #14b8a6;
}

.agent-demandes-table__thead th,
.agent-demandes-table thead th {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.9rem 1rem;
    white-space: nowrap;
}

.agent-demandes-table tbody tr {
    border-bottom: 1px solid #edf2f7;
}

.agent-demandes-table tbody tr:last-child {
    border-bottom: 0;
}

.agent-demandes-table tbody td {
    padding-left: 1rem;
    padding-right: 1rem;
    vertical-align: middle;
}

/* Statut — pastilles lisibles (fond doux + texte plus soutenu) */
.agent-demandes-table .badge.rounded-pill {
    border: 1px solid transparent;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.35em 0.95em !important;
}

.agent-demandes-table .badge.bg-success-subtle {
    background: rgba(187, 247, 208, 0.72) !important;
    border-color: rgba(34, 197, 94, 0.28) !important;
    color: #166534 !important;
}

.agent-demandes-table .badge.bg-info-subtle {
    background: rgba(186, 230, 253, 0.78) !important;
    border-color: rgba(14, 165, 233, 0.28) !important;
    color: #0c4a6e !important;
}

.agent-demandes-table .badge.bg-warning-subtle {
    background: rgba(254, 243, 199, 0.88) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #92400e !important;
}

.agent-demandes-table .badge.bg-danger-subtle {
    background: rgba(254, 202, 202, 0.75) !important;
    border-color: rgba(239, 68, 68, 0.32) !important;
    color: #991b1b !important;
}

.agent-demandes-table .badge.bg-secondary-subtle {
    background: rgba(226, 232, 240, 0.95) !important;
    border-color: rgba(100, 116, 139, 0.28) !important;
    color: #334155 !important;
}

.agent-dashboard-primary-btn {
    background: #2563eb;
    border: 1px solid #1d4ed8;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.22);
    color: #fff !important;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.agent-dashboard-primary-btn:hover {
    background: #1d4ed8;
    border-color: #1e40af;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
    color: #fff !important;
    transform: translateY(-1px);
}

.agent-dashboard-primary-btn:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.38);
    color: #fff !important;
}

.agent-dashboard-primary-btn:active {
    background: #1e40af;
    border-color: #1e3a8a;
    transform: translateY(0);
}

.agent-dashboard-primary-btn--compact {
    min-height: 2.15rem;
}

.agent-demandes-pagination .page-link {
    border-color: rgba(37, 99, 235, 0.22);
    color: #1d4ed8;
}

.agent-demandes-pagination .page-item.active .page-link {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    font-weight: 800;
}

.agent-demandes-pagination .page-item.disabled .page-link {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.agent-row-action-btn {
    border-radius: 6px !important;
    font-size: 0.8rem;
    font-weight: 700;
}

.agent-table-empty i {
    color: #94a3b8;
    font-size: 2.25rem;
}

.agent-complement-pill {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #c2410c;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    white-space: nowrap;
}

.agent-results-pill {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    white-space: nowrap;
}

.agent-topbar-user.text-start .agent-topbar-user__label,
.agent-topbar-user.text-start .agent-topbar-user__name {
    text-align: left;
}

.agent-topbar-user__label {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.agent-topbar-user__name {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.process-steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.process-step {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    position: relative;
    text-align: center;
}

.process-step-circle {
    align-items: center;
    background: #e5e7eb;
    border: 4px solid #f8fafc;
    border-radius: 999px;
    color: #64748b;
    display: inline-flex;
    font-weight: 800;
    height: 3rem;
    justify-content: center;
    position: relative;
    width: 3rem;
    z-index: 1;
}

.process-step.completed .process-step-circle {
    background: #16a34a;
    color: #fff;
}

.process-step.active .process-step-circle {
    animation: pulse-step 1.6s infinite;
    background: #2563eb;
    color: #fff;
}

.process-step-label {
    color: #475569;
    font-size: 0.85rem;
    font-weight: 700;
}

.process-step.completed .process-step-label,
.process-step.active .process-step-label {
    color: #0f172a;
}

.document-icon {
    align-items: center;
    background: #eff6ff;
    border-radius: 0.9rem;
    color: #2563eb;
    display: inline-flex;
    font-size: 1.25rem;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.current-step-panel {
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    padding: 1rem;
}

.compact-timeline {
    display: grid;
    gap: 1rem;
}

.compact-timeline-item {
    border-left: 3px solid #2563eb;
    padding-left: 1rem;
}

/* Public / portal forms — width shell & SRM focus ring */
.srm-public-form-shell {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    width: 100%;
}

.srm-form-subheading {
    color: #0056b3;
    margin-bottom: 0.35rem;
}

.srm-branded-form .form-control,
.srm-branded-form .form-select,
.srm-branded-form textarea.form-control {
    max-width: 100%;
    width: 100%;
}

.srm-branded-form .form-control:focus,
.srm-branded-form .form-control:focus-visible,
.srm-branded-form .form-select:focus,
.srm-branded-form .form-select:focus-visible,
.srm-branded-form textarea.form-control:focus,
.srm-branded-form textarea.form-control:focus-visible {
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.22);
}

/* Liste native des <select> (renfort si le select n’est pas sous .client-dashboard-body seul). */
.srm-branded-form select option,
.srm-branded-form select optgroup {
    background-color: #fff !important;
    color: #0f172a !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #0f172a !important;
}

.srm-branded-form select {
    color-scheme: light;
    -webkit-text-fill-color: #1e293b;
    color: #1e293b;
}

/* Chromium : éviter clipping / layer corrompu sur la liste native des <select> (overflow/transform sur ancêtres). */
#dashboard-demande-wizard-root .client-table-card,
#dashboard-demande-wizard-root #dashboard-demande-form {
    overflow: visible;
    transform: none;
    filter: none;
}

.public-wizard-page {
    background:
        radial-gradient(circle at top left, rgba(0, 76, 151, 0.08), transparent 32%),
        radial-gradient(circle at top right, rgba(0, 132, 137, 0.08), transparent 28%);
}

.public-wizard-card {
    overflow: hidden;
}

.public-wizard-logo {
    height: 86px;
    object-fit: contain;
    width: auto;
}

.public-stepper {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, 1fr);
}

.public-stepper-item {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
    text-align: center;
}

.public-stepper-item:not(:last-child)::after {
    background: #dbe3ef;
    content: "";
    height: 2px;
    left: calc(50% + 1.5rem);
    position: absolute;
    top: 1.25rem;
    width: calc(100% - 3rem);
}

.public-stepper-circle {
    align-items: center;
    background: #e5e7eb;
    border: 4px solid #fff;
    border-radius: 999px;
    color: #64748b;
    display: inline-flex;
    font-weight: 800;
    height: 2.7rem;
    justify-content: center;
    position: relative;
    width: 2.7rem;
    z-index: 1;
}

.public-stepper-item.active .public-stepper-circle {
    background: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.16);
    color: #fff;
}

.public-stepper-item.completed .public-stepper-circle {
    background: #198754;
    color: transparent;
}

.public-stepper-item.completed .public-stepper-circle::after {
    color: #fff;
    content: "✓";
    font-size: 1.2rem;
    position: absolute;
}

.public-stepper-item.completed:not(:last-child)::after {
    background: #198754;
}

.public-stepper-label {
    color: #1f2a37;
    font-size: 0.88rem;
    font-weight: 700;
}

.public-stepper-ar {
    font-size: 0.78rem;
}

.wizard-step {
    display: none;
}

.wizard-step[hidden],
.wizard-step:not(.active) {
    pointer-events: none;
}

.wizard-step.active {
    animation: wizard-fade 180ms ease;
    display: block;
}

/* Portail public — cartes pièces jointes (étape 3) */
.srm-public-doc-card {
    background: #fbfcff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.1rem 1.15rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.srm-public-doc-card:focus-within {
    border-color: rgba(0, 86, 179, 0.35);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.srm-public-doc-card__head {
    align-items: flex-start;
    display: flex;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
}

.srm-public-doc-card__icon {
    align-items: center;
    background: #eaf3ff;
    border-radius: 0.75rem;
    color: #0056b3;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.35rem;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.srm-public-doc-card__titles {
    flex: 1;
    min-width: 0;
}

.srm-public-doc-card__title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.srm-public-doc-badge {
    font-size: 0.68rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

.srm-public-doc-card__hint {
    line-height: 1.45;
}

.srm-public-doc-card__field .form-label {
    font-weight: 600;
}

.srm-public-doc-preview__thumb img {
    object-fit: contain;
}

.review-summary-item {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    height: 100%;
    padding: 1rem;
}

/* Step 4 — récapitulatif public (SRM) */
.srm-step4-title {
    color: #0056b3;
}

.srm-step4-title-icon {
    color: #0056b3;
}

.srm-review-card {
    background: #fff;
    border: 1px solid rgba(0, 86, 179, 0.12);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.srm-review-card-header {
    align-items: center;
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    padding: 0.85rem 1.15rem;
}

.srm-review-card-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.srm-review-card-body {
    padding: 1rem 1.15rem 1.1rem;
}

.srm-review-card-header .srm-review-edit {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    font-weight: 600;
    padding: 0;
    text-underline-offset: 0.2em;
}

.srm-review-rows .srm-review-row:last-child {
    border-bottom: 0 !important;
}

.srm-review-thumb {
    height: 4.5rem;
    object-fit: cover;
    width: 4.5rem;
}

.srm-review-doc:last-child {
    border-bottom: 0 !important;
}

.srm-review-doc-icon {
    align-items: center;
    display: inline-flex;
    height: 4.5rem;
    justify-content: center;
    width: 4.5rem;
}

@keyframes wizard-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-step {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

@media (min-width: 992px) {
    .client-main {
        margin-left: 16rem;
        max-width: calc(100% - 16rem);
        width: calc(100% - 16rem);
    }

    .client-content {
        margin-left: auto;
        margin-right: auto;
        max-width: min(100%, 1100px);
        min-width: 0;
        overflow-x: hidden;
        padding: 1rem 1.35rem;
        width: 100%;
    }

    .agent-main {
        margin-left: 16rem;
        max-width: calc(100% - 16rem);
        width: calc(100% - 16rem);
    }
}

@media (max-width: 991.98px) {
    .client-hero--suivi .client-hero__inner {
        align-items: flex-start;
    }

    .client-hero--suivi .client-hero__actions {
        width: 100%;
    }

    .client-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-content {
        padding: 1rem;
    }

    .client-topbar {
        padding: 0 1rem;
    }

    .agent-content {
        padding: 1rem;
    }

    .agent-topbar {
        padding: 0 1rem;
    }

    .public-stepper {
        grid-template-columns: 1fr 1fr;
    }

    .public-stepper-item::after {
        display: none;
    }
}

/* --- Login page (client / agent) --- */
body.login-page-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.login-page-body main {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin: 0;
    min-height: 0;
}

.login-page-shell {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex: 1;
    justify-content: center;
    padding: 0.35rem 0 0.5rem;
    width: 100%;
}

.login-page-inner {
    width: 100%;
}

.login-page-cards {
    align-items: stretch;
}

.login-page-cards > .login-page-half {
    display: flex;
}

.login-page-cards .login-page-card {
    flex: 1 1 auto;
    width: 100%;
}

.login-card-body {
    padding: 1rem 1.15rem !important;
}

@media (min-width: 992px) {
    .login-card-body {
        padding: 1.2rem 1.45rem !important;
    }
}

.login-brand-wrap {
    margin-bottom: 0.6rem;
}

.login-brand-logo {
    display: block;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    object-fit: contain;
    width: 140px;
}


.login-aside-icon-wrap {
    line-height: 1;
    margin-bottom: 0.65rem;
}

.login-aside-icon {
    color: rgba(255, 255, 255, 0.26);
    font-size: 3.15rem;
    line-height: 1;
}

@media (min-width: 992px) {
    .login-aside-icon {
        font-size: 3.65rem;
    }
}

.login-aside-title {
    letter-spacing: -0.03em;
}

.login-form-submit {
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-form-submit:hover,
.login-form-submit:focus {
    background: #00448f;
    border-color: #00448f;
    box-shadow: 0 0.35rem 1rem rgba(0, 68, 143, 0.35);
    color: #fff;
}

.login-register-link {
    font-weight: 600;
    text-decoration: none;
}

.login-register-link:hover,
.login-register-link:focus {
    text-decoration: underline;
    text-underline-offset: 0.22em;
}

.login-forgot-link {
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
}

.login-forgot-link:hover,
.login-forgot-link:focus {
    color: #0056b3;
    text-decoration: underline;
}

.login-password-wrap .input-group > .form-control:focus {
    z-index: 4;
}

.login-password-toggle {
    background: #fff;
    color: #495057;
}

.login-password-toggle:hover,
.login-password-toggle:focus {
    background: #eef3f8;
    color: #1f2a37;
}

.login-password-toggle:focus {
    box-shadow: none;
    outline: 2px solid rgba(0, 86, 179, 0.35);
    outline-offset: 0;
    z-index: 5;
}

.login-password-wrap .form-control.border-end-0:focus,
.login-password-wrap .form-control.border-end-0:focus-visible {
    border-right-color: transparent;
    box-shadow: none;
}

.login-password-wrap:focus-within .input-group-text.login-password-toggle {
    border-color: #86b7fe;
}

/* Auth forms (login, mot de passe oublié, réinitialisation) */
.login-auth-form .form-label {
    color: #334155;
    font-weight: 600;
}

.login-auth-form .form-control {
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.55rem 0.85rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.login-auth-form .form-control::placeholder {
    color: #94a3b8;
}

.login-auth-form .form-control:focus,
.login-auth-form .form-control:focus-visible {
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.22);
}

.login-auth-form .invalid-feedback,
.login-auth-form .form-error-message {
    font-size: 0.8125rem;
}

.login-auth-alert {
    align-items: flex-start;
    border-radius: 0.5rem;
    display: flex;
    font-size: 0.9rem;
    gap: 0.65rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.login-auth-alert-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1.45;
    margin-top: 0.05rem;
}

body.login-page-body .login-page-shell > .container > .alert {
    margin-bottom: 0.75rem;
}

/* Agent back-office login — midnight shell + elevated card (SRM brand) */
body.agent-login-page-body {
    background-color: #0f172a;
    min-height: 100vh;
    position: relative;
}

body.agent-login-page-body::before {
    background:
        radial-gradient(ellipse 100% 70% at 50% -20%, rgba(37, 99, 235, 0.38), transparent 58%),
        radial-gradient(ellipse 80% 55% at 105% 95%, rgba(5, 150, 105, 0.2), transparent 52%),
        radial-gradient(ellipse 65% 50% at -5% 55%, rgba(14, 165, 233, 0.14), transparent 48%);
    content: '';
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

body.agent-login-page-body .navbar {
    display: none;
}

body.agent-login-page-body main {
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 1;
}

.agent-login-viewport {
    max-width: 100%;
    position: relative;
    width: 100%;
    z-index: 1;
}

/* Prevent flex-centered viewport from shrinking the Bootstrap row to content min-width */
.agent-login-viewport > .row {
    flex: 0 0 100%;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
}

.agent-login-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.45),
        0 12px 28px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    max-width: 100%;
}

.agent-login-logo-frame {
    border-radius: 1rem;
    padding: 0.35rem 0.5rem;
}

.agent-login-brand-logo {
    height: auto;
    max-width: 140px;
    object-fit: contain;
    width: 140px;
}

.agent-login-tagline {
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.agent-login-form .input-group {
    max-width: 100%;
}

.agent-login-form .input-group > .form-control {
    flex: 1 1 auto;
    min-width: 0;
    width: 1%;
}

.agent-login-field-label {
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.agent-login-input,
.agent-login-form .agent-login-password-toggle {
    background-color: #fff;
    border-color: #e2e8f0;
    border-radius: 0.65rem;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.agent-login-form .login-password-wrap .agent-login-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.agent-login-form .login-password-wrap .agent-login-password-toggle {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.65rem;
    border-bottom-right-radius: 0.65rem;
}

.agent-login-form .agent-login-input:focus {
    border-color: #2563eb;
    box-shadow:
        0 0 0 2px rgba(5, 150, 105, 0.12),
        0 0 0 4px rgba(37, 99, 235, 0.22);
    outline: 0;
}

.agent-login-form .agent-login-password-group:focus-within .agent-login-input,
.agent-login-form .agent-login-password-group:focus-within .agent-login-password-toggle {
    border-color: #2563eb;
}

.agent-login-form .agent-login-password-group:focus-within .agent-login-input:focus {
    box-shadow: none;
}

.agent-login-form .agent-login-password-group:focus-within {
    box-shadow:
        0 0 0 2px rgba(5, 150, 105, 0.12),
        0 0 0 4px rgba(37, 99, 235, 0.22);
    border-radius: 0.65rem;
}

.agent-login-form .login-password-wrap .input-group-text.agent-login-password-toggle {
    color: #64748b;
    cursor: pointer;
    padding-left: 0.65rem;
    padding-right: 0.75rem;
}

.agent-login-form .login-password-wrap .input-group-text.agent-login-password-toggle:hover {
    background: #f8fafc !important;
    color: #0f172a;
}

.agent-login-eyebrow {
    color: #64748b;
    letter-spacing: 0.08em;
}

.agent-login-heading {
    color: #0f172a;
}

.agent-login-submit {
    background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
    border: none;
    border-radius: 0.65rem;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.38);
    color: #fff !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.agent-login-submit:hover,
.agent-login-submit:focus-visible {
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.32);
    opacity: 0.92;
    transform: translateY(-1px);
}

.agent-login-submit:active {
    opacity: 1;
    transform: translateY(0);
}

.agent-login-footer-note {
    color: #64748b;
    font-weight: 500;
}

/* Agent — page profil */
.agent-profil-subtitle {
    max-width: 40rem;
}

.agent-profil-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 6px 16px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.agent-profil-card:hover {
    box-shadow:
        0 4px 8px rgba(15, 23, 42, 0.06),
        0 14px 28px rgba(15, 23, 42, 0.08);
}

.agent-profil-section-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.agent-profil-avatar {
    align-items: center;
    background: linear-gradient(145deg, #1d4ed8 0%, #059669 100%);
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(29, 78, 216, 0.25);
    color: #fff;
    display: inline-flex;
    font-size: 1.65rem;
    font-weight: 800;
    height: 6.5rem;
    justify-content: center;
    letter-spacing: 0.04em;
    width: 6.5rem;
}

.agent-profil-dt {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.agent-profil-dd {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 600;
}

.agent-profil-role {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.agent-profil-role--admin {
    background: rgba(37, 99, 235, 0.12) !important;
    border: 1px solid rgba(37, 99, 235, 0.28);
    color: #1e40af !important;
}

.agent-profil-role--agent {
    background: rgba(5, 150, 105, 0.12) !important;
    border: 1px solid rgba(5, 150, 105, 0.28);
    color: #047857 !important;
}

.agent-profil-pw-toggle {
    background-color: #fff !important;
    color: #64748b;
}

.agent-profil-pw-toggle:hover {
    background-color: #f8fafc !important;
    color: #0f172a;
}

.agent-profil-password-form .agent-login-input:focus {
    border-color: #2563eb;
    box-shadow:
        0 0 0 2px rgba(5, 150, 105, 0.12),
        0 0 0 4px rgba(37, 99, 235, 0.22);
    outline: 0;
}

.agent-profil-password-form .login-password-wrap:focus-within {
    border-radius: 0.65rem;
    box-shadow:
        0 0 0 2px rgba(5, 150, 105, 0.12),
        0 0 0 4px rgba(37, 99, 235, 0.22);
}

.agent-profil-password-form .login-password-wrap:focus-within .agent-login-input:focus {
    box-shadow: none;
}

.agent-profil-password-form .login-password-wrap .agent-login-input {
    border-color: #e2e8f0;
    border-radius: 0.65rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.agent-profil-password-form .login-password-wrap .agent-profil-pw-toggle {
    border-color: #e2e8f0;
    border-top-right-radius: 0.65rem;
    border-bottom-right-radius: 0.65rem;
    transition: border-color 0.18s ease, background-color 0.15s ease;
}

.agent-profil-password-form .login-password-wrap:focus-within .agent-login-input,
.agent-profil-password-form .login-password-wrap:focus-within .agent-profil-pw-toggle {
    border-color: #2563eb;
}

/* Complément d'information */
.srm-complement-alert {
    align-items: flex-start;
    background: linear-gradient(135deg, #fff8e6 0%, #fff3cd 100%);
    border: 1px solid #f0c674;
    border-radius: 0.85rem;
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
}

.srm-complement-alert__icon {
    color: #b45309;
    font-size: 1.35rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.srm-complement-upload-card {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 0.85rem;
    box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.srm-complement-upload-card__head {
    align-items: flex-start;
    background: #f8fafc;
    border-bottom: 1px solid #e8eef5;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.srm-complement-upload-card__body {
    padding: 1rem;
}

.srm-echanges-list {
    display: grid;
    gap: 0.65rem;
}

.srm-echange-item {
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 0.65rem;
    padding: 0.75rem 0.85rem;
}

.srm-echange-item--pending {
    border-color: #f0c674;
    background: #fffbeb;
}

.srm-echange-item__head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    justify-content: space-between;
}

.srm-echanges-timeline {
    display: grid;
    gap: 0;
    position: relative;
}

.srm-echanges-timeline__item {
    display: grid;
    gap: 0.5rem 0.85rem;
    grid-template-columns: auto 1fr;
    padding: 0 0 1.15rem 0.35rem;
    position: relative;
}

.srm-echanges-timeline__item:not(:last-child)::before {
    background: #e2e8f0;
    bottom: 0;
    content: '';
    left: 0.55rem;
    position: absolute;
    top: 1.65rem;
    width: 2px;
}

.srm-echanges-timeline__marker {
    align-items: center;
    background: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    color: #64748b;
    display: inline-flex;
    font-size: 0.75rem;
    height: 1.35rem;
    justify-content: center;
    margin-top: 0.15rem;
    width: 1.35rem;
    z-index: 1;
}

.srm-echanges-timeline__item--done .srm-echanges-timeline__marker {
    border-color: #22c55e;
    color: #16a34a;
}

.srm-echanges-timeline__item--pending .srm-echanges-timeline__marker {
    border-color: #f59e0b;
    color: #d97706;
}

.srm-echanges-timeline__item--rejected .srm-echanges-timeline__marker {
    border-color: #ef4444;
    color: #dc2626;
}

.srm-echanges-timeline__item--rejected .srm-echanges-timeline__content {
    background: #fef2f2;
    border-color: #fecaca;
}

.srm-echanges-timeline__rejet {
    font-size: 0.875rem;
    line-height: 1.5;
}

.srm-echanges-timeline__content {
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 0.65rem;
    padding: 0.75rem 0.85rem;
}

.srm-echanges-timeline__item--pending .srm-echanges-timeline__content {
    background: #fffbeb;
    border-color: #f0d78c;
}

.srm-echanges-timeline__date {
    color: #64748b;
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.srm-echanges-timeline__label {
    color: #475569;
    font-weight: 600;
}

.srm-echanges-timeline__agent,
.srm-echanges-timeline__client {
    font-size: 0.875rem;
    line-height: 1.5;
}

.srm-messagerie-panel .srm-echanges-timeline {
    gap: 0.25rem;
}

.srm-messagerie-panel .srm-messagerie-thread {
    padding-bottom: 1.5rem;
}

.srm-messagerie-panel .srm-messagerie-thread:last-child {
    padding-bottom: 0;
}

.srm-messagerie-panel .srm-messagerie-thread:not(:last-child)::before {
    background: #cbd5e1;
    bottom: 0;
    top: 1.75rem;
}

.srm-messagerie-thread__content {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.srm-messagerie-bubble {
    font-size: 0.875rem;
    line-height: 1.55;
}

.srm-messagerie-bubble--agent {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.srm-messagerie-bubble--rejet {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.srm-messagerie-bubble--client {
    box-shadow: 0 1px 4px rgba(22, 163, 74, 0.08);
}

.srm-messagerie-attachment:hover .text-muted {
    color: #0056b3 !important;
    text-decoration: underline;
}

.srm-doc-complement-new {
    background: #fffbeb !important;
    border-left: 4px solid #f59e0b !important;
}

.agent-notif-menu {
    border-radius: 0.85rem !important;
    margin-top: 0.5rem !important;
    max-width: 22rem;
    min-width: 18rem;
}

.agent-live-toast {
    border-left: 4px solid #f59e0b;
    margin-bottom: 1rem;
    z-index: 20;
}

/* Agent — fiche demande (layout 2 colonnes) */
.agent-panel-card {
    background: #fff;
    border: 1px solid #eef2f5;
    border-radius: 0.85rem;
    box-shadow: 0 0.15rem 0.5rem rgba(15, 23, 42, 0.04);
}

.agent-panel-card__title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
}

.agent-stepper-card--client-style {
    border-radius: 0.95rem;
    overflow: hidden;
}

.agent-stepper-card--client-style .srm-workflow-legend {
    gap: 0.75rem 1rem;
}

.agent-stepper-card--client-style .client-workflow-dot {
    font-size: 0.8rem;
    height: 2.5rem;
    width: 2.5rem;
}

.agent-stepper-card--client-style .client-workflow-label {
    font-size: 0.78rem;
}

.agent-info-list {
    display: grid;
    gap: 0.55rem;
}

.agent-info-list li {
    align-items: start;
    display: grid;
    gap: 0.1rem 0.5rem;
    grid-template-columns: 1.1rem 4.5rem 1fr;
    font-size: 0.8125rem;
}

.agent-info-list li i {
    grid-row: span 2;
    margin-top: 0.1rem;
}

.agent-info-list li span:first-of-type:not(.agent-info-list__spacer) {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.agent-info-list__spacer {
    display: block;
    grid-column: 1;
}

.agent-dl-compact {
    display: grid;
    gap: 0.45rem;
}

.agent-dl-compact > div {
    display: grid;
    gap: 0.1rem;
}

.agent-dl-compact dt {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin: 0;
    text-transform: uppercase;
}

.agent-dl-compact dd {
    color: #1f2a37;
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0;
}

.compact-timeline--dense {
    gap: 0.65rem;
}

.compact-timeline--dense .compact-timeline-item {
    padding-left: 0.65rem;
}

.agent-doc-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.agent-doc-row {
    align-items: center;
    border-bottom: 1px solid #eef2f5;
    display: flex;
    gap: 0.65rem;
    padding: 0.5rem 0;
}

.agent-doc-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.agent-doc-row:first-child {
    padding-top: 0;
}

.agent-doc-row--new {
    background: #fffbeb;
    border-radius: 0.45rem;
    margin: 0 -0.35rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.agent-doc-row__icon {
    align-items: center;
    background: #eff6ff;
    border-radius: 0.5rem;
    color: #2563eb;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1rem;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.agent-doc-row__body {
    flex: 1;
    min-width: 0;
}

.agent-doc-row__title {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
}

.agent-doc-row__meta {
    color: #64748b;
    font-size: 0.7rem;
    line-height: 1.3;
}

.agent-current-step {
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: 0.5rem;
    padding: 0.5rem 0.65rem;
}

.agent-complement-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.agent-workspace-card .agent-decision-bar {
    border-color: #eef2f5 !important;
}

@media (min-width: 768px) {
    .agent-dossier-grid {
        align-items: stretch;
    }
}

/* Agent dossier — page header */
.agent-dossier-header__back {
    transition: color 0.2s ease;
}

.agent-dossier-header__back:hover,
.agent-dossier-header__back:focus-visible {
    color: var(--bs-primary) !important;
}

.agent-dossier-header__back:focus-visible {
    outline: 2px solid rgba(var(--bs-primary-rgb), 0.35);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Agent dossier — workspace 2-column */
.agent-workspace-layout {
    align-items: start;
}

.agent-workflow-steps--wide .client-workflow-step {
    flex: 1 1 0;
    max-width: none;
    min-width: 4.25rem;
}

@media (min-width: 992px) {
    .agent-stepper-card--steps-5 .agent-workflow-steps--wide {
        flex-wrap: nowrap;
        gap: 0.35rem 0.5rem;
        justify-content: space-between;
    }

    .agent-stepper-card--steps-5 .agent-workflow-steps--wide .client-workflow-step:not(:last-child)::after {
        left: calc(50% + 1.2rem);
        width: calc(100% - 2.4rem);
    }

    .agent-stepper-card--steps-5 .agent-workflow-steps--wide .client-workflow-label {
        font-size: 0.74rem;
    }
}

.agent-workflow-steps .client-workflow-step.agent-step-clickable {
    transition: transform 0.15s ease;
}

.agent-workflow-steps .client-workflow-step.agent-step-clickable:hover .client-workflow-dot,
.agent-workflow-steps .client-workflow-step.agent-step-clickable:focus-visible .client-workflow-dot {
    transform: scale(1.06);
}

.agent-workflow-steps .client-workflow-step.agent-step-clickable:focus-visible {
    outline: 2px solid rgba(0, 86, 179, 0.45);
    outline-offset: 4px;
}

.agent-workflow-steps .client-workflow-step.agent-step-clickable.active-step-style .client-workflow-dot,
.agent-workflow-steps .client-workflow-step.active .client-workflow-dot {
    animation: srm-agent-active-step-glow 2.4s ease-in-out infinite;
    background: linear-gradient(145deg, #0f172a 0%, #1d4ed8 48%, #0f766e 100%);
    box-shadow:
        0 10px 22px -4px rgba(15, 23, 42, 0.35),
        0 0 0 4px rgba(45, 212, 191, 0.12);
    color: #fff;
    outline: none;
}

@keyframes srm-agent-active-step-glow {
    0%,
    100% {
        box-shadow:
            0 10px 22px -4px rgba(15, 23, 42, 0.3),
            0 0 0 3px rgba(45, 212, 191, 0.12);
    }

    50% {
        box-shadow:
            0 14px 28px -4px rgba(29, 78, 216, 0.38),
            0 0 0 5px rgba(45, 212, 191, 0.2);
    }
}

.agent-workflow-steps .client-workflow-step:not(:last-child)::after,
.agent-workflow-steps .client-workflow-step.completed:not(:last-child)::after,
.agent-workflow-steps .client-workflow-step.future:not(:last-child)::after {
    background: #e2e8f0 !important;
}

.agent-workflow-steps .client-workflow-step.agent-step-clickable.active-step-style .client-workflow-label,
.agent-workflow-steps .client-workflow-step.active .client-workflow-label {
    color: #1f2a37;
    font-weight: 700;
}

.agent-exchange-row {
    display: grid;
    gap: 0.5rem 0.85rem;
    grid-template-columns: auto 1fr;
}

.agent-panel-card__title--compact {
    font-size: 0.92rem;
    margin-bottom: 0.65rem;
}

.agent-field-label {
    font-size: 0.7rem !important;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.agent-context-section-label {
    color: #2563eb;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.agent-context-card .card-body {
    padding: 0.85rem 1rem !important;
}

.agent-step-timeline .compact-timeline-item {
    border-left-color: #cbd5e1;
    padding-bottom: 0.15rem;
}

.agent-doc-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.agent-doc-checklist__row {
    align-items: center;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 0.55rem;
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
}

.agent-doc-checklist__row--new {
    background: #fffbeb;
    border-color: #fde68a;
}

.agent-doc-checklist__icon {
    align-items: center;
    background: #f8fafc;
    border-radius: 0.45rem;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.25rem;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

.agent-doc-checklist__body {
    flex: 1;
    min-width: 0;
}

.agent-doc-checklist__title {
    font-size: 0.82rem;
    font-weight: 700;
}

.agent-doc-checklist__meta {
    color: #64748b;
    font-size: 0.72rem;
}

.agent-doc-checklist__btn {
    border-radius: 6px !important;
    font-size: 0.78rem;
    font-weight: 700;
}

.agent-echanges-panel .srm-echanges-timeline__content {
    border-radius: 0.55rem;
    padding: 0.65rem 0.85rem;
}

.agent-echanges-panel .srm-echanges-timeline__item {
    gap: 0.65rem 0.75rem;
}

.agent-devis-card {
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
    border: 1px solid #93c5fd;
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.08);
}

.agent-devis-card__eyebrow {
    letter-spacing: 0.06em;
}

.agent-payment-verification-card {
    background: linear-gradient(180deg, #fffdf8 0%, #fff 100%);
    border: 1px solid #fcd34d;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.1);
}

.agent-payment-verification-card__eyebrow {
    letter-spacing: 0.06em;
}

.agent-payment-verification-card__file {
    border-color: #fde68a !important;
    background: #fff !important;
}

.agent-payment-verification-card__file-icon {
    line-height: 1;
}

.agent-complement-inner-card {
    background: #fff !important;
    border-color: #e8eef5 !important;
}

.agent-complement-collapse-wrap button[data-bs-toggle='collapse']:not(.collapsed) .bi-chevron-down {
    transform: rotate(180deg);
}

@media (min-width: 992px) {
    .agent-workspace-layout > .col-lg-4 {
        position: sticky;
        top: 5.5rem;
        align-self: flex-start;
    }
}

/* ——— Mon profil (layout 2 colonnes) ——— */
.client-profile-page {
    align-items: start;
}

.client-profile-summary-card.sticky-lg-top {
    top: 1rem;
    z-index: 2;
}

.client-profile-summary-card__body {
    padding: 1.75rem 1.35rem;
}

/* ——— Agent analytics / statistiques ——— */
.agent-analytics-header .agent-analytics-subtitle {
    max-width: 42rem;
}

.agent-analytics-period-pill {
    align-items: center;
    background: #f0f6ff;
    border: 1px solid #d6e6ff;
    border-radius: 999px;
    color: #1e40af;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 600;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
}

.agent-analytics-metric-card {
    position: relative;
}

.agent-analytics-metric-label {
    color: #64748b;
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.35;
    text-transform: uppercase;
}

.agent-analytics-metric-value {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.15;
}

.agent-analytics-metric-icon {
    align-items: center;
    border-radius: 0.75rem;
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1rem;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.agent-analytics-metric-icon--emerald {
    background: linear-gradient(145deg, #059669 0%, #10b981 100%);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.28);
}

.agent-analytics-metric-icon--slate {
    background: linear-gradient(145deg, #475569 0%, #64748b 100%);
    box-shadow: 0 6px 14px rgba(100, 116, 139, 0.25);
}

.agent-analytics-metric-icon--blue {
    background: linear-gradient(145deg, #0056b3 0%, #3b82f6 100%);
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.28);
}

.agent-analytics-metric-icon--amber {
    background: linear-gradient(145deg, #b45309 0%, #f59e0b 100%);
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.28);
}

.agent-analytics-trend {
    font-size: 0.72rem;
    font-weight: 700;
}

.agent-analytics-sla-progress {
    background: #f1f5f9;
    border-radius: 999px;
    height: 0.45rem;
}

.agent-analytics-sla-progress .progress-bar {
    border-radius: 999px;
}

.agent-chart-card {
    overflow: hidden;
}

.agent-chart-card__header h2 {
    letter-spacing: -0.01em;
}

.agent-apex-chart {
    min-height: 260px;
    width: 100%;
}

.agent-apex-chart--donut {
    max-width: 320px;
}

.agent-chart-legend-hints {
    color: #64748b;
}

.agent-legend-dot {
    border-radius: 50%;
    display: inline-block;
    height: 0.55rem;
    margin-right: 0.4rem;
    vertical-align: middle;
    width: 0.55rem;
}

.agent-legend-dot--blue {
    background: #3b82f6;
}

.agent-legend-dot--emerald {
    background: #10b981;
}

.agent-analytics-footnote {
    opacity: 0.85;
}

@media (max-width: 575.98px) {
    .agent-analytics-metric-value {
        font-size: 1.45rem;
    }

    .agent-analytics-header .btn {
        width: 100%;
    }
}

/* ——— Agent paramètres système ——— */
.agent-settings-pill {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 600;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
}

.agent-settings-subtitle {
    max-width: 44rem;
}

.agent-settings-card {
    position: relative;
}

.agent-settings-tabs {
    gap: 0.35rem;
}

.agent-settings-tabs .nav-link {
    margin-bottom: 0;
}

.agent-settings-panel {
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 0.85rem;
    padding: 1.25rem;
}

.agent-settings-panel--info {
    background: linear-gradient(180deg, #f5f9ff 0%, #f8fafc 100%);
}

.agent-settings-table-wrap {
    border: 1px solid #e8eef5;
    border-radius: 0.85rem;
    overflow: hidden;
}

.agent-settings-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e8eef5;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.agent-settings-table tbody td {
    border-bottom-color: #f1f5f9;
    color: #334155;
    font-size: 0.9rem;
}

.agent-settings-delai-pill {
    background: #eff6ff;
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    min-width: 2rem;
    padding: 0.2rem 0.65rem;
}

.agent-settings-parcours-trail {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
}

.agent-settings-parcours-chevron {
    flex-shrink: 0;
    font-size: 0.7rem;
    line-height: 1;
    vertical-align: middle;
}

.agent-settings-parcours-cell {
    min-width: 12rem;
}

.agent-settings-parcours-step {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    padding: 0.85rem 1rem;
}

.agent-settings-parcours-step__main {
    align-items: flex-start;
    display: flex;
    flex: 1;
    gap: 0.75rem;
    min-width: 0;
}

.agent-settings-parcours-step__order {
    align-items: center;
    background: #eff6ff;
    border-radius: 8px;
    color: #1d4ed8;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    height: 1.75rem;
    justify-content: center;
    width: 1.75rem;
}

.agent-settings-parcours-delai {
    border-color: #dbe3ef;
    border-radius: 8px;
    max-width: 7rem;
}

.agent-settings-parcours-add-select {
    border-radius: 8px;
    flex: 1 1 14rem;
    max-width: 22rem;
}

.agent-settings-parcours-modal .modal-content {
    border-radius: 12px;
}

.agent-type-demande-steps-card {
    border-radius: 12px;
}

.agent-type-demande-step-edit-row {
    border-color: #e8eef5 !important;
}

.agent-type-demande-step-edit-row:focus-within {
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.agent-settings-parcours-remove {
    flex-shrink: 0;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.agent-settings-workflow-steps-list {
    min-height: 2.5rem;
}

.match-step-row {
    border-radius: 8px !important;
    transition: box-shadow 160ms ease, border-color 160ms ease;
}

.match-step-row--dragging {
    opacity: 0.55;
}

.match-step-row--drag-over {
    border-color: #93c5fd !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.cursor-move {
    cursor: grab;
}

.match-step-row:active .cursor-move {
    cursor: grabbing;
}

.agent-settings-switch {
    cursor: not-allowed;
    height: 1.35rem;
    width: 2.5rem;
}

.agent-settings-switch:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.agent-settings-switch.agent-type-demande-active-switch {
    cursor: pointer;
}

.agent-settings-type-list__item {
    border-color: transparent;
    border-radius: 0.5rem !important;
    margin-bottom: 0.35rem;
}

a.agent-settings-type-list__link {
    text-decoration: none;
    color: inherit;
}

a.agent-settings-type-list__link:hover {
    color: inherit;
}

.agent-settings-doc-check {
    position: relative;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.agent-settings-doc-check--active {
    border-color: #93c5fd !important;
    background: rgba(239, 246, 255, 0.85);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.agent-settings-doc-check__input {
    margin-top: 0.15rem;
}

.agent-settings-doc-delete-form {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 2;
}

.agent-settings-doc-delete-form .btn {
    padding: 0.2rem 0.4rem;
    line-height: 1;
    opacity: 0.75;
}

.agent-settings-doc-delete-form .btn:hover {
    opacity: 1;
}

.agent-settings-doc-check__input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.agent-settings-input {
    border-color: #dbe3ef;
    border-radius: 0.65rem;
    max-width: 12rem;
}

.agent-settings-input:disabled {
    background: #f8fafc;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .agent-settings-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
    }

    .agent-settings-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.65rem 0.75rem;
    }
}

.client-profile-summary-avatar {
    align-items: center;
    background: linear-gradient(145deg, #0056b3 0%, #1672d8 100%);
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(0, 86, 179, 0.22);
    color: #fff;
    display: inline-flex;
    font-size: 2rem;
    font-weight: 800;
    height: 5.5rem;
    justify-content: center;
    letter-spacing: 0.04em;
    width: 5.5rem;
}

.client-profile-form-card__header {
    border-bottom: 1px solid #edf2f7;
    padding: 1.1rem 1.25rem 0.85rem;
}

.client-profile-form-card__body {
    padding: 1rem 1.25rem 1.25rem;
}

.client-profile-form .client-table-card {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

/* Simulateur en ligne — landing split-path cards */
.srm-simulateur-landing {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 38%);
}

.srm-simulateur-path-card {
    border-radius: var(--bs-border-radius-lg);
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.srm-simulateur-path-card .card {
    transition: box-shadow 0.3s ease;
}

.srm-simulateur-path-card:hover,
.srm-simulateur-path-card:focus-visible {
    transform: translateY(-4px);
}

.srm-simulateur-path-card:hover .card,
.srm-simulateur-path-card:focus-visible .card {
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.12) !important;
}

.srm-simulateur-path-card:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.45);
    outline-offset: 4px;
}

/* Simulateur raccordement — 2-col layout & sticky estimation */
.srm-simulateur-raccordement {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 28%);
}

.srm-simulateur-raccordement-sticky {
    position: sticky;
    top: 2rem;
    z-index: 2;
}

.srm-sim-estimation-card__header {
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.04) 100%);
}

.srm-simulateur-raccordement .letter-spacing-tight {
    letter-spacing: 0.04em;
}

/* Simulateur consommation — choix du fluide (cartes btn-check) */
.srm-fluid-choice {
    border-color: #e2e8f0;
    box-shadow: none;
    cursor: pointer;
    min-height: 5.5rem;
    transition: all 0.2s ease-in-out;
}

.srm-fluid-choice:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

#fluid-eau.btn-check:checked + .srm-fluid-choice--eau {
    background-color: var(--bs-primary-bg-subtle) !important;
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.15rem rgba(var(--bs-primary-rgb), 0.18);
}

#fluid-elec.btn-check:checked + .srm-fluid-choice--elec {
    background-color: var(--bs-warning-bg-subtle) !important;
    border-color: var(--bs-warning) !important;
    box-shadow: 0 0 0 0.15rem rgba(var(--bs-warning-rgb), 0.22);
}

.srm-fluid-choice:focus-within,
#fluid-eau.btn-check:focus + .srm-fluid-choice--eau,
#fluid-elec.btn-check:focus + .srm-fluid-choice--elec {
    outline: 0;
}

#fluid-eau.btn-check:focus-visible + .srm-fluid-choice--eau {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.35);
}

#fluid-elec.btn-check:focus-visible + .srm-fluid-choice--elec {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-warning-rgb), 0.45);
}
