@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url('/fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url('/fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 800; font-display: swap; src: url('/fonts/outfit-latin-800-normal.woff2') format('woff2'); }

:root {
  --primary: #5B3DF5;
  --accent: #FFC83D;
  --bg: #15102E;
  --fg: #FFFFFF;
  --a0: #E5484D; --a1: #3E7BFA; --a2: #E9A800; --a3: #23A26D;
  --ok: #2BC48A; --ko: #F04B55;
  --radius: 18px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
/* Fond animé discret, teinté par la couleur principale */
body::before {
  content: ''; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 15% 10%, color-mix(in srgb, var(--primary) 55%, transparent), transparent 70%),
    radial-gradient(35% 30% at 90% 85%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(3%, -2%, 0) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { body::before, * { animation: none !important; transition: none !important; } }

button { font: inherit; color: inherit; border: 0; cursor: pointer; background: none; }
input, select, textarea { font: inherit; color: inherit; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 14px; font-weight: 800; font-size: 1.05rem;
  background: var(--accent); color: #1a1a1a;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--accent) 60%, #000);
  transition: transform .08s, box-shadow .08s, filter .15s;
  text-decoration: none;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 60%, #000); }
.btn:disabled { filter: grayscale(.7) opacity(.6); cursor: default; }
.btn.ghost { background: rgba(255,255,255,.12); color: var(--fg); box-shadow: none; }

.shape { width: 1em; height: 1em; display: inline-block; flex: none; }
.shape svg { width: 100%; height: 100%; fill: currentColor; display: block; }

.hidden { display: none !important; }

.pop { animation: pop .45s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.fade-up { animation: fadeUp .4s ease both; }
@keyframes fadeUp { from { transform: translateY(16px); opacity: 0; } }

/* Badges : joueur (photo ou avatar) et équipe (logo ou couleur) */
.bdg { --s: 1.6em; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden;
  font-size: 1em; line-height: 1; background: var(--bc, rgba(255,255,255,.16)); vertical-align: middle; box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.bdg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bdg .em { font-size: calc(var(--s) * .62); }
.bdg.tbd { border-radius: 28%; color: #fff; font-weight: 800; }
.bdg.tbd .ini { font-size: calc(var(--s) * .48); }
.bdg.tbd img { object-fit: contain; background: #fff; }
.sponsors { display: flex; flex-wrap: wrap; gap: 1.4em; align-items: center; justify-content: center; }
.sponsors img { height: var(--sh, 48px); max-width: calc(var(--sh, 48px) * 3.2); object-fit: contain; background: rgba(255,255,255,.92); border-radius: 10px; padding: 6px 10px; }
