/* styles.css */
/* Base styles */


html, body {
    height: 100%; /* Nécessaire pour que le flex s'applique sur toute la hauteur */
    margin: 0; /* Supprime les marges par défaut */
    
}

body {
    background-color: #f3f4f6;
    font-family: system-ui, -apple-system, sans-serif;
    overflow-x: hidden; /* Cache le débordement horizontal */
    /*font-family: 'Roboto', sans-serif;*/
} 

.wrapper {
    display: flex; /* Active Flexbox */
    flex-direction: column; /* Disposition en colonne (header, contenu, footer) */
    min-height: 100vh; /* La hauteur minimale est la hauteur de la fenêtre */
}

.main-container {
    flex: 1;
    padding: 4rem 4%;
    width: 92%;
}

.onecolumn {
    max-width: 1200px;
    margin: 0 auto;
}

/* Fonctions text */
/* Typography */

.vertical-text {
    transform: rotate(-90deg); /* Rotation de 90° dans le sens des aiguilles d'une montre */
    display: inline-block; /* Nécessaire pour appliquer transform */
}

h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
}

h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1f2937; /* Couleur sombre élégante */
    line-height: 1.2; /* Espacement entre les lignes */
    margin: 1rem 0; /* Espacement autour du titre */
    text-transform: uppercase; /* Transforme le texte en majuscules */
    letter-spacing: 0.05em; /* Espacement léger entre les lettres */
    border-bottom: 2px solid #474651; /* Ligne décorative sous le titre */
    padding-bottom: 0.5rem; /* Espacement entre le texte et la ligne */
}

h2 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

p {
    margin: 0;
    font-size: 0.875rem;
}

@media (max-width: 768px)
{
body {
    font-size: 0.7rem;
}

h1{font-size: 1.2rem;}
h2, h3 {font-size: 0.8rem;}
p{font-size: 0.75rem;}
}

.article p{
    line-height: 1;
    margin: 20px 0;
}

.Gold{
    background-color: #e9ca42a7 !important;
}

.Silver{
    background-color: #7a7979 !important;
}

.Bronze{
    background-color: #965d14 !important;
}

.Goldlight{
    background-color: #e9ca4252 !important;
}

.Silverlight{
    background-color: #7a7979a1 !important;
}

.Bronzelight{
    background-color: #965e149c !important;
}

.firstPlace {
    background-color: #e9ca42a7; /* Couleur du surlignage */
    color: white; /* Couleur du texte */
    border-radius: 5px; /* Coins arrondis */
    padding: 2px 4px; /* Espacement interne pour un effet visuel agréable */
    display: inline; /* Assure que le style s'applique uniquement au texte */
}

.secondPlace {
    background-color: #7a7979; /* Couleur du surlignage */
    color: white; /* Couleur du texte */
    border-radius: 5px; /* Coins arrondis */
    padding: 2px 4px; /* Espacement interne pour un effet visuel agréable */
    display: inline; /* Assure que le style s'applique uniquement au texte */
}

.thirdPlace {
    background-color: #965d14; /* Couleur du surlignage */
    color: white; /* Couleur du texte */
    border-radius: 5px; /* Coins arrondis */
    padding: 2px 4px; /* Espacement interne pour un effet visuel agréable */
    display: inline; /* Assure que le style s'applique uniquement au texte */
}

.surligne-Actif {
    background-color: green; /* Couleur du surlignage */
    color: white; /* Couleur du texte */
    border-radius: 5px; /* Coins arrondis */
    padding: 2px 4px; /* Espacement interne pour un effet visuel agréable */
    display: inline; /* Assure que le style s'applique uniquement au texte */
}

.surligne-Inactif {
    background-color: grey; /* Couleur du surlignage */
    color: white; /* Couleur du texte */
    border-radius: 5px; /* Coins arrondis */
    padding: 2px 4px; /* Espacement interne pour un effet visuel agréable */
    display: inline; /* Assure que le style s'applique uniquement au texte */
}

.surligne-Invite {
    background-color: orange; /* Couleur du surlignage */
    color: white; /* Couleur du texte */
    border-radius: 5px; /* Coins arrondis */
    padding: 2px 4px; /* Espacement interne pour un effet visuel agréable */
    display: inline; /* Assure que le style s'applique uniquement au texte */
}

.surligne-Parti {
    background-color: red; /* Couleur du surlignage */
    color: white; /* Couleur du texte */
    border-radius: 5px; /* Coins arrondis */
    padding: 2px 4px; /* Espacement interne pour un effet visuel agréable */
    display: inline; /* Assure que le style s'applique uniquement au texte */
}

