/* Styles pour la liste des résultats */
.results-wrapper {
  background-color: #ffffff;
  margin-bottom: 20px;
  overflow: hidden; /* Empêche le débordement du contenu */
}

/* Ajout de l'enveloppe avec défilement horizontal */
.results-table-wrapper {
  overflow-x: auto;
}

/* Styles pour le tableau */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px;
  text-transform: uppercase;
  border: none;
}

/* Styles pour l'en-tête du tableau */
table thead th {
  background-color: #242932;
  padding: 10px;
  text-align: center;
  border: none;
}
.header-list {
  height: 50px;
  width: 100%;
}

/* Styles pour les cellules d'en-tête spécifiques */
table th.competition-head {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
table th.rencontre-head {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Cacher les cellules de compétitions et de date en mode responsive */
@media screen and (max-width: 768px) {
  th.hide-on-mobile,
  td.hide-on-mobile {
    display: none;
  }
}

/* Styles pour les cellules du tableau */
table td {
  padding: 10px;
  border-bottom: 1px solid #dddddd;
  border: none;
  text-align: center;
}

/* Styles pour chaque résultat */
table td .competition-name,
table td .team-name {
  font-weight: bold;
  color: #ffffff;
}

a.has-link:hover {
  /* Appliquez le style :hover uniquement si la classe .has-link est présente */
  font-weight: bold;
  color: #ec1d26;
}

table tr:nth-child(odd) {
  /* Ligne impaire */
  background-color: #1f4393;
  color: #ffffff;
}

table tr:nth-child(even) {
  /* Ligne paire */
  background-color: #5578c3;
  color: #ffffff;
}

table td .date-time {
  display: block;
}

table td .team-logo {
  width: 50px;
  height: 50px;
}

table td .team-score {
  font-weight: bold;
  font-size: 30px;
}

table td .versus-icon {
  margin: 0 10px;
}

table tr {
  height: 60px;
}

/* Taille de la police à 18px par défaut */
table td .date-time.date {
  font-size: 18px;
}

/* Autres styles de mise en forme */
table td .team-info {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Styles Select */
.competition-filter {
  margin: 1em 0;
}

#competition-select {
  border-radius: 7px;
  color: #1f4393;
  background-color: #ffffff;
  outline: none;
  border-color: #1f4393;
}

/* Stylisation du bouton pour afficher les résultats */
.show-all-results {
  display: flex;
  justify-content: flex-end;
}

#btn_result {
  margin-bottom: 20px;
}

/* Media query pour la tablette et le smartphone */
@media screen and (max-width: 768px) {
  /* Cacher les cellules de compétitions et de date en mode responsive */
  th.hide-on-mobile,
  td.hide-on-mobile {
    display: none;
  }

  /* Styles pour l'en-tête du tableau en mode responsive */
  th.rencontre-head {
    border-radius: 8px;
    font-size: 18px;
  }
  /* Colspan de 6 pour la cellule d'en-tête "Rencontres" */
  th.rencontre-head.colspan-6 {
    display: table-cell;
    text-align: center;
    background-color: #242932;
    color: #ffffff;
    padding: 10px;
    border: none;
    border-radius: 8px;
    white-space: nowrap;
  }

  /* Styles pour les noms d'équipe en mode responsive */
  table td .team-name {
    font-size: 14px;
  }
}
@media screen and (max-width: 480px) {
  /* Ajuster la hauteur du tableau pour éviter le débordement */
  .results-wrapper {
    overflow-x: auto; /* Permettre le défilement horizontal */
    max-width: 100%; /* Empêcher le tableau de déborder de son conteneur */
  }
  .results-table-wrapper {
    overflow: hidden; /* Empêcher le débordement du contenu */
  }
  table td .team-score {
    font-weight: bold;
    font-size: 20px;
  }
  .away-team-logo,
  .home-team-logo {
    display: flex;
    justify-content: center;
  }
  .hide-on-smart-mobile {
    display: none;
  }
}
