/* ============================================================
   Mondrian rich pages — Références prestigieuses & Références métiers
   Adapted to the existing Isoar/SQUALP site:
   - Verdana everywhere (no Jost/Hanken/Space Mono)
   - existing --mondrian-* palette (red #FE0908, etc.)
   - black gridlines via the .wall gap+border trick
   Scoped under .mz so it never touches the rest of the site.
   ============================================================ */
.mz {
  --wl: 6px;                 /* black grid line thickness (site-consistent, bold) */
  --maxw: 1180px;
}

/* page wrapper overrides the single-card chapter look → full-flow rich page */
.refs-page {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 0 !important;
  max-width: var(--maxw);
  margin: 0 auto !important;
  padding: 8px 16px 96px !important;
}

/* ---------- typography ---------- */
.mz h1, .mz h2, .mz h3, .mz .display {
  font-family: Verdana, Geneva, sans-serif;
  font-weight: 900; text-transform: uppercase; line-height: 1.02; letter-spacing: 0;
  color: var(--mondrian-black);
}
.mz .display-xl { font-size: clamp(2.2rem, 5.6vw, 4.6rem); }
.mz .display-l  { font-size: clamp(1.6rem, 3.4vw, 2.8rem); }
.mz .kicker {
  font-family: Verdana, Geneva, sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem;
}
.mz .lead { font-family: Verdana, Geneva, sans-serif; font-size: 1.05rem; line-height: 1.5; max-width: 60ch; }
.mz .muted { color: #5b5b54; }
.mz a { color: inherit; text-decoration: none; }

/* ---------- the Mondrian wall primitive ---------- */
.mz .wall {
  display: grid; gap: var(--wl);
  background: var(--mondrian-black);
  border: var(--wl) solid var(--mondrian-black);
}
.mz .cell { background: #fff; position: relative; overflow: hidden; }
.mz .cell.red    { background: var(--mondrian-red);    color: #fff; }
.mz .cell.blue   { background: var(--mondrian-blue);   color: #fff; }
.mz .cell.yellow { background: var(--mondrian-yellow); color: var(--mondrian-black); }
.mz .cell.black  { background: var(--mondrian-black);  color: #fff; }

.mz .pad    { padding: clamp(1.1rem, 2.4vw, 2.2rem); }
.mz .pad-lg { padding: clamp(1.6rem, 4vw, 3.4rem); }
.mz .flexcol { display: flex; flex-direction: column; height: 100%; }
.mz .between { justify-content: space-between; }
.mz .center  { align-items: center; justify-content: center; text-align: center; }
.mz .grow    { flex: 1; }
.mz .label {
  font-family: Verdana, Geneva, sans-serif; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.0;
}
.mz .statnum {
  font-family: Verdana, Geneva, sans-serif; font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1;
}

/* ---------- hover fill (colour sweeps up from the bottom) ---------- */
.mz .fill::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0;
  background: var(--swatch, var(--mondrian-yellow));
  transition: height .42s cubic-bezier(.16,.84,.34,1); z-index: 0;
}
.mz .fill:hover::after { height: 100%; }
.mz .fill > * { position: relative; z-index: 1; }
.mz .fill.on-fill-dark:hover, .mz .fill.on-fill-dark:hover .muted { color: #fff !important; }

/* ---------- scroll reveal ---------- */
.mz .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,.84,.34,1); }
.mz .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mz .reveal { opacity: 1; transform: none; transition: none; }
}

.mz .section { margin-top: var(--wl); }
.mz .section:first-child { margin-top: 0; }
.mz .section-head { margin: 26px 0 14px; }
