/* Ultrapak — Espace client. Sobre, lisible, rapide. Aucune police ni bibliothèque externe. */
:root {
  --ink: #1b2631;
  --ink-2: #3c4a57;
  --muted: #64717d;
  --line: #dde2e7;
  --line-2: #eef1f4;
  --bg: #f4f5f3;
  --surface: #ffffff;
  --brand: #1e4a6d;
  --brand-2: #163a57;
  --brand-soft: #e7eef5;
  --kraft: #a8743c;
  --kraft-soft: #f6eee4;
  --info: #24609f; --info-bg: #e7f0fa;
  --warn: #8a5300; --warn-bg: #fdf2dc;
  --ok: #1f6b3a; --ok-bg: #e4f3e8;
  --danger: #a8251b; --danger-bg: #fbe9e7;
  --neutral: #5b6773; --neutral-bg: #edf0f2;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid #7aa7d6; outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Structure */
.container { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.env-banner { background: #7a2e0e; color: #fff; text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .08em; padding: 4px 8px; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); font-weight: 800; letter-spacing: .06em; font-size: 1.08rem; white-space: nowrap; }
.brand img { height: 48px; max-height: 48px; width: auto; display: block; }
.brand-mark { width: 26px; height: 26px; border-radius: 6px; background: var(--brand); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; left: 6px; right: 6px; top: 11px; height: 4px; background: var(--kraft); border-radius: 2px; }
.brand small { font-weight: 600; letter-spacing: 0; color: var(--muted); font-size: .8rem; }
.mainnav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.mainnav a { text-decoration: none; color: var(--ink-2); padding: 8px 11px; border-radius: 8px; font-weight: 550; font-size: .94rem; }
.mainnav a:hover { background: var(--line-2); color: var(--ink); }
.mainnav a.active { background: var(--brand-soft); color: var(--brand-2); }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle { display: none; }
.bell { position: relative; text-decoration: none; color: var(--ink-2); padding: 6px 9px; border-radius: 8px; font-size: .9rem; }
.bell:hover { background: var(--line-2); }
.bell .count { background: var(--danger); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 6px; margin-left: 4px; font-weight: 700; }
.lang-form { display: flex; gap: 2px; }
.lang-form button { border: 0; background: none; padding: 5px 6px; border-radius: 6px; font: inherit; font-size: .8rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.lang-form button[aria-current="true"] { color: var(--brand); background: var(--brand-soft); }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-2); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary:hover { background: var(--line-2); }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(20, 35, 50, .12); min-width: 220px; padding: 6px; z-index: 30; }
.dropdown-menu a, .dropdown-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--line-2); }
.dropdown-menu .sep { height: 1px; background: var(--line); margin: 6px 0; }
.main { padding-block: 26px 60px; }
.footer { border-top: 1px solid var(--line); padding-block: 22px; color: var(--muted); font-size: .85rem; background: var(--surface); }
.footer .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 900px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px; padding-block: 8px; }
  .nav-toggle { display: inline-flex; margin-left: auto; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 12px; font: inherit; font-weight: 600; cursor: pointer; }
  .mainnav { display: none; order: 5; flex-basis: 100%; flex-direction: column; padding-bottom: 8px; }
  .mainnav.open { display: flex; }
  .tools { order: 4; flex-basis: 100%; justify-content: flex-end; margin-left: 0; flex-wrap: wrap; }
  .dropdown-menu { right: 0; left: auto; }
}

/* ---------- En-têtes de page */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin: 4px 0 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--muted); }

