/* ====================================================================
   HONOTAIRE - Gestion Notes d'Honoraires
   CSS v2.4 - Refonte complete
   ==================================================================== */

/* ============== VARIABLES ============== */
:root {
    --color-primary: #1F3A5F;
    --color-primary-dark: #142840;
    --color-primary-light: #2c5282;
    --color-secondary: #C9A961;
    --color-secondary-dark: #A68B47;
    --color-success: #27AE60;
    --color-danger: #C0392B;
    --color-warning: #F39C12;
    --color-info: #3498DB;
    --color-bg: #F5F6F8;
    --color-card: #FFFFFF;
    --color-text: #2C3E50;
    --color-text-light: #7F8C8D;
    --color-text-muted: #999;
    --color-border: #E1E4E8;
    --color-border-light: #F0F0F0;

    --badge-societe-bg: #1F3A5F;
    --badge-particulier-bg: #27AE60;
    --badge-social-bg: #8E44AD;

    --radius: 6px;
    --radius-sm: 4px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --transition: all 0.15s ease;

    --font-mono: "Courier New", monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --sidebar-w: 240px;
    --topbar-h: 60px;
}

/* ============== RESET / BASE ============== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
    min-height: 100vh;
}
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-light); }
img { max-width: 100%; height: auto; }

/* Focus visible accessibilité */
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* ============== LAYOUT GLOBAL ============== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 100;
    overflow-y: auto;
}
.sidebar-header {
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-logo-link {
    display: block;
    flex-shrink: 0;
}
.sidebar-title strong {
    display: block;
    font-size: 15px;
    color: #fff;
    letter-spacing: 1px;
    font-weight: 700;
}
.sidebar-title small {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}
.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-size: 13.5px;
}
.nav-item:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
    border-left-color: var(--color-secondary);
}
.nav-item.active {
    background: rgba(201,169,97,0.15);
    color: #fff;
    border-left-color: var(--color-secondary);
    font-weight: 600;
}
.nav-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

/* MAIN WRAPPER */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

/* TOPBAR */
.topbar {
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}
.topbar-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-primary);
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
/* === Topbar user menu : dropdown === */
.user-menu {
    position: relative;
    display: inline-block;
}
.user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    background: var(--color-bg);
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: var(--transition);
}
.user-btn:hover { background: var(--color-border); }
.user-btn .caret {
    margin-left: 2px;
    opacity: 0.6;
    transition: transform 0.2s;
}
.user-menu.open .user-btn .caret {
    transform: rotate(180deg);
}
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}
.user-name { font-weight: 600; }

.user-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 200;
    display: none;
    animation: slideUp 0.15s ease;
}
.user-menu.open .user-dropdown { display: block; }
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    transition: var(--transition);
}
.user-dropdown a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}
.user-dropdown a svg {
    flex-shrink: 0;
    color: var(--color-text-light);
}
.user-dropdown a:hover svg { color: var(--color-primary); }
.user-dropdown .dropdown-divider {
    height: 1px;
    background: var(--color-border-light);
    margin: 4px 0;
}
.user-dropdown a.danger { color: var(--color-danger); }
.user-dropdown a.danger:hover { background: rgba(192,57,43,0.08); }
.user-dropdown a.danger svg { color: var(--color-danger); }
.logout-btn {
    background: none;
    border: 1px solid var(--color-border);
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--color-text);
    font-size: 13px;
    transition: var(--transition);
}
.logout-btn:hover { background: var(--color-danger); color: #fff; border-color: var(--color-danger); }
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--color-primary);
}

/* CONTENT */
.content {
    flex: 1;
    padding: 22px 24px;
    overflow-x: hidden;
}

