/* Music Ball : thème « Modern Minimal » (shadcn, 21st.dev / tweakcn), mode clair. Jetons partagés par l'accueil et le studio. */
:root {
  color-scheme: light;
  --background: oklch(1 0 0); --foreground: oklch(0.3211 0 0);
  --card: oklch(1 0 0); --card-foreground: oklch(0.3211 0 0);
  --popover: oklch(1 0 0); --popover-foreground: oklch(0.3211 0 0);
  --primary: oklch(0.6231 0.1880 259.8145); --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.9670 0.0029 264.5419); --secondary-foreground: oklch(0.4461 0.0263 256.8018);
  --muted: oklch(0.9846 0.0017 247.8389); --muted-foreground: oklch(0.5510 0.0234 264.3637);
  --accent: oklch(0.9514 0.0250 236.8242); --accent-foreground: oklch(0.3791 0.1378 265.5222);
  --destructive: oklch(0.6368 0.2078 25.3313); --destructive-foreground: oklch(1 0 0);
  --border: oklch(0.9276 0.0058 264.5313); --input: oklch(0.9276 0.0058 264.5313); --ring: oklch(0.6231 0.1880 259.8145);
  --chart-1: oklch(0.6231 0.1880 259.8145); --chart-2: oklch(0.5461 0.2152 262.8809); --chart-3: oklch(0.4882 0.2172 264.3763);
  --chart-4: oklch(0.4244 0.1809 265.6377); --chart-5: oklch(0.3791 0.1378 265.5222);
  --radius: 0.375rem;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif; --font-mono: "JetBrains Mono", ui-monospace, monospace; --font-serif: "Source Serif 4", serif;
  --shadow-sm: 0 1px 3px 0 hsl(0 0% 0% / .10), 0 1px 2px -1px hsl(0 0% 0% / .10);
  --shadow-md: 0 1px 3px 0 hsl(0 0% 0% / .10), 0 2px 4px -1px hsl(0 0% 0% / .10);
  --shadow-lg: 0 1px 3px 0 hsl(0 0% 0% / .10), 0 4px 6px -1px hsl(0 0% 0% / .10);
  --shadow-xl: 0 1px 3px 0 hsl(0 0% 0% / .10), 0 8px 10px -1px hsl(0 0% 0% / .10);
  --shadow-2xl: 0 1px 3px 0 hsl(0 0% 0% / .25);
  --ease: cubic-bezier(.16, 1, .3, 1);         /* sortie exponentielle */
  --settle: cubic-bezier(.22, 1, .36, 1);     /* arrivée douce des éléments qui apparaissent */
  --well: oklch(0.165 0 0);                    /* fond des rendus 9:16 (les vidéos restent sombres) */
  --bad: color-mix(in oklch, var(--destructive) 82%, black); /* texte d'erreur lisible sur blanc */
  --good: var(--accent-foreground);            /* texte de réussite */
  --go: color-mix(in oklch, var(--primary) 88%, black); /* bleu des boutons pleins : texte blanc à 4,8:1 */
  interpolate-size: allow-keywords;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--background); color: var(--foreground); -webkit-text-size-adjust: 100%; scrollbar-color: var(--border) var(--background); scrollbar-width: thin; }
body { margin: 0; font: 400 1rem/1.55 var(--font-sans); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
::selection { background: var(--primary); color: var(--primary-foreground); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius); }
input, select, textarea { caret-color: var(--primary); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; text-decoration-color: var(--border); transition: color .2s, text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { margin: 0; color: var(--foreground); text-wrap: balance; letter-spacing: -.025em; }
p { margin: 0; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sr:focus-visible { outline: none; }

/* boutons shadcn : .btn = outline, .btn.go = primary, .btn.ghost */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 40px; padding: 0 1rem;
  font: 500 .875rem/1 var(--font-sans); text-decoration: none; white-space: nowrap;
  color: var(--foreground); background: transparent; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--secondary); }
.btn:active { transform: translateY(1px); }
.btn.go { color: var(--primary-foreground); background: var(--go); border-color: var(--go); }
.btn.go:hover { background: color-mix(in oklch, var(--primary) 78%, black); border-color: color-mix(in oklch, var(--primary) 78%, black); }
.btn.ghost { border-color: transparent; box-shadow: none; }
.btn.lg { min-height: 48px; padding: 0 1.5rem; font-size: 1rem; font-weight: 600; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* champ shadcn */
.input { width: 100%; height: 40px; padding: 0 .75rem; font: 400 .875rem/1 var(--font-sans); color: var(--foreground); background: transparent;
  border: 1px solid var(--input); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: var(--muted-foreground); }
.input:focus-visible { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 45%, transparent); }

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