:root {
  --bg: #0d0b1e;
  --bg-2: #161331;
  --card: #1d1940;
  --line: #2e2960;
  --text: #f6efe4;
  --muted: #a49fc4;
  --orange: #ff6b1a;
  --orange-2: #ffb347;
  --pink: #ff3d7f;
  --teal: #2ee6c5;
  --radius: 18px;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background:
    radial-gradient(1200px 600px at 85% -10%, #3a1d5c 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #3b1630 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* ---------- Barre du haut ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(13, 11, 30, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 1px;
}

.brand em { font-style: normal; color: var(--orange); margin-left: 4px; }

.nav { display: flex; gap: 6px; margin-right: auto; }

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}

.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); background: var(--card); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font: 700 15px var(--body);
  color: #1a0f08;
  background: linear-gradient(135deg, var(--orange-2), var(--orange) 55%, var(--pink));
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(255, 107, 26, .7);
  transition: transform .15s, box-shadow .15s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(255, 107, 26, .9); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-small { padding: 9px 18px; font-size: 14px; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-ghost:hover { border-color: var(--orange); box-shadow: none; }

main { flex: 1; outline: none; }

.page { padding: clamp(24px, 5vw, 64px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; animation: rise .45s ease both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .5px; line-height: 1; margin: 0; }
h2 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 17px; max-width: 560px; }

/* ---------- Accueil ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(56px, 9vw, 120px);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 .stroke { color: transparent; -webkit-text-stroke: 2px var(--text); }
.hero h1 .hot {
  background: linear-gradient(90deg, var(--orange-2), var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 34px; }

.stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stats b { display: block; font-family: var(--display); font-size: 34px; font-weight: 400; }
.stats span { color: var(--muted); font-size: 13px; }

.art { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: center; }
.art svg { width: 100%; height: 100%; display: block; }
.art .ball { transform-origin: 300px 250px; animation: bounce 2.8s cubic-bezier(.5, 0, .5, 1) infinite; }

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(26px) rotate(14deg); }
}

.floating-card {
  position: absolute;
  background: rgba(29, 25, 64, .85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  box-shadow: 0 20px 40px -20px #000;
}

.floating-card strong { display: block; font-size: 15px; }
.floating-card .up { color: var(--teal); font-weight: 700; }
.fc-1 { top: 8%; left: -4%; animation: drift 6s ease-in-out infinite; }
.fc-2 { bottom: 10%; right: -2%; animation: drift 7s ease-in-out infinite reverse; }

@keyframes drift { 50% { transform: translateY(-10px); } }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(48px, 8vw, 96px);
}

.feature {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.feature .num { font-family: var(--display); font-size: 44px; color: var(--orange); line-height: 1; }
.feature h3 { font-size: 26px; margin: 10px 0 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

.marquee {
  margin-top: 64px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  white-space: nowrap;
}

.marquee div {
  display: inline-block;
  animation: scroll 30s linear infinite;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--muted);
}

.marquee span { color: var(--orange); margin: 0 18px; }

@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Équipe ---------- */

.builder { display: grid; grid-template-columns: 1fr 380px; gap: 28px; margin-top: 28px; }

.court {
  position: relative;
  border-radius: 24px;
  aspect-ratio: 16 / 11;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 38px, rgba(255,255,255,.03) 38px 76px),
    linear-gradient(160deg, #d9893f, #b8642a);
  border: 4px solid #f6efe4;
  overflow: hidden;
}

.court svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }

.slot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 108px;
  text-align: center;
}

.slot .chip {
  width: 64px;
  height: 64px;
  margin: 0 auto 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 22px;
  color: var(--text);
  background: rgba(13, 11, 30, .55);
  border: 2px dashed rgba(246, 239, 228, .7);
}

.slot.filled .chip { background: var(--bg); border: 3px solid var(--orange); box-shadow: 0 10px 24px -8px #000; }

.slot .label {
  font-size: 12px;
  font-weight: 700;
  background: rgba(13, 11, 30, .8);
  border-radius: 8px;
  padding: 3px 6px;
  display: inline-block;
}

.team-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }

