/* Hibou — adjoint de bureau CVAC
   Palette de marque : Nuit #0F1B2D · Crépuscule #2C4A72 · Lune #F4EEDF
   Ambre #F5A524 · Braise #E07A2E · Plume #A9B8CC
   Type : Manrope 400 à 700 · Geist Mono 400 à 500 */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/static/fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/static/fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --nuit: #0f1b2d;
  --nuit-2: #16263d;
  --crepuscule: #2c4a72;
  --lune: #f4eedf;
  --ambre: #f5a524;
  --braise: #e07a2e;
  --plume: #a9b8cc;

  --bg: #f7f1e3;
  --card: #fffdf7;
  --card-2: #fbf6e9;
  --border: #e7dcc6;
  --border-soft: #efe6d4;
  --ink: #16233a;
  --ink-2: #3d4b60;
  --muted: #6d7b8f;
  --muted-2: #8b97a8;
  --ok: #2f7d5c;
  --ok-bg: #e4f1e9;
  --warn: #a96410;
  --warn-bg: #fcedd5;
  --danger: #a83a2c;
  --danger-bg: #f9e4df;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 8px 24px -18px rgba(15, 27, 45, .35);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Manrope", var(--font);
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--braise); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logo { width: 42px; height: 42px; flex: none; }
.logo-lg { width: 52px; height: 52px; }
.logo-xl { width: 64px; height: 64px; }