/* ============== PAGE HEADER ============== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-border-light);
}
.page-header h1 {
    margin: 0;
    color: var(--color-primary);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============== BUTTONS ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--color-primary);
    color: #fff;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.2;
    white-space: nowrap;
    font-family: inherit;
}
.btn:hover { background: var(--color-primary-light); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-light); }
.btn-secondary { background: #fff; color: var(--color-text); border-color: var(--color-border); }
.btn-secondary:hover { background: var(--color-bg); color: var(--color-text); }
.btn-success { background: var(--color-success); }
.btn-success:hover { background: #229954; color: #fff; }
.btn-danger { background: var(--color-danger); }
.btn-danger:hover { background: #962d22; color: #fff; }
.btn-warning { background: var(--color-warning); color: #fff; }
.btn-warning:hover { background: #d68910; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn svg { flex-shrink: 0; }

/* ============== CARDS ============== */
.card {
    background: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}
.card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.card-header h2 {
    font-size: 15px;
    color: var(--color-primary);
    font-weight: 600;
    margin: 0;
}
.card-body { padding: 16px 18px; }

/* ============== FILTRES ============== */
.filters-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 140px;
}
.filter-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}
.filter-group input,
.filter-group select {
    padding: 8px 11px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 13px;
    height: 38px;
    color: var(--color-text);
    transition: var(--transition);
    font-family: inherit;
}
.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31,58,95,0.08);
}
.filter-group input::placeholder { color: #b0b0b0; font-style: italic; }
.filter-group .btn {
    height: 38px;
    padding: 0 14px;
}

/* ============== KPI / STATS ============== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.stat-box {
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.stat-box::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(201,169,97,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-text-light);
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    font-weight: 600;
}
.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-mono);
    line-height: 1.1;
}
.stat-value small {
    font-size: 12px;
    color: var(--color-text-light);
    font-weight: normal;
    margin-left: 3px;
}
/* Variantes couleurs des stats */
.stat-box.stat-success { border-left-color: var(--color-success); }
.stat-box.stat-success .stat-value { color: var(--color-success); }
.stat-box.stat-warning { border-left-color: var(--color-warning); }
.stat-box.stat-warning .stat-value { color: var(--color-warning); }
.stat-box.stat-info { border-left-color: var(--color-info); }
.stat-box.stat-info .stat-value { color: var(--color-info); }
.stat-box.stat-secondary { border-left-color: var(--color-secondary); }
.stat-box.stat-secondary .stat-value { color: var(--color-secondary-dark); }
.stat-box.stat-danger { border-left-color: var(--color-danger); }
.stat-box.stat-danger .stat-value { color: var(--color-danger); }

/* KPI Grid (dashboard) */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.kpi-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px 20px;
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.kpi-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--color-text-light);
    margin-bottom: 8px;
    font-weight: 600;
}
.kpi-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-mono);
    line-height: 1.1;
}
.kpi-suffix {
    font-size: 13px;
    color: var(--color-text-light);
    font-weight: normal;
    margin-left: 4px;
}
/* Variantes couleurs des KPI cards */
.kpi-card.kpi-success   { border-left-color: var(--color-success); }
.kpi-card.kpi-success   .kpi-value { color: var(--color-success); }
.kpi-card.kpi-warning   { border-left-color: var(--color-warning); }
.kpi-card.kpi-warning   .kpi-value { color: var(--color-warning); }
.kpi-card.kpi-danger    { border-left-color: var(--color-danger); }
.kpi-card.kpi-danger    .kpi-value { color: var(--color-danger); }
.kpi-card.kpi-info      { border-left-color: var(--color-info); }
.kpi-card.kpi-info      .kpi-value { color: var(--color-info); }
.kpi-card.kpi-secondary { border-left-color: var(--color-secondary); }
.kpi-card.kpi-secondary .kpi-value { color: var(--color-secondary-dark); }

/* ============== TABLEAUX ============== */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.data-table thead th {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 14px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: none;
}
.data-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: var(--transition);
}
.data-table thead th.sortable:hover {
    background: var(--color-primary-light);
}
.data-table thead th .sort-icon {
    display: inline-block;
    margin-left: 4px;
    opacity: 0.35;
    font-size: 10px;
    transition: var(--transition);
}
.data-table thead th.sorted {
    background: var(--color-primary-light);
}
.data-table thead th.sorted .sort-icon,
.data-table thead th.sortable:hover .sort-icon {
    opacity: 1;
    color: var(--color-secondary);
}
.data-table thead th.sorted .sort-icon {
    font-size: 11px;
    font-weight: 700;
}

