/* ============================================================
   Fog Bracket — design system aligné sur le banana game,
   variante Fog DBD (brouillard + sang).
   Structure banana : fond radial + grille, container 1100px,
   boutons HUD, cards avec liseré dégradé, hero, tables sobres,
   modal, toast, footer. Noms de classes conservés pour le JS.
   ============================================================ */

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
img { user-select: none; -webkit-user-drag: none; }
html { scroll-behavior: smooth; background: #080b10; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  background:
    radial-gradient(circle at 50% -10%, rgba(168, 85, 247, 0.18), transparent 45%),
    radial-gradient(circle at 8% 65%, rgba(255, 229, 47, 0.05), transparent 35%),
    radial-gradient(circle at 92% 25%, rgba(168, 85, 247, 0.13), transparent 38%),
    /* Halo ancré en bas du viewport : jamais de vide noir autour du footer */
    radial-gradient(ellipse 60% 45% at 50% 108%, rgba(126, 54, 210, 0.16), transparent 70%),
    linear-gradient(135deg, #090b10 0%, #0b0d12 48%, #080b10 100%);
  background-attachment: fixed;
  padding: 0;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}
button, input, select, textarea { font-family: var(--font-body); font-size: 16px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
/* Garde-fou global : le display custom des boutons/cards ne doit jamais
   réafficher un élément portant l'attribut hidden. */
[hidden] { display: none !important; }

/* Révélation douce (posée par JS si besoin) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in-view { opacity: 1; transform: none; }

[data-active="true"] { background: var(--yellow) !important; color: #17120a !important; font-weight: 700; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.4; }

/* ---------- Topbar Fog Bracket ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(15, 14, 25, 0.98), rgba(9, 10, 18, 0.96));
  border-bottom: 1px solid rgba(168, 85, 247, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}
/* Petite ligne lumineuse en bas */
.topbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(168, 85, 247, 0.25) 20%, #8b3dff 50%, rgba(168, 85, 247, 0.25) 80%, transparent 100%);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}
.topbar h1 {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #d8b4fe 55%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.22));
}
.topbar .eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a855f7;
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.topbar .actions button.ghost {
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.30);
  background: rgba(168, 85, 247, 0.06);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.78rem;
}
.topbar .actions button.ghost:hover {
  color: #fff;
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.20);
}
/* Liens d'action (ex: Accueil) : même look que les boutons ghost. */
.actions a.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 9px 18px;
  min-height: 40px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.actions a.ghost:hover { color: var(--yellow); border-color: var(--yellow); background: rgba(255,229,47,0.06); }

