@charset "UTF-8";
/* ==========================================================================
   ONE ERP · Elfatoora — système de design
   Facturation électronique tunisienne (TEIF 1.8.9 / TTN).
   Charte alignée sur GED et la liasse fiscale : encre (#0d1b2a), indigo
   (#335cff), menthe (#12b886), sable (#f6f7fb).
   ========================================================================== */

:root {
    /* Encre et neutres */
    --ink: #0d1b2a;
    --ink-2: #1b2a3d;
    --slate-900: #172433;
    --slate-700: #344054;
    --slate-500: #667085;
    --slate-400: #98a2b3;
    --line: #e4e8ef;
    --line-soft: #eef1f6;
    --bg: #f6f7fb;
    --surface: #ffffff;

    /* Bleu ONE ERP (GED / liasse) */
    /* Couleur de marque de la plateforme (menu latéral, page de connexion). */
    --marque: #2470bd;
    --marque-fonce: #1b5a99;
    --primary: #335cff;
    --primary-dark: #2346d8;
    --primary-soft: #eef2ff;
    --primary-line: #c7d2ff;

    /* Signature (bleu profond) / brouillon (ambre) */
    --signature: #4d7cff;
    --signature-dark: #2346d8;
    --signature-soft: #eef2ff;
    --warning: #b7791f;
    --warning-soft: #fff6e6;
    --warning-line: #f6dfb2;

    /* États */
    --success: #0f9d6e;
    --success-soft: #e8f8f1;
    --danger: #d92d20;
    --danger-soft: #fef1f0;
    --danger-line: #fbc9c5;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 30px -16px rgba(16, 24, 40, .22);
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --sidebar-w: 264px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font: 14px/1.5 var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: 24px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

code, .mono {
    font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 12.5px;
    background: #f2f4f9;
    border-radius: 5px;
    padding: 1px 5px;
    color: var(--slate-700);
}

.muted { color: var(--slate-500); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.pre-line { white-space: pre-line; }

/* ---------------------------------------------------------------- Shell -- */

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

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--marque) 0%, var(--marque-fonce) 100%);
    color: #eaf2fb;
    display: flex;
    flex-direction: column;
    z-index: 40;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px 16px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.sidebar-brand:hover { color: #fff; text-decoration: none; }

.brand-mark {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #4d7cff, #12b886);
    display: grid; place-items: center;
    font-weight: 800; font-size: 16px; color: #fff;
    box-shadow: 0 8px 18px -8px rgba(77, 124, 255, .8);
    flex: 0 0 38px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 14.5px; letter-spacing: .01em; color: #fff; }
.brand-text span { font-size: 11.5px; color: rgba(255, 255, 255, .78); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 12px 20px; }

/* SaaS multi-sociétés : société courante (sélecteur pour la plateforme) */
.sidebar-societe { margin: 12px 14px 4px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #e6edf7; font-size: 12.5px; }
.sidebar-societe label, .sidebar-societe-label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: rgba(230, 237, 247, .6); margin-bottom: 4px; }
.sidebar-societe strong { display: block; color: #fff; font-size: 13px; line-height: 1.3; }
.sidebar-societe-code { font-family: ui-monospace, monospace; font-size: 11.5px; color: rgba(230, 237, 247, .7); }
.sidebar-societe select { width: 100%; background: rgba(0, 0, 0, .25); color: #fff; border: 1px solid rgba(255, 255, 255, .15); border-radius: 7px; padding: 6px 8px; font-size: 12.5px; }
.sidebar-societe select option { color: #1b2a27; }

.nav-label {
    padding: 16px 12px 6px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(255, 255, 255, .72);
    font-weight: 700;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 9px;
    color: rgba(255, 255, 255, .9);
    font-weight: 500;
    font-size: 13.5px;
    text-decoration: none;
    margin-bottom: 2px;
    transition: background .15s, color .15s, box-shadow .15s;
}
.nav-item:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.nav-item.active {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-weight: 650;
    box-shadow: inset 3px 0 0 #fff;
}
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .8; }
.nav-item.active svg { opacity: 1; }
.nav-item .pill {
    margin-left: auto;
    background: rgba(255, 255, 255, .12);
    color: #dfe8f5;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 11px;
}

.sidebar-foot {
    border-top: 1px solid rgba(255, 255, 255, .16);
    padding: 14px 18px;
    font-size: 12px;
    color: rgba(255, 255, 255, .78);
}
.sidebar-foot .user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    display: grid; place-items: center;
    font-weight: 700; color: #fff; font-size: 12.5px;
    text-transform: uppercase;
    flex: 0 0 32px;
}
.sidebar-foot a { color: rgba(255, 255, 255, .85); display: block; padding: 1px 0; }
.sidebar-foot a:hover { color: #fff; }
.sidebar-version {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, .2);
    font-size: 10.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
}

.main {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 10px 28px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar-title { display: flex; flex-direction: column; line-height: 1.25; }
.topbar-title strong { font-size: 15.5px; }
.topbar-title span { font-size: 12px; color: var(--slate-500); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.burger {
    display: none;
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 9px;
    cursor: pointer;
    align-items: center; justify-content: center;
    color: var(--slate-700);
}

.content { width: 100%; max-width: 1460px; margin: 0 auto; padding: 26px 28px 56px; }

/* ------------------------------------------------------------- Typography -- */

.page-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.page-head .grow { flex: 1; min-width: 240px; }
.page-head .sub { margin-top: 4px; color: var(--slate-500); font-size: 13px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
}

/* ----------------------------------------------------------------- Cards -- */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    overflow: hidden;
}
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line-soft);
    background: #fcfdff;
}
.card-header .grow { flex: 1; min-width: 0; }
.card-header h2 { font-size: 15.5px; }
.card-header .muted { margin-top: 2px; }
.card-body { padding: 20px; }
.card-body.tight { padding: 14px 20px; }
.card-footer {
    padding: 13px 20px;
    border-top: 1px solid var(--line-soft);
    background: #fbfcfe;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.sticky-card { position: sticky; top: 84px; }
.danger-card { border-color: var(--danger-line); }
.danger-card .card-header { background: #fff8f7; border-bottom-color: var(--danger-line); }
.danger-card .card-header h2 { color: #912018; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 18px; align-items: start; }

/* ------------------------------------------------------------------ KPIs -- */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.kpi {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.kpi::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--primary);
    opacity: .9;
}
.kpi.success::before { background: var(--success); }
.kpi.warning::before { background: var(--warning); }
.kpi.danger::before { background: var(--danger); }
.kpi.signing::before { background: var(--signature); }
.kpi.signing .kpi-value { color: var(--signature-dark); }
.kpi-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-500); font-weight: 650; }
.kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 2px; }
.kpi-unit { font-size: 13px; font-weight: 600; color: var(--slate-500); letter-spacing: 0; }
.kpi-hint { font-size: 12px; color: var(--slate-500); }

/* --------------------------------------------------------------- Buttons -- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .1);
}
.btn:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(51, 92, 255, .25); outline-offset: 1px; }

.btn.sec, .btn-ghost { background: #fff; color: var(--slate-700); border-color: var(--line); box-shadow: none; }
.btn.sec:hover, .btn-ghost:hover { background: #f3f6fc; color: var(--ink); border-color: #c7d2ff; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b42318; }
.btn.signing-btn, .btn.signature { background: var(--signature); box-shadow: 0 1px 2px rgba(35, 70, 216, .18); }
.btn.signing-btn:hover, .btn.signature:hover { background: var(--signature-dark); }
.btn.soft { background: var(--primary-soft); color: var(--primary-dark); box-shadow: none; }
.btn.soft:hover { background: #dbe3ff; }
.btn.sm { padding: 5px 9px; font-size: 12.5px; border-radius: 7px; }
.btn.lg { padding: 11px 20px; font-size: 14.5px; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-link { background: none; border: 0; color: var(--primary); padding: 0; font: inherit; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline-flex; gap: 8px; align-items: center; margin: 0; }

/* ----------------------------------------------------------------- Forms -- */

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field > label, .label { font-size: 12.5px; font-weight: 650; color: var(--slate-700); }
.field .help, .help { font-size: 12px; color: var(--slate-500); }
.field .error { font-size: 12px; color: var(--danger); }

input[type="text"], input[type="password"], input[type="url"], input[type="number"],
input[type="date"], input[type="email"], input[type="search"], select, textarea {
    width: 100%;
    font: inherit;
    font-size: 13.5px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d5dbe5;
    border-radius: var(--radius-sm);
    padding: 8px 11px;
    transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #c7d2ff; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(51, 92, 255, .14);
}
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--primary); vertical-align: -2px; }
input.montant { width: 132px; text-align: right; font-variant-numeric: tabular-nums; }
input.numero { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .02em; }
textarea { min-height: 84px; resize: vertical; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.form-row .field { margin-bottom: 0; }

.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--slate-700); margin: 8px 0; }
.checkline input { margin-top: 2px; flex: 0 0 16px; }

