/* ============================================================================
   ZLEF — Direction Artistique · canonical design tokens & components
   Source of truth: https://da.zlef.fr
   ----------------------------------------------------------------------------
   Import this file directly in any zlef.fr project:
       <link rel="stylesheet" href="https://da.zlef.fr/tokens.css">
   …then use the CSS variables (--zl-*) and component classes (.zl-btn, …).
   Editing THIS file changes the design language everywhere. Treat with care.

   The two accents are exposed twice: as raw palette ramps (--zl-olive*,
   --zl-grape*) and as palette-agnostic roles (--zl-accent* = primary,
   --zl-accent2* = secondary). Components only ever reference the roles, so a
   future palette shift is a values-only edit.
   ========================================================================== */

:root {
  /* ── Core surfaces (dark only — ZLEF has no light theme) ──────────────── */
  --zl-bg:            #06060a;   /* page background — the one true black-ish */
  --zl-surface-1:     #0e0e13;   /* raised panels / cards                    */
  --zl-surface-2:     #15151c;   /* inputs, nested panels                    */
  --zl-surface-3:     #1d1d25;   /* hover / active raised state              */

  /* ── Hairlines & borders ──────────────────────────────────────────────── */
  --zl-line:          rgba(255,255,255,.07);  /* default hairline            */
  --zl-line-strong:   rgba(255,255,255,.13);  /* emphasised border           */
  --zl-line-focus:    rgba(157,174,80,.55);   /* focus ring (olive)          */

  /* ── Text ─────────────────────────────────────────────────────────────── */
  --zl-text:          #e9eae2;   /* primary copy (faint warm-neutral)        */
  --zl-text-soft:     #b6b7ad;   /* secondary copy                           */
  --zl-text-muted:    #7d7e76;   /* captions, labels, placeholders           */
  --zl-text-faint:    #54554f;   /* disabled / decorative                    */

  /* ── PALETTE · Olive Leaf (primary accent) — base #3E4618 ─────────────── */
  --zl-olive-deep:    #2c3212;
  --zl-olive:         #3e4618;   /* the canonical olive leaf                 */
  --zl-olive-mid:     #59642a;
  --zl-olive-soft:    #9dae50;   /* lighter — readable as text/link on dark  */
  --zl-olive-bright:  #bdce74;

  /* ── PALETTE · Vintage Grape (secondary accent) — base #4C3B4D ────────── */
  --zl-grape-deep:    #382b39;
  --zl-grape:         #4c3b4d;   /* the canonical vintage grape              */
  --zl-grape-mid:     #6b5470;
  --zl-grape-soft:    #b095b3;   /* lighter — readable as text/link on dark  */
  --zl-grape-bright:  #cdb6cf;

  /* ── ROLES (components use these — never the raw ramp directly) ───────── */
  --zl-accent:        var(--zl-olive);
  --zl-accent-mid:    var(--zl-olive-mid);
  --zl-accent-soft:   var(--zl-olive-soft);
  --zl-accent-deep:   var(--zl-olive-deep);
  --zl-accent-glow:   rgba(157,174,80,.22);
  --zl-accent-wash:   rgba(157,174,80,.12);
  --zl-on-accent:     #eef0e2;   /* text on a filled primary surface         */

  --zl-accent2:       var(--zl-grape);
  --zl-accent2-mid:   var(--zl-grape-mid);
  --zl-accent2-soft:  var(--zl-grape-soft);
  --zl-accent2-deep:  var(--zl-grape-deep);
  --zl-accent2-glow:  rgba(176,149,179,.22);
  --zl-accent2-wash:  rgba(176,149,179,.12);
  --zl-on-accent2:    #f1eaf1;   /* text on a filled secondary surface       */

  /* atmospheric only — NEVER as a UI accent, only in haze/gradients */
  --zl-haze-violet:   rgba(76,59,77,.10);

  /* ── Semantic (muted to fit the vintage mood — no new bright hues) ────── */
  --zl-success:       #6f9a3a;   /* leafy green, sibling of olive            */
  --zl-success-wash:  rgba(111,154,58,.13);
  --zl-warning:       #c79a3e;   /* muted amber                              */
  --zl-warning-wash:  rgba(199,154,62,.13);
  --zl-danger:        #c2566a;   /* dusty rose-red — errors / destructive    */
  --zl-danger-mid:    #cc7181;   /* hover shade of a solid destructive fill  */
  --zl-danger-deep:   #9d394b;   /* pressed shade of a solid destructive fill*/
  --zl-danger-wash:   rgba(194,86,106,.13);
  --zl-on-danger:     #10090c;   /* ink on a solid danger fill (≥4.5:1)      */
  --zl-info:          var(--zl-grape-soft);  /* info uses grape, never blue  */

  /* ── Typography ───────────────────────────────────────────────────────── */
  /* No web-font dependency. System stack only. Monospace for code & data.   */
  --zl-font:      system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --zl-font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Type scale — "never too small, never too big". Body sits at 17px.       */
  --zl-text-xs:   13px;
  --zl-text-sm:   14.5px;
  --zl-text-base: 17px;   /* DEFAULT body — do not go below 16px anywhere    */
  --zl-text-lg:   19px;
  --zl-text-xl:   22px;
  --zl-text-2xl:  28px;
  --zl-text-3xl:  clamp(30px, 4vw, 38px);
  --zl-text-4xl:  clamp(40px, 6vw, 56px);

  --zl-leading:        1.6;    /* body line-height                          */
  --zl-leading-tight:  1.15;   /* headings                                  */
  --zl-tracking-tight: -0.02em;
  --zl-tracking-wide:  0.14em; /* eyebrows / small caps labels              */
  --zl-weight-normal:  400;
  --zl-weight-medium:  550;
  --zl-weight-bold:    700;

  /* ── Spacing scale (4px base) ─────────────────────────────────────────── */
  --zl-space-1: 4px;
  --zl-space-2: 8px;
  --zl-space-3: 12px;
  --zl-space-4: 16px;
  --zl-space-5: 24px;
  --zl-space-6: 32px;
  --zl-space-7: 48px;
  --zl-space-8: 64px;

  /* ── Radii — LIGHT rounding. Crisp, not pill-shaped. ──────────────────── */
  --zl-radius-sm:   3px;    /* badges, chips, code                          */
  --zl-radius-md:   5px;    /* default for buttons, inputs                  */
  --zl-radius-lg:   8px;    /* cards, panels                                */
  --zl-radius-xl:   12px;
  --zl-radius-pill: 999px;  /* reserve for genuinely circular elements only */

  /* ── Elevation — soft, dark-appropriate, restrained. ─────────────────── */
  --zl-shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --zl-shadow-md: 0 6px 22px rgba(0,0,0,.45);
  --zl-shadow-lg: 0 18px 50px rgba(0,0,0,.55);

  /* ── Motion — subtle, never bouncy ────────────────────────────────────── */
  --zl-ease:        cubic-bezier(.22,.61,.36,1);
  --zl-dur-fast:    110ms;
  --zl-dur:         170ms;
  --zl-dur-slow:    360ms;

  --zl-focus-ring: 0 0 0 3px rgba(157,174,80,.32);

  /* ── Layers ───────────────────────────────────────────────────────────── */
  --zl-z-raised:  10;    /* dropdowns, popovers                              */
  --zl-z-nav:     100;   /* sticky header                                    */
  --zl-z-overlay: 1000;  /* modals, drawers                                  */
  --zl-z-tip:     1100;  /* tooltips — above everything                      */
}

