/* Thème noir / or */
body {
  background: #0c0c0c;
  color: #FFD700;
  font-family: 'Titillium Web', sans-serif;
  padding: 30px;
  line-height: 1.6;
}

/* static/styles.css */

/* ... (conservez tous vos styles globaux existants pour body, header, nav, etc.) ... */

/* Styles spécifiques à matches.html (à coller dans votre <style> ou styles.css) */

/* Styles généraux pour le conteneur de la page */
.container {
    background-color: #111; /* Fond comme club-card */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); /* Ombre or */
    max-width: auto; /* Augmenté pour accueillir plus de colonnes */
    margin: 30px auto;
}

h1 {
    color: #FFD700; /* Couleur or du thème */
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em; /* Taille comme vos h1 */
    text-shadow: 1px 1px 3px #000;
}

/* Formulaire de filtres */
.filter-form {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #333; /* Bordure plus sombre */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    background-color: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, .35);
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-form label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #FFD700;
    font-size: 1.1em;
}

.filter-form input[type="text"],
.filter-form select {
    padding: 10px 15px;
    font-size: 1em;
    border-radius: 8px;
    border: 2px solid #FFD700;
    background-color: #222;
    color: #fff;
    min-width: 200px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.filter-form input[type="text"]:focus,
.filter-form select:focus {
    outline: none;
    border-color: #fff;
    background-color: #333;
}

.filter-form button {
    display: inline-block;
    width: auto;
    background-color: #000;
    color: #FFD700;
    border: none;
    border-radius: 10px;
    padding: 15px 25px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    margin-right: 15px;
}
.filter-form button:last-child {
    margin-right: 0;
}

.filter-form button:hover {
    background-color: #333;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 215, 0, 1);
}

/* Conteneur pour le tableau qui permet le défilement horizontal */
.table-container {
    overflow-x: auto; /* Permet le défilement horizontal si le contenu dépasse */
    width: 100%; /* S'assure que le conteneur prend toute la largeur disponible */
    margin-bottom: 20px; /* Espace en dessous du tableau */
}


/* Tableau - adaptation */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    box-shadow: 0 0 10px rgba(255, 215, 0, .25);
    border-radius: 10px;
    overflow: hidden; /* Important pour les coins arrondis et l'ombre */
    font-size: 0.85em; /* Taille de police légèrement réduite pour tout le tableau */
    table-layout: fixed; /* TRÈS IMPORTANT: Force les largeurs de colonne fixes */
    min-width: 1200px; /* Largeur minimale pour éviter un tableau trop serré sur les petits écrans avant le scroll */
}

th, td {
    border: 1px solid #333;
    padding: 8px 10px; /* Diminué légèrement le padding */
    text-align: left;
    color: #eee; /* Gris clair pour les données, contraste avec le fond sombre */
    word-wrap: break-word; /* Permet aux longs mots de se casser */
    white-space: normal; /* Permet le retour à la ligne */
}

th {
    background-color: #222;
    color: #FFD700; /* Texte or pour les en-têtes */
    cursor: pointer;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap; /* Empêche les en-têtes de se casser sur plusieurs lignes */
}
th:hover {
    background-color: #333;
}

/* Styles pour les cellules du corps du tableau */
td {
    color: #fff; /* Couleur de base pour les cellules de données */
}

/* Couleurs alternées des lignes */
tr:nth-child(even) {
    background-color: #141414;
}
tr:hover {
    background-color: #1a1a1a;
}

/* Liens de détails */
.match-details-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}
.match-details-link:hover {
    text-decoration: underline;
    color: #fff;
}

/* Icônes de tri */
.sort-icon {
    margin-left: 5px; /* Réduit l'espace */
    font-size: 0.8em; /* Plus petit */
    color: #fff; /* Blanc pour l'icône */
}

/* Alignement spécifique pour les données numériques et mentalité */
/* Adaptez les `nth-child` à l'ordre exact de vos colonnes dans le HTML */
/* L'ordre est maintenant : ID, Date, Équipe D, Form. D, S.D, T.D, P.D, OVR D, NRJ D, Men. D, Équipe E, Form. E, S.E, T.E, P.E, OVR E, NRJ E, Men. E, Détails */
table th:nth-child(1), td:nth-child(1) { width: 60px; text-align: center; } /* ID Match */
table th:nth-child(2), td:nth-child(2) { width: 120px; } /* Date/Heure */
table th:nth-child(3), td:nth-child(3) { width: 100px; } /* Équipe D. */
table th:nth-child(4), td:nth-child(4) { width: 75px; } /* Form. D. */
table th:nth-child(5), td:nth-child(5) { width: 45px; text-align: center; } /* Score D. */
table th:nth-child(6), td:nth-child(6) { width: 45px; text-align: center; } /* Tirs D. */
table th:nth-child(7), td:nth-child(7) { width: 45px; text-align: center; } /* Passes D. */
table th:nth-child(8), td:nth-child(8) { width: 50px; text-align: center; } /* OVR D. */
table th:nth-child(9), td:nth-child(9) { width: 50px; text-align: center; } /* Energy D. */
table th:nth-child(10), td:nth-child(10) { width: 70px; } /* Mentalité D. */

