[hidden]{display:none !important}
/* tournois.css — Section Tournois & Power Ranking.
   Reprend EXACTEMENT le design system de PR-Front (couleurs, typographie,
   cartes, animations, icônes) — cf. src/app/globals.css de PR-Front.
   Les variables et classes sont préfixées .prf- pour ne pas collisionner
   avec le design system TheFrontHub (styles.css). */

/* ════════════════════════════════════════════════════════════════
   1. Variables PR-Front (scope : body pour la page tournois.html)
   ════════════════════════════════════════════════════════════════ */
:root {
  --prf-ink: #20242b;
  --prf-ink2: #f8f9fb;
  --prf-panel: #ffffff;
  --prf-line: #e3e6ea;
  --prf-text: #20242b;
  --prf-muted: #7d848e;
  --prf-accent: #e8781d;
  --prf-accent-strong: #c95d0c;
  --prf-beige: #f7f8fa;
  --prf-sidebar: #171a20;
  --prf-cyan2: #0e8e86;
  --prf-gold: #c9932b;
  --prf-silver: #7f899b;
  --prf-bronze: #a85d2c;
  --prf-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* La page tournois utilise la palette PR-Front pour le fond et le texte */
body.tournois-page {
  background: var(--prf-beige);
  color: var(--prf-text);
  font-family: var(--prf-font);
}
body.tournois-page ::selection {
  background: color-mix(in srgb, var(--prf-accent) 28%, transparent);
}
body.tournois-page .num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ════════════════════════════════════════════════════════════════
   2. Top-nav horizontale (PR-Front style) — desktop
   Remplace la sous-nav qui était dans la sidebar.
   ════════════════════════════════════════════════════════════════ */
.prf-topnav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  /* Suit le thème : clair → blanc translucide, sombre → panneau translucide
     (avant : rgba(255,255,255,.95) codé en dur → bande blanche en dark) */
  background: color-mix(in srgb, var(--prf-panel, #ffffff) 95%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--prf-line);
  min-height: 56px;
}
.prf-topnav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.prf-topnav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--prf-muted);
  text-decoration: none;
  transition: color 0.16s ease;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--prf-font);
}
.prf-topnav-link:hover {
  color: var(--prf-text);
}
.prf-topnav-link.active {
  color: var(--prf-accent-strong);
}
.prf-topnav-link.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  background: var(--prf-accent);
  border-radius: 3px 3px 0 0;
}
.prf-topnav-link .prf-icon {
  color: inherit;
}

/* Bouton menu mobile (caché sur desktop) */
.prf-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--prf-text);
  cursor: pointer;
  border-radius: 7px;
}
.prf-menu-toggle:hover {
  background: var(--prf-beige);
}

/* Bouton "Jouer" PR-Front (en haut à droite) */
.prf-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 7px;
  background: linear-gradient(180deg, #ed8829, #d96713);
  padding: 9px 18px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(204, 93, 12, 0.22);
  animation: prf-soft-pulse 2.8s ease-in-out infinite;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.prf-play-btn:hover {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.08);
}

/* ════════════════════════════════════════════════════════════════
   3. Tiroir mobile (sub-nav pour téléphone)
   ════════════════════════════════════════════════════════════════ */
.prf-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.prf-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.prf-drawer {
  position: fixed;
  /* FIX (audit 2026-09) : « inset-y: 0 » est de la syntaxe Tailwind INVALIDE en CSS
     → le drawer n'était ancré ni en haut ni en bas et flottait à sa position DOM
     (hors écran sur mobile). On ancre correctement. */
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 61;
  width: 280px;
  background: var(--prf-sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
  box-shadow: 2px 0 24px rgba(0, 0, 0, 0.3);
}
.prf-drawer.open {
  transform: translateX(0);
}
.prf-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 20px 0 24px;
}
.prf-drawer-title {
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.prf-drawer-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  border-radius: 7px;
}
.prf-drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.prf-drawer-nav {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.prf-drawer-link {
  position: relative;
  display: flex;
  height: 48px;
  align-items: center;
  gap: 17px;
  margin-right: 12px;
  padding: 0 28px;
  border-radius: 0 9px 9px 0;
  color: rgba(255, 255, 255, 0.79);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border-left: none;
  cursor: pointer;
  font-family: var(--prf-font);
  transition: color 0.2s ease, background 0.2s ease, padding 0.2s ease, transform 0.2s ease;
}
.prf-drawer-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  padding-left: 33px;
  transform: translateX(2px);
}
.prf-drawer-link.active {
  color: #f28a28;
  background: linear-gradient(90deg, rgba(232, 120, 29, 0.16), rgba(232, 120, 29, 0.07));
}
.prf-drawer-link.active::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #ef8122;
}

/* ════════════════════════════════════════════════════════════════
   4. Layout & conteneurs
   ════════════════════════════════════════════════════════════════ */
