/* Glide Odyssey — variables de marque : SOURCE UNIQUE (étape 3 de l'audit de la charte, lot B, 16 novembre 2026).
   Importée par le jeu (src/ui/styles.css, @import), par le site d'accueil (landing/, copiée en brand-tokens.css par
   `npm run landing:build`) et par les pages de compte (login/, account/, admin/ : login/brand.css, généré par
   vite.config.js). Ne plus redéclarer ces valeurs ailleurs ; ajouter ici, pas dans une feuille de page.
   Chaque valeur existait déjà dans une feuille : introduire une variable n'a rien changé au rendu. Les teintes
   presque identiques n'ont PAS été fusionnées (liste dans docs/brand/charte-graphique.md, « Variables et boutons »). */
:root {
  /* ---- Marque (charte « fidèle V2 », docs/brand/charte-graphique.md) ---- */
  --brand-navy: #082D4D;        /* bleu nuit : fonds, HUD */
  --brand-deep: #051B35;        /* bleu très profond : en-tête, overlay */
  --brand-logo-bg: #04182F;     /* fond uni des images du logo (relevé aux bords) : écrans d'entrée du jeu */
  --brand-ocean: #087FB5;
  --brand-electric: #0C68D8;
  --brand-turquoise: #18D1D1;   /* énergie, focus */
  --brand-orange: #FF9854;      /* accent, boutons principaux */
  --brand-gold: #FFC552;
  --brand-foam: #E4FDFF;
  --brand-white: #FFFFFF;
  --brand-black: #000000;

  /* ---- Texte ---- */
  --brand-ink: #0b2440;         /* texte sur fond clair */
  --brand-ink-soft: #46606d;    /* texte doux sur fond clair */
  --brand-text-soft: #c3d6e2;   /* texte doux sur fond sombre (contraste > 9:1 sur le bleu nuit) */
  --brand-text-muted: #a9c0d0;  /* texte discret sur fond sombre */
  --brand-link: #066a8f;        /* accent texte sur fond clair (récompense, « fait ») */
  --brand-teal: #0f86a3;        /* sélection, flèche de vent sur fond clair */
  --brand-teal-deep: #086e83;   /* lien, contour de sélection */
  --brand-orange-strong: #ff7a2e; /* pastille / sélection de course */
  --brand-orange-ink: #c45f12;  /* record, texte orange sur fond clair */

  /* ---- Surfaces, verre, bords ---- */
  --brand-surface: #fffaf1;     /* carte claire (papier) */
  --brand-surface-mint: #e6f4f0;  /* encart vert d'eau (coche, message de conditions) */
  --brand-surface-sky: #e3f7f8;   /* encart bleu clair (défi réussi, option cochée) */
  --brand-line: #dce4e1;        /* filet sur fond clair */
  --brand-glass: rgba(8, 45, 77, .6);       /* verre bleu nuit : HUD, barres */
  --brand-glass-deep: rgba(5, 27, 53, .72); /* verre plus dense : boîtes de menu */
  --brand-glass-light: rgba(255, 250, 241, .9);
  --brand-glass-line: rgba(255, 255, 255, .18); /* bord ou piste sur verre */
  --brand-shadow-ink: #052c3e;  /* ombre portée du texte sur le paysage */
  --brand-night: #03122a;       /* bas du dégradé des pages de compte et pied du site */
  --brand-info: #e4eefb;        /* encart d'information sur fond clair */
  --brand-info-ink: #1d4b80;
  --brand-surface-mint-ink: #1c635a; /* texte sur l'encart vert d'eau */
  --brand-sea: #2a8fb5;         /* fond des vues de course (mer) */

  /* ---- États ---- */
  --brand-success: #1f9d55;
  --brand-success-line: #9af0c0; /* liseré « prêt » sur fond sombre */
  --brand-success-ink: #0f7a52; /* texte « devant / premier » sur fond clair */
  --brand-ok-text: #9ff0d9;     /* confirmation sur fond sombre (pages de compte) */
  --brand-alert: #ff9b6b;       /* alerte douce : « en retard », rythme bas */
  --brand-alert-soft: #ffb07a;
  --brand-danger: #ff5f6d;
  --brand-danger-text: #ffb4a6; /* erreur sur fond sombre (pages de compte) */
  --brand-danger-line: #ff8a7a; /* champ invalide sur fond sombre */

  /* ---- HUD : jauge de surtoile (bon / moyen / mauvais) et jauge d'endurance du surf ---- */
  --brand-hud-good: #6fdc8c;
  --brand-hud-mid: #ffa43c;
  --brand-hud-bad: var(--brand-danger);
  --brand-stamina-good: #7be0a6;  /* teintes voisines des précédentes, gardées telles quelles (à unifier plus tard) */
  --brand-stamina-mid: #ffd166;
  --brand-stamina-bad: #ff7a5c;

  /* ---- Rayons (4) ---- */
  --brand-radius-sm: 10px;
  --brand-radius-md: 12px;
  --brand-radius-lg: 18px;
  --brand-radius-pill: 999px;

  /* ---- Ombres (3) ---- */
  --brand-shadow: 0 18px 50px rgba(3, 30, 45, .35);       /* cartes et fenêtres */
  --brand-shadow-sm: 0 4px 14px rgba(5, 27, 53, .35);     /* pastilles, infobulles */
  --brand-shadow-button: 0 8px 24px rgba(255, 152, 84, .4); /* bouton principal orange */

  /* ---- Échelle typographique (6 tailles) ---- */
  --brand-fs-xs: .72rem;
  --brand-fs-sm: .8rem;
  --brand-fs-md: .85rem;
  --brand-fs-lg: .9rem;
  --brand-fs-xl: 1.05rem;
  --brand-fs-2xl: 1.5rem;

  /* ---- Cible tactile minimale ---- */
  --tap: 44px;

  /* ---- Police : Outfit (embarquée, fonts.css), repli système ---- */
  --brand-font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Police Outfit embarquée (décision du propriétaire du 2 novembre 2026) : plus de Google Fonts, ni sur le site ni
   dans l'app (la police s'affiche hors ligne, et l'adresse IP du joueur ne part plus chez Google).

   Fichiers : les deux sous-ensembles que Google Fonts servait (Outfit v15, police variable 100–900), octet pour
   octet — `latin` couvre le français, l'anglais, l'allemand, l'espagnol et l'italien (Œ, €, guillemets, tirets) ;
   `latin-ext` n'est téléchargé que si un texte en a besoin (pseudo turc, polonais…), grâce à unicode-range.
   Licence SIL Open Font License 1.1 : public/licenses/Outfit-OFL.txt.

   Quatre déclarations par sous-ensemble, comme `wght@300;400;600;800` de Google, plutôt qu'une seule plage
   300–800 : c'est ce qui garde le rendu identique (un `font-weight: 700` reste dessiné en 800, un 500 en 400). Les
   quatre pointent vers le même fichier, téléchargé une seule fois. Poids lus dans le CSS du jeu : 300, 400, 600, 800
   (et 500/700, qui retombent sur 400/800). Le fichier `latin` est préchargé par vite.config.js (fontPreload). */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/outfit-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/outfit-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/outfit-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/outfit-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/outfit-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/outfit-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/outfit-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/outfit-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
