/*
 * DigiSync Next — fondation visuelle globale
 * Cible : WHMCS 9.0.6 / thème parent Twenty-One
 * Portée : espace public, espace client, support, tableaux et paniers.
 */

:root {
    --ds-navy-950: #071321;
    --ds-navy-900: #0b1f33;
    --ds-navy-800: #12304b;
    --ds-navy-700: #1b4265;
    --ds-blue-700: #1747c7;
    --ds-blue-600: #1f63e9;
    --ds-blue-500: #2d7df4;
    --ds-cyan-500: #12b8c4;
    --ds-cyan-400: #31cbd3;
    --ds-green-600: #15845f;
    --ds-amber-600: #c87909;
    --ds-red-600: #c23b48;
    --ds-slate-900: #172033;
    --ds-slate-700: #3b4a62;
    --ds-slate-600: #59677d;
    --ds-slate-500: #778398;
    --ds-slate-300: #cbd4e1;
    --ds-slate-200: #dfe6ef;
    --ds-slate-100: #edf2f7;
    --ds-slate-50: #f7f9fc;
    --ds-white: #ffffff;
    --ds-canvas: #f3f6fa;
    --ds-surface: #ffffff;
    --ds-surface-soft: #f8fafc;
    --ds-border: #dce4ee;
    --ds-shadow-sm: 0 6px 18px rgba(7, 19, 33, 0.06);
    --ds-shadow-md: 0 14px 36px rgba(7, 19, 33, 0.10);
    --ds-shadow-lg: 0 24px 60px rgba(7, 19, 33, 0.14);
    --ds-radius-sm: 8px;
    --ds-radius-md: 13px;
    --ds-radius-lg: 18px;
    --ds-radius-xl: 24px;
    --ds-transition: 180ms ease;
}

html {
    min-height: 100%;
    font-size: 15px;
    scroll-behavior: smooth;
}

body.primary-bg-color {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: var(--ds-canvas) !important;
    color: var(--ds-slate-900);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ds-blue-600);
    transition: color var(--ds-transition), background-color var(--ds-transition), border-color var(--ds-transition), box-shadow var(--ds-transition), transform var(--ds-transition);
}

a:hover {
    color: var(--ds-blue-700);
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.custom-select:focus-visible {
    outline: 3px solid rgba(45, 125, 244, 0.28) !important;
    outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: var(--ds-slate-900);
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Structure globale */

@media (min-width: 1200px) {
    .container {
        max-width: 1320px;
    }
}

#main-body {
    flex: 1 0 auto;
    width: 100%;
    padding: 2.25rem 0 4rem;
    background:
        radial-gradient(circle at 12% 4%, rgba(45, 125, 244, 0.075), transparent 25rem),
        radial-gradient(circle at 88% 12%, rgba(18, 184, 196, 0.06), transparent 22rem),
        var(--ds-canvas);
}

#main-body > .container {
    position: relative;
}

.primary-content {
    min-width: 0;
}

/* Barre supérieure et navigation */

#header.header {
    position: relative;
    z-index: 30;
    background: var(--ds-white);
    box-shadow: 0 1px 0 rgba(7, 19, 33, 0.08);
}

#header .topbar {
    min-height: 38px;
    padding: 0.2rem 0;
    background: linear-gradient(110deg, var(--ds-navy-950), var(--ds-navy-800));
    color: rgba(255, 255, 255, 0.82);
}

#header .topbar .btn,
#header .topbar .input-group-text,
#header .topbar a {
    color: rgba(255, 255, 255, 0.86);
}

#header .topbar .btn:hover,
#header .topbar a:hover {
    color: var(--ds-white);
}

#header .topbar .btn-active-client {
    font-weight: 700;
}

#header .navbar.navbar-light {
    min-height: 86px;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    background: rgba(255, 255, 255, 0.98);
}

#header .navbar-brand {
    display: inline-flex;
    align-items: center;
}

#header .logo-img {
    width: auto;
    max-width: 210px;
    max-height: 58px;
    transition: transform var(--ds-transition);
}

#header .navbar-brand:hover .logo-img {
    transform: translateY(-1px);
}

#header .search .input-group-prepend .btn,
#header .search .form-control {
    height: 44px;
    border-color: var(--ds-border);
    background: var(--ds-surface-soft);
}

#header .search .input-group-prepend .btn {
    border-radius: var(--ds-radius-md) 0 0 var(--ds-radius-md);
    color: var(--ds-slate-500);
}

#header .search .form-control {
    min-width: 270px;
    border-left: 0;
    border-radius: 0 var(--ds-radius-md) var(--ds-radius-md) 0;
}

#header .toolbar .nav-link {
    display: inline-flex;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    background: var(--ds-surface-soft);
    color: var(--ds-navy-800);
}

#header .toolbar .nav-link:hover {
    border-color: rgba(45, 125, 244, 0.35);
    background: rgba(45, 125, 244, 0.08);
    color: var(--ds-blue-600);
}

#header .cart-btn .badge {
    background: var(--ds-cyan-500);
    color: var(--ds-navy-950);
}

.main-navbar-wrapper {
    border-top: 1px solid var(--ds-slate-100);
    border-bottom: 1px solid var(--ds-border);
    background: var(--ds-white);
}

.main-navbar-wrapper .navbar-nav > .nav-item > .nav-link,
.main-navbar-wrapper .navbar-nav > li > a {
    margin: 0.28rem 0.12rem;
    padding: 0.62rem 0.85rem;
    border-radius: 9px;
    color: var(--ds-slate-700);
    font-weight: 600;
}

.main-navbar-wrapper .navbar-nav > .nav-item > .nav-link:hover,
.main-navbar-wrapper .navbar-nav > li > a:hover,
.main-navbar-wrapper .navbar-nav > .active > a,
.main-navbar-wrapper .navbar-nav > li.active > a {
    background: rgba(31, 99, 233, 0.09);
    color: var(--ds-blue-700);
}

.dropdown-menu {
    padding: 0.55rem;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    box-shadow: var(--ds-shadow-md);
}

.dropdown-item {
    padding: 0.6rem 0.75rem;
    border-radius: var(--ds-radius-sm);
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
    background: rgba(31, 99, 233, 0.09);
    color: var(--ds-blue-700);
}

.master-breadcrumb {
    border-bottom: 1px solid var(--ds-border);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
}

.master-breadcrumb .breadcrumb {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    background: transparent;
    font-size: 0.86rem;
}

/* Composants génériques */

.card,
.panel,
.modal-content {
    overflow: hidden;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow-sm);
}

.card-header,
.panel-heading,
.modal-header {
    border-bottom: 1px solid var(--ds-border);
    background: linear-gradient(180deg, var(--ds-white), var(--ds-surface-soft));
}

.card-header,
.panel-heading {
    padding: 1rem 1.15rem;
}

.card-body,
.panel-body {
    padding: 1.2rem;
}

.card-footer,
.panel-footer,
.modal-footer {
    border-top: 1px solid var(--ds-border);
    background: var(--ds-surface-soft);
}

.card-title,
.panel-title {
    color: var(--ds-navy-900);
    font-weight: 700;
}

.btn {
    min-height: 40px;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-weight: 650;
    transition: color var(--ds-transition), background-color var(--ds-transition), border-color var(--ds-transition), box-shadow var(--ds-transition), transform var(--ds-transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-success {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ds-blue-600), var(--ds-cyan-500));
    color: var(--ds-white);
    box-shadow: 0 8px 18px rgba(31, 99, 233, 0.2);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
    border-color: transparent;
    background: linear-gradient(135deg, var(--ds-blue-700), #0f9fab);
    color: var(--ds-white);
    box-shadow: 0 10px 24px rgba(31, 99, 233, 0.28);
}

.btn-outline-primary {
    border-color: rgba(31, 99, 233, 0.45);
    color: var(--ds-blue-700);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    border-color: var(--ds-blue-600);
    background: var(--ds-blue-600);
    color: var(--ds-white);
}

.btn-default,
.btn-secondary {
    border-color: var(--ds-border);
    background: var(--ds-white);
    color: var(--ds-slate-700);
}

.btn-default:hover,
.btn-secondary:hover {
    border-color: var(--ds-slate-300);
    background: var(--ds-slate-50);
    color: var(--ds-navy-900);
}

.form-control,
.custom-select,
.input-group-text {
    min-height: 43px;
    border-color: var(--ds-border);
    border-radius: 10px;
    background-color: var(--ds-white);
    color: var(--ds-slate-900);
}

.form-control:hover,
.custom-select:hover {
    border-color: var(--ds-slate-300);
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--ds-blue-500);
    box-shadow: 0 0 0 0.2rem rgba(45, 125, 244, 0.14);
}

.form-control::placeholder {
    color: #98a4b6;
}

.form-control-label,
label {
    color: var(--ds-slate-700);
    font-weight: 600;
}

.alert {
    border: 1px solid transparent;
    border-radius: var(--ds-radius-md);
    box-shadow: none;
}

.alert-success {
    border-color: rgba(21, 132, 95, 0.2);
    background: #eaf8f2;
    color: #0f684b;
}

.alert-info {
    border-color: rgba(31, 99, 233, 0.2);
    background: #edf5ff;
    color: #174a9b;
}

.alert-warning {
    border-color: rgba(200, 121, 9, 0.22);
    background: #fff7e8;
    color: #8a5206;
}

.alert-danger {
    border-color: rgba(194, 59, 72, 0.2);
    background: #fff0f2;
    color: #99303a;
}

.badge,
.label,
.status {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.015em;
}

.status-active,
.status-paid,
.status-completed,
.badge-success {
    background: #dff7ed !important;
    color: #0c7150 !important;
}

.status-pending,
.status-unpaid,
.badge-warning {
    background: #fff3d8 !important;
    color: #925a07 !important;
}

.status-suspended,
.status-cancelled,
.status-terminated,
.badge-danger {
    background: #ffe7ea !important;
    color: #a4313c !important;
}

/* Page d'accueil publique */

.card-columns.home {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    column-count: initial !important;
}

.card-columns.home .card {
    position: relative;
    display: flex;
    min-height: 245px;
    margin: 0 !important;
    break-inside: auto;
    border: 1px solid rgba(31, 99, 233, 0.12);
    box-shadow: var(--ds-shadow-sm);
    transition: transform var(--ds-transition), box-shadow var(--ds-transition), border-color var(--ds-transition);
}

.card-columns.home .card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ds-blue-600), var(--ds-cyan-400));
    content: "";
}

.card-columns.home .card:hover {
    transform: translateY(-5px);
    border-color: rgba(31, 99, 233, 0.28);
    box-shadow: var(--ds-shadow-md);
}

.card-columns.home .card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
}

.card-columns.home .card-title {
    color: var(--ds-navy-900);
    font-size: 1.35rem;
}

.card-columns.home .btn {
    margin-top: auto;
}

.action-icon-btns {
    row-gap: 1rem;
}

.action-icon-btns a {
    display: flex;
    min-height: 160px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.75rem;
    border: 1px solid var(--ds-border);
    border-top: 1px solid var(--ds-border) !important;
    border-radius: var(--ds-radius-lg);
    background: var(--ds-white);
    color: var(--ds-slate-700);
    box-shadow: var(--ds-shadow-sm);
    transition: transform var(--ds-transition), border-color var(--ds-transition), box-shadow var(--ds-transition), color var(--ds-transition);
}

.action-icon-btns a:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 99, 233, 0.28);
    color: var(--ds-blue-700);
    box-shadow: var(--ds-shadow-md);
}

.action-icon-btns .ico-container {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(31, 99, 233, 0.12), rgba(18, 184, 196, 0.14));
    color: var(--ds-blue-600);
}

.action-icon-btns .ico-container i {
    font-size: 1.85rem;
}

/* Espace client */

.tiles .tile {
    min-height: 138px;
    border: 1px solid var(--ds-border);
    background: var(--ds-white);
    box-shadow: var(--ds-shadow-sm);
    transition: transform var(--ds-transition), border-color var(--ds-transition), box-shadow var(--ds-transition);
}

.tiles .tile:hover {
    z-index: 2;
    transform: translateY(-3px);
    border-color: rgba(31, 99, 233, 0.28);
    box-shadow: var(--ds-shadow-md);
}

.tiles .tile .stat {
    color: var(--ds-blue-700);
    font-weight: 750;
}

.tiles .tile .title {
    color: var(--ds-slate-600);
    font-weight: 650;
}

.tiles .tile > i {
    color: var(--ds-slate-300);
}

.client-home-cards .card,
.primary-content > .card {
    margin-bottom: 1.4rem;
}

.list-group-item {
    border-color: var(--ds-border);
}

.list-group-item-action:hover,
.list-group-item-action:focus,
.list-group-item-action.active {
    background: rgba(31, 99, 233, 0.06);
    color: var(--ds-blue-700);
}

.sidebar .card,
.sidebar .panel {
    margin-bottom: 1rem;
}

.sidebar .card-header,
.sidebar .panel-heading {
    padding: 0.85rem 1rem;
}

.sidebar .list-group-item {
    padding: 0.72rem 1rem;
}

.table-container,
.dataTables_wrapper {
    padding: 1rem;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-white);
    box-shadow: var(--ds-shadow-sm);
}

.table {
    margin-bottom: 0;
    color: var(--ds-slate-700);
}

.table thead th,
.table-list thead th {
    border-top: 0;
    border-bottom: 1px solid var(--ds-border);
    background: var(--ds-surface-soft);
    color: var(--ds-slate-600);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.table td,
.table th {
    border-color: var(--ds-border);
    vertical-align: middle;
}

.table-hover tbody tr:hover,
.table-list tbody tr:hover {
    background: rgba(31, 99, 233, 0.045);
}

.page-link {
    margin: 0 0.15rem;
    border-color: var(--ds-border);
    border-radius: 8px !important;
    color: var(--ds-blue-700);
}

.page-item.active .page-link {
    border-color: var(--ds-blue-600);
    background: var(--ds-blue-600);
}

/* Authentification */

.login-form .card,
.mw-540.card {
    border: 1px solid rgba(31, 99, 233, 0.14);
    border-radius: var(--ds-radius-xl);
    box-shadow: var(--ds-shadow-lg);
}

.login-form .card-body {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

.login-form .input-group-text {
    border-right: 0;
    background: var(--ds-surface-soft);
    color: var(--ds-slate-500);
}

.login-form .input-group .form-control {
    border-left: 0;
}

/* État des services DigiSync */

.dgs-probe-group + .dgs-probe-group {
    margin-top: 1.5rem;
}

.dgs-probe-group {
    margin-bottom: 1.5rem;
}

.dgs-probe-group:last-child {
    margin-bottom: 0;
}

.dgs-probe-title {
    margin-bottom: 0.65rem;
    color: var(--ds-navy-800);
    font-weight: 750;
}

.dgs-probe-table {
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
    border: 1px solid var(--ds-border) !important;
    border-radius: var(--ds-radius-md);
}

.dgs-probe-detail {
    color: var(--ds-slate-500);
    font-size: 0.86rem;
}

.dgs-status-badge {
    display: inline-flex;
    min-width: 92px;
    align-items: center;
    justify-content: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.dgs-status-ok {
    background: #dff7ed;
    color: #0c7150;
}

.dgs-status-warning,
.dgs-status-degraded,
.dgs-status-unknown {
    background: #fff3d8;
    color: #925a07;
}

.dgs-status-critical,
.dgs-status-down,
.dgs-status-error {
    background: #ffe7ea;
    color: #a4313c;
}

/* Module Convoy */

.panel .table {
    background: var(--ds-white);
}

.panel .table-striped tbody tr:nth-of-type(odd) {
    background: var(--ds-surface-soft);
}

/* Panier Standard Cart et panier VPS */

#order-standard_cart {
    color: var(--ds-slate-700);
}

#order-standard_cart .products .product,
#order-standard_cart .product-info,
#order-standard_cart .field-container,
#order-standard_cart .view-cart-items,
#order-standard_cart .view-cart-promotion-code,
#order-standard_cart .checkout-security-msg {
    border-color: var(--ds-border);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-white);
    box-shadow: var(--ds-shadow-sm);
}