/* ---------- Boutons façon banana ---------- */
button, .file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
  background: linear-gradient(180deg, #181622 0%, #0d1016 100%);
  border: 2px solid var(--yellow);
  border-radius: 5px;
  padding: 9px 18px;
  min-height: 40px;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  box-shadow: inset 0 0 0 1px rgba(255,229,47,0.08);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
button:hover, .file-btn:hover { background: linear-gradient(180deg, #fff06a 0%, var(--yellow) 100%); color: #17120a; border-color: #fff3a0; box-shadow: 0 0 10px rgba(255,229,47,0.35), inset 0 0 8px rgba(255,255,255,0.35); transform: translateY(-1px); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.55; cursor: wait; }
button.primary {
  background: linear-gradient(180deg, #fff06a, #e6b900);
  color: #1c1917;
  border-color: transparent;
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 4px 14px rgba(230,185,0,0.3);
  overflow: hidden;
}
button.primary::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent); transform: skewX(-20deg); transition: left 0.5s ease; }
button.primary:hover:not(:disabled) { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 0 18px rgba(255,215,0,0.4); color: #1c1917; }
button.primary:hover:not(:disabled)::after { left: 130%; }
button.success { border-color: var(--green-deep); color: var(--green); }
button.success:hover { background: linear-gradient(180deg, #4ade80, #1f9d5c); color: #06130b; border-color: #bbf7d0; }
button.danger, .dropdown-item.danger { border-color: var(--blood); color: #d8b4fe; }
button.danger { background: linear-gradient(180deg, #1e1033, #120a20); }
button.danger:hover { background: linear-gradient(180deg, var(--blood), #6d28d9); color: #fff; border-color: #d8b4fe; }
button.ghost, .file-btn { background: rgba(0,0,0,0.25); border: 1px solid var(--border); color: var(--text-dim); text-transform: none; letter-spacing: 0.02em; font-size: 0.85rem; box-shadow: none; text-shadow: none; }
button.ghost:hover { color: var(--yellow); border-color: var(--yellow); background: rgba(255,229,47,0.06); box-shadow: none; }
.file-btn input { display: none; }

/* ---------- Inputs ---------- */
input, select, textarea {
  width: 100%;
  background: #1b1825;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(255,229,47,0.15); }
input::placeholder, textarea::placeholder { color: #6f6a84; }

/* ---------- Layout ---------- */
main, .page { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
/* Page tournoi : contenu dense (poules, tableaux) -> pleine largeur */
.page--wide { max-width: 1500px; }
.nav { display: flex; gap: 10px; padding: 16px clamp(16px, 4vw, 40px); overflow-x: auto; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.25); justify-content: center; flex-wrap: wrap; }
.nav button { white-space: nowrap; flex: 0 0 auto; }
.nav button.active { background: linear-gradient(180deg, #fff06a, var(--yellow)); color: #17120a; border-color: #fff3a0; box-shadow: 0 0 10px rgba(255,229,47,0.35); }

/* ---------- Hero façon banana, teinte Fog ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
  padding: 28px 30px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(55% 130% at 90% 50%, rgba(168, 85, 247, 0.24), transparent 70%),
    radial-gradient(40% 120% at 10% 50%, rgba(255, 229, 47, 0.08), transparent 70%),
    linear-gradient(145deg, rgba(23, 21, 32, 0.98), rgba(11, 14, 19, 0.98));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.hero-art { position: absolute; right: -16px; top: 50%; transform: translateY(-50%) rotate(-12deg); font-size: 8rem; line-height: 1; opacity: 0.13; pointer-events: none; user-select: none; filter: saturate(1.2); }
.hero-text { position: relative; min-width: 0; }
.hero-eyebrow { margin: 0 0 8px; font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--yellow); }
.hero h2, .hero-title { margin: 0 0 10px; font-size: clamp(1.3rem, 3.2vw, 1.9rem); font-weight: 800; color: #fff; text-shadow: 0 0 14px rgba(168,85,247,0.45); }
.hero p, .hero-tagline { margin: 0; font-size: 0.95rem; color: var(--text-dim); max-width: 60ch; }
.hero-live { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 170px; }
.hero-live-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border); background: rgba(0,0,0,0.35); text-align: right; }
.hero-live-value { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--yellow); text-shadow: 0 0 8px rgba(255,225,53,0.4); }
.hero-live-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }

/* ---------- Sections façon category-block ---------- */
.category-block { margin-bottom: 32px; }
.category-block > h2, .section-title h2 {
  font-size: 1.05rem; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--yellow); border-bottom: 1px solid #3b354a; padding-bottom: 7px;
  display: inline-flex; align-items: center; gap: 8px;
}
.category-block > h2::after, .section-title h2::after {
  content: ''; display: block; width: 55%; height: 2px; margin-top: 5px;
  background: linear-gradient(90deg, var(--blood), var(--yellow), transparent);
  box-shadow: 0 0 7px rgba(168, 85, 247, 0.4);
}
.section-title { display: flex; align-items: center; gap: 12px; padding: 4px 0 6px; margin-top: 22px; }

/* ---------- Grilles ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-grid, .rewards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

/* ---------- Cards façon reward-card, liseré sang→lampe ---------- */
.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(23, 21, 32, 0.98), rgba(11, 14, 19, 0.98));
  border: 1px solid #302c40;
  border-radius: 12px;
  padding: 18px 19px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.025);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: cardIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.grid > :nth-child(2), .home-grid > :nth-child(2) { animation-delay: 0.05s; }
.grid > :nth-child(3), .home-grid > :nth-child(3) { animation-delay: 0.1s; }
.grid > :nth-child(4), .home-grid > :nth-child(4) { animation-delay: 0.15s; }
.grid > :nth-child(n+5) { animation-delay: 0.2s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blood), var(--yellow), transparent);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4); opacity: 0.9;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255,229,47,0.4); box-shadow: 0 14px 30px rgba(0,0,0,0.5), 0 0 20px rgba(168,85,247,0.16); }
.card h3 { margin: 0; font-size: 0.95rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card p { color: var(--text-dim); margin: 0; }
.team { border-left: 2px solid var(--blood); }
.team-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.small { font-size: 0.85rem; color: var(--text-dim); }

/* Cartes tournois accueil */
.tournament-card { cursor: default; opacity: 0.75; }
.tournament-card.can-access { cursor: pointer; opacity: 1; }
.tournament-card h4 { margin: 0; font-size: 0.95rem; color: #fff; }
.card-locked { display: flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 0.85rem; }
.empty-msg, .empty { text-align: center; color: var(--text-dim); padding: 40px 20px; border: 1px dashed var(--border); border-radius: 14px; background: rgba(0,0,0,0.25); }
/* Hero sans stats : une seule colonne, plus compact */
.hero--simple { grid-template-columns: 1fr; padding: 24px 26px; }

/* ---------- Hero accueil : design premium ---------- */
.hero--home {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 490px;
  padding: 42px 48px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 90% 50%, rgba(126, 54, 210, 0.22), transparent 58%),
    linear-gradient(145deg, rgba(18, 17, 29, 0.98), rgba(10, 12, 20, 0.98));
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 45px rgba(168, 85, 247, 0.10);
}
/* Contenu à gauche */
.hero--home .hero-text {
  position: relative;
  z-index: 2;
  max-width: 650px;
}
/* Petit titre */
.hero--home .hero-eyebrow {
  color: var(--fog);
  font-weight: 500;
  letter-spacing: 0.32em;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.hero--home .hero-eyebrow::after {
  content: '';
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), transparent);
}
/* Gros titre réduit */
.hero--home .hero-title {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
/* Texte violet */
.hero-title-accent {
  background: linear-gradient(180deg, #e0c5ff 0%, #b27aff 55%, #8b3dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.35));
}
/* Introduction */
.hero--home .hero-intro {
  margin: 0 0 22px;
  max-width: 600px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #c6c1d6;
}
.hero--home .hero-intro b { color: #fff; }
/* ---------- Logo géant incliné ---------- */
.hero--home .hero-visual {
  position: absolute;
  top: 50%;
  right: -145px;
  width: 690px;
  height: 690px;
  min-height: 0;
  z-index: 0;
  transform: translateY(-50%) rotate(16deg);
  pointer-events: none;
}
/* Logo */
.hero--home .hero-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.42;
  /* Fondu vers la gauche */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 18%, #000 42%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 18%, #000 42%, #000 100%);
  filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.35)) drop-shadow(0 0 55px rgba(126, 54, 210, 0.20));
}
/* ---------- Section fonctionnalités ---------- */
.hero--home .hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b27aff;
}
.hero--home .hero-kicker::after {
  content: '';
  height: 1px;
  width: 110px;
  background: linear-gradient(90deg, #a855f7, transparent);
}
.hero--home .hero-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0 0 26px;
  padding: 0;
}
.hero--home .hero-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #c6c1d6;
  font-size: 0.9rem;
  line-height: 1.5;
}
.hero--home .hero-points b { color: #fff; font-weight: 700; }
/* Icônes violettes */
.hero--home .hero-ico {
  flex: 0 0 auto;
  width: 38px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.10);
  border: 1px solid rgba(168, 85, 247, 0.25);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  color: #c084fc;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero--home .hero-ico svg {
  width: 19px;
  height: 19px;
  color: #c084fc;
}
.hero--home .btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #c084fc, #9333ea 55%, #7c3aed);
  border: 1px solid rgba(216, 180, 254, 0.45);
  border-radius: 6px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  filter: drop-shadow(0 6px 16px rgba(139, 92, 253, 0.45));
  transition: filter 0.2s ease, transform 0.2s ease;
}
.hero--home .btn-accent:hover {
  filter: brightness(1.15) drop-shadow(0 8px 24px rgba(139, 92, 253, 0.65));
  transform: translateY(-2px);
}
.hero-points b { color: #fff; font-weight: 700; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-accent, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 22px;
  min-height: 42px;
  border-radius: 6px;
  transition: filter 0.15s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-accent {
  background: linear-gradient(180deg, #c084fc, #8b3dff);
  color: #fff;
  border: 1px solid transparent;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  padding-left: 30px;
  padding-right: 30px;
  /* Ombre via drop-shadow : le clip-path rognerait un box-shadow classique */
  filter: drop-shadow(0 6px 16px rgba(139, 92, 253, 0.45));
}
.btn-accent:hover { filter: brightness(1.12); transform: translateY(-1px); color: #fff; }
.btn-outline { border: 1px solid #c9c4d8; color: #e8e4f2; background: transparent; }
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }
/* Emblème bien présent à droite, fondu sur son bord gauche pour
   laisser le texte lisible par-dessus */
.hero-visual { position: absolute; top: 50%; right: -40px; width: 380px; min-height: 0; z-index: 0; transform: translateY(-50%); }
.hero-logo {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%);
  mask-image: linear-gradient(to right, transparent 0, #000 38%);
  filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.35));
}
/* Connexion accueil : petit panneau dépliable, pas un gros bloc central */
.login-inline { max-width: 340px; margin: 0 0 20px auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: linear-gradient(145deg, rgba(23,21,32,0.98), rgba(11,14,19,0.98)); box-shadow: 0 8px 24px rgba(0,0,0,0.42); }
.login-inline[hidden] { display: none; }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-row { margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 2px; }
.row { display: flex; gap: 8px; align-items: center; }

/* ============================================================
   TABLEAUX — STYLE RÉSULTATS TOURNOI
   ============================================================ */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.16);
  background: linear-gradient(180deg, rgba(7, 8, 13, 0.72), rgba(4, 5, 9, 0.82));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  table-layout: auto;
  min-width: 640px;
}
.page--wide table { min-width: 0; }
/* ------------------------- En-tête ------------------------- */
thead { background: linear-gradient(180deg, rgba(168, 85, 247, 0.08), rgba(168, 85, 247, 0.025)); }
th {
  text-align: left;
  padding: 12px 10px;
  color: #d9c8ff;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid rgba(168, 85, 247, 0.20);
  overflow-wrap: anywhere;
}
th:first-child { border-top-left-radius: 10px; }
th:last-child { border-top-right-radius: 10px; }
/* ------------------------- Cellules ------------------------- */
td {
  text-align: left;
  padding: 12px 10px;
  color: #c4bfd2;
  vertical-align: middle;
  border-bottom: 1px solid rgba(48, 45, 66, 0.52);
  /* Les longs pseudos passent à la ligne au lieu d'étirer le tableau */
  overflow-wrap: anywhere;
  transition: color 0.15s ease, background 0.15s ease;
}
/* Dernière ligne */
tbody tr:last-child td { border-bottom: none; }
/* ------------------------- Lignes ------------------------- */
tbody tr { position: relative; transition: background 0.18s ease, transform 0.18s ease; }
tbody tr:hover { background: linear-gradient(90deg, rgba(168, 85, 247, 0.09), rgba(168, 85, 247, 0.035), transparent); }
tbody tr:hover td { color: #eeeaf7; }
/* Petite ligne lumineuse au survol */
tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 #a855f7; }
/* ------------------------- Rang ------------------------- */
.rank { font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: #f4efff; }
/* Rang 1 */
tbody tr:first-child .rank { color: #ffd21c; text-shadow: 0 0 8px rgba(255, 210, 28, 0.35); }
/* Rang 2 */
tbody tr:nth-child(2) .rank { color: #c8d0dc; }
/* Rang 3 */
tbody tr:nth-child(3) .rank { color: #d89455; }
/* ------------------------- Survivant ------------------------- */
.survivor { color: #f0ecf8; font-family: var(--font-display); font-weight: 600; }
/* ------------------------- Temps ------------------------- */
.time-input {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.05em;
  min-width: 110px;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 229, 47, 0.15);
}
.table-wrap .time-input, .table-wrap input[data-pallet] { height: 42px; text-align: center; font-size: 1rem; }
/* ------------------------- Palettes ------------------------- */
input[data-pallet], .pallet-input, .multi-pal { text-align: center; min-width: 72px; }
/* Boutons Enregistrer des poules/boîtes : centrés et aérés, pas collés au bord */
.save-poule, .save-killer {
  display: flex;
  margin: 14px auto 4px;
  padding: 10px 28px;
}
/* ------------------------- Statuts ------------------------- */
.qual { color: #86efac; font-weight: 700; }
.elim { color: #8f899f; }
/* ------------------------- Badges dans les tableaux ------------------------- */
table .badge {
  padding: 5px 11px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  background: rgba(168, 85, 247, 0.07);
  border-color: rgba(168, 85, 247, 0.38);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.06);
}
table .badge.green {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.38);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.08);
}
table .badge.gold {
  background: rgba(255, 210, 28, 0.08);
  border-color: rgba(255, 210, 28, 0.40);
  box-shadow: 0 0 10px rgba(255, 210, 28, 0.08);
}
/* ------------------------- Colonnes ------------------------- */
th:nth-child(1), td:nth-child(1) { width: 52px; text-align: center; }
th:nth-child(4), td:nth-child(4) { min-width: 128px; text-align: center; }
th:nth-child(5), td:nth-child(5) { min-width: 96px; text-align: center; }
th:nth-child(6), td:nth-child(6) { text-align: center; white-space: nowrap; }
th:nth-child(7), td:nth-child(7) { text-align: center; white-space: nowrap; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 12px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; font-family: var(--font-display); letter-spacing: 0.04em; background: #191722; color: var(--yellow); border: 1px solid var(--border); white-space: nowrap; }
.badge.green { background: rgba(74,222,128,0.12); color: #86efac; border-color: rgba(74,222,128,0.4); }
.badge.gold { background: rgba(255,210,28,0.1); color: var(--gold); border-color: rgba(255,210,28,0.4); }
.badge.red { background: rgba(168,85,247,0.12); color: #d8b4fe; border-color: rgba(168,85,247,0.45); }
.killer { color: var(--blood); font-weight: 700; }

/* ---------- Matchs ---------- */
.match-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; }
.match-box { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: rgba(0,0,0,0.35); display: flex; flex-direction: column; gap: 8px; }
.match-box h4 { margin: 0; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); }
.match-box .killer { min-height: 24px; }
.match-box .row { display: grid; grid-template-columns: minmax(0,1fr) minmax(120px,150px); gap: 10px; width: 100%; align-items: end; }
.match-box input { height: 46px; font-size: 1rem; }
.match-box .multi-time { text-align: center; font-size: 1.1rem; font-family: var(--font-display); }
.match-box .form-row { margin-bottom: 8px; }
.match-box .save-match { width: 100%; margin-top: 8px; }

/* ---------- Divers ---------- */
.pill { padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,0.4); border: 1px solid var(--border); font-size: 0.75rem; }
.warning { border: 1px solid rgba(255,210,28,0.4); background: rgba(255,210,28,0.07); color: #ffe98a; padding: 12px 14px; border-radius: 10px; }
.success-box { border: 1px solid rgba(74,222,128,0.4); background: rgba(74,222,128,0.08); color: #bbf7d0; padding: 12px 14px; border-radius: 10px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 99; padding: 12px 18px; border-radius: 999px; background: linear-gradient(180deg, #181622, #0d1016); border: 1px solid var(--yellow); color: var(--yellow); font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; opacity: 0; transform: translateY(10px); pointer-events: none; transition: 0.2s; box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 14px rgba(255,229,47,0.2); }
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: linear-gradient(145deg, rgba(23,21,32,0.98), rgba(11,14,19,0.98)); border: 1px solid var(--border); border-radius: 14px; padding: 24px; width: min(380px, 94vw); box-shadow: 0 14px 40px rgba(0,0,0,0.6); }
.modal-box h3 { color: var(--yellow); margin: 0 0 8px; }
.modal-box input, .modal-box select { margin-top: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.error { color: #ff8fa3; min-height: 1.2em; margin-top: 8px; font-size: 0.85rem; }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; display: inline-block; }
.dropdown[hidden] { display: none; }
.dropdown-panel { position: absolute; right: 0; top: calc(100% + 6px); background: linear-gradient(180deg, #181622, #0d1016); border: 1px solid var(--yellow); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 2px; min-width: 250px; z-index: 40; box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 12px rgba(255,229,47,0.12); }
.dropdown-panel[hidden] { display: none; }
.dropdown-item { width: 100%; text-align: left; background: transparent; border: none; box-shadow: none; padding: 10px 12px; border-radius: 6px; cursor: pointer; color: var(--text); font-family: var(--font-body); font-size: 0.9rem; text-transform: none; letter-spacing: 0; min-height: 0; }
.dropdown-item:hover { background: rgba(255,229,47,0.1); color: var(--yellow); border: none; box-shadow: none; transform: none; }

/* ---------- Login déroulant dans la topbar ---------- */
.login-dropdown { position: relative; display: inline-block; }
.login-dropdown[hidden] { display: none; }
.login-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--yellow);
  background: linear-gradient(180deg, #181622, #0d1016);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 14px rgba(255,229,47,0.15);
  z-index: 50;
  animation: dropIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: top right;
}
.login-panel[hidden] { display: none; }
.login-panel h3 { margin: 0; color: var(--yellow); font-size: 0.85rem; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
/* ---------- Profil connecté ---------- */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 14px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.10), rgba(0, 0, 0, 0.30));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.user-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: #f4f0ff;
}
/* Rôle : reste violet dans le chip, même avec les variantes green/gold/red */
.user-chip .badge, .user-chip .badge.green, .user-chip .badge.gold, .user-chip .badge.red {
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.10);
  border: 1px solid rgba(168, 85, 247, 0.45);
}
/* Bouton déconnexion */
#logoutBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border-radius: 8px;
  color: #a8a0bc;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.20);
  font-size: 1rem;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
#logoutBtn:hover {
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.15);
  border-color: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.20);
  transform: none;
}

/* ---------- Killer picker ---------- */
.killer-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.killer-picker .chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.35); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 0.88rem; transition: 0.15s; }
.killer-picker .chip:has(input:checked) { border-color: var(--yellow); background: rgba(255,229,47,0.1); color: var(--yellow); box-shadow: 0 0 10px rgba(255,229,47,0.2); }
#sheetPaste { background: #150f24; font-size: 0.9rem; }

/* ---------- Joker ---------- */
.use-joker { border-color: var(--blood); color: var(--gold); background: linear-gradient(180deg, rgba(168,85,247,0.22), rgba(0,0,0,0.3)); }
/* Bouton joker compact : ne doit pas faire grandir les lignes du tableau */
td .use-joker { min-height: 0; padding: 5px 12px; font-size: 0.72rem; white-space: nowrap; }
.joker-used { color: var(--gold); }

/* ============================================================
   RÉCAP TOURNOI — PODIUM PREMIUM
   ============================================================ */
.podium {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
  align-items: end;
  margin: 12px 0 22px;
  position: relative;
}
/* Ligne lumineuse sous le podium */
.podium::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.45), rgba(255, 229, 47, 0.75), rgba(168, 85, 247, 0.45), transparent);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}
.podium-card {
  position: relative;
  text-align: center;
  align-items: center;
  justify-content: flex-start;
  min-height: 188px;
  padding: 22px 18px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.13), transparent 58%),
    linear-gradient(160deg, rgba(20, 19, 31, 0.98), rgba(9, 11, 17, 0.99));
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Suppression du liseré générique des .card */
.podium-card::before { height: 2px; opacity: 0.7; }
/* Petite lumière supérieure */
.podium-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}
/* ------------------------- 1er ------------------------- */
.podium-card.first {
  min-height: 218px;
  transform: translateY(-14px);
  border-color: rgba(255, 210, 28, 0.78);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 210, 28, 0.20), transparent 58%),
    radial-gradient(circle at 50% 100%, rgba(168, 85, 247, 0.10), transparent 65%),
    linear-gradient(160deg, rgba(28, 25, 25, 0.98), rgba(10, 11, 16, 0.99));
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(255, 210, 28, 0.18),
    0 0 45px rgba(255, 210, 28, 0.08),
    inset 0 1px 0 rgba(255, 240, 160, 0.10);
}
.podium-card.first::before {
  background: linear-gradient(90deg, transparent, #ffd21c, #fff3a0, #ffd21c, transparent);
  box-shadow: 0 0 8px rgba(255, 210, 28, 0.65), 0 0 18px rgba(255, 210, 28, 0.25);
}
.podium-card.first:hover {
  transform: translateY(-17px);
  border-color: #ffe36a;
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(255, 210, 28, 0.25),
    0 0 55px rgba(255, 210, 28, 0.10);
}
/* ------------------------- 2e ------------------------- */
.podium-card.second {
  border-color: rgba(190, 198, 211, 0.48);
  background:
    radial-gradient(circle at 50% 0%, rgba(190, 198, 211, 0.10), transparent 58%),
    linear-gradient(160deg, rgba(20, 21, 28, 0.98), rgba(9, 11, 17, 0.99));
}
.podium-card.second::before {
  background: linear-gradient(90deg, transparent, #aeb7c5, #eef2f7, #aeb7c5, transparent);
}
.podium-card.second:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 226, 235, 0.7);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55), 0 0 20px rgba(190, 198, 211, 0.12);
}
/* ------------------------- 3e ------------------------- */
.podium-card.third {
  border-color: rgba(205, 127, 50, 0.58);
  background:
    radial-gradient(circle at 50% 0%, rgba(205, 127, 50, 0.12), transparent 58%),
    linear-gradient(160deg, rgba(24, 20, 19, 0.98), rgba(9, 11, 17, 0.99));
}
.podium-card.third::before {
  background: linear-gradient(90deg, transparent, #cd7f32, #f0b27a, #cd7f32, transparent);
}
.podium-card.third:hover {
  transform: translateY(-4px);
  border-color: rgba(235, 158, 92, 0.75);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55), 0 0 20px rgba(205, 127, 50, 0.14);
}
/* ------------------------- Médailles ------------------------- */
.podium-medal {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 8px;
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.45));
}
.podium-card.first .podium-medal {
  width: 70px;
  height: 70px;
  font-size: 3rem;
  filter: drop-shadow(0 0 8px rgba(255, 210, 28, 0.45)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55));
}
/* -------------------------
   Joueur
   ------------------------- */
