/* zone principale */
.font-extralight {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
}

.font-black {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
}

.font-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.font-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
}

.font-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}

.font-extrabold {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
}

body main {
  height: fit-content;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 6em;
}

/* titre h1 */
body main h1 {
  min-width: fit-content;
  position: relative;
  text-align: center;
  color: #0a3cdd;
}

/* le paragraphe du titre h1 */
body main p {
  line-height: 25px;
  font-size: calc(1rem + 0.2vw);
}

.introAdministratif {
  width: 85%;
  text-align: left;
}

/* section qui regroupe tout les bilans */
body main section {
  width: 85%;
  display: inline-flex;
  flex-wrap: wrap;
  flex-direction: unset;
  align-items: start;
  row-gap: 3em;
}

/* affiche les détails des bilans */
body main section details {
  width: 100%;
}

/* summary = "bilan" */
body main section details summary {
  margin-top: 14px;
  display: block;
  text-align: center;
  font-size: 1.5em;
}

/*marker = pseudo élément de l'élément <summary> affichant la flèche*/
body main section details>summary::marker {
  display: none;
}

/* bilans fermés */
body main section details>summary::before {
  float: left;
  width: max-content;
  padding-left: 10%;
  position: relative;
  cursor: pointer;
}

/* bilans ouverts */
body main section details [open]>summary::before {
  width: max-content;
  padding-left: 10%;
  cursor: pointer;
}

/* pseudo-élément du summary superposant l'icone et le summary */
/* premier bilan */
body main section details:nth-child(1)>summary::before {
  content: url("../images/icones/administrative_rightsidebtn_DOC1_blue-928f2c45ee564857d4cf4da4dc97c33f.svg");
}

body main section details:nth-child(1)[open]>summary::before {
  content: url("../images/icones/administrative_downbtn_Doc_blue-e3798cc28241ef79aadba5b87e906bd0.svg");
}

/* deuxième bilan */
body main section details:nth-child(2)>summary::before {
  content: url("../images/icones/administrative_rightsidebtn_DOC1_red-3725800341fde70fe5cd845d412ed47b.svg");
}

body main section details:nth-child(2)[open]>summary::before {
  content: url("../images/icones/administrative_downbtn_Doc_red-1f71cc154aafb2803a163c17fef3c6d8.svg");
}

/* troisième bilan */
body main section details:nth-child(3)>summary::before {
  content: url("../images/icones/administrative_rightsidebtn_DOC1_green-40c7eb9581b44be90811a9dd46191ca4.svg");
}

body main section details:nth-child(3)[open]>summary::before {
  content: url("../images/icones/administrative_downbtn_Doc_green-e4ae2cc9ceeef2dea488b9ce9106909c.svg");
}

/* quatrième bilan */
body main section details:nth-child(4)>summary::before {
  content: url("../images/icones/administrative_rightsidebtn_DOC1_yellow-535dbf9ecc6e3d49966e6f61bf8327ea.svg");
}

body main section details:nth-child(4)[open]>summary::before {
  content: url("../images/icones/administrative_downbtn_Doc_yellow-86093fa886a1d9b6d6ea27f43a242233.svg");
}

/* titres des bilans */
body main section details summary h2 {
  width: 90%;
  padding-top: 10px;
  text-align: center;
  font-weight: 500;
  font-size: 40px;
}

/* titre bilan bleu */
body main section details:nth-child(1) summary h2 {
  color: #0a3cdd;
}

/* titre bilan rouge */
body main section details:nth-child(2) summary h2 {
  color: #ff2e00;
}

/* titre bilan vert */
body main section details:nth-child(3) summary h2 {
  color: #44af69;
}

/* titre bilan jaune */
body main section details:nth-child(4) summary h2 {
  color: #ffbc0a;
}

/* soulignement personalisé du h2 */
body main section details summary h2::after {
  margin-left: 11%;
  position: relative;
  top: 30px;
  content: "";
  display: block;
}

body main section details:nth-child(1) summary h2::after {
  border: 1px #0a3cdd solid;
}

body main section details:nth-child(2) summary h2::after {
  border: 1px #ff2e00 solid;
}

body main section details:nth-child(3) summary h2::after {
  border: 1px #44af69 solid;
}

body main section details:nth-child(4) summary h2::after {
  border: 1px #ffbc0a solid;
}

/* les relevés des bilans */
.container-bilan {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 3.5em;
  gap: 2em;
  align-items: stretch;
  justify-content: center;
}

.bilan1 {
  flex: 1 1 calc(33.333% - 20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 200px;
  max-width: 300px;
  box-sizing: border-box;
  padding: 20px;
  row-gap: 1em;
  border-radius: 10px;
  align-items: flex-start;
  border: 1px #0a3cdd solid;
}

/* images des relevés */
body main section details div article img {
  width: 100%;
  height: auto;
}

/* titres des relevés */
body main section details div article h3 {
  width: fit-content;
  padding: 0 5%;
  color: black;
}

/* paragraphes des relevés */
body main section details div article p {
  width: 80%;
  padding: 0 7%;
}

.button-dl {
  width: 100%;
  padding: 5px 0;
  height: max-content;
  border-radius: 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;

  &:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
  }

  &.button_blue {
    background-color: #0a3cdd;
  }

  &.button_red {
    background-color: #ff2e00;
  }

  &.button_green {
    background-color: #44af69;
  }

  &.button_yellow {
    background-color: #ffbc0a;
  }
}


/* texte dans les boutons "télécharger" */
body main section details div article a {
  color: #f9f2f2;
  text-decoration: none;

  span {
    width: fit-content;
    font-size: large;
    font-weight: bold;
    padding: 0 7%;
  }
}

/* responsive laptop S */
@media screen and (max-width: 1024px) {

  /* les paragraphes de la page */
  body main>p {
    min-width: 640px;
    line-height: 25px;
  }

  /* titres des bilans */
  body main section details summary h2 {
    width: 92%;
  }

  /* soulignement personalisé du h2 */
  body main section details summary h2::after {
    margin-left: 10%;
  }
}

/* responsive tablet S */
@media screen and (max-width: 768px) {

  /* les paragraphes de la page */
  body main>p {
    min-width: 500px;
    line-height: 25px;
  }

  /* titres des bilans */
  body main section details summary h2 {
    width: 92%;
  }

  /* soulignement personalisé du h2 */
  body main section details summary h2::after {
    margin-left: 9%;
  }

  .long-titre {
    font-size: 7.5vw;
  }
}

/* responsive mobile taille S */
@media screen and (max-width: 320px) {

  /* les paragraphes de la page */
  body main>p {
    min-width: 250px;
    line-height: 25px;
  }

  /* titres bilans */
  body main section details summary h2 {
    width: 100%;
    font-size: 115%;
  }

  /* ligne sous les titres "bilan" */
  body main section details summary h2::after {
    margin-left: 3%;
  }

  /* flèches fermées */
  body main section details>summary::before {
    padding-left: 2%;
  }

  /* flèches ouvertes */
  body main section details [open]>summary::before {
    padding-left: 2%;
  }

  /* paragraphes des relevés */
  body main section details div article>p {
    min-width: inherit;
  }

  /* textes des boutons "télécharger" */
  body main section details div article button>p {
    min-width: fit-content;
  }
}