/* Conteneur général */
@media (max-width: 1080px) and (max-width: 2340px) {
  .team_detail {
    display: flex;
    flex-direction: row;
    text-align: center;
    margin: 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 -100px !important;
    padding: 0;
  }
  .match_detail {
    display: flex;
    flex-direction: row;
    text-align: center;
    margin: 1% 16% !important;
    margin-right: 22%;
  }
  .hometeam {
    width: 100px !important;
    height: auto !important;
  }
  .awayteam {
    width: 100px !important;
    height: auto !important;
  }
  .LF_matchs {
    font-size: large;
  }

  .match_domicile {
    font-size: 1vw !important;
    margin-left: 0%;
    min-width: 60px;
  }
  .match_exterieur {
    font-size: 1vw !important;
    margin-left: 0%;
    min-width: 100px;
  }

  ul.match_equipe {
    margin: 3% 0 -2% 2% !important;
    font-size: 2vw !important;
  }
  .match_equipe {
    margin-left: 0% !important;
  }

  .match {
    margin-left: 30px !important;
  }

  .match_numero {
    display: inline-block;
    min-width: 3%;
    font-size: 4vw !important;
  }
  .drawer-content {
    display: none;
    margin-top: 10px;
    padding: 2% 0%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
}

@media (max-width: 600px) {
  .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 43px -2px -22px !important;
  }
  .match-content {
    margin: 0 !important;
    padding: 0px 10px -4px 0px !important;
    background: #fff;
    /*border: 1px solid #ddd;*/
    /*border-radius: 4px;*/
    text-align: center;
  }
  .match_detail {
    display: flex;
    flex-direction: row;
    text-align: center;
    margin: 1% 16% !important;
    margin-right: 22%;
  }
  .lf_logo {
    font-family: verdana xx-large, sans-serif;
    font-weight: 700 !important;
    font-size: large !important;
    display: flex;
    color: green;
    flex-direction: row;
    margin: 1px 15px 0px 0px !important;
    height: 90px;
  }
  .pactole {
    font-family: verdana bold, sans-serif;
    font-weight: 700;
    font-size: large !important;
    margin: auto;
    padding: 0%;
    text-align: center !important;
  }
  .LF_matchs {
    font-size: large;
  }

  .match_domicile {
    font-size: 3vw !important;
    margin-left: 0%;
    min-width: 60px !important;
  }
  .match_exterieur {
    font-size: 3vw !important;
    margin-left: 0%;
    min-width: 100px;
  }

  ul.match_equipe {
    margin: 4% 0 -1% 0% !important;
    font-size: 3vw !important;
  }
  .match_equipe {
    margin-left: 0% !important;
  }

  .match {
    margin-left: 30px !important;
  }

  .match_numero {
    display: inline-block;
    min-width: 3%;
    font-size: 4vw !important;
  }
  .panels {
    border: 1px solid #ccc;
    border-radius: 0 8px 8px 8px;
    background: #fff;
    padding: 0px !important;
    margin-top: -0px !important;
    box-shadow: 10px 5px 5px lightgrey;
  }
  .drawer-content {
    display: none;
    margin-top: 10px;
    padding: 2% 0%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
}

@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 43px -2px -22px !important;
  }
  .match-content {
    padding: 0px 10px -4px 0px !important;
    background: #fff;
    /*border: 1px solid #ddd;*/
    /*border-radius: 4px;*/
    text-align: center;
  }
  .match_detail {
    display: flex;
    flex-direction: row;
    text-align: center;
    margin: 1% 16% !important;
    margin-right: 22%;
  }
  .lf_logo {
    font-family: verdana xx-large, sans-serif;
    font-weight: 700 !important;
    font-size: large !important;
    display: flex;
    color: green;
    flex-direction: row;
    height: 90px;
    width: 90px;
    margin: 1px 15px 0px 0px !important;
    padding: 0px 65px 0px 3px;
  }
  .pactole {
    font-family: verdana bold, sans-serif;
    font-weight: 700;
    font-size: large !important;
    margin: auto;
    padding: 0%;
    text-align: center !important;
  }
  .LF_matchs {
    font-size: large;
    text-align: left;
  }
  .match_domicile {
    font-family: verdana bold, sans-serif;
    font-weight: 600;
    font-size: 2vw !important;
    margin-left: 0%;
    min-width: 100px !important;
  }
  .match_exterieur {
    font-family: verdana bold, sans-serif;
    font-weight: 600;
    font-size: 2vw !important;
    margin-left: 0%;
    min-width: 100px !important;
  }

  .match_equipe .match_N {
    font-size: 3vw !important;
    text-align: justify;
    margin: 0px 4px -5px 9px;
  }

  .match_equipe {
    margin-left: 0% !important;
  }

  ul.match_equipe {
    margin: 4% 0 -1% 0% !important;
  }
  .match_numero {
    display: inline-block;
    min-width: 3%;
    font-size: 4vw !important;
  }
  .match {
    margin-left: 30px !important;
  }
  .panels {
    border: 1px solid #ccc;
    border-radius: 0 8px 8px 8px;
    background: #fff;
    padding: 0px !important;
    margin-top: -0px !important;
    box-shadow: 10px 5px 5px lightgrey;
  }
  .drawer-content {
    display: none;
    margin-top: 10px;
    padding: 2% 0%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
}

