/* =========================================================================
   GERTHE Report — Design tokens (système HUD, accent OR GERTHE)
   Aligné sur rapport_lpe / wakacut. Différence clé : accent OR (clair) =>
   texte FONCÉ sur les fonds or (--on-accent), et un or foncé (--accent-ink)
   pour le texte/accents sur fonds clairs (lisibilité).
   ========================================================================= */
:root {
  /* Surfaces */
  --bg: #EBEBEB;
  --panel: #FFFFFF;
  --card: #FFFFFF;
  --hover: #F0F0F0;
  --border: #1A1A1A;
  --border-light: #CCCCCC;

  /* Accent — OR GERTHE (à affiner depuis static/images/logo.jpeg) */
  --accent: #C8A24B;          /* or de marque : fills, bordures, accents */
  --accent-strong: #A9821F;   /* hover des fills or */
  --accent-ink: #7A5E12;      /* or FONCÉ pour le TEXTE sur fond clair (lisible) */
  --accent-bg: #FAF3E0;       /* lavis or pâle */
  --on-accent: #1A1A1A;       /* texte sur un fond OR (or = clair => texte foncé) */

  /* Texte */
  --text: #1A1A1A;
  --text-muted: #555555;
  --text-dim: #888888;

  /* Statuts sémantiques (+ alias ok/warn/bad/info) */
  --green: #166534;  --green-bg: #DCFCE7;
  --red: #991B1B;    --red-bg: #FEE2E2;
  --yellow: #92400E; --yellow-bg: #FEF3C7;
  --blue: #1E40AF;   --blue-bg: #DBEAFE;
  --ok: var(--green);   --ok-bg: var(--green-bg);
  --bad: var(--red);    --bad-bg: var(--red-bg);
  --warn: var(--yellow);--warn-bg: var(--yellow-bg);
  --info: var(--blue);  --info-bg: var(--blue-bg);

  /* Typo */
  --mono: 'Space Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Géométrie */
  --radius: 0px;
  --bw: 2px;
  --sw: 220px;          /* largeur sidebar */
  --topbar-h: 52px;
}

/* ── Reset & base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; min-height: 100dvh; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  display: flex;
  font-size: 14px;
  line-height: 1.45;
}
a { color: inherit; }
img { max-width: 100%; }
[x-cloak] { display: none !important; }

/* ── Shell ──────────────────────────────────────────────────────────────── */
.main-wrap {
  margin-left: var(--sw);
  flex: 1;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--bg);
}

/* ── Helpers de mise en page ────────────────────────────────────────────── */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.space-y { display: flex; flex-direction: column; gap: 1.25rem; }
.flex-row { display: flex; align-items: center; gap: 8px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mb-card { margin-bottom: 1.25rem; }
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.mono { font-family: var(--mono); }

@media (max-width: 1023px) {
  .grid-2col, .grid-3col { grid-template-columns: 1fr; }
}
