html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  height: 100%;
  /*overflow-x: hidden;*/
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
}

.container-fluid {
  flex: 1; /* Le conteneur principal prendra tout l'espace restant */
}

footer {
  /*position: fixed;*/
  bottom: 0;
  width: 100%;
}

@media (max-width: 576px) {
  header img {
    height: 30px;
  }
}
/* Style de base pour le menu avec fond plus foncé */
.bg-light-menu {
  padding: 10px; /* Ajoutez un espace intérieur au besoin */
}

/* Style pour les liens du menu */
.bg-light-menu a {
  text-decoration: none; /* Supprime le soulignement par défaut des liens */
  padding: 8px 16px; /* Ajoutez un espacement intérieur aux liens */
  display: inline-block; /* Assurez-vous que les liens sont alignés horizontalement */
  font-weight: bold; /* Rend les liens en gras */
}

nav{
  height: 100vh; 
}

main{
  min-height: 100vh;
}

.form-control {
  max-width: 300px; /* Définissez la largeur maximale selon vos besoins */
}

.entete_table {
  background-color: #172554 !important;
  color: white !important;
}

.td1 {
  background-color: #6bacf2 !important;
  color: white !important;
}

.td2 {
  background-color: #83b1e3 !important;
  color: white !important;
}

.container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  align-items: baseline;
}

.td1:hover {
  background-color: yellow;
}

.icon-button {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 10px;
      border-radius: 12px;
      width: 100px;
      height: 100px;
      text-align: center;
      color: white;
      font-family: Arial, sans-serif;
      font-size: 12px;
      cursor: pointer;
      transition: background-color 0.3s;
}
.button-container {
    display: flex;           /* Active Flexbox */
    justify-content: space-around; /* Espace égal entre les boutons */
    align-items: center;     /* Aligne les boutons au centre verticalement */
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
}

.styled-table thead tr {
    color: #ffffff;
    text-align: center;
}

tbody .tr-title th {
    color: #ffffff;
    text-align: center;
}

tbody .tr-blanche th {
    background-color: #ffffff;
    height: 25px;
}

tbody .tr-categorie th {
    background-color: #ffffff;
    font-weight: bold;
    padding: 6px 10px;
    text-align: left;
    font-size: 20px;
}


.styled-table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.styled-table tbody tr:nth-child(odd) {
    background-color: #c1d3e3;
}

.styled-table tbody tr:hover {
    background-color: #d1d1d1;
}

.styled-table td {
    padding: 8px;
}

.male {
    color: black;
}

.female {
    color: deeppink;
}

.mixte {
  color: #008000; /* vert clair */
}

.rgpd-icon {
  margin-left: 4px;
  cursor: help;           /* Curseur “?” pour indiquer un tooltip */
  font-size: 0.9em;
  vertical-align: middle; /* Aligne bien avec le texte */
}

/* Styles pour la flèche */
.scrollToTopBtn {
  position: fixed;
  bottom: 20px;  /* Distance du bas de la fenêtre */
  right: 20px;   /* Distance de la droite de la fenêtre */
  font-size: 24px;
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: none; /* Cachée par défaut */
  z-index: 1000;  /* Pour s'assurer qu'elle est au-dessus des autres éléments */
}

/* Afficher la flèche au survol */
.scrollToTopBtn:hover {
  background-color: #0056b3;
}

/* Container pour les champs de recherche alignés à gauche */
.search-container {
    display: flex;            /* Utilise flexbox pour aligner les éléments sur une seule ligne */
    justify-content: flex-start; /* Aligne les champs à gauche */
    align-items: center;
    gap: 20px;               /* Espace entre chaque champ */
    margin-bottom: 20px;     /* Espacement entre la ligne de recherche et le tableau */
}

/* Style pour chaque champ de recherche */
.search-container input {
    padding: 5px;
    width: 200px;           /* Ajuste la largeur si nécessaire */
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Facultatif : Style pour les labels */
.search-container label {
    font-weight: bold;
    margin-right: 10px;      /* Ajoute de l'espace entre le label et le champ */
}

.flag-emoji {
  font-size: 1.5em; /* Tu peux augmenter à 2em si tu veux encore plus gros */
  line-height: 1;
}

#cookie-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 15px 30px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}


#cookie-banner p {
  margin: 0;
  font-size: 14px;
  color: #333;
  text-align: center;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

#cookie-banner button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

#cookie-banner button:hover {
  background-color: #45a049;
}

#decline-cookies {
  background-color: #f44336; /* rouge pour refuser */
}

#decline-cookies:hover {
  background-color: #d32f2f;
}

/* Conteneur général pour la date et l’indicateur */
#update-line {
  display: inline-flex;
  align-items: center;  /* aligne verticalement les éléments */
  gap: 0.5rem;          /* espacement entre la date et l’indicateur */
}

#live-indicator {
  display: none;
  font-weight: bold;
  opacity: 0.5;
  transition: opacity 0.2s;
}
#live-indicator.live-on {
  display: inline-block;
  color: #28a745;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.2; }
}
#live-indicator.blink {
  animation: blink 0.5s ease-in-out 2;
}

/* Style de l'encart des courses du jour */
#live-courses-encart {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background-color: white;
    border: 1px solid #ddd;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000; /* Pour être sûr qu'il passe au-dessus */
    max-width: 90vw; /* Limite la largeur de l'encart */
    overflow: auto;  /* Assure que le contenu de l'encart est scrollable si nécessaire */
}

/* Style du bouton de fermeture */
#close-encart {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #333;
}

/* Lien des courses dans l'encart */
#live-courses-encart a {
    display: inline-block;
    background-color: red;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    margin-top: 0.5em;
}

/* Optionnel : effet hover sur les liens */
#live-courses-encart a:hover {
    background-color: darkred;
}

/* Encoche générale : on diminue un peu la police et le padding */
#live-courses-encart {
    font-size: 1.35rem;    /* ← passe de 1rem à 0.85rem */
    padding: 0.75em;       /* ← moins de padding interne */
}

/* Titre plus petit */
#live-courses-encart h4 {
    font-size: 1.35rem;       /* ← au lieu de 1.2rem ou 1.1rem */
    margin-bottom: 0.5em;  
}

/* Liens (boutons) plus compacts */
#live-courses-encart a {
    padding: 4px 8px;      /* ← réduit le padding */
    font-size: 0.90em;     /* ← police un peu plus petite */
}

/* Réactivité pour tablettes et écrans plus petits */
@media (max-width: 768px) {
    #live-courses-encart {
        top: 0.5rem; /* Remonter un peu si nécessaire sur des écrans plus petits */
        right: 0.5rem; /* Ajuster l'espacement de droite */
        font-size: 1.35rem;  /* Ajuster un peu la taille de la police */
        padding: 0.5em;    /* Réduire le padding */
    }

    #live-courses-encart h4 {
        font-size: 1.35rem; /* Réduire la taille du titre */
    }

    #live-courses-encart a {
        font-size: 1em;   /* Ajuster le texte des liens */
        padding: 3px 6px;   /* Réduire le padding des liens */
    }
}

/* Réactivité pour mobiles (écrans très petits) */
@media (max-width: 480px) {
    #live-courses-encart {
        top: 0.25rem; /* Ajuster encore plus sur les très petits écrans */
        right: 0.25rem; /* Réduire l'espacement à droite */
    }

    #live-courses-encart h4 {
        font-size: 0.85rem; /* Ajuster la taille du titre */
    }

    #live-courses-encart a {
        font-size: 0.75em;  /* Réduire la taille des liens */
        padding: 3px 5px;   /* Réduire encore le padding des liens */
    }
}

/* Position de l'encart des courses du jour */
#live-courses-encart {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: white;
    border: 1px solid #ddd;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000; /* Pour être sûr qu'il passe au-dessus */
    max-width: 90vw; /* Limite la largeur de l'encart à 90% de la fenêtre */
    width: auto; /* Permet de se redimensionner selon le contenu */
    overflow-x: auto;  /* Pour avoir une barre de défilement horizontale si nécessaire */
}


.button-link {
    display: inline-block;
    padding: 5px 10px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
}

.button-link:hover {
    transform: scale(1.05);
}

.live-indicator img{
    width: 20%;
}

.zoomed-form {
  transform: scale(1.2);      /* ajuste ici le facteur de zoom */
  transform-origin: top left; /* pour que ça parte du haut/gauche */
}

@media (max-width: 768px) {
    #live-courses-encart {
        display: none;
    }
}

.extra-col {
  display: none;
}

/* Optionnel : affiche-les à l'impression si tu veux aussi qu'elles apparaissent en print */
@media print {
  .extra-col {
    display: table-cell;
  }
}

.modal {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex; /* active flex et donc le centrage */
}

.modal-content {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh; /* Limite la hauteur */
  width: auto;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  padding: 10px 20px;
  flex-shrink: 0;
}

.modal-body {
  overflow-y: auto;
  padding: 20px;
  flex-grow: 1;
}

.modal-body td {
  padding-right: 5px;
  vertical-align: top;
}

.modal-footer {
  padding: 10px 20px;
  text-align: right;
  background-color: #f4f4f4;
  flex-shrink: 0;
}

.closeAthleteModal {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.closeModal {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.pointer {
    cursor:pointer;
}

#titres-champs-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 12px;
}
.titre-champ-group label {
  font-size: 10px;
  display: block;
  font-weight: bold;
}
.titre-champ-group input {
  height: 12px;
  width: 100%;
  padding: 6px;
  box-sizing: border-box;
}

.special-status {
  background-color: #fce4ec; /* Rose pâle */
  font-style: italic;
}

.table-separator {
  background-color: #e0e0e0; /* Gris clair */
  font-weight: bold;
  text-align: center;
}

.separator-row td {
  height: 10px;
  background: white;
  border: none !important;
}

.special-title-row td {
  background: #f9f9f9;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-align: center;
  border-top: 2px solid #ddd;
}

.button-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.icon-button a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

