/* ============================================================
   FIVE MORLANWELZ — Thème clair premium
   Off-white + charbon + vert anis du logo
   ============================================================ */

:root {
  --color-bg: #fafaf6;
  --color-bg-2: #f3f3ee;
  --color-surface: #ffffff;
  --color-surface-2: #f7f7f2;
  --color-border: #e8e7e1;
  --color-border-strong: #d8d7d0;
  --color-text: #1a1c1d;
  --color-text-2: #2c2f30;
  --color-text-muted: #6b6e72;
  --color-text-soft: #9b9ea1;
  --color-accent: #b8d92c;
  --color-accent-2: #a3c416;
  --color-accent-soft: #b8d92c1f;
  --color-accent-line: #c4e51a;
  --color-charcoal: #2c2f30;
  --color-red: #d63b54;
  --color-red-soft: #d63b540d;
  --color-green: #4a7d20;
  --color-green-soft: #4a7d200d;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 24, 0.04), 0 1px 1px rgba(20, 22, 24, 0.02);
  --shadow-md: 0 4px 16px rgba(20, 22, 24, 0.06), 0 1px 2px rgba(20, 22, 24, 0.04);
  --shadow-lg: 0 12px 48px rgba(20, 22, 24, 0.08), 0 4px 12px rgba(20, 22, 24, 0.04);
  --shadow-xl: 0 24px 80px rgba(20, 22, 24, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--color-text); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--color-accent-2); }

img { max-width: 100%; display: block; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 246, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
}

.nav-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.8px;
  color: var(--color-text);
  font-family: var(--font-display);
  transition: opacity 0.2s;
}

.brand:hover { opacity: 0.7; }

.brand-logo {
  width: 38px;
  height: 38px;
  display: block;
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-6deg);
}

.brand-logo-big {
  width: 72px;
  height: 72px;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 9px 18px;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  position: relative;
  transition: all 0.25s var(--ease);
}

.nav-links a:hover { color: var(--color-text); }

.nav-links a.active {
  color: var(--color-text);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-charcoal);
  color: white;
}

.btn-primary:hover {
  background: #000;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-charcoal);
  font-weight: 700;
}

.btn-accent:hover {
  background: var(--color-accent-2);
  color: var(--color-charcoal);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(184, 217, 44, 0.4);
}

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

.btn-ghost:hover {
  border-color: var(--color-text);
  color: var(--color-text);
  transform: translateY(-1px);
}

.btn-sm { padding: 9px 16px; font-size: 13px; }

.btn-danger {
  background: transparent;
  color: var(--color-red);
  border: 1px solid var(--color-red);
}
.btn-danger:hover { background: var(--color-red-soft); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 9px 14px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 18px;
}

/* ============ LAYOUT ============ */
main { min-height: calc(100vh - 200px); }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 32px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  line-height: 1.05;
  color: var(--color-text);
}

.section-title .accent {
  color: var(--color-accent-2);
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 18px;
  margin-bottom: 48px;
  max-width: 640px;
  line-height: 1.6;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--color-accent);
}

/* ============ KEYFRAMES ============ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.30s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.40s; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  animation: fade-up 0.8s var(--ease) backwards;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  position: relative;
}

.hero-eyebrow .dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  border-radius: 50%;
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -3px;
  margin-bottom: 28px;
  color: var(--color-text);
  animation: fade-up 0.9s var(--ease) 0.1s backwards;
}

.hero h1 .accent {
  color: var(--color-accent-2);
  font-style: italic;
  font-weight: 800;
}

.hero p.lead {
  font-size: 19px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.6;
  animation: fade-up 0.9s var(--ease) 0.2s backwards;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fade-up 0.9s var(--ease) 0.3s backwards;
}

.hero-cta .btn { padding: 14px 26px; font-size: 15px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
  animation: fade-up 0.9s var(--ease) 0.4s backwards;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -1.5px;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ============ HERO VISUAL — MATCH CARD ============ */
.hero-visual {
  position: relative;
  animation: fade-up 1s var(--ease) 0.5s backwards;
}

.match-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-border);
}

.match-card-banner {
  background: var(--color-charcoal);
  color: var(--color-accent);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.match-card-banner .live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.match-card-banner .live-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.match-card-body {
  padding: 32px 28px;
}

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.match-team {
  text-align: center;
}

.match-team-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: block;
}

.match-team-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.match-team-letter {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.match-vs {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text-soft);
  letter-spacing: 1px;
}

