
body, html{
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}


#calendar {
  width: 60%;
  margin: 30px auto;
  font-family: Arial, sans-serif;
}

table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
a{
  text-decoration: none;
}
#news_container{
  flex-direction: column;
}
#in_news{
  margin-left: 3%!important;
  margin-top: 0!important;
}
th {
  background-color: #f4f4f4;
  color: #333;
  padding: 0.5%;
  font-weight: bold;
  border: 1px solid #ddd;
}
#others_link{
  padding-left: 5%;
  margin-top: 5%;
}
td {
  text-align: center;
  padding: 1%;
  border: 1px solid #eee;
  height: 9vh;
  vertical-align: middle;
  transition: background 0.3s;
  color:black;
}
#in_news{
  margin-left: 5%;
  margin-top: 2%;
}
td:hover {
  background-color: #f0f8ff;
  cursor: pointer;
}

td.marked {
  background-color: #DA6416;
  color: white;
  font-weight: bold;
}


.grid {
  display: flex;
  flex-wrap: wrap;
  gap:2%;
  width: 80%;
  margin-left: 10%;
  margin-top: 2%;
  justify-content: center;
  align-items: center;
}

.item {
  width: fit-content;
  padding: 0.5%;
  cursor: pointer;
}

#overlay_comp {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0, 0, 0); /* Fond semi-transparent */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 100;
  display: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='105' viewBox='0 0 80 105'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='death-star' fill='%23757279' fill-opacity='0.13'%3E%3Cpath d='M20 10a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V10zm15 35a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V45zM20 75a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V75zm30-65a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V10zm0 65a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V75zM35 10a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10zM5 45a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V45zm0-35a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10zm60 35a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V45zm0-35a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");

}
#square_over{
  position: absolute;
  width: 80%;
  height:60vh;
  background-color: white;
  overflow-y: scroll;
  padding: 1%;
}
#close{
  float:right;
  margin-top: 1%;
  margin-right: 1%;
  width: 30px;
  cursor: pointer;
}
#sep{
  background-color: #DA6416;
  height:1px;
  z-index: 2;
  width: 100%;
  margin-top: 0.5%;
}
#titre_comepte{
  width: fit-content;
}
#date_container{
  margin-top: 0.5%;
}
#stat_bilan{
  padding: 2%;
  margin-left: 5%;
  padding-left: 0%;
}
#main_stat{
  display: flex;
}
#nav_bilan{
  width: 20%;
  padding-right: 6%;
  display: flex;
  flex-direction: column;
  align-items: end;
}
#content_stat{
  width: 80%;
  overflow: hidden;

}
#scroll{
  width: 300%;
  display: flex;
  transition: transform 0.5s ease;
}
.container_stat{
  width: 100%;
}
.line_stat{
  gap:1%;
  padding-bottom: 1%;
}

.item{
  transition: color 0.5s ease;
}
.item:hover{
  color:#DA6416!important;
}
.line{
  width: 100%;
  display: flex;
  height: fit-content;
  padding: 1%;
}
.line div{
  width: 15%;
}
.line_top{
  background-color: rgba(255, 166, 0, 0.39);
}











@media (max-width: 1100px) {
  #main_stat{
    flex-direction: column-reverse;
  }
  #nav_bilan{
    flex-direction: row;
    align-items: start;
    gap:5%;
    flex-wrap: wrap;
    width: 100%;
  }
  #nav_bilan .item{
    width: fit-content;
  }
  .container_stat{
    width: 100%;
  }
  #content_stat{
    width: 90%;
  }
  .line div{
    width: fit-content;
  }
  .line{
    justify-content: start;
    flex-wrap: wrap;
  }

}



@media (max-width: 768px) {
  .grid{
    justify-content: start;
  }
  #calendar{
    width: 80%;
  }
}

@media (max-width: 500px) {
td {
  height: 8vh;
}
}
