* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 16px;
  padding-left: 16px;
}

/* ----------------- Header ----------------- */

header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 32px;
  gap: 24px;
}

header img {
  display: block;
  width: 120px;
  margin: 0 auto;
}

header .title {
  text-align: center;
  color: #24679b;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-direction: 8px;
}

header .title h3 {
  font-weight: 400;
}

header .title h3 b {
  font-weight: 800;
}

header .stats {
  display: flex;
  justify-content: center;
}

header .stats .stats-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

header .stats .date {
  color: #24679b;
  font-weight: bold;
  font-size: 14px;
}

header .stats .graph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

header .stats .graph span {
}


/* ----------------- Main Content ----------------- */
main {
  padding-block: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 4px solid #fff;
  padding: 8px;
  text-align: center;
  font-size: 10px;
}

th {
  background-color: #779ed3;
  color: white;
  width: 12.5%;
  text-transform: uppercase;
}

th.empty {
  background: transparent;
}

td {
  background: #e1e1e1;
}

td:first-child {
  background: #467cc3;
  color: white;
}

td:last-child {
  position: relative;
  padding-left: 12px;
}

td:last-child::before {
  position: absolute;
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 100%;
  top: 30%;
  left: 6px;
  background-color: #7dd856;
  
}

main .table-recap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

main .table-recap .tfm,
main .table-recap .tfd,
main .table-recap .txd {
  padding: 24px 32px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
  font-weight: bold;
}

main .table-recap .tfm {
  border: 2px solid #789fd3;
}

main .table-recap .tfm p {
  color: #cf8a00;
  text-transform: uppercase;
}

main .table-recap .tfm span {
  color: #789fd3;
}

main .table-recap .tfd {
  border: 2px solid #cf8a00;
}

main .table-recap .tfd p {
  color: #789fd3;
  text-transform: uppercase;
}

main .table-recap .tfd span {
  color: #cf8a00;
}

main .table-recap .txd {
  border: 2px solid green;
}

main .table-recap .txd p {
  color: #789fd3;
  text-transform: uppercase;
}

main .table-recap .txd span {
  color: #cf8a00;
}

main .table-recap > div {
  flex: 1;
  border: 2px solid #ccc;
  padding: 0.5rem;
  text-align: center;
  box-sizing: border-box;
  min-height: 75px;
  max-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

main .table-recap > .tfd[style] {
  border-color: green !important;
}

/* Chart Section */
.chart-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding-block: 40px;
}

.chart-container {
  display: flex;
  justify-content: center;
}

.chart-container canvas {
  width: 400px;
  height: 200px;
}

.chart-section .chart-legend {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* BUTTON */
.chart-section .chart-legend button {
  position: relative;
  padding: 8px 16px;
  border-radius: 24px;
  color: white;
  text-transform: uppercase;
  cursor: pointer;
}
/* BUTTON */

/* button-taux*/
.button-taux {
        width: 100%;
        max-width: 250px;
        height: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 1rem;
        box-sizing: border-box;
        border: none;
        background-color: #f0f0f0;
        cursor: pointer;
        position: relative;
      }

#button-taux-directeur {
  background-color: green;
}
/* /button-taux */

/* Responsivité table-recap */
@media screen and (max-width: 700px) {

.table-recap {
  display: inline-block !important;
}
.table-recap > div {
  margin: 10px auto;
  width: 60%;
}
  }
/* /Responsivité table-recap */

/* taux directeur */
#taux-directeur {
  border-color: green;
}

#tauxDirecteur {
  color:rgb(63, 117, 96);
}

.taux-directeur-p {
  color:rgb(63, 85, 117)
}
/* /taux directeur */

.chart-section .chart-legend button:first-child {
  background-color: #25679b;
}

.chart-section .chart-legend button:nth-child(2) {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  background-color: #737373;
}

.chart-section .chart-legend button:nth-child(3) {
  background-color: #cf8a00;
}

.exports {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.exports a img {
  width: 80px;
}

.ampoule {
  position: absolute;
  top: -10px;
  right: 0;
  width: 25px;
  cursor: pointer;
}

.tooltip {
  display: none;
  background-color: #24679b;
  max-width: 600px;
  position: absolute;
  padding: 24px;
  text-align: start;
  z-index: 100;
  text-transform: none;
  margin-right: 24px;
  font-size: 16px;
  border-radius: 24px;
  backdrop-filter: blur(2px);
}

.tooltip p {
  position: relative;
}

#tooltip-1 {
  background-color: #1bc4e1;
  top: -190px;
  /* left: -250px; */
  left: -125px;
  right: -125px;
}

#tooltip-2 {
  background-color: #b4bbc2;
  top: -170px;
  /* left: -260px; */
  left: -130px;
  right: -130px;
}

#tooltip-3 {
  background-color: #d6b781;
  top: -170px;
  /* left: -251px; */
  left: -125px;
  right: -125px;
}

.tooltic {
  opacity: 0;
  position: absolute;
  bottom: -48px;
  right: -24px;
}

@media (min-width: 576px) {
  .tooltip {
    display: none;
    background-color: #24679b;
    max-width: 600px;
    position: absolute;
    padding: 24px;
    text-align: start;
    z-index: 100;
    text-transform: none;
    margin-right: 24px;
    font-size: 16px;
    border-radius: 24px;
    backdrop-filter: blur(2px);
  }

  .tooltip {
    border-bottom-right-radius: 0px;
  }

  .tooltic {
    opacity: 1;
  }

  #tooltip-1 {
    top: -190px;
    left: -250px;
    right: initial;
  }
  
  #tooltip-2 {
    top: -170px;
    left: -260px;
    right: initial;
  }
  
  #tooltip-3 {
    top: -150px;
    left: -251px;
    right: initial;
  }
}

@media (min-width: 768px) {
  .container {
    width: 750px;
  }

  header img {
    display: block;
    width: 120px;
    margin: 0;
    margin-right: auto;
  }

  .chart-section {
    justify-content: center;
  }

  header .stats {
    justify-content: end;
  }

  .chart-container canvas {
    width: 600px;
    height: 300px;
  }  
}

@media (min-width: 992px) {
  .container {
    width: 970px;
  }

  .chart-container canvas {
    width: 800px;
    height: 400px;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

@media (min-width: 1740px) {
  
}