/* ============================================================================
   BASE
   ========================================================================== */
.zl-scope, .zl-body {
  background: var(--zl-bg);
  color: var(--zl-text);
  font-family: var(--zl-font);
  font-size: var(--zl-text-base);
  line-height: var(--zl-leading);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.zl-h1 { font-size: var(--zl-text-4xl); font-weight: var(--zl-weight-bold); line-height: var(--zl-leading-tight); letter-spacing: var(--zl-tracking-tight); }
.zl-h2 { font-size: var(--zl-text-2xl); font-weight: var(--zl-weight-bold); line-height: var(--zl-leading-tight); letter-spacing: var(--zl-tracking-tight); }
.zl-h3 { font-size: var(--zl-text-xl);  font-weight: var(--zl-weight-medium); line-height: 1.25; }
.zl-eyebrow {
  font-size: var(--zl-text-xs); font-weight: var(--zl-weight-bold);
  letter-spacing: var(--zl-tracking-wide); text-transform: uppercase;
  color: var(--zl-accent-soft);
}
.zl-muted { color: var(--zl-text-muted); }
.zl-soft  { color: var(--zl-text-soft); }
.zl-code  { font-family: var(--zl-font-mono); font-size: .92em; color: var(--zl-accent-soft);
            background: var(--zl-accent-wash); padding: .12em .4em; border-radius: var(--zl-radius-sm); }

/* ============================================================================
   BUTTONS — .zl-btn  +  variant modifiers
   Flat, crisp, lightly rounded. Hover shifts one shade — no glow, no gradient.
   ========================================================================== */
.zl-btn {
  --_bg: var(--zl-surface-2);
  --_fg: var(--zl-text);
  --_bd: var(--zl-line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--zl-space-2);
  font-family: inherit; font-size: var(--zl-text-sm); font-weight: var(--zl-weight-medium);
  line-height: 1;
  padding: 11px 18px; min-height: 44px;
  border: 1px solid var(--_bd); border-radius: var(--zl-radius-md);
  background: var(--_bg); color: var(--_fg);
  cursor: pointer; user-select: none; white-space: nowrap;
  text-decoration: none;   /* buttons are often <a> — never underlined */
  transition: background var(--zl-dur) var(--zl-ease),
              border-color var(--zl-dur) var(--zl-ease),
              color var(--zl-dur) var(--zl-ease);
}
/* hover shifts the internal props so variant hovers (--primary/--secondary/
   --destructive…) keep winning — a literal background here would override them */
.zl-btn:hover    { --_bg: var(--zl-surface-3); --_bd: rgba(255,255,255,.2); }
.zl-btn:active   { transform: translateY(.5px); }
.zl-btn:focus-visible { outline: none; box-shadow: var(--zl-focus-ring); }
.zl-btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }

/* primary — solid olive, the main call to action */
.zl-btn--primary {
  --_bg: var(--zl-accent); --_fg: var(--zl-on-accent); --_bd: var(--zl-accent-mid);
  font-weight: var(--zl-weight-bold);
}
.zl-btn--primary:hover  { --_bg: var(--zl-accent-mid); --_bd: var(--zl-olive-soft); }
.zl-btn--primary:active { --_bg: var(--zl-accent-deep); }

/* secondary — solid vintage grape */
.zl-btn--secondary {
  --_bg: var(--zl-accent2); --_fg: var(--zl-on-accent2); --_bd: var(--zl-accent2-mid);
  font-weight: var(--zl-weight-bold);
}
.zl-btn--secondary:hover  { --_bg: var(--zl-accent2-mid); --_bd: var(--zl-grape-soft); }
.zl-btn--secondary:active { --_bg: var(--zl-accent2-deep); }

/* ghost — quiet, outline only */
.zl-btn--ghost { --_bg: transparent; --_fg: var(--zl-text-soft); --_bd: var(--zl-line-strong); }
.zl-btn--ghost:hover { --_fg: var(--zl-text); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.2); }

/* danger — the QUIET destructive variant (outline). Table rows, toolbars,
   dense UIs where a solid red would shout. */
.zl-btn--danger { --_bg: transparent; --_fg: var(--zl-danger); --_bd: rgba(194,86,106,.5); }
.zl-btn--danger:hover { background: var(--zl-danger-wash); border-color: var(--zl-danger); }

/* destructive — SOLID rose-red primary for a destructive MAIN action
   (supprimer, révoquer, purger). Same construction as --primary/--secondary.
   Canonical dialog pair: .zl-btn--destructive + « Annuler » in
   .zl-btn--secondary (or --ghost on dense UIs). */
.zl-btn--destructive {
  --_bg: var(--zl-danger); --_fg: var(--zl-on-danger); --_bd: var(--zl-danger-mid);
  font-weight: var(--zl-weight-bold);
}
.zl-btn--destructive:hover  { --_bg: var(--zl-danger-mid); --_bd: var(--zl-danger); }
.zl-btn--destructive:active { --_bg: var(--zl-danger-deep); }

/* sizes */
.zl-btn--sm { min-height: 36px; padding: 8px 13px; font-size: var(--zl-text-xs); }
.zl-btn--lg { min-height: 52px; padding: 14px 26px; font-size: var(--zl-text-lg); }

/* ============================================================================
   INPUTS & FORM CONTROLS
   ========================================================================== */
.zl-field { display: flex; flex-direction: column; gap: var(--zl-space-2); }
.zl-label { font-size: var(--zl-text-sm); font-weight: var(--zl-weight-medium); color: var(--zl-text-soft); }
.zl-hint  { font-size: var(--zl-text-xs); color: var(--zl-text-muted); }
.zl-hint--error { color: var(--zl-danger); }

.zl-input, .zl-textarea, .zl-select {
  font-family: inherit; font-size: var(--zl-text-base); color: var(--zl-text);
  background: var(--zl-surface-2); border: 1px solid var(--zl-line-strong);
  border-radius: var(--zl-radius-md); padding: 12px 14px; min-height: 46px;
  width: 100%; transition: border-color var(--zl-dur) var(--zl-ease), box-shadow var(--zl-dur) var(--zl-ease), background var(--zl-dur) var(--zl-ease);
}
.zl-textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.zl-input::placeholder, .zl-textarea::placeholder { color: var(--zl-text-faint); }
.zl-input:hover, .zl-textarea:hover, .zl-select:hover { border-color: rgba(255,255,255,.2); }
.zl-input:focus, .zl-textarea:focus, .zl-select:focus {
  outline: none; border-color: var(--zl-line-focus); background: var(--zl-surface-1);
  box-shadow: var(--zl-focus-ring);
}
.zl-input--error { border-color: var(--zl-danger); }
.zl-input:disabled, .zl-textarea:disabled, .zl-select:disabled { opacity: .5; cursor: not-allowed; }

