/* NAKALA | Devis — interface alignée sur la plateforme NAKALA, thèmes clair et sombre.
 * Le document (aperçu A4, PDF, Word) garde toujours sa mise en forme PAPMANOU sur fond blanc. */

/* ---------- Thèmes ---------- */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff; --side: #ffffff; --panel: #ffffff; --panel-2: #f6f6f7; --hover: #f3f3f4; --active: #ececee;
  --line: #e5e5e8; --line-2: #d6d6da; --text: #141416; --text-2: #3b3b40; --muted: #74747b;
  --accent: #141416; --accent-text: #ffffff; --focus: #8d8d95;
  --green: #1d7a4e; --amber: #8a5a00; --orange: #b4530a; --red: #c0262d; --blue: #2b55c4; --violet: #6b3fc4; --grey: #5d5d66;
  --kpi-warm: #8a5a00; --shadow: 0 1px 2px rgba(0,0,0,.04);
  --apercu-bg: #ededf0;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111113; --side: #121214; --panel: #161618; --panel-2: #1b1b1e; --hover: #1d1d20; --active: #242428;
  --line: #29292d; --line-2: #36363b; --text: #ececee; --text-2: #c9c9ce; --muted: #9a9aa2;
  --accent: #f4f4f5; --accent-text: #111113; --focus: #6d6d75;
  --green: #4cc38a; --amber: #e1b45e; --orange: #f0a35e; --red: #f07a7c; --blue: #86a8ff; --violet: #b69bff; --grey: #a2a2aa;
  --kpi-warm: #e1b45e; --shadow: none;
  --apercu-bg: #0c0c0e;
}
:root {
  --radius: 12px; --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.i { width: 18px; height: 18px; flex: none; }

/* ---------- Structure : barre latérale + contenu ---------- */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
body.side-replie .shell { grid-template-columns: 68px 1fr; }
.side { min-width: 0; overflow: hidden; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--side); border-right: 1px solid var(--line); padding: 14px 10px 10px; gap: 10px; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); }
.wordmark { font-weight: 600; letter-spacing: .32em; font-size: 15px; text-decoration: none; color: var(--text); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 10px; height: 38px; color: var(--muted); background: var(--panel); }
.search input { border: 0; outline: 0; background: transparent; color: var(--text); flex: 1; min-width: 0; padding: 0; font-size: 14px; }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { font-family: var(--font); font-size: 11px; color: var(--muted); }
.search .ico, .nav-item .ico { display: inline-flex; }
.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; color: var(--text-2); text-decoration: none; font-size: 14.5px; border: 0; background: transparent; cursor: pointer; width: 100%; text-align: left; font-family: inherit; }
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item.on { background: var(--active); color: var(--text); font-weight: 500; }
.nav-item .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-item .count.alerte { background: var(--red); color: #fff; border-radius: 9px; padding: 1px 7px; font-weight: 600; }
[data-theme="dark"] .nav-item .count.alerte { color: #1a0c0c; }
.nav-group { display: flex; align-items: center; gap: 8px; padding: 14px 10px 6px; font-size: 13px; color: var(--muted); border: 0; background: none; cursor: pointer; width: 100%; text-align: left; font-family: inherit; }
.nav-group .i { width: 14px; height: 14px; transition: transform .15s; }
.nav-group:not(.ferme) .i { transform: rotate(90deg); }
.nav-group.ferme + .nav-sub { display: none; }
.nav-sub { display: flex; flex-direction: column; gap: 2px; }
.side-foot { border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 8px; min-width: 0; }
.side-foot > * { min-width: 0; }
.nav-item.sync .count { font-size: 11px; }
.user { display: flex; align-items: center; gap: 10px; padding: 4px 6px; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; background: linear-gradient(135deg, #f7b2c4, #c98ff0); color: #3a1530; flex: none; }
.who { flex: 1; min-width: 0; }
.who .name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .org { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; color: var(--text-2); }
body.side-replie .side .lbl, body.side-replie .side .count, body.side-replie .search input, body.side-replie .search kbd,
body.side-replie .wordmark, body.side-replie .nav-group span, body.side-replie .who, body.side-replie .nav-group { display: none; }
body.side-replie .side-head { justify-content: center; }
body.side-replie .nav-item, body.side-replie .search { justify-content: center; padding-left: 0; padding-right: 0; }
body.side-replie .nav-sub { display: flex !important; }
body.side-replie .user { flex-direction: column; }

.content { min-width: 0; }
.grid-kpi.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-kpi.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#bandeau:not(:empty) { background: color-mix(in srgb, var(--amber) 14%, var(--bg)); color: var(--text); padding: 10px 28px; border-bottom: 1px solid var(--line); font-size: 13px; }
main { padding: 0 32px 40px; }

/* ---------- En-tête de page ---------- */
.page-head { display: flex; gap: 18px; align-items: flex-start; padding: 28px 0 22px; border-bottom: 1px solid var(--line); margin: 0 -32px 22px; padding-left: 32px; padding-right: 32px; }
.page-head .tile { width: 52px; height: 52px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--text); flex: none; }
.page-head .tile .i { width: 24px; height: 24px; }
.page-head h1 { margin: 0; font-size: 27px; font-weight: 500; letter-spacing: -.01em; }
.page-head .sub { color: var(--muted); margin-top: 6px; font-size: 15px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.crumb { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-size: 13px; padding-top: 18px; }
.crumb:hover { color: var(--text); }
.crumb + .page-head { padding-top: 10px; }
.titre-ligne { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Boutons, champs ---------- */
.btn { font: inherit; font-size: 14px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); padding: 7px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 500; }
.btn.primary:hover { opacity: .9; }
.btn.small { padding: 3px 9px; font-size: 12.5px; border-radius: 7px; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .45; cursor: default; }
.btn .i { width: 16px; height: 16px; }
input, select, textarea { font: inherit; border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 10px; background: var(--panel); color: var(--text); min-width: 0; }
textarea { resize: vertical; min-height: 36px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--focus) 45%, transparent); outline-offset: 0; border-color: var(--focus); }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- Cartes et indicateurs ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.grid-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 4px 0 22px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px 16px; box-shadow: var(--shadow); min-width: 0; }
.kpi .kl { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); font-weight: 500; }
.kpi .kl .i { color: var(--muted); }
.kpi .kv { font-size: 30px; font-weight: 400; margin-top: 12px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .ks { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.kpi.warm .kv { color: var(--kpi-warm); }
.kpi.bad .kv { color: var(--red); }
.sec-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; box-shadow: var(--shadow); margin-bottom: 22px; }
.sec-card > .sh { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 16px; }
.sec-card > .sh .i { color: var(--text-2); }
.sec-card > .sh .lien { margin-left: auto; font-weight: 400; font-size: 13.5px; color: var(--muted); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.sec-card > .sb { padding: 18px 22px; }
.sec-card > .sb.flush { padding: 0; }
.compteur { padding: 14px 22px; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); }

/* ---------- Tableaux ---------- */
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; padding: 14px 18px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); font-weight: 500; background: var(--panel-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.click { cursor: pointer; } table.list tr.click:hover td { background: var(--hover); }
table.list td.r, table.list th.r { text-align: right; }
table.list td.num { font-family: var(--mono); font-size: 13.5px; text-align: right; white-space: nowrap; }
table.list input, table.list select, table.list textarea { width: 100%; }
table.list input[type="date"] { width: 140px; padding-left: 8px; padding-right: 6px; }
table.list td:has(> input[type="date"]) { width: 1%; }
table.list .titre-cel { font-weight: 500; }
table.list .sub-cel { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ---------- Pastilles de statut ---------- */
.pill { --c: var(--grey); display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 7px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 38%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.plein { background: var(--c); color: var(--bg); border-color: var(--c); }
.pill.plein::before { display: none; }
.pill.tag { --c: var(--text-2); background: transparent; }
.pill.tag::before { display: none; }
.s-prospect { --c: var(--grey); } .s-devis { --c: var(--blue); } .s-envoye { --c: var(--amber); } .s-negociation { --c: var(--orange); }
.s-signe { --c: var(--green); } .s-en_cours { --c: var(--blue); } .s-livre { --c: var(--violet); } .s-clos { --c: var(--grey); } .s-perdu { --c: var(--red); }
.f-prevue { --c: var(--grey); } .f-emise { --c: var(--amber); } .f-payee { --c: var(--green); } .f-retard { --c: var(--red); }
.v-brouillon { --c: var(--grey); } .v-envoye { --c: var(--amber); } .v-accepte { --c: var(--green); } .v-refuse { --c: var(--red); } .v-remplace { --c: var(--grey); }
.l-a_planifier { --c: var(--grey); } .l-planifie { --c: var(--blue); } .l-en_cours { --c: var(--amber); } .l-livre { --c: var(--violet); } .l-recette { --c: var(--green); }

/* ---------- Onglets ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: -22px -32px 24px; padding: 0 32px; }
.tabs a { display: inline-flex; align-items: center; gap: 9px; padding: 14px 14px 13px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; font-size: 15px; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-color: var(--text); }
.tabs .i { width: 17px; height: 17px; }

/* ---------- Filtres ---------- */
.filtres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { text-decoration: none; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); border-radius: 9px; padding: 7px 14px; cursor: pointer; font: inherit; font-size: 14px; }
.chip:hover { background: var(--hover); }
.chip.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* ---------- Divers ---------- */
.empty { padding: 36px; text-align: center; color: var(--muted); }
.journal-item { border-left: 2px solid var(--line-2); padding: 8px 14px; margin: 10px 0; }
.journal-item .meta { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.journal-item.auto { border-color: var(--blue); }
.alerte-ligne { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); background: color-mix(in srgb, var(--amber) 10%, transparent); margin-bottom: 16px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: flex-start; justify-content: center; padding-top: 8vh; z-index: 50; }
.modal .card { width: min(660px, 92vw); max-height: 84vh; overflow: auto; }
.modal h3 { margin: 0 0 14px; font-weight: 500; font-size: 19px; }
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--accent); color: var(--accent-text); padding: 11px 16px; border-radius: 10px; max-width: 520px; z-index: 60; white-space: pre-wrap; font-size: 13.5px; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.toast.bad { background: var(--red); color: #fff; }
pre.log { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); padding: 12px; border-radius: 9px; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; max-height: 320px; overflow: auto; }
.cmd-poste { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }

/* ---------- CRM : pipeline, étapes, indicateurs ---------- */
.kanban { display: grid; grid-template-columns: repeat(7, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcol { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-height: 240px; transition: background .15s; }
.kcol.cible { background: color-mix(in srgb, var(--blue) 12%, var(--panel-2)); border-color: var(--blue); }
.kh { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); font-weight: 600; padding: 2px 4px; }
.kh .count { font-family: var(--mono); color: var(--muted); }
.ksum { font-size: 12.5px; color: var(--muted); padding: 2px 4px 10px; }
.kbody { display: grid; gap: 8px; }
.kcard { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: grab; box-shadow: var(--shadow); display: grid; gap: 4px; }
.kcard:hover { border-color: var(--line-2); }
.kcard.glisse { opacity: .5; }
.kcard .kt { font-weight: 600; font-size: 13.5px; }
.kcard .ks { color: var(--muted); font-size: 12.5px; }
.kcard .kf { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12.5px; }
.kcard .pill { font-size: 9.5px; padding: 2px 6px; }
.kvide { color: var(--muted); text-align: center; padding: 14px; }
.etape { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); margin: -6px 0 18px; font-size: 13.5px; }
.cond { display: inline-flex; gap: 6px; align-items: center; }
.cond .i, .conditions .i { width: 16px; height: 16px; }
.c-ok { color: var(--green); } .c-ko { color: var(--red); }
.conditions { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.conditions li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }
.conditions li span:nth-child(2) { flex: 1; color: var(--text); }
.portefeuille { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
.pf { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; min-height: 132px; }
.pf:hover { border-color: var(--line-2); }
.pf.on { border-color: var(--text); background: var(--active); }
.pf-nom { font-weight: 600; }
.pf-resume { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.pf-prix { margin-top: auto; font-variant-numeric: tabular-nums; font-size: 13px; }
.modal .card:has(.portefeuille) { width: min(980px, 94vw); }
@media (max-width: 800px) { .portefeuille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .portefeuille { grid-template-columns: 1fr; } }

/* Page Portefeuille : identité en deux colonnes, composition en tableau bord à bord */
.pf-intro { margin: -8px 0 16px; }
.pf-offre > .sh .pf-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-offre > .sh .pf-montant { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: -.01em; }
.pf-offre > .sh.pf-sous { font-size: 14.5px; }
.pf-identite { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; align-items: stretch; }
.pf-identite > .pf-prix { grid-column: 1; max-width: 220px; }
.pf-identite label.f { height: 100%; }
.pf-identite textarea { flex: 1; min-height: 68px; }
.pf-identite .pf-prix input { width: 100%; font-variant-numeric: tabular-nums; }
.pf-note { margin-top: 14px; }
.pf-cumul { margin: 14px 22px 0; }
.pf-repris { margin: 8px 22px 0; }
.pf-repris summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.pf-repris .aide { margin: 8px 0 0; }
.pf-repris ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); font-size: 13px; display: grid; gap: 4px; }
.pf-herit { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.pf-compo { padding: 2px 22px 16px; display: grid; gap: 8px; }
.pf-entete, .pf-ligne { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; align-items: center; }
.pf-entete { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); font-weight: 500; }
.pf-ligne { position: relative; }
.pf-role:empty { display: none; }
.pf-role { grid-column: 1 / -1; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pf-ligne .btn { position: absolute; right: 5px; bottom: 5px; }
.pf-ligne input:nth-child(3) { padding-right: 36px; }
@media (max-width: 720px) {
  .pf-identite, .pf-entete, .pf-ligne { grid-template-columns: 1fr; }
  .pf-identite > .pf-prix { max-width: none; }
  .pf-entete, .pf-ligne { row-gap: 8px; }
}
.liste-choix { display: grid; gap: 8px; }
.liste-choix .cmd-poste { width: 100%; text-align: left; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.deux-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 0 18px; }
.barres { display: grid; gap: 10px; }
.barre-l { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.barre-l .bt { height: 10px; background: var(--panel-2); border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.barre-l .bv { display: block; height: 100%; background: var(--text-2); border-radius: 5px; min-width: 2px; }
.barre-l .bn { color: var(--text-2); font-size: 12.5px; white-space: nowrap; }
.sec-card > .sh .pill.tag, .page-head .pill.tag { font-size: 10px; }
.filtres.row { align-items: flex-end; }

/* ---------- Éditeur de devis ---------- */
.barre { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.editeur { display: grid; grid-template-columns: minmax(300px, var(--split, 50%)) 10px minmax(300px, 1fr); gap: 6px; align-items: start; }
.editeur.mode-form { grid-template-columns: minmax(0, 1100px); justify-content: center; }
.editeur.mode-form > .separateur, .editeur.mode-form > .apercu-wrap { display: none; }
.editeur.mode-apercu { grid-template-columns: 1fr; }
.editeur.mode-apercu > .form, .editeur.mode-apercu > .separateur { display: none; }
.editeur.mode-apercu .apercu-wrap { position: static; max-height: none; }
.separateur { align-self: stretch; cursor: col-resize; position: relative; min-height: 200px; touch-action: none; }
.separateur::after { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: var(--line); border-radius: 2px; }
.separateur:hover::after, .editeur.glisse .separateur::after { background: var(--focus); width: 4px; left: 3px; }
.editeur.glisse { user-select: none; cursor: col-resize; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.seg .btn { border: 0; border-radius: 0; border-left: 1px solid var(--line-2); }
.seg .btn:first-child { border-left: 0; }
.seg .btn.on { background: var(--accent); color: var(--accent-text); }
.editeur .form { display: grid; gap: 14px; min-width: 0; }
.bloc, .bloc > .bb, .form-grid > * { min-width: 0; }
.editeur .apercu-wrap { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow: auto; background: var(--apercu-bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.bloc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.bloc > .bh { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); border-radius: 14px 14px 0 0; }
.bloc.replie > .bh { border-bottom: 0; border-radius: 14px; }
.bloc > .bh .type { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); min-width: 74px; }
.bloc > .bh input.titre { flex: 1; font-weight: 600; }
.bloc > .bb { padding: 14px; display: grid; gap: 12px; }
.bloc.replie > .bb { display: none; }
.lignes { width: 100%; border-collapse: collapse; }
.lignes th { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: left; font-weight: 500; padding: 2px 4px 6px; }
.lignes td { padding: 3px 4px; vertical-align: top; }
.lignes input, .lignes select { width: 100%; }
.lignes td.n input { width: 72px; }
.lignes td.calc { text-align: right; white-space: nowrap; padding-top: 10px; font-family: var(--mono); font-size: 13px; }
.lignes textarea { width: 100%; min-height: 36px; }
.icons { display: flex; gap: 2px; }
.icons .btn { padding: 3px 7px; border-radius: 7px; }
.total-lot { text-align: right; font-weight: 600; font-family: var(--mono); font-size: 13.5px; }
.ajout { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tbl-edit input { width: 100%; }
.aide { color: var(--muted); font-size: 12.5px; margin: 0; }

/* ---------- Document (aperçu A4) : toujours blanc, même rendu que le Word ---------- */
.dv { -webkit-print-color-adjust: exact; print-color-adjust: exact; color-scheme: light; background: #fff; width: 210mm; min-height: 297mm; margin: 0 auto; padding: 20mm; box-shadow: 0 2px 14px rgba(0,0,0,.25);
  font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000; line-height: 1.25; }
.dv-logo { width: 47mm; display: block; margin-bottom: 5mm; }
.dv-title { font-size: 17pt; font-weight: bold; color: #1f3a5f; }
.dv-subtitle { color: #666; margin: 1mm 0 6mm; }
.dv-docnum { font-size: 15pt; font-weight: bold; border-bottom: 1.5pt solid #1f3a5f; padding-bottom: 1mm; margin-bottom: 1mm; }
.dv-gap { height: 3mm; }
.dv-h1 { font-size: 13pt; color: #1f3a5f; margin: 6mm 0 2mm; break-after: avoid; }
.dv-h2 { font-size: 11pt; color: #333; margin: 4mm 0 2mm; break-after: avoid; }
.dv-h3 { font-size: 10pt; margin: 3mm 0 1.5mm; break-after: avoid; }
.dv-p { margin: 0 0 2mm; } .dv-i { font-style: italic; }
.dv-ul { margin: 0 0 1mm; padding-left: 7mm; }
.dv mark { background: yellow; color: #000; }
.dv-table { width: 100%; border-collapse: collapse; margin: 0 0 1mm; font-size: 9.5pt; }
.dv-table th, .dv-table td { border: 0.5pt solid #bfc8d3; padding: 1.2mm 1.9mm; vertical-align: top; text-align: left; }
.dv-table th { background: #1f3a5f; color: #fff; font-weight: bold; }
.dv-table tr.dv-total td { background: #e8eef5; font-weight: bold; }
.dv-table .dv-r { text-align: right; }
.dv-table tr { break-inside: avoid; }
.dv-footer-screen { margin-top: 12mm; text-align: center; color: #888; font-size: 7.5pt; border-top: 0.5pt solid #ddd; padding-top: 2mm; }

@page { size: A4; margin: 20mm 20mm 22mm; }
@media print {
  html, body { background: #fff !important; }
  body.impression .side, body.impression #bandeau, body.impression #modal, body.impression #toast { display: none !important; }
  body.impression .shell { display: block; }
  body.impression main { padding: 0; }
  body.impression main > *:not(.editeur) { display: none !important; }
  body.impression .editeur, body.impression .editeur.mode-form { display: block; }
  body.impression .editeur.mode-form > .apercu-wrap { display: block !important; }
  body.impression .editeur > *:not(.apercu-wrap) { display: none !important; }
  body.impression .apercu-wrap { position: static; max-height: none; overflow: visible; padding: 0; background: none; border: 0; }
  body.impression .dv { zoom: 1 !important; width: auto; min-height: 0; padding: 0; box-shadow: none; margin: 0; }
  body.impression .dv-footer-screen { display: none; }
}
/* OPS-03 : utilisable sur mobile (consultation et saisie d'activités) */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { max-height: 40vh; }
  main { padding: 0 14px 30px; }
  .page-head { margin: 0 -14px 18px; padding-left: 14px; padding-right: 14px; flex-wrap: wrap; }
  .page-head .actions { margin-left: 0; justify-content: flex-start; }
  .tabs { margin: -18px -14px 18px; padding: 0 14px; overflow-x: auto; }
  .sec-card { overflow-x: auto; }
  .editeur, .editeur.mode-split { grid-template-columns: 1fr; }
  .editeur .separateur { display: none; }
  .deux-col { grid-template-columns: 1fr; }
}

/* Bouton de langue de l'interface (FR / EN) */
.lang-btn { font: 600 11px/1 var(--mono, ui-monospace, monospace); letter-spacing: .04em; }

/* Politique d'acompte (FAC-04) : étapes, cartes de choix, résumé */
.pol { display: grid; gap: 18px; }
.pol [hidden] { display: none !important; }
.pol-etape { display: grid; gap: 10px; }
.pol-titre { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.pol-titre > span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--active); color: var(--text-2); font: 600 11px/1 var(--mono); }
.pol-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pol-carte, .pol-coche { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); cursor: pointer; transition: border-color .12s, background .12s; }
.pol-carte:hover, .pol-coche:hover { background: var(--hover); }
.pol-carte.on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.pol-carte input, .pol-coche input { margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.pol-carte span, .pol-coche span { display: grid; gap: 3px; min-width: 0; }
.pol-carte b, .pol-coche b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.pol-carte small, .pol-coche small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.pol-champ { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); overflow: hidden; }
.pol-champ input { border: 0 !important; box-shadow: none !important; width: 120px; text-align: right; font-variant-numeric: tabular-nums; background: transparent; }
.pol-champ em { font-style: normal; font-size: 13px; color: var(--muted); padding: 0 12px 0 4px; white-space: nowrap; }
.pol-resume { border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); padding: 12px 14px; display: grid; gap: 4px; }
.pol-resume-t { font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pol-resume #po-res { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.pol-erreur { color: var(--red); font-size: 13px; font-weight: 500; }
@media (max-width: 640px) { .pol-choix { grid-template-columns: 1fr; } }
.pol-champ { justify-self: start; }
.pol-champ:focus-within { border-color: var(--focus); }
.pol-champ input, .pol-champ input:focus { outline: none !important; border: 0 !important; box-shadow: none !important; }
.pol-etape[data-si="client"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pol-etape[data-si="client"] .pol-titre { grid-column: 1 / -1; }
.pol-coche:has(input:checked) { border-color: var(--text); }
@media (max-width: 640px) { .pol-etape[data-si="client"] { grid-template-columns: 1fr; } }

/* Boîtes de dialogue intégrées (confirmation, saisie, utilisateur) */
.dlg { display: flex; gap: 14px; align-items: flex-start; }
.dlg-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--active); color: var(--text-2); }
.dlg-ico svg { width: 18px; height: 18px; }
.dlg-danger .dlg-ico { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.dlg-corps h3 { margin: 4px 0 6px !important; }
.dlg-corps p { margin: 0 0 6px; color: var(--text-2); line-height: 1.5; }
.dlg-actions { margin-top: 20px; gap: 8px; }
.btn.danger-plein { background: var(--red); border-color: var(--red); color: #fff; font-weight: 500; }
.btn.danger-plein:hover { filter: brightness(1.08); }
.modal .card:has(.dlg) { width: min(480px, 92vw); }
.modal code { font-family: var(--mono); font-size: 12px; background: var(--active); padding: 1px 5px; border-radius: 5px; }
.pol-coche.on { border-color: var(--text); }
[data-theme="dark"] .btn.danger-plein { color: #1a0a0b; }

/* ---------- Texte riche : éditeur (rt) et rendu Markdown (md) ---------- */
div.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; min-width: 0; }
.rt { position: relative; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); font-weight: 400; color: var(--text); transition: border-color .12s, box-shadow .12s; }
.rt:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.rt.rt-depot { border-color: var(--blue); border-style: dashed; background: color-mix(in srgb, var(--blue) 6%, var(--panel)); }
.rt-barre { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--panel-2); border-radius: 12px 12px 0 0; flex-wrap: wrap; }
.rt-onglets { display: flex; gap: 2px; }
.rt-onglets button { border: 0; background: transparent; color: var(--muted); font: 500 13px var(--font); padding: 5px 11px; border-radius: 7px; cursor: pointer; }
.rt-onglets button:hover { color: var(--text); }
.rt-onglets button.on { background: var(--active); color: var(--text); }
.rt-outils { display: flex; gap: 1px; flex-wrap: wrap; }
.rt-mode-apercu .rt-outils { opacity: .35; pointer-events: none; }
.rt-b { width: 30px; height: 28px; display: inline-grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); cursor: pointer; padding: 0; }
.rt-b:hover { background: var(--hover); color: var(--text); }
.rt-b svg { width: 17px; height: 17px; }
.rt-txt { font: 600 13px/1 var(--font); }
.rt-txt sub { font-size: 9px; }
.rt-zone { display: block; width: 100%; border: 0 !important; box-shadow: none !important; outline: none !important; background: transparent !important; resize: vertical; padding: 12px 14px !important; font: 14px/1.55 var(--font); color: var(--text); min-height: 72px; }
.rt-apercu { padding: 12px 14px; min-height: 72px; }
.rt-pied { display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 14px; border-top: 1px solid var(--line); }
.rt-aide { flex: 1; font-size: 12px; color: var(--muted); }
.rt-envoyer svg { width: 15px; height: 15px; }
.rt-envoyer:disabled { opacity: .45; cursor: default; }
.rt-mentions { position: absolute; left: 12px; top: calc(100% - 44px); z-index: 30; min-width: 260px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 4px; }
.rt-m-t { font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 6px; }
.rt-m { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; color: var(--text); text-align: left; padding: 6px 8px; border-radius: 7px; cursor: pointer; font: 13.5px var(--font); }
.rt-m .avatar { width: 26px; height: 26px; font-size: 11px; }
.rt-m small { display: block; color: var(--muted); font-size: 11.5px; }
.rt-m.on, .rt-m:hover { background: var(--hover); }
.journal-saisie { margin-bottom: 16px; }

.md { font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; font-weight: 400; }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 8px; }
.md .md-h { margin: 12px 0 6px; font-size: 15px; font-weight: 600; }
.md h4.md-h { font-size: 16px; }
.md ul, .md ol { margin: 0 0 8px; padding-left: 22px; }
.md li { margin: 2px 0; }
.md li.md-tache { list-style: none; margin-left: -20px; }
.md blockquote { margin: 0 0 8px; padding: 2px 0 2px 12px; border-left: 3px solid var(--line-2); color: var(--text-2); }
.md code { font-family: var(--mono); font-size: 12.5px; background: var(--active); padding: 1px 5px; border-radius: 5px; }
.md pre.md-code { margin: 0 0 8px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.md pre.md-code code { background: none; padding: 0; font-size: 12.5px; line-height: 1.5; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.md a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.md a.md-piece { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; border: 1px solid var(--line-2); border-radius: 7px; padding: 1px 8px; font-size: 13px; color: var(--text); background: var(--panel-2); }
.md a.md-piece:hover { border-color: var(--focus); }
.md a.md-img { display: inline-block; margin: 4px 0; }
.md img { max-width: min(100%, 560px); max-height: 360px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.md .md-mention { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); border-radius: 5px; padding: 0 4px; font-weight: 500; }
.md-ligne, .md-ligne p { display: inline; margin: 0; }
.journal-item .md { margin-top: 3px; }

/* Affaires : bascule Pipeline / Liste et filtres sur une seule ligne */
.aff-barre { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.aff-barre .seg a.btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.aff-barre .seg svg { width: 15px; height: 15px; }
.aff-filtre { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.aff-filtre select { width: auto; }
.aff-resume { font-size: 13px; white-space: nowrap; }

/* ---------- Listes déroulantes au style de l'outil (liste.js) ---------- */
select.sel-natif { display: none !important; }
button.sel { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-weight: 400; line-height: 1.35; color: var(--text); background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 8px 7px 10px; transition: border-color .12s, box-shadow .12s; }
label.f > button.sel, div.f > button.sel, table.list button.sel, .lignes button.sel { width: 100%; }
button.sel.sel-auto { width: auto; }
button.sel:hover { border-color: var(--focus); }
button.sel:focus-visible, button.sel.sel-ouvert { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
button.sel:disabled { opacity: .55; cursor: default; }
button.sel .sel-lib { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.sel.sel-vide .sel-lib { color: var(--muted); }
button.sel .sel-chev { flex: none; display: inline-grid; color: var(--muted); }
button.sel .sel-chev svg { width: 16px; height: 16px; transition: transform .12s; }
button.sel.sel-ouvert .sel-chev svg { transform: rotate(180deg); }
.sel-menu { position: fixed; z-index: 200; display: flex; flex-direction: column; max-width: min(420px, calc(100vw - 16px)); background: var(--panel); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.22); padding: 4px; font: 14px/1.35 var(--font); overflow: hidden; }
.sel-items { overflow-y: auto; overscroll-behavior: contain; }
.sel-cherche { padding: 2px 2px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.sel-cherche input { width: 100%; padding: 6px 9px; font-size: 13.5px; }
.sel-groupe { font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 5px; }
.sel-item { display: flex; align-items: center; gap: 6px; padding: 7px 10px 7px 6px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.sel-item.actif { background: var(--hover); }
.sel-item.on .sel-t { font-weight: 500; }
.sel-item.desact { opacity: .45; cursor: default; }
.sel-item-vide .sel-t { color: var(--muted); }
.sel-coche { width: 16px; height: 16px; flex: none; display: inline-grid; color: var(--text); }
.sel-coche svg { width: 16px; height: 16px; }
.sel-rien { padding: 10px; color: var(--muted); font-size: 13px; }
.sh button.sel, .row .btn.small ~ button.sel, button.sel:has(+ .btn.small) { font-size: 13px; padding: 4px 6px 4px 9px; border-radius: 8px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* ---------- Connexion (auth.js) ---------- */
body.auth-ouvert .shell, body.auth-ouvert #bandeau { display: none !important; }
#auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px 16px; background: var(--bg); }
.auth-carte { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px 30px 26px; box-shadow: 0 10px 40px rgba(0,0,0,.08); display: grid; gap: 14px; }
.auth-carte.large { width: min(520px, 100%); }
.auth-marque { font-weight: 700; letter-spacing: .32em; font-size: 15px; color: var(--text); margin-bottom: 4px; }
.auth-marque span { letter-spacing: .02em; font-weight: 500; color: var(--muted); margin-left: 8px; }
.auth-carte h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.auth-texte { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.auth-carte form { display: grid; gap: 12px; }
.auth-carte .aide { margin: 0; }
.auth-plein { width: 100%; justify-content: center; padding: 10px 14px; font-size: 14.5px; }
.btn.occupe { opacity: .6; pointer-events: none; }
.auth-mdp { position: relative; display: flex; }
.auth-mdp input { flex: 1; padding-right: 40px; }
.auth-voir { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); width: 32px; height: 30px; border-radius: 7px; cursor: pointer; display: grid; place-items: center; }
.auth-voir:hover { background: var(--hover); color: var(--text); }
.auth-voir svg { width: 17px; height: 17px; }
.auth-otp { font: 600 24px/1 var(--mono) !important; letter-spacing: .4em; text-align: center; padding: 12px 10px !important; }
.auth-code-install { font-family: var(--mono) !important; letter-spacing: .12em; text-transform: uppercase; }
.auth-erreur { color: var(--red); font-size: 13.5px; font-weight: 500; background: color-mix(in srgb, var(--red) 9%, transparent); border-radius: 8px; padding: 8px 10px; }
.auth-info { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--text-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.auth-info svg { width: 16px; height: 16px; flex: none; }
.auth-regles { list-style: none; margin: -4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.auth-regles li { display: inline-flex; align-items: center; gap: 4px; }
.auth-regles li svg { width: 13px; height: 13px; }
.auth-regles li.ok { color: var(--green); }
.auth-liens { display: flex; justify-content: space-between; }
.auth-lien { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.auth-lien:hover { color: var(--text); }
.auth-pied { display: flex; gap: 8px; color: var(--muted); font-size: 12.5px; }
.auth-qr { display: grid; place-items: center; padding: 8px; }
.auth-qr canvas { border-radius: 10px; border: 1px solid var(--line); image-rendering: pixelated; }
.auth-cle summary { cursor: pointer; font-size: 13px; color: var(--text-2); }
.auth-cle code { display: block; margin: 8px 0 4px; font: 600 15px/1.5 var(--mono); letter-spacing: .06em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; word-break: break-all; user-select: all; }
.auth-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.auth-codes code { font: 600 15px/1 var(--mono); letter-spacing: .06em; text-align: center; padding: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; user-select: all; }
.auth-confirme { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.auth-dans-fenetre { display: grid; gap: 14px; }
.auth-dans-fenetre h1 { margin: 0; font-size: 19px; font-weight: 500; }
.compte-entete { display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; border-bottom: 1px solid var(--line); }
.compte-ligne { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.compte-ligne > svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.compte-ligne > div { flex: 1; }
.compte-ligne .muted { font-size: 12.5px; }
.acces-bloc { display: grid; gap: 10px; margin: 16px 0 10px; padding: 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.acces-bloc > div { display: grid; gap: 4px; }
.acces-bloc .muted { font-size: 12px; }
.acces-bloc code { font: 600 16px/1.3 var(--mono); letter-spacing: .04em; user-select: all; word-break: break-all; }
.nav-item[hidden], .btn[hidden] { display: none !important; }