.podium-name {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  color: #f5f2ff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.podium-card.first .podium-name {
  font-size: 1.28rem;
  color: #ffe66a;
  text-shadow: 0 0 10px rgba(255, 210, 28, 0.35), 0 2px 8px rgba(0, 0, 0, 0.8);
}
/* ------------------------- Temps ------------------------- */
.podium-time {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(255, 229, 47, 0.35);
}
.podium-card.first .podium-time {
  font-size: 1.08rem;
  color: #ffe66a;
  text-shadow: 0 0 10px rgba(255, 210, 28, 0.45);
}

/* ---------- Récap : poules en petites cases par 3 ---------- */
.recap-poules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.recap-poule h3 { font-size: 0.85rem; }
.recap-poule th, .recap-poule td { padding: 8px 6px; font-size: 0.85rem; }
.recap-poule .badge { padding: 3px 8px; font-size: 0.6rem; }

/* ---------- Footer Fog Bracket ---------- */
.site-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 40px;
  padding: 32px 24px 28px;
  border-top: none;
  /* Départ exact sur la couleur de fin du body : continuité parfaite,
     puis halo violet + descente vers le noir du footer */
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(126, 54, 210, 0.18), transparent 70%),
    linear-gradient(180deg, #080b10 0%, #0b0c13 45%, #0b0c13 100%);
}
/* Halo qui déborde au-dessus du footer pour casser le "bloc noir" */
.site-footer::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 10%;
  right: 10%;
  height: 60px;
  background: radial-gradient(ellipse at 50% 100%, rgba(126, 54, 210, 0.12), transparent 70%);
  pointer-events: none;
}
/* Ligne violette lumineuse */
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8b3dff, transparent);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
}
.footer-nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin: 4px 0 12px; }
.footer-nav a { color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--yellow); }
.footer-nav span { color: #3f3f46; }
/* Réseaux sociaux */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
/* Boutons réseaux */
.site-footer .btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), rgba(0, 0, 0, 0.22));
  color: #d8d3e5;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