.zl-select {
  appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237d7e76' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}

/* checkbox & radio — accent-color keeps native a11y, tinted olive (soft for visibility) */
.zl-check { display: inline-flex; align-items: center; gap: var(--zl-space-2); cursor: pointer; font-size: var(--zl-text-base); color: var(--zl-text-soft); }
.zl-check input { width: 20px; height: 20px; accent-color: var(--zl-accent-soft); cursor: pointer; }

/* toggle switch — lightly rounded rectangle, not a pill */
.zl-toggle { position: relative; display: inline-block; width: 48px; height: 28px; }
.zl-toggle input { opacity: 0; width: 0; height: 0; }
.zl-toggle .zl-track { position: absolute; inset: 0; background: var(--zl-surface-3); border: 1px solid var(--zl-line-strong);
  border-radius: var(--zl-radius-md); transition: background var(--zl-dur) var(--zl-ease), border-color var(--zl-dur) var(--zl-ease); }
.zl-toggle .zl-track::before { content: ""; position: absolute; left: 3px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: var(--zl-radius-sm); background: var(--zl-text-soft); transition: transform var(--zl-dur) var(--zl-ease), background var(--zl-dur) var(--zl-ease); }
.zl-toggle input:checked + .zl-track { background: var(--zl-accent-soft); border-color: transparent; }
.zl-toggle input:checked + .zl-track::before { transform: translate(20px,-50%); background: #1a1c10; }
.zl-toggle input:focus-visible + .zl-track { box-shadow: var(--zl-focus-ring); }

/* ============================================================================
   BADGES & TAGS — lightly rounded, not pills
   ----------------------------------------------------------------------------
   Every variant only sets a --_bg / --_fg / --_bd custom-prop trio; the base
   class paints from it, and `--solid` repaints from the same trio (fill =
   --_solid if set, else the variant's --_fg; ink = --_ink, default page bg).
   Mood gamme = product/feature lifecycle, strictly on-palette:
     new → beta → wip → draft → experimental → live → deprecated → archived
   ========================================================================== */
.zl-badge {
  --_bg: var(--zl-surface-3);
  --_fg: var(--zl-text-soft);
  --_bd: var(--zl-line);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--zl-text-xs); font-weight: var(--zl-weight-bold); letter-spacing: .03em;
  padding: 5px 10px; border-radius: var(--zl-radius-sm);
  background: var(--_bg); color: var(--_fg); border: 1px solid var(--_bd);
  text-transform: uppercase;
  text-decoration: none;   /* badge as <a> stays clean */
}
/* semantic variants + the moods that share their wash */
.zl-badge--accent,  .zl-badge--new  { --_bg: var(--zl-accent-wash);  --_fg: var(--zl-accent-soft);  --_bd: rgba(157,174,80,.32); }
.zl-badge--accent2, .zl-badge--beta { --_bg: var(--zl-accent2-wash); --_fg: var(--zl-accent2-soft); --_bd: rgba(176,149,179,.32); }
.zl-badge--success, .zl-badge--live { --_bg: var(--zl-success-wash); --_fg: var(--zl-success);      --_bd: rgba(111,154,58,.32); }
.zl-badge--warning, .zl-badge--wip  { --_bg: var(--zl-warning-wash); --_fg: var(--zl-warning);      --_bd: rgba(199,154,62,.32); }
.zl-badge--danger  { --_bg: var(--zl-danger-wash);  --_fg: var(--zl-danger);       --_bd: rgba(194,86,106,.34);
                     --_solid: color-mix(in srgb, var(--zl-danger) 82%, #fff); /* raw danger on dark ink ≈4.4:1 — lift the fill */ }
/* remaining moods — draft/experimental dashed (the one structural tell) */
.zl-badge--draft        { --_bg: transparent; --_fg: var(--zl-text-soft); --_bd: var(--zl-line-strong); border-style: dashed; }
.zl-badge--experimental { --_bg: var(--zl-accent2-wash); --_fg: var(--zl-accent2-soft); --_bd: rgba(176,149,179,.45); border-style: dashed; }
.zl-badge--deprecated   { --_bg: rgba(194,86,106,.09);
                          --_fg: color-mix(in srgb, var(--zl-danger) 70%, var(--zl-text-muted));
                          --_bd: rgba(194,86,106,.22);
                          --_solid: color-mix(in srgb, var(--zl-danger) 70%, var(--zl-text-soft)); }
.zl-badge--archived     { --_bg: transparent; --_fg: var(--zl-text-faint); --_bd: var(--zl-line); --_solid: var(--zl-text-muted); }
.zl-badge--dot::before, .zl-badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
/* sizes — default is 13px / 5px 10px */
.zl-badge--sm { font-size: 11px; padding: 3px 7px; gap: 5px; }
.zl-badge--lg { font-size: 14px; padding: 7px 13px; gap: 7px; border-radius: 4px; /* 4px = max badge radius */ }
.zl-badge--sm.zl-badge--dot::before, .zl-badge--sm.zl-badge--live::before { width: 5px; height: 5px; }
.zl-badge--lg.zl-badge--dot::before, .zl-badge--lg.zl-badge--live::before { width: 8px; height: 8px; }
/* intensity — solid fill for high-priority chips only (dark ink, ≥4.5:1) */
.zl-badge--solid {
  background: var(--_solid, var(--_fg));
  color: var(--_ink, var(--zl-bg));
  border-color: transparent;
}

/* ============================================================================
   CARDS & PANELS
   ========================================================================== */
.zl-card {
  background: var(--zl-surface-1);
  border: 1px solid var(--zl-line);
  border-radius: var(--zl-radius-lg);
  padding: var(--zl-space-5);
  box-shadow: var(--zl-shadow-md);
  transition: border-color var(--zl-dur) var(--zl-ease), transform var(--zl-dur) var(--zl-ease), box-shadow var(--zl-dur) var(--zl-ease);
}
.zl-card--hover:hover { transform: translateY(-2px); border-color: var(--zl-line-strong); box-shadow: var(--zl-shadow-lg); }
.zl-card--accent { border-color: rgba(157,174,80,.3); box-shadow: var(--zl-shadow-md), inset 0 1px 0 rgba(157,174,80,.1); }
.zl-card__title { font-size: var(--zl-text-lg); font-weight: var(--zl-weight-bold); margin-bottom: var(--zl-space-2); }
.zl-card__body  { color: var(--zl-text-soft); }

/* ============================================================================
   HEADER & FOOTER — base chrome + a gamme of moods.
   Headers: .zl-header (app) · --hero · --compact · --editorial.
   Footers: .zl-footer (classic) · --columns · --slim · --cta.
   Every variant is intrinsically responsive (flex-wrap / grid auto-fit / min())
   — it adapts to its CONTAINER width and never overflows horizontally at 360px.
   ========================================================================== */
.zl-header {
  position: sticky; top: 0; z-index: var(--zl-z-nav);   /* site chrome sticks — the blur is its point */
  display: flex; align-items: center; justify-content: space-between; gap: var(--zl-space-5);
  flex-wrap: wrap; row-gap: var(--zl-space-2);   /* narrow screens: wrap, never overflow the page */
  padding: var(--zl-space-4) var(--zl-space-6);
  background: rgba(8,8,12,.72); backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--zl-line);
}
.zl-header--static { position: static; }   /* opt-out for embedded/demo headers */
.zl-header__brand { display: flex; align-items: center; gap: var(--zl-space-3); font-weight: var(--zl-weight-bold); font-size: var(--zl-text-lg); letter-spacing: .02em; }
.zl-header__nav { display: flex; align-items: center; gap: var(--zl-space-5); flex-wrap: wrap; row-gap: var(--zl-space-2); }
.zl-navlink { color: var(--zl-text-soft); text-decoration: none; font-size: var(--zl-text-sm); font-weight: var(--zl-weight-medium); transition: color var(--zl-dur) var(--zl-ease); }
.zl-navlink:hover, .zl-navlink--active { color: var(--zl-text); }
.zl-navlink--active { color: var(--zl-accent-soft); }

/* hero — marketing/landing mood: sits over a hero or the particle field.
   Transparent, no blur, no hairline, brand a step larger; non-sticky (a fully
   transparent bar has nothing to stick on — pin it yourself if needed). */
.zl-header--hero {
  position: static;
  background: transparent; backdrop-filter: none;
  border-bottom: 0;
  padding: var(--zl-space-5) var(--zl-space-6);
}
.zl-header--hero .zl-header__brand { font-size: var(--zl-text-xl); }

/* compact — utility/tool mood: slim, solid surface-1 (no blur — cheap on
   low-end hardware), smaller brand, hairline. Stays sticky like the base. */
.zl-header--compact {
  padding: var(--zl-space-2) var(--zl-space-4);
  background: var(--zl-surface-1); backdrop-filter: none;
  gap: var(--zl-space-4);
}
.zl-header--compact .zl-header__brand { font-size: var(--zl-text-base); }
.zl-header--compact .zl-header__nav { gap: var(--zl-space-4); row-gap: var(--zl-space-1); }

/* editorial — content mood, magazine masthead: brand centered on its own line,
   nav centered UNDER it between hairlines, generous vertical padding.
   Non-sticky (a tall masthead scrolls away with the page). */
.zl-header--editorial {
  position: static;
  flex-direction: column; align-items: center; justify-content: center;
  gap: var(--zl-space-4);
  padding: var(--zl-space-6) var(--zl-space-5) 0;
  text-align: center;
}
.zl-header--editorial .zl-header__brand {
  font-size: var(--zl-text-2xl); letter-spacing: .06em; text-transform: uppercase;
  justify-content: center; text-align: center;
}
.zl-header--editorial .zl-header__nav {
  width: 100%; justify-content: center;
  border-top: 1px solid var(--zl-line);
  padding: var(--zl-space-3) var(--zl-space-2);
  column-gap: var(--zl-space-5);
}
@media (max-width: 480px) {
  .zl-header--editorial { padding-top: var(--zl-space-5); }
  .zl-header--editorial .zl-header__nav { column-gap: var(--zl-space-4); }
}

.zl-footer {
  padding: var(--zl-space-7) var(--zl-space-6) var(--zl-space-6);
  border-top: 1px solid var(--zl-line); color: var(--zl-text-muted); font-size: var(--zl-text-sm);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--zl-space-4);
}
.zl-footer a { color: var(--zl-text-soft); text-decoration: none; }
.zl-footer a:hover { color: var(--zl-accent-soft); }

/* shared footer part — the © / legal bar of --columns and --cta */
.zl-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--zl-space-2) var(--zl-space-4);
}

