/* ===== BMX-Race Design Tokens (source unique, cf. tools/sync-theme.sh) =====
   Palette pastel ancrée sur un bleu acier (#6a8caf).
   Les apps ne redéfinissent PAS ces tokens : elles n'ajoutent que leurs
   composants. Toute variation volontaire se discute ici, pas en local. */

:root{
  --bg:#f1f4f8;
  --bg-overlay:linear-gradient(180deg, rgba(106,140,175,.55) 0%, rgba(106,140,175,.30) 100%);
  --card:#ffffff; --card-soft:#f7fafc;
  --ink:#2c3845; --ink-2:#4a5868; --muted:#6a7886;
  --line:#e4ebf1; --line-strong:#cdd6e0;
  --accent:#6a8caf;        /* bleu acier principal */
  --accent-vivid:#4a7ab5;
  --accent-hi:#506f8f;
  --accent-soft:#dde6ef;
  --accent-ink:#fff;
  /* Famille pastel élargie — un cran plus saturé pour rester lisible sur fond clair */
  --rose:#f0a8c2;
  --coral:#f4a89a;
  --peach:#f5c0a0;
  --apricot:#f5d4a0;
  --butter:#f0d878;
  --lime:#cfdf8c;
  --mint:#a8dcc4;
  --teal:#88ccd0;
  --sky:#a8c8e8;
  --blueberry:#a8b4e0;
  --lilac:#bdacd9;
  --lavender:#d0b6e0;
  --berry:#e09bc2;
  --grape:#c594d4;
  /* Sémantiques + médailles, en pastel */
  --good:#a8dcc4;
  --bad:#f5a8a8;
  --warn:#f5d294;
  --gold:#e8c574;
  --silver:#cdd2dc;
  --bronze:#d4a07c;
  --shadow:0 1px 2px rgba(60,90,120,.10), 0 10px 28px rgba(60,90,120,.14);
  --shadow-xl:0 2px 8px rgba(60,90,120,.16), 0 24px 56px rgba(60,90,120,.22);
  --radius:16px;
}

:root.dark{
  --bg:#1f262e; --card:#2a3340; --card-soft:#252e3a;
  --ink:#e4ebf2; --ink-2:#c2ccd8; --muted:#b8c4d0;
  --line:#3a4250; --line-strong:#4d5666;
  --accent:#9bb5cf; --accent-hi:#b6cce0; --accent-soft:#3a4250;
  --rose:#f4b8cb; --coral:#f4b4a4; --peach:#f5cdac; --apricot:#f5dab0;
  --butter:#efdc8c; --lime:#d8e8a0; --mint:#b4e0c8; --teal:#a4d8d8;
  --sky:#b6d2eb; --blueberry:#b8c5e8; --lilac:#c8b8df; --lavender:#d6bce6;
  --berry:#e8a8c8; --grape:#cca4dc;
  --good:#b4e0c8; --bad:#f5b0b0; --warn:#f5d8a4;
  --gold:#eccc88; --silver:#d4d8e0; --bronze:#d8a888;
  --shadow:0 1px 2px rgba(0,0,0,.5), 0 10px 28px rgba(0,0,0,.4);
}

/* ===== Base accessibilité partagée ===== */
:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
  border-radius:6px;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}