.match-info {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.match-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-info-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.match-info-value {
  color: var(--color-text);
  font-weight: 600;
}

.match-card-cta {
  padding: 0 28px 28px;
}

.match-card-cta .btn {
  width: 100%;
  justify-content: center;
}

/* Décoration logo en filigrane */
.hero-decor {
  position: absolute;
  top: -40px;
  right: -40px;
  opacity: 0.06;
  pointer-events: none;
  animation: float-y 6s ease-in-out infinite;
}

.hero-decor img {
  width: 200px;
}

/* ============ CARDS ============ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s var(--ease);
  position: relative;
}

.card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-accent-soft);
  color: var(--color-charcoal);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: all 0.3s var(--ease);
}

.card:hover .card-icon {
  background: var(--color-accent);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.3px;
}

.card p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ============ FEATURE BANNER (Sponsor) ============ */
.feature-banner {
  background: var(--color-charcoal);
  color: white;
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.feature-banner::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(184, 217, 44, 0.18), transparent 70%);
  pointer-events: none;
}

.feature-banner .section-eyebrow {
  color: var(--color-accent);
}
.feature-banner .section-eyebrow::before { background: var(--color-accent); }

.feature-banner h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 14px;
  color: white;
  letter-spacing: -1px;
}

.feature-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.6;
  max-width: 540px;
}

.feature-banner p strong {
  color: var(--color-accent);
  font-weight: 700;
}

.sponsor-mark {
  width: 140px;
  height: 140px;
  background: white;
  border-radius: 24px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sponsor-mark img { width: 96px; height: 96px; }

/* ============ COMPOSITION CARDS ============ */
.compo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.compo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}

.compo-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lg);
}

.compo-header {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  font-family: var(--font-display);
}

.compo-header.dames {
  background: #fff0f3;
  color: var(--color-red);
  border-bottom: 1px solid #ffd9e0;
}

.compo-header.hommes {
  background: #f0f7e6;
  color: var(--color-green);
  border-bottom: 1px solid #d8e8c4;
}

.compo-header.inactive {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.compo-team-letter {
  background: rgba(0, 0, 0, 0.08);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.compo-status {
  padding: 18px 22px 8px;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.compo-opponent {
  padding: 0 22px 18px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.compo-opponent .opp-name {
  font-weight: 800;
  font-size: 18px;
  display: block;
  font-family: var(--font-display);
  letter-spacing: -0.3px;
  color: var(--color-text);
}

.compo-opponent .opp-team {
  display: inline-block;
  font-size: 11px;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: 2px 10px;
  border-radius: 4px;
  margin-top: 6px;
  font-weight: 700;
  letter-spacing: 1px;
}

.compo-meta {
  padding: 18px 22px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.compo-meta .meta-row { display: flex; gap: 8px; }

.compo-meta .meta-label {
  font-weight: 600;
  color: var(--color-text);
  min-width: 78px;
}

.compo-players {
  padding: 18px 22px;
  border-top: 1px solid var(--color-border);
}

.compo-players h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  font-weight: 700;
}

.player-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.player-row:last-child { border-bottom: none; }

.player-num {
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
}

.player-name {
  font-weight: 500;
  color: var(--color-text);
}
.player-name.captain { color: var(--color-text); font-weight: 700; }
.player-name.captain::after {
  content: ' ©';
  font-weight: 900;
  color: var(--color-accent-2);
}

.player-rank {
  font-size: 11px;
  font-weight: 800;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--color-text);
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.compo-footer {
  padding: 14px 22px;
  background: var(--color-surface-2);
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--color-border);
}

.compo-footer strong { color: var(--color-text); }

/* ============ TABLE ============ */
.table-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

table { width: 100%; border-collapse: collapse; }

th, td {
  padding: 16px 22px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

th {
  background: var(--color-surface-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  font-weight: 700;
}

tr:last-child td { border-bottom: none; }
tr { transition: background 0.15s; }
tr:hover td { background: var(--color-surface-2); }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-display);
}

.badge-win { background: #e8f3da; color: var(--color-green); }
.badge-loss { background: #fce8ec; color: var(--color-red); }
.badge-pending { background: var(--color-accent-soft); color: var(--color-accent-2); }

/* ============ FORMS ============ */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

input[type=text], input[type=email], input[type=password],
input[type=date], input[type=time], input[type=number],
input[type=tel], select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: all 0.2s var(--ease);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-text);
  background: var(--color-surface);
}

textarea { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
}

.checkbox-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent-2);
  cursor: pointer;
}

/* ============ SIDEBAR LAYOUT ============ */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 73px);
  background: var(--color-bg);
}

