{
  "$schema": "https://schemas.figmatokens.com/design-tokens",
  "$description": "Mercure design tokens — extracted from lab-b.css + lab-robot.css. Format: Style Dictionary / Tokens Studio compatible.",
  "$version": "0.2.0",

  "color": {
    "bg": {
      "1":      { "value": "#0a0b10", "type": "color", "description": "Surface principale (deepest)" },
      "2":      { "value": "#0e1018", "type": "color", "description": "Surface secondaire" }
    },
    "card": {
      "1":      { "value": "#14161e", "type": "color" },
      "2":      { "value": "#1a1d2a", "type": "color" },
      "3":      { "value": "#20232f", "type": "color" }
    },
    "ink": {
      "1":      { "value": "#f0eef0",                       "type": "color", "description": "Warm white, jamais #fff" },
      "2":      { "value": "rgba(240, 238, 240, 0.62)",     "type": "color", "description": "Body text" },
      "3":      { "value": "rgba(240, 238, 240, 0.40)",     "type": "color", "description": "Muted, captions" }
    },
    "line": {
      "1":      { "value": "rgba(255, 255, 255, 0.08)",     "type": "color" },
      "2":      { "value": "rgba(255, 255, 255, 0.16)",     "type": "color" }
    },
    "accent": {
      "indigo": { "value": "#6b7cff",                       "type": "color", "description": "Primary action / CTA" },
      "mauve":  { "value": "#b88cff",                       "type": "color", "description": "Brand mark / M filigrane" },
      "cyan":   { "value": "#4dd6ff",                       "type": "color", "description": "Data signal / status" },
      "glow":   { "value": "rgba(107, 124, 255, 0.45)",     "type": "color", "description": "Halo signature" }
    },
    "state": {
      "success": { "value": "#5be3a8", "type": "color", "description": "PROPOSED — non présent dans le code original" },
      "warn":    { "value": "#e8b46a", "type": "color", "description": "PROPOSED" },
      "error":   { "value": "#ff7a8c", "type": "color", "description": "PROPOSED" }
    }
  },

  "font": {
    "family": {
      "display": { "value": "Brockmann, Inter, -apple-system, sans-serif", "type": "fontFamily" },
      "body":    { "value": "Inter, -apple-system, sans-serif",             "type": "fontFamily" },
      "mono":    { "value": "JetBrains Mono, ui-monospace, monospace",      "type": "fontFamily" }
    },
    "size": {
      "micro":      { "value": "11px",                          "type": "fontSize" },
      "small":      { "value": "13px",                          "type": "fontSize" },
      "body":       { "value": "15px",                          "type": "fontSize" },
      "lead":       { "value": "17px",                          "type": "fontSize" },
      "display-s":  { "value": "clamp(20px, 1.8vw, 26px)",      "type": "fontSize" },
      "display-m":  { "value": "clamp(24px, 2.6vw, 36px)",      "type": "fontSize" },
      "display-l":  { "value": "clamp(28px, 3.6vw, 56px)",      "type": "fontSize" },
      "display-xl": { "value": "clamp(36px, 4.2vw, 64px)",      "type": "fontSize" },
      "display-2xl":{ "value": "clamp(40px, 5vw, 76px)",        "type": "fontSize" },
      "display-3xl":{ "value": "clamp(56px, 7vw, 124px)",       "type": "fontSize" },
      "display-4xl":{ "value": "clamp(160px, 24vw, 380px)",     "type": "fontSize", "description": "Statement number — usage rare" }
    },
    "tracking": {
      "base":      { "value": "-0.011em", "type": "letterSpacing" },
      "tight-s":   { "value": "-0.012em", "type": "letterSpacing" },
      "tight-m":   { "value": "-0.028em", "type": "letterSpacing" },
      "tight-l":   { "value": "-0.036em", "type": "letterSpacing" },
      "tight-xl":  { "value": "-0.04em",  "type": "letterSpacing" },
      "tight-2xl": { "value": "-0.062em", "type": "letterSpacing" },
      "wide-s":    { "value": "0.22em",   "type": "letterSpacing", "description": "Mono caps body" },
      "wide-m":    { "value": "0.28em",   "type": "letterSpacing", "description": "Eyebrow" },
      "wide-l":    { "value": "0.42em",   "type": "letterSpacing", "description": "Brand lockup caps" }
    },
    "leading": {
      "display-tight": { "value": "1.0",  "type": "lineHeights" },
      "display":       { "value": "1.1",  "type": "lineHeights" },
      "display-loose": { "value": "1.18", "type": "lineHeights" },
      "body":          { "value": "1.55", "type": "lineHeights" },
      "body-loose":    { "value": "1.6",  "type": "lineHeights" }
    },
    "weight": {
      "regular": { "value": "400", "type": "fontWeights" },
      "medium":  { "value": "500", "type": "fontWeights", "description": "Default weight — single graphic weight" }
    }
  },

  "space": {
    "0":  { "value": "0",     "type": "spacing" },
    "1":  { "value": "4px",   "type": "spacing", "description": "Hairline" },
    "2":  { "value": "8px",   "type": "spacing" },
    "3":  { "value": "12px",  "type": "spacing" },
    "4":  { "value": "16px",  "type": "spacing", "description": "Paragraph" },
    "5":  { "value": "20px",  "type": "spacing" },
    "6":  { "value": "24px",  "type": "spacing", "description": "Block" },
    "7":  { "value": "32px",  "type": "spacing" },
    "8":  { "value": "40px",  "type": "spacing" },
    "9":  { "value": "56px",  "type": "spacing", "description": "Section inner" },
    "10": { "value": "80px",  "type": "spacing", "description": "Section padding" },
    "11": { "value": "120px", "type": "spacing", "description": "Section hero" }
  },

  "radius": {
    "xs":   { "value": "8px",   "type": "borderRadius" },
    "sm":   { "value": "11px",  "type": "borderRadius" },
    "md":   { "value": "12px",  "type": "borderRadius" },
    "lg":   { "value": "16px",  "type": "borderRadius" },
    "xl":   { "value": "20px",  "type": "borderRadius" },
    "2xl":  { "value": "24px",  "type": "borderRadius" },
    "full": { "value": "999px", "type": "borderRadius" }
  },

  "motion": {
    "ease": {
      "default": { "value": "cubic-bezier(0.22, 0.61, 0.36, 1)", "type": "cubicBezier" },
      "out":     { "value": "cubic-bezier(0.16, 1, 0.3, 1)",     "type": "cubicBezier", "description": "Soft-land" },
      "spring":  { "value": "cubic-bezier(0.34, 1.56, 0.64, 1)", "type": "cubicBezier", "description": "Overshoot, usage parcimonieux" }
    },
    "duration": {
      "micro":   { "value": "200ms",  "type": "duration" },
      "short":   { "value": "400ms",  "type": "duration" },
      "medium":  { "value": "700ms",  "type": "duration" },
      "long":    { "value": "1300ms", "type": "duration" },
      "ambient": { "value": "7000ms", "type": "duration", "description": "Breathing loops — heart rate, pas animation" }
    }
  },

  "glass": {
    "bg":           { "value": "rgba(255, 255, 255, 0.035)",   "type": "color" },
    "bg-hover":     { "value": "rgba(255, 255, 255, 0.055)",   "type": "color" },
    "bg-strong":    { "value": "rgba(20, 22, 30, 0.42)",       "type": "color" },
    "bg-strong-on": { "value": "rgba(20, 22, 30, 0.82)",       "type": "color" },
    "border":       { "value": "rgba(255, 255, 255, 0.08)",    "type": "color" },
    "border-hover": { "value": "rgba(107, 124, 255, 0.30)",    "type": "color" },
    "blur":         { "value": "22px",                         "type": "dimension" },
    "blur-cta":     { "value": "20px",                         "type": "dimension" },
    "saturate":     { "value": "1.4",                          "type": "number" }
  },

  "layout": {
    "container-max":     { "value": "1320px",                  "type": "dimension" },
    "container-padding": { "value": "clamp(20px, 4vw, 56px)",  "type": "dimension" },
    "section-gap":       { "value": "clamp(80px, 12vw, 160px)","type": "dimension" }
  },

  "semantic": {
    "$description": "Bind these to the primitives above. Theme switching only touches this layer.",
    "surface": {
      "page":      { "value": "{color.bg.1}",   "type": "color" },
      "alt":       { "value": "{color.bg.2}",   "type": "color" },
      "card":      { "value": "{color.card.1}", "type": "color" },
      "glass":     { "value": "{glass.bg}",     "type": "color" }
    },
    "text": {
      "primary":   { "value": "{color.ink.1}",  "type": "color" },
      "body":      { "value": "{color.ink.2}",  "type": "color" },
      "muted":     { "value": "{color.ink.3}",  "type": "color" }
    },
    "border": {
      "subtle":    { "value": "{color.line.1}",         "type": "color" },
      "active":    { "value": "{color.line.2}",         "type": "color" },
      "brand":     { "value": "{glass.border-hover}",   "type": "color" }
    },
    "action": {
      "primary":   { "value": "{color.accent.indigo}",  "type": "color" }
    },
    "brand": {
      "mark":      { "value": "{color.accent.mauve}",   "type": "color" }
    },
    "data": {
      "signal":    { "value": "{color.accent.cyan}",    "type": "color" }
    }
  },

  "theme": {
    "$description": "Light mode primitives + semantic overrides. Activate with [data-theme=\"light\"] on <html>. Accents (indigo/mauve/cyan) survive both modes — only neutrals swap.",
    "light": {
      "paper": {
        "1": { "value": "#f4f3f6", "type": "color", "description": "Page background — slight cool tint, never warm" },
        "2": { "value": "#ebeaf0", "type": "color" },
        "3": { "value": "#ffffff", "type": "color" },
        "4": { "value": "#e2e1e8", "type": "color" }
      },
      "ink": {
        "1": { "value": "#1a1c24",                        "type": "color" },
        "2": { "value": "rgba(26, 28, 36, 0.72)",         "type": "color" },
        "3": { "value": "rgba(26, 28, 36, 0.48)",         "type": "color" }
      },
      "line": {
        "1": { "value": "rgba(10, 11, 16, 0.08)",         "type": "color" },
        "2": { "value": "rgba(10, 11, 16, 0.18)",         "type": "color" }
      },
      "glass": {
        "bg":           { "value": "rgba(255, 255, 255, 0.55)", "type": "color" },
        "bg-hover":     { "value": "rgba(255, 255, 255, 0.78)", "type": "color" },
        "border":       { "value": "rgba(10, 11, 16, 0.06)",    "type": "color" },
        "shadow-rest":  { "value": "0 14px 38px -16px rgba(20, 22, 40, 0.18)", "type": "shadow" },
        "shadow-hover": { "value": "0 30px 80px -30px rgba(107, 124, 255, 0.40)", "type": "shadow" }
      },
      "semantic": {
        "surface": {
          "page":  { "value": "{theme.light.paper.1}", "type": "color" },
          "alt":   { "value": "{theme.light.paper.2}", "type": "color" },
          "card":  { "value": "{theme.light.paper.3}", "type": "color" }
        },
        "text": {
          "primary": { "value": "{theme.light.ink.1}", "type": "color" },
          "body":    { "value": "{theme.light.ink.2}", "type": "color" },
          "muted":   { "value": "{theme.light.ink.3}", "type": "color" }
        },
        "border": {
          "subtle": { "value": "{theme.light.line.1}", "type": "color" },
          "active": { "value": "{theme.light.line.2}", "type": "color" }
        }
      }
    }
  }
}