/* columns — sitemap mood: an auto-fit grid of link columns that collapses
   4 → 2 → 1 with the CONTAINER width (no viewport query), + a © bottom bar. */
.zl-footer--columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
  gap: var(--zl-space-6) var(--zl-space-5);
  align-items: start;
}
.zl-footer__col { display: flex; flex-direction: column; gap: var(--zl-space-2); min-width: 0; }
.zl-footer__col a { overflow-wrap: anywhere; }   /* long links never overflow the column */
.zl-footer__col-title {
  font-size: var(--zl-text-xs); font-weight: var(--zl-weight-bold);
  letter-spacing: var(--zl-tracking-wide); text-transform: uppercase;
  color: var(--zl-text-muted);
  margin-bottom: var(--zl-space-1);
}
.zl-footer--columns .zl-footer__bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--zl-line);
  padding-top: var(--zl-space-4);
}

/* slim — one thin centered line of xs fine print, minimal padding. */
.zl-footer--slim {
  padding: var(--zl-space-3) var(--zl-space-4);
  font-size: var(--zl-text-xs);
  justify-content: center; text-align: center;
  gap: var(--zl-space-1) var(--zl-space-3);
}

/* cta — conversion mood: a headline + primary button block on a flat, subtle
   olive wash (no gradient), above a classic © line. Generous padding. */
