@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  display: flex;
  background-color: rgb(243, 241, 241);
  font-family: "Poppins", sans-serif;
  max-width: 100%;
  justify-content: center;
  overflow-x: hidden;
}

header {
  display: inline-flex;
  padding-top: 20px;
  max-width: 100%;
}
.formbox {
  display: inline-block;
  background-color: white;
  max-width: 80%;
  padding-bottom: 200px;
  padding-left: 20px;
  padding-right: 20px;
  overflow: auto;
}
h1 {
  color: red;
  font-weight: bold;
  text-align: center;
}
h2 {
  color: red;
  text-align: center;
  padding-top: 20px;
}

label {
  width: 45%;
  height: fit-content;
}

#french_departements,
#countries {
  display: none;
}
input,
select {
  border-radius: 15px;
  border-color: red;
  border-style: solid;
  border-width: 1px;
  text-align: center;
  height: 40px;
  width: 40%;
  margin-top: 10px;
  margin-bottom: 10px;
}

input::placeholder {
  text-align: center;
}

input {
  text-align: center; /* Cela centrera également le texte saisi par l'utilisateur */
}

#adresseBenevole {
  border-radius: 15px;
  border-color: red;
  border-style: solid;
}

form {
  width: 100%;
}
.yourid_item_list {
  display: flex;
  flex-direction: column;
  align-items: left;
  max-width: 100%;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
  border: 1px solid black;
}
.yourid_item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.emergency_contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid black;
  padding-top: 20px;
  padding-bottom: 20px;
}
.emergency_contact_item {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}
.contact_box {
  display: flex;
  flex-direction: column;
  align-items: left;
  max-width: 100%;
  border: 1px solid black;
  padding-top: 20px;
  padding-bottom: 20px;
}

.contact_item {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

#adresseBenevole,
#adresse {
  justify-content: center;
  height: 40px;
}

.button_container {
  display: flex;
  align-self: center;
  justify-content: center;
  width: 100%;
}

#submit_button {
  margin-top: 40px;
  background-color: red;
  color: white;
  font-weight: bold;
  font-size: larger;
  width: 100%;
  height: 40px;
  padding: 20px 40px 40px 40px;
  vertical-align: middle;
}

#logocrfnanterre {
  width: 30%;
  height: auto;
  object-fit: contain;
}

input:disabled {
  background-color: #e0e0e0;
}

label.required::after {
  content: "*";
  position: absolute;
  margin-left: 5px;
  margin-top: -5px;
  color: red;
}

.info-button-container {
  position: relative; /* Conteneur relatif pour le positionnement absolu du message */
  display: inline-block; /* Pour empêcher de prendre toute la largeur */
}

.info-button {
  border: red;
  background-color: red;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  /* Stylez votre bouton d'information ici */
}

.info-message {
  visibility: hidden;
  width: 200px;
  background-color: red;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px; /* Décalez de la moitié de la largeur du message pour centrer */
  /* Stylez votre message ici */
  /* Ajoutez des transitions pour un affichage en fondu, si désiré */
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.info-button:hover + .info-message,
.info-message:hover {
  visibility: visible;
  opacity: 1;
}

#futuractivities {
  height: 100px;
}

.knowyou {
  display: flex;
  align-items: left;
  flex-direction: column;
  border: 1px solid #000;
  padding-top: 20px;
  padding-bottom: 20px;
}

.knowyou_items {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

#doyouhavedl {
  width: 100%;
  flex-wrap: nowrap;
}

#doyoulearn {
  width: 100%;
  flex-wrap: nowrap;
}
.knowyou_item {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.language_spoken_item {
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.option_id,
.optional_question {
  display: none;
}
.volunteer_address {
  border: 1px solid black;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

#futuractivities option:checked {
  background-color: red;
  color: white;
  font-weight: bold;
}
.dl_info_items {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding-left: 0px;
  padding-right: 0px;
  height: fit-content;
  width: 80%;
}

.file_upload_container {
  display: flex;
  justify-content: center; /* Centrer horizontalement */
  align-items: center; /* Centrer verticalement */
  height: 100px; /* Hauteur du conteneur, à ajuster selon vos besoins */
}

.custom_file_upload {
  cursor: pointer;
  /* Styles du bouton ici */
}

.upload_button {
  display: inline-block;
  width: 30px; /* Taille du bouton */
  height: 30px;
  background-color: red; /* Couleur de fond du bouton */
  color: white; /* Couleur du signe plus */
  font-size: 30px; /* Taille du signe plus */
  font-weight: bolder;
  line-height: 30px; /* Centrer verticalement le signe plus dans le bouton */
  text-align: center; /* Centrer horizontalement le signe plus */
  border-radius: 50%; /* Rendre le bouton rond */
  border: 1px solid #ccc; /* Bordure du bouton */
}

p {
  text-align: justify;
  padding-left: 5px;
  padding-right: 5px;
}

.collapsible p {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.collapsible-button {
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 10px;
  font-size: 16px;
}

.collapsible-button .chevron {
  float: right;
}

.collapsible-button.active .chevron {
  transform: rotate(180deg);
}

.collapsible-button.active + p {
  max-height: 1000px; /* Ajustez en fonction de la longueur de votre contenu */
}

.dl_items {
  display: flex;
  width: 100%;
  justify-content: center;
}
.languages {
  display: flex;
  justify-content: center;
  width: 100%;
}

#dossier_pdf {
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .formbox {
    padding-left: 0px;
    padding-right: 0px;
    width: auto;
    max-width: 100%;
  }
  .yourid_item_list,
  .contact_box,
  .emergency_contact,
  .volunteer_address,
  .knowyou {
    border: none;
  }
}