/* Cellule "Note" dans le tableau NH */
.cell-note {
    font-size: 12px;
    color: var(--color-text);
    line-height: 1.4;
    max-width: 200px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-style: italic;
    color: var(--color-text-light);
    cursor: help;
}

.data-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 13px;
    vertical-align: middle;
    color: var(--color-text);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover {
    background: rgba(31,58,95,0.025);
}
.data-table tbody tr td.text-muted { color: var(--color-text-light); }

/* Cellule "Désignation combinée" pour NH */
.cell-designation {
    min-width: 280px;
}
.cell-designation .obj {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
    font-size: 13px;
}
.cell-designation .lines-list {
    font-size: 11.5px;
    color: var(--color-text-light);
    line-height: 1.5;
}
.cell-designation .line-item {
    padding: 1px 0;
    display: block;
}
.cell-designation .line-item .lbl {
    color: var(--color-text);
}
.cell-designation .line-item .mnt {
    font-family: var(--font-mono);
    color: var(--color-primary);
    font-weight: 600;
    margin-left: 6px;
}
.cell-designation .more {
    font-size: 11px;
    color: var(--color-secondary-dark);
    font-style: italic;
    margin-top: 2px;
}

/* Cellule montants empilés */
.cell-amounts {
    text-align: right;
    font-family: var(--font-mono);
    min-width: 130px;
}
.cell-amounts .amount-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 1px 0;
    font-size: 12px;
}
.cell-amounts .amount-line .label {
    color: var(--color-text-light);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.3px;
    font-family: var(--font-sans);
}
.cell-amounts .amount-line.total {
    border-top: 1px solid var(--color-border);
    margin-top: 3px;
    padding-top: 3px;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--color-primary);
}

/* ============== ACTIONS BUTTONS (tableau) ============== */
.actions-cell {
    text-align: center;
    white-space: nowrap;
}
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 1px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.action-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.action-btn.action-danger:hover { background: var(--color-danger); border-color: var(--color-danger); color: #fff; }
.action-btn.action-success:hover { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.action-btn.action-warning:hover { background: var(--color-warning); border-color: var(--color-warning); color: #fff; }
.action-btn.action-info:hover { background: var(--color-info); border-color: var(--color-info); color: #fff; }
.action-btn svg { width: 14px; height: 14px; }

/* ============== BADGES ============== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: #ccc;
    color: #fff;
}
.badge-default     { background: #7F8C8D; }
.badge-info        { background: var(--color-info); }
.badge-success     { background: var(--color-success); }
.badge-warning     { background: var(--color-warning); }
.badge-danger      { background: var(--color-danger); }
.badge-societe     { background: var(--badge-societe-bg); }
.badge-particulier { background: var(--badge-particulier-bg); }
.badge-social      { background: var(--badge-social-bg); }

/* ============== PAGINATION ============== */
.pagination-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-top: 1px solid var(--color-border-light);
    background: #fafbfc;
    flex-wrap: wrap;
    gap: 10px;
}
.pagination-info {
    font-size: 12.5px;
    color: var(--color-text-light);
}
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pagination-controls button {
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    min-width: 32px;
    height: 30px;
    transition: var(--transition);
    line-height: 1;
}
.pagination-controls button:hover:not(:disabled) {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.pagination-controls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination-controls span {
    padding: 0 10px;
    font-size: 12.5px;
    color: var(--color-text);
    font-weight: 500;
}

/* ============== FORMULAIRES ============== */
.form-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
    min-width: 180px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 12.5px;
}
input[type=text], input[type=password], input[type=email], input[type=tel],
input[type=number], input[type=date], input[type=file], input[type=search],
textarea, select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-text);
    font-size: 13.5px;
    font-family: inherit;
    transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31,58,95,0.08);
}
input:disabled, textarea:disabled, select:disabled {
    background: var(--color-bg);
    color: var(--color-text-light);
    cursor: not-allowed;
}
textarea { resize: vertical; min-height: 60px; }
.required { color: var(--color-danger); font-weight: bold; }
.help-text {
    display: block;
    font-size: 11.5px;
    color: var(--color-text-light);
    margin-top: 3px;
    line-height: 1.4;
}

