/* Les locaux Ventouze & Compagnie : valeurs communes à toutes les pièces.
   Primitives reprises du jeu (ou est ventouze/compagnie/site/jeu/jeu.css). Les composants ne lisent que la couche « rôles ». */
@font-face{font-family:'Fredoka Variable';font-weight:300 700;font-display:swap;src:url(fonts/fredoka-latin-wght-normal.woff2) format('woff2-variations')}

:root{
  /* 1. Primitives (jamais dans un composant) */
  --p-sand:#ffe28a; --p-sand-2:#f6cf68; --p-gold:#ffd21f; --p-tennis:#d9f23a; --p-night:#252a7a; --p-night-2:#151947;
  --p-white:#ffffff; --p-ink:#1d1a2b; --p-muted:#4a4560; --p-coral:#ff6a55; --p-sky:#8fd6ff; --p-line:#cfe9ff;
  --p-wood:#b5632b; --p-wood-2:#d98a4a; --p-lock:#8a8fa8;

  /* 2. Rôles */
  --fond-ecran:var(--p-night-2);
  --sol:var(--p-sand); --sol-tapis:var(--p-sky); --mur:var(--p-night); --plinthe:var(--p-wood);
  --bois:var(--p-wood-2); --bois-fonce:var(--p-wood);
  --encre:var(--p-ink); --texte:var(--p-ink); --texte-2:var(--p-muted); --texte-clair:var(--p-white); --texte-clair-2:var(--p-line);
  --surface:var(--p-sand); --surface-papier:var(--p-sand-2); --surface-nuit:var(--p-night); --surface-ecran:var(--p-night-2);
  --action:var(--p-gold); --tourne:var(--p-tennis); --attend:var(--p-coral); --dort:var(--p-lock);
  --filet:rgb(29 26 43 / .16); --filet-clair:rgb(255 255 255 / .22); --voile:rgb(21 25 71 / .6); --voile-touche:rgb(255 210 31 / .28);

  /* Fiche ouverte : chaque meuble règle ces quatre rôles pour son habillage */
  --fiche-fond:var(--surface); --fiche-texte:var(--texte); --fiche-texte-2:var(--texte-2); --fiche-filet:var(--filet);

  /* Typographie */
  --police:'Fredoka Variable',ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif;
  --t-mini:12px; --t-legende:13px; --t-texte:16px; --t-titre:20px; --t-grand:26px;
  --lh-titre:1.1; --lh-texte:1.45; --gras:700; --demi:600; --normal:450;

  /* Espacement (base 4) */
  --e-1:4px; --e-2:8px; --e-3:12px; --e-4:16px; --e-5:24px; --e-6:32px;

  /* Trait, coins, ombres dures */
  --trait:3px; --trait-fin:2px; --r-1:10px; --r-2:18px; --r-rond:999px;
  --ombre:0 6px 0 var(--encre); --ombre-appui:0 3px 0 var(--encre);

  /* Tailles */
  --cible:44px; --cible-grande:56px; --colonne:520px; --pastille:24px; --plaque-haut:22px; --plaque-salle:28px; --fiche-haut:82dvh; --vignette:112px; --lecture:64px; --lignes-extrait:2;
  --mur-haut:18%; --joueur-large:17%; --endormi:.35; --endormi-texte:.6; --serre:-.01em; --lh-serre:1.25;
  --ombre-sol:rgb(29 26 43 / .22);

  /* Mouvement */
  --d-appui:80ms; --d-fiche:220ms; --d-souffle:1400ms; --vitesse:.9; /* --vitesse : largeurs de pièce par seconde, lu par salle.js */
  --courbe:cubic-bezier(.2,.8,.3,1);

  --haut-sur:env(safe-area-inset-top,0px); --bas-sur:env(safe-area-inset-bottom,0px);
}