.sidebar {
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: 28px 14px;
}

.sidebar-section { margin-bottom: 28px; }

.sidebar-section h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  padding: 0 14px 10px;
  font-weight: 700;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.sidebar a:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.sidebar a.active {
  background: var(--color-charcoal);
  color: white;
}
.sidebar a.active:hover { color: white; }

.app-main {
  padding: 40px 48px;
  overflow-x: auto;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  margin-bottom: 28px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-charcoal);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-display);
  flex-shrink: 0;
}

/* ============ KPI ============ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.kpi {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s var(--ease);
}

.kpi:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  font-weight: 700;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  margin-top: 8px;
  letter-spacing: -1px;
  color: var(--color-text);
}

.kpi-trend {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
  margin-top: 80px;
}

.footer-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-col h6 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col p, .footer-col a {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 2;
  display: block;
}

.footer-col a:hover { color: var(--color-text); }

.footer-bottom {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-soft);
  font-size: 12px;
}

.sponsor-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--color-charcoal);
  font-weight: 600;
  margin-top: 16px;
}

/* ============ CHIP ============ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* ============================================================ */
/* ============ TLIVE — Suivi tournoi style admin ============= */
/* ============================================================ */
.tlive { padding-bottom: 60px; }

/* KPIs */
.tlive-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0 20px;
}
.tlive-kpis .kpi {
  background: var(--color-surface);
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent, #84cc16);
}
.tlive-kpis .label {
  font-size: 10px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}
.tlive-kpis .value {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  margin-top: 4px;
  line-height: 1;
}