/* Fieldset */
.form-fieldset {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px 8px;
    margin-bottom: 16px;
}
.form-fieldset legend {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    padding: 0 8px;
    font-weight: 600;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

/* ============== MODAL ============== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    pointer-events: none;
}
.modal.show { display: flex; animation: fadeIn 0.2s; }
.modal-dialog, .modal-content {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.25s ease;
}
.modal-content.modal-lg, .modal-dialog.modal-lg { max-width: 840px; }
.modal-content.modal-xl, .modal-dialog.modal-xl { max-width: 1100px; }
.modal-content.modal-md, .modal-dialog.modal-md { max-width: 640px; }
.modal-content.modal-sm, .modal-dialog.modal-sm { max-width: 480px; }
.modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}
.modal-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.modal-header h3 {
    margin: 0;
    color: var(--color-primary);
    font-size: 16px;
}
.modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--color-text-light);
    line-height: 1;
    padding: 0 4px;
}
.modal-close:hover { color: var(--color-danger); }
.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--color-border-light);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* ============== ALERTS ============== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 13.5px;
    border-left: 4px solid;
}
.alert-success { background: #d4edda; color: #155724; border-color: var(--color-success); }
.alert-error   { background: #f8d7da; color: #721c24; border-color: var(--color-danger); }
.alert-info    { background: #d1ecf1; color: #0c5460; border-color: var(--color-info); }
.alert-warning { background: #fff3cd; color: #856404; border-color: var(--color-warning); }
.alert strong { display: inline; }

/* ============== TOASTS ============== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9000;
    pointer-events: none;
    max-width: 380px;
}
.toast {
    background: #fff;
    border-radius: var(--radius);
    padding: 12px 18px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--color-info);
    pointer-events: auto;
    animation: slideInRight 0.3s ease;
    font-size: 13.5px;
}
.toast.toast-success { border-color: var(--color-success); }
.toast.toast-error { border-color: var(--color-danger); }
.toast.toast-warning { border-color: var(--color-warning); }
.toast.toast-info { border-color: var(--color-info); }

/* ============== TEXT HELPERS ============== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.text-bold   { font-weight: 600; }
.text-mono   { font-family: var(--font-mono); }
.text-muted  { color: var(--color-text-light); }
.text-small  { font-size: 12px; }
.text-success { color: var(--color-success); }
.text-danger  { color: var(--color-danger); }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary-dark); }

/* ============== CLIENT PICKER (autocomplete) ============== */
.client-picker { position: relative; }
.client-picker-input {
    display: flex;
    gap: 6px;
    align-items: stretch;
}
.client-picker-input input[type=text] { flex: 1; }
.btn-icon, .btn-icon-primary {
    background: #f0f0f0;
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    padding: 0 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
    font-family: inherit;
    transition: var(--transition);
}
.btn-icon-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-icon-primary:hover { background: var(--color-primary-light); }
.btn-icon:hover { background: var(--color-border); }
.client-picker-results {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: 4px;
}
.client-picker-results.show { display: block; }
.client-result-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--color-border-light);
    transition: var(--transition);
}
.client-result-item:last-child { border-bottom: none; }
.client-result-item:hover { background: rgba(31,58,95,0.05); }
.client-result-item.empty {
    color: var(--color-text-muted);
    font-style: italic;
    cursor: default;
}
.client-result-item.empty:hover { background: transparent; }
.cr-name { font-weight: 600; color: var(--color-primary); font-size: 13px; }
.cr-details { font-size: 11.5px; color: var(--color-text-light); margin-top: 3px; }
.client-picker-selected {
    margin-top: 8px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-left: 3px solid var(--color-secondary);
    border-radius: var(--radius-sm);
}
.cs-name { font-weight: 700; color: var(--color-primary); font-size: 14px; }
.cs-details { font-size: 12px; color: var(--color-text-light); margin-top: 3px; line-height: 1.5; }

