/* Zonemation Lab — shared tokens. Every section uses ONLY these variables. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&family=JetBrains+Mono:wght@300;400;500&family=Noto+Kufi+Arabic:wght@300..600&display=swap');

:root {
  --bg: #0f100a;            /* page */
  --surface: #181a0e;       /* brand dark */
  --raised: #1e2112;
  --overlay: #252819;
  --line: rgba(167, 210, 109, 0.10);
  --line-strong: rgba(167, 210, 109, 0.22);
  --grid: rgba(255, 255, 255, 0.035);
  --lime: #a7d26d;          /* the ONE accent: reserved for the value being read */
  --lime-dim: rgba(167, 210, 109, 0.55);
  --lime-glow: rgba(167, 210, 109, 0.18);
  --text: rgba(255, 255, 255, 0.92);
  --text-2: rgba(255, 255, 255, 0.62);
  --text-3: rgba(255, 255, 255, 0.38);
  --grey-1: #3a3d2c;        /* neutral series / wireframes */
  --grey-2: #55594a;
  --grey-3: #7d8170;
  --warn: #e0b354;          /* anomalies only */
  --font-ar: 'Noto Kufi Arabic';
  --font: 'Poppins', var(--font-ar), system-ui, sans-serif;
  --mono: 'JetBrains Mono', var(--font-ar), ui-monospace, monospace;
  --r: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 300; -webkit-font-smoothing: antialiased; }
body { font-size: 15px; line-height: 1.55; }
@media (max-width: 560px) { body { font-size: 16px; } }
:lang(ar) { letter-spacing: 0; font-synthesis: none; }

/* Layout helpers available to every section */
.zl-section { max-width: 1240px; margin: 0 auto; padding: 120px 24px 40px; }
.zl-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--lime); }
.zl-h2 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.04; margin: 14px 0 18px; }
.zl-lead { color: var(--text-2); max-width: 680px; font-size: 17px; }
.zl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; overflow: hidden; }
.zl-card-title { font-size: 13px; color: var(--text-2); font-weight: 400; margin: 0 0 14px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.zl-card-title > .zl-tag { flex-shrink: 0; }
.zl-num { font-family: var(--mono); font-weight: 300; letter-spacing: -0.02em; }
.zl-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--text-2); white-space: nowrap; }
.zl-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.zl-tag.real { color: var(--lime); }          /* « Données réelles » */
.zl-tag.anon { color: #c9d9a8; }              /* « Réel, anonymisé » */
.zl-tag.demo { color: var(--grey-3); }        /* « Démonstration » */
.zl-tag.proposed { color: var(--warn); }      /* « Principe d'écran — proposé » */
.zl-grid-bg { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.zl-btn { font: inherit; font-size: 13px; color: var(--bg); background: var(--lime); border: 0; border-radius: 99px; padding: 10px 18px; cursor: pointer; font-weight: 500; }
.zl-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
input[type=range] { accent-color: var(--lime); width: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
@media (max-width: 720px) { .zl-section { padding: 80px 16px 24px; } .zl-tag { white-space: normal; max-width: 100%; border-radius: 12px; } }