.zl-footer--cta { display: block; padding: 0; }
.zl-footer__cta {
  background: var(--zl-accent-wash);
  border-bottom: 1px solid var(--zl-line);
  padding: var(--zl-space-7) var(--zl-space-5);
  text-align: center;
}
.zl-footer__cta-title {
  font-size: var(--zl-text-2xl); font-weight: var(--zl-weight-bold);
  line-height: var(--zl-leading-tight); letter-spacing: var(--zl-tracking-tight);
  color: var(--zl-text);
  margin: 0 auto var(--zl-space-3);
  max-width: 26ch;
}
.zl-footer__cta-sub {
  color: var(--zl-text-soft); font-size: var(--zl-text-base);
  max-width: 52ch; margin: 0 auto var(--zl-space-5);
}
.zl-footer--cta .zl-footer__bottom { padding: var(--zl-space-5) var(--zl-space-6); }

/* ============================================================================
   CUSTOM SELECT — .zl-pick (generic)  ·  .zl-langpick (language variant)
   One component, two names: a button (current value + chevron — plus a flag
   for languages, the flag span is simply optional markup) over a token-styled
   listbox menu. aria-expanded on the root drives the open state.
   .zl-pick replaces the native <select> end-to-end EXCEPT on iOS, where the
   native <select class="zl-select"> stays (Apple HIG picker UX wins on touch).
   Markup + a11y JS live on da.zlef.fr (#champs, #i18n). 2-locale sites: no
   language picker.
   ========================================================================== */
.zl-langpick, .zl-pick { position: relative; display: inline-block; width: 248px; max-width: 100%; font-family: var(--zl-font); }
.zl-pick { width: 100%; }   /* generic select stretches like .zl-select; the langpick keeps its 248px */
.zl-langpick__btn, .zl-pick__btn { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 10px;
  padding: 0 12px; background: var(--zl-surface-2); color: var(--zl-text); font-size: var(--zl-text-base);
  border: 1px solid var(--zl-line-strong); border-radius: var(--zl-radius-md); cursor: pointer; text-align: left;
  transition: background var(--zl-dur) var(--zl-ease), border-color var(--zl-dur) var(--zl-ease); }
.zl-langpick__btn:hover, .zl-pick__btn:hover { background: var(--zl-surface-3); }
.zl-langpick__btn:focus-visible, .zl-pick__btn:focus-visible { outline: none; border-color: var(--zl-accent-soft); box-shadow: var(--zl-focus-ring); }
.zl-langpick__flag, .zl-pick__flag { font-size: 19px; line-height: 1; flex: none; }
.zl-langpick__name, .zl-pick__name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zl-langpick__chev, .zl-pick__chev { flex: none; color: var(--zl-text-muted); transition: transform var(--zl-dur) var(--zl-ease); }
.zl-langpick[aria-expanded="true"] .zl-langpick__chev, .zl-pick[aria-expanded="true"] .zl-pick__chev { transform: rotate(180deg); }
.zl-langpick__menu, .zl-pick__menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: var(--zl-z-raised);
  background: var(--zl-surface-1); border: 1px solid var(--zl-line-strong); border-radius: var(--zl-radius-md);
  box-shadow: var(--zl-shadow-md); padding: 5px; list-style: none; max-height: 320px; overflow-y: auto;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--zl-dur-fast) var(--zl-ease), transform var(--zl-dur-fast) var(--zl-ease); }
.zl-langpick[aria-expanded="true"] .zl-langpick__menu, .zl-pick[aria-expanded="true"] .zl-pick__menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.zl-langpick__opt, .zl-pick__opt { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: var(--zl-radius-sm);
  color: var(--zl-text-soft); font-size: var(--zl-text-base); cursor: pointer; user-select: none;
  transition: background var(--zl-dur-fast) var(--zl-ease), color var(--zl-dur-fast) var(--zl-ease); }
.zl-langpick__opt:hover, .zl-langpick__opt.is-active, .zl-pick__opt:hover, .zl-pick__opt.is-active { background: var(--zl-surface-3); color: var(--zl-text); }
.zl-langpick__opt[aria-selected="true"], .zl-pick__opt[aria-selected="true"] { color: var(--zl-accent-soft); }
.zl-langpick__opt .zl-langpick__name, .zl-pick__opt .zl-pick__name { font-weight: 550; }
.zl-langpick__check, .zl-pick__check { flex: none; margin-left: auto; color: var(--zl-accent-soft); opacity: 0; }
.zl-langpick__opt[aria-selected="true"] .zl-langpick__check, .zl-pick__opt[aria-selected="true"] .zl-pick__check { opacity: 1; }
@media (prefers-reduced-motion: reduce){ .zl-langpick__menu, .zl-langpick__chev, .zl-pick__menu, .zl-pick__chev { transition: none; } }

/* ============================================================================
   LINKS — inline text links (nav links use .zl-navlink)
   ========================================================================== */