.budget { flex: 1; min-width: 200px; }
.budget-track { height: 10px; border-radius: 999px; background: var(--card); overflow: hidden; margin-top: 6px; }
.budget-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--orange)); transition: width .3s; }
.budget small { color: var(--muted); }

.roster { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; max-height: 640px; overflow: auto; }
.roster h3 { font-size: 24px; margin-bottom: 12px; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filters button {
  font: 600 12px var(--body);
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.filters button.on { color: #1a0f08; background: var(--orange); border-color: var(--orange); }

.player {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}

.player:hover { background: var(--card); }
.player.picked { border-color: var(--orange); background: rgba(255, 107, 26, .08); }
.player .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #1a0f08; }
.player .name { font-weight: 600; font-size: 14px; }
.player .meta { font-size: 12px; color: var(--muted); }
.player .price { font-family: var(--display); font-size: 20px; }

/* ---------- Paris ---------- */

.bets { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 28px; }

.match {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
}

.match-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.live { color: var(--pink); font-weight: 700; }
.live::before { content: "● "; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }

.odds { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.odds .vs { font-family: var(--display); color: var(--muted); }

.odd {
  text-align: left;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.odd:hover { border-color: var(--orange); }
.odd.on { border-color: var(--orange); background: rgba(255, 107, 26, .12); }
.odd .team { display: block; font-weight: 700; font-size: 15px; }
.odd .owner { display: block; font-size: 12px; color: var(--muted); }
.odd .q { display: block; font-family: var(--display); font-size: 26px; color: var(--orange-2); margin-top: 4px; }

.slip { position: sticky; top: 90px; align-self: start; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.slip h3 { font-size: 26px; margin-bottom: 12px; }
.slip .empty { color: var(--muted); font-size: 14px; }
.slip-line { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.stake-field { display: grid; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.stake-field input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.gain { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0; }
.gain b { font-family: var(--display); font-size: 30px; font-weight: 400; color: var(--teal); }
.slip .btn { width: 100%; }

/* ---------- Ligue ---------- */

.table { width: 100%; border-collapse: collapse; margin-top: 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.table td.rank { font-family: var(--display); font-size: 24px; color: var(--orange); width: 60px; }
.table tr:last-child td { border-bottom: 0; }
.trend.up { color: var(--teal); }
.trend.down { color: var(--pink); }

/* ---------- Divers ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  visibility: hidden;
  opacity: 0;
  transition: transform .3s, opacity .3s;
  z-index: 20;
  max-width: calc(100vw - 32px);
}

.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

@media (max-width: 960px) {
  .hero, .builder, .bets { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .slip { position: static; }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
}

@media (max-width: 680px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; margin: 0; }
  .brand { margin-right: auto; }
  .slot { width: 72px; }
  .slot .chip { width: 44px; height: 44px; font-size: 16px; }
  .slot .label { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Contrôles et adaptation des contenus */
button.slot { border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; }
button.player { width: 100%; text-align: left; background: transparent; color: inherit; font: inherit; }
button.player.picked { background: rgba(255, 107, 26, .08); }
button.player:hover { background: var(--card); }
.player > span:nth-child(2) { min-width: 0; }
.player .name, .player .meta { display: block; }
.avatar { background: var(--orange-2); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.hero > *, .builder > *, .bets > * { min-width: 0; }
.demo-note { font-size: 13px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.table caption { text-align: left; padding-bottom: 12px; color: var(--muted); }
.table .owner { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 680px) {
  .nav { gap: 2px; justify-content: space-between; }
  .nav a { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
  .hero h1 { font-size: clamp(50px, 14vw, 82px); }
  .match { padding: 14px; }
  .odds { gap: 6px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .odd { padding: 10px; overflow-wrap: anywhere; }
  .odd .team { font-size: 13px; }
  .table th, .table td { padding: 12px 8px; font-size: 12px; }
  .table th { letter-spacing: 0; }
}

.table tbody th { text-transform: none; letter-spacing: 0; color: var(--text); }
