/* LA TOUNE — jetons de design communs (site + jeu) */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&family=Onest:wght@400;500;600;700&display=swap');

:root {
  --bleu: #2B4BFF;
  --bleu-fonce: #1A2FC9;
  --bleu-nuit: #0E1A6B;
  --rose: #FF4FA3;
  --jaune: #FFD23F;
  --menthe: #2EE6A6;
  --orange: #FF7A2F;
  --violet: #8B5CFF;
  --rouge: #E8344A;
  --sapin: #1F9E6B;
  --creme: #F4F1FF;
  --encre: #120F2E;
  --gris: #6B6888;
  --blanc: #fff;

  --f-titre: 'Bricolage Grotesque', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --f-texte: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-s: 14px;
  --r-m: 22px;
  --r-l: 32px;
  --r-xl: 44px;

  /* ombres « pâte à modeler » : relief dur en bas + halo doux */
  --relief: 0 6px 0 rgba(18, 15, 46, .18), 0 18px 40px -12px rgba(18, 15, 46, .35);
  --relief-fort: 0 10px 0 rgba(18, 15, 46, .22), 0 30px 60px -18px rgba(18, 15, 46, .45);
  --interieur: inset 0 -6px 0 rgba(0, 0, 0, .12), inset 0 4px 0 rgba(255, 255, 255, .35);

  --ressort: cubic-bezier(.34, 1.56, .64, 1);
  --doux: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-texte);
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--jaune); outline-offset: 3px; border-radius: 10px; }

.titre { font-family: var(--f-titre); font-weight: 800; letter-spacing: -.035em; line-height: .92; }

/* Bouton pâte à modeler : il s'enfonce quand on appuie */
.btn {
  --fond: var(--jaune); --texte: var(--encre); --bord: rgba(18, 15, 46, .22);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.6em; border: 0; border-radius: 999px;
  background: var(--fond); color: var(--texte);
  font-family: var(--f-titre); font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; text-decoration: none;
  box-shadow: 0 6px 0 var(--bord), var(--interieur), 0 16px 30px -10px rgba(18, 15, 46, .4);
  transform: translateY(0); transition: transform .18s var(--ressort), box-shadow .18s var(--ressort), filter .2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { transform: translateY(-2px); filter: saturate(1.08) brightness(1.03); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--bord), var(--interieur), 0 6px 12px -6px rgba(18, 15, 46, .4); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--rose { --fond: #D62D82; --texte: #fff; }
.btn--bleu { --fond: var(--bleu); --texte: #fff; }
.btn--menthe { --fond: var(--menthe); }
.btn--blanc { --fond: #fff; }
.btn--fantome { --fond: rgba(14, 26, 107, .42); --texte: #fff; --bord: rgba(0, 0, 0, .25); backdrop-filter: blur(8px); }
.btn--geant { font-size: clamp(1.2rem, 2.2vw, 1.6rem); padding: 1em 2em; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

.puce {
  display: inline-flex; align-items: center; gap: .4em; padding: .38em .9em; border-radius: 999px;
  background: rgba(255, 255, 255, .18); font-weight: 700; font-size: .86rem; letter-spacing: .01em;
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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