table th:nth-child(11), td:nth-child(11) { width: 100px; } /* Équipe E. */
table th:nth-child(12), td:nth-child(12) { width: 75px; } /* Form. E. */
table th:nth-child(13), td:nth-child(13) { width: 45px; text-align: center; } /* Score E. */
table th:nth-child(14), td:nth-child(14) { width: 45px; text-align: center; } /* Tirs E. */
table th:nth-child(15), td:nth-child(15) { width: 45px; text-align: center; } /* Passes E. */
table th:nth-child(16), td:nth-child(16) { width: 50px; text-align: center; } /* OVR E. */
table th:nth-child(17), td:nth-child(17) { width: 50px; text-align: center; } /* Energy E. */
table th:nth-child(18), td:nth-child(18) { width: 70px; } /* Mentalité E. */
table th:nth-child(19), td:nth-child(19) { width: 55px; text-align: center; } /* Détails */


/* Styles pour les barres OVR/Energy - adaptation */
.rating-bar-container {
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    overflow: hidden;
}
.rating-bar {
    height: 15px;
    border-radius: 3px;
    text-align: right;
    color: #0c0c0c;
    font-size: 0.8em;
    font-weight: bold;
    line-height: 15px;
    padding-right: 5px;
    box-sizing: border-box;
}

footer {
    margin-top: 40px;
    text-align: center;
    color: #ccc;
    font-size: 0.9em;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.grid-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}
@media(max-width: 800px) {
  .grid-container { grid-template-columns: 1fr; }
}

.club-card {
  background: #111;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 215, 0, .25);
}
.club-logo {
  height: 110px;
  margin-bottom: 10px;
}
.club-name {
  font-size: 1.6em;
  margin: 10px 0 5px 0;
}
.club-division {
  font-size: .9em;
  margin-bottom: 15px;
}
.badge {
  background: #FFD700;
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
}
.club-desc {
  font-size: 0.9em;
  color: #ccc;
  margin-bottom: 15px;
}
.colours {
  margin-top: 10px;
}
.dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 6px;
  border: 1px solid #fff;
}

.analysis .card {
  background: #1a1a1a;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 0 8px rgba(0, 0, 0, .35);
}
.analysis h3 {
  margin-bottom: 15px;
  font-size: 1.3em;
}
.stats-inline {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.stats-inline li {
  background: #000;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: .9em;
}

li {
  list-style: none;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95em;
}

.table th, .table td {
  padding: 8px 10px;
  border: 1px solid #333;
  text-align: center;
}
.table th {
  background: #222;
  color: white;
}
.table tr:nth-child(even) {
  background: #141414;
}

.btn-back {
  display: inline-block;
  padding: 10px 22px;
  background: #FFD700;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}
.btn-back:hover {
  background: #e6c200;
}

h1.welcome-title {
  text-align: center;
  color: #FFD700;
  margin-top: 50px;
  font-size: 2.5em;
  text-shadow: 1px 1px 3px #000;
}
ul.menu {
  list-style: none;
  padding: 0;
  margin: 50px auto;
  max-width: 400px;
  text-align: center;
}
ul.menu li {
  margin: 20px 0;
}
ul.menu .button {
  display: inline-block;
  width: 100%;
  padding: 15px 0;
  font-size: 1.2em;
  background-color: #000;
  color: #FFD700;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  transition: background-color 0.3s ease, color 0.3s ease;
}
ul.menu .button:hover {
  background-color: #333;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
}

h1 {
  text-align: center;
  color: #FFD700;
  margin-top: 40px;
  font-size: 2.5em;
  text-shadow: 1px 1px 3px #000;
}

form {
  max-width: 400px;
  margin: 40px auto;
  padding: 30px;
  background-color: #111;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  color: #fff;
  font-family: Arial, sans-serif;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1.1em;
  color: #FFD700;
}

input[type="text"],
input[type="hidden"] {
  width: 100%;
  padding: 10px 15px;
  font-size: 1em;
  border-radius: 8px;
  border: 2px solid #FFD700;
  background-color: #222;
  color: #fff;
  box-sizing: border-box;
  margin-bottom: 20px;
  transition: border-color 0.3s ease;
}
input[type="text"]:focus {
  outline: none;
  border-color: #fff;
  background-color: #333;
}

button[type="submit"] {
  display: block;
  width: 100%;
  background-color: #000;
  color: #FFD700;
  border: none;
  border-radius: 10px;
  padding: 15px 0;
  font-size: 1.2em;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  transition: background-color 0.3s ease, color 0.3s ease;
}
button[type="submit"]:hover {
  background-color: #333;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 215, 0, 1);
}

.back-button {
  display: inline-block;
  margin: 30px auto;
  text-align: center;
  color: #FFD700;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: color 0.3s ease;
}
.back-button:hover {
  color: #fff;
}

.cond-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border-radius: 50%;
  vertical-align: middle;
}