.zl-link {
  color: var(--zl-accent-soft); text-decoration: underline;
  text-decoration-color: rgba(157,174,80,.35); text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--zl-dur) var(--zl-ease), text-decoration-color var(--zl-dur) var(--zl-ease);
}
.zl-link:hover { color: var(--zl-olive-bright); text-decoration-color: currentColor; }
.zl-link:focus-visible { outline: none; box-shadow: var(--zl-focus-ring); border-radius: var(--zl-radius-sm); }
.zl-link--quiet { color: var(--zl-text-soft); text-decoration-color: var(--zl-line-strong); }
.zl-link--quiet:hover { color: var(--zl-text); text-decoration-color: currentColor; }

/* ============================================================================
   KBD — keyboard keys in running text or shortcut hints
   ========================================================================== */
.zl-kbd {
  font-family: var(--zl-font-mono); font-size: var(--zl-text-xs); color: var(--zl-text-soft);
  background: var(--zl-surface-2); padding: 2px 7px 3px;
  border: 1px solid var(--zl-line-strong); border-bottom-width: 2px;
  border-radius: var(--zl-radius-sm); white-space: nowrap;
}

/* ============================================================================
   TABLES — data tables. Hairline rows, mono numerals, quiet hover.
   Wrap in .zl-table-wrap for rounded border + horizontal overflow.
   ========================================================================== */
.zl-table-wrap {
  border: 1px solid var(--zl-line); border-radius: var(--zl-radius-lg);
  background: var(--zl-surface-1); overflow-x: auto; scrollbar-width: thin;
}
.zl-table { width: 100%; border-collapse: collapse; font-size: var(--zl-text-sm); }
.zl-table th {
  font-size: var(--zl-text-xs); font-weight: var(--zl-weight-bold);
  letter-spacing: .08em; text-transform: uppercase; color: var(--zl-text-muted);
  text-align: left; padding: 12px 16px;
  border-bottom: 1px solid var(--zl-line-strong);
  background: var(--zl-surface-1); position: sticky; top: 0;
}
.zl-table td { padding: 12px 16px; border-top: 1px solid var(--zl-line); color: var(--zl-text-soft); }
.zl-table tbody tr { transition: background var(--zl-dur-fast) var(--zl-ease); }
.zl-table tbody tr:hover { background: rgba(255,255,255,.025); }
.zl-table tbody tr:first-child td { border-top: 0; }
.zl-table .zl-num { font-family: var(--zl-font-mono); font-variant-numeric: tabular-nums; text-align: right; color: var(--zl-text); }

/* ============================================================================
   TABS — underline indicator, olive active. role="tablist" markup expected.
   ========================================================================== */
.zl-tabs { display: flex; gap: var(--zl-space-2); border-bottom: 1px solid var(--zl-line); }
.zl-tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: var(--zl-text-sm); font-weight: var(--zl-weight-medium);
  color: var(--zl-text-soft); padding: 10px 14px 12px; margin-bottom: -1px;
  border-bottom: 2px solid transparent; border-radius: var(--zl-radius-sm) var(--zl-radius-sm) 0 0;
  transition: color var(--zl-dur) var(--zl-ease), border-color var(--zl-dur) var(--zl-ease), background var(--zl-dur) var(--zl-ease);
}
.zl-tab:hover { color: var(--zl-text); background: rgba(255,255,255,.03); }
.zl-tab:focus-visible { outline: none; box-shadow: var(--zl-focus-ring); }
.zl-tab--active, .zl-tab[aria-selected="true"] { color: var(--zl-text); border-bottom-color: var(--zl-accent-soft); }

/* ============================================================================
   ALERTS — inline callouts. Wash background + hairline, semantic left border.
   The title sits on its OWN line above the body (like .zl-card__title over
   __body) — never inline with it.
   ========================================================================== */
.zl-alert {
  display: block;
  padding: var(--zl-space-4) var(--zl-space-4);
  border: 1px solid var(--zl-line); border-left: 3px solid var(--zl-text-muted);
  border-radius: var(--zl-radius-md);
  background: var(--zl-surface-1); color: var(--zl-text-soft); font-size: var(--zl-text-sm);
}
.zl-alert > span { display: block; }   /* legacy <span> title/body markup stacks */
.zl-alert__title { display: block; font-weight: var(--zl-weight-bold); color: var(--zl-text); margin-bottom: var(--zl-space-1); }
.zl-alert--info    { border-left-color: var(--zl-info);    background: var(--zl-accent2-wash); }
.zl-alert--success { border-left-color: var(--zl-success); background: var(--zl-success-wash); }
.zl-alert--warning { border-left-color: var(--zl-warning); background: var(--zl-warning-wash); }
.zl-alert--danger  { border-left-color: var(--zl-danger);  background: var(--zl-danger-wash); }

/* ============================================================================
   TOOLTIP — CSS-only, from data-zl-tip. For rich tooltips build your own on
   --zl-z-tip. Appears on hover AND keyboard focus.
   ========================================================================== */