/* ------------------------------------------------------------------ shell */
.shell { display: block; min-height: 100vh; }
.sidebar {
  width: 256px; flex: none; position: fixed; inset: 0 auto 0 0;
  background: var(--nuit);
  color: var(--lune);
  padding: 26px 16px 18px;
  display: flex; flex-direction: column;
  z-index: 20;
}
.brand { display: flex; gap: 11px; align-items: center; padding: 0 10px 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 27px; letter-spacing: -.03em; color: var(--lune); }
.tagline { font-size: 9.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--plume); margin-top: 5px; }
.nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 8px;
  color: #c9d4e2; font-size: 14px; font-weight: 600;
  transition: background .15s, color .15s;
}
.nav-item svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.nav-item:hover { background: rgba(244, 238, 223, .07); color: var(--lune); }
.nav-item.is-active { background: rgba(245, 165, 36, .13); color: var(--ambre); }
.nav-item.is-active svg { opacity: 1; }
.nav-badge {
  margin-left: auto; background: var(--ambre); color: var(--nuit);
  font-size: 11px; font-weight: 700; border-radius: 16px; padding: 1px 7px; min-width: 20px; text-align: center;
}
.nav-sep { height: 1px; background: rgba(244, 238, 223, .1); margin: 12px 8px; }
.sidebar-foot { margin-top: auto; padding-top: 18px; }
.demo-chip {
  display: flex; align-items: center; gap: 7px;
  font-size: 10.5px; color: var(--plume); padding: 7px 10px;
  border: 1px dashed rgba(169, 184, 204, .25); border-radius: 8px; margin-bottom: 12px;
}
.demo-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ambre); }
.user-row { display: flex; align-items: center; gap: 9px; padding: 4px 6px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--crepuscule); color: var(--lune);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.avatar-sm { width: 30px; height: 30px; font-size: 11px; }
.avatar-lg { width: 54px; height: 54px; font-size: 17px; }
.user-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.user-meta strong { font-size: 13px; color: var(--lune); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { font-size: 10.5px; color: var(--plume); text-transform: capitalize; }
.icon-btn { background: none; border: 0; color: var(--plume); font-size: 15px; padding: 5px; border-radius: 6px; margin-left: auto; }
.icon-btn:hover { background: rgba(244, 238, 223, .1); color: var(--lune); }

.main { margin-left: 256px; flex: 1; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 34px 18px;
}
.topdate { font-size: 12.5px; color: var(--muted); margin-top: 4px; text-transform: capitalize; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.page { padding: 0 34px 60px; max-width: 1420px; }

/* ------------------------------------------------------------------ atoms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 8px;
  padding: 9px 14px; font-size: 13.5px; font-weight: 700; line-height: 1.2;
  background: transparent; color: var(--ink);
  transition: transform .08s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 16px; height: 16px; }
.btn-primary { background: var(--ambre); color: #23180a; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset; }
.btn-primary:hover { background: #f0b23f; color: #23180a; }
.btn-ghost { border-color: var(--border); background: transparent; }
.btn-ghost:hover { background: var(--card-2); border-color: #d8cbb1; }
.btn-quiet { color: var(--crepuscule); padding-inline: 6px; }
.btn-quiet:hover { color: var(--braise); background: rgba(44, 74, 114, .05); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #932f23; }
.btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: 6px; }
.btn-lg { padding: 12px 18px; font-size: 15px; width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { font-size: 12.5px; font-weight: 700; color: var(--crepuscule); }
.link:hover { color: var(--braise); }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 9999px; padding: 3px 9px; white-space: nowrap;
}
.pill-quiet { background: #eee5d2; color: #58636f; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.chip {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 700; border-radius: 4px; padding: 2px 7px;
  background: #eee5d2; color: #5d6673;
}
.chip-whatsapp { background: #e2f2e8; color: #2c6a49; }
.chip-texto { background: #e3edf8; color: #2c567f; }
.chip-appel { background: #f6e8d8; color: #8a581e; }
.chip-courriel { background: #ece6f7; color: #5d4687; }
.chip-web { background: #eee5d2; color: #5d6673; }
.chip-systeme { background: #fbeccc; color: #7c5512; }
.stage-evaluation { background: #e6edf7; color: #2f5379; }
.stage-installation { background: #fdeccd; color: #8c5a0c; }
.stage-service { background: #ece5f5; color: #5a4780; }
.stage-entretien { background: #e4f1e8; color: #2f6c4d; }

.status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: #5b6674;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.status-a_approuver { color: var(--warn); }
.status-approuve { color: #2f6c8f; }
.status-envoye { color: #2f6c8f; }
.status-paye, .status-accepte { color: var(--ok); }
.status-nouveau, .status-brouillon { color: #7a8492; }
.status-en_cours { color: var(--braise); }
.status-termine { color: var(--ok); }
.status-refuse { color: var(--danger); }
.status-incomplet { color: var(--warn); }
.status-pret { color: #2f6c8f; }
.status-soumis { color: var(--ok); }
.status-planifie { color: #7a8492; }

.eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--braise); display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--ambre); }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: 20px;
}
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.card-head h2 { font-size: 17px; }
.card-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.cols-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; margin-bottom: 18px; }
.empty { color: var(--muted); font-size: 13px; padding: 18px 6px; text-align: center; }
.empty-card { text-align: center; padding: 48px 24px; background: var(--card); border: 1px dashed var(--border); border-radius: var(--r); }
.empty-card h3 { margin-bottom: 6px; }
.empty-card p { color: var(--muted); font-size: 13px; }
.empty-ico { width: 34px; height: 34px; stroke: var(--braise); fill: none; stroke-width: 1.6; margin: 0 auto 12px; }
.hint-line { font-size: 12px; color: var(--muted); margin-top: 16px; max-width: 780px; }
.info-card { margin-top: 18px; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 14px; }
.info-grid strong { font-family: var(--display); font-size: 13px; }
.info-grid p { font-size: 12px; color: var(--muted); margin-top: 4px; }

.flash {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  margin: 0 34px 16px; padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
}
.flash-ok { background: var(--ok-bg); color: #245f45; border: 1px solid #c7e2d3; }
.flash-err { background: var(--danger-bg); color: #8c2f22; border: 1px solid #f0cdc4; }
.flash button { background: none; border: 0; font-size: 18px; line-height: 1; opacity: .55; }
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  background: var(--nuit); color: var(--lune); border: 1px solid rgba(244, 238, 223, .18);
  padding: 12px 18px; border-radius: 12px; font-size: 13px; max-width: 380px;
  box-shadow: 0 14px 40px rgba(15, 27, 45, .35);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ dashboard */
.hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 8px 2px 22px;
}
.hero h2 { font-size: 34px; font-weight: 700; margin: 8px 0 6px; letter-spacing: -.025em; }
.hero-text > p:last-child { color: var(--muted); font-size: 14px; max-width: 560px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.hero-actions .muted { font-size: 11.5px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
.kpi {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
  position: relative; overflow: hidden;
}
a.kpi:hover { transform: translateY(-2px); border-color: #d9c9a8; color: inherit; }
.kpi-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.kpi-label::before { content: ""; width: 5px; height: 5px; border-radius: 9999px; background: var(--ambre); flex: none; }
.kpi-value { font-family: var(--mono); font-size: 34px; font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.kpi-foot { font-size: 11.5px; color: var(--muted); }

.activity { display: flex; flex-direction: column; }
.activity-row { display: flex; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--border-soft); }
.activity-row:first-child { border-top: 0; }
.activity-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ambre); margin-top: 7px; flex: none; }
.activity-main { min-width: 0; flex: 1; }
.activity-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.activity-top strong { font-size: 12.5px; }
.activity-top time { margin-left: auto; font-size: 11px; }
.activity-main p {
  font-size: 13px; color: var(--ink-2); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mini-list { display: flex; flex-direction: column; }
.mini-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 2px; border-top: 1px solid var(--border-soft); font-size: 13px;
}
.mini-row:first-child { border-top: 0; }
.mini-row strong { display: block; font-size: 13px; }
.mini-row small { color: var(--muted); font-size: 11.5px; }
a.mini-row { border-radius: 6px; padding-inline: 8px; margin-inline: -8px; }
a.mini-row:hover { background: var(--card-2); color: inherit; }

/* ------------------------------------------------------------------ page intro / tabs */
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 8px 2px 18px; }
.page-intro h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.page-intro p { color: var(--muted); font-size: 13.5px; margin-top: 4px; max-width: 620px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab {
  padding: 9px 13px; font-size: 12.5px; font-weight: 700; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.tab span { font-size: 10.5px; background: #ece3cf; color: #68717c; border-radius: 12px; padding: 0 6px; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--nuit); border-bottom-color: var(--ambre); }
.tab.is-active span { background: var(--ambre); color: #23180a; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 6px 2px 14px; }
.crumbs a { font-weight: 700; color: var(--crepuscule); }

/* ------------------------------------------------------------------ tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted-2); font-weight: 700; padding: 12px 14px; background: var(--card-2);
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 12px 14px; border-top: 1px solid var(--border-soft); font-size: 13px; vertical-align: middle; }
.data-table tbody tr:first-child td { border-top: 0; }
.data-table tbody tr:hover { background: #fdf8ec; }
.row-title { font-weight: 700; font-size: 13.5px; }
.row-sub { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.data-table .empty { padding: 40px; }

/* ------------------------------------------------------------------ approval cards */
.appr-card {
  display: flex; gap: 14px; padding: 16px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--card);
}
.appr-card + .appr-card { margin-top: 10px; }
.appr-icon {
  width: 38px; height: 38px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: #fbeccc; color: #8c5a0c;
}
.appr-icon svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.appr-icon.kind-facture { background: #e6edf7; color: #2f5379; }
.appr-icon.kind-soumission { background: #fbeccc; color: #8c5a0c; }
.appr-icon.kind-logisvert { background: #e4f1e8; color: #2f6c4d; }
.appr-icon.kind-rapport { background: #ece5f5; color: #5a4780; }
.appr-body { flex: 1; min-width: 0; }
.appr-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kicker { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--braise); }
.appr-body h3 { font-size: 15.5px; margin: 3px 0 2px; }
.appr-summary { font-size: 12.5px; color: var(--ink-2); }
.warn-inline { display: flex; gap: 8px; align-items: flex-start; background: var(--warn-bg); color: #7d4b0c; border-radius: 6px; padding: 7px 9px; font-size: 11.5px; margin-top: 9px; }
.warn-ico { width: 15px; height: 15px; flex: none; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.appr-actions { display: flex; align-items: center; gap: 6px; margin-top: 11px; flex-wrap: wrap; }

.warn-banner {
  display: flex; align-items: flex-start; gap: 11px; background: var(--warn-bg); color: #7a4a0b;
  border: 1px solid #f0d5ab; border-radius: 12px; padding: 11px 14px; font-size: 12.5px; margin-bottom: 16px;
}
.warn-banner .warn-ico { width: 18px; height: 18px; margin-top: 1px; }
.two-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.note-box { background: #fbf5e6; border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; }
.note-box strong { font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--braise); }
.note-box p { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ------------------------------------------------------------------ job */
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px; margin-bottom: 16px; }
.job-title-line { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.job-head h2 { font-size: 25px; letter-spacing: -.02em; }
.job-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.job-sub a { color: var(--crepuscule); font-weight: 700; }
.job-meta { display: flex; gap: 18px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.job-meta span { display: flex; align-items: center; gap: 6px; }
.job-meta .i { width: 15px; height: 15px; color: var(--muted); }
.job-head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 18px; align-items: start; }
.detail-grid > .stack { min-width: 0; }

.note-form { display: flex; gap: 8px; align-items: flex-start; background: var(--card-2); border: 1px solid var(--border-soft); border-radius: 8px; padding: 8px; margin-bottom: 14px; }
.note-form select { border: 0; background: transparent; font-size: 12px; font-weight: 700; padding: 4px; }
.note-form textarea { flex: 1; border: 0; background: transparent; resize: vertical; min-height: 38px; font-size: 13px; outline: none; }
.note-form .btn { align-self: flex-end; }
.notes { display: flex; flex-direction: column; gap: 12px; }
.note { padding: 11px 0 0; border-top: 1px solid var(--border-soft); }
.note:first-child { border-top: 0; padding-top: 0; }
.note-head { display: flex; align-items: center; gap: 8px; }
.note-who { display: flex; align-items: center; gap: 7px; }
.note-who strong { font-size: 12.5px; }
.note-head time { margin-left: auto; font-size: 10.5px; }
.note-body { font-size: 13px; color: var(--ink-2); margin-top: 6px; padding-left: 38px; white-space: pre-wrap; }
.report-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }

.doc-list { display: flex; flex-direction: column; }
.doc-row { display: flex; align-items: center; gap: 11px; padding: 11px 4px; border-top: 1px solid var(--border-soft); }
.doc-row:first-child { border-top: 0; }
.doc-row:hover { color: inherit; background: var(--card-2); }
.doc-ico { width: 32px; height: 32px; border-radius: 8px; background: #f1e7d3; display: grid; place-items: center; flex: none; }
.doc-ico svg { width: 16px; height: 16px; stroke: var(--crepuscule); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.doc-row > div { flex: 1; min-width: 0; }
.doc-row strong { display: block; font-size: 13px; }
.doc-row small { color: var(--muted); font-size: 11.5px; }

.progress { height: 8px; background: #ece2ce; border-radius: 16px; overflow: hidden; margin: 4px 0 12px; }
.progress > span { display: block; height: 100%; background: var(--ambre); border-radius: 16px; transition: width .4s; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.check { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-top: 1px solid var(--border-soft); }
.check:first-child { border-top: 0; }
.checkbox {
  width: 19px; height: 19px; flex: none; margin-top: 1px; border-radius: 4px;
  border: 1.5px solid #c9bda5; background: #fff; display: grid; place-items: center; padding: 0;
  transition: background .15s, border-color .15s;
}
.checkbox svg { width: 11px; height: 11px; stroke: #23180a; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.check.is-done .checkbox { background: var(--ambre); border-color: var(--ambre); }
.check-text { flex: 1; min-width: 0; }
.check-label { font-size: 12.5px; font-weight: 600; }
.check.is-done .check-label { color: var(--muted); }
.check-text small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.req-tag { font-size: 8.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--braise); background: #fbeccc; padding: 2px 5px; border-radius: 4px; margin-top: 2px; }

.client-mini { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.client-mini strong { display: block; font-size: 13.5px; }
.client-mini small { color: var(--muted); font-size: 11.5px; }
.facts { margin: 0; display: flex; flex-direction: column; }
.facts > div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-top: 1px solid var(--border-soft); font-size: 12px; }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 600; }
.facts-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

/* ------------------------------------------------------------------ forms */
.form { padding: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: var(--muted); text-transform: uppercase; }
.field-wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; background: #fffdf8;
  padding: 9px 11px; font-size: 13.5px; font-weight: 500; color: var(--ink); text-transform: none; letter-spacing: 0;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ambre); box-shadow: 0 0 0 3px rgba(245, 165, 36, .16); }
.form-foot { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.toggle-line { flex-direction: row; align-items: flex-start; gap: 10px; text-transform: none; letter-spacing: 0; }
.toggle-line strong { display: block; font-size: 13px; color: var(--ink); }
.toggle-line small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.switch { width: 34px; height: 20px; border-radius: 16px; background: #d8cdb7; position: relative; flex: none; margin-top: 2px; }
.switch::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; top: 3px; left: 3px; }
.switch.is-on { background: var(--ok); }
.switch.is-on::after { left: 17px; }
.settings-form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.danger-card { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-color: #efcdc4; background: #fffaf7; }
.danger-card h2 { font-size: 15px; color: var(--danger); }
.danger-card p { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ------------------------------------------------------------------ quote / invoice sheets */
.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.toolbar-title h2 { font-size: 24px; margin-top: 4px; }
.toolbar-title p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.toolbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sheet {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 34px 38px; box-shadow: 0 2px 4px rgba(15, 27, 45, .05), 0 24px 50px -34px rgba(15, 27, 45, .4);
  position: relative; overflow: hidden;
}
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--nuit); padding-bottom: 18px; }
.sheet-brand { display: flex; align-items: center; gap: 11px; }
.sheet-brand .wordmark { color: var(--nuit); font-size: 25px; }
.sheet-brand small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.sheet-title { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.sheet-title strong { font-size: 17px; }
.sheet-title small { color: var(--muted); font-size: 11px; }
.sheet-meta { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; padding: 22px 0; }
.sheet-meta p { font-size: 11.5px; color: var(--muted); line-height: 1.65; margin-top: 3px; }
.sheet-meta strong { font-size: 13px; }
.sheet-section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--crepuscule); margin: 4px 0 8px; }
.sheet-table { width: 100%; border-collapse: collapse; }
.sheet-table th {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2);
  text-align: left; padding: 8px 9px; background: #f8f3e8; border-bottom: 1px solid var(--border);
}
.sheet-table th.right { text-align: right; }
.sheet-table td { padding: 11px 9px; border-bottom: 1px solid var(--border-soft); font-size: 12.5px; }
.sheet-table td.right { text-align: right; white-space: nowrap; }
.sheet-table td strong { font-size: 13px; }
.sheet-table small { color: var(--muted); font-size: 10.5px; }
.c-amber { color: var(--braise); }
.sheet-note { background: #fbf6e9; border: 1px solid var(--border-soft); border-radius: 8px; padding: 13px 15px; margin-top: 20px; }
.sheet-note strong { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--braise); }
.sheet-note p { font-size: 11.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.6; }
.sheet-notes { font-size: 12px; color: var(--muted); margin-top: 14px; }
.sheet-foot { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); margin-top: 26px; padding-top: 14px; }
.sheet-foot strong { font-size: 12px; }
.sheet-foot p { font-size: 10.5px; color: var(--muted); line-height: 1.6; margin-top: 3px; }
.sheet-totals { width: 300px; margin: 12px 0 0 auto; }
.sheet-totals > div { display: flex; justify-content: space-between; gap: 20px; padding: 5px 0; font-size: 12px; color: var(--ink-2); }
.sheet-totals .grand { border-top: 2px solid var(--nuit); margin-top: 5px; padding-top: 9px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--nuit); }
.paid-stamp {
  position: absolute; right: 44px; bottom: 132px; transform: rotate(-8deg);
  border: 3px solid var(--ok); color: var(--ok); border-radius: 6px;
  padding: 4px 16px; font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .1em;
  opacity: .8; text-align: center;
}
.paid-stamp small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; font-weight: 500; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border-soft); }
.timeline li:first-child { border-top: 0; }
.tl-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; font-size: 9px; color: var(--muted); flex: none; }
.timeline li.is-done .tl-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline li.is-current .tl-dot { border-color: var(--ambre); background: var(--ambre); }
.timeline strong { font-size: 12.5px; }
.timeline small { display: block; color: var(--muted); font-size: 11px; }
.msg-list { display: flex; flex-direction: column; gap: 9px; }
.msg { background: #fbf6e9; border: 1px solid var(--border-soft); border-radius: 8px; padding: 10px; }
.msg-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 10.5px; }
.msg p { font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }
.msg-card { padding: 16px 18px; }
.msg-card-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.msg-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.msg-to { font-size: 12.5px; color: var(--muted); }
.msg-to strong { color: var(--ink); font-size: 13px; }
.msg-body { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }
.msg-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.msg-card-foot .muted { font-size: 10.5px; }
.ok-text { color: var(--ok); font-size: 12px; font-weight: 600; }
.warn-text { color: var(--warn); font-size: 12px; font-weight: 600; }

/* ------------------------------------------------------------------ grants */
.grant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 18px; }
.grant-card { display: flex; flex-direction: column; gap: 4px; }
.grant-card:hover { color: inherit; border-color: #d9c9a8; }
.grant-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.grant-card h3 { font-size: 16px; }
.grant-card .progress { margin: 10px 0 8px; }
.grant-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.grant-panel { background: #fbf7ec; border: 1px solid var(--border-soft); border-radius: 12px; padding: 16px; }
.grant-head { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.grant-head-text { flex: 1; }
.grant-head-text strong { font-size: 14px; }
.grant-head-text p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ring {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--ambre) calc(var(--p) * 1%), #e9dfca 0);
  display: grid; place-items: center; position: relative;
}
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fffdf7; }
.ring span { position: relative; font-family: var(--mono); font-size: 17px; font-weight: 600; }
.ring small { font-size: 9px; }
.req-list { list-style: none; margin: 4px 0 0; padding: 0; }
.req { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border-soft); }
.req:first-child { border-top: 0; }
.req-dot {
  width: 21px; height: 21px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: #f3e3c4; color: var(--warn); font-size: 11px; font-weight: 700;
}
.req-dot svg { width: 11px; height: 11px; stroke: #fff; fill: none; stroke-width: 3; }
.req.is-ok .req-dot { background: var(--ok); color: #fff; }
.req-text { flex: 1; min-width: 0; }
.req-text strong { display: block; font-size: 12.5px; }
.req-text small { display: block; color: var(--muted); font-size: 10.5px; }
.req-value { font-size: 11px; background: #eee4cf; padding: 1px 6px; border-radius: 4px; display: inline-block; margin-top: 2px; }
.grant-fields { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: end; border-top: 1px solid var(--border); margin-top: 10px; padding-top: 12px; }
.grant-fields label { display: flex; flex-direction: column; gap: 3px; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted); }
.grant-fields input { border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font-size: 11.5px; background: #fff; width: 100%; }
.grant-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.grant-foot .muted { font-size: 10.5px; max-width: 260px; text-align: right; }

/* ------------------------------------------------------------------ customers */
.profile-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.profile-main { display: flex; gap: 14px; align-items: center; }
.profile-main h2 { font-size: 24px; }
.profile-links { display: flex; gap: 14px; margin-top: 5px; font-size: 12px; color: var(--crepuscule); flex-wrap: wrap; }
.profile-side { display: flex; align-items: center; gap: 10px; }
.equip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.equip { border: 1px solid var(--border-soft); border-radius: 8px; padding: 13px; background: #fdf9ef; }
.equip-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.equip-top strong { font-size: 13px; }
.equip p { font-size: 11px; color: var(--muted); margin: 2px 0 4px; }

/* ------------------------------------------------------------------ auth */
.auth-wrap { min-height: 100vh; background: var(--nuit); }
.auth { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.auth-brand {
  background: var(--nuit);
  color: var(--lune); padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.auth-brand::after {
  content: ""; position: absolute; right: -120px; top: -80px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(244, 238, 223, .07); box-shadow: 0 0 0 60px rgba(244, 238, 223, .025), 0 0 0 140px rgba(244, 238, 223, .018);
}
.auth-brand-top { display: flex; align-items: center; gap: 12px; margin-bottom: 52px; position: relative; z-index: 1; }
.wordmark-light { color: var(--lune); font-size: 34px; }
.auth-brand h1 { font-size: clamp(32px, 3.6vw, 50px); font-weight: 700; letter-spacing: -.03em; max-width: 560px; color: var(--lune); position: relative; z-index: 1; }
.auth-lede { color: #c3cfdd; font-size: 15px; max-width: 470px; margin-top: 16px; line-height: 1.65; position: relative; z-index: 1; }
.auth-points { list-style: none; padding: 0; margin: 38px 0 0; display: flex; flex-direction: column; gap: 14px; max-width: 480px; position: relative; z-index: 1; }
.auth-points li { display: flex; gap: 14px; font-size: 13px; color: #d6dfe8; line-height: 1.5; }
.auth-points span { font-family: var(--mono); font-size: 10px; color: var(--ambre); border: 1px solid rgba(245, 165, 36, .4); border-radius: 16px; height: 20px; padding: 0 7px; display: grid; place-items: center; flex: none; }
.auth-sign { margin-top: auto; padding-top: 40px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--plume); position: relative; z-index: 1; }
.auth-panel { display: grid; place-items: center; padding: 40px; background: var(--bg); }
.auth-card { width: 100%; max-width: 390px; }
.auth-card h2 { font-size: 30px; margin: 6px 0 4px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.auth-form .field input { background: #fff; padding: 11px 13px; }
.demo-box { margin-top: 24px; border: 1px dashed var(--border); border-radius: 8px; padding: 12px 14px; background: #fbf5e6; }
.demo-box strong { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--braise); }
.demo-box p { font-size: 11.5px; margin-top: 4px; }
.demo-box .muted { font-size: 10.5px; }

/* ------------------------------------------------------------------ error & print */
.error-page { max-width: 480px; margin: 12vh auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.error-page h2 { font-size: 24px; }
.error-page .logo { margin-bottom: 8px; }
.error-page .form-foot { margin-top: 14px; }
.no-print { }
@media print {
  .sidebar, .topbar, .toolbar, .crumbs, .no-print, .toast, .flash, .warn-banner, .hint-line { display: none !important; }
  .main { margin-left: 0; }
  .page { padding: 0; max-width: none; }
  body { background: #fff; }
  .sheet { border: 0; box-shadow: none; padding: 0; }
  .detail-grid { display: block; }
  .sheet-foot { page-break-inside: avoid; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { width: 74px; padding: 20px 10px; }
  .brand { padding: 0 0 22px; justify-content: center; }
  .brand-text, .tagline, .nav-item span:not(.nav-badge), .demo-chip, .user-meta, .nav-sep { display: none; }
  .nav-item { justify-content: center; padding: 11px 0; }
  .nav-badge { position: absolute; margin: -12px 0 0 16px; }
  .user-row { justify-content: center; }
  .icon-btn { display: none; }
  .main { margin-left: 74px; }
  .topbar, .page { padding-left: 20px; padding-right: 20px; }
  .top-actions .pill { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-actions { align-items: flex-start; }
  .sheet { padding: 22px; }
  .sheet-meta { grid-template-columns: 1fr; gap: 14px; }
  .sheet-totals { width: 100%; }
  .grant-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .kpis, .kpis-3, .equip-grid, .form-grid, .facts-2, .two-notes, .info-grid { grid-template-columns: 1fr; }
  .page-intro, .toolbar, .profile-head, .job-head, .grant-head { flex-direction: column; align-items: flex-start; }
  .job-head-actions { justify-content: flex-start; }
  .data-table th:nth-child(3), .data-table td:nth-child(3) { display: none; }
  .sheet-meta { padding: 14px 0; }
  .auth-brand { padding: 28px; }
  .grant-head .pill { align-self: flex-start; }

  .page-intro .intro-cta { display: none; }
  .topbar { flex-wrap: wrap; gap: 12px; padding-top: 20px; }
  .topbar h1 { font-size: 20px; }
  .topdate { font-size: 11.5px; }
  .top-actions { width: 100%; justify-content: flex-start; }
  .top-actions .btn { flex: none; }
  .card-flush { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 520px; }
  .data-table th, .data-table td { padding: 10px 11px; }
  .form, .card { padding: 16px; }
  .note-form { flex-wrap: wrap; }
  .note-form textarea { flex-basis: 100%; }
  .note-body { padding-left: 0; }
  .activity-top time { margin-left: 0; width: 100%; }
  .sheet { padding: 18px; }
  .sheet-head { flex-direction: column; gap: 12px; }
  .sheet-title { text-align: left; }
  .sheet-table { display: block; overflow-x: auto; }
  .paid-stamp { right: 18px; bottom: 150px; font-size: 22px; }
  .grant-fields { grid-template-columns: 1fr; }
  .grant-fields .btn { width: 100%; }
  .grant-foot { flex-direction: column; align-items: flex-start; }
  .grant-foot .muted { text-align: left; }
  .flash { margin-left: 20px; margin-right: 20px; }
  .toolbar-actions { justify-content: flex-start; }
}

@media (max-width: 460px) {
  .sidebar { width: 62px; padding: 16px 6px; }
  .main { margin-left: 62px; }
  .topbar, .page { padding-left: 14px; padding-right: 14px; }
  .hero h2 { font-size: 27px; }
  .page-intro h2 { font-size: 23px; }
  .kpi-value { font-size: 28px; }
  .logo { width: 36px; height: 36px; }
  .wordmark { font-size: 22px; }
}

.auth-back { margin: 16px 0 0; text-align: center; font-size: .85rem; }

/* --- Fichiers, signature et modèles (import FacDac / ThermoRabais) --- */
.file-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.file-form input[type="file"] { flex: 1 1 220px; min-width: 0; font-size: .85rem; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.file-tile { display: block; border: 1px solid var(--line, #e3e6ea); border-radius: 10px; overflow: hidden; color: inherit; text-decoration: none; background: #fff; }
.file-tile img { display: block; width: 100%; height: 110px; object-fit: cover; }
.file-doc { display: flex; align-items: center; justify-content: center; height: 110px; font-weight: 600; color: #8b95a5; background: #f5f6f8; }
.file-meta { display: block; padding: 8px 10px; }
.file-meta strong { display: block; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta small { color: #7a8494; font-size: .74rem; }
.signature-block { border-top: 1px solid var(--line, #e3e6ea); padding-top: 14px; }
.signature-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
#sig-canvas { width: 100%; height: 160px; border: 1px dashed #b9c1cc; border-radius: 10px; background: #fff; touch-action: none; cursor: crosshair; }
.signature-img { display: block; width: 100%; max-width: 420px; border: 1px solid var(--line, #e3e6ea); border-radius: 10px; background: #fff; margin-bottom: 10px; }
.sig-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.model-search { display: flex; gap: 8px; margin: 12px 0; }
.model-search input { flex: 1; min-width: 0; }
.model-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.model-list li { border: 1px solid var(--line, #e3e6ea); border-radius: 8px; }
.model-list form { display: flex; align-items: center; gap: 12px; padding: 8px 10px; }
.model-info { flex: 1; min-width: 0; }
.model-info strong { display: block; font-size: .86rem; }
.model-info small { color: #7a8494; font-size: .76rem; }
.model-rebate { white-space: nowrap; font-size: .84rem; }
.status-simule { background: #fff3d6; color: #7a5300; }

/* --- Dictée et dimensionnement --- */
.dictation { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.dictation-status { font-size: .8rem; color: #7a8494; }
.dictation-status.is-rec { color: #b4341f; }
.dictation-status.is-err { color: #b4341f; }
.dictation-status.is-ok { color: #1d6b43; }
.btn.is-recording { border-color: #c94b38; color: #b4341f; }
.btn.is-recording::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c94b38; margin-right: 6px; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.dimension { border: 1px solid var(--line, #e3e6ea); border-radius: 10px; padding: 10px 12px; margin: 10px 0 14px; background: #fbfaf7; }
.dimension summary { cursor: pointer; font-weight: 600; font-size: .88rem; }
.dimension-form { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.dimension-form label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: #5c6675; }
.dimension-form input, .dimension-form select { min-width: 150px; }
.dimension-result { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 8px 10px; background: #fff; border-radius: 8px; border: 1px solid var(--line, #e3e6ea); }
.dimension-result strong { font-size: 1.1rem; color: #b4341f; }
.dimension-result span { font-size: .85rem; }
.chip-dictee { background: #efe7f8; color: #5b3d86; }
