/* Conteneur général */
@media (max-width: 1080px) and (max-width: 2340px) {
  .team_detail {
    display: flex;
    flex-direction: row;
    text-align: center;
    margin: 5% 20% !important;
    margin-right: 22%;
  }
  .numerotation {
    position: absolute;
    text-align: center;
    font: 700 18px / 26px inter, sans-serif;
    width: 26px;
    height: 26px;
    background: blue;
    border: solid 2px blue;
    color: white;
    margin: 0px 40px -2px -120px !important;
    padding: 0;
  }
  .hometeam {
    width: 100px !important;
    height: auto !important;
  }
  .awayteam {
    width: 100px !important;
    height: auto !important;
  }
}

@media (max-width: 760px) and (max-width: 1000px) {
  .team_detail {
    display: flex;
    flex-direction: row;
    text-align: center;
    margin-left: 5% 10% !important;
    margin-right: 22%;
  }
  .numerotation {
    position: absolute;
    text-align: center;
    font: 700 18px / 26px inter, sans-serif;
    width: 26px;
    height: 26px;
    background: blue;
    border: solid 2px blue;
    color: white;
    margin: 0px 40px -2px -70px !important;
    padding: 0;
  }
  .hometeam {
    width: 90px !important;
    height: auto !important;
  }
  .awayteam {
    width: 90px !important;
    height: auto !important;
    min-width: 80px !important;
  }

  .match_numerotation {
    margin: 0 46px -2px -60px !important;
  }
  .match-content {
    margin: 0 !important;
    padding: 0px 10px -4px 0px !important;
    background: #fff;
    /*border: 1px solid #ddd;*/
    /*border-radius: 4px;*/
  }
  .match_detail {
    display: flex;
    flex-direction: row;
    text-align: center;
    margin: 1% 10%;
    margin-right: 22%;
  }
}

@media (max-width: 767px) and (max-width: 1000px) {
  .team_detail {
    display: flex;
    flex-direction: row;
    text-align: center;
    margin-left: 5% 10% !important;
    margin-right: 22%;
  }
  .numerotation {
    position: absolute;
    text-align: center;
    font: 700 18px / 26px inter, sans-serif;
    width: 26px;
    height: 26px;
    background: blue;
    border: solid 2px blue;
    color: white;
    margin: 0px 40px -2px -34px !important;
    padding: 0;
  }
  .hometeam {
    width: 90px !important;
    height: auto !important;
    min-width: 80px !important;
  }
  .awayTeam {
    width: 90px !important;
    height: auto !important;
    min-width: 80px !important;
  }
  .match_resulttats {
    display: flex;
    gap: 2px;
    margin: 0 1px;
  }

  .match_numerotation {
    margin: 0 46px -2px -40px !important;
  }
  .match-content {
    margin: 0 !important;
    padding: 0px 10px -4px 0px !important;
    background: #fff;
    /*border: 1px solid #ddd;*/
    /*border-radius: 4px;*/
  }
  .match_detail {
    display: flex;
    flex-direction: row;
    text-align: center;
    margin: 1% 10% !important;
    margin-right: 22%;
  }
}

.pactole {
  font-family: verdana bold, sans-serif;
  font-weight: 700;
  font-size: x-large;
  margin: auto;
  padding: 0%;
  text-align: center !important;
}
.entete_text {
  font-family: verdana bold, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: blue !important;
  display: contents;
  padding: 0%;
}

.team_detail {
  display: flex;
  flex-direction: row;
  text-align: center;
  margin: 1% 12%;
  margin-right: 22%;
}
.numerotation {
  position: absolute;
  text-align: center;
  font: 700 18px / 26px inter, sans-serif;
  width: 26px;
  height: 26px;
  background: blue;
  border: solid 2px blue;
  color: white;
  margin: 0 46px -2px -80px;
  padding: 0;
}

.hometeam {
  padding: 0px 0px 0px 0px;
  width: 160px;
  min-width: 160px;
}
.awayTeam {
  padding: 0px 0px 0px 0px;
  width: 160px;
  min-width: 160px;
}

.content-header {
  margin: 20px auto;
  max-width: 800px;
  font-family: Arial, sans-serif;
}

/* Une grille */
.grille {
  border: 1px solid #ccc;
  margin-bottom: 20px;
  padding: 5px;
  border-radius: 6px;
  background: #fafafa;
}

/* Header de grille */
.resultats-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Drawer */
.drawer-content {
  display: none;
  margin-top: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Bouton toggle */
.toggle-btn {
  background: #0073aa;
  color: white;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 4px;
}
.toggle-btn:hover {
  background: #005f8d;
}

.match_resulttats {
  display: flex;
  gap: 2px;
  margin: 0 10px;
}

.match_result {
  border: 1px solid #aaa;
  padding: 5px 8px;
  border-radius: 3px;
}

.match_result.winner {
  background: green;
  color: white;
}

/* Tableau des gains */
.table_gains {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.table_gains th,
.table_gains td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.table_gains th {
  background: #f0f0f0;
}

.match_result.winner {
  background: green;
  color: #fff;
}

.tabs {
  --active-bg: #0b4d8c;
  --active-fg: #fff;
  --idle-bg: #eee;
  --border: #ddd;
  max-width: 800px;
  margin: 1rem auto;
  font-family: system-ui, sans-serif;
}
.tabs input[type="radio"] {
  display: none;
}

.tab-labels {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
}
.tab-label {
  background: #005f8d;
  color: white;
  padding: 0.5rem 0.9rem;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  font-weight: 700;
  user-select: none;
  width: 50%;
  text-align: center;
}

.drawer-content {
  display: none;
}
.drawer-content.is-open {
  display: block !important;
}

.lien_loto_sportiffdj {
  text-align: center;
  margin-top: -26px;
  font-size: 18px;
  font-weight: bold;
  align-content: center;
  padding: 5px 5px 5px 0;
}

.txt_loto_sportiffdj {
  color: blue;
  font-weight: bold;
  font-size: 22px;
  /*text-align: center;*/
  margin-top: -10px;
  padding: 0px 0px 0px 0px;
}

/* grille onglet n°1*/
.match-content {
  margin: -10px -20px;
  padding: 0px 10px -4px 0px !important;
  background: #fff;
  /*border: 1px solid #ddd;*/
  /*border-radius: 4px;*/
}

.match_detail {
  display: flex;
  flex-direction: row;
  text-align: center;
  margin: 1% 20%;
  margin-right: 22%;
}

.repartition {
  width: 98%;
  display: flex;
  flex-direction: inline-flex;
  font-size: 12px;
  flex: 0 0 15% !important;
  justify-content: center;
  margin: 0% -2% 1% 0%;
  padding: 0;
}

.match_numerotation {
  position: absolute;
  text-align: center;
  font: 700 18px / 26px inter, sans-serif;
  width: 26px;
  height: 26px;
  background: blue;
  border: solid 2px blue;
  color: white;
  margin: 0 46px -2px -60px;
  padding: 0;
}