.prf-view {
  padding: 28px 24px 80px;
  max-width: 1280px;
  margin: 0 auto;
  animation: prf-page-reveal 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.prf-loading,
.prf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 20px;
  color: var(--prf-muted);
  text-align: center;
}
.prf-loading .spinner,
.prf-error .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--prf-line);
  border-top-color: var(--prf-accent);
  border-radius: 50%;
  animation: prf-spin 0.8s linear infinite;
}
@keyframes prf-spin {
  to {
    transform: rotate(360deg);
  }
}
.prf-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.65rem;
  padding: 32px;
  margin: 20px;
  color: #991b1b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* En-tête de page (titre + sous-titre) */
.prf-page-head {
  margin-bottom: 24px;
}
.prf-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--prf-text);
  line-height: 1.2;
}
.prf-page-sub {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--prf-muted);
}
.prf-page-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  background: var(--prf-panel);
  border: 1px solid var(--prf-line);
  border-radius: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--prf-muted);
}

/* ════════════════════════════════════════════════════════════════
   5. Cartes (card / card-hover) — style PR-Front exact
   ════════════════════════════════════════════════════════════════ */
.prf-card {
  background: var(--prf-panel, rgba(255, 255, 255, 0.94));
  border: 1px solid var(--prf-line);
  border-radius: 0.65rem;
  box-shadow: 0 2px 7px rgba(22, 28, 38, 0.04);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  animation: prf-card-reveal 0.5s cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
  overflow: hidden;
}
.prf-card-hover:hover {
  border-color: #cfd4da;
  box-shadow: 0 8px 20px rgba(22, 28, 38, 0.08);
  transform: translateY(-1px);
}
.prf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--prf-line) 70%, transparent);
}
.prf-card-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: #716964;
}
.prf-card-body {
  padding: 18px;
}
.prf-card:nth-child(2) {
  animation-delay: 0.07s;
}
.prf-card:nth-child(3) {
  animation-delay: 0.14s;
}

/* Micro-label PR-Front */
.prf-micro-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: #716964;
}

/* Chip PR-Front */
.prf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.72rem;
  border-radius: 0.45rem;
  border: 1px solid var(--prf-line);
  background: var(--prf-panel);
  box-shadow: 0 2px 5px rgba(22, 28, 38, 0.04);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--prf-text);
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.prf-chip:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--prf-accent) 40%, var(--prf-line));
  box-shadow: 0 5px 12px rgba(22, 28, 38, 0.08);
}

/* Texte dégradé (PR points) */
.prf-gradient-text {
  color: var(--prf-accent-strong);
}

/* Couleurs de rang */
.prf-rank-1 {
  color: #c58b1c;
}
.prf-rank-2 {
  color: var(--prf-silver);
}
.prf-rank-3 {
  color: var(--prf-bronze);
}

/* ════════════════════════════════════════════════════════════════
   6. Accueil (Home)
   ════════════════════════════════════════════════════════════════ */

/* Hero — carte champion avec fond sombre style PR-Front */
.prf-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0.65rem;
  background: var(--prf-sidebar);
  color: #fff;
  padding: 36px 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(22, 28, 38, 0.12);
  animation: prf-card-reveal 0.55s cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
}
.prf-hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 180%;
  background: radial-gradient(circle, rgba(232, 120, 29, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.prf-hero-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f28a28;
  margin-bottom: 8px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.prf-hero-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.prf-hero-sub {
  opacity: 0.85;
  font-size: 0.875rem;
}
.prf-hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.prf-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.prf-hero-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.prf-hero-stat-label {
  font-size: 0.7rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Grille de stats */
.prf-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.prf-stat-card {
  background: var(--prf-panel, rgba(255, 255, 255, 0.94));
  border: 1px solid var(--prf-line);
  border-radius: 0.65rem;
  box-shadow: 0 2px 7px rgba(22, 28, 38, 0.04);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: prf-card-reveal 0.5s cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.prf-stat-card:hover {
  border-color: #cfd4da;
  box-shadow: 0 8px 20px rgba(22, 28, 38, 0.08);
  transform: translateY(-1px);
}
.prf-stat-card .label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--prf-muted, #716964);
}
.prf-stat-card .value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--prf-text);
}
.prf-stat-card .sub {
  font-size: 0.8rem;
  color: var(--prf-muted);
}

.prf-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .prf-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Podium — style PR-Front (cartes avec glow) */
.prf-podium {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .prf-podium {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
  }
}
.prf-podium-card {
  display: block;
  text-align: center;
  padding: 18px;
  border-radius: 0.65rem;
  background: var(--prf-panel, rgba(255, 255, 255, 0.94));
  border: 1px solid var(--prf-line);
  box-shadow: 0 2px 7px rgba(22, 28, 38, 0.04);
  min-height: 190px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  animation: prf-card-reveal 0.5s cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
}
.prf-podium-card:hover {
  transform: translateY(-2px);
  border-color: #cfd4da;
  box-shadow: 0 8px 20px rgba(22, 28, 38, 0.08);
}
.prf-podium-card.glow-1 {
  border-color: #dda252;
  box-shadow: 0 0 0 1px rgba(231, 132, 35, 0.08), 0 8px 20px rgba(207, 120, 29, 0.07);
}
.prf-podium-rank {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.prf-podium-card.glow-1 .prf-podium-rank {
  color: #c58b1c;
}
.prf-podium-card.glow-2 .prf-podium-rank {
  color: var(--prf-silver);
}
.prf-podium-card.glow-3 .prf-podium-rank {
  color: var(--prf-bronze);
}
.prf-podium-name {
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prf-podium-clan {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--prf-muted);
}
.prf-podium-pts {
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--prf-accent-strong);
  letter-spacing: -0.02em;
}
.prf-podium-pts .unit {
  margin-left: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--prf-muted);
}
.prf-podium-meta {
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--prf-muted);
}