.strikethrough {
    text-decoration: line-through;
}

.season-details {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    text-align: center;
}
.season-title {
    background: #1f2937;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
}
.season-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.1em;
    margin-top: 10px;
}
.season-status-container {
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
}
.season-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 1em;
}
.status-in-progress {
    background-color: green;
    color: white;
}
.status-closed {
    background-color: red;
    color: white;
}
    

.badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7em;
    color: white;
    background-color: #444; /* défaut : gris foncé */
}

/* Couleurs spécifiques */
.badge.gr1 { background-color: rgba(194, 52, 52, 0.815); }
.badge.gr2 { background-color: rgba(57, 57, 180, 0.788); }
.badge.gr3 { background-color: rgba(53, 172, 53, 0.575); }
.badge.gr4 { background-color: rgba(187, 144, 66, 0.822); }


/* Fonctions tables */
.bigtable {

    border-collapse: collapse;
    margin: 20px auto;
    text-align: center;
    min-width: 70%;
    width: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    text-align: center;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    flex:1; 
}
th {
    background-color: #27627e;
    color:  #ffffff;
}
tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Styles pour figer la première ligne */
.responsive-table th.sticky-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

/* Styles pour figer les deux premières colonnes */
.responsive-table th.sticky-col,
.responsive-table td.sticky-col {
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
}


.tr-dark {
    background-color: #1f2937; /* Gris foncé */
    color: #ffffff; /* Texte blanc */
    border-radius: 5px 5px 0 0; /* Bords supérieurs arrondis */
    display: table-row; /* Assure la compatibilité avec les éléments tr */
    width: 100%;
    border : 0px;
}

.dark-cell {
    background-color: #333333; /* Gris foncé */
    color: #ffffff; /* Blanc */
    padding: 10px; /* Espacement interne */
    text-align: center; /* Centrage du texte */
    font-weight: bold; /* Texte en gras */
    border: 1px solid #555555; /* Optionnel : bordure légèrement plus claire */
  }


.light-cell {
  background-color: #ffffff; /* Blanc */
  color: #000000; /* Noir */
  padding: 10px; /* Espacement interne */
  text-align: center; /* Centrage du texte */
  border: 1px solid #dddddd; /* Optionnel : bordure grise claire */
  font-weight: normal; /* Texte normal */
}
.light-cell-purple{
    background-color: #ffffff; /* Blanc */
    color: #a60ce2; /* Noir */
    padding: 10px; /* Espacement interne */
    text-align: center; /* Centrage du texte */
    border: 1px solid #dddddd; /* Optionnel : bordure grise claire */
    font-weight: normal; /* Texte normal */
  }

.cell10 {
    width: 10%;
}

.cell20 {
    width: 20%;
}

.cellmain {
    text-align: center;
}

.bestlaps {
    max-width: 600px;
  }

  .pseudoandflag{
    align-items: center;    
    justify-content: space-between;

  }

/*Fonctions images */



img {
    width: 100%; /* L'image occupe toute la largeur de la cellule */
    height: auto; /* Garde les proportions de l'image */
}
.vignette-round {
    height: auto;
    border-radius: 50%;
    overflow: hidden;
}

.vignette{
    width: 100px;
    height: auto;
    border-radius: 5%;
    overflow: hidden;
    margin-right: 20px;
}

.flag{
    width: 2rem;
    height: 1.3rem;
    border-radius: 8%;
    border: 1px solid  #c8c8c9;
    overflow: hidden;
    margin-right: 10px;
}

@media (max-width: 520px)
{
.flag{
    width: 1.5rem;
    height: auto;
    border-radius: 8%;
    border: 1px solid  #c8c8c9;
    overflow: hidden;
    margin-right: 2px;
    }
}

.smallflag{
    width: 1.2rem;
    height: auto;
    border-radius: 8%;
    border: 1px solid  #c8c8c97f;
    overflow: hidden;
    margin-right: 10px;
    vertical-align: middle;
}

@media (max-width: 520px)
{
.smallflag{
    width: 1rem;
    height: auto;
    border-radius: 8%;
    border: 1px solid  #c8c8c9;
    overflow: hidden;
    margin-right: 2px;

    }
}

.polaroid {
    width: 450px;
    background: white;
    border: 10px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: rotate(0deg);
    transition: transform 0.3s ease;
  }
  