[data-zl-tip] { position: relative; }
[data-zl-tip]::after {
  content: attr(data-zl-tip);
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(2px);
  background: var(--zl-surface-3); color: var(--zl-text); border: 1px solid var(--zl-line-strong);
  font-size: var(--zl-text-xs); font-weight: var(--zl-weight-medium); line-height: 1.35;
  padding: 6px 10px; border-radius: var(--zl-radius-sm); box-shadow: var(--zl-shadow-md);
  white-space: nowrap; pointer-events: none; opacity: 0; z-index: var(--zl-z-tip);
  transition: opacity var(--zl-dur) var(--zl-ease), transform var(--zl-dur) var(--zl-ease);
}
[data-zl-tip]:hover::after, [data-zl-tip]:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================================
   LOADING — spinner · skeleton · progress. Every async surface shows one of
   these; nothing on zlef.fr may feel frozen. (Circles are genuinely circular
   here, so the pill radius is legitimate.)
   ========================================================================== */
.zl-spinner {
  display: inline-block; width: 20px; height: 20px; flex: none;
  border: 2px solid var(--zl-line-strong); border-top-color: var(--zl-accent-soft);
  border-radius: 50%; animation: zl-spin .7s linear infinite;
}
.zl-spinner--lg { width: 32px; height: 32px; border-width: 3px; }
.zl-spinner--btn { width: 15px; height: 15px; border-color: rgba(255,255,255,.25); border-top-color: currentColor; }
@keyframes zl-spin { to { transform: rotate(360deg); } }

/* skeleton — layout placeholder while content loads. Compose to mirror the
   final layout (title + lines + block), don't ship a lone gray box. */
.zl-skeleton {
  position: relative; overflow: hidden;
  background: var(--zl-surface-2); border-radius: var(--zl-radius-sm);
  min-height: 14px;
}
.zl-skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.045), transparent);
  transform: translateX(-100%); animation: zl-shimmer 1.6s var(--zl-ease) infinite;
}
.zl-skeleton--title { height: 22px; width: 40%; }
.zl-skeleton--text  { height: 14px; }
.zl-skeleton--block { height: 120px; border-radius: var(--zl-radius-lg); }
.zl-skeleton--circle { border-radius: 50%; }
/* one skeleton line inside a <td> — loading table rows keep the real columns */
.zl-skeleton--cell  { height: 14px; width: 60%; }
/* chart placeholder — ghost bars, olive-tinted at low opacity, on a hairline
   baseline. Pair with a --title skeleton inside a card. Shimmer sweeps like
   every skeleton (and stops under prefers-reduced-motion). */
.zl-skeleton--chart {
  --_bar: linear-gradient(var(--zl-accent-wash), var(--zl-accent-wash));
  height: 140px; background-color: transparent;
  border-radius: var(--zl-radius-sm) var(--zl-radius-sm) 0 0;
  border-bottom: 1px solid var(--zl-line-strong);
  background-image: var(--_bar), var(--_bar), var(--_bar), var(--_bar), var(--_bar), var(--_bar), var(--_bar);
  background-repeat: no-repeat;
  background-size: 8.5% 42%, 8.5% 68%, 8.5% 34%, 8.5% 88%, 8.5% 55%, 8.5% 74%, 8.5% 47%;
  background-position: 1% 100%, 17.33% 100%, 33.67% 100%, 50% 100%, 66.33% 100%, 82.67% 100%, 99% 100%;
}
@keyframes zl-shimmer { to { transform: translateX(100%); } }

/* progress — thin determinate/indeterminate bar. Set width on __bar inline
   (or via JS); add --indeterminate when the total is unknown. */
.zl-progress {
  height: 6px; background: var(--zl-surface-3); border-radius: var(--zl-radius-sm);
  overflow: hidden;
}
.zl-progress__bar {
  height: 100%; width: 0; background: var(--zl-accent-soft); border-radius: inherit;
  transition: width var(--zl-dur-slow) var(--zl-ease);
}
.zl-progress--indeterminate .zl-progress__bar { width: 38%; animation: zl-slide 1.4s var(--zl-ease) infinite; }
@keyframes zl-slide {
  from { transform: translateX(-110%); }
  to   { transform: translateX(370%); }
}

/* loading button — keep the label, add a .zl-spinner--btn inside, set disabled */
.zl-btn--loading { pointer-events: none; opacity: .75; }

/* full-page loader — route transitions & first paint. Centered column:
   a .zl-spinner--lg over a short muted label. Give it the height of the
   region it replaces (defaults to a comfortable minimum). */
.zl-loader-page {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--zl-space-4); min-height: 240px;
  padding: var(--zl-space-7) var(--zl-space-5); text-align: center;
  color: var(--zl-text-muted); font-size: var(--zl-text-sm);
}

/* ============================================================================
   EMPTY STATE — an empty screen is an invitation to act, not a dead end.
   ========================================================================== */
.zl-empty {
  border: 1px dashed var(--zl-line-strong); border-radius: var(--zl-radius-lg);
  padding: var(--zl-space-7) var(--zl-space-5); text-align: center; color: var(--zl-text-muted);
}
.zl-empty__title { font-size: var(--zl-text-lg); font-weight: var(--zl-weight-bold); color: var(--zl-text-soft); margin-bottom: var(--zl-space-2); }

/* ============================================================================
   DIVIDER
   ========================================================================== */
.zl-divider { border: 0; height: 1px; background: var(--zl-line); margin: var(--zl-space-6) 0; }

/* ============================================================================
   ACCESSIBILITY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .zl-spinner { animation-duration: 1.4s !important; }  /* still spins — it IS the status signal */
  .zl-skeleton::after { animation: none !important; }
}