/* Spotlight */
.prf-spotlight {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, rgba(232, 120, 29, 0.08), rgba(232, 120, 29, 0.03));
  border: 1px solid rgba(232, 120, 29, 0.2);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.prf-spotlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(22, 28, 38, 0.14);
}
.prf-spotlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #ed8829, #d96713);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(204, 93, 12, 0.22);
}
.prf-spotlight-content {
  flex: 1;
  min-width: 0;
}
.prf-spotlight-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.085em;
  color: #716964;
  margin-bottom: 2px;
}
.prf-spotlight-name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--prf-text);
}
.prf-spotlight-meta {
  font-size: 0.8rem;
  color: var(--prf-muted);
  margin-top: 2px;
}

/* Liste compacte */
.prf-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.prf-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--prf-line) 72%, transparent);
  transition: background 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.prf-list-item:last-child {
  border-bottom: none;
}
.prf-list-item:hover {
  background: rgba(232, 120, 29, 0.035);
  transform: translateX(3px);
  box-shadow: inset 3px 0 var(--prf-accent);
}
.prf-list-rank {
  width: 28px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--prf-muted);
  text-align: right;
  flex-shrink: 0;
}
.prf-list-name {
  flex: 1;
  font-weight: 700;
  color: var(--prf-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prf-list-points {
  font-weight: 800;
  color: var(--prf-accent-strong);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   7. Avatar & Rang
   ════════════════════════════════════════════════════════════════ */
.prf-avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ed8829, #d96713);
  flex-shrink: 0;
  user-select: none;
  letter-spacing: -0.02em;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}
a:hover .prf-avatar,
.prf-avatar:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: saturate(1.15);
  box-shadow: 0 6px 15px rgba(232, 120, 29, 0.2);
}
.prf-avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 11px;
}
.prf-avatar-md {
  width: 40px;
  height: 40px;
  font-size: 13px;
}
.prf-avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 18px;
}

.prf-rank-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
  background: var(--prf-beige);
  color: var(--prf-muted);
  letter-spacing: -0.02em;
}
.prf-rank-circle.top1 {
  background: rgba(197, 139, 28, 0.15);
  color: #c58b1c;
}
.prf-rank-circle.top2 {
  background: rgba(127, 137, 155, 0.15);
  color: var(--prf-silver);
}
.prf-rank-circle.top3 {
  background: rgba(168, 93, 44, 0.15);
  color: var(--prf-bronze);
}
.prf-rank-circle.top10 {
  background: rgba(232, 120, 29, 0.12);
  color: var(--prf-accent-strong);
}

/* ════════════════════════════════════════════════════════════════
   8. Tableau classement (lb-row style PR-Front)
   ════════════════════════════════════════════════════════════════ */