.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: 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: 2% 4%;
  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: -10% 0% 0% 5%;
  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.is-open {
  display: block !important;
  align-items: center;
  /*padding: 2% 12%;*/
}

.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 {
  padding: 0px 10px -4px 0px !important;
  background: #fff;
  height: max-content;
  padding: 1% 1% 1% 1%;
  /*border: 1px solid #ddd;*/
  /*border-radius: 4px;*/
  text-align: center;
}

.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% 1%;
  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 0 0 -15%;
  padding: 0;
}
.lf_logo {
  font-family: verdana xx-large, sans-serif;
  font-weight: 900;
  font-size: x-large;
  display: flex;
  color: green;
  flex-direction: row;
  height: 90px;
  width: 90px;
  padding: 0px 2px 0px 0;
}

.match_logo {
  font-family: verdana xx-large, sans-serif;
  font-weight: 900;
  font-size: x-large;
  display: flex;
  color: green;
  flex-direction: row;
  margin: -0px 0px 0px 0px;
  padding: 0px 10px 0px 1px;
  height: 90px;
}

.tabs {
  width: 100%;
  max-width: 1000px;
  margin: -10% 0% 0% 0%;
}

/* Cache les inputs */
.tabs input[type="radio"] {
  display: none;
}

/* Styles des labels (onglets visibles) */
.tabs label {
  display: inline-block;
  padding: 12px 20px;
  background: #395fc9;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  margin-right: 2px;
  transition: background 0.3s;
  font-weight: 600;
}

.tabs label:hover {
  background: blue;
}

/* Panneaux */
.panels {
  border: solid 2px limegreen;
  border-radius: 0 8px 8px 8px;
  background: #fff;
  padding: 0;
  margin-top: -1px;
  box-shadow: 10px 5px 5px lightgrey;
}

.panel {
  display: none;
}

#panel-grilles {
  margin: 0 !important;
}

/* Onglet actif */
#tab-grilles:checked ~ label[for="tab-grilles"],
#tab-resultats:checked ~ label[for="tab-resultats"],
#tab-pronos:checked ~ label[for="tab-pronos"] {
  background: #fff;
  border-bottom: 1px solid #fff;
}

/* Contenu visible selon l'onglet */
#tab-grilles:checked ~ .panels #panel-grilles,
#tab-resultats:checked ~ .panels #panel-resultats,
#tab-pronos:checked ~ .panels #panel-pronos {
  display: block;
}