/* Recherche */
.tlive-search-wrap {
  position: relative;
  margin-bottom: 12px;
}
.tlive-search {
  width: 100%;
  padding: 12px 40px 12px 16px;
  font-size: 16px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-weight: 500;
}
.tlive-search:focus {
  border-color: var(--color-accent, #84cc16);
  outline: none;
  box-shadow: 0 0 0 3px rgba(132,204,22,0.15);
}
.tlive-search-clear {
  display: none;
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  background: var(--color-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-muted);
  align-items: center;
  justify-content: center;
}

/* Onglets + meta */
.tlive-tabs-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tlive-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tlive-tab {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  min-height: 40px;
  transition: all .15s;
}
.tlive-tab:hover { border-color: var(--color-text); }
.tlive-tab.active {
  background: var(--color-text);
  color: var(--color-surface);
  border-color: var(--color-text);
}
.tlive-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.tlive-refresh {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}
.tlive-refresh:hover { border-color: var(--color-text); transform: rotate(45deg); transition: transform .2s; }

/* Empty state */
.tlive-empty {
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* === Match card (style admin) === */
.tlive .match-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 36px 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  box-shadow: none;
  overflow: visible;
}
.tlive .match-card.completed {
  background: #f7fcef;
  border-color: var(--color-accent, #84cc16);
}
.tlive .match-card.encours {
  background: #ebf5fb;
  border-color: #1e88e5;
  border-left: 4px solid #1e88e5;
}
.tlive .match-card.bye-card {
  background: #fef3c7;
  border-color: #f59e0b;
}
.tlive .match-card.is-hit {
  outline: 3px solid var(--color-accent, #84cc16);
  outline-offset: -2px;
}
.tlive .match-card .table-num {
  font-weight: 800;
  color: var(--color-text);
  text-align: center;
  font-size: 14px;
  font-family: var(--font-display, inherit);
}
.tlive .match-card .players {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tlive .match-card .player-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tlive .match-card .player-line.winner { font-weight: 800; color: #166534; }
.tlive .match-card .player-line.loser { color: var(--color-text-muted); }
.tlive .match-card .player-classement {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-left: 4px;
}
.tlive .match-card .handicap-info {
  font-size: 11px;
  color: #92400e;
  background: #fef3c7;
  padding: 4px 9px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 600;
}
.tlive .match-card .handicap-info.nohcap {
  background: var(--color-bg);
  color: var(--color-text-muted);
}
.tlive .match-card .score-box {
  display: flex;
  gap: 4px;
  align-items: center;
  font-family: var(--font-display, inherit);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  min-width: 60px;
  justify-content: center;
}
.tlive .match-card .score-box.pending { color: var(--color-text-muted); }
.tlive .match-card .score-box .score-sep { color: var(--color-text-muted); font-size: 18px; }

/* Badges */
.tlive .match-card .badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.win-badge      { background: var(--color-accent, #84cc16); color: var(--color-text); }
.encours-badge  { background: #1e88e5; color: white; }
.attente-badge  { background: var(--color-text); color: white; }
.bye-badge      { background: #fef3c7; color: #78350f; }
.done-badge     { background: var(--color-bg); color: var(--color-text-muted); }

/* Bloc ronde */
.ronde-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.ronde-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}
.ronde-bar h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.ronde-block h4 {
  margin: 12px 0 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--color-text-muted);
}
.rh-live { color: #b91c1c !important; }
.rh-soon { color: #b45309 !important; }
.rh-done { color: #047857 !important; }
.rh-bye  { color: #78350f !important; }

/* Bracket TDE (élimination directe) — vue publique */
.live-bracket {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px 4px 16px;
  -webkit-overflow-scrolling: touch;
}
.live-bracket-round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-width: 210px;
  flex-shrink: 0;
}
.live-bracket-round h4 {
  margin: 0 0 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-muted);
}
.live-bracket-match {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 6px 0;
  font-size: 13px;
  transition: transform .15s;
}
.live-bracket-match.completed { border-color: #9ae6b4; background: #f0fff4; }
.live-bracket-match.encours   { border-color: #f59e0b; background: #fffbeb; }
.live-bracket-match.is-hit    { outline: 2px solid #b45309; outline-offset: 1px; }
.live-bracket-match .lbm-player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  gap: 8px;
}
.live-bracket-match .lbm-player + .lbm-player { border-top: 1px solid #f1f5f9; }
.live-bracket-match .lbm-player.winner { font-weight: 700; color: #166534; }
.live-bracket-match .lbm-player.loser  { color: var(--color-text-muted); }
.live-bracket-match .lbm-player.bye {
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 11px;
  justify-content: center;
}
.live-bracket-match .lbm-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.live-bracket-match .lbm-classement {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 500;
  margin-left: 4px;
}
.live-bracket-match .lbm-score {
  font-weight: 800;
  min-width: 18px;
  text-align: center;
}
.live-bracket-match .lbm-meta {
  margin-top: 5px;
  display: flex;
  justify-content: center;
  font-size: 10px;
  color: var(--color-text-muted);
}
.live-bracket-match .lbm-table {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
}
@media (max-width: 720px) {
  .live-bracket { gap: 14px; }
  .live-bracket-round { min-width: 170px; }
  .live-bracket-match { font-size: 12px; padding: 6px 8px; }
}

/* Mes matchs */
.mine-card {
  background: linear-gradient(135deg, #ecfccb 0%, #f7fee7 100%);
  border: 2px solid var(--color-accent, #84cc16);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.mine-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mine-card .mine-cnt {
  background: var(--color-text);
  color: var(--color-accent, #84cc16);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 800;
}
.mine-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.mine-rd {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

/* Tableau classement / inscrits */
.tlive-h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
}
.tlive-table-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tlive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tlive-table thead th {
  background: var(--color-bg);
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
  font-weight: 800;
  white-space: nowrap;
}
.tlive-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.tlive-table tbody tr:last-child td { border-bottom: none; }
.tlive-table tbody tr:hover { background: var(--color-bg); }
.tlive-table tr.is-first { background: #fef9c3; }
.tlive-table tr.is-first:hover { background: #fef08a; }
.tlive-table tr.is-hit {
  background: #ecfccb !important;
  outline: 2px solid var(--color-accent, #84cc16);
  outline-offset: -2px;
}
.tlive-note {
  margin: 10px 4px 0;
  font-size: 12px;
  color: var(--color-text-muted);
  font-style: italic;
}

/* === MOBILE === */
@media (max-width: 720px) {
  .tlive-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tlive-kpis .kpi { padding: 10px 12px; }
  .tlive-kpis .value { font-size: 20px; }

  .tlive-tabs-wrap { flex-direction: column; align-items: stretch; }
  .tlive-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .tlive-tabs::-webkit-scrollbar { display: none; }
  .tlive-tab { flex-shrink: 0; }
  .tlive-meta { justify-content: space-between; }

  /* Match card empilée verticalement sur mobile */
  .tlive .match-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "tablenum status"
      "players  score"
      "handicap handicap";
    gap: 10px 14px;
    padding: 14px;
  }
  .tlive .match-card .table-num { grid-area: tablenum; text-align: left; font-size: 13px; color: var(--color-text-muted); }
  .tlive .match-card .players { grid-area: players; }
  .tlive .match-card > div:nth-child(3) { grid-area: handicap; }
  .tlive .match-card .score-box { grid-area: score; min-width: auto; }
  .tlive .match-card > div:last-child { grid-area: status; text-align: right; }
  .tlive .match-card .player-line { font-size: 15px; }
  .tlive .match-card .score-box { font-size: 24px; }

  .tlive .ronde-bar h3 { font-size: 16px; }
  .tlive .ronde-block { padding: 14px; }
  .tlive-table { font-size: 13px; }
  .tlive-table thead th, .tlive-table tbody td { padding: 9px 10px; }
}

/* ============================================================ */
/* ============ LIVE TOURNOI — Refonte mobile-first =========== */
/* ============================================================ */

.live { background: var(--color-bg); }

/* === Hero "EN DIRECT" === */
.live-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 32px 0 28px;
  position: relative;
  overflow: hidden;
}
.live-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(132,204,22,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.live-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  border: 1px solid rgba(239,68,68,0.3);
}
.live-updated {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.live-hero-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 22px;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #ffffff;
}
.live-hero-title .accent { color: #84cc16; }
.live-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.live-kpi {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.live-kpi-num {
  font-family: var(--font-display, inherit);
  font-size: 28px;
  font-weight: 800;
  color: #84cc16;
  line-height: 1;
  margin-bottom: 4px;
}
.live-kpi-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

/* === Sticky bar : search + tabs === */
.live-sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0 12px;
  box-shadow: 0 4px 12px -8px rgba(0,0,0,0.1);
}
.live-search-wrap {
  position: relative;
  margin-bottom: 10px;
}
.live-search-icon {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}
.live-search {
  width: 100%;
  padding: 14px 48px 14px 44px;
  font-size: 16px;
  border-radius: 100px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-weight: 500;
}
.live-search:focus {
  border-color: #84cc16;
  outline: none;
  box-shadow: 0 0 0 3px rgba(132,204,22,0.15);
}
.live-search-clear {
  display: none;
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  background: var(--color-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text-muted);
  align-items: center;
  justify-content: center;
}
.live-search-clear:hover { background: var(--color-text); color: #fff; }

.live-tabs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 0 16px;
}
.live-tabs-wrap::-webkit-scrollbar { display: none; }
.live-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  width: max-content;
  min-width: 100%;
}
.live-tab {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  padding: 10px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  min-height: 44px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-tab-ico { font-size: 15px; }
.live-tab:hover { border-color: var(--color-text); }
.live-tab.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px -4px rgba(15,23,42,0.4);
}
.live-foot {
  margin-top: 18px;
  text-align: center;
  padding-bottom: 12px;
}

/* === Section ronde === */
.ronde-section {
  margin: 24px 0;
}
.ronde-section.is-current {
  position: relative;
}
.ronde-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}
.ronde-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.ronde-pill {
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.ronde-pill-now {
  background: #fef3c7;
  color: #92400e;
  animation: subtle-pulse 2s ease-in-out infinite;
}
@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
  50% { box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.2); }
}

.ronde-block { margin-bottom: 20px; }
.ronde-block:last-child { margin-bottom: 0; }
.ronde-h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ronde-h4 .cnt {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 12px;
}
.ronde-h4-live { color: #b91c1c; }
.ronde-h4-live .cnt { background: #fee2e2; color: #b91c1c; }
.ronde-h4-soon { color: #b45309; }
.ronde-h4-soon .cnt { background: #fef3c7; color: #92400e; }
.ronde-h4-done { color: #047857; }
.ronde-h4-done .cnt { background: #dcfce7; color: #047857; }

/* === Grid des matchs === */
.mc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.mc-wrap { display: flex; flex-direction: column; }
.mc-ronde-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 6px;
  padding-left: 4px;
}

/* === Carte de match (le morceau central) === */
.mc {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 14px 14px 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s, box-shadow .15s;
}
.mc:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(0,0,0,0.1); }
.mc-live {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}
.mc-done {
  background: var(--color-surface);
  border-color: var(--color-border);
}
.mc-bye-card {
  background: var(--color-bg);
  border-style: dashed;
  border-color: var(--color-border);
}
.mc-hit {
  border-color: #84cc16;
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.18);
}

.mc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.mc-status-live {
  background: #fee2e2;
  color: #b91c1c;
}
.mc-status-done {
  background: #dcfce7;
  color: #047857;
}
.mc-status-soon {
  background: #fef3c7;
  color: #92400e;
}
.mc-status-bye {
  background: var(--color-bg);
  color: var(--color-text-muted);
}
.mc-table-chip {
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.4px;
}
.dot-live {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse-dot 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.mc-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mc-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--color-bg);
  border-radius: 10px;
  border: 1.5px solid transparent;
  transition: background .15s;
}
.mc-row.is-winner {
  background: linear-gradient(90deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #4ade80;
}
.mc-row.is-loser { opacity: 0.55; }
.mc-row-bye { background: var(--color-surface); }

.mc-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px -2px rgba(0,0,0,0.2);
}
.mc-pname {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-row.is-winner .mc-pname { color: #14532d; }
.mc-pclass {
  font-size: 11px;
  font-weight: 800;
  background: var(--color-surface);
  color: var(--color-text-muted);
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.mc-row.is-winner .mc-pclass { background: rgba(255,255,255,0.7); color: #14532d; }
.mc-pscore {
  font-family: var(--font-display, inherit);
  font-size: 28px;
  font-weight: 800;
  min-width: 28px;
  text-align: center;
  line-height: 1;
  color: var(--color-text);
}
.mc-row.is-winner .mc-pscore { color: #14532d; }
.mc-vs {
  position: relative;
  text-align: center;
  margin: -2px 0;
}
.mc-vs::before, .mc-vs::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--color-border);
}
.mc-vs::before { left: 0; }
.mc-vs::after { right: 0; }
.mc-vs span {
  display: inline-block;
  padding: 2px 14px;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-text-muted);
  letter-spacing: 1.5px;
  background: var(--color-surface);
  position: relative;
}
.mc-foot {
  border-top: 1px dashed var(--color-border);
  padding-top: 10px;
  margin-top: 4px;
}
.mc-handicap {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
}
.mc-handicap strong { color: var(--color-text); }

/* === Section "Pour toi" (recherche) === */
.mine-section {
  background: linear-gradient(135deg, #ecfccb 0%, #f7fee7 100%);
  border: 2px solid #84cc16;
  border-radius: 18px;
  padding: 18px 16px;
  margin: 24px 0;
  position: relative;
}
.mine-header { margin-bottom: 14px; }
.mine-eyebrow {
  display: inline-block;
  background: #0f172a;
  color: #84cc16;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.mine-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mine-count {
  background: #84cc16;
  color: #0f172a;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 800;
}

/* === Classement === */
.standings {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0;
}
.standings-row {
  display: grid;
  grid-template-columns: 40px 36px 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 12px 14px;
  transition: transform .15s, box-shadow .15s;
}
.standings-row:hover { transform: translateX(2px); }
.standings-row.is-hit {
  border-color: #84cc16;
  box-shadow: 0 0 0 3px rgba(132,204,22,0.15);
}
.standings-row.podium-1 {
  background: linear-gradient(90deg, #fef9c3 0%, var(--color-surface) 30%);
  border-color: #facc15;
}
.standings-row.podium-2 {
  background: linear-gradient(90deg, #f1f5f9 0%, var(--color-surface) 30%);
  border-color: #cbd5e1;
}
.standings-row.podium-3 {
  background: linear-gradient(90deg, #fed7aa 0%, var(--color-surface) 30%);
  border-color: #fdba74;
}
.standings-rank {
  font-family: var(--font-display, inherit);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1;
}
.podium-1 .standings-rank { color: #ca8a04; }
.podium-2 .standings-rank { color: #475569; }
.podium-3 .standings-rank { color: #c2410c; }
.standings-name { min-width: 0; }
.sn-main {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sn-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}
.standings-stats {
  display: flex;
  gap: 12px;
}
.ss-block {
  text-align: center;
  min-width: 36px;
}
.ss-num {
  font-family: var(--font-display, inherit);
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}
.ss-block-sub .ss-num {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 700;
}
.ss-lbl {
  font-size: 9px;
  font-weight: 800;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 3px;
}

/* === Inscrits === */
.players-header { margin: 24px 0 14px; }
.players-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text);
}
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.player-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 12px 14px;
}
.player-card .mc-avatar { width: 40px; height: 40px; font-size: 14px; }
.player-info { min-width: 0; }
.player-name {
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-class {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

/* === Empty states === */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: 18px;
  margin: 24px 0;
}
.empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
}
.empty-state h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}
.empty-state p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* === MOBILE responsive === */
@media (max-width: 720px) {
  .live-hero { padding: 24px 0 22px; }
  .live-hero-title { font-size: 28px; margin-bottom: 18px; }
  .live-kpi { padding: 12px 8px; }
  .live-kpi-num { font-size: 22px; }
  .live-kpi-lbl { font-size: 10px; }

  .live-sticky { padding: 12px 0 10px; }

  .ronde-header h3 { font-size: 18px; }
  .mc-grid { grid-template-columns: 1fr; gap: 10px; }
  .mc { padding: 12px 12px 10px; }
  .mc-row { padding: 10px 10px; gap: 10px; }
  .mc-pname { font-size: 14px; }
  .mc-pscore { font-size: 24px; }

  .standings-row {
    grid-template-columns: 32px 32px 1fr auto;
    gap: 10px;
    padding: 10px 12px;
  }
  .standings-rank { font-size: 18px; }
  .sn-main { font-size: 14px; }
  .ss-num { font-size: 15px; }
  .ss-block { min-width: 30px; }
  .standings-stats { gap: 8px; }

  .players-grid { grid-template-columns: 1fr; }

  .empty-state { padding: 40px 20px; }
  .empty-icon { font-size: 44px; }
}

@media (max-width: 480px) {
  .live-hero-title { font-size: 24px; }
  .mine-header h3 { font-size: 18px; }
  .live-tab { padding: 9px 14px; font-size: 13px; min-height: 42px; }
  .live-tab-ico { font-size: 14px; }
  .mc-status { font-size: 10px; padding: 3px 8px; }
  .mc-table-chip { font-size: 10px; padding: 3px 10px; }
}
.live-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.live-table thead th {
  background: var(--color-bg);
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}
.live-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}
.live-table tbody tr:last-child td { border-bottom: none; }
.live-table tbody tr:hover { background: var(--color-bg); }
.live-table .rank {
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-accent-strong, var(--color-accent));
}
.live-h4 {
  margin: 14px 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}
.live-h4-live { color: #b91c1c; }
.live-h4-soon { color: #b45309; }
.live-h4-done { color: #047857; }
.match-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.match-list li {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 14px;
}
.match-list .player { font-weight: 600; }
.match-list .player small {
  color: var(--color-text-muted);
  font-weight: 500;
  margin-left: 4px;
  font-size: 12px;
}
.match-list .vs {
  color: var(--color-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.match-list .score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
}
.match-list .table-badge {
  display: inline-block;
  background: var(--color-accent-soft, #ecfccb);
  color: var(--color-accent-strong, #4d7c0f);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (max-width: 720px) {
  .match-list li {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4px;
  }
  .match-list .vs { font-size: 11px; }
  .live-table { font-size: 13px; }
  .live-table thead th, .live-table tbody td { padding: 10px 12px; }

  /* Match cards mobile */
  .match-grid { grid-template-columns: 1fr; gap: 10px; }
  .match-card { padding: 16px 14px; }
  .mc-row { padding: 10px 12px; font-size: 15px; }
  .mc-name { font-size: 15px; }
  .mc-score { font-size: 26px; }
  .mc-table { right: 12px; padding: 4px 10px; font-size: 10px; }
  .ronde-title { font-size: 16px; }
  .mine-title { font-size: 16px; }

  /* Tabs : un peu plus de padding pour les doigts */
  .live-tab { padding: 11px 16px; font-size: 13px; }
  .live-search { padding: 12px 40px 12px 16px; font-size: 16px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-surface); flex-direction: column; padding: 12px; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md); z-index: 50; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 18px; min-height: 44px; display: flex; align-items: center; }
  .menu-toggle { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .nav-cta .btn-ghost { display: none; }
  .hero-content { grid-template-columns: 1fr; gap: 56px; }
  .footer-wrap { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .feature-banner { grid-template-columns: 1fr; text-align: center; padding: 40px 28px; }
  .feature-banner > div { display: flex; flex-direction: column; align-items: center; }

  /* === App layout : sidebar devient barre horizontale scrollable === */
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 10px 14px;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 0;
    background: var(--color-surface);
    z-index: 30;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar-section { margin-bottom: 0; display: flex; gap: 4px; }
  .sidebar-section h5 { display: none; }
  .sidebar a { white-space: nowrap; padding: 10px 14px; min-height: 40px; display: inline-flex; align-items: center; }
  .sidebar .user-chip { display: none; }
  .app-main { padding: 24px 18px; }

  /* === KPI grid plus dense en mobile === */
  .kpi-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }

  /* === Tables : scroll horizontal forcé === */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { font-size: 13px; }
  table th, table td { padding: 10px 12px; }
}

@media (max-width: 720px) {
  /* Tap targets : tout au moins 44px de haut */
  .btn { min-height: 44px; padding: 12px 18px; }
  .btn-sm { min-height: 38px; padding: 10px 14px; }
  input[type=text], input[type=email], input[type=password],
  input[type=date], input[type=time], input[type=number],
  input[type=tel], select, textarea {
    font-size: 16px; /* évite le zoom auto sur iOS */
    padding: 14px 16px;
  }
  .checkbox-row { padding: 10px 0; min-height: 40px; }
  .checkbox-row input[type=checkbox] { width: 22px; height: 22px; }

  /* Cards plus compactes */
  .card { padding: 20px 18px; }

  /* Header sticky avec moins de padding */
  .site-header { position: sticky; top: 0; z-index: 40; }
  .nav-wrap { padding: 12px 16px; }

  /* Form cards: less padding */
  .form-card { padding: 24px 18px; }

  /* Section titles plus petits */
  .section-title { font-size: 28px; line-height: 1.15; }
  h1 { font-size: 32px !important; line-height: 1.1; }
  h2 { font-size: 24px; }

  /* KPI cards : scroll horizontal pour > 4 cards si besoin */
  .kpi-card { padding: 16px 14px; }
  .kpi-card .kpi-value { font-size: 24px; }

  /* Buvette : produits en grille adaptée mobile */
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 10px !important; }
  .product-card { padding: 12px 10px !important; min-height: 100px; }
}

@media (max-width: 560px) {
  .container { padding: 48px 18px; }
  .nav-wrap { padding: 12px 16px; }
  .hero { padding: 56px 0 40px; }
  .hero-content { padding: 0 18px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-wrap { grid-template-columns: 1fr; padding: 0 18px; gap: 28px; }
  .nav-cta .btn-primary span { display: none; }
  .form-card { padding: 22px 16px; }

  /* App main : padding réduit */
  .app-main { padding: 18px 14px; }

  /* KPI : 1 colonne si très petit */
  .kpi-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }

  /* Card grid : 1 colonne */
  .card-grid { grid-template-columns: 1fr !important; gap: 12px !important; }

  /* Section eyebrow + lead plus petits */
  .section-subtitle { font-size: 15px; }
  .lead { font-size: 16px; }

  /* Boutons groupés : empile verticalement quand petit */
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* === Layout caisse buvette === */
.caisse-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 980px) {
  .caisse-layout { grid-template-columns: 1fr; gap: 16px; }
}

/* === Grille produits buvette === */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.prod-tile {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  padding: 10px 8px 8px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform .12s, border-color .12s, box-shadow .12s;
  user-select: none;
  font-family: inherit;
  width: 100%;
  min-height: 110px;
}
.prod-tile:hover, .prod-tile:focus-visible {
  border-color: var(--color-accent, #84cc16);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -6px rgba(0,0,0,0.15);
  outline: none;
}
.prod-tile:active {
  transform: translateY(0) scale(0.97);
  background: var(--color-bg);
}
.prod-tile.is-low { border-color: #dc2626; }
.prod-tile-img {
  width: 56px; height: 56px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--color-bg);
  margin-bottom: 2px;
  flex-shrink: 0;
}
.prod-tile-emoji {
  font-size: 32px;
  line-height: 1;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prod-tile-name {
  font-weight: 700;
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  width: 100%;
  word-break: break-word;
}
.prod-tile-price {
  font-size: 13px;
  color: var(--color-accent-2, var(--color-text));
  font-weight: 800;
  font-family: var(--font-display, inherit);
}
.prod-tile-stock {
  font-size: 10px;
  color: var(--color-text-muted);
  font-weight: 600;
}
.prod-tile-stock.is-low { color: #dc2626; font-weight: 800; }

/* === MOBILE — 3 colonnes serrées === */
@media (max-width: 720px) {
  .prod-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .prod-tile {
    padding: 8px 6px 6px;
    min-height: 100px;
    border-radius: 10px;
  }
  .prod-tile-img, .prod-tile-emoji {
    width: 44px; height: 44px;
    font-size: 26px;
  }
  .prod-tile-name { font-size: 11px; }
  .prod-tile-price { font-size: 12px; }
  .prod-tile-stock { font-size: 9px; }
}
@media (max-width: 380px) {
  .prod-grid { gap: 6px; }
  .prod-tile { padding: 6px 4px 6px; }
  .prod-tile-name { font-size: 10px; }
}

/* === Helpers mobile === */
@media (max-width: 980px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 981px) {
  .show-mobile { display: none !important; }
}

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