.prf-table-wrap {
  overflow-x: auto;
}
.prf-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.prf-table thead th {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: #5a534f;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--prf-line) 70%, transparent);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--prf-panel);
}
.prf-table thead th.num {
  text-align: right;
}
.prf-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}
.prf-table thead th.sortable:hover {
  color: var(--prf-accent-strong);
}
.prf-table thead th.sortable.active {
  color: var(--prf-accent-strong);
}
.prf-table thead th .sort-arrow {
  font-size: 10px;
  margin-left: 2px;
  opacity: 0.5;
}
.prf-table thead th.sortable.active .sort-arrow {
  opacity: 1;
}
.prf-table tbody tr {
  border-bottom: 1px solid color-mix(in srgb, var(--prf-line) 72%, transparent);
  transition: background 0.15s ease, transform 0.15s ease;
  opacity: 1;
  animation: prf-row-reveal 0.38s ease backwards;
}
.prf-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}
.prf-table tbody tr:hover {
  background: rgba(232, 120, 29, 0.06);
  transform: translateX(3px);
  box-shadow: inset 3px 0 var(--prf-accent);
}
.prf-table tbody tr:nth-child(1) {
  animation-delay: 0.08s;
}
.prf-table tbody tr:nth-child(2) {
  animation-delay: 0.11s;
}
.prf-table tbody tr:nth-child(3) {
  animation-delay: 0.14s;
}
.prf-table tbody tr:nth-child(4) {
  animation-delay: 0.17s;
}
.prf-table tbody tr:nth-child(5) {
  animation-delay: 0.2s;
}
.prf-table tbody tr:nth-child(6) {
  animation-delay: 0.23s;
}
.prf-table tbody tr:nth-child(7) {
  animation-delay: 0.26s;
}
.prf-table tbody tr:nth-child(8) {
  animation-delay: 0.29s;
}
.prf-table tbody tr:nth-child(9) {
  animation-delay: 0.32s;
}
.prf-table tbody tr:nth-child(10) {
  animation-delay: 0.35s;
}
.prf-table tbody tr:nth-child(n + 11) {
  animation-delay: 0.38s;
}
.prf-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
}
.prf-table tbody td.num {
  text-align: right;
}
.prf-table .prf-points {
  font-weight: 800;
  font-size: 1rem;
  color: var(--prf-accent-strong);
  letter-spacing: -0.02em;
}
.prf-table .prf-player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.prf-table .prf-player-name {
  font-weight: 800;
  color: var(--prf-text);
  letter-spacing: -0.01em;
}
.prf-table .prf-player-clan {
  font-size: 0.75rem;
  color: var(--prf-muted);
  font-weight: 600;
  margin-right: 4px;
}
.prf-table .prf-player-id {
  font-size: 0.65rem;
  color: var(--prf-muted);
}
.prf-table .prf-row-link {
  cursor: pointer;
}
.prf-table .prf-row-link:hover .prf-player-name {
  color: var(--prf-accent-strong);
}

/* Badges */
.prf-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 0.45rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.prf-badge-new {
  background: rgba(14, 142, 134, 0.1);
  color: var(--prf-cyan2);
  border-color: rgba(14, 142, 134, 0.4);
}
.prf-badge-major {
  background: rgba(201, 147, 43, 0.12);
  color: #9a6b00;
  border-color: rgba(201, 147, 43, 0.4);
}
.prf-badge-standard {
  background: rgba(232, 120, 29, 0.1);
  color: var(--prf-accent-strong);
  border-color: rgba(232, 120, 29, 0.3);
}
.prf-badge-minor {
  background: var(--prf-beige);
  color: var(--prf-muted);
  border-color: var(--prf-line);
}

/* Filtres */
.prf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--prf-line) 70%, transparent);
  align-items: center;
}
.prf-filter-btn {
  padding: 4px 10px;
  border: 1px solid var(--prf-line);
  background: var(--prf-panel);
  border-radius: 0.4rem;
  font-size: 11px;
  font-weight: 700;
  color: var(--prf-muted);
  cursor: pointer;
  font-family: var(--prf-font);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.prf-filter-btn:hover {
  border-color: rgba(232, 120, 29, 0.3);
  color: var(--prf-accent-strong);
}
.prf-filter-btn.active {
  background: rgba(232, 120, 29, 0.1);
  border-color: rgba(232, 120, 29, 0.5);
  color: var(--prf-accent-strong);
}
.prf-filter-btn .count {
  opacity: 0.6;
  margin-left: 4px;
}
.prf-filter-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--prf-muted);
}

/* Recherche */
.prf-search {
  position: relative;
  margin-left: auto;
}
.prf-search input {
  width: 240px;
  padding: 6px 10px 6px 32px;
  border: 1px solid var(--prf-line);
  border-radius: 0.4rem;
  background: var(--prf-panel);
  font-size: 0.8rem;
  font-family: var(--prf-font);
  color: var(--prf-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.prf-search input:focus {
  outline: none;
  border-color: rgba(232, 120, 29, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(232, 120, 29, 0.1);
}
.prf-search .prf-search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--prf-muted);
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════
   9. Cartes tournoi (liste)
   ════════════════════════════════════════════════════════════════ */
.prf-tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.prf-tournament-card {
  background: var(--prf-panel, rgba(255, 255, 255, 0.94));
  border: 1px solid var(--prf-line);
  border-radius: 0.65rem;
  box-shadow: 0 2px 7px rgba(22, 28, 38, 0.04);
  padding: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  animation: prf-card-reveal 0.5s cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.prf-tournament-card:hover {
  transform: translateY(-2px);
  border-color: #cfd4da;
  box-shadow: 0 8px 20px rgba(22, 28, 38, 0.08);
}
.prf-tournament-card.major-card {
  box-shadow:
    0 0 0 2px rgba(201, 147, 43, 0.3),
    0 0 0 5px rgba(201, 147, 43, 0.07),
    0 2px 7px rgba(22, 28, 38, 0.04);
}
.prf-tournament-card.major-card:hover {
  box-shadow:
    0 0 0 2px rgba(201, 147, 43, 0.5),
    0 0 0 6px rgba(201, 147, 43, 0.12),
    0 8px 20px rgba(22, 28, 38, 0.08);
}
.prf-tournament-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.prf-tournament-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--prf-text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.prf-tournament-date {
  font-size: 0.8rem;
  color: var(--prf-muted);
  margin-top: 2px;
}
.prf-tournament-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--prf-muted);
  flex-wrap: wrap;
}
.prf-tournament-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.prf-tournament-winner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--prf-line) 72%, transparent);
  font-size: 0.8rem;
  color: var(--prf-muted);
}
.prf-tournament-winner .name {
  font-weight: 700;
  color: var(--prf-text);
}

