/* =========================================================
   MyPixel — Design tokens  (v1.0)
   À importer en premier dans la feuille de style du site.
   Polices : <link href="https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700&family=Readex+Pro:wght@300;400;500;600;700&display=swap" rel="stylesheet">
   ========================================================= */
:root {
  /* Couleurs de marque */
  --mp-cyan: #00B8FF;            /* Cyan Power — accent principal */
  --mp-magenta: #FF2BD6;         /* Magenta Pixel — signature, promos */
  --mp-ink: #14161C;            /* Encre — texte principal */
  --mp-night: #0B0D12;          /* Nuit — fonds sombres */
  --mp-white: #FFFFFF;

  /* Couleurs de support */
  --mp-cloud: #F2F4F7;          /* fonds de sections */
  --mp-slate: #5A6070;          /* texte secondaire */
  --mp-line: #D9DDE5;           /* bordures, séparateurs */
  --mp-cyan-deep: #007DAD;      /* liens sur fond blanc (WCAG AA) */
  --mp-magenta-deep: #CF23AD;   /* textes magenta sur fond blanc (WCAG AA) */

  /* Rôles (thème clair) */
  --mp-bg: var(--mp-white);
  --mp-bg-alt: var(--mp-cloud);
  --mp-text: var(--mp-ink);
  --mp-text-muted: var(--mp-slate);
  --mp-link: var(--mp-cyan-deep);
  --mp-primary: var(--mp-cyan);
  --mp-on-primary: var(--mp-ink);
  --mp-promo: var(--mp-magenta);
  --mp-on-promo: var(--mp-ink);

  /* Typographie */
  --mp-font-display: "Unbounded", "Readex Pro", system-ui, sans-serif;
  --mp-font-text: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mp-h1: 700 clamp(2rem, 4vw, 3rem)/1.1 var(--mp-font-display);
  --mp-h2: 700 clamp(1.6rem, 3vw, 2.125rem)/1.15 var(--mp-font-display);
  --mp-h3: 600 1.5rem/1.25 var(--mp-font-display);
  --mp-body: 400 1rem/1.6 var(--mp-font-text);
  --mp-body-strong: 600 1rem/1.6 var(--mp-font-text);
  --mp-caption: 500 0.8125rem/1.4 var(--mp-font-text);
  --mp-button: 600 0.9375rem/1 var(--mp-font-text);
  --mp-price: 700 1.75rem/1 var(--mp-font-display);
  --mp-tracking-display: -0.02em;

  /* Espacements (base 4 px) */
  --mp-space-1: 4px;  --mp-space-2: 8px;  --mp-space-3: 12px; --mp-space-4: 16px;
  --mp-space-5: 24px; --mp-space-6: 32px; --mp-space-7: 48px; --mp-space-8: 64px; --mp-space-9: 96px;

  /* Rayons, bordures, ombres */
  --mp-radius-pixel: 4px;     /* badges : esprit « pixel » */
  --mp-radius-sm: 8px;
  --mp-radius-md: 12px;       /* boutons, champs */
  --mp-radius-lg: 20px;       /* cartes produits */
  --mp-radius-pill: 999px;
  --mp-border: 1px solid var(--mp-line);
  --mp-shadow-card: 0 1px 2px rgba(20,22,28,.06), 0 8px 24px rgba(20,22,28,.08);
  --mp-glow-cyan: 0 0 24px rgba(0,184,255,.45);
  --mp-glow-magenta: 0 0 24px rgba(255,43,214,.45);

  /* Mouvement */
  --mp-ease: cubic-bezier(.2,.8,.2,1);
  --mp-duration: 180ms;
}

/* Thème sombre */
[data-theme="dark"] {
  --mp-bg: var(--mp-night);
  --mp-bg-alt: #161922;
  --mp-text: var(--mp-white);
  --mp-text-muted: #A3A9B8;
  --mp-line: #2B3040;
  --mp-link: var(--mp-cyan);
}