/* ---------- Cartes & grilles */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card + .card, .stack > * + * { margin-top: 18px; }
.card h2 { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.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)); }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .layout-side { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.stat { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat:hover { border-color: #b9c6d3; }
.stat .n { font-size: 1.7rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: .88rem; }
.stat.alert { border-color: #e9c27a; background: var(--warn-bg); }

/* ---------- À faire */
.todo { border: 1px solid #ecc983; background: var(--warn-bg); border-radius: var(--radius); padding: 16px 18px; }
.todo h2 { color: var(--warn); }
.todo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid #f0d9a8; border-radius: 8px; padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 600; }
.todo li a:hover { border-color: var(--kraft); }
.todo li a::after { content: "→"; color: var(--kraft); font-weight: 800; }
.allclear { border: 1px solid #bfe0c9; background: var(--ok-bg); color: var(--ok); border-radius: var(--radius); padding: 12px 16px; font-weight: 600; }

/* ---------- Tableaux */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: 10px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tbody tr:hover { background: #fafbfc; }
.table td.actions { white-space: nowrap; text-align: right; }
.table .total td { font-weight: 700; border-top: 2px solid var(--line); }
.row-link { font-weight: 650; text-decoration: none; }

/* ---------- Listes clé / valeur */
.kv { display: grid; grid-template-columns: minmax(130px, 34%) minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv { grid-template-columns: minmax(0, 1fr); } .kv dd { margin-bottom: 6px; } }

/* ---------- Badges & alertes */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-warning { background: var(--warn-bg); color: var(--warn); }
.badge-success { background: var(--ok-bg); color: var(--ok); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral); }
.badge-kraft { background: var(--kraft-soft); color: #7a4f1f; }
.alert { border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; border: 1px solid transparent; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: #bfe0c9; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: #f1c2bd; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #c4d8ef; }
.alert-warning { background: var(--warn-bg); color: var(--warn); border-color: #ecc983; }
.notice { border-left: 4px solid var(--kraft); background: var(--kraft-soft); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 12px 0; font-size: .93rem; }

/* ---------- Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; font-size: .93rem; text-decoration: none; cursor: pointer; line-height: 1.25; text-align: center; }
.btn:hover { border-color: #b6c2cd; color: var(--ink); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-kraft { background: var(--kraft); border-color: var(--kraft); color: #fff; }
.btn-kraft:hover { background: #8f612f; border-color: #8f612f; color: #fff; }
.btn-success { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-success:hover { background: #17552d; color: #fff; }
.btn-danger { background: var(--surface); border-color: #e6b3ad; color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn-ghost { border-color: transparent; background: none; color: var(--brand); padding-left: 8px; padding-right: 8px; }
.btn-sm { padding: 5px 10px; font-size: .84rem; }
.btn-lg { padding: 13px 22px; font-size: 1.02rem; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline { display: inline; }
form.inline { display: inline-flex; }

/* ---------- Formulaires */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 700px) { .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.field { margin-bottom: 14px; min-width: 0; }
.field > label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 5px; }
.req { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #c9d1d9; border-radius: 8px; font: inherit; font-size: .95rem; background: #fff; color: var(--ink);
}
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 2px solid #c9dbee; outline-offset: 0; }
input[type=file] { font: inherit; font-size: .9rem; max-width: 100%; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; margin: 4px 0 0; }
.help { color: var(--muted); font-size: .84rem; margin: 4px 0 0; }
.field-check { margin-bottom: 10px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.choice-list { display: grid; gap: 8px; margin-bottom: 14px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; cursor: pointer; background: #fff; }
.choice:hover { border-color: #b6c2cd; }
.choice input { margin-top: 3px; flex: none; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
fieldset { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.form-section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section h2 { font-size: 1.05rem; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 800; margin-right: 6px; vertical-align: 1px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.confirm-box { border: 2px solid var(--brand); border-radius: var(--radius); padding: 16px; background: var(--brand-soft); margin: 16px 0; }
.confirm-box .check { font-weight: 650; }

/* ---------- Progression des étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; counter-reset: st; }
.steps li { position: relative; padding: 12px 10px 10px; border-radius: 8px; background: var(--line-2); border-top: 4px solid #cfd6dd; font-size: .84rem; min-width: 0; }
.steps .st-label { display: block; font-weight: 700; color: var(--ink); line-height: 1.25; }
.steps .st-label::before { counter-increment: st; content: counter(st) ". "; color: var(--muted); }
.steps .st-state { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; }
.steps .st-date { display: block; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.steps .done { background: var(--ok-bg); border-top-color: var(--ok); }
.steps .done .st-state { color: var(--ok); font-weight: 650; }
.steps .action { background: var(--warn-bg); border-top-color: #e0a33a; }
.steps .action .st-state { color: var(--warn); font-weight: 700; }
.steps .waiting { background: var(--info-bg); border-top-color: var(--info); }
.steps .waiting .st-state { color: var(--info); }
.steps .na { background: var(--neutral-bg); border-top-color: #b8c1c9; }
@media (max-width: 1000px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 12px; border-top: 0; border-left: 4px solid #cfd6dd; } .steps .done { border-left-color: var(--ok); } .steps .action { border-left-color: #e0a33a; } .steps .waiting { border-left-color: var(--info); } .steps .st-state { margin: 0; text-align: right; } .steps .st-date { grid-column: 1 / -1; } }

/* ---------- Produits & composants */
.product-list { display: grid; gap: 12px; }
.product-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: inherit; }
.product-row:hover { border-color: #b6c2cd; }
.product-row .thumb { width: 88px; height: 72px; border-radius: 8px; background: var(--kraft-soft); object-fit: cover; display: flex; align-items: center; justify-content: center; color: #9c7a52; font-size: .72rem; font-weight: 700; text-align: center; overflow: hidden; }
.product-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-row h3 { margin: 0 0 2px; font-size: 1rem; }
.refs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--muted); }
.refs b { color: var(--ink-2); font-weight: 650; }
@media (max-width: 640px) { .product-row { grid-template-columns: 64px minmax(0, 1fr); } .product-row .thumb { width: 64px; height: 56px; } .product-row .meta-end { grid-column: 1 / -1; } }
.components { display: grid; gap: 14px; }
.component { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
.component .pos { width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.component h3 { margin: 0 0 2px; }
.component .qty { color: var(--kraft); font-weight: 800; }
.component .ctype { font-size: .8rem; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin: 10px 0; }
.spec-grid div { min-width: 0; }
.spec-grid span { display: block; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.spec-grid strong { font-weight: 650; overflow-wrap: anywhere; }
.custom-table td:first-child { width: 34%; }
.yes { color: var(--ok); font-weight: 750; }
.no { color: var(--muted); }

/* ---------- Fichiers */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 10px 0; }
.gallery a { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; text-decoration: none; color: var(--ink-2); }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line-2); }
.gallery span { display: block; padding: 6px 8px; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.doc-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px; background: #fcfcfd; }
.doc-list .doc-main { display: flex; gap: 10px; align-items: center; min-width: 0; flex: 1; }
.doc-list .ext { font-family: var(--mono); font-size: .72rem; font-weight: 700; text-transform: uppercase; background: var(--brand-soft); color: var(--brand); border-radius: 5px; padding: 3px 6px; flex: none; }
.doc-list .doc-title { font-weight: 600; overflow-wrap: anywhere; }
.doc-list .doc-meta { font-size: .8rem; color: var(--muted); }
details.history { margin-top: 4px; font-size: .86rem; }
details.history summary { cursor: pointer; color: var(--muted); }
.viewer { width: 100%; height: 72vh; min-height: 420px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.viewer-img { display: block; max-height: 75vh; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; }

/* ---------- Fil de messages & historique */
.thread { display: grid; gap: 10px; margin-bottom: 14px; }
.msg { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: #fff; max-width: 92%; }
.msg.staff { background: var(--brand-soft); border-color: #c9d9e9; }
.msg.mine { margin-left: auto; }
.msg.internal { background: #fff8e8; border-style: dashed; }
.msg .who { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 12px 16px; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.timeline .when { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.proof-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; }
.proof-box + .proof-box { margin-top: 12px; }
.proof-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.checklist { margin: 8px 0 12px; padding-left: 20px; columns: 2; font-size: .9rem; }
@media (max-width: 640px) { .checklist { columns: 1; } }
.launch-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.launch-list li { display: flex; gap: 10px; align-items: flex-start; }
.launch-list .ok::before { content: "✔"; color: var(--ok); font-weight: 900; }
.launch-list .ko::before { content: "✖"; color: var(--danger); font-weight: 900; }

/* ---------- Pages publiques */
.auth-wrap { max-width: 440px; margin: 40px auto; }
.auth-wrap .card { padding: 28px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: center; padding-block: 24px 10px; }
.hero h1 { font-size: 2.1rem; }
.hero .lead { font-size: 1.1rem; color: var(--ink-2); }
.hero-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: fl; }
.flow li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; }
.flow li::before { counter-increment: fl; content: counter(fl); width: 28px; height: 28px; border-radius: 50%; background: var(--kraft-soft); color: #7a4f1f; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
@media (max-width: 800px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero h1 { font-size: 1.7rem; } }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Divers */
.empty { text-align: center; color: var(--muted); padding: 28px 12px; border: 1px dashed var(--line); border-radius: var(--radius); background: #fbfcfc; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 14px; }
.filters .field { margin: 0; }
.filters input[type=search] { min-width: 240px; }
@media (max-width: 600px) { .filters input[type=search] { min-width: 0; } .filters > * { flex: 1 1 100%; } }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.code-block { font-family: var(--mono); font-size: .82rem; background: #f6f8fa; border: 1px solid var(--line); border-radius: 8px; padding: 10px; overflow-x: auto; white-space: pre-wrap; }
.attention { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e0a33a; margin-right: 6px; vertical-align: 1px; }
.price-line td input { min-width: 70px; }
.quote-lines textarea { min-height: 54px; }
.total-box { margin-left: auto; max-width: 340px; }
.total-box .kv { grid-template-columns: minmax(0, 1fr) auto; }
.total-box .kv dd { text-align: right; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .topbar, .footer, .btn, form { display: none !important; } body { background: #fff; } .card { border: 0; } }

/* Sélection de plusieurs articles pour une demande de devis */
.product-pick { display: flex; align-items: stretch; gap: 8px; }
.product-pick .product-row { flex: 1; }
.product-pick .pick { display: flex; align-items: center; padding: 0 6px; cursor: pointer; }
.product-pick .pick input { width: 22px; height: 22px; }
.pick-bar { position: sticky; bottom: 0; padding: 12px 0; background: var(--bg, #fff); text-align: right; }
.multi-item { display: flex; gap: 12px; align-items: center; }
.multi-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }

