main h1 {
  text-align: center;
  font-size: 4rem;
  margin-bottom: 50px;
}

  main .contact-cartita,
  main .contact-noustrouver {
    margin: 10vh auto 1vh auto;
    width: 50%;
    text-align: center;
    background: transparent;
    font-size: 45px;
  }

/********** je touche le formulaire ***************************************************************/
main .formulaire {
  position: relative;
  display: flex;
  place-content: center;
}

/********* je touche au positionnement de la  fleur **********************************************/
main .formulaire .formulaire-fleur {
  z-index: -1;
  position: absolute;
  top: 0vh;
  max-width: 100%;
}

/********* je touche au champs  nom et input *****************************************************/
main .formulaire #contact {
  display: flex;
  flex-direction: column;
  width: 75vw;
  min-width: min-content;
  height: auto;
  margin: 1vh auto;

  & ul {
    margin: 0;

    & > li {
      list-style: none;
      background: var(--secondary-color);
      margin: 0;
      border-radius: 10px;
      padding: 5px 1em;
      font-size: 14px;
    }
  }
}

main .formulaire #contact label {
  font-size: 100%;
}

/******* je touche a la checkbox et a son texte ***************************************************/
main .formulaire #contact :nth-child(5),
main .formulaire #contact :nth-child(6) {
  display: flex;
  justify-content: flex-end;
  flex-direction: row-reverse;
  align-items: flex-start;
}

/******* je touche au btn envoyer *****************************************************************/
main button#contact_envoyer {
  width: 80%;
  margin: 4vh auto;
  border: 1px solid white;
  border-radius: 25px;
  background-color: var(--background-color);
  outline: none;
  cursor: pointer;
  position: relative;
}

/* je touche au bouton envoyer de la newsletter */
button#newsletter_envoyer {
  margin-top: 10px;
  border-radius: 15px;
}

/* main button#contact_envoyer:active{
    background: red;
} */
main textarea#contact_Message {
  height: 18vh;
}

/******* je touche a la couleur du texte quand on ecrit ********************************************/
main input,
main textarea#contact_Message {
  margin: 1vh 0;
  padding: 1.5vh;
  border-radius: 15px;
  color: black;
}

/********alignement des checkboxes rgpd et captcha***************************************************/
.conteneur-captcha,
.conteneur-rgpd {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  column-gap: 15px;
}

#newsletter {
  display: flex;
  flex-direction: column;
}

.container-message {
  background-color: #bd6d4b;
  border: 2px solid white;
  border-radius: 20px;
  width: 25%;
  min-width: 350px;
  margin: 0 auto;
  text-align: center;
  padding: 1em;
}

.alert .alert-success {
  color: #ffecd3;
}

/* je toucher au texte RGPD */
.conteneur-rgpd {
  margin-top: 3vh;
}

@keyframes moveUp {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y));
    opacity: 0;
  }
}

.animated-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: moveUp 2s forwards;
}

/********** je touche a la newsletter *******************************************************/
/* .container-message.newsletter {
  margin-bottom: 32px;
} */

main .contact-newsletter {
  width: 80%;
  margin: 0 auto;
  padding: 2%;
  border-radius: 25px;
  margin-top: 32px;
  background: #ffecd3;
}

main .contact-newsletter p {
  margin: 0 auto;
  text-align: center;
  color: black;
}

main .contact-newsletter p:nth-child(2) {
  white-space: pre-line;
  color: #bd6d4b;
}

/* je touche la rose de la newsletter */
main .contact-newsletter .newsletter-fleur {
  width: 18%;
  height: 20%;
  margin: 3% 41% 0;
}

main section.contact-newsletter {
  color: #bd6d4b;
}

section.contact-newsletter label {
  color: #bd6d4b;
}

/********* je touche à toute la section ou il y a titre map et adresses **********************/
main .contact-maps {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 6vh 0 10vh 0;
  /* row-gap: 8vh; */
}

/********** je touche au titre **************************************************************/
main .contact-maps .contact-noustrouver {
  width: 50%;
  text-align: center;
  background: transparent;
}

/********** je touche au groupe de div contenant map et adresse ******************************/
main .contact-maps .conteneur-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  max-width: 100vw;
  min-width: -webkit-fill-available;
  row-gap: 20%;
  column-gap: 5vw;
  place-content: center;
}

/********** je touche chaque div contenant map et adresse *************************************/
main .contact-maps .conteneur-contact div {
  text-align: center;
  margin-top: 2vw;
  margin-bottom: 4vw;
}

/********* je touche a la map *****************************************************************/
main .contact-maps .conteneur-contact div iframe {
  border-radius: 20px;
  height: 58%;
  min-width: 300px;
  min-height: 220px;
  margin: 1vh auto;
}

/********* je touche a l'adresse **************************************************************/
main .contact-maps .conteneur-contact div .contact-adresse {
  text-align: center;
  margin-top: 2vh;
}

main .contact-maps .conteneur-contact div .contact-adresse p {
  margin-bottom: 1vw;
}

/* animation bouton envoyer fleurs */
/* .button:active {
  transform: scale(0.96);
} */
.button {
  position: relative;
  padding: 10px 22px;
  border-radius: 6px;
  border: none;
  color: #fff;
  cursor: pointer;
  background-color: #7d2ae8;
  transition: all 0.2s ease;
}

.button:active {
  transform: scale(0.96);
}

.button:before,
.button:after {
  position: absolute;
  content: "";
  width: 150%;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
  z-index: -1000;
  background-repeat: no-repeat;
}

/* fin animation bouton envoyer fleurs */

/********** media  ************/
/********** je touche au media au dessus de 768 ***********************************************/
@media (min-width: 768px) {
  main .formulaire .formulaire-fleur {
    width: 70%;
  }

  main .contact-newsletter {
    width: 50%;
  }

  main .formulaire #contact {
    width: 50vw;
  }

  main #contact :nth-child(5),
  main #contact :nth-child(6) {
    align-items: center;
  }

  section.contact-newsletter label {
    color: #bd6d4b;
  }

  .form-login {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/********** je touche au media au dessus 1024 *************************************************/
@media (min-width: 1024px) {

  main .contact-cartita, 
  main .contact-noustrouver {
    font-size: 4rem;
  }
  
  main .formulaire .formulaire-fleur {
    width: 30%;
  }

  main button#contact_envoyer {
    width: 50%;
  }

  main .contact-newsletter {
    width: 30%;
  }

  main #contact :nth-child(5),
  main #contact :nth-child(6) {
    align-items: center;
  }

  main .contact-newsletter {
    width: 50%;
  }

  section.contact-newsletter label {
    color: #bd6d4b;
  }
}

input.touched:invalid,
textarea.touched:invalid {
  border: 2px solid red;
}

input.touched:valid,
textarea.touched:valid {
  border: 2px solid var(--secondary-color);
}