*{
    box-sizing: border-box;
}

#parent-section{
  width:100%;
  margin-left:0%;
}

.info-box{
  margin: 1em 2em;
  padding: 1em 1.5em;
  border-radius: 2em;
  background-color: rgb(70, 145, 215);
  color: white;
  display:flex;
  flex-direction:row;
  transition:.2s;
}

.info-box:hover{
  transform:scale(1.015);
}

.info-i {
	transform: scale(0.7);
	background-color: white;
	border-radius: 50%;
	color: rgb(75,145,215);
	width: 2em;
	height: 2em;
	font-size: 2em;
	font-weight: bolder;
	margin: auto .6em auto auto;
	padding: 1em;
}

.info-i-content {
	margin: -.5em -1em !important;
	text-align: center;
	font-size: 1.3em;
	font-family: serif;
	font-weight: bolder;
  line-height:1 !important;
}

.info-content{
  margin:auto 0;
}

.toogle{
    margin:.2em auto;
    width:fit-content;
}

.toogle > button{
    font-size:1em;
    padding:.6em 1.2em;
    cursor:pointer;
    border-radius:0;
    border-width:2px 1.5px;
    border-style:solid;
    border-color:#330c0c;
    transition:.1s;
    -webkit-transition:.2s;
    margin:0;
    background-color:rgb(230,230,230);
    color:black;
    text-transform: none;
}

.toogle > button.selected{
    background-color:#330c0c;
    color:white;
}

.toogle > button:hover, .toogle > button.selected:hover{
    background-color:#7f1919;
    color:white;
}

.toogle > button:first-child {
	border-left-width: 2px;
	border-radius: 1.2em 0 0 1.2em;
	padding-left: 1.3em;
}

.toogle > button:last-child {
	border-right-width: 2px;
	border-radius: 0 1.2em 1.2em 0;
	padding-right: 1.3em;
}

.chart{
    margin:10px auto;
}

.chart > canvas{
    margin:0 auto;
    width:100%;
    height:auto;
}

.container_graphs{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  grid-auto-rows: minmax(200px, auto);
}

.div_chart{
  width:40vw;
  min-width:400px;
  height:auto;
}

.verticalBar{
  height:350px;
}

.horizontalBarLonger{
  width:80%;
  height:800px;
}

.horizontalBarLong{
  height:450px;
}

.horizontalBarMedium{
  height:350px;
}

.container_scroll_x{
  overflow-x:auto;
}

.container_scroll_x > div{
  min-width:600px;
}

/* Media query pour les écrans de largeur inférieure à 600 pixels */
@media (max-width: 700px) {
    .toogle {
      width: 80%;
      min-width:200px;
      margin: .2em auto;
    }

    .toogle > button {
      display: block;
      width: 100%;
      border-radius: 0;
      border-width:1.5px 2px;
      padding: .6em 0;
    }
  
    .toogle > button:first-child {
      border-radius: 1em 1em 0 0;
      padding-left: 0;
      border-width:2px 2px 1.5px 2px;
    }
  
    .toogle > button:last-child {
      border-radius: 0 0 1em 1em;
      padding-right: 0;
      border-width:1.5px 2px 2px 2px;
    }

    .container_graphs{
      display:flex;
      flex-direction:column;
    }
    
    .div_chart{
      width:85vw;
      height:auto;
    }

    .horizontalBarLonger{
      height:800px;
      min-width:600px;
    }

    .horizontalBarLong{
      height:450px;
    }
    
    .horizontalBarMedium{
      height:350px;
    }
    
    .horizontalBarThin{
      height:200px;
    }

    .verticalBar{
      height:350px;
    }
  }