/* Hover */
.site-footer .btn-social:hover {
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.75);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(126, 54, 210, 0.08));
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.18);
  transform: translateY(-2px);
}
/* Crédit */
.footer-credit {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #77738b;
}
.footer-credit a {
  color: #a855f7;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-credit a:hover { color: #d8b4fe; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 950px) {
  .grid-2, .grid-3, .grid-6 { grid-template-columns: 1fr; }
  .match-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding: 22px 20px; }
  .hero--home { padding: 30px 24px; }
  .hero--home .hero-visual {
    width: 440px;
    height: 440px;
    right: -120px;
    top: 50%;
    transform: translateY(-50%) rotate(16deg);
  }
  .hero-art { font-size: 5.5rem; right: -8px; }
  .hero-live { flex-direction: row; }
  .hero-live-stat { flex: 1; align-items: flex-start; text-align: left; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .recap-poules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  main, .page { padding: 20px 12px 50px; }
  .card { padding: 15px; }
  .topbar { padding: 12px 16px; gap: 12px; }
  .topbar h1 { font-size: 1rem; }
  .topbar .eyebrow { font-size: 0.55rem; letter-spacing: 0.16em; }
  .user-chip { gap: 6px; padding-left: 10px; }
  .user-name { font-size: 0.72rem; }
  .user-chip .badge, .user-chip .badge.green, .user-chip .badge.gold, .user-chip .badge.red { font-size: 0.58rem; padding: 4px 8px; }
  #logoutBtn { width: 32px; height: 32px; }
  .podium { grid-template-columns: 1fr; align-items: stretch; gap: 14px; }
  .podium-card { min-height: 175px; }
  .podium-card.first { min-height: 200px; transform: none; order: -1; }
  .podium-card.first:hover { transform: translateY(-3px); }
  .podium::after { display: none; }
  .recap-poules { grid-template-columns: 1fr; }
  .match-box .row { grid-template-columns: 1fr; }
  button, .file-btn { width: 100%; }
  .hero-cta .btn-accent, .hero-cta .btn-outline { flex: 1 1 auto; }
  .hero--home { min-height: 520px; padding: 30px 24px; }
  .hero--home .hero-title { font-size: 1.8rem; }
  .hero--home .hero-visual {
    width: 320px;
    height: 320px;
    right: -100px;
    top: 65%;
    opacity: 0.65;
    transform: translateY(-50%) rotate(16deg);
  }
  .actions { width: 100%; }
  .actions button, .actions a { flex: 1; }
}
@media (max-width: 600px) {
  .site-footer { margin-top: 45px; padding: 28px 16px 24px; }
  .social-links { gap: 8px; }
  .site-footer .btn-social { min-width: 0; flex: 1 1 calc(50% - 8px); font-size: 0.65rem; padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  button.primary::after { display: none; }
}
html.fx-off .card { animation: none; }
html.fx-off button.primary::after { display: none; }