/* ════════════════════════════════════════════════════════════════
   10. Détail tournoi
   ════════════════════════════════════════════════════════════════ */
.prf-detail-header {
  background: var(--prf-panel, rgba(255, 255, 255, 0.94));
  border: 1px solid var(--prf-line);
  border-radius: 0.65rem;
  box-shadow: 0 2px 7px rgba(22, 28, 38, 0.04);
  padding: 24px;
  margin-bottom: 20px;
  animation: prf-card-reveal 0.5s cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
}
.prf-detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--prf-text);
  margin-bottom: 6px;
}
.prf-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--prf-muted);
  font-size: 0.875rem;
}
.prf-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prf-phase-section {
  margin-bottom: 28px;
  animation: prf-card-reveal 0.5s cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
}
.prf-phase-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--prf-text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--prf-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.prf-results-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}
.prf-results-table th {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: #716964;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--prf-line);
}
.prf-results-table td {
  padding: 10px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--prf-line) 72%, transparent);
}
.prf-results-table tr {
  transition: background 0.15s ease;
}
.prf-results-table tr:hover td {
  background: rgba(232, 120, 29, 0.035);
}
.prf-results-table .pr-points-cell {
  font-weight: 800;
  color: var(--prf-accent-strong);
}

/* Stats tournoi (par joueur) */
.prf-stats-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.prf-stats-table th {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: #716964;
  padding: 10px 12px;
  border-bottom: 1px solid var(--prf-line);
  text-align: right;
}
.prf-stats-table th:first-child {
  text-align: left;
}
.prf-stats-table td {
  padding: 10px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--prf-line) 72%, transparent);
  text-align: right;
}
.prf-stats-table td:first-child {
  text-align: left;
}
.prf-stats-table tr {
  transition: background 0.15s ease;
}
.prf-stats-table tr:hover td {
  background: rgba(232, 120, 29, 0.035);
}

/* ════════════════════════════════════════════════════════════════
   11. Profil joueur
   ════════════════════════════════════════════════════════════════ */
.prf-profile-header {
  background: var(--prf-panel, rgba(255, 255, 255, 0.94));
  border: 1px solid var(--prf-line);
  border-radius: 0.65rem;
  box-shadow: 0 2px 7px rgba(22, 28, 38, 0.04);
  padding: 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  animation: prf-card-reveal 0.5s cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
}
.prf-profile-rank-badge {
  font-size: 2rem;
  font-weight: 800;
  color: var(--prf-accent-strong);
  line-height: 1;
  letter-spacing: -0.02em;
}
.prf-profile-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--prf-text);
}
.prf-profile-sub {
  color: var(--prf-muted);
  font-size: 0.875rem;
  margin-top: 4px;
}
.prf-profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
  width: 100%;
}
.prf-profile-stat {
  background: var(--prf-beige);
  border-radius: 0.5rem;
  padding: 12px 14px;
}
.prf-profile-stat .v {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--prf-text);
}
.prf-profile-stat .l {
  font-size: 0.62rem;
  color: var(--prf-muted);
  text-transform: uppercase;
  letter-spacing: 0.085em;
  font-weight: 700;
}

.prf-awards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prf-award {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--prf-beige);
  border-radius: 0.5rem;
  border-left: 3px solid var(--prf-accent);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.prf-award:hover {
  transform: translateX(3px);
  background: rgba(232, 120, 29, 0.06);
}
.prf-award-place {
  font-weight: 800;
  font-size: 1rem;
  min-width: 36px;
  color: var(--prf-accent-strong);
  letter-spacing: -0.02em;
}
.prf-award-info {
  flex: 1;
  min-width: 0;
}
.prf-award-tournament {
  font-weight: 700;
  color: var(--prf-text);
}
.prf-award-phase {
  font-size: 0.8rem;
  color: var(--prf-muted);
}
.prf-award-points {
  font-weight: 800;
  color: var(--prf-accent-strong);
}

/* ════════════════════════════════════════════════════════════════
   11.bis Courbe d'évolution du Power Ranking (SVG, port de pr-chart.tsx)
   ════════════════════════════════════════════════════════════════ */
.prf-pr-chart {
  min-width: 0;
}
.prf-pr-chart-empty {
  display: flex;
  height: 190px;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--prf-muted);
}
.prf-pr-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
}
.prf-pr-chart-title {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--prf-text);
}
.prf-pr-chart-sub {
  margin-top: 2px;
  font-size: 0.62rem;
  color: var(--prf-muted);
}
.prf-pr-chart-badge {
  border-radius: 0.375rem;
  background: #fff5e9;
  padding: 4px 10px;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--prf-accent-strong);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.prf-pr-chart-wrap {
  position: relative;
}
.prf-pr-chart-svg {
  height: 190px;
  width: 100%;
  display: block;
  overflow: visible;
  outline: none;
  touch-action: none;
  cursor: crosshair;
}
.prf-pr-chart-svg:focus-visible {
  outline: 2px solid var(--prf-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.prf-pr-chart-line {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: prf-chart-draw 1.35s cubic-bezier(0.3, 0.7, 0.2, 1) 0.35s forwards;
}
.prf-pr-chart-area {
  opacity: 0;
  animation: prf-area-reveal 0.8s ease 1s forwards;
}
.prf-pr-chart-point {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: prf-point-pop 0.35s cubic-bezier(0.2, 1.7, 0.4, 1) forwards;
}
.prf-pr-chart-dot {
  transition: r 0.15s ease, stroke-width 0.15s ease;
}
.prf-pr-chart-hint {
  margin-top: 4px;
  font-size: 0.62rem;
  color: var(--prf-muted);
}
@keyframes prf-chart-draw {
  from { stroke-dashoffset: 1800; }
  to { stroke-dashoffset: 0; }
}
@keyframes prf-area-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes prf-point-pop {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

/* Infobulle au survol de la courbe */
.prf-pr-chart-tip {
  position: absolute;
  top: 0;
  z-index: 20;
  width: 190px;
  border-radius: 0.5rem;
  border: 1px solid var(--prf-line);
  background: var(--prf-panel, rgba(255, 255, 255, 0.97));
  padding: 12px;
  box-shadow: 0 4px 16px rgba(22, 28, 38, 0.12);
  backdrop-filter: blur(6px);
  pointer-events: none;
  animation: prf-tip-fade 0.15s ease;
}
@keyframes prf-tip-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.prf-pr-chart-tip-name {
  font-size: 11px;
  font-weight: 900;
  color: var(--prf-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prf-pr-chart-tip-meta {
  margin-top: 2px;
  font-size: 10px;
  color: var(--prf-muted);
}
.prf-pr-chart-tip-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(227, 230, 234, 0.7);
}
.prf-pr-chart-tip-lbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--prf-muted);
}
.prf-pr-chart-tip-total {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  color: var(--prf-accent-strong);
  font-variant-numeric: tabular-nums;
}
.prf-pr-chart-tip-gained-wrap {
  text-align: right;
}
.prf-pr-chart-tip-gained {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  color: #1e8e5a;
  font-variant-numeric: tabular-nums;
}

/* ════════════════════════════════════════════════════════════════
   12. Calendrier
   ════════════════════════════════════════════════════════════════ */
.prf-cal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prf-cal-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--prf-panel, rgba(255, 255, 255, 0.94));
  border: 1px solid var(--prf-line);
  border-radius: 0.65rem;
  box-shadow: 0 2px 7px rgba(22, 28, 38, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  animation: prf-card-reveal 0.5s cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
}
.prf-cal-item:hover {
  border-color: #cfd4da;
  box-shadow: 0 8px 20px rgba(22, 28, 38, 0.08);
  transform: translateY(-1px);
}
.prf-cal-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  padding: 8px 12px;
  background: rgba(232, 120, 29, 0.1);
  border-radius: 0.5rem;
  color: var(--prf-accent-strong);
}
.prf-cal-day {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.prf-cal-month {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.085em;
}
.prf-cal-info {
  flex: 1;
}
.prf-cal-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--prf-text);
  letter-spacing: -0.01em;
}
.prf-cal-meta {
  font-size: 0.8rem;
  color: var(--prf-muted);
  margin-top: 2px;
}
.prf-cal-register {
  padding: 8px 16px;
  background: linear-gradient(180deg, #ed8829, #d96713);
  color: #fff;
  border-radius: 0.4rem;
  font-weight: 800;
  font-size: 0.8rem;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(204, 93, 12, 0.22);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.prf-cal-register:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
}

/* ════════════════════════════════════════════════════════════════
   13. Breadcrumb / Retour
   ════════════════════════════════════════════════════════════════ */
.prf-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 16px;
  font-size: 0.875rem;
}
.prf-breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--prf-panel);
  border: 1px solid var(--prf-line);
  border-radius: 0.4rem;
  padding: 6px 12px;
  color: var(--prf-text);
  font-family: var(--prf-font);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.prf-breadcrumb-back:hover {
  border-color: rgba(232, 120, 29, 0.5);
  color: var(--prf-accent-strong);
}
.prf-breadcrumb-path {
  color: var(--prf-muted);
}
.prf-breadcrumb-path strong {
  color: var(--prf-text);
  font-weight: 700;
}

