body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101820;
  color: #f5f5f5;
  margin: 0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

h1, h2 {
  text-align: center;
}

/* Menu discret */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #151b26;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.9;
  border-bottom: 1px solid #333;
}

.logo-small {
  font-weight: 600;
  letter-spacing: 1px;
  color: #f5b300;
}

.top-nav nav a {
  color: #ccc;
  text-decoration: none;
  margin-left: 12px;
}

.top-nav nav a:hover {
  color: #f5b300;
}

.match-card {
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 10px;
  background: #181f2b;
}

.match-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #ccc;
}

.match-teams {
  font-size: 1.1rem;
  margin-top: 4px;
}

.match-buttons {
  margin-top: 8px;
}

button {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
  margin-right: 6px;
}

button.primary {
  background: #f5b300;
  color: #000;
}

button.secondary {
  background: #333;
  color: #fff;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.message {
  margin-top: 15px;
  min-height: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #f5b300;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  border: 1px solid #444;
  padding: 6px 8px;
  text-align: center;
}

.admin-form .form-row {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
}

.admin-form label {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.admin-form input {
  padding: 4px 6px;
  border-radius: 3px;
  border: 1px solid #555;
  background: #0f141d;
  color: #f5f5f5;
}

.form-actions {
  margin-top: 8px;
}

.bet-selected {
  background: #1f7a1f !important;
  color: #fff !important;
}
/* Fond global façon pelouse + couleurs vives */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1b5e20 0, #043018 45%, #02180c 100%);
  color: #f5f5f5;
}

/* Nav */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(90deg, #1e88e5, #fdd835, #e53935);
  color: #fff;
}

.logo-small {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.top-nav nav {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  border: none;
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-link.active {
  background: #1e88e5;
}

/* Contenu */
.container {
  max-width: 1200px;
  margin: 1rem auto 2rem;
  padding: 0 1rem;
}

/* Grille des matchs : 2 à 4 cartes par ligne selon la taille */
.matches-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Carte de match style "vignette" */
.match-card {
  background: #ffffff;
  color: #222;
  border-radius: 0.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  padding: 0.75rem 0.8rem;
  border-top: 4px solid #fdd835;
  position: relative;
  overflow: hidden;
}

.match-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(229, 57, 53, 0.1));
  pointer-events: none;
}

/* En-tête de la carte */
.match-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.match-phase {
  font-weight: 700;
  text-transform: uppercase;
  color: #1e88e5;
}

.match-date {
  color: #555;
}

/* Bloc équipes */
.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.4rem;
  margin: 0.4rem 0;
}

.match-team {
  background: rgba(245, 245, 245, 0.9);
  border-radius: 0.6rem;
  padding: 0.35rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.team-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #777;
}

.team-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.team-odds {
  font-size: 0.8rem;
  color: #1b5e20;
}

/* VS au centre */
.match-vs {
  font-weight: 800;
  font-size: 0.9rem;
  color: #e53935;
  padding: 0 0.3rem;
}

/* Pied de carte */
.match-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.match-draw {
  color: #333;
}

.match-result {
  font-weight: 700;
  color: #e53935;
}

/* Panneaux admin */
.panel {
  background: rgba(255, 255, 255, 0.98);
  color: #222;
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  margin-top: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 1rem;
}

@media (max-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-row {
  margin-bottom: 0.5rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.form-row input[type="text"] {
  width: 100%;
  padding: 0.3rem 0.4rem;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

button.primary {
  background: #1e88e5;
  color: #fff;
  border: none;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}

button.secondary {
  background: #eeeeee;
  border: none;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}

/* Messages */
.message {
  margin-top: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}
/* Boutons de pari 1X2 */
.bet-button {
  border: none;
  border-radius: 999px;
  padding: 0.3rem 0.4rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: #fff;
  min-width: 3rem;
  text-align: center;
  transition: transform 0.05s ease, box-shadow 0.05s ease, opacity 0.1s,
    background-color 0.1s;
}

.bet-1 {
  background: #1e88e5;
}

.bet-n {
  background: #fdd835;
  color: #333;
  justify-self: center; /* bouton X centré sous VS */
}

.bet-2 {
  background: #e53935;
}

.bet-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Sélection très visible */
.bet-button.selected {
  background: #00c853;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.7);
  transform: translateY(-1px) scale(1.03);
}

.bet-button:disabled {
  opacity: 0.6;
  cursor: default;
}


/* Pied de carte centré */
.match-footer {
  margin-top: 0.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
}

/* Ligne de cotes sous les équipes : 1 / X / 2 */
.bet-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.4rem;
  margin-top: 0.5rem;
  align-items: center;
}
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: #f5f5f5;
}

.filter-group label {
  margin-bottom: 0.2rem;
}

.filter-group select {
  padding: 0.25rem 0.4rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 0.8rem;
}