#order-standard_cart .product-title,
#order-standard_cart .sub-heading span,
#order-standard_cart .sub-heading-borderless span {
    color: var(--ds-navy-900);
    font-weight: 750;
}

#order-standard_cart .summary-container,
#order-standard_cart .order-summary {
    overflow: hidden;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-white);
    box-shadow: var(--ds-shadow-md);
}

#order-standard_cart .summary-container .product-name,
#order-standard_cart .order-summary .product-name {
    color: var(--ds-navy-900);
}

#order-standard_cart .btn-primary,
#order-standard_cart .btn-checkout {
    border-color: transparent;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--ds-blue-600), var(--ds-cyan-500));
    box-shadow: 0 8px 20px rgba(31, 99, 233, 0.22);
}

#order-standard_cart .sidebar-categories a,
#order-standard_cart .cart-sidebar a {
    border-radius: 8px;
}

#order-standard_cart .sidebar-categories a:hover,
#order-standard_cart .sidebar-categories a.active {
    background: rgba(31, 99, 233, 0.08);
    color: var(--ds-blue-700);
}

/* Pied de page */

#footer.footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 85% 10%, rgba(18, 184, 196, 0.13), transparent 22rem),
        linear-gradient(135deg, var(--ds-navy-950), var(--ds-navy-800));
    color: rgba(255, 255, 255, 0.72);
}

#footer .nav-link,
#footer .btn,
#footer a {
    color: rgba(255, 255, 255, 0.78);
}

#footer .nav-link:hover,
#footer .btn:hover,
#footer a:hover {
    color: var(--ds-white);
}

#footer .copyright {
    color: rgba(255, 255, 255, 0.58);
}

/* Responsive */

@media (max-width: 1199.98px) {
    #header .navbar.navbar-light {
        min-height: 72px;
    }

    .main-navbar-wrapper .navbar-collapse {
        padding: 0.7rem 0 1rem;
    }

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

@media (max-width: 767.98px) {
    html {
        font-size: 14px;
    }

    #main-body {
        padding: 1.35rem 0 2.5rem;
    }

    #header .topbar {
        min-height: 34px;
    }

    #header .navbar.navbar-light {
        min-height: 66px;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    #header .logo-img {
        max-width: 160px;
        max-height: 46px;
    }

    .card-columns.home {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-columns.home .card {
        min-height: 205px;
    }

    .action-icon-btns a {
        min-height: 138px;
        margin-bottom: 1rem;
    }

    .tiles .tile {
        min-height: 118px;
    }

    .table-container,
    .dataTables_wrapper {
        padding: 0.55rem;
        border-radius: var(--ds-radius-md);
    }

    #footer.footer {
        padding: 2rem 0;
        text-align: center;
    }
}

/* DigiSync Portal 0.5 — accueil, navigation contextuelle et activités */

.ds-site-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--ds-line);
    border-radius: 6px;
    background: #fff;
    color: var(--ds-muted);
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}

.ds-site-link:hover {
    border-color: rgba(20, 112, 190, 0.35);
    background: #edf6fd;
    color: var(--ds-brand-blue);
}

/* Accueil du portail */

.ds-home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    overflow: hidden;
    margin: -3rem calc(50% - 50vw) 0;
    padding: clamp(4rem, 8vw, 7.5rem) max(1rem, calc((100vw - 1320px) / 2));
    border-bottom: 1px solid #e5e9ee;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 249, 0.9)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='68'%3E%3Cpath d='M0 34h68M34 0v68' stroke='%231470be' stroke-opacity='.08' fill='none'/%3E%3C/svg%3E");
}

.ds-home-hero::after {
    position: absolute;
    top: -12rem;
    right: -10rem;
    width: 38rem;
    height: 38rem;
    border: 7rem solid rgba(20, 112, 190, 0.045);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.ds-home-hero__content,
.ds-home-hero__visual {
    position: relative;
    z-index: 1;
}

.ds-home-hero h1 {
    margin: 0 0 1.4rem;
    font-size: clamp(2.7rem, 5.8vw, 5.1rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.ds-home-hero__content > p {
    max-width: 760px;
    margin-bottom: 2rem;
    color: var(--ds-muted);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 500;
}

.ds-home-hero__actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.ds-home-hero__actions .btn {
    min-height: 54px;
    padding: 0.9rem 1.25rem;
    border-radius: 6px;
}

.ds-home-hero__actions .btn-light {
    border: 1px solid var(--ds-line);
    background: #fff;
    color: var(--ds-text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ds-home-trust {
    display: flex;
    gap: 1.25rem;
    margin-top: 2rem;
    color: #65758a;
    font-size: 0.76rem;
    font-weight: 500;
    flex-wrap: wrap;
}

.ds-home-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ds-home-trust i {
    color: var(--ds-brand-blue);
}

.ds-home-hero__visual {
    display: grid;
    gap: 0.9rem;
    padding: 1.1rem;
    border: 1px solid var(--ds-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 20px 50px rgba(28, 35, 45, 0.14);
    backdrop-filter: blur(8px);
}

.ds-infra-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 1.05rem;
    border: 1px solid #e1e5ea;
    border-radius: 6px;
    background: #fff;
}

.ds-infra-card--primary {
    border-color: rgba(20, 112, 190, 0.24);
    background: #f1f8fd;
}

.ds-infra-card__icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--ds-brand-blue);
    color: #fff;
}

.ds-infra-card > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ds-infra-card small {
    color: var(--ds-muted);
    font-size: 0.67rem;
    text-transform: uppercase;
}

.ds-infra-card strong {
    overflow: hidden;
    color: var(--ds-ink);
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-infra-card > i {
    color: #36a071;
}

.ds-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #267a56;
    font-size: 0.65rem;
    font-weight: 600;
}

.ds-live-dot::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #36a071;
    content: "";
}

.ds-home-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.ds-home-section + .ds-home-section {
    border-top: 1px solid #e8ebef;
}

.ds-home-section__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.ds-home-section__heading h2,
.ds-account-banner h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
}

.ds-home-section__heading p,
.ds-account-banner p {
    max-width: 720px;
    margin: 0;
    color: var(--ds-muted);
}

.ds-text-link {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 0.45rem;
    color: var(--ds-brand-blue);
    font-size: 0.82rem;
    font-weight: 600;
}

.ds-offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.ds-offer-card {
    display: flex;
    min-height: 285px;
    padding: 1.8rem;
    border: 1px solid var(--ds-line);
    border-radius: 6px;
    background: var(--ds-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
    flex-direction: column;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ds-offer-card:hover {
    transform: translateY(-5px);
    border-color: rgba(20, 112, 190, 0.32);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.13);
}

.ds-offer-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.ds-offer-card__icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--ds-brand-blue);
    color: #fff;
    font-size: 1.05rem;
}

.ds-offer-card__number {
    color: #c2c9d1;
    font-size: 0.75rem;
    font-weight: 700;
}

.ds-offer-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.ds-offer-card p {
    color: var(--ds-muted);
    font-size: 0.88rem;
}

.ds-offer-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #dfe4e9;
    color: var(--ds-brand-blue);
    font-size: 0.82rem;
    font-weight: 600;
}

.ds-home-support {
    background: #fff;
}

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

.ds-resource-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem;
    border: 1px solid var(--ds-line);
    border-radius: 6px;
    background: #fff;
    color: var(--ds-text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.ds-resource-card:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 112, 190, 0.28);
    color: var(--ds-text);
}

.ds-resource-card--featured {
    border-color: rgba(20, 112, 190, 0.25);
    background: #f1f8fd;
}

.ds-resource-card__icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #e8f3fc;
    color: var(--ds-brand-blue);
    font-size: 1.05rem;
}

.ds-resource-card div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ds-resource-card small {
    color: var(--ds-brand-blue);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ds-resource-card strong {
    color: var(--ds-ink);
    font-size: 1rem;
}

.ds-resource-card p {
    margin: 0.25rem 0 0;
    color: var(--ds-muted);
    font-size: 0.78rem;
}

.ds-resource-card > i {
    color: #aab4c0;
    font-size: 0.7rem;
}

.ds-account-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 5rem;
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: 8px;
    background: var(--ds-brand-blue-dark);
    color: #fff;
}

.ds-account-banner h2,
.ds-account-banner p {
    color: #fff;
}

.ds-account-banner p {
    opacity: 0.78;
}

.ds-account-banner .ds-eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.ds-account-banner__actions {
    display: flex;
    gap: 0.65rem;
}

.ds-account-banner__actions a {
    display: flex;
    min-width: 110px;
    min-height: 92px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.72rem;
    flex-direction: column;
}

.ds-account-banner__actions a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* Nouvelle disposition avec navigation contextuelle */

.ds-app-layout {
    display: grid;
    grid-template-columns: minmax(250px, 285px) minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
}

.ds-app-sidebar {
    position: sticky;
    top: 94px;
    min-width: 0;
}

.ds-app-content {
    min-width: 0;
}

.ds-context-group {
    margin: 0 0 1rem !important;
    overflow: hidden;
    border: 1px solid var(--ds-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07) !important;
}

.ds-context-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem !important;
    border: 0 !important;
    background: #fff !important;
}

.ds-context-group__title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.7rem;
}

.ds-context-group__icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #e8f3fc;
    color: var(--ds-brand-blue);
}

.ds-context-group__title > div {
    min-width: 0;
}

.ds-context-group__title small {
    display: block;
    color: #96a2b1;
    font-size: 0.57rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ds-context-group__title h3 {
    overflow: hidden;
    margin: 0;
    color: var(--ds-ink);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-context-group__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ds-context-collapse {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 5px;
    background: var(--ds-card);
    color: #8795a8;
    cursor: pointer;
}

.ds-context-group__body {
    border-top: 1px solid #edf0f3;
}

.ds-context-group__content {
    padding: 0.9rem 1rem !important;
    border-bottom: 1px solid #edf0f3;
    color: var(--ds-muted);
    font-size: 0.76rem;
}

.ds-context-menu {
    padding: 0.45rem;
}

.ds-context-link {
    display: grid !important;
    min-height: 44px;
    grid-template-columns: 30px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.55rem;
    margin: 0.12rem 0;
    padding: 0.45rem 0.55rem !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #53657c !important;
    font-size: 0.76rem !important;
    font-weight: 500;
}

.ds-context-link:hover {
    background: #f4f7f9 !important;
    color: var(--ds-ink) !important;
}

.ds-context-link.active {
    background: #eaf4fc !important;
    color: var(--ds-brand-blue-dark) !important;
    font-weight: 600;
}

.ds-context-link__icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #f0f3f6;
    color: #73849a;
}

.ds-context-link.active .ds-context-link__icon {
    background: var(--ds-brand-blue);
    color: #fff;
}

.ds-context-link__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-context-link__badge {
    background: #edf0f3 !important;
    color: #5e6f84 !important;
}

.ds-context-link__arrow {
    color: #b2bbc5;
    font-size: 0.58rem;
}

.ds-context-link--static {
    cursor: default;
}

.ds-context-group__footer {
    padding: 0.75rem 1rem !important;
    border-top: 1px solid #edf0f3 !important;
    background: var(--ds-card) !important;
    font-size: 0.72rem;
}

.ds-context-mobile {
    margin-bottom: 1rem;
    border-radius: 6px;
}

.ds-context-mobile label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

/* Panneaux dynamiques du tableau de bord */

.ds-activity-grid {
    display: grid;
    gap: 1rem;
}

.ds-activity-panel {
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--ds-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.075) !important;
}

.ds-activity-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e9edf1;
    background: var(--ds-card);
}

.ds-activity-panel__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
}

.ds-activity-panel__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--ds-brand-blue);
    color: #fff;
}

.ds-activity-panel__identity > div {
    min-width: 0;
}

.ds-activity-panel__identity small {
    display: block;
    color: #8b99aa;
    font-size: 0.57rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ds-activity-panel__identity h3 {
    overflow: hidden;
    margin: 0;
    font-size: 0.93rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-activity-panel__badge {
    background: #e8f3fc !important;
    color: var(--ds-brand-blue-dark) !important;
}

.ds-panel-action {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid #d6dce3;
    border-radius: 5px;
    background: #fff;
    color: var(--ds-brand-blue);
    font-size: 0.68rem;
    font-weight: 600;
}

.ds-activity-panel__body {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #edf0f3;
}

.ds-activity-list {
    padding: 0.4rem;
}

.ds-activity-row {
    display: grid;
    min-height: 48px;
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    color: var(--ds-text);
}

.ds-activity-row:hover {
    background: #f5f7f9;
    color: var(--ds-ink);
}

.ds-activity-row__icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #edf3f8;
    color: var(--ds-brand-blue);
}

.ds-activity-row__label {
    min-width: 0;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 500;
    text-overflow: ellipsis;
}

.ds-activity-row__arrow {
    color: #b0bac5;
    font-size: 0.58rem;
}

.ds-activity-panel__footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #edf0f3;
    background: var(--ds-card);
    font-size: 0.72rem;
}

@media (max-width: 1199.98px) {
    .ds-site-link span { display: none; }
    .ds-home-hero { grid-template-columns: 1fr; }
    .ds-home-hero__visual { max-width: 700px; }
    .ds-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ds-app-layout { grid-template-columns: minmax(220px, 250px) minmax(0, 1fr); }
}

@media (max-width: 991.98px) {
    .ds-app-layout { display: block; }
    .ds-app-sidebar { position: static; margin-bottom: 1.5rem; }
    .ds-resource-grid { grid-template-columns: 1fr; }
    .ds-account-banner { align-items: stretch; flex-direction: column; }
}

@media (max-width: 767.98px) {
    .ds-home-hero {
        margin-top: -1.5rem;
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }
    .ds-home-hero h1 { font-size: 2.55rem; }
    .ds-home-hero__actions { flex-direction: column; }
    .ds-home-hero__actions .btn { width: 100%; }
    .ds-home-hero__visual { padding: 0.75rem; }
    .ds-home-trust { align-items: flex-start; flex-direction: column; }
    .ds-home-section__heading { align-items: flex-start; flex-direction: column; }
    .ds-offer-grid { grid-template-columns: 1fr; }
    .ds-account-banner__actions { flex-direction: column; }
    .ds-account-banner__actions a { min-height: 64px; flex-direction: row; }
    .ds-activity-panel__header { align-items: flex-start; flex-direction: column; }
    .ds-panel-action { width: 100%; justify-content: center; }
}

/* Shell de navigation DigiSync */

#header.ds-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid rgba(213, 218, 225, 0.85);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.ds-header__nav {
    min-height: 76px;
    padding: 0.65rem 0;
}

.ds-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 2.25rem;
}

.ds-brand__logo {
    width: auto !important;
    max-width: 150px !important;
    height: 48px;
    max-height: 48px !important;
    object-fit: contain;
}

.ds-brand__fallback {
    color: var(--ds-ink);
    font-size: 1.2rem;
    font-weight: 700;
}

.ds-brand__context {
    padding-left: 0.75rem;
    border-left: 1px solid var(--ds-line);
    color: var(--ds-muted);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.ds-header__primary {
    margin-right: auto;
}

.ds-header__primary > li > a,
.ds-header__account > li > a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    margin: 0 0.1rem;
    padding: 0.6rem 0.78rem !important;
    border-radius: 6px;
    color: var(--ds-muted);
    font-size: 0.86rem;
    font-weight: 500;
}

.ds-header__primary > li > a:hover,
.ds-header__primary > li.active > a,
.ds-header__account > li > a:hover {
    background: var(--ds-card);
    color: var(--ds-ink);
}

