/* Styles globaux *********************************************************************************/

body {
  font-family: 'Roboto', sans-serif;
  background: white;
  color: #121314;
  margin: 0 auto;        /* centre horizontalement */
  line-height: 1.6;      /* lisibilité */
}

div.centered_div {
  text-align: center;
}

.redtext {
  color: rgb(240, 27, 27);
}

/* Navbar *****************************************************************************************/

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center; /* Centre horizontalement */
}

.navbar {
  background-color: rgb(50, 0, 233);
  box-shadow: 0 2px 5px rgba(0,0,0,0.6);
  padding: 5px;
}

.menu-niv1,
.menu-niv2,
.menu-niv3,
.menu-niv4 {
  background-color: #c5dde9;
  padding: 1px 10px; /* top-bottom : 1px ; left-right : 10px */
  box-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

.menu-niv1 ul,
.menu-niv2 ul,
.menu-niv3 ul,
.menu-niv4 ul {
  display:flex;
  margin:0;
  padding:0;
  list-style:none;
}

.menu-niv1 li,
.menu-niv2 li,
.menu-niv3 li,
.menu-niv4 li {
  padding: 1px 10px; /* top-bottom : 1px ; left-right : 10px */
  user-select:none;
}

.nav-links {
  display: flex;
  font-size: large;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-self: center; /* Centrage horizontal */
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
  display: block;
}

.nav-links li a:hover {
  color: rgb(50, 0, 233);
}

.nav-links li.active a {
  color: rgb(50, 0, 233);
}

/* Responsive */
@media (max-width: 800px)
{
  .nav-links {
    font-size: small;
  }

  .menu-niv1 li,
  .menu-niv2 li,
  .menu-niv3 li,
  .menu-niv4 li {
    padding: 1px 5px; /* top-bottom : 1px ; left-right : 5px */
  }
}

@media (max-width: 450px)
{
  .menu-niv4 a {
      font-size: smaller;
  }
}

/* League Info ***************************************************************/

.leagueInfo {
  text-align: center;
  font-weight: bold;
}

/* Table *********************************************************************/

table {
  margin: 0 auto;              /* centre la table horizontalement */
  border-collapse: collapse;   /* évite les doubles bordures */
  background-color: white;     /* fond blanc pour la table entière */
}

th, td {
  /* border: 1px solid #ddd; */    /* fine bordure grise autour des cellules */
 /* padding: 10px 15px; */      /* un peu d’espace */
  text-align: center;        /* texte centré */
  /* color: #000000; */           /* texte bleu */
}

th {
  background-color: #f0f0f0;  /* optionnel : un gris clair pour l’en-tête */
  color: #2272FF;             /* bleu un peu plus foncé pour les titres */
}

table.borderless_table,
table.borderless_table td,
table.borderless_table th {
  border: none !important;
}

table.result_table
{
  border-collapse: collapse;
  border: 1px solid #000;
  border-radius: 5px;
  width : 40%;
}

table.result_table th,
table.result_table td {
  padding: 10px 15px;
}

table.result_table tr,
table.result_table td
{
    border: none;
}

.tables-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 tables par ligne */
  gap: 1rem; /* espace entre les tables */
  max-width: 1200px;   /* largeur max du contenu */
  margin: 0 auto;      /* marge gauche / droite automatique */
  padding: 0 1rem;     /* marge intérieure sur petits écrans */
}

table.ranking_table {
  width: 40%;
}

table.table_classement {
  width: 30%;
}

table.table_adversaires {
  width: 30%;
}

table.table_adversaires,
table.table_adversaires th,
table.table_adversaires td {
  border-collapse: collapse;
  border: 1px solid #000;
}

/* Responsive */
@media (max-width: 800px)
{
  table.result_table
  {
    width: 90%;
    font-size: small;
  }

  table.result_table td
  {
    padding-left : 1px;
    padding-right : 1px;
  }

  table.ranking_table {
    width: 70%;
  }

  table.table_classement {
    width: 70%;
  }

  table.table_adversaires {
    width: 70%;
  }
}

table.preview_table {
  border: 0 solid black;
}

/* Responsive */
@media (max-width: 800px)
{
  table.preview_table {
    font-size: small;
  }
}

/* Buttons *******************************************************************/

#button
{
    margin:0 auto;
    width: 100%;
    height: 35px;
    background-color: transparent;
    border: none;
    text-align: center;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: underline;
}

#button_compte
{
    margin-top:5px;
    margin-bottom:5px;
    display: block;
    margin: 0 auto;
    width: 20%;
    height: 70px;
    background-color: #c5dde9;
    border: 3px solid black;
    text-align: center;
    border-radius: 10px;
    font-style: normal;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 800px)
{
  #button_compte
  {
      width: 70%;
  }
}

.select {
  background-color: #c5dde9;
}

/* Canvas / plots ***************************************************************/

#myCanvas {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 9; /* garde les proportions */
  display: block;
  margin-left:auto;
  margin-right:auto; 
}

/* Forum ************************************************************************/

.forumTextArea {
  width: 50%;
  height: 100px;
  padding: 10px;
  border: 2px solid black;
  border-radius: 5px;
  background-color: #c5dde9;
  font-size: 16px;
  resize: none;
}

/* Responsive */
@media (max-width: 800px)
{
  .forumTextArea
  {
    font-size: 10px;
  }
}

.forumButton {
  border-radius: 5px;
  background-color: #c5dde9;
  border: 2px solid black;
  color: black;
  padding: 16px 32px;
  font-weight: bold;
  cursor: pointer;
}
 
.author {
	font-weight: bold;
	color: black;
  text-decoration: overline;
 }

 .date_post {
	color: gray;
	font-style: italic;
	font-size: small;
 }

 .lien_suppr {
	font-size: small;
  color: #069;
 }

 .suppr_msg_button {
  background: none!important;
  border: none;
  padding: 0!important;
  padding-top: 0;
	font-size: small;
  color: #069;
  text-decoration: underline;
  cursor: pointer;
 }

 /*****/

 .home_bets {
  width:70%;
  margin: auto;
  text-align: center;
 }


/* Responsive */
@media (max-width: 800px)
{
 .home_bets {
  width:90%;
 }
}

/* Forms ************************************************************************/

.centered_form {
  text-align: center;
  width : 50%;
  margin: 0 auto;
  border: none;
  color: black;
  margin-top: 5px;
}

.centered_fieldset {
  border-color: #069;
  border-radius: 10px;
  text-align: center;
  width : 50%;
  margin: 0 auto;
  color: black;
}

.fieldset_adversaire {
  border-color: rgb(0, 0, 0);
  border-radius: 10px;
  text-align: center;
  width : 25%;
  margin: 0 auto;
  color: black;
}

.adv_general {
  width : 25%;
}

/* Responsive */
@media (max-width: 800px)
{
  .centered_form {
    width : 90%;
  }

  .centered_fieldset {
    width : 90%;
    padding: 0;
    border: none;

  }
    .fieldset_adversaire {
    width : 30%;
    font-size: small;
  }
  
  .adv_general {
    width : 50%;
  }
  
  .adv_pf {
    width : 75%;
  }
}

tr.pf_backgrounded {
  background-color: #f4f8fa;
}

/***/

.match_fieldset {
  border: 1px solid #ccc;
  padding: 15px;
}

.match_table {
  margin: 0 auto;        /* 🔥 centre */
  border-collapse: collapse;
  table-layout: auto;
}

/* Responsive */
@media (max-width: 800px)
{
  .reduced {
    font-size: small;
  }
}

.match_table td {
  padding: 6px 8px;
  white-space: nowrap;
}

.team {
  max-width: 180px;          /* limite propre */
  overflow: hidden;
  text-overflow: ellipsis;   /* "Bosnie-Herz..." */
}

.team-left {
  text-align: right;
}

.team-right {
  text-align: left;
}

.score {
  width: 20px;
  text-align: center;
}

.icon {
  width: 30px;
  text-align: center;
}

.icon svg {
  width: 1.2em;
  height: 1.2em;
}

/***/

table.poule_table th,
table.poule_table td {
    border: 1px solid #ddd;    /* fine bordure grise autour des cellules */
    padding: 10px 13px;
}

table.match_poule_table,
table.match_poule_table tr
table.match_poule_table td,
table.match_poule_table th {
  border: none !important;
  padding: 10px 15px;
}

table.match_poule_table {
  table-layout: fixed;
  border-collapse: collapse;
}

table.match_table_pf {
  border: none;
}

table.pf_fixture_table,
table.pf_fixture_table td,
table.pf_fixture_table th {
  padding: 5px 10px;
}

.question {
	font-size: small;
	font-style: italic;
  color:black;
}

#connexion_fieldset {
  text-align: center;
  width : 50%;
  margin: 0 auto;
  border: 5px;
  border-color : red;
  border-radius: 2px;
}

.reduced_padding
{
  padding-top: 1px;
  padding-bottom: 1px;
  padding-left: 10px;
  padding-right: 10px;
}

/* Responsive */
@media (max-width: 800px)
{
  .reduced_padding
  {
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 4px;
    padding-right: 4px;
  }
}

div.centered-italic {
  text-align : center;
  font-style: italic;
}

.matchs_poules {
  font-size: medium;
}

/* Responsive */
@media (max-width: 800px)
{
  .matchs_poules {
    font-size: small;
  }
}

table.pf_fixture_table,
table.pf_fixture_table td,
table.pf_fixture_table th {
  border: none !important;
}

.pf_fixture_table {
  /* todo ? */
}

table.picto_table
table.picto_table td,
table.picto_table th {
  border: none !important;
}

table.picto_general table {
  width: 80%;
}
table.picto_poules table {
  width: 30%;
}
table.picto_pf table {
  width: 40%;
}

/***********************************************************************************************************/

/* ===== CONTAINER HAUT ===== */
.badge_container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  margin-top: 10px;
  text-align: center;
}

/* ===== BADGE (VERSION NORMALE) ===== */
.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: bold;
  min-width: 110px;
}

/* icône dans cercle */
.badge_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 8px;
}

.badge_icon svg {
  width: 20px;
  height: 20px;
}

/* ===== VERSION INLINE ===== */
.badge--inline {
  display: inline-flex;
  align-items: center;   /* 🔥 clé pour aligner texte + icône */
  gap: 0.3em;
  white-space: nowrap;
  vertical-align: middle; /* 🔥 important dans du texte */
  line-height: 1;
}

.badge_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge--inline svg {
  display: block;
  width: 1em;
  height: 1em;
}

/* Responsive */
@media (max-width: 800px)
{
  .badge_container {
    gap: 5px;
    margin-bottom: 10px;
  }

  .badge {
    padding: 12px 10px;
    min-width: 40px;
  }
}

/* ===== COULEURS ===== */
.green {
  color: #8bc34a;;
}

.blue {
  color: #00ACEE;
}

.yellow {
  color: #f89327;
}

.orange {
  color: #f04f22;
}

.red {
  color: #d32f2f;
}

/* PLOT CANVAS *********************************************************************************************************************/

#graph {
  width: 60%; /* adaptation au conteneur */
  height: 500px;
  border: 1px solid #000000;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Responsive */
@media (max-width: 800px)
{
  #graph {
    width: 90%; /* adaptation au conteneur */
    height: 400px;
  }
}

.show_hide_button_table td {
  border: none;
  text-align: center;
  width: 300px;
  text-align: center;
}

/* Responsive */
@media (max-width: 800px)
{
  .show_hide_button_table td {
    width: 150px;
  }
}