/* ============================================================
   Profil, badges, lots, tableau de bord joueur
   ============================================================ */

/* ---- En-tête de profil ---- */
.profile-head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-4);
}
.avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(150deg, var(--brand), var(--brand-700));
  flex: 0 0 auto;
}
.profile-head .who { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.profile-head .mail { color: var(--muted); font-size: .88rem; }

/* ---- Tuiles de stats ---- */
.stat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-5); }
@media (min-width: 640px) { .stat-tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-4);
}
.tile .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.tile .value { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--ink); margin-top: 4px; }
.tile .value small { font-size: .9rem; color: var(--brand-700); font-weight: 700; }

/* ---- Badges ---- */
.section-title { margin: var(--sp-5) 0 var(--sp-3); }
.badges-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
@media (min-width: 640px) { .badges-grid { grid-template-columns: repeat(3, 1fr); } }
.badge-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-4);
  text-align: center;
}
.badge-card .ic {
  width: 52px; height: 52px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--brand-50);
}
.badge-card strong { display: block; font-size: .92rem; }
.badge-card p { font-size: .76rem; color: var(--muted); margin-top: 3px; }
.badge-card time { font-size: .7rem; color: var(--brand-700); font-weight: 700; }
.badge-card.locked { opacity: .55; filter: grayscale(1); }
.badge-card.locked .ic { background: var(--surface-2); }

.recent-badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.recent-badges li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--r-pill);
  font-size: .82rem;
  font-weight: 600;
  color: var(--brand-700);
}

/* ---- Lots ---- */
.prizes { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .prizes { grid-template-columns: repeat(2, 1fr); } }
.prize-card {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-4);
}
.prize-rank {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 800;
  background: var(--brand-50);
  color: var(--brand-700);
  flex: 0 0 auto;
}
.prize-card img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--r-sm); }
.prize-card .titre { font-weight: 700; }
.prize-card .desc { font-size: .84rem; color: var(--muted); }

/* ---- Tableau de bord joueur (accueil) ---- */
.hello { margin-bottom: var(--sp-5); }
.next-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.next-match {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-3) var(--sp-4);
}
.next-match:hover { border-color: var(--brand-100); text-decoration: none; }
.next-match .vs { font-weight: 700; color: var(--ink); }
.next-match .when { margin-left: auto; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.next-match .go { color: var(--brand-700); font-weight: 800; }