/* Liens cliquables */
a.prf-link,
.prf-link {
  color: var(--prf-accent-strong);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}
a.prf-link:hover,
.prf-link:hover {
  color: var(--prf-accent);
  text-decoration: underline;
}

/* ════════════════════════════════════════════════════════════════
   14. Animations PR-Front (portées de globals.css)
   ════════════════════════════════════════════════════════════════ */
@keyframes prf-page-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes prf-card-reveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes prf-row-reveal {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes prf-soft-pulse {
  0%,
  100% {
    box-shadow: 0 3px 8px rgba(204, 93, 12, 0.22);
  }
  50% {
    box-shadow: 0 5px 18px rgba(232, 120, 29, 0.4);
  }
}
@keyframes prf-shine {
  from {
    transform: translateX(-160%) skewX(-18deg);
  }
  to {
    transform: translateX(350%) skewX(-18deg);
  }
}

/* Section title slide-in (cascade) */
.prf-view > .prf-grid-2 > section,
.prf-view > section {
  animation: prf-card-reveal 0.5s cubic-bezier(0.2, 0.75, 0.2, 1) backwards;
}
.prf-view > section:nth-of-type(2) {
  animation-delay: 0.12s;
}
.prf-view > section:nth-of-type(3) {
  animation-delay: 0.2s;
}

/* ════════════════════════════════════════════════════════════════
   15. Responsive
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Sur tablette/mobile : la top-nav devient un menu hamburger */
  .prf-topnav {
    padding: 0 16px;
  }
  .prf-topnav-links {
    display: none;
  }
  .prf-menu-toggle {
    display: flex;
    margin-right: auto;
  }
}

/* FIX (audit 2026-09) : entre 769 et 900px le hamburger GLOBAL du site
   (fixed top:14 left:14, z-index 60) se superpose au toggle du menu PR.
   On décale la top-nav pour que les deux boutons soient cliquables.
   (≤768px le hamburger global est masqué → pas besoin de décalage) */
@media (max-width: 900px) and (min-width: 769px) {
  .prf-topnav {
    padding-left: 64px;
  }
}

@media (max-width: 768px) {
  .prf-view {
    padding: 20px 16px 60px;
  }
  .prf-hero {
    padding: 24px 20px;
  }
  .prf-hero-name {
    font-size: 1.5rem;
  }
  .prf-detail-header,
  .prf-profile-header {
    padding: 18px;
  }
  .prf-profile-header {
    flex-direction: column;
    text-align: center;
  }
  .prf-search {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }
  .prf-search input {
    width: 100%;
  }
  .prf-card {
    border-radius: 0.55rem;
  }
  .prf-cal-item {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Icône Plutonium (reprise officielle OpenFront, atome vert) */
@keyframes prf-plutonium-spin {
  to {
    transform: rotate(360deg);
  }
}
.prf-plutonium-spin {
  animation: prf-plutonium-spin 7s linear infinite;
  transform-origin: 50% 50%;
}
.prf-plutonium-glow {
  filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.55));
}

/* ════════════════════════════════════════════════════════════════
   Tableau de bord — Toggle + table dashboard
   ════════════════════════════════════════════════════════════════ */