/* ============== LIGNES NH (modal) ============== */
.lines-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}
.lines-table th {
    text-align: left;
    padding: 6px 8px;
    background: #f5f5f5;
    font-size: 11px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}
.lines-table td { padding: 4px; vertical-align: top; }
.lines-table textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    min-height: 36px;
}
.lines-table input {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 13px;
    height: 36px;
}
.btn-remove {
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-danger);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: var(--transition);
}
.btn-remove:hover { background: var(--color-danger); color: #fff; }
.input-numeric { text-align: right; font-family: var(--font-mono); }

/* TOTAUX preview */
.totals-preview {
    margin-top: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: var(--radius);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}
.totals-preview > div {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
}
.totals-preview > div.ras {
    color: var(--color-text-light);
    font-style: italic;
}
.totals-preview > div.net {
    border-top: 2px solid var(--color-primary);
    margin-top: 6px;
    padding-top: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
}

/* ============== LOGIN ============== */
.login-page {
    background: linear-gradient(135deg, #1F3A5F 0%, #142840 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-container { width: 100%; max-width: 420px; }
.login-card {
    background: #fff;
    border-radius: 10px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-header { text-align: center; margin-bottom: 26px; }
.login-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.login-header h1 {
    color: var(--color-primary);
    font-size: 22px;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.login-header p {
    color: var(--color-text-light);
    font-size: 13px;
}

/* ============== ANIMATIONS ============== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
    .stats-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .main-wrapper { margin-left: 0; }
    .sidebar-toggle { display: inline-flex; }
    .content { padding: 14px; }
    .topbar { padding: 0 14px; }
    .user-name { display: none; }
    .page-header h1 { font-size: 19px; }
    .filters-row { gap: 10px; }
    .filter-group { min-width: 130px; flex: 1 1 calc(50% - 5px); }
    .stat-value { font-size: 18px; }
    .kpi-value { font-size: 20px; }
}

@media (max-width: 480px) {
    .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-box, .kpi-card { padding: 10px; }
    .stat-value { font-size: 16px; }
    .kpi-value { font-size: 18px; }
    .filter-group { flex: 1 1 100%; }
    .modal { padding: 10px; }
    .modal-dialog, .modal-content { max-height: calc(100vh - 20px); }
    .form-row { flex-direction: column; gap: 0; }
    .form-row .form-group { flex: 1 1 100% !important; min-width: 0 !important; }
    .data-table { font-size: 11.5px; }
    .data-table th, .data-table td { padding: 8px 6px; }
    .action-btn { width: 26px; height: 26px; }
    .action-btn svg { width: 11px; height: 11px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .page-actions { width: 100%; }
    .page-actions .btn { flex: 1; justify-content: center; }
    .pagination-wrap { flex-direction: column; gap: 8px; }
}

@media print {
    .sidebar, .topbar, .page-actions, .filters-row, .pagination-wrap,
    .form-actions, .modal, .toast-container, .actions-cell { display: none !important; }
    .main-wrapper { margin-left: 0; }
    body { background: #fff; }
}

/* ====================================================================
   v2.5 - Dashboard charts
   ==================================================================== */
.dashboard-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.dashboard-charts .card {
    margin-bottom: 0;
}
.dashboard-charts canvas {
    max-width: 100%;
    height: auto;
    display: block;
}
.chart-fallback {
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    padding: 20px;
}

@media (max-width: 1024px) {
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

/* ====================================================================
   v2.6 - Pieces jointes (attachments)
   ==================================================================== */
.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}
.attachments-empty {
    padding: 14px;
    background: #fafbfc;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 12.5px;
}
.attachments-upload {
    padding: 12px;
    background: #fafbfc;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
    text-align: center;
}
.attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.attachment-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}
.att-icon { flex-shrink: 0; }
.file-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: bold;
    letter-spacing: 0.3px;
    font-family: var(--font-mono);
}
.att-info {
    flex: 1;
    min-width: 0;
}
.att-name {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.att-meta {
    font-size: 11.5px;
    color: var(--color-text-light);
    margin-top: 2px;
}
.att-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.att-actions .action-btn {
    text-decoration: none;
}

/* Badge attachment count dans le tableau NH */
.attach-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--color-secondary);
    color: #fff;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 4px;
    vertical-align: middle;
}
.attach-badge svg { display: block; }

/* ====================================================================
   v2.7 - Classes manquantes detectees par l'audit
   ==================================================================== */

/* ====================================================================
   Dashboard - filtres de période v2.9 (refonte alignement)
   ==================================================================== */
.period-filters-wrap {
    display: flex;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
}

.period-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.period-section-custom {
    border-left: 1px solid var(--color-border);
    padding-left: 20px;
}
.period-section-label {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.period-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    height: 36px;
}
.period-buttons .btn {
    padding: 7px 14px;
    font-size: 12.5px;
    height: 36px;
}

.period-custom-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    height: 36px;
}
.period-date-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.period-date-group label {
    font-size: 11px;
    color: var(--color-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0;
}
.period-custom-form input[type="date"] {
    height: 36px;
    padding: 6px 10px;
    font-size: 12.5px;
    width: 145px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-text);
}
.period-custom-form input[type="date"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31,58,95,0.08);
}
.period-custom-form .btn {
    height: 36px;
    padding: 7px 14px;
    font-size: 12.5px;
}

