body {
  background-color: #a79d84;
  margin: 0;
  padding: 0;
}

main {
  background-color: #2a0f0f;
  border-radius: 35px;
  width: 60%;
  margin: 5px auto 150px auto;
  box-shadow: 40px 40px 40px 40px rgba(0, 0, 0, 0.24);
}

main div>p {
  text-align: center;
  font-family: inherit;
  font-size: 20px;
  color: var(--marron-clair);
}

/* Nous contacter */
main h1 {
  font-family: "Italianno";
  font-weight: 400;
  font-size: 56px;
  text-align: center;
  color: #a79d84;
  padding: 56px;
}

/* Formulaire de contact */
main form {
  width: 70%;
  border-radius: 28px;
  margin: 10px auto;
  text-align: center;
}

/* Tous les champs label */
main form>label {
  display: block;
  text-align: left;
  padding-left: 118px;
  color: #a79d84;
  font-size: 24px;
  font-family: "Kiwi Maru", serif;
}

/* Mise en page des champs à saisir*/
main form input {
  margin: 20px 0;
  /*Ajout de marge en bas */
  padding: 10px;
  width: 70%;
  border-radius: 50px;
  border: 6px solid #a79d84;
  font-family: "Kiwi Maru", serif;
  background: #e4e0d6;
}

/* Tous les champs obligatoires */
main h2 {
  width: 90%;
  text-align: right;
  font-size: 15px;
  color: #a79d84;
  font-family: none;
}

/* Sélection flottante globale*/
main form div:nth-child(12) {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  margin: 35px 0;
}

main form div:nth-child(12) div label {
  color: #a79d84;
  font-size: 24px;
  font-family: "Kiwi Maru", serif;
  margin-bottom: 20px;
  text-align: center;
}

main form div:nth-child(12) div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Sélections flottantes 1 et 2 */
/* ajustez la largeur en fonction de vos besoins */
/* Emplacement des sélections */
main form div:nth-child(12) div select {
  border-radius: 20px;
  width: 200px;
  height: 60px;
  font-size: 15px;
  font-family: "Kiwi Maru", serif;
  background: #e4e0d6;
  text-align: center;
  padding-right: 20px;
}

/* Champ message */
main form textarea {
  width: 88%;
  height: 200px;
  border-radius: 49px;
  padding: 20px 15px;
  border: 5px solid #a79d84;
  box-shadow: inset 5px 5px 5px 5px rgba(43, 15, 15, 0.5);
  background: #e4e0d6;
  text-indent: 30px;
  /* Décalage vers la droite */
  text-align: justify;
  font-size: 16px;
}

main form label[for="message"] {
  display: block;
  margin-bottom: 20px;
  margin-top: 20px;
}

main form div:nth-child(15) {
  margin: 20px 0;
  padding: 0px 0px 0px 5px;
}

/* Case à cocher */
main form div:nth-child(15) input {
  width: auto;
  transform: scale(1.3);
  margin: 12px;
  vertical-align:middle;
}

/* Style de form */
main form div:nth-child(15) label {
  display:inline-flex;
  align-items: center;
  font-size: 16px;
  line-height: 1.2em;
  color: #a79d84;
  padding: 0;
}

/* Couleur des mentions légales */
main form div:nth-child(15) label a {
  color: #a79d84;
  font-family: none;
  text-decoration: underline;
}

/* Bouton envoyer */
main form button {
  position: relative;
  border: 4px solid #635531;
  border-radius: 50px;
  width: 215px;
  height: 61px;
  background: #a79d84;
  font-family: "Italianno";
  font-size: 32px;
  margin: 30px;
  cursor: pointer;
}

.flash-message {
  width: 70%;
  max-width: 500px;
  margin: 20px auto;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  font-size: 20px;
  font-family: "Kiwi Maru", serif;
}

/* Message de succès */
.flash-success {
  background-color: #a79d84;
  color: white;
  border: 4px solid #635531;
  ;
}