.file-drop {
    display: block;
    border: 1.5px dashed #c7d2ff;
    border-radius: var(--radius-sm);
    padding: 12px;
    background: #fbfcfe;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.file-drop:hover { border-color: var(--primary); background: var(--primary-soft); }
.file-drop input[type="file"] { width: 100%; font-size: 12.5px; }

.fieldset-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin: 10px 0 0;
    background: #fbfcfe;
}
.fieldset-inline legend { padding: 0 6px; font-size: 11.5px; font-weight: 700; color: var(--slate-500); text-transform: uppercase; letter-spacing: .05em; }
.fieldset-inline .checkline { margin: 0; }

.sub-input { display: flex; gap: 6px; align-items: center; }
.sub-input input, .sub-input select { min-width: 0; }
.sub-input .unit { font-size: 12px; color: var(--slate-500); white-space: nowrap; }

/* ---------------------------------------------------------------- Tables -- */

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
table.table th, table.table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: middle;
}
table.table thead th {
    background: #f8fafc;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--slate-500);
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
}
table.table tbody tr:hover { background: #fbfcfe; }
table.table tbody tr:last-child td { border-bottom: 0; }
table.table td.n, table.table th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.table tr.total td { font-weight: 700; background: #f3f6ff; }
table.table tr.subtotal td { font-weight: 600; background: #fbfcfe; }
table.table td.actions-cell { white-space: nowrap; text-align: right; }
table.table .num { font-variant-numeric: tabular-nums; }

.table-empty { padding: 26px 20px; text-align: center; color: var(--slate-500); font-size: 13px; }

/* Table compacte de saisie des lignes de facture. */
table.table-lignes { width: 100%; border-collapse: collapse; }
table.table-lignes th, table.table-lignes td { padding: 6px 6px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.table-lignes thead th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-500); background: #f8fafc; white-space: nowrap; }
table.table-lignes input, table.table-lignes select { padding: 6px 8px; font-size: 12.5px; }
table.table-lignes td.n input { text-align: right; }
table.table-lignes .ligne { }
table.table-lignes .btn.remove-ligne { color: var(--danger); background: #fff; border-color: var(--line); }

/* ---------------------------------------------------------------- Badges -- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 650;
    background: #f2f4f7;
    color: var(--slate-700);
    white-space: nowrap;
    line-height: 1.6;
}
.badge.BROUILLON { background: var(--warning-soft); color: var(--warning); }
.badge.SIGNEE { background: var(--signature-soft); color: var(--signature-dark); }
.badge.TRANSMISE, .badge.ENVOYEE { background: var(--success-soft); color: var(--success); }
.badge.ERREUR, .badge.ECHEC { background: var(--danger-soft); color: var(--danger); }
.badge.ANNULEE { background: #f2f4f7; color: var(--slate-500); }
.badge.RECUE { background: var(--primary-soft); color: var(--primary-dark); }
.badge.IMPORTE { background: #e8f3ff; color: #175cd3; }
.badge.CALCULE { background: var(--signature-soft); color: var(--signature-dark); }
.badge.GENERE { background: var(--warning-soft); color: var(--warning); }
.badge.EN_ATTENTE { background: #f2f4f7; color: var(--slate-500); }
.badge.DEPOSE, .badge.OK, .badge.SUCCES { background: var(--success-soft); color: var(--success); }
.badge.AVERTISSEMENT { background: var(--warning-soft); color: var(--warning); }
.badge.BLOQUANT { background: var(--danger-soft); color: var(--danger); }
.badge.LECTURE { background: #f2f4f7; color: var(--slate-700); }
.badge.GESTIONNAIRE { background: var(--primary-soft); color: var(--primary-dark); }
.badge.ADMIN { background: var(--signature-soft); color: var(--signature-dark); }
.badge.source { background: #f2f4f9; color: var(--slate-500); }
.badge.neutral { background: #f2f4f9; color: var(--slate-500); }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    color: var(--slate-700);
    background: #fff;
}

/* ----------------------------------------------------------------- Alerts -- */

.flash, .alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    margin-bottom: 10px;
    font-size: 13.5px;
}
.flash-success, .alert-success { background: var(--success-soft); color: #067647; border-color: #b7ebd6; }
.flash-danger, .alert-danger { background: var(--danger-soft); color: #b42318; border-color: var(--danger-line); }
.flash-warning, .alert-warning { background: var(--warning-soft); color: #8a5a0d; border-color: var(--warning-line); }
.flash-info, .alert-info { background: var(--primary-soft); color: var(--primary-dark); border-color: var(--primary-line); }

.toast-stack { position: fixed; top: 18px; right: 22px; z-index: 90; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.toast-stack .flash { margin: 0; box-shadow: var(--shadow); background: #fff; }

.empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--slate-500);
}
.empty .icon {
    width: 52px; height: 52px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid; place-items: center;
    font-size: 22px;
}
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty p { max-width: 460px; margin: 0 auto 14px; }

/* ------------------------------------------------------------------ Tabs -- */

.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    margin: 0 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--slate-500);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab .count {
    background: #f2f4f7;
    border-radius: 999px;
    padding: 0 7px;
    font-size: 11px;
    color: var(--slate-700);
}
.tab.active .count { background: var(--primary-soft); color: var(--primary-dark); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- Stepper -- */

.stepper {
    display: flex;
    gap: 0;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    counter-reset: step;
    flex-wrap: wrap;
}
.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 12px;
    font-size: 13px;
    color: var(--slate-500);
    counter-increment: step;
    flex: 1;
    min-width: 150px;
}
.step::before {
    content: counter(step);
    width: 24px; height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    border: 1.5px solid #d5dbe5;
    display: grid; place-items: center;
    font-size: 11.5px; font-weight: 700;
    background: #fff;
}
.step.done { color: var(--success); }
.step.done::before { content: "\2713"; /* ✓ échappé : indépendant de l'encodage */ border-color: var(--success); background: var(--success-soft); color: var(--success); }
.step.active { color: var(--ink); font-weight: 650; }
.step.active::before { border-color: var(--primary); background: var(--primary); color: #fff; }

.wizard-head {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.wizard-head .grow { flex: 1; min-width: 240px; }
.wizard-head h1 { font-size: 22px; }
.wizard-progress { flex: 0 0 220px; max-width: 100%; }
.wizard-stepper {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    margin-bottom: 22px;
}
.wizard-stepper .step { border-right: 1px solid var(--line-soft); }
.wizard-stepper .step:last-child { border-right: 0; }
.wizard-stepper .step a { color: inherit; text-decoration: none; }
.wizard-stepper .step a:hover { text-decoration: none; color: var(--primary-dark); }

/* ------------------------------------------------------------ Bars / chart -- */

.bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-height: 210px;
    padding: 10px 4px 0;
}
.bar-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.bar-track {
    width: 100%;
    height: 170px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border-radius: 7px;
    border: 1px solid var(--line-soft);
    overflow: hidden;
}
.bar {
    display: block;
    width: 62%;
    min-height: 4px;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, #4d7cff, #335cff);
    transition: height .3s ease;
}
.bar-label { font-size: 11px; color: var(--slate-500); font-weight: 600; }
.bar-value { font-size: 10.5px; color: var(--slate-400); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- Checklist -- */

.checklist { display: grid; gap: 10px; }
.checklist-item {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: #fcfdff;
}
.checklist-item .mark {
    flex: 0 0 24px;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 800;
    background: #f2f4f7;
    color: var(--slate-500);
}
.checklist-item strong { font-size: 13px; }
.checklist-item.ok { border-color: var(--primary-line); background: #f3f7ff; }
.checklist-item.ok .mark { background: var(--success-soft); color: var(--success); }
.checklist-item.warn { border-color: var(--warning-line); background: #fffaf0; }
.checklist-item.warn .mark { background: var(--warning-soft); color: var(--warning); }
.checklist-item.todo .mark { background: #f2f4f7; color: var(--slate-500); }
.checklist-item.danger { border-color: var(--danger-line); background: #fff7f6; }
.checklist-item.danger .mark { background: var(--danger-soft); color: var(--danger); }

/* ------------------------------------------------------ Document banners -- */

.doc-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    background: #fff;
    padding: 14px 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.doc-banner.BROUILLON { border-left-color: var(--warning); background: #fffdf8; }
.doc-banner.SIGNEE { border-left-color: var(--signature); background: #f8faff; }
.doc-banner.ENVOYEE, .doc-banner.TRANSMISE { border-left-color: var(--success); background: #f8fdfb; }
.doc-banner.ERREUR { border-left-color: var(--danger); background: #fff8f7; }
.doc-banner.ANNULEE { border-left-color: var(--slate-400); }
.doc-banner-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.doc-banner-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--slate-500); }
.doc-ref { font-size: 12px; color: var(--slate-500); }
.doc-ref code { background: #fff; border: 1px solid var(--line); }

.doc-steps { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: 13px; color: var(--slate-700); }
.doc-steps li::marker { color: var(--primary); }

.party { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.party .eyebrow { margin-bottom: 2px; }

/* -------------------------------------------------------------- Timeline -- */

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { display: flex; gap: 10px; align-items: flex-start; }
.timeline .dot {
    flex: 0 0 9px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--slate-400);
    margin-top: 6px;
}
.timeline .dot.ok { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.timeline .dot.ko { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.timeline strong { font-size: 13px; }

/* --------------------------------------------------------------- Totals -- */

.grand-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #335cff, #2346d8);
    color: #fff;
    margin-top: 10px;
}
.grand-total .label-total { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.grand-total strong { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.grand-total .devise { font-size: 12px; opacity: .85; }

.note-block {
    border-left: 3px solid var(--primary-line);
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 12.5px;
    color: var(--slate-700);
}

.invoice-form .card-body { padding-bottom: 12px; }
.invoice-form .totaux { display: grid; gap: 6px; }

/* ----------------------------------------------------------- Source pick -- */

.source-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.source-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s, transform .15s;
    text-decoration: none;
    color: inherit;
}
.source-card:hover {
    border-color: var(--primary-line);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}
.source-card.disabled { opacity: .6; pointer-events: none; }
.source-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 19px;
}
.source-icon.green { background: var(--success-soft); color: var(--success); }
.source-card h3 { font-size: 16px; }
.source-card p { color: var(--slate-500); font-size: 13px; margin: 0; }
.source-card .go { margin-top: auto; font-weight: 650; color: var(--primary); font-size: 13px; }

/* ----------------------------------------------------------------- Misc -- */

/* Compatibilité avec les anciens gabarits (carte, grille, table nue). */
.carte {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    padding: 20px;
}
.carte > h1, .carte > h2 { margin-bottom: 12px; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.carte table { width: 100%; border-collapse: collapse; }
.carte table th, .carte table td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.carte table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500); background: #f8fafc; white-space: nowrap; }
.carte table tr:last-child td { border-bottom: 0; }

/* Charges JSON du journal d'audit : ne jamais élargir la page. */
.audit-payload { max-width: 320px; overflow-wrap: anywhere; word-break: break-word; font-size: 11.5px; }
table.table td code, table.table td .mono { overflow-wrap: anywhere; }

.avatar-list { display: flex; align-items: center; gap: 10px; }
.stat-inline { display: flex; gap: 22px; flex-wrap: wrap; }
.stat-inline .item { min-width: 100px; }
.stat-inline .item span { display: block; font-size: 11.5px; color: var(--slate-500); text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }
.stat-inline .item strong { font-size: 15px; }

.progress { height: 8px; border-radius: 999px; background: #e8edf7; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #335cff, #6b8dff); }

.kv { width: 100%; border-collapse: collapse; }
.kv th, .kv td { padding: 8px 0; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: 13px; vertical-align: top; }
.kv th { color: var(--slate-500); font-weight: 600; width: 42%; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }

.steps-note { display: flex; gap: 12px; align-items: flex-start; }
.steps-note .bullet {
    flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
    background: var(--primary-soft); color: var(--primary-dark);
    display: grid; place-items: center; font-weight: 700; font-size: 12px;
}

details { border-radius: var(--radius-sm); }
details summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--slate-700); }
details summary:hover { color: var(--ink); }
details[open] summary { margin-bottom: 10px; }

/* ----------------------------------------------------------------- Login -- */

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    background: #fff;
}
.auth-aside {
    position: relative;
    overflow: hidden;
    background: radial-gradient(1200px 600px at 10% 10%, #3a8ad6 0%, var(--marque) 50%, var(--marque-fonce) 100%);
    color: #dbe5f3;
    padding: 52px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-aside::after {
    content: "";
    position: absolute;
    width: 520px; height: 520px;
    right: -180px; bottom: -200px;
    background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%);
}
.auth-aside h1 { color: #fff; font-size: 30px; line-height: 1.2; max-width: 460px; }
.auth-aside p { color: rgba(255, 255, 255, .85); max-width: 440px; font-size: 14px; }
.auth-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: #fff; }
.auth-points { display: grid; gap: 14px; position: relative; z-index: 1; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: rgba(255, 255, 255, .9); }
.auth-point b { color: #fff; font-weight: 600; }
.auth-point .dot { width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; color: #fff; flex: 0 0 26px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: #fbfcfe; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 22px; margin-bottom: 6px; }
.auth-card .sub { color: var(--slate-500); font-size: 13px; margin-bottom: 22px; }
.auth-card .btn { width: 100%; padding: 11px; }
.auth-foot { margin-top: 22px; font-size: 12px; color: var(--slate-400); text-align: center; }

/* ------------------------------------------------------------ Responsive -- */

@media (max-width: 1180px) {
    .split { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sticky-card { position: static; }
}

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar.open { transform: none; box-shadow: 0 24px 60px rgba(5, 15, 25, .45); }
    .main { margin-left: 0; }
    .burger { display: inline-flex; }
    .auth { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .content { padding: 20px 18px 44px; }
    .topbar { padding: 10px 18px; }
}

@media (max-width: 720px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .page-head { gap: 12px; }
    h1 { font-size: 21px; }
    .topbar-actions .btn span.long { display: none; }
    .doc-banner { align-items: flex-start; }
    .wizard-progress { flex-basis: 100%; }
}

@media print {
    .sidebar, .topbar, .page-actions, .tabs, .btn { display: none !important; }
    .main { margin-left: 0; }
    .content { padding: 0; max-width: none; }
    .card { break-inside: avoid; box-shadow: none; }
}

/* ==========================================================================
   Relookage des champs et des filtres (formulaires, recherche, import)
   ========================================================================== */

/* Tous les champs de saisie, y compris ceux sans attribut type. */
input:not([type]), input[type="text"], input[type="password"], input[type="url"], input[type="number"],
input[type="date"], input[type="datetime-local"], input[type="month"], input[type="email"],
input[type="search"], input[type="tel"], select, textarea {
    width: 100%;
    min-height: 40px;
    font: inherit;
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--ink);
    background-color: #fff;
    border: 1px solid #d0d7e2;
    border-radius: 9px;
    padding: 9px 12px;
    box-shadow: 0 1px 1px rgba(16, 24, 40, .03) inset;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
textarea { min-height: 84px; }
input::placeholder, textarea::placeholder { color: var(--slate-400); opacity: 1; }
input:hover:not(:focus):not([readonly]):not(:disabled),
select:hover:not(:focus):not(:disabled),
textarea:hover:not(:focus):not([readonly]):not(:disabled) { border-color: #b7c2d6; }
input:focus, select:focus, textarea:focus, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(51, 92, 255, .14);
}
input[readonly], textarea[readonly] { background: #f7f9fc; color: var(--slate-700); }
input:disabled, select:disabled, textarea:disabled { background: #f2f4f7; color: var(--slate-400); cursor: not-allowed; }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(217, 45, 32, .10); }

/* Listes déroulantes : chevron dessiné, même hauteur que les champs. */
select:not([multiple]) {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}
input[type="date"], input[type="datetime-local"], input[type="month"] { font-variant-numeric: tabular-nums; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
input[type="number"] { font-variant-numeric: tabular-nums; }

/* Libellés et aide */
.field { gap: 6px; }
.field > label, .label { font-size: 12.5px; font-weight: 650; color: var(--slate-700); letter-spacing: .005em; }
.field:has(> :is(input, select, textarea)[required]) > label::after { content: " *"; color: var(--danger); font-weight: 700; }

/* Cases à cocher et boutons radio */
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }
.checkline { align-items: center; cursor: pointer; }

/* Filtres de statut : pastilles cliquables (la case reste accessible au clavier). */
.fieldset-inline {
    gap: 8px;
    padding: 12px 14px 14px;
    border-radius: 10px;
    background: #fbfcfe;
}
.fieldset-inline legend { margin-left: -4px; }
/* Pastilles : uniquement les cases accompagnées d'un badge (filtres de statut) ;
   ailleurs (configuration), la case reste visible. */
.fieldset-inline .checkline:has(> .badge) {
    position: relative;
    gap: 0;
    margin: 0;
    padding: 0;
    border-radius: 999px;
}
.fieldset-inline .checkline:not(:has(> .badge)) { gap: 8px; margin: 0; padding: 4px 6px 4px 0; }
.fieldset-inline .checkline:has(> .badge) input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}
.fieldset-inline .checkline .badge {
    padding: 6px 12px 6px 10px;
    font-size: 12.5px;
    border: 1px solid transparent;
    opacity: .72;
    transition: opacity .15s, box-shadow .15s, border-color .15s, transform .1s;
}
.fieldset-inline .checkline .badge::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    opacity: .55;
    flex: 0 0 14px;
}
.fieldset-inline .checkline:hover .badge { opacity: 1; }
.fieldset-inline .checkline:has(input:checked) .badge {
    opacity: 1;
    border-color: currentColor;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}
.fieldset-inline .checkline:has(input:checked) .badge::before {
    opacity: 1;
    background: currentColor url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.fieldset-inline .checkline:has(input:focus-visible) .badge { box-shadow: 0 0 0 3px rgba(51, 92, 255, .25); }
.fieldset-inline .checkline:active .badge { transform: scale(.97); }

/* Zone de dépôt de fichier */
.file-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 16px;
    border: 1.5px dashed #b9c6f5;
    border-radius: 10px;
    background: #fafbff;
    text-align: center;
    color: var(--slate-500);
    font-size: 12.5px;
}
.file-drop::before {
    content: "";
    width: 30px;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23335cff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4m0 0-4 4m4-4 4 4'/%3E%3Cpath d='M4 16v3a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.file-drop:hover, .file-drop:focus-within { border-color: var(--primary); background: var(--primary-soft); }
.file-drop input[type="file"] { width: auto; max-width: 100%; font-size: 12.5px; color: var(--slate-700); }
.file-drop input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 7px 12px;
    border: 1px solid var(--primary-line);
    border-radius: 8px;
    background: #fff;
    color: var(--primary-dark);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.file-drop [data-file-name] { color: var(--slate-500); }

/* Grilles de recherche : alignement des boutons sur les champs */
.form-grid { gap: 0 16px; }
.form-grid > .actions { align-self: end; margin-bottom: 14px; }

/* Total TTC du formulaire de facture (ligne de tableau, pas un bloc flex) */
tr.grand-total { display: table-row; background: none; padding: 0; }
tr.grand-total > th, tr.grand-total > td {
    background: var(--primary);
    color: #fff;
    padding: 12px 14px;
    border: 0;
}
tr.grand-total > th { border-radius: 9px 0 0 9px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
tr.grand-total > td { border-radius: 0 9px 9px 0; font-size: 13px; }
tr.grand-total strong { font-size: 20px; color: #fff; font-variant-numeric: tabular-nums; }

/* Signature avec la clé USB (agent de signature du poste) */
.dialogue-certificat { border: 1px solid var(--line, #e3e8f0); border-radius: 12px; padding: 20px; max-width: 560px; width: calc(100% - 32px); box-shadow: 0 20px 50px rgba(15, 23, 42, .25); }
.dialogue-certificat::backdrop { background: rgba(15, 23, 42, .4); }
.dialogue-certificat h3 { margin: 0 0 12px; }
.dialogue-certificat .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.signature-locale { margin-top: 12px; display: grid; gap: 8px; }
.etapes-agent { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* Super administrateur : comptes de la société */
.comptes-liste { display: grid; }
.compte-ligne { display: grid; grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line, #e3e8f0); }
.compte-ligne:first-child { border-top: 0; }
.compte-ligne:hover { background: #f7faff; }
.compte-ligne.inactif { opacity: .7; }
.compte-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--marque, #2470bd); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: .5px; flex: none; }
.compte-ligne.inactif .compte-avatar { background: var(--slate-500, #64748b); }
.compte-nom { font-weight: 600; }
.compte-identite .muted { overflow-wrap: anywhere; }
.compte-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.compte-activite { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; font-size: 12px; }
.compte-activite dt { color: var(--slate-500, #64748b); }
.compte-activite dd { margin: 2px 0 0; font-weight: 600; white-space: nowrap; }
.compte-action { text-align: right; }
@media (max-width: 900px) {
    .compte-ligne { grid-template-columns: 44px minmax(0, 1fr); }
    .compte-activite, .compte-action { grid-column: 2; text-align: left; }
}
.dialogue-compte { border: 0; border-radius: 14px; padding: 0; width: min(640px, calc(100% - 32px)); box-shadow: 0 24px 60px rgba(15, 23, 42, .3); }
.dialogue-compte::backdrop { background: rgba(15, 23, 42, .45); }
.dialogue-compte .dialogue-entete { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line, #e3e8f0); position: sticky; top: 0; background: #fff; z-index: 1; }
.dialogue-compte h3 { margin: 0; }
.dialogue-compte section { padding: 16px 20px; border-bottom: 1px solid var(--line, #e3e8f0); display: grid; gap: 12px; }
.dialogue-compte section:last-child { border-bottom: 0; }
.dialogue-compte h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--marque, #2470bd); }
.dialogue-compte .dialogue-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.dialogue-compte .dialogue-ligne { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dialogue-compte .grow { flex: 1; min-width: 0; }