.post-it:hover {
    transform: rotate(3deg);
  }

  .polaroid:hover {
    transform: rotate(3deg);
  }
  
  .photo-frame {
    overflow: hidden;
    width: auto;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .photo {
    width: 100%;
    height: auto;
  }
  
  .caption {
    margin: 10px 0;
    text-align: center;
    font-family:'Permanent Marker', cursive;
    font-size: 24px;
    color: #611414;
  }
  @media (max-width: 520px)
{
    .polaroid {
        width: 80%;
    }
    .photo-frame {
        height: 200px;
    }
    .caption {
        font-size: 16px;
    }
}
/*classes de texte */
.post-it {
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    background-color: #fdfd96; /* Couleur jaune post-it */
    border: 1px solid #e8e4b7;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2), -3px -3px 8px rgba(255, 255, 255, 0.5);
    transform: rotate(0deg);
    font-family:  'Permanent Marker', cursive;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
  }
  
  .post-it p {
    margin: 0;
    white-space: pre-wrap; /* Garde les sauts de ligne */
  }
  
  .post-it::-webkit-scrollbar {
    width: 8px;
  }
  
  .post-it::-webkit-scrollbar-thumb {
    background: #e8e4b7;
    border-radius: 4px;
  }
  
  .post-it::-webkit-scrollbar-track {
    background: #fdfd96;
  }
/*Classes internes */


.pilot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 5px; /* Espacement entre les colonnes et les lignes */
}
.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
    gap: 5px; /* Espacement entre les colonnes et les lignes */
}

.pilot-grid h2 {
    text-align: left;
    margin-left: 0;
}
 .home-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 800px));
    gap: 5px; /* Espacement entre les colonnes et les lignes */
    justify-content: center; /* Centre les colonnes globalement */
}

.champ-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    gap: 5px; /* Espacement entre les colonnes et les lignes */
    justify-content: center; /* Centre les colonnes globalement */
}

.race-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(650px, 0.8fr));
    gap: 10px; /* Espacement entre les colonnes et les lignes */
    justify-content: center; /* Centre les colonnes globalement */
}

@media (max-width: 520px)
{
    .champ-grid , .pilot-grid,.home-grid, .race-grid{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .mini-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 0.8fr));

    }
}

@media (max-width: 520px)
{
    .facultatif{
        display: none;
    }
}
@media (min-width: 520px)
{
    .mobile-only{
        display: none;
    }
}

.driver-banner
{
    background-image: url("./img/Banners/Default-Banner.png");
    height: 294px;
    background-position: 50%;
    position: relative;
    background-size: cover;
    display: block;
}
.driver-portrait
{
position: absolute;
bottom: 0;
left: 48px;
margin: 0;
width: 190px;
}

.driver-mini-portrait
{

width: 50px;
}

.driver-desc {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}
/*
body {
    font-family: Arial, sans-serif;
    margin: 20px;
}
    */
.details {
    margin: 20px 0;
}
.toggle-section {
    margin-top: 10px;
    cursor: pointer;
    color: rgb(78, 78, 80);
    text-decoration: underline;
}
#extra-details {
    display: none;
    margin-top: 10px;
}

.no-style-link {
    text-decoration: none; /* Supprime le soulignement */
    color: inherit; /* Garde la couleur du texte environnant */
}

.no-style-link:hover,
.no-style-link:focus {
    text-decoration: none; /* Évite le surlignage au survol ou au focus */
    color: inherit; /* Conserve la couleur */
}

/*Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.page-link.active {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    pointer-events: none;
    border-color: #0056b3;
}
/* Navigation */
.navbar {
    background-color: #1f2937;
    color:  #ffffff;;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;

}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3%;
    height: 4rem;
    width: 100%;
}

.nav-logo {
    text-align: left; /* Aligne le logo/titre à gauche */
    margin-left: 1rem; /* Ajoute de l'espace entre le bord gauche et le titre */
}

.nav-logo span {
    font-size: 1.25rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 1rem;

}

.nav-links a {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
}

.nav-links a:hover {
    background-color: #374151;
}

/* Styles pour petits écrans */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        background-color: #1f2937;
        position: absolute;
        top: 4rem;
        right: 0;
        left: 0;
        text-align: left; /* Alignement du texte à gauche */
        padding-left: 1rem; /* Optionnel : ajout d'un padding pour un meilleur visuel */
    }

    .nav-links a {
        padding: 1rem 0;
        border-bottom: 1px solid #374151;
    }

    .nav-links.show {
        display: flex;
    }
}

/* Card styles */
.cadre{
    border: 1px solid #ddd;
    margin: 10px;
    padding: 10px 0 10px 0;
}

.card {
    background-color: rgb(255, 255, 255);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    margin-bottom:5px;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color:  rgb(211, 211, 211);
}

.card.no-hover:hover {
    transform: none;
    box-shadow: none;
    background-color: inherit;
}