.period-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #f0f7ff;
    border-left: 3px solid var(--color-info);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: var(--color-text);
    margin-top: 12px;
}
.period-info svg {
    color: var(--color-info);
    flex-shrink: 0;
}
.period-info strong {
    color: var(--color-primary);
}

@media (max-width: 1024px) {
    .period-section-custom {
        border-left: none;
        padding-left: 0;
        padding-top: 12px;
        border-top: 1px solid var(--color-border);
        width: 100%;
    }
}

@media (max-width: 640px) {
    .period-filters-wrap {
        gap: 12px;
        flex-direction: column;
    }
    .period-section { width: 100%; }
    .period-buttons { width: 100%; }
    .period-buttons .btn { flex: 1; min-width: 0; padding: 7px 8px; }

    .period-custom-form {
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
        height: auto !important;
    }
    .period-date-group {
        flex: 0 1 calc(50% - 4px);
        min-width: 0;
    }
    .period-custom-form input[type="date"] {
        width: 100%;
        min-width: 0;
    }
    .period-custom-form .btn {
        flex: 1 1 100%;
        width: 100%;
        margin-top: 0;
        order: 99;
    }
    .period-info {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        margin-top: 12px;
    }
}

/* Settings : onglets */
.settings-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border-light);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tab-btn {
    background: none;
    border: none;
    padding: 11px 22px;
    cursor: pointer;
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    font-family: inherit;
}
.tab-btn:hover { color: var(--color-primary); }
.tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.2s; }

/* Topbar (header) */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-label { display: inline; }

/* Spinner (loading) */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-right: 6px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal body scrolllock */
body.modal-open { overflow: hidden; }

/* Drag scroll tableau */
.dragging { cursor: grabbing !important; user-select: none; }

/* Toast hiding animation */
.toast-hiding {
    animation: slideOutRight 0.25s ease forwards;
}
@keyframes slideOutRight {
    to { opacity: 0; transform: translateX(30px); }
}
.toast-icon {
    flex-shrink: 0;
    display: inline-flex;
}
.toast-msg { flex: 1; }
.toast { display: flex; align-items: center; gap: 10px; }

/* Login footer */
.login-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.5);
}

/* Help text alias */
.help, .help-text {
    display: block;
    font-size: 11.5px;
    color: var(--color-text-light);
    margin-top: 3px;
    line-height: 1.4;
}

/* Box (alias card sans header) */
.box {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    margin-bottom: 16px;
}

/* Btn-large for install */
.btn-large {
    padding: 12px 26px;
    font-size: 15px;
}
.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* Responsive : adapter dashboard charts sur mobile */
@media (max-width: 768px) {
    .settings-tabs .tab-btn { padding: 9px 14px; font-size: 13px; }
}