/* Message d'erreur */
.flash-error {
  background-color: #a79d84;
  color: white;
  border: 4px solid #635531;
}

.cf-turnstile {
  display: flex;
  justify-content: right;
}

@media screen and (max-width: 1000px) {
  main {
    background-color: unset;
    box-shadow: none;
    width: 100%;
  }

  main div>p {
    text-align: center;
    font-family: inherit;
    font-size: 20px;
    color: var(--marron-sombre);
  }

  main h1 {
    color: #2a0f0f;
  }

  main form label,
  main form div:nth-child(12) div label,
  main form div:nth-child(15) label,
  main form div:nth-child(15) label a,
  main form h2 {
    color: #2a0f0f;
  }

  main form input {
    box-shadow: 0px 8px 8px 0px rgba(0, 0, 0, 0.5);
    background-color: #2a0f0f;
    color: #a79d84;
    border-color: #a79d84;
  }

  main form div:nth-child(12) div select {
    color: #a79d84;
    background-color: #2a0f0f;
    width: 100%;
  }

  main form div:nth-child(12) {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  main form div:nth-child(12) div {
    width: 268px;
  }

  main form textarea {
    color: #a79d84;
    background-color: #2a0f0f;
    box-shadow: inset 5px 5px 5px 5px rgba(5, 2, 2, 0.863);
  }

  main form div:nth-child(15) {
    display: flex;
    flex-direction: row;
  }

  main form div:nth-child(15) label {
    line-height: 20px;
  }
}

@media screen and (max-width: 830px) {
  main form input {
    padding: 10px;
    width: 70%;
    border-radius: 50px;
    border: 6px solid #a79d84;
    font-family: "Kiwi Maru", serif;
    background-color: #2a0f0f;
    color: #a79d84;
  }

  main form>div:nth-child(15) label {
    padding: 0;
  }

  main form label {
    font-size: 24px;
    font-family: "Kiwi Maru", serif;
    padding-left: 50px;
  }

  main form>div:nth-child(12) {
    flex-direction: column;
  }

  main form>div:nth-child(12) label {
    padding: 0px;
    text-align: unset;
  }

  main form>div:nth-child(12)>div:last-child>label {
    margin-top: 35px;
  }

  main form>div:nth-child(12)>div:first-child>select {
    width: 100%;
  }

  main form>div:nth-child(12)>div:last-child>select {
    width: 100%;
  }

  main form>div:nth-child(15) label {
    display: flex;
    text-align: start;
  }

  main form>div:nth-child(15) label input {
    height: 15px;
    margin: 0 10px 0 0;
  }
}

@media screen and (max-width: 480px) {
  main form {
    width: 85%;
  }

  main form div:nth-child(15) {
    padding: 0px 0px 0px 5px;
  }

  main form div:nth-child(15) input {
    width: auto;
    margin: 17px;
    background-color: #a79d84;
  }

  main form div:nth-child(15) label {
    padding: 0;
    margin: 0;
  }

  main form input {
    padding: 10px;
    width: 90%;
    border-radius: 50px;
    border: 6px solid #a79d84;
    font-family: "Kiwi Maru", serif;
  }

  main form button {
    border: 4px solid #635531;
    border-radius: 50px;
    width: 215px;
    height: 61px;
    background: #a79d84;
    font-family: "Italianno";
    font-size: 32px;
    margin: 30px;
  }

  main form label {
    font-size: 20px;
    padding-left: 30px;
  }

  main form>div:nth-child(12)>div:first-child>label {
    font-size: 15px;
  }

  main form>div:nth-child(12)>div:last-child>label {
    padding: 0px;
    font-size: 15px;
  }

  main form>div:nth-child(12)>div:first-child>select {
    width: 100%;
  }

  main form>div:nth-child(12)>div:last-child>select {
    width: 100%;
  }
}