.card td,.card th, .card table{
    border: 0px solid #ddd;
    margin: 0px;
    padding: 0px 5px;
     /*overflow: hidden; Cache tout débordement */
     /*text-overflow: ellipsis; /* Ajoute des points de suspension pour les textes trop longs */
}

.card table {
    width: 100%; /* La table occupe toute la largeur disponible dans la carte */
    table-layout: fixed; /* Assure un comportement de largeur fixe */
    overflow-wrap: break-word; /* Permet de couper les mots longs */
}


.cardimg img{
    width: 100%;
    height: auto;
    display: block;
}
.cardimg h2 {
    position: relative;
    top: 10px;
    left: 10px;
    margin: 0;
    padding: 5px 10px;
    background-color: rgba(200, 200, 200, 0.8);
    color: #000;
    font-size: 2rem;
}
.cardimg p {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    bottom: 10px;
    left: 10px;
    margin: 0;
    padding: 5px 10px;
    background-color: rgba(200, 200, 200, 0.8);
    color: #000;
}

/* Style pour la cellule des points */
.points-cell {
    position: relative;
    cursor: pointer;
}

/* Conteneur du tooltip */
.tooltip-container {
    position: relative;
    display: inline-block;
}

/* Contenu du tooltip (caché par défaut) */
.tooltip-content {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: left;
    padding: 10px;
    border-radius: 5px;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    font-size: 12px;
}

/* Affichage du tooltip au survol */
.tooltip-container:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Petite flèche du tooltip */
.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

/* Hero section */
.hero-section {
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section p {
    color: #4b5563;
}

/* Grid section */
.grid-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .grid-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Races list */
.races-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.race-item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.race-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.status-upcoming {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Drivers list */
.drivers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.driver-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.driver-content {
    display: flex;
    align-items: center;
}

.driver-avatar {
    width: 2rem;
    height: 2rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    margin-right: 0.75rem;
}

/* Events grid */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.event-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
}

.event-date {
    font-size: 0.875rem;
    color: #4b5563;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    margin-top: 2rem;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin: 0;
}

.footer-content p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: white;
    font-size: 0.875rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: #d1d5db;
}



.caroussel {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    /* min-height: 100vh; S'assure que le corps occupe toute la hauteur */
    /*margin: 0; /* Supprime les marges par défaut */
    /*background-color: #129112;  Optionnel, une couleur de fond */
  }
  

.swiper-container {
    

    align-items: center;
    width:50%;
    height: 400px;
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: #05041d; /* Optionnel, pour visualiser le conteneur */
  border-radius: 2px; /* Bords arrondis optionnels */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Ombre optionnelle */
  }
  
  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-size: cover;

  }
  
  .swiper-slide img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: auto;
    border-radius: 10px; /* Optionnel, pour des bords arrondis */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Ombre optionnelle */
    object-fit: contain;
  }
  
  .overlay-text {
    position: relative;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 1);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.2rem;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .overlay-text p
  { 
    color: white;
  }

  /* Afficher au survol (desktop) */
  .swiper-slide:hover .overlay-text {
    opacity: 1;
    transform: translateY(0);
  }

  /*Style lié à l'affichage des places gagnées ou perdues*/

    .delta-positive {
        color: green;
    }

    .delta-positive:before {
        content: '▲ ';
    }

    .delta-negative {
        color: red;
    }

    .delta-negative:before {
        content: '▼ ';
    }
 
    /* Style pour les pilotes actifs */
    .ActivePilot {
        font-weight: bold;
    }

 /* Style du bouton "Afficher les détails" */
.openTableModal {
    display: none; /* Masqué par défaut */
    font-size: 14px;
    color: #777;
    border: 1px solid #777;
    background: transparent;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
}

/* Affichage uniquement sur mobile */
@media screen and (max-width: 768px) {
    .openTableModal {
        display: inline-block;
    }
}

/* Style de la pop-up */
#popupModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

/* Contenu de la pop-up */
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* Style de la croix de fermeture */
.close {
    position: absolute;
    top: -20px; /* Pour bien centrer visuellement */
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    color: #FF0000; /* Rouge pour attirer l'attention */
    cursor: pointer;
    padding: 5px 10px;
    background: white;
    border-radius: 50%;
    border: 2px solid #FF0000;
    transition: 0.3s;
}

.close:hover {
    background-color: #FF0000;
    color: white;
}
    #rankingTableContainer {
        width: 95%;
        max-height: 90vh; /* Ajuster pour éviter les coupures */
        overflow: auto;
        background: white; /* Pour éviter que le tableau soit caché */
        padding: 10px;
        position: relative;
    }


    