.ds-header__tools {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
}

.ds-header-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 0.35rem;
}

.ds-header-search > i {
    position: absolute;
    left: 0.85rem;
    color: #8795a8;
    font-size: 0.82rem;
    pointer-events: none;
}

.ds-header-search input {
    width: 205px;
    height: 42px;
    padding: 0.55rem 0.85rem 0.55rem 2.25rem;
    border: 1px solid var(--ds-line);
    border-radius: 6px;
    background: var(--ds-card);
    color: var(--ds-text);
    font: inherit;
    font-size: 0.78rem;
    outline: 0;
}

.ds-header-search input:focus {
    border-color: var(--ds-brand-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(20, 112, 190, 0.12);
}

.ds-icon-button {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ds-line);
    border-radius: 6px;
    background: #fff;
    color: var(--ds-muted);
}

button.ds-icon-button {
    cursor: pointer;
}

.ds-icon-button:hover {
    border-color: #b7c2cf;
    background: var(--ds-card);
    color: var(--ds-brand-blue);
}

.ds-notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-flex;
    min-width: 19px;
    height: 19px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--ds-brand-blue);
    color: #fff;
    font-size: 0.63rem;
    font-weight: 700;
}

.ds-header__toggle {
    width: 44px;
    height: 42px;
    border: 1px solid var(--ds-line);
    border-radius: 6px;
    color: var(--ds-text);
}

.master-breadcrumb {
    border: 0;
    border-bottom: 1px solid #edf0f3;
    background: #fff;
}

.master-breadcrumb .breadcrumb {
    padding: 0.65rem 0;
    font-size: 0.75rem;
}

/* En-têtes et surfaces des parcours métier */

.ds-page-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e4e8ed;
}

.ds-page-intro h1 {
    margin: 0 0 0.55rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

.ds-page-intro p {
    max-width: 680px;
    margin: 0;
    color: var(--ds-muted);
    font-weight: 500;
}

.ds-page-intro > .btn {
    min-width: max-content;
}

.ds-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--ds-line);
    border-radius: 6px;
    background: var(--ds-card);
}

.ds-list-toolbar p {
    margin: 0;
    color: var(--ds-muted);
    font-size: 0.78rem;
}

.ds-list-toolbar__summary {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ds-list-toolbar__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--ds-brand-blue);
    color: #fff;
}

.ds-list-toolbar__summary > div {
    display: flex;
    flex-direction: column;
}

.ds-list-toolbar__summary strong {
    color: var(--ds-ink);
    font-size: 1.15rem;
    line-height: 1.1;
}

.ds-list-toolbar__summary > div > span {
    color: var(--ds-muted);
    font-size: 0.75rem;
}

.ds-data-surface {
    padding: 0;
    border: 1px solid var(--ds-line);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ds-data-surface .dataTables_wrapper {
    padding: 1.15rem;
    border: 0;
    box-shadow: none;
}

.ds-data-surface .table thead th {
    padding: 0.9rem 1rem;
    background: #fff;
    color: #77879c;
    font-size: 0.68rem;
}

.ds-data-surface .table tbody td {
    padding: 1rem;
}

.ds-data-surface .table tbody tr {
    cursor: pointer;
    transition: background-color 160ms ease;
}

.ds-data-surface .table tbody tr:hover {
    background: #f7f9fb;
}

.ds-table-primary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ds-table-primary__icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #e8f3fc;
    color: var(--ds-brand-blue);
}

.ds-table-primary > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ds-table-primary strong {
    color: var(--ds-ink);
}

.ds-table-primary small {
    color: var(--ds-muted);
}

.ds-row-chevron {
    margin-left: 0.6rem;
    color: #adb8c5;
    font-size: 0.65rem;
}

.ds-department {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ds-muted);
}

/* Navigation contextuelle */

.sidebar .card-sidebar {
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sidebar .card-sidebar .card-header {
    padding: 1rem;
    background: var(--ds-card);
}

.sidebar .card-sidebar .list-group-item {
    padding: 0.8rem 1rem;
    border-left: 3px solid transparent;
    font-size: 0.82rem;
}

.sidebar .card-sidebar .list-group-item.active {
    border-left-color: var(--ds-brand-blue);
    background: #edf6fd;
    color: var(--ds-brand-blue-dark);
}

/* Connexion */

.ds-auth-layout {
    display: grid;
    min-height: 610px;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.75fr);
    overflow: hidden;
    border: 1px solid var(--ds-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
}

.ds-auth-story {
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: clamp(2.5rem, 7vw, 5rem);
    flex-direction: column;
    background:
        linear-gradient(rgba(247, 248, 249, 0.94), rgba(247, 248, 249, 0.98)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M0 32h64M32 0v64' stroke='%231470be' stroke-opacity='.12' fill='none'/%3E%3C/svg%3E");
}

.ds-auth-story::after {
    position: absolute;
    right: -8rem;
    bottom: -8rem;
    width: 24rem;
    height: 24rem;
    border: 5rem solid rgba(20, 112, 190, 0.06);
    border-radius: 50%;
    content: "";
}

.ds-auth-story h1 {
    position: relative;
    z-index: 1;
    margin-bottom: 1.4rem;
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
}

.ds-auth-story > p {
    position: relative;
    z-index: 1;
    max-width: 620px;
    color: var(--ds-muted);
    font-size: 1.05rem;
    font-weight: 500;
}

.ds-auth-story ul {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.8rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.ds-auth-story li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #3d4b5e;
    font-weight: 500;
}

.ds-auth-story li i {
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ds-brand-blue);
    color: #fff;
    font-size: 0.65rem;
}

.ds-auth-form {
    display: flex;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem);
    flex-direction: column;
}

.ds-auth-card {
    max-width: none;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ds-auth-card__body {
    padding: 0 !important;
}

.ds-auth-form__heading {
    margin-bottom: 2rem;
}

.ds-auth-form__heading h2 {
    margin-bottom: 0.45rem;
    font-size: 2rem;
}

.ds-auth-form__heading p {
    margin: 0;
    color: var(--ds-muted);
}

.ds-auth-form .form-group {
    margin-bottom: 1.25rem;
}

.ds-auth-form .form-control,
.ds-auth-form .input-group-text,
.ds-auth-form .btn-reveal-pw {
    min-height: 50px;
}

.ds-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    color: var(--ds-muted);
    font-size: 0.8rem;
}

.ds-auth-form #login {
    min-height: 52px;
    justify-content: center;
}

.ds-auth-form #login i {
    margin-left: 0.5rem;
}

.ds-auth-card__footer {
    margin-top: 1.5rem;
    padding: 1rem 0 0;
    border-top: 1px solid #e5e9ee;
    background: transparent;
}

/* Pied de page */

#footer.ds-footer {
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--ds-line);
    background: #fff;
    color: var(--ds-muted);
}

.ds-footer__main,
.ds-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.ds-footer__main {
    padding-bottom: 2rem;
}

.ds-footer__brand {
    display: flex;
    flex-direction: column;
}

.ds-footer__brand strong {
    color: var(--ds-ink);
    font-size: 1.15rem;
}

.ds-footer__brand span {
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

.ds-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.25rem;
}

#footer.ds-footer a,
#footer.ds-footer .btn {
    color: var(--ds-muted);
    font-size: 0.76rem;
    font-weight: 500;
}

#footer.ds-footer a:hover,
#footer.ds-footer .btn:hover {
    color: var(--ds-brand-blue);
}

.ds-footer__bottom {
    padding-top: 1.25rem;
    border-top: 1px solid #e8ebef;
}

.ds-footer__preferences {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 1199.98px) {
    .ds-header__tools {
        align-items: stretch;
        margin: 0.75rem 0 0;
        padding-top: 0.75rem;
        border-top: 1px solid #e8ebef;
        flex-wrap: wrap;
    }
    .ds-header-search { flex: 1 1 100%; }
    .ds-header-search input { width: 100%; }
    .ds-header__account { flex: 1; }
    .ds-header__account > li > a { width: 100%; }
}

@media (max-width: 991.98px) {
    .ds-auth-layout { grid-template-columns: 1fr; }
    .ds-auth-story { min-height: 390px; }
}

@media (max-width: 767.98px) {
    .ds-brand__context { display: none; }
    .ds-page-intro { align-items: stretch; flex-direction: column; }
    .ds-page-intro > .btn { width: 100%; }
    .ds-list-toolbar { align-items: flex-start; flex-direction: column; }
    .ds-data-surface { overflow-x: auto; }
    .ds-auth-story, .ds-auth-form { padding: 2rem 1.5rem; }
    .ds-footer__main, .ds-footer__bottom { align-items: flex-start; flex-direction: column; }
    .ds-footer__links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* DigiSync Next v3 — véritable tableau de bord client */

:root {
    --ds-brand-blue: #1470be;
    --ds-brand-blue-dark: #0c3f74;
    --ds-brand-indigo: #645ac0;
    --ds-brand-cyan: #16b8c8;
    --ds-ink: #1c232d;
    --ds-text: #2a3342;
    --ds-muted: #556987;
    --ds-card: #f7f8f9;
    --ds-line: #d5dae1;
}

body.primary-bg-color {
    background: #fff !important;
    color: var(--ds-text);
    font-family: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#main-body {
    padding-top: 3rem;
    background:
        linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.98)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%231470be' stroke-opacity='.06'%3E%3Cpath d='M0 40h80M40 0v80'/%3E%3C/g%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--ds-ink);
    font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
    letter-spacing: -0.035em;
}

.ds-eyebrow {
    display: inline-flex;
    width: max-content;
    margin-bottom: 0.7rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: #e8f3fc;
    color: var(--ds-brand-blue);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.ds-dashboard-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    margin-bottom: 4.25rem;
    padding: 3rem 3.25rem;
    border: 1px solid var(--ds-line);
    border-radius: 8px;
    background: #f7f8f9;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ds-dashboard-hero::after {
    position: absolute;
    top: -7rem;
    right: -4rem;
    width: 22rem;
    height: 22rem;
    border: 4rem solid rgba(20, 112, 190, 0.055);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.ds-dashboard-hero__content,
.ds-dashboard-hero__actions {
    position: relative;
    z-index: 1;
}

.ds-dashboard-hero h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 700;
}

.ds-dashboard-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--ds-muted);
    font-size: 1.05rem;
    font-weight: 500;
}

.ds-dashboard-hero__actions {
    display: flex;
    min-width: max-content;
    gap: 0.8rem;
}

.ds-dashboard-hero__actions .btn {
    min-height: 52px;
    padding: 0.85rem 1.25rem;
    border-radius: 6px;
}

.ds-dashboard-hero__actions .btn-light {
    border: 1px solid var(--ds-line);
    background: #fff;
    color: #334052;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ds-dashboard-section {
    margin-bottom: 4.5rem;
}

.ds-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.35rem;
}

.ds-section-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    font-weight: 700;
}

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

.ds-stat-card {
    position: relative;
    display: flex;
    min-height: 138px;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    padding: 1.45rem;
    border: 1px solid var(--ds-line);
    border-radius: 6px;
    background: var(--ds-card);
    color: var(--ds-text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ds-stat-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--ds-accent, var(--ds-brand-blue));
    content: "";
}

.ds-stat-card:hover {
    transform: translateY(-4px);
    color: var(--ds-text);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.ds-stat-card--blue { --ds-accent: var(--ds-brand-blue); }
.ds-stat-card--cyan { --ds-accent: var(--ds-brand-cyan); }
.ds-stat-card--indigo { --ds-accent: var(--ds-brand-indigo); }
.ds-stat-card--navy { --ds-accent: var(--ds-brand-blue-dark); }

.ds-stat-card__icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--ds-accent);
    color: #fff;
    font-size: 1.1rem;
}

.ds-stat-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ds-stat-card__content strong {
    color: var(--ds-ink);
    font-size: 1.9rem;
    line-height: 1.1;
}

.ds-stat-card__content span {
    margin-top: 0.3rem;
    color: var(--ds-muted);
    font-size: 0.86rem;
    font-weight: 500;
}

.ds-stat-card__arrow {
    margin-left: auto;
    color: #a4afbd;
    font-size: 0.78rem;
}

.ds-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(290px, 0.8fr);
    align-items: start;
    gap: 2rem;
}

.ds-client-home-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.ds-home-panel {
    margin: 0 !important;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ds-home-panel .card-header {
    padding: 1.15rem 1.25rem;
    background: var(--ds-card);
}

.ds-home-panel .card-title {
    font-size: 1rem;
    letter-spacing: -0.015em;
}

.ds-home-panel .list-group-item {
    padding: 0.9rem 1.25rem;
}

.ds-dashboard-aside {
    position: sticky;
    top: 1.5rem;
}

.ds-quick-actions {
    overflow: hidden;
    border: 1px solid var(--ds-line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ds-quick-action {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem;
    border-bottom: 1px solid #e6e9ed;
    color: var(--ds-text);
}

.ds-quick-action:last-child {
    border-bottom: 0;
}

.ds-quick-action:hover {
    background: var(--ds-card);
    color: var(--ds-text);
}

.ds-quick-action > span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #e8f3fc;
    color: var(--ds-brand-blue);
}

.ds-quick-action div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ds-quick-action strong {
    color: var(--ds-ink);
    font-size: 0.9rem;
}

.ds-quick-action small {
    overflow: hidden;
    margin-top: 0.15rem;
    color: var(--ds-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-quick-action > i {
    color: #a4afbd;
    font-size: 0.7rem;
}

@media (max-width: 1199.98px) {
    .ds-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ds-dashboard-layout { grid-template-columns: 1fr; }
    .ds-dashboard-aside { position: static; }
}

@media (max-width: 767.98px) {
    #main-body { padding-top: 1.5rem; }
    .ds-dashboard-hero {
        align-items: stretch;
        margin-bottom: 2.75rem;
        padding: 1.75rem;
        flex-direction: column;
    }
    .ds-dashboard-hero__actions { min-width: 0; flex-direction: column; }
    .ds-dashboard-hero__actions .btn { width: 100%; }
    .ds-stat-grid,
    .ds-client-home-cards { grid-template-columns: 1fr; }
    .ds-dashboard-section { margin-bottom: 3rem; }
}

/* DigiSync Portal 0.6 — densité, simplicité et cohérence des parcours */

:root {
    --ds-control-height: 42px;
}

/* Échelle typographique plus compacte sur tout le portail */

h1,
.h1 {
    font-size: 2.15rem;
    line-height: 1.12;
}

h2,
.h2 {
    font-size: 1.65rem;
    line-height: 1.18;
}

h3,
.h3 {
    font-size: 1.15rem;
    line-height: 1.25;
}

.ds-home-hero {
    gap: clamp(2rem, 5vw, 4.5rem);
    padding-top: clamp(3.5rem, 6vw, 5.25rem);
    padding-bottom: clamp(3.5rem, 6vw, 5.25rem);
}

.ds-home-hero h1 {
    margin-bottom: 1.15rem;
    font-size: clamp(2.35rem, 4.2vw, 3.75rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.ds-home-hero__content > p {
    margin-bottom: 1.6rem;
    font-size: clamp(0.94rem, 1.5vw, 1.08rem);
}

.ds-home-hero__actions .btn {
    min-height: 46px;
    padding: 0.7rem 1rem;
}

.ds-home-trust {
    margin-top: 1.4rem;
}

.ds-home-section {
    padding: clamp(3.25rem, 6vw, 5rem) 0;
}

.ds-home-section__heading {
    margin-bottom: 1.75rem;
}

.ds-home-section__heading h2,
.ds-account-banner h2 {
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    letter-spacing: -0.035em;
}

.ds-dashboard-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.035em;
}

.ds-section-heading h2 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    letter-spacing: -0.025em;
}

.ds-page-intro h1 {
    font-size: clamp(1.75rem, 3vw, 2.3rem);
    letter-spacing: -0.035em;
}

.ds-auth-story h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    letter-spacing: -0.04em;
}

.ds-auth-form__heading h2 {
    font-size: 1.65rem;
}

.ds-dashboard-section {
    margin-bottom: 3.5rem;
}

/* Lien vers le site public intégré à la navigation */

.ds-site-link {
    min-height: 40px;
    gap: 0.42rem;
    padding: 0.55rem 0.7rem;
    border: 0;
    background: transparent;
    color: #526176;
    font-size: 0.75rem;
}

.ds-site-link:hover,
.ds-site-link:focus {
    border: 0;
    background: #f2f6f9;
    color: var(--ds-brand-blue);
}

.ds-site-link > i:first-child {
    color: var(--ds-brand-blue);
}

.ds-site-link__external {
    margin-left: 0.1rem;
    font-size: 0.55rem;
    opacity: 0.55;
}

/* Résumé des services : une seule surface, sans empilement décoratif */

.ds-home-hero__visual {
    display: block;
    gap: 0;
    padding: 0;
    border-color: #dfe5eb;
    background: #fff;
    box-shadow: 0 12px 32px rgba(28, 35, 45, 0.1);
    backdrop-filter: none;
}

.ds-service-summary__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e8ecf0;
}

.ds-service-summary__header > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ds-service-summary__header small {
    color: var(--ds-brand-blue);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ds-service-summary__header strong {
    color: var(--ds-ink);
    font-size: 0.94rem;
}

.ds-service-summary__header > span {
    padding: 0.28rem 0.5rem;
    border-radius: 5px;
    background: #eef5fa;
    color: #627289;
    font-size: 0.62rem;
    font-weight: 600;
}

.ds-service-summary__list {
    margin: 0;
    padding: 0.3rem 1.1rem;
    list-style: none;
}

.ds-service-summary__list li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    padding: 0.78rem 0;
    border-bottom: 1px solid #edf0f3;
}

.ds-service-summary__list li:last-child {
    border-bottom: 0;
}

.ds-service-summary__list li > i {
    color: var(--ds-brand-blue);
    font-size: 0.9rem;
    text-align: center;
}

.ds-service-summary__list li > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ds-service-summary__list strong {
    color: var(--ds-ink);
    font-size: 0.82rem;
}

.ds-service-summary__list span {
    overflow: hidden;
    color: var(--ds-muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-service-summary__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.1rem;
    border-top: 1px solid #e8ecf0;
    color: var(--ds-brand-blue);
    font-size: 0.72rem;
    font-weight: 600;
}

.ds-service-summary__footer:hover {
    background: #f7fafc;
    color: var(--ds-brand-blue-dark);
}

/* Offres : cartes compactes et lisibles, deux par ligne */

.ds-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ds-offer-card {
    display: grid;
    min-height: 0;
    grid-template-columns: 42px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border-left: 3px solid var(--ds-brand-blue);
    background: #fff;
    box-shadow: 0 6px 18px rgba(28, 35, 45, 0.06);
}

.ds-offer-card:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 112, 190, 0.38);
    border-left-color: var(--ds-brand-blue);
    box-shadow: 0 10px 24px rgba(28, 35, 45, 0.09);
}

.ds-offer-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: #e8f3fc;
    color: var(--ds-brand-blue);
    font-size: 0.88rem;
}

