/* BOW Chantiers : base (identité BOW : fond crème, encre noire, Instrument Sans + Lora italique) */
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-latin-wght-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --bg: #eeedea;
  --bg-2: #e6e3de;
  --paper: #f7f6f3;
  --card: #fbfaf8;
  --ink: #111;
  --ink-2: #413936;
  --muted: #625b56;
  --line: #dcd8d5;
  --line-2: #c9c4bf;
  --alert: #b3392b;
  --alert-bg: #f7e4e0;
  --warn: #8a5a0b;
  --warn-bg: #f6ecd6;
  --ok: #2f6b4f;
  --ok-bg: #e0eee6;
  --info-bg: #e7e9ee;
  --r: 16px;
  --r-s: 10px;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gut: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.012em; font-weight: 600; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.xs { font-size: .76rem; }
.bold { font-weight: 600; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.stack > * + * { margin-top: 14px; }
.stack-s > * + * { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.section { margin-top: 26px; }
.section > .sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
.section h2 { font-size: 1.1rem; }

.empty { text-align: center; padding: 34px 18px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty b { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; }
.loading { padding: 40px 0; text-align: center; color: var(--muted); }
.spinner { width: 24px; height: 24px; border: 3px solid var(--line-2); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