/* === v2.8 : colonne PJ dans tableau NH === */
.cell-attach {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.attach-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 26px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    font-family: var(--font-mono);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: var(--transition);
    line-height: 1;
}
.attach-mini:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
    color: #fff;
}
.attach-more {
    font-size: 10px;
    color: var(--color-text-light);
    font-weight: 600;
    margin-left: 2px;
}

/* PJ pending (en attente d'upload) */
.attachment-item.pending {
    background: #fffbeb;
    border-color: var(--color-warning);
}

/* ====================================================================
   v2.10 - Nouveau modele : Honoraires HT + Debours
   ==================================================================== */

/* Label "Debours :" avant la liste dans cell-designation */
.cell-designation .debours-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-text-light);
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

/* Ligne debours dans cell-amounts (séparation visuelle) */
.cell-amounts .amount-line.debours {
    color: var(--color-secondary-dark);
    border-top: 1px dashed var(--color-border-light);
    padding-top: 3px;
    margin-top: 3px;
}
.cell-amounts .amount-line.debours .label {
    font-weight: 600;
}

/* Titres de section dans le récap totals-preview du modal */
.totals-preview .tp-section-title {
    font-size: 10.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 4px;
    margin-bottom: 2px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--color-border-light);
}
.totals-preview .tp-section-title:first-child {
    margin-top: 0;
}

/* Sous-total "Net Honoraires" */
.totals-preview .subtotal {
    border-top: 1px dashed var(--color-border);
    padding-top: 5px;
    margin-top: 4px;
    color: var(--color-primary);
    font-weight: 600;
}
.totals-preview .subtotal strong {
    color: var(--color-primary);
}

/* Net (TOTAL TTC) plus mis en valeur */
.totals-preview .net {
    background: var(--color-primary);
    color: #fff;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    font-size: 14px;
    border: none;
}
.totals-preview .net span,
.totals-preview .net strong {
    color: #fff;
}
.totals-preview .net strong {
    font-size: 16px;
}

/* Champ Honoraires HT plus mis en valeur dans le fieldset */
input#inv_honoraires_ht {
    background: #fff;
    border: 2px solid var(--color-info);
}
input#inv_honoraires_ht:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(31,58,95,0.1);
}

/* ============================================================
   AUTOCOMPLETE LIBELLES (Droits et debours, table des lignes NH)
   ============================================================ */

/* Wrapper relatif autour du textarea pour positionner le dropdown */
.libelle-wrap {
    position: relative;
    width: 100%;
}

/* Le dropdown : positionne juste sous le textarea */
.libelle-autocomplete {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 1050; /* au-dessus du contenu du modal */
    background: #fff;
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(31, 58, 95, 0.18);
    max-height: 280px;
    overflow-y: auto;
    display: none;
    font-size: 13px;
}
.libelle-autocomplete.is-open {
    display: block;
    animation: ac-fade-in 0.12s ease-out;
}
@keyframes ac-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Chaque suggestion */
.libelle-autocomplete .ac-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    line-height: 1.4;
    color: var(--color-text);
    transition: background 0.08s ease, color 0.08s ease;
    word-wrap: break-word;
    white-space: normal;
}
.libelle-autocomplete .ac-item:last-child {
    border-bottom: none;
}
.libelle-autocomplete .ac-item:hover,
.libelle-autocomplete .ac-item.is-active {
    background: var(--color-primary-light);
    color: #ffffff;
}

/* La portion qui matche la recherche est surlignee en or */
.libelle-autocomplete .ac-item mark {
    background: var(--color-secondary);
    color: var(--color-primary);
    font-weight: 700;
    padding: 0 2px;
    border-radius: 2px;
}
/* Sur hover/active : le surlignage or reste mais le texte autour devient blanc */
.libelle-autocomplete .ac-item:hover mark,
.libelle-autocomplete .ac-item.is-active mark {
    background: var(--color-secondary);
    color: var(--color-primary-dark);
}

/* Scrollbar discrete dans le dropdown */
.libelle-autocomplete::-webkit-scrollbar { width: 8px; }
.libelle-autocomplete::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
    opacity: 0.5;
}
.libelle-autocomplete::-webkit-scrollbar-track {
    background: #f5f5f5;
}