.ds-offer-card__content {
    min-width: 0;
}

.ds-offer-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1.02rem;
}

.ds-offer-card p {
    overflow: hidden;
    margin: 0;
    color: var(--ds-muted);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-offer-card__link {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid #dfe5eb;
    border-radius: 6px;
    background: #f7f9fb;
    font-size: 0;
}

.ds-offer-card__link span {
    display: none;
}

.ds-offer-card__link i {
    font-size: 0.68rem;
}

.ds-offer-card__link:hover {
    border-color: rgba(20, 112, 190, 0.32);
    background: #eaf4fc;
}

/* Centre de ressources ramené à des raccourcis sobres */

.ds-resource-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.ds-resource-card,
.ds-resource-card--featured {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.95rem;
    border-color: var(--ds-line);
    background: var(--ds-card);
    box-shadow: none;
}

.ds-resource-card:hover {
    transform: none;
    border-color: rgba(20, 112, 190, 0.3);
    background: #fff;
}

.ds-resource-card__icon {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
}

.ds-resource-card small {
    display: none;
}

.ds-resource-card strong {
    font-size: 0.8rem;
}

.ds-resource-card p {
    margin-top: 0.1rem;
    font-size: 0.68rem;
    line-height: 1.35;
}

/* Panier : même langage visuel pour la catégorie des modules complémentaires */

#order-standard_cart .header-lined {
    margin-bottom: 1.2rem;
}

#order-standard_cart .header-lined h1,
#order-standard_cart h1 {
    font-size: 2rem !important;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

#order-standard_cart .cart-sidebar .card,
#order-standard_cart .cart-sidebar .panel,
#order-standard_cart .sidebar-categories {
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--ds-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(28, 35, 45, 0.06);
}

#order-standard_cart .cart-sidebar .card-header,
#order-standard_cart .cart-sidebar .panel-heading,
#order-standard_cart .sidebar-categories .panel-heading {
    padding: 0.8rem 0.95rem;
    border: 0;
    border-bottom: 1px solid #e8ecf0;
    background: #fff;
    color: var(--ds-ink);
}

#order-standard_cart .cart-sidebar .card-title,
#order-standard_cart .cart-sidebar .panel-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

#order-standard_cart .cart-sidebar .list-group-item,
#order-standard_cart .sidebar-categories a {
    padding: 0.68rem 0.9rem;
    border: 0;
    border-bottom: 1px solid #edf0f3;
    background: #fff;
    color: #4e5d71;
    font-size: 0.78rem;
    line-height: 1.35;
}

#order-standard_cart .cart-sidebar .list-group-item:last-child,
#order-standard_cart .sidebar-categories a:last-child {
    border-bottom: 0;
}

#order-standard_cart .cart-sidebar .list-group-item.active,
#order-standard_cart .cart-sidebar .list-group-item.active:hover,
#order-standard_cart .sidebar-categories a.active {
    border-left: 3px solid var(--ds-brand-blue);
    background: #eaf4fc;
    color: var(--ds-brand-blue);
    font-weight: 600;
}

#order-standard_cart .cart-body {
    min-width: 0;
}

#order-standard_cart #noAddons,
#order-standard_cart .alert-warning {
    padding: 0.8rem 1rem;
    border: 1px solid #efd29d;
    border-radius: 7px;
    background: #fff8eb;
    color: #8a5b17;
    font-size: 0.82rem;
}

#order-standard_cart .cart-body > .text-center .btn,
#order-standard_cart .cart-body > p.text-center .btn {
    min-height: var(--ds-control-height);
    padding: 0.6rem 0.95rem;
    border-radius: 6px;
}

/* Assistance : champ de pièce jointe et bouton strictement alignés */

.attachment-group {
    align-items: stretch;
    flex-wrap: nowrap;
}

.attachment-group .custom-file,
.attachment-group .custom-file-input,
.attachment-group .custom-file-label,
.attachment-group .input-group-append,
.attachment-group .input-group-append .btn {
    height: var(--ds-control-height);
    min-height: var(--ds-control-height);
}

.attachment-group .custom-file-label {
    margin: 0;
    padding: 0.58rem 0.8rem;
    border-color: #d5dde6;
    border-radius: 6px 0 0 6px;
    line-height: 1.35;
}

.attachment-group .custom-file-label::after {
    height: calc(var(--ds-control-height) - 2px);
    padding: 0.58rem 0.75rem;
    border-left-color: #d5dde6;
    background: #f3f5f7;
    line-height: 1.35;
}

.attachment-group .input-group-append .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.9rem;
    border-radius: 0 6px 6px 0;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .ds-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    h1,
    .h1 {
        font-size: 1.8rem;
    }

    h2,
    .h2 {
        font-size: 1.45rem;
    }

    .ds-home-hero h1 {
        font-size: 2.2rem;
    }

    .ds-home-hero__visual {
        padding: 0;
    }

    .ds-home-section {
        padding: 2.75rem 0;
    }

    .ds-offer-grid,
    .ds-resource-grid {
        grid-template-columns: 1fr;
    }

    .ds-offer-card {
        grid-template-columns: 40px minmax(0, 1fr) 34px;
        gap: 0.8rem;
        padding: 1rem;
    }

    #order-standard_cart .header-lined h1,
    #order-standard_cart h1 {
        font-size: 1.7rem !important;
    }
}

/* DigiSync Portal 0.7 — traduction applicative de la DA digisync.fr */

:root {
    --ds-app-canvas: #f5f7f9;
    --ds-app-surface: #ffffff;
    --ds-app-soft: #f7f8f9;
    --ds-app-ink: #1c232d;
    --ds-app-text: #334052;
    --ds-app-muted: #556987;
    --ds-app-line: #d5dae1;
    --ds-app-line-soft: #eef0f3;
    --ds-app-blue: #1470be;
    --ds-app-blue-dark: #0c3f74;
    --ds-app-blue-soft: #ebf3fe;
    --ds-app-radius: 7px;
    --ds-app-shadow: 0 8px 24px rgba(28, 35, 45, 0.07);
}

body.primary-bg-color,
#main-body {
    background: var(--ds-app-canvas) !important;
}

#main-body {
    padding-top: 2rem;
}

/* En-tête : identité client explicite et navigation de gestion */

#header.ds-header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--ds-app-line-soft);
    backdrop-filter: blur(10px);
}

.ds-header__nav {
    min-height: 70px;
    padding: 0.55rem 0;
}

.ds-brand {
    gap: 0.65rem;
    margin-right: 1.5rem;
}

.ds-brand__logo {
    width: 42px !important;
    height: 42px;
    max-width: 42px !important;
    max-height: 42px !important;
}

.ds-brand__fallback {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ds-app-blue);
    color: #fff;
    font-size: 0.82rem;
}

.ds-brand__identity {
    display: flex;
    padding-left: 0.65rem;
    border-left: 1px solid var(--ds-app-line);
    flex-direction: column;
    line-height: 1.15;
}

.ds-brand__identity strong {
    color: var(--ds-app-ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.ds-brand__identity small {
    margin-top: 0.18rem;
    color: var(--ds-app-blue);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.ds-header__primary > li > a,
.ds-header__account > li > a {
    min-height: 38px;
    padding: 0.5rem 0.65rem !important;
    color: #4c5b6e;
    font-size: 0.76rem;
}

.ds-header__primary > li > a:hover,
.ds-header__primary > li.active > a,
.ds-header__account > li > a:hover {
    background: var(--ds-app-blue-soft);
    color: var(--ds-app-blue-dark);
}

.ds-site-link {
    min-height: 38px;
    padding: 0.5rem 0.62rem;
    color: #65758a;
    font-size: 0.7rem;
}

.ds-site-link:hover,
.ds-site-link:focus {
    background: var(--ds-app-soft);
    color: var(--ds-app-blue);
}

.ds-header-search input {
    width: 190px;
    height: 38px;
    border-color: var(--ds-app-line);
    background: var(--ds-app-soft);
    font-size: 0.72rem;
}

.ds-icon-button {
    width: 38px;
    height: 38px;
    border-color: var(--ds-app-line);
}

.master-breadcrumb .breadcrumb {
    min-height: 36px;
    align-items: center;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    font-size: 0.68rem;
}

/* Accueil : portail opérationnel, distinct du site vitrine */

.ds-portal-entry {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.65fr);
    overflow: hidden;
    margin-bottom: 4rem;
    border: 1px solid var(--ds-app-line);
    border-top: 3px solid var(--ds-app-blue);
    border-radius: var(--ds-app-radius);
    background: var(--ds-app-surface);
    box-shadow: var(--ds-app-shadow);
}

.ds-portal-entry__content {
    padding: clamp(2.5rem, 5vw, 4.25rem);
}

.ds-portal-context,
.ds-workspace-context {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: var(--ds-app-blue);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.ds-portal-entry h1 {
    max-width: 720px;
    margin: 0 0 1rem;
    color: var(--ds-app-ink);
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.ds-portal-entry__content > p {
    max-width: 650px;
    margin: 0 0 1.6rem;
    color: var(--ds-app-muted);
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.6;
}

.ds-portal-entry__actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.ds-portal-entry__actions .btn {
    min-height: 44px;
    padding: 0.65rem 0.95rem;
    border-radius: 6px;
    font-size: 0.78rem;
}

.ds-portal-entry__actions .btn-default {
    border-color: var(--ds-app-line);
    background: #fff;
    color: var(--ds-app-text);
}

.ds-portal-entry__assurances {
    display: flex;
    gap: 1.15rem;
    margin: 1.75rem 0 0;
    padding: 1.1rem 0 0;
    border-top: 1px solid var(--ds-app-line-soft);
    color: #68788c;
    font-size: 0.67rem;
    list-style: none;
    flex-wrap: wrap;
}

.ds-portal-entry__assurances li {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.ds-portal-entry__assurances i {
    color: var(--ds-app-blue);
}

.ds-portal-entry__shortcuts {
    display: flex;
    min-width: 0;
    padding: 1.2rem;
    border-left: 1px solid var(--ds-app-line);
    background: var(--ds-app-soft);
    flex-direction: column;
}

.ds-portal-entry__shortcuts > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0.25rem 0.9rem;
    border-bottom: 1px solid var(--ds-app-line);
}

.ds-portal-entry__shortcuts > header > div {
    display: flex;
    flex-direction: column;
}

.ds-portal-entry__shortcuts header small {
    color: #8a98a9;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ds-portal-entry__shortcuts header strong {
    color: var(--ds-app-ink);
    font-size: 0.88rem;
}

.ds-portal-entry__secure {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #59806f;
    font-size: 0.58rem;
    font-weight: 600;
}

.ds-portal-entry__shortcuts nav {
    display: grid;
    gap: 0.55rem;
    padding: 0.9rem 0;
}

.ds-portal-entry__shortcuts nav > a {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.72rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #fff;
    color: var(--ds-app-text);
}

.ds-portal-entry__shortcuts nav > a:hover {
    border-color: rgba(20, 112, 190, 0.28);
    color: var(--ds-app-blue-dark);
}

.ds-portal-entry__shortcuts nav > a > span:first-child {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--ds-app-blue-soft);
    color: var(--ds-app-blue);
}

.ds-portal-entry__shortcuts nav div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ds-portal-entry__shortcuts nav strong {
    font-size: 0.76rem;
}

.ds-portal-entry__shortcuts nav small {
    overflow: hidden;
    margin-top: 0.12rem;
    color: var(--ds-app-muted);
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-portal-entry__shortcuts nav > a > i {
    color: #a3adba;
    font-size: 0.58rem;
}

.ds-portal-entry__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding: 0.8rem 0.25rem 0.2rem;
    border-top: 1px solid var(--ds-app-line);
    color: var(--ds-app-blue);
    font-size: 0.67rem;
    font-weight: 600;
}

.ds-portal-entry__status span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.ds-portal-entry__status span > i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #36a071;
}

.ds-portal-section {
    margin-bottom: 4rem;
}

.ds-portal-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.35rem;
}

.ds-portal-section__kicker {
    display: block;
    margin-bottom: 0.38rem;
    color: var(--ds-app-blue);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ds-portal-section__header h2,
.ds-portal-help h2 {
    margin: 0 0 0.35rem;
    color: var(--ds-app-ink);
    font-size: clamp(1.5rem, 2.5vw, 1.95rem);
    letter-spacing: -0.035em;
}

.ds-portal-section__header p,
.ds-portal-help__intro p {
    margin: 0;
    color: var(--ds-app-muted);
    font-size: 0.76rem;
}

.ds-inline-link {
    display: inline-flex;
    min-width: max-content;
    align-items: center;
    gap: 0.45rem;
    color: var(--ds-app-blue);
    font-size: 0.7rem;
    font-weight: 600;
}

.ds-service-catalog {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.ds-service-catalog__item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 0.9rem;
    min-height: 86px;
    padding: 1rem;
    border: 1px solid var(--ds-app-line);
    border-radius: var(--ds-app-radius);
    background: #fff;
    color: var(--ds-app-text);
    box-shadow: 0 4px 14px rgba(28, 35, 45, 0.04);
}

.ds-service-catalog__item:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 112, 190, 0.34);
    color: var(--ds-app-blue-dark);
    box-shadow: var(--ds-app-shadow);
}

.ds-service-catalog__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--ds-app-blue-soft);
    color: var(--ds-app-blue);
}

.ds-service-catalog__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ds-service-catalog__content strong {
    overflow: hidden;
    color: var(--ds-app-ink);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-service-catalog__content small {
    overflow: hidden;
    margin-top: 0.2rem;
    color: var(--ds-app-muted);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-service-catalog__action {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ds-app-line-soft);
    border-radius: 6px;
    background: var(--ds-app-soft);
    color: var(--ds-app-blue);
    font-size: 0.62rem;
}

.ds-portal-help {
    display: grid;
    grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--ds-app-line);
    border-radius: var(--ds-app-radius);
    background: #fff;
}

.ds-portal-help__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--ds-app-line-soft);
    border-radius: 6px;
}

.ds-portal-help__links a {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.8rem;
    border-right: 1px solid var(--ds-app-line-soft);
    color: var(--ds-app-text);
}

.ds-portal-help__links a:last-child {
    border-right: 0;
}

.ds-portal-help__links a:hover {
    background: var(--ds-app-soft);
    color: var(--ds-app-blue-dark);
}

.ds-portal-help__links > a > i {
    color: var(--ds-app-blue);
    text-align: center;
}

.ds-portal-help__links span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ds-portal-help__links strong {
    overflow: hidden;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-portal-help__links small {
    overflow: hidden;
    color: var(--ds-app-muted);
    font-size: 0.6rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Navigation contextuelle : un rail applicatif unique */

.ds-app-layout {
    grid-template-columns: minmax(220px, 245px) minmax(0, 1fr);
    gap: 1.5rem;
}

.ds-app-sidebar {
    top: 86px;
    overflow: hidden;
    padding: 0.35rem 0;
    border: 1px solid var(--ds-app-line);
    border-radius: var(--ds-app-radius);
    background: #fff;
    box-shadow: 0 6px 18px rgba(28, 35, 45, 0.05);
}

.ds-app-sidebar > .sidebar,
.ds-app-sidebar > .sidebar + .sidebar {
    margin: 0;
}

.ds-context-group {
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ds-app-line-soft) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ds-app-sidebar .sidebar:last-child .ds-context-group:last-child,
.ds-app-sidebar > .sidebar:last-child .ds-context-group:last-child {
    border-bottom: 0 !important;
}

.ds-context-group__header {
    min-height: 48px;
    padding: 0.65rem 0.75rem !important;
    background: transparent !important;
}

.ds-context-group__title {
    gap: 0.58rem;
}

.ds-context-group__icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    background: var(--ds-app-blue-soft);
    font-size: 0.72rem;
}

.ds-context-group__title h3 {
    color: var(--ds-app-text);
    font-size: 0.72rem;
    font-weight: 700;
}

.ds-context-collapse {
    width: 26px;
    height: 26px;
    background: transparent;
    font-size: 0.62rem;
}

.ds-context-group__body {
    border-top-color: var(--ds-app-line-soft);
}

.ds-context-menu {
    padding: 0.3rem 0.45rem 0.45rem;
}

.ds-context-link {
    min-height: 39px;
    grid-template-columns: 26px minmax(0, 1fr) auto auto;
    gap: 0.48rem;
    padding: 0.35rem 0.45rem !important;
    font-size: 0.69rem !important;
}

.ds-context-link__icon {
    width: 26px;
    height: 26px;
    background: #f1f3f5;
    font-size: 0.65rem;
}

.ds-context-link.active {
    box-shadow: inset 3px 0 0 var(--ds-app-blue);
}

.ds-context-link.active .ds-context-link__icon {
    background: transparent;
    color: var(--ds-app-blue);
}

.ds-context-group__content,
.ds-context-group__footer {
    padding: 0.75rem !important;
    font-size: 0.68rem;
}

/* Tableau de bord : entête de travail et synthèse compacte */

.ds-workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.2rem;
    padding: 1.6rem 1.75rem;
    border: 1px solid var(--ds-app-line);
    border-left: 4px solid var(--ds-app-blue);
    border-radius: var(--ds-app-radius);
    background: #fff;
    box-shadow: 0 6px 18px rgba(28, 35, 45, 0.05);
}

.ds-workspace-context {
    margin-bottom: 0.55rem;
}

.ds-workspace-header h1 {
    margin: 0 0 0.4rem;
    color: var(--ds-app-ink);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    letter-spacing: -0.035em;
}

.ds-workspace-header p {
    margin: 0;
    color: var(--ds-app-muted);
    font-size: 0.78rem;
}

.ds-workspace-header__actions {
    display: flex;
    min-width: max-content;
    gap: 0.65rem;
}

.ds-workspace-header__actions .btn {
    min-height: 42px;
    padding: 0.62rem 0.85rem;
    border-radius: 6px;
    font-size: 0.72rem;
}

.ds-workspace-header__actions .btn-default {
    border-color: var(--ds-app-line);
    background: #fff;
}

.ds-overview-section {
    margin-bottom: 2.8rem;
}

.ds-overview-section__hint {
    color: #8a98aa;
    font-size: 0.65rem;
}

.ds-stat-grid {
    gap: 0.75rem;
}

.ds-stat-card {
    min-height: 100px;
    gap: 0.75rem;
    padding: 1rem;
    overflow: visible;
    border-color: var(--ds-app-line);
    background: #fff;
    box-shadow: 0 4px 14px rgba(28, 35, 45, 0.05);
}

.ds-stat-card::before {
    display: none;
}

.ds-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 112, 190, 0.3);
    box-shadow: var(--ds-app-shadow);
}

.ds-stat-card__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 6px;
    background: var(--ds-app-blue-soft);
    color: var(--ds-accent, var(--ds-app-blue));
    font-size: 0.88rem;
}

.ds-stat-card__content strong {
    font-size: 1.35rem;
}

.ds-stat-card__content span {
    margin-top: 0.18rem;
    font-size: 0.7rem;
}

.ds-dashboard-layout {
    grid-template-columns: minmax(0, 1.8fr) minmax(255px, 0.7fr);
    gap: 1.5rem;
}

.ds-activity-panel,
.ds-home-panel {
    border-color: var(--ds-app-line) !important;
    border-radius: var(--ds-app-radius) !important;
    box-shadow: 0 4px 14px rgba(28, 35, 45, 0.05) !important;
}

.ds-quick-actions {
    border-color: var(--ds-app-line);
    border-radius: var(--ds-app-radius);
    box-shadow: 0 4px 14px rgba(28, 35, 45, 0.05);
}

.ds-quick-action {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 0.7rem;
    padding: 0.85rem;
}

.ds-quick-action > span {
    width: 34px;
    height: 34px;
}

.ds-quick-action strong {
    font-size: 0.74rem;
}

.ds-quick-action small {
    font-size: 0.62rem;
}

@media (max-width: 1199.98px) {
    .ds-brand__identity strong {
        display: none;
    }

    .ds-brand__identity small {
        margin: 0;
    }

    .ds-portal-entry {
        grid-template-columns: 1fr;
    }

    .ds-portal-entry__shortcuts {
        border-top: 1px solid var(--ds-app-line);
        border-left: 0;
    }

    .ds-portal-help {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .ds-app-sidebar {
        position: static;
        margin-bottom: 1.25rem;
    }

    .ds-context-group {
        border-bottom: 1px solid var(--ds-app-line-soft) !important;
    }

    .ds-workspace-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ds-workspace-header__actions {
        width: 100%;
    }

    .ds-workspace-header__actions .btn {
        flex: 1;
    }

    .ds-portal-help__links {
        grid-template-columns: 1fr;
    }

    .ds-portal-help__links a {
        border-right: 0;
        border-bottom: 1px solid var(--ds-app-line-soft);
    }

    .ds-portal-help__links a:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    #main-body {
        padding-top: 1.25rem;
    }

    .ds-brand {
        margin-right: 0;
    }

    .ds-brand__identity {
        display: flex;
    }

    .ds-portal-entry {
        margin-bottom: 2.75rem;
    }

    .ds-portal-entry__content {
        padding: 1.6rem;
    }

    .ds-portal-entry h1 {
        font-size: 2rem;
    }

    .ds-portal-entry__actions,
    .ds-workspace-header__actions {
        flex-direction: column;
    }

    .ds-portal-entry__actions .btn,
    .ds-workspace-header__actions .btn {
        width: 100%;
    }

    .ds-portal-entry__assurances {
        align-items: flex-start;
        gap: 0.65rem;
        flex-direction: column;
    }

    .ds-portal-entry__shortcuts {
        padding: 1rem;
    }

    .ds-portal-section {
        margin-bottom: 2.75rem;
    }

    .ds-portal-section__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ds-service-catalog {
        grid-template-columns: 1fr;
    }

    .ds-portal-help {
        gap: 1.25rem;
        padding: 1.15rem;
    }

    .ds-workspace-header {
        margin-bottom: 1.75rem;
        padding: 1.25rem;
    }

    .ds-overview-section__hint {
        display: none;
    }
}

/* Harmonisation avec la forme de digisync.fr — header, surfaces et contrôles */

:root {
    --ds-site-blue: #1470be;
    --ds-site-blue-dark: #0c3f74;
    --ds-site-ink: #1c232d;
    --ds-site-text: #334052;
    --ds-site-muted: #556987;
    --ds-site-surface: #f7f8f9;
    --ds-site-border: #d5dae1;
    --ds-site-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

html {
    font-size: 16px;
}

body.primary-bg-color,
#main-body {
    background: #fff !important;
}

@media (min-width: 1440px) {
    #main-body > .container,
    .master-breadcrumb > .container,
    .ds-footer > .container {
        max-width: 1500px;
    }
}

/* Boutons : couleurs pleines du site, une seule surface et centrage exact */

.btn,
button.btn,
input.btn,
a.btn,
#order-standard_cart .btn,
#order-standard_cart .btn-primary,
#order-standard_cart .btn-checkout {
    display: inline-flex !important;
    min-height: 46px;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem;
    padding: 0.7rem 1rem !important;
    border-radius: 6px !important;
    background-image: none !important;
    box-shadow: none !important;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.2 !important;
    text-align: center;
    transform: none !important;
}

.btn-primary,
#order-standard_cart .btn-primary,
#order-standard_cart .btn-checkout {
    border-color: var(--ds-site-blue) !important;
    background: var(--ds-site-blue) !important;
    color: #f5f9ff !important;
}

.btn-primary:hover,
.btn-primary:focus,
#order-standard_cart .btn-primary:hover,
#order-standard_cart .btn-primary:focus,
#order-standard_cart .btn-checkout:hover,
#order-standard_cart .btn-checkout:focus {
    border-color: var(--ds-site-blue-dark) !important;
    background: var(--ds-site-blue-dark) !important;
    color: #fff !important;
}

.btn-success {
    border-color: #15845f !important;
    background: #15845f !important;
    color: #fff !important;
}

.btn-success:hover,
.btn-success:focus {
    border-color: #106b4d !important;
    background: #106b4d !important;
}

.btn-default,
.btn-secondary,
.btn-light {
    border-color: var(--ds-site-border) !important;
    background: #fff !important;
    color: var(--ds-site-text) !important;
}

.btn-default:hover,
.btn-default:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-light:hover,
.btn-light:focus {
    border-color: #bcc5d0 !important;
    background: var(--ds-site-surface) !important;
    color: var(--ds-site-ink) !important;
}

.btn-sm,
.btn-group-sm > .btn {
    min-height: 38px;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.76rem;
}

.btn-lg,
.btn-group-lg > .btn {
    min-height: 52px;
    padding: 0.85rem 1.25rem !important;
}

/* Header : même forme générale que le site public */

#header.ds-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid #eef0f3;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(28, 35, 45, 0.08);
    backdrop-filter: blur(10px);
}

.ds-header__nav {
    min-height: 75px;
    padding: 0.7rem 0;
}

.ds-header__nav > .container {
    width: 100%;
    max-width: none !important;
    padding-right: 1.75rem;
    padding-left: 1.75rem;
}

.ds-brand {
    gap: 0.7rem;
    margin-right: 2rem;
}

.ds-brand__logo {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
}

.ds-brand__fallback {
    width: 50px;
    height: 50px;
}

.ds-brand__identity {
    padding-left: 0.75rem;
}

.ds-brand__identity strong {
    font-size: 1rem;
}

.ds-brand__identity small {
    margin-top: 0.22rem;
    font-size: 0.66rem;
}

.ds-header__primary > li > a,
.ds-header__account > li > a {
    min-height: 44px;
    padding: 0.65rem 0.8rem !important;
    border-radius: 6px;
    color: #4c5a6d;
    font-size: 0.9rem;
    font-weight: 500;
}

.ds-header__primary > li > a:hover,
.ds-header__primary > li.active > a,
.ds-header__account > li > a:hover {
    background: #f7f8f9;
    color: var(--ds-site-ink);
}

.ds-header__tools {
    gap: 0.55rem;
}

.ds-site-link {
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border-radius: 6px;
    color: #556987;
    font-size: 0.8rem;
    font-weight: 500;
}

.ds-site-link:hover {
    background: #f7f8f9;
    color: var(--ds-site-ink);
}

.ds-header-search input {
    width: 220px;
    height: 44px;
    border-color: var(--ds-site-border);
    border-radius: 6px;
    background: #f7f8f9;
    font-size: 0.82rem;
}

.ds-icon-button {
    width: 44px;
    height: 44px;
    border-color: var(--ds-site-border);
    border-radius: 6px;
    box-shadow: none;
}

.ds-header__account .dropdown-menu,
#header .dropdown-menu {
    min-width: 270px;
    padding: 0.55rem;
    border: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--ds-site-shadow);
}

.ds-header__account .dropdown-menu > li > a,
#header .dropdown-menu .dropdown-item,
#header .dropdown-menu > li > a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0.7rem 0.8rem !important;
    border-radius: 6px;
    color: #404b5b;
    font-size: 0.88rem;
    line-height: 1.25;
}

.ds-header__account .dropdown-menu > li > a:hover,
#header .dropdown-menu .dropdown-item:hover,
#header .dropdown-menu > li > a:hover {
    background: #f7f8f9;
    color: var(--ds-site-ink);
}

#header .dropdown-menu .active > a,
#header .dropdown-menu a.active {
    background: #ebf3fe;
    color: var(--ds-site-blue-dark);
}

#header .dropdown-menu .dropdown-divider,
#header .dropdown-menu .nav-divider {
    margin: 0.4rem 0;
    border-top-color: #eef0f3;
}

@media (min-width: 1700px) {
    .ds-header__nav > .container {
        position: relative;
    }

    .ds-header__primary {
        position: absolute;
        left: 50%;
        margin: 0;
        transform: translateX(-50%);
    }
}

/* Surfaces : blocs plus proches des cartes du site, moins de tableaux bordés */

.card,
.panel,
.ds-workspace-header,
.ds-stat-card,
.ds-activity-panel,
.ds-home-panel,
.ds-quick-actions {
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: var(--ds-site-shadow) !important;
}

.card,
.panel,
.ds-workspace-header,
.ds-activity-panel,
.ds-home-panel,
.ds-quick-actions {
    background: #fff !important;
}

.card-header,
.panel-heading,
.ds-activity-panel__header {
    border-bottom: 1px solid #eef0f3 !important;
    background: #fff !important;
}

.form-control,
.custom-select,
.input-group-text,
.custom-file-label {
    min-height: 46px;
    border-color: var(--ds-site-border);
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Accueil : hero ouvert et accès rapides verticaux rapprochés */

.ds-portal-entry {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 370px);
    overflow: visible;
    align-items: center;
    gap: clamp(1.5rem, 2.75vw, 2.5rem);
    width: 100%;
    max-width: 1180px;
    margin-bottom: 4.5rem;
    border: 0;
    border-top: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ds-portal-entry__content {
    width: 100%;
    max-width: 850px;
    padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.ds-portal-entry__content > p {
    font-size: 1.05rem;
}

.ds-portal-entry__actions .btn {
    min-height: 50px;
    padding-right: 1.25rem !important;
    padding-left: 1.25rem !important;
    font-size: 0.9rem;
}

.ds-portal-entry__assurances {
    margin-top: 2rem;
    padding-top: 1.35rem;
    font-size: 0.78rem;
}

.ds-portal-entry__shortcuts {
    display: flex;
    align-self: center;
    justify-self: start;
    width: 100%;
    margin-top: 1.1rem;
    padding: 1.1rem;
    border: 1px solid #e5e8ed;
    border-radius: 6px;
    background: #f7f8f9;
    box-shadow: var(--ds-site-shadow);
    flex-direction: column;
}

.ds-portal-entry__shortcuts > header {
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0.2rem 0.75rem;
    border-right: 0;
    border-bottom: 1px solid #e5e8ed;
    flex-direction: row;
}

.ds-portal-entry__shortcuts nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    padding: 0.75rem 0;
}

.ds-portal-entry__shortcuts nav > a {
    min-height: 66px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid #e5e8ed;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
}

.ds-portal-entry__shortcuts nav > a:hover {
    border-color: rgba(20, 112, 190, 0.28);
    background: #f9fbfd;
    box-shadow: none;
}

.ds-portal-entry__shortcuts nav > a > span:first-child {
    width: 36px;
    height: 36px;
}

.ds-portal-entry__shortcuts nav strong {
    font-size: 0.78rem;
}

.ds-portal-entry__shortcuts nav small {
    font-size: 0.65rem;
}

.ds-portal-entry__status {
    align-items: center;
    margin-top: 0.1rem;
    padding: 0.7rem 0.2rem 0.1rem;
    border-top: 1px solid #e5e8ed;
    border-left: 0;
}

.ds-portal-section {
    margin-bottom: 5rem;
}

.ds-portal-section__header {
    margin-bottom: 1.75rem;
}

.ds-portal-section__header p,
.ds-portal-help__intro p {
    font-size: 0.88rem;
}

.ds-inline-link {
    font-size: 0.82rem;
}

.ds-service-catalog {
    gap: 1.25rem;
}

.ds-service-catalog__item {
    min-height: 118px;
    grid-template-columns: 52px minmax(0, 1fr) 40px;
    gap: 1.15rem;
    padding: 1.5rem;
    border: 0;
    border-radius: 6px;
    background: #f7f8f9;
    box-shadow: var(--ds-site-shadow);
}

.ds-service-catalog__item:hover {
    border: 0;
    background: #f3f5f7;
    box-shadow: 0 12px 30px rgba(28, 35, 45, 0.13);
}

.ds-service-catalog__icon {
    width: 52px;
    height: 52px;
    background: var(--ds-site-blue);
    color: #fff;
}

.ds-service-catalog__content strong {
    font-size: 1rem;
}

.ds-service-catalog__content small {
    margin-top: 0.35rem;
    font-size: 0.8rem;
}

.ds-service-catalog__action {
    width: 40px;
    height: 40px;
    border: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(28, 35, 45, 0.07);
}

.ds-portal-help {
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding: 2.25rem;
    border: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--ds-site-shadow);
}

.ds-portal-help__links {
    gap: 0.8rem;
    border: 0;
}

.ds-portal-help__links a {
    min-height: 82px;
    padding: 1rem;
    border: 0;
    border-radius: 6px;
    background: #f7f8f9;
    box-shadow: 0 4px 12px rgba(28, 35, 45, 0.06);
}

.ds-portal-help__links a:hover {
    background: #f3f5f7;
    box-shadow: var(--ds-site-shadow);
}

.ds-portal-help__links strong {
    font-size: 0.82rem;
}

.ds-portal-help__links small {
    margin-top: 0.15rem;
    font-size: 0.7rem;
}

/* Espace connecté : composants plus grands et moins quadrillés */

.ds-app-layout {
    grid-template-columns: minmax(250px, 285px) minmax(0, 1fr);
    gap: 2rem;
}

.ds-app-sidebar {
    border: 0;
    border-radius: 6px;
    box-shadow: var(--ds-site-shadow);
}

.ds-context-group__header {
    min-height: 58px;
    padding: 0.85rem 1rem !important;
}

.ds-context-group__icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
}

.ds-context-group__title h3 {
    font-size: 0.82rem;
}

.ds-context-link {
    min-height: 46px;
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
    padding: 0.5rem 0.65rem !important;
    font-size: 0.78rem !important;
}

.ds-context-link__icon {
    width: 32px;
    height: 32px;
}

.ds-workspace-header {
    min-height: 160px;
    padding: 2rem 2.25rem;
    border-left: 0;
    background: #f7f8f9 !important;
}

.ds-workspace-header p {
    font-size: 0.9rem;
}

.ds-workspace-header__actions .btn {
    min-height: 48px;
}

.ds-stat-grid {
    gap: 1.15rem;
}

.ds-stat-card {
    min-height: 128px;
    padding: 1.35rem;
    background: #f7f8f9 !important;
}

.ds-stat-card__icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    background: var(--ds-site-blue);
    color: #fff;
}

.ds-stat-card__content strong {
    font-size: 1.55rem;
}

.ds-stat-card__content span {
    font-size: 0.82rem;
}

.ds-quick-action {
    min-height: 72px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 1rem;
}

.ds-quick-action > span {
    width: 42px;
    height: 42px;
}

.ds-quick-action strong {
    font-size: 0.84rem;
}

.ds-quick-action small {
    font-size: 0.72rem;
}

@media (max-width: 1199.98px) {
    .ds-header__nav > .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .ds-brand__identity strong {
        display: block;
    }

    .ds-brand__identity small {
        margin-top: 0.22rem;
    }
}

@media (max-width: 991.98px) {
    .ds-header__nav {
        min-height: 68px;
    }

    .ds-brand__logo {
        width: 44px !important;
        height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
    }

    .ds-header__primary {
        position: static;
        transform: none;
    }

    .ds-portal-entry {
        grid-template-columns: minmax(0, 1fr);
        max-width: none;
    }

    .ds-portal-entry__shortcuts {
        justify-self: stretch;
        margin-top: 0;
        padding: 1rem;
        border-top: 1px solid #e5e8ed;
    }

    .ds-portal-entry__shortcuts > header {
        align-items: center;
        justify-content: space-between;
        padding: 0.25rem 0.25rem 0.8rem;
        border-right: 0;
        border-bottom: 1px solid #e5e8ed;
        flex-direction: row;
    }

    .ds-portal-entry__shortcuts nav {
        padding: 0.8rem 0;
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 15px;
    }

    .ds-brand__identity strong {
        font-size: 0.88rem;
    }

    .ds-brand__identity small {
        font-size: 0.58rem;
    }

    .ds-portal-entry__content {
        padding: 2rem 1.5rem;
    }

    .ds-portal-entry__shortcuts {
        padding: 1rem;
    }

    .ds-portal-entry__shortcuts nav {
        gap: 0.55rem;
    }

    .ds-service-catalog__item {
        min-height: 104px;
        grid-template-columns: 46px minmax(0, 1fr) 36px;
        padding: 1.15rem;
    }

    .ds-service-catalog__icon {
        width: 46px;
        height: 46px;
    }

    .ds-portal-help {
        padding: 1.5rem;
    }
}

/* DigiSync Store 0.9 — catalogue, catégories et formulaires de commande */

:root {
    --ds-store-indigo: #1470be;
    --ds-store-indigo-dark: #0c3f74;
    --ds-store-indigo-soft: #ebf3fe;
    --ds-store-success: #2ad167;
}

/* Les actions commerciales utilisent l'indigo de digisync.fr, pas le vert WHMCS. */

#order-standard_cart .btn-success,
#order-standard_cart .btn-order-now,
#order-standard_cart .ds-plan-card__cta {
    border-color: var(--ds-store-indigo) !important;
    background: var(--ds-store-indigo) !important;
    color: #fff !important;
    box-shadow: none !important;
}

#order-standard_cart .btn-success:hover,
#order-standard_cart .btn-success:focus,
#order-standard_cart .btn-order-now:hover,
#order-standard_cart .btn-order-now:focus,
#order-standard_cart .ds-plan-card__cta:hover,
#order-standard_cart .ds-plan-card__cta:focus {
    border-color: var(--ds-store-indigo-dark) !important;
    background: var(--ds-store-indigo-dark) !important;
    color: #fff !important;
}

/* Disposition du store : rail léger à gauche et contenu respirant à droite. */

@media (min-width: 992px) {
    #order-standard_cart > .row {
        display: grid;
        grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
        align-items: start;
        gap: clamp(2rem, 3vw, 3.25rem);
        margin-right: 0;
        margin-left: 0;
    }

    #order-standard_cart > .row > .cart-sidebar,
    #order-standard_cart > .row > .cart-body {
        width: auto !important;
        max-width: none !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        float: none !important;
    }

    #order-standard_cart > .row > .cart-sidebar {
        display: block !important;
    }

    #order-standard_cart .sidebar-collapsed {
        display: none !important;
    }
}

#order-standard_cart .cart-sidebar {
    position: relative;
}

#order-standard_cart .cart-sidebar .card,
#order-standard_cart .cart-sidebar .panel,
#order-standard_cart .sidebar-categories {
    overflow: visible;
    margin-bottom: 1.5rem;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#order-standard_cart .cart-sidebar .card-header,
#order-standard_cart .cart-sidebar .panel-heading,
#order-standard_cart .sidebar-categories .panel-heading {
    padding: 0 0 0.75rem !important;
    border: 0 !important;
    background: transparent !important;
}

#order-standard_cart .cart-sidebar .card-title,
#order-standard_cart .cart-sidebar .panel-title {
    display: flex;
    min-height: 28px;
    align-items: center;
    color: var(--ds-site-ink);
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: -0.015em;
}

#order-standard_cart .cart-sidebar .card-title > i:first-child,
#order-standard_cart .cart-sidebar .panel-title > i:first-child {
    width: 24px;
    color: var(--ds-store-indigo);
    text-align: left;
}

#order-standard_cart .cart-sidebar .card-minimise,
#order-standard_cart .cart-sidebar .panel-minimise {
    margin-left: auto;
    color: #8b96a6;
    font-size: 0.65rem;
}

#order-standard_cart .cart-sidebar .list-group,
#order-standard_cart .sidebar-categories .list-group {
    display: grid;
    gap: 0.25rem;
}

#order-standard_cart .cart-sidebar .list-group-item,
#order-standard_cart .sidebar-categories a {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 0.72rem !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #4d5f79 !important;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.25;
}

#order-standard_cart .cart-sidebar .list-group-item > i,
#order-standard_cart .sidebar-categories a > i {
    width: 19px;
    color: #8190a5;
    font-size: 0.78rem;
    text-align: center;
}

#order-standard_cart .cart-sidebar .list-group-item:hover,
#order-standard_cart .sidebar-categories a:hover {
    background: #f5f6f8 !important;
    color: var(--ds-site-ink) !important;
}

#order-standard_cart .cart-sidebar .list-group-item.active,
#order-standard_cart .cart-sidebar .list-group-item.active:hover,
#order-standard_cart .sidebar-categories a.active {
    border-left: 0 !important;
    background: var(--ds-store-indigo-soft) !important;
    color: var(--ds-store-indigo) !important;
    font-weight: 650;
}

#order-standard_cart .cart-sidebar .list-group-item.active > i,
#order-standard_cart .sidebar-categories a.active > i {
    color: var(--ds-store-indigo) !important;
}

#order-standard_cart .cart-sidebar .card + .card,
#order-standard_cart .cart-sidebar .panel + .panel {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e8ed !important;
}

/* Catalogue Transit : langage des cartes tarifaires du site, données WHMCS intactes. */

.ds-store-heading {
    margin-bottom: 2rem;
}

.ds-store-heading__eyebrow {
    display: inline-flex;
    margin-bottom: 0.65rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: var(--ds-store-indigo-soft);
    color: var(--ds-store-indigo);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

#order-standard_cart .ds-store-heading h1 {
    margin: 0;
    color: var(--ds-site-ink);
    font-size: clamp(1.85rem, 3vw, 2.6rem) !important;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.ds-store-heading p {
    max-width: 720px;
    margin: 0.65rem 0 0;
    color: var(--ds-site-muted);
    font-size: 0.9rem;
}

.ds-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.25rem;
}

.ds-plan-grid--count-4 .ds-plan-card:last-child {
    grid-column: 2;
}

.ds-plan-card {
    display: flex;
    min-width: 0;
    min-height: 500px;
    flex-direction: column;
    padding: 2rem 1.65rem 1.7rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #f7f8f9;
    box-shadow: 0 12px 30px rgba(28, 35, 45, 0.12);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ds-plan-card:hover {
    border-color: rgba(100, 90, 192, 0.22);
    box-shadow: 0 16px 36px rgba(28, 35, 45, 0.15);
    transform: translateY(-2px);
}

.ds-plan-card__head {
    position: relative;
    min-height: 70px;
    text-align: center;
}

.ds-plan-card__head h2 {
    margin: 0;
    color: #334052;
    font-size: 1.45rem;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.ds-plan-card__kind {
    display: block;
    margin-top: 0.35rem;
    color: #8896ab;
    font-size: 0.72rem;
    font-weight: 500;
}

.ds-plan-card__stock {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.55rem;
    color: #59806f;
    font-size: 0.68rem;
}

.ds-plan-card__price {
    display: flex;
    min-height: 106px;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.6rem 0 1.1rem;
    text-align: center;
}

.ds-plan-card__price-main {
    color: #2a3342;
    font-size: clamp(2.35rem, 3.2vw, 3.45rem);
    font-weight: 650;
    letter-spacing: -0.055em;
    line-height: 1;
}

.ds-plan-card__period {
    align-self: flex-end;
    margin-bottom: 1.25rem;
    color: #556987;
    font-size: 0.72rem;
    font-weight: 600;
}

.ds-plan-card__setup {
    display: block;
    margin: -0.8rem 0 1rem;
    color: #77879c;
    font-size: 0.68rem;
    text-align: center;
}

#order-standard_cart .ds-plan-card__cta {
    width: 100%;
    min-height: 48px;
    margin-bottom: 1.55rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.ds-plan-card__details {
    padding-top: 1.35rem;
    border-top: 1px solid #e0e4e9;
}

.ds-plan-card__features {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ds-plan-card__features li,
.ds-plan-card__description p {
    position: relative;
    margin: 0;
    padding-left: 1.45rem;
    color: #556987;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
}

.ds-plan-card__features li::before,
.ds-plan-card__description p::before {
    position: absolute;
    top: 0.12rem;
    left: 0;
    color: var(--ds-store-success);
    content: "\f058";
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-size: 0.82rem;
    font-weight: 900;
}

.ds-plan-card__features .feature-value {
    font-weight: 700;
}

.ds-plan-card__description {
    display: grid;
    gap: 0.8rem;
}

.ds-plan-card__description br:only-child {
    display: none;
}

.ds-plan-card__empty {
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 6px;
    background: #f7f8f9;
    color: var(--ds-site-muted);
    text-align: center;
}

/* Configuration produit : suppression des grandes boîtes WHMCS imbriquées. */

#order-standard_cart #frmConfigureProduct .secondary-cart-body {
    min-width: 0;
}

#order-standard_cart #frmConfigureProduct .sub-heading,
#order-standard_cart #frmConfigureProduct .sub-heading-borderless {
    height: auto !important;
    margin: 1.8rem 0 1rem;
    border: 0 !important;
    text-align: left;
}

#order-standard_cart #frmConfigureProduct .sub-heading span,
#order-standard_cart #frmConfigureProduct .sub-heading-borderless span {
    position: static !important;
    display: block;
    width: auto;
    padding: 0 !important;
    background: transparent !important;
    color: var(--ds-site-ink) !important;
    font-size: 1rem;
    font-weight: 650;
    text-align: left;
}