.prf-dash-card .prf-card-header {
  flex-wrap: wrap;
  gap: 12px;
}
.prf-dash-toggle {
  display: inline-flex;
  background: color-mix(in srgb, var(--prf-line) 50%, transparent);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.prf-dash-toggle-btn {
  padding: 7px 16px;
  border: none;
  background: transparent;
  color: var(--prf-muted);
  font-family: var(--f, inherit);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.prf-dash-toggle-btn:hover {
  color: var(--prf-text);
}
.prf-dash-toggle-btn.active {
  background: var(--prf-accent);
  color: #fff;
  box-shadow: 0 2px 8px var(--prf-accent-glow, rgba(232, 120, 29, 0.35));
}
.prf-dash-table {
  width: 100%;
  border-collapse: collapse;
}
.prf-dash-table .prf-th-rank,
.prf-dash-table .prf-td-rank {
  width: 52px;
  text-align: center;
}
.prf-dash-table .prf-th-num {
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--prf-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-right: 16px;
}
.prf-dash-table .prf-td-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
  color: var(--prf-text);
  padding-right: 16px;
}
.prf-dash-table .prf-td-points {
  font-size: 15px;
  font-weight: 800;
  color: var(--prf-accent);
}
.prf-dash-table .prf-td-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.prf-dash-table .prf-td-player-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.prf-dash-table .prf-td-player-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--prf-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.prf-dash-table .prf-td-player-clan {
  font-size: 11px;
  color: var(--prf-muted);
  font-weight: 500;
}
.prf-dash-scoring-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--prf-accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--prf-accent) 20%, transparent);
  color: var(--prf-muted);
  font-size: 13px;
  line-height: 1.5;
}
.prf-dash-scoring-info strong {
  color: var(--prf-accent);
  font-weight: 800;
}
.prf-dash-scoring-info svg {
  flex-shrink: 0;
  color: var(--prf-accent);
}
@media (max-width: 640px) {
  .prf-dash-table .prf-th-num[aria-hidden],
  .prf-dash-table .prf-td-num:nth-child(5) {
    /* Top 3 column hidden on very small screens if needed */
  }
  .prf-dash-table .prf-td-player-name {
    max-width: 120px;
  }
  .prf-dash-toggle-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ════════════════════════════════════════════════════════════════
   HOME REDESIGN — Hero sombre + 3 cartes highlight
   Inspiré du mockup envoyé (esport dashboard, Linear/Apple feel)
   ════════════════════════════════════════════════════════════════ */

.trn-home {
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Hero sombre pleine largeur ── */
.trn-hero {
  position: relative;
  margin: -8px -24px 0;
  padding: 80px 24px 64px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e17 0%, #111827 100%);
  color: #fff;
  text-align: center;
}
@media (max-width: 900px) {
  .trn-hero {
    margin: 60px -16px 0;
    padding: 48px 20px 48px;
  }
}

.trn-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255, 122, 0, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.trn-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'%3E%3Cg fill='none' stroke='%23ff7a00' stroke-width='0.5' stroke-opacity='0.15'%3E%3Cpath d='M100 200 Q300 100 500 200 T800 200'/%3E%3Cpath d='M0 150 Q200 250 400 150 T800 150'/%3E%3Cpath d='M0 250 Q200 180 400 250 T800 250'/%3E%3Cpath d='M100 100 Q300 200 500 100 T800 100'/%3E%3Cpath d='M100 300 Q300 200 500 300 T800 300'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.trn-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.trn-hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.trn-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #fff;
}

.trn-hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 40px;
  line-height: 1.5;
}

.trn-hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--prf-panel, #fff);
  border: 1px solid var(--prf-line, transparent);
  border-radius: 12px;
  padding: 8px 8px 8px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: 28px;
}
.trn-hero-search i,
.trn-hero-search svg {
  color: #9ca3af;
  flex-shrink: 0;
}
.trn-hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: var(--prf-text, #374151);
  background: transparent;
  min-width: 0;
}
.trn-hero-search input::placeholder { color: #9ca3af; }
.trn-hero-search button {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: var(--orange, #ff7a00);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}
.trn-hero-search button:hover {
  background: var(--orange-hover, #e86e00);
  transform: scale(1.05);
}
.trn-hero-search button:active { transform: scale(0.98); }

.trn-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.trn-hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trn-hero-stat i,
.trn-hero-stat svg { color: rgba(255, 255, 255, 0.7); }

/* ── 3 cartes highlight ── */
.trn-home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .trn-home-cards { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
}

.trn-hl-card {
  position: relative;
  background: var(--prf-panel, #fff);
  border: 1px solid var(--prf-line, transparent);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}
.trn-hl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.trn-hl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: #fff;
}
.trn-hl-gold .trn-hl-header { background: linear-gradient(135deg, #facc15, #eab308); }
.trn-hl-cyan .trn-hl-header { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.trn-hl-purple .trn-hl-header { background: linear-gradient(135deg, #a855f7, #9333ea); }

.trn-hl-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.trn-hl-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.trn-hl-card:hover .trn-hl-more { opacity: 1; }

.trn-hl-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  overflow: hidden;
}

.trn-hl-body .prf-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.trn-hl-gold .prf-avatar { background: #fef3c7; color: #d97706; }
.trn-hl-cyan .prf-avatar { background: #cffafe; color: #0891b2; }
.trn-hl-purple .prf-avatar { background: #ede9fe; color: #7c3aed; }

.trf-hl-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.trn-hl-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--prf-text, #1f2937);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trn-hl-meta {
  font-size: 13px;
  color: var(--prf-muted, #6b7280);
  margin-top: 2px;
  /* Jusqu'à 2 lignes : le nom du tournoi + la date tiennent
     sans coupure brutale (avant : nowrap + ellipsis → « 02/08/2… ») */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.trn-hl-watermark {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.08;
  pointer-events: none;
}
.trn-hl-gold .trn-hl-watermark { color: #eab308; }
.trn-hl-cyan .trn-hl-watermark { color: #0891b2; }
.trn-hl-purple .trn-hl-watermark { color: #9333ea; }