/* Mise en page des pronostics */
.pronos-container {
  display: grid;
  gap: 1%;
  /*  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
}

.prono-card {
  background: #f8f8f8;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
  transition: 0.2s ease;
}

.prono-card:hover {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.prono-card:hover {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tabs label[for="tab-pronos"]:has(+ #tab-pronos:checked) {
  background: #0073aa;
  color: #222;
  border-bottom: 1px solid #fff;
}

/* LiveCSS*/
#wg-football-toolbar {
  margin-bottom: 4%;
}

.logo-LF-header {
  text-align: center;
  border: solid 3px limegreen !important;
  box-shadow: 10px 5px 5px lightgrey;
  margin: 20px 0 10px 0;
}

.match_numero {
  font-family: verdana bold, sans-serif;
  font-weight: 500;
  font-size: 24px !important;
}

.match_domicile {
  font-family: verdana bold, sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-left: 2%;
  min-width: 150px;
  text-align: left;
}

.match_exterieur {
  font-family: verdana bold, sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-left: 30%;
  min-width: 150px;
  text-align: left;
}

.match_N {
  display: flex;
  position: relative;
  margin-bottom: 0;
  text-align: center;
  width: 32px;
  height: 32px;
  background: #002f7d;
  font: 700 18px / 32px inter, sans-serif;
  color: #fff;
  margin-left: 1%;
  flex-direction: column;
}

.match_N {
  background: transparent;
  width: 33px;
  height: 34px;
  font: 700 18px / 26px inter, sans-serif;
  color: green;
  text-align: center;
  display: inline-block;
  vertical-align: top;
  margin: 0px 1% 0% 0%;
  padding: 0% 0% 0% -4%;
}

.match_equipe {
  flex-wrap: wrap;
  display: flex;
  font-size: 26px;
  ul {
    margin: 4% 0 -1% 4%;
    padding: 0;
    width: 95%;
    text-align: justify;
  }
}

.match_numero {
  display: inline-block;
  min-width: 3%;
  font-size: 24px;
}

li.match_N {
  border: solid 4px limegreen;
  color: green;
  background: white;
}

.LF_matchs {
  box-shadow: 10px 5px 5px lightgrey;
  border: solid 1px lightgrey;
}

.entry-title,
.td-page-title {
  font-family: verdana bold, sans-serif;
  text-align: center;
  font: 700 18px / 32px inter, sans-serif;
  font-size: xx-large;
}

.match {
  margin-left: 50px;
}

.resultats-header {
  border: solid 2px green;
  margin: 4px 0px 2px 3px;
  padding: 2%;
  display: flex;
}

.match_result {
  /*background: transparent;*/
  width: 33px;
  height: 34px;
  font: 700 18px / 26px inter, sans-serif;
  color: green;
  text-align: center;
  display: inline-block;
  vertical-align: top;
  margin: 0px 1% 0% 0%;
  padding: 0% 0% 0% -4%;
  border: solid 2px green;
  .winner {
    color: white !important;
  }
}

.match_resulttats {
  width: 100px;
  height: 35px;
  display: flex;
  flex-direction: row;
}

.drawer-content {
  display: none;
}

.drawer-content {
  display: none;
  background: #fff;
  text-align: center;
  overflow: hidden;
  max-height: 1000px;
  transform: translateY(-10px);
  transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.4s ease;
  will-change: max-height, display, transform;
}

.drawer-content.open {
  max-height: 1000px; /* valeur suffisante pour contenir le contenu */
  opacity: 1;
  transform: translateY(0);
}

.toggle-btn:hover {
  background: #005f8d;
}

.drawer-content.is-open {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.lf_logo {
  font-family: verdana xx-large, sans-serif;
  font-weight: 900;
  font-size: x-large;
  display: flex;
  color: green;
  flex-direction: row;
  height: 90px;
  width: 90px;
  padding: 0px 2px 0px 0;
}