#order-standard_cart #frmConfigureProduct .field-container {
    margin: 0 0 1.25rem !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#order-standard_cart #frmConfigureProduct .field-container .form-group {
    margin-bottom: 1rem;
}

#order-standard_cart #frmConfigureProduct .field-container label {
    margin-bottom: 0.45rem;
    color: #3d4b5e;
    font-size: 0.82rem;
    font-weight: 600;
}

#order-standard_cart #frmConfigureProduct .field-container .form-control,
#order-standard_cart #frmConfigureProduct .field-container .custom-select {
    width: 100%;
    max-width: 520px;
    min-height: 46px;
    border-color: #d5dae1;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: none;
}

#order-standard_cart #frmConfigureProduct #inputBillingcycle {
    width: min(100%, 320px);
}

#order-standard_cart #frmConfigureProduct .product-configurable-options {
    padding: 1.25rem;
    border: 1px solid #e0e4e9;
    border-radius: 6px;
    background: #f7f8f9;
}

#order-standard_cart #frmConfigureProduct .alert {
    border-radius: 6px;
    box-shadow: none;
}

@media (max-width: 1199.98px) {
    .ds-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ds-plan-grid--count-4 .ds-plan-card:last-child {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    .ds-plan-grid {
        grid-template-columns: 1fr;
    }

    .ds-plan-card {
        min-height: 0;
        padding: 1.6rem 1.25rem;
    }

    .ds-plan-grid--count-4 .ds-plan-card:last-child {
        grid-column: auto;
    }

    .ds-plan-card__price-main {
        font-size: 2.8rem;
    }
}

/* Palette par offre et relief exacts du site public */

.ds-service-catalog__item {
    --ds-service-accent: #1470be;
    --ds-service-accent-hover: #0c3f74;
    --ds-service-soft: #ebf3fe;
    border: 0 !important;
    background: #fff !important;
    box-shadow: var(--ds-site-shadow) !important;
}

.ds-service-catalog__item--transit {
    --ds-service-accent: #645ac0;
    --ds-service-accent-hover: #0c3f74;
    --ds-service-soft: #f0eeff;
}

.ds-service-catalog__item--vps {
    --ds-service-accent: #1470be;
    --ds-service-accent-hover: #0c3f74;
    --ds-service-soft: #ebf3fe;
}

.ds-service-catalog__item--adhesion {
    --ds-service-accent: #0c3f74;
    --ds-service-accent-hover: #0c3f74;
    --ds-service-soft: #ebf3fe;
}

.ds-service-catalog__item--cdn {
    --ds-service-accent: #f97316;
    --ds-service-accent-hover: #ea580c;
    --ds-service-soft: #fff7ed;
}

.ds-service-catalog__item:hover {
    border: 0 !important;
    background: #fff !important;
    color: var(--ds-site-ink) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22) !important;
}

.ds-service-catalog__item .ds-service-catalog__icon {
    background: var(--ds-service-soft) !important;
    color: var(--ds-service-accent) !important;
}

.ds-service-catalog__item .ds-service-catalog__action {
    border-color: var(--ds-service-accent) !important;
    background: var(--ds-service-accent) !important;
    color: #fff !important;
}

.ds-service-catalog__item:hover .ds-service-catalog__action {
    border-color: var(--ds-service-accent-hover) !important;
    background: var(--ds-service-accent-hover) !important;
}

.ds-app-sidebar,
.ds-portal-help,
.ds-workspace-header,
.ds-stat-card,
.ds-activity-panel,
.ds-quick-actions,
.ds-list-toolbar,
.ds-data-surface {
    box-shadow: var(--ds-site-shadow) !important;
}

.ds-list-toolbar,
.ds-data-surface {
    border: 0 !important;
    background: #fff !important;
}

.ds-list-toolbar__summary > .ds-list-toolbar__icon {
    color: #fff !important;
    font-size: 1rem !important;
}

@media (min-width: 1400px) {
    #order-standard_cart.ds-store-catalog {
        width: min(1760px, calc(100vw - 56px));
        max-width: none;
        margin-right: auto;
        margin-left: 50%;
        transform: translateX(-50%);
    }

    #order-standard_cart.ds-store-catalog > .row {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 2rem;
    }
}

/* Connexion : composants isolés des styles globaux WHMCS */

.ds-auth-form .login-form {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.ds-auth-form .input-group {
    width: 100%;
    flex-wrap: nowrap;
}

.ds-auth-form .input-group-prepend,
.ds-auth-form .input-group-append {
    display: flex;
    flex: 0 0 auto;
}

.ds-auth-form .input-group-text {
    width: 48px;
    justify-content: center;
    border-radius: 6px 0 0 6px;
}

.ds-auth-form .input-group .form-control {
    min-width: 0;
    width: 1%;
    border-radius: 0 6px 6px 0;
}

.ds-auth-form .input-group .pw-input {
    border-right: 0;
    border-radius: 0;
}

.ds-auth-form .btn-reveal-pw {
    width: 50px;
    padding: 0 !important;
    border-color: var(--ds-site-border) !important;
    border-radius: 0 6px 6px 0 !important;
    background: #fff !important;
    color: var(--ds-site-muted) !important;
    box-shadow: none !important;
}

.ds-auth-form .btn-reveal-pw:hover,
.ds-auth-form .btn-reveal-pw:focus {
    background: #f7f8f9 !important;
    color: var(--ds-site-blue) !important;
}

.ds-auth-form .ds-remember {
    min-height: 24px;
    margin-bottom: 1.25rem;
}

.ds-auth-form #login {
    width: 100%;
    min-height: 50px;
    margin: 0;
}

@media (max-width: 991.98px) {
    .ds-auth-layout {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    .ds-auth-story {
        min-height: 0;
        padding: 3rem;
    }

    .ds-auth-form {
        padding: 3rem;
        border-top: 1px solid var(--ds-line);
    }
}

@media (max-width: 575.98px) {
    .ds-auth-layout {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .ds-auth-story {
        padding: 2rem 1.25rem;
    }

    .ds-auth-story h1 {
        margin-bottom: 1rem;
        font-size: clamp(1.85rem, 9vw, 2.35rem);
    }

    .ds-auth-story > p {
        margin-bottom: 0;
        font-size: 0.92rem;
    }

    .ds-auth-story ul {
        display: none;
    }

    .ds-auth-form {
        padding: 2rem 1.25rem;
    }

    .ds-auth-form__heading {
        margin-bottom: 1.5rem;
    }

    .ds-auth-form__heading h2 {
        font-size: 1.5rem;
    }
}

/* Stabilisation interface client : dashboard, navigation et tableaux */

/* Le rail applicatif est volontairement isolé du catalogue de commande. */
.ds-app-sidebar {
    display: grid;
    overflow: visible;
    gap: 0.9rem;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ds-app-sidebar > .sidebar {
    display: grid !important;
    gap: 0.9rem;
    margin: 0 !important;
}

.ds-app-sidebar .ds-context-group {
    overflow: hidden;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: var(--ds-site-shadow) !important;
}

.ds-app-sidebar .ds-context-group__header {
    min-height: 60px;
    padding: 0.8rem 0.9rem !important;
}

.ds-app-sidebar .ds-context-group__body {
    border-top: 1px solid #eef0f3;
}

.ds-app-sidebar .ds-context-menu {
    gap: 0.16rem;
    padding: 0.48rem;
}

.ds-app-sidebar .ds-context-link {
    min-height: 49px;
    margin: 0 !important;
    padding: 0.52rem 0.58rem !important;
    line-height: 1.35;
}

.ds-app-sidebar .ds-context-group__content {
    padding: 0.9rem 1rem !important;
}

.ds-app-sidebar .ds-context-group__footer {
    padding: 0.65rem 0.9rem 0.85rem !important;
    border-top: 1px solid #eef0f3 !important;
    background: #fff !important;
}

.ds-app-sidebar .ds-context-group__footer .btn,
.ds-app-sidebar .ds-context-group__footer a.btn {
    display: inline-flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.75rem !important;
    line-height: 1.2;
}

/* Dashboard sans bandeau introductif : la synthèse devient le premier niveau. */
.ds-app-content .ds-overview-section {
    margin-top: 0;
    margin-bottom: 2rem;
}

.ds-app-content .ds-section-heading {
    align-items: center;
    margin-bottom: 1rem;
}

.ds-app-content .ds-section-heading h2 {
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    line-height: 1.15;
}

.ds-app-content .ds-stat-grid {
    gap: 0.85rem;
}

.ds-app-content .ds-stat-card {
    min-height: 88px;
    gap: 0.7rem;
    padding: 0.85rem 0.95rem;
    border: 0 !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: var(--ds-site-shadow) !important;
}

.ds-app-content .ds-stat-card:hover {
    transform: translateY(-1px);
    background: #fff !important;
    box-shadow: 0 12px 26px rgba(28, 35, 45, 0.13) !important;
}

.ds-app-content .ds-stat-card__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 6px;
    font-size: 0.82rem;
}

.ds-app-content .ds-stat-card__content strong {
    font-size: 1.3rem;
    line-height: 1;
}

.ds-app-content .ds-stat-card__content span {
    margin-top: 0.18rem;
    font-size: 0.72rem;
    line-height: 1.25;
}

.ds-app-content .ds-stat-card__arrow {
    font-size: 0.65rem;
}

/* Pastilles d'état alignées avec le libellé, sur l'accueil et les listes. */
.ds-app-content .status,
.ds-app-content .label.status {
    display: inline-flex !important;
    min-height: 23px;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.55rem !important;
    border-radius: 999px !important;
    line-height: 1 !important;
    vertical-align: middle;
    white-space: nowrap;
}

.ds-app-content .ds-activity-row__label {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.6rem;
    overflow: visible;
    flex-wrap: wrap;
    line-height: 1.35;
}

.ds-app-content .ds-activity-row__badge {
    align-self: center;
    line-height: 1;
}

/* Tableau des services : la cellule produit porte aussi l'indicateur SSL. */
.ds-data-surface #tableServicesList {
    width: 100% !important;
    table-layout: auto;
}

.ds-data-surface #tableServicesList th:first-child,
.ds-data-surface #tableServicesList td:first-child {
    width: 40%;
    padding-left: 1rem !important;
}

.ds-data-surface #tableServicesList th:not(:first-child),
.ds-data-surface #tableServicesList td:not(:first-child) {
    vertical-align: middle;
}

.ds-table-primary__icon {
    position: relative;
    overflow: visible;
}

.ds-table-primary__ssl {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 16px !important;
    height: 16px !important;
    padding: 1px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #fff;
    object-fit: contain;
}

.ds-data-surface #tableServicesList td:last-child {
    white-space: nowrap;
}

/* Header : flux normal sur ordinateur, libellé conservé sur mobile. */
@media (min-width: 1200px) {
    .ds-header__nav > .container {
        display: flex;
        flex-wrap: nowrap;
    }

    #mainNavbar {
        min-width: 0;
        align-items: center;
        gap: clamp(0.35rem, 1vw, 1.25rem);
    }

    .ds-header__primary {
        position: static !important;
        left: auto !important;
        min-width: 0;
        margin: 0 0 0 auto !important;
        transform: none !important;
        white-space: nowrap;
    }

    .ds-header__tools {
        min-width: 0;
        margin-left: auto;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .ds-header__primary > li > a,
    .ds-header__account > li > a {
        min-height: 38px;
        padding: 0.48rem 0.58rem !important;
        font-size: 0.76rem;
    }

    .ds-site-link {
        min-height: 38px;
        padding: 0.48rem 0.58rem;
        font-size: 0.7rem;
    }

    .ds-header-search input {
        width: clamp(145px, 11vw, 205px);
        height: 38px;
        font-size: 0.72rem;
    }

    .ds-icon-button {
        width: 38px;
        height: 38px;
    }
}

.ds-header__account .dropdown-menu,
#header .dropdown-menu {
    min-width: 238px;
    padding: 0.38rem;
    border: 1px solid #eef0f3;
    border-radius: 6px;
}

.ds-header__account .dropdown-menu > li > a,
#header .dropdown-menu .dropdown-item,
#header .dropdown-menu > li > a {
    min-height: 36px;
    align-items: center;
    padding: 0.48rem 0.62rem !important;
    border-radius: 5px;
    font-size: 0.76rem;
    line-height: 1.3;
    white-space: normal;
}

@media (max-width: 1199.98px) {
    #mainNavbar {
        padding: 0.65rem 0 0.25rem;
    }

    .ds-header__primary {
        position: static !important;
        left: auto !important;
        margin: 0 !important;
        transform: none !important;
    }

    .ds-header__primary > li > a {
        min-height: 42px;
        padding: 0.55rem 0.65rem !important;
        font-size: 0.82rem;
    }

    .ds-header__tools {
        display: grid;
        grid-template-columns: 40px 40px minmax(0, 1fr);
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.55rem;
        padding-top: 0.7rem;
    }

    .ds-site-link {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 40px;
        justify-content: flex-start;
        padding: 0.5rem 0.65rem;
    }

    .ds-site-link span {
        display: inline !important;
    }

    .ds-header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin: 0;
    }

    .ds-header-search input {
        width: 100%;
        height: 40px;
    }

    .ds-icon-button {
        width: 40px;
        height: 40px;
    }

    .ds-header__account {
        grid-column: 3;
        min-width: 0;
        margin: 0;
    }

    .ds-header__account > li > a {
        min-height: 40px;
        justify-content: flex-start;
        padding: 0.5rem 0.6rem !important;
        font-size: 0.8rem;
    }

    #mainNavbar .dropdown-menu {
        position: static !important;
        width: 100%;
        min-width: 0;
        margin: 0.15rem 0 0.4rem;
        border: 1px solid #eef0f3;
        background: #fff;
        box-shadow: none !important;
        transform: none !important;
    }
}

@media (max-width: 991.98px) {
    .ds-app-sidebar {
        gap: 0.8rem;
        margin-bottom: 1.4rem;
    }

    .ds-app-sidebar > .sidebar {
        gap: 0.8rem;
    }

    .ds-app-content .ds-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ds-app-content .ds-overview-section__hint {
        display: none;
    }

    .ds-app-content .ds-stat-grid {
        grid-template-columns: 1fr;
    }

    .ds-app-content .ds-stat-card {
        min-height: 78px;
    }

    .ds-data-surface #tableServicesList th:first-child,
    .ds-data-surface #tableServicesList td:first-child {
        width: auto;
    }
}

/* Finition interface client : relief, actions, éditeur et état des services */

:root {
    --ds-site-shadow: 0 7px 20px rgba(15, 23, 42, 0.09);
    --ds-site-shadow-hover: 0 10px 26px rgba(15, 23, 42, 0.125);
    --ds-offer-vps: #1470be;
    --ds-offer-vps-hover: #105f9f;
    --ds-offer-transit: #645ac0;
    --ds-offer-transit-hover: #554aa8;
    --ds-offer-adhesion: #0c3f74;
    --ds-offer-adhesion-hover: #082f59;
    --ds-offer-cdn: #f97316;
    --ds-offer-cdn-hover: #ea580c;
}

