/* Flexbox container for header and competitors-info */
#header-competitors-container {
 
    width: 100%;
    justify-content: space-between;
    align-items: center;
    
}

/* Header section */
#page-header {
    /*width: 40%;*/
    display: flex;
    align-items: center;
}

/* Logo section */
.header-logo {
    /*flex:1;
    /*margin-bottom: 20px; /* Add some space below the logo */
}

.header-logo img {
    width: 200px;
    height: auto;
}

  .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
           
        }
        .header-left {
            font-size: 1.5em;
            text-align: left;
            flex: 1;
        }
        .header-center {
            text-align: center;
            flex: 1;
        }
        .header-center h2 {
            margin: 0;
            font-size: 1.5em;
        }
        .header-center h3 {
            margin: 0;
            font-size: 1.2em;
            font-weight: normal;
        }
        .header-right {
            text-align: right;
            flex: 1;
            font-size: 2.5em;
        }

#heatsContainer {
    max-height: 100px;
    scroll-behavior: smooth;
    overflow: scroll;
}

#heatsContainer ul {
            list-style-type: none; /* Retirer les puces de la liste */
            padding: 0;
            border: 1px solid #333; /* Bordure autour de la liste */
            margin: 0 auto;
        }

        #heatsContainer ul li {
            padding: 2px;
            border-bottom: 1px solid #ddd; /* Ligne de séparation entre les éléments */
            background-color: #f9f9f9; /* Couleur de fond par défaut */
            cursor: pointer;
        }

        /* Couleur de fond différente pour les éléments impairs */
        #heatsContainer ul li:nth-child(odd) {
            background-color: #ececec;
        }

        /* Style lorsque l'élément est survolé */
        #heatsContainer ul li:hover {
            background-color: #ccc; /* Couleur de fond au survol */
        }

.custom-menu {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 150px;
}

.custom-menu button {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    background-color: transparent;
    text-align: left;
    cursor: pointer;
}

.custom-menu button:hover {
    background-color: #f1f1f1;
}

.replay-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.5em;
  color: #007bff; /* ou une autre couleur */
}
.replay-btn:hover {
  color: #0056b3;
}


/* Table for header information */
.header-table {
    display: flex;
    justify-content: center;
}

.header-table table {
    border-collapse: collapse;
    width: auto;
}

.header-table td {
 
    font-size: 18px;
    text-align: left;
}



/* Competitors section - 60% width */
#competitor-info {
    width: 100%;
    box-sizing: border-box;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}

th, td {
    border: 1px solid black;
    padding: 8px;
    text-align: center;
}


/* Flexbox container for header and competitors-info */
#header-competitors-container {

    width: 100%;
}

/* Header section - 40% width */
#page-header {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: 1fr 1fr 1fr;
        color: white;
}

/* Competitors section - 60% width */


/* Styling for the header content */
#page-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

#page-header div {
    margin-bottom: 5px;
}

/* Table styling */


th, td {
    border: 1px solid black;
    padding: 8px;
    text-align: center;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

h1 {
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
 
    background-color: white;
}

thead th {
    background-color: #002b64;
    color: white;
    padding: 10px;
}

tbody td {
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
}

.hidden {
    display: none;
}

/* Le conteneur du titre et du switch */
.heat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 10px;
        background-color: floralwhite;
}

/* Le titre du heat */
.heat-title {
    font-size: 16px;
    font-weight: bold;
        background-color: #ccc;
    width: 60px;
    height: 30px;
    border-radius: 30px;
    text-align: center;
}

/* Le conteneur de l'interrupteur (toggle) */
/* Positionner le switch global en haut à droite */
.global-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.global-toggle label {
    display: flex;
    align-items: center;
}

/* Styling du switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    display: none;
}

/* Premier toggle avec une couleur spécifique */
.slider-bloque {
    background-color: red; /* Couleur spécifique pour le premier toggle */
}

.slider-bloque:before {
    background-color: white;
}

input:checked + .slider-bloque {
    background-color: indianred; /* Couleur lorsque le toggle est activé */
}

/* Deuxième toggle avec une autre couleur spécifique */
.slider-toggle {
    background-color: blue; /* Couleur spécifique pour le deuxième toggle */
}

.slider-toggle:before {
    background-color: white;
}

input:checked + .slider-toggle {
    background-color: cornflowerblue; /* Couleur lorsque le toggle est activé */
}

.hidden {
    display: none;
}


/* Couleurs modernes pour les concurrents */
        .coul-1 {
            background-color: orangered; /* Rose clair */
            color: white;
        }
        .coul-2 {
            background-color: yellow; /* Bleu clair */
        }
        .coul-3 {
            background-color: lightskyblue; /* Vert clair */
        }
        .coul-4 {
            background-color: whitesmoke; /* Jaune clair */
        }
        .coul-5 {
            background-color: darkslategray; /* Jaune clair */
            color: white;
        }

tfoot td {
    background-color: #2c5545;
    color: white;
    font-weight: bold;
}

/* Other styles remain the same */

tbody tr td {
    text-align: center;
    padding: 4px;
    border: 1px solid #ddd;
}

/* Style for the average row */
tbody tr td strong {
    font-weight: bold;
    /*background-color: #f2f2f2;  /* You can adjust the background color of the average row if needed */
}

/* Style for the average row */
.average-row {
    background-color: #e0e0e0;  /* Gray background for the average row */
}

/* Toggle switch styling */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    /* background-color: #2196F3;*/
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Style for the toggle label */
#toggle-label {
    margin-left: 10px;
    font-size: 16px;
}

/* Style for manual refresh button */


#manual-refresh-btn:hover {
    background-color: #0b7dda;
}


@media print {
    /* Masquer des éléments inutiles pour l'impression */
    .no-print {
        display: none !important;
    }

    /* Appliquer des styles spéciaux pour l'impression */
    table {
        border-collapse: collapse;
        width: 100%;
    }

    th, td {
        border: 1px solid black;
        padding: 10px;
    }

    /* Ajuster les marges pour l'impression */
    body {
        margin: 10px;
    }
}