body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    background: #f2f2f2;
}

main {
    flex: 1 0 auto;
}

.results-season {
    background: #f2f2f2;
    padding-top: 150px; /* Réduit sur mobile */
    padding-bottom: 30px;
    width: 100%;
}

/* Bandeau Titre Mobile */
.results-title {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    z-index: 2;
}

.results-title::after {
    content: "";
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 180px; /* Plus petit sur mobile */
    background: linear-gradient(90deg,#65C7F7 0%,#0052D4 50%,#65C7F7 100%);
    z-index: -1;
}

.results-title h2 {
    margin: 0;
    color: #fff;
    font-size: 28px; /* Taille adaptée au mobile */
    text-transform: uppercase;
}

/* Tableau Mobile (Optimisation du scroll horizontal) */
.results-table-wrapper {
    position: relative;
	width: 92%;
	z-index: 4;
    margin: 0 auto 20px auto;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow-x: auto; /* Permet de voir tout le tableau si trop large */
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px; /* Empêche le tableau de s'écraser */
}

.results-table caption {
  caption-side: top;           /* place le titre au-dessus du tableau */
  text-align: center;          /* centre le texte */
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #000;
}

.results-table-total {
  margin-top: 10px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  border-top: 2px solid #ccc; /* trait de 1px au-dessus */
  padding-top: 10px;           /* un peu d’espace entre le texte et le trait */
}

/* En-têtes */
.results-table thead th {
  background: #ffffff;
  color: #222;
  text-align: left;
  padding: 10px 8px;
  font-weight: 800;
  border-bottom: 2px solid #ccc;
  text-transform: uppercase;
  font-size: 12px;
}

/* Lignes */
.results-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.results-table tbody tr:nth-child(even) {
  background: #ededed;
}

/* Cellules */
.results-table td {
  padding: 10px 8px;
  font-weight: 700;
  font-size: 12px;
  color: #222;
}

/* Colonne lien */
.result-link {
  display: inline-block;
  padding: 6px 12px;
  background: #d60000;
  color: white;
  font-weight: 800;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
}

.result-link:hover {
  background: #a80000;
}