/* Relief plus discret et espacement légèrement plus généreux sur l'accueil. */
.card,
.panel,
.ds-app-sidebar .ds-context-group,
.ds-stat-card,
.ds-activity-panel,
.ds-quick-actions,
.ds-list-toolbar,
.ds-data-surface,
.ds-portal-help,
.ds-portal-entry__shortcuts,
.ds-service-catalog__item {
    box-shadow: var(--ds-site-shadow) !important;
}

.ds-service-catalog__item:hover,
.ds-stat-card:hover,
.ds-quick-action:hover {
    box-shadow: var(--ds-site-shadow-hover) !important;
}

.ds-template-homepage .ds-portal-entry {
    margin-bottom: 5.15rem;
}

.ds-template-homepage .ds-portal-section {
    margin-bottom: 5.6rem;
}

.ds-template-homepage .ds-service-catalog {
    gap: 1.5rem;
}

.ds-template-homepage .ds-portal-help {
    margin-top: 0.6rem;
}

.ds-template-homepage .ds-portal-entry__shortcuts nav,
.ds-template-homepage .ds-portal-help__links {
    gap: 0.65rem;
}

/* Le tableau de bord conserve du relief tout en laissant respirer ses sections. */
.ds-template-clientareahome .ds-overview-section {
    margin-bottom: 2.55rem;
}

.ds-template-clientareahome .ds-overview-section__hint {
    display: none !important;
}

.ds-template-clientareahome .ds-stat-grid {
    gap: 1rem;
}

.ds-template-clientareahome .ds-dashboard-layout {
    gap: 1.8rem;
}

.ds-template-clientareahome .ds-activity-grid {
    gap: 1.35rem;
}

.ds-template-clientareahome .ds-section-heading {
    margin-bottom: 1.15rem;
}

/* Chaque offre conserve sa teinte lors du survol. */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
    border-color: var(--ds-offer-vps-hover) !important;
    background: var(--ds-offer-vps-hover) !important;
}

.ds-service-catalog__item--default,
.ds-service-catalog__item--vps {
    --ds-service-accent: var(--ds-offer-vps);
    --ds-service-accent-hover: var(--ds-offer-vps-hover);
}

.ds-service-catalog__item--transit {
    --ds-service-accent: var(--ds-offer-transit);
    --ds-service-accent-hover: var(--ds-offer-transit-hover);
}

.ds-service-catalog__item--adhesion {
    --ds-service-accent: var(--ds-offer-adhesion);
    --ds-service-accent-hover: var(--ds-offer-adhesion-hover);
}

.ds-service-catalog__item--cdn {
    --ds-service-accent: var(--ds-offer-cdn);
    --ds-service-accent-hover: var(--ds-offer-cdn-hover);
}

.ds-service-catalog__item:hover .ds-service-catalog__action {
    border-color: var(--ds-service-accent-hover) !important;
    background: var(--ds-service-accent-hover) !important;
}

/* Le bouton de mise à jour rejoint le bleu des actions du rail client. */
.ds-app-sidebar .ds-context-group__footer .btn-success,
.ds-app-sidebar .ds-context-group__footer a.btn-success {
    border-color: var(--ds-offer-vps) !important;
    background: var(--ds-offer-vps) !important;
    color: #fff !important;
}

.ds-app-sidebar .ds-context-group__footer .btn-success:hover,
.ds-app-sidebar .ds-context-group__footer .btn-success:focus,
.ds-app-sidebar .ds-context-group__footer a.btn-success:hover,
.ds-app-sidebar .ds-context-group__footer a.btn-success:focus {
    border-color: var(--ds-offer-vps-hover) !important;
    background: var(--ds-offer-vps-hover) !important;
}

/* Les rails applicatifs respirent davantage, sans toucher au menu du catalogue. */
.ds-app-sidebar .ds-context-menu {
    gap: 0.28rem;
    padding: 0.58rem;
}

.ds-app-sidebar .ds-context-link {
    min-height: 51px;
    padding: 0.58rem 0.62rem !important;
}

/* Produits actifs : contenu plus compact et action réellement calée à droite. */
.ds-activity-panel[menuItemName="Active Products/Services"] .ds-activity-panel__body {
    padding: 0.72rem 0.9rem;
    border-bottom: 0;
}

.ds-activity-panel[menuItemName="Active Products/Services"] .div-service-item {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.2rem 0;
}

.ds-activity-panel[menuItemName="Active Products/Services"] .div-service-status {
    align-self: center;
}

.ds-activity-panel[menuItemName="Active Products/Services"] .div-service-name {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: auto;
}

.ds-activity-panel[menuItemName="Active Products/Services"] .div-service-buttons {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}

.ds-activity-panel[menuItemName="Active Products/Services"] .btn-view-details {
    min-height: 32px;
    padding: 0.34rem 0.58rem !important;
    border-color: #d8dee6 !important;
    font-size: 0.76rem;
    line-height: 1.1 !important;
}

/* Header : menus plus compacts, texte plus lisible et aucun chevauchement. */
@media (min-width: 1200px) {
    #mainNavbar {
        display: flex !important;
        min-width: 0;
        align-items: center;
        gap: 0;
    }

    .ds-header__primary {
        margin-left: auto !important;
    }

    .ds-header__tools {
        margin-left: clamp(0.65rem, 1vw, 1.15rem) !important;
    }

    .ds-header__primary > li > a,
    .ds-header__account > li > a {
        min-height: 36px;
        padding: 0.42rem 0.52rem !important;
        font-size: 0.82rem;
    }

    .ds-site-link {
        min-height: 36px;
        padding: 0.42rem 0.52rem;
        font-size: 0.78rem;
    }

    .ds-header-search input {
        height: 36px;
        font-size: 0.78rem;
    }

    .ds-icon-button {
        width: 36px;
        height: 36px;
    }
}

/* Sur les écrans larges, la navigation principale retrouve l'axe central du site. */
@media (min-width: 1700px) {
    .ds-header__nav > .container {
        position: relative;
    }

    #mainNavbar {
        position: static;
    }

    .ds-header__primary {
        position: absolute !important;
        left: 50% !important;
        margin: 0 !important;
        transform: translateX(-50%) !important;
    }

    .ds-header__tools {
        margin-left: auto !important;
    }
}

.ds-header__account .dropdown-menu,
#header .dropdown-menu {
    min-width: 214px;
    padding: 0.26rem;
    border: 1px solid #e7ebef;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.09) !important;
}

.ds-header__account .dropdown-menu > li > a,
#header .dropdown-menu .dropdown-item,
#header .dropdown-menu > li > a {
    min-height: 31px;
    padding: 0.32rem 0.58rem !important;
    font-size: 0.84rem;
    line-height: 1.25;
}

#header .dropdown-menu .dropdown-divider,
#header .dropdown-menu .nav-divider {
    margin: 0.25rem 0;
}

/* Barre Markdown des tickets : groupes nets, compacts et cohérents. */
.ds-template-viewticket .md-editor,
.ds-template-supportticketsubmit-steptwo .md-editor {
    overflow: hidden;
    border: 1px solid #d7dee7;
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
}

.ds-template-viewticket .md-editor.active,
.ds-template-supportticketsubmit-steptwo .md-editor.active {
    border-color: rgba(20, 112, 190, 0.55);
    box-shadow: 0 0 0 3px rgba(20, 112, 190, 0.11);
}

.ds-template-viewticket .md-editor > .btn-toolbar,
.ds-template-supportticketsubmit-steptwo .md-editor > .btn-toolbar {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 0.38rem;
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid #e4e8ed;
    background: #f7f8f9 !important;
    flex-wrap: wrap;
}

.ds-template-viewticket .md-editor .btn-toolbar .btn-group,
.ds-template-supportticketsubmit-steptwo .md-editor .btn-toolbar .btn-group {
    display: inline-flex;
    margin: 0 !important;
}

.ds-template-viewticket .md-editor .btn-toolbar .btn,
.ds-template-supportticketsubmit-steptwo .md-editor .btn-toolbar .btn {
    min-width: 34px;
    min-height: 32px;
    padding: 0.35rem 0.55rem !important;
    border-color: #d9dfe6 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #435269 !important;
    font-size: 0.8rem;
    box-shadow: none !important;
}

.ds-template-viewticket .md-editor .btn-toolbar .btn-group .btn:first-child,
.ds-template-supportticketsubmit-steptwo .md-editor .btn-toolbar .btn-group .btn:first-child {
    border-radius: 5px 0 0 5px !important;
}

.ds-template-viewticket .md-editor .btn-toolbar .btn-group .btn:last-child,
.ds-template-supportticketsubmit-steptwo .md-editor .btn-toolbar .btn-group .btn:last-child {
    border-radius: 0 5px 5px 0 !important;
}

.ds-template-viewticket .md-editor .btn-toolbar .btn:only-child,
.ds-template-supportticketsubmit-steptwo .md-editor .btn-toolbar .btn:only-child {
    border-radius: 5px !important;
}

.ds-template-viewticket .md-editor .btn-toolbar .btn:hover,
.ds-template-viewticket .md-editor .btn-toolbar .btn:focus,
.ds-template-supportticketsubmit-steptwo .md-editor .btn-toolbar .btn:hover,
.ds-template-supportticketsubmit-steptwo .md-editor .btn-toolbar .btn:focus {
    border-color: rgba(20, 112, 190, 0.36) !important;
    background: #eaf3fc !important;
    color: var(--ds-offer-vps) !important;
}

.ds-template-viewticket .md-editor > textarea.markdown-editor,
.ds-template-viewticket .md-editor > .md-preview,
.ds-template-supportticketsubmit-steptwo .md-editor > textarea.markdown-editor,
.ds-template-supportticketsubmit-steptwo .md-editor > .md-preview {
    min-height: 260px;
    padding: 1rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 0.9rem;
}

.ds-template-viewticket .markdown-editor-status,
.ds-template-supportticketsubmit-steptwo .markdown-editor-status {
    min-height: 28px;
    padding: 0.35rem 0.65rem;
    border-top: 1px solid #e4e8ed;
    background: #f7f8f9;
    color: #7a8798;
    font-size: 0.68rem;
}

/* Gestion des utilisateurs : actions compactes qui respirent sans se coller. */
.ds-template-account-user-management .primary-content > .card + .card {
    margin-top: 1.25rem;
}

.ds-template-account-user-management .table th:last-child,
.ds-template-account-user-management .table td:last-child {
    width: 300px !important;
    min-width: 300px;
    padding-right: 0.85rem;
    padding-left: 0.85rem;
    white-space: nowrap;
}

.ds-template-account-user-management .btn-manage-permissions,
.ds-template-account-user-management .btn-remove-user,
.ds-template-account-user-management .btn-cancel-invite,
.ds-template-account-user-management table form .btn-sm {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0.3rem 0.52rem !important;
    font-size: 0.74rem;
    line-height: 1.15 !important;
    vertical-align: middle;
}

.ds-template-account-user-management .btn-manage-permissions + .btn-remove-user {
    margin-left: 0.45rem !important;
}

.ds-template-account-user-management table form {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
}

/* Page d'état : groupes ouverts et services présentés comme des cartes. */
.ds-status-page {
    display: grid;
    gap: 2rem;
    width: 100%;
}

.ds-status-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0 1.6rem;
    border-bottom: 1px solid #e8ecf1;
}

.ds-status-hero__copy {
    max-width: 760px;
}

.ds-status-hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.85rem, 3vw, 2.6rem);
}

.ds-status-hero p {
    margin: 0;
    color: var(--ds-site-muted);
}

.ds-status-hero__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.ds-status-dot,
.dgs-status-badge > i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #27ae72;
}

.ds-status-section {
    display: grid;
    gap: 1.1rem;
}

.ds-status-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ds-status-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    color: #69788d;
    font-size: 0.7rem;
    flex-wrap: wrap;
}

.ds-status-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.ds-status-dot--warning {
    background: #e5a11a;
}

.ds-status-dot--down {
    background: #d54b55;
}

.ds-status-loading,
.ds-status-message {
    display: flex;
    min-height: 84px;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.15rem;
    border: 1px solid #e5e9ee;
    border-radius: 7px;
    background: #fff;
    box-shadow: var(--ds-site-shadow);
}

.ds-status-loading__icon,
.ds-status-message > span {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #eaf3fc;
    color: var(--ds-offer-vps);
}

.ds-status-loading strong,
.ds-status-loading small,
.ds-status-message strong,
.ds-status-message p {
    display: block;
}

.ds-status-loading small,
.ds-status-message p {
    margin: 0.15rem 0 0;
    color: var(--ds-site-muted);
    font-size: 0.78rem;
}

.ds-status-message--warning {
    border-color: #f0d9a5;
    background: #fffaf0;
}

.ds-status-message--warning > span {
    background: #fff1cf;
    color: #a86b00;
}

.ds-status-groups {
    gap: 1.8rem;
}

.ds-status-group {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ds-status-group__header {
    display: flex;
    align-items: center;
    padding: 0 0 0.75rem;
}

.ds-status-group__header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.ds-status-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ds-status-service {
    position: relative;
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    overflow: hidden;
    border: 1px solid #e5e9ee;
    border-radius: 7px;
    background: #fff;
    box-shadow: var(--ds-site-shadow);
}

.ds-status-service::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--ds-offer-vps);
    content: "";
}

.ds-status-service__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.7rem;
}

.ds-status-service__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #eaf3fc;
    color: var(--ds-offer-vps);
    font-size: 0.78rem;
}

.ds-status-service__identity strong,
.ds-status-service__identity small {
    display: block;
}

.ds-status-service__identity strong {
    overflow: hidden;
    color: var(--ds-site-ink);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dgs-probe-detail {
    margin-top: 0.18rem;
    color: #748399;
    font-size: 0.68rem;
}

.dgs-status-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 0.38rem;
    padding: 0.3rem 0.55rem;
    border: 0;
    border-radius: 999px;
    background: #e6f6ed;
    color: #16764f;
    font-size: 0.64rem;
    font-weight: 700;
    white-space: nowrap;
}

.dgs-status-badge > i {
    width: 7px;
    height: 7px;
}

.dgs-status-warning,
.dgs-status-degraded,
.dgs-status-unknown {
    background: #fff3d8;
    color: #996100;
}

.dgs-status-warning > i,
.dgs-status-degraded > i,
.dgs-status-unknown > i {
    background: #e5a11a;
}

.dgs-status-critical,
.dgs-status-down,
.dgs-status-error {
    background: #fdebed;
    color: #ad303a;
}

.dgs-status-critical > i,
.dgs-status-down > i,
.dgs-status-error > i {
    background: #d54b55;
}

@media (max-width: 991.98px) {
    .ds-status-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .ds-status-hero__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .ds-template-homepage .ds-portal-entry,
    .ds-template-homepage .ds-portal-section {
        margin-bottom: 3.5rem;
    }

    .ds-activity-panel[menuItemName="Active Products/Services"] .div-service-item {
        flex-wrap: wrap;
    }

    .ds-activity-panel[menuItemName="Active Products/Services"] .div-service-buttons {
        width: 100%;
        margin-left: 0;
    }

    .ds-activity-panel[menuItemName="Active Products/Services"] .btn-view-details {
        width: 100%;
    }

    .ds-template-account-user-management .table th:last-child,
    .ds-template-account-user-management .table td:last-child {
        width: 280px !important;
        min-width: 280px;
    }

    .ds-status-page {
        gap: 2rem;
    }

    .ds-status-service-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 575.98px) {
    .ds-status-hero {
        padding-top: 0.5rem;
    }

    .ds-status-hero__actions,
    .ds-status-hero__actions .btn {
        width: 100%;
    }

    .ds-status-legend {
        gap: 0.65rem;
    }

    .ds-status-service {
        align-items: flex-start;
        flex-direction: column;
    }

    .dgs-status-badge {
        margin-left: 46px;
    }
}
