/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 1920px;
}

/* Corps du document */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  line-height: 1.6;
  color: #333;
  background-color: #b9d5e8;
}

header,
footer {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 1920px;
}

main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.backgroundUp {
  background: url(../assets/images/backgroundUp.webp);
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
}

/*Effets sur le titre*/
.title {
  padding-top: 100px;
  text-align: center;
  padding-bottom: 260px;
}

.logo-title {
  height: 50px;
}
.contact-text {
  display: block;
  color: #ef7214;
  font-weight: 700;
  margin-top: -20px;
}

.section-1 {
  display: flex;
  justify-content: space-around;
}

.icone-section {
  width: 40%;
}

.form-section {
  margin-top: 80px;
}

.info-contact {
  margin-bottom: 10px;
}

.info {
  display: flex;
  align-items: center;
  gap: 10px;
}

/*Display mail/phone*/
.mail {
  display: none;
}
.tel {
  display: none;
}
.mailIcone {
  cursor: pointer;
}
.telIcone {
  cursor: pointer;
}

.btn-custom {
  background-color: #322c79;
  color: white;
}

h2 {
  color: #322c79;
}
/*Formulaires*/
/*Form Mail*/
/*Formulaire message*/
form {
  color: #322c79;
}

.form-action {
  padding-left: 0;
}

.formContact {
  display: flex;
  flex-direction: column;
  width: 600px; /* Ajuste la largeur du formulaire global */
}

.color {
  display: none;
}

.formName,
.formMail,
.formMessage {
  display: flex;
  align-items: center; /* Aligne les labels verticalement au centre des champs */
  justify-content: space-between;
  margin-bottom: 20px;
  width: 100%;
}

.formName label,
.formMail label,
.formMessage label {
  width: 30%;
  text-align: left;
  font-size: 1.2rem;
}

.formName input,
.formMail input,
.formMessage textarea {
  border: transparent;
  border-radius: 10px;
  width: 70%;
  padding: 10px;
  font-size: 1rem;
  box-sizing: border-box;
}

.formMessage textarea {
  height: 120px;
}

.privacy-policy-text p {
  font-size: x-small;
}

.privacy-policy {
  color: #ef7214;
}

.formSubmit {
  display: flex;
  justify-content: end;
  width: 100%;
  margin-top: 10px;
  padding-bottom: 50px;
}

.formSubmit input {
  background-color: #322c79;
  color: white;
  border-radius: 10px;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

.mailingList {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: url(../assets/images/Vague-mailingList.webp);
  padding-top: 60px;
  padding-bottom: 140px;
  background-color: #b9d5e8;
  width: 100%;
}

.second-form {
  align-items: center;
}

.mailingList form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mailingListMail {
  color: #ef7214;
  font-weight: 500;
}

.mailingListMail input {
  border-radius: 10px;
  border-color: transparent;
  width: 350px;
  height: 3em;
  border: 1px solid grey;
}

.conditions-mailingList {
  color: #ef7214;
  width: 40%;
  @media (max-width: 1316px) {
    width: 60%;
  }
  /* @media (max-width: 900px) {
    width: 70%;
  } */
}

.accept-text {
  font-size: small;
}

.conditions-mailingList p {
  font-size: x-small;
}

.privacy-policy-ML {
  color: #b9d5e8;
}

.mailingListSubmit input {
  background-color: #ef7214;
  width: 50px;
  color: white;
  border-radius: 10px;
  border-color: transparent;
  height: 2em;
}

h3 {
  color: #ef7214;
  margin-top: 10px;
  text-align: center;
}

footer {
  background-color: #d9e7f3;
}

/* Tablettes et petits portables */

@media (max-width: 1200px) {
  .backgroundUp {
    background: url(../assets/imagesService/background-up-medium.png);
    background-size: cover;
    background-repeat: no-repeat;
  }
  .title {
    padding-bottom: 130px;
  }
  .icone-section {
    width: 50%;
  }
  .formContact {
    max-width: fit-content;
  }
}

/* @media (max-width: 1200px) {
  .backgroundUp {
    background: url(../assets/imagesService/background-up-medium.png);
    background-size: cover;
    background-repeat: no-repeat;
  }
  .title {
    padding-bottom: 170px;
  }
} 
/* Téléphones portables moyens en mode portrait */
@media (max-width: 768px) {
  /* .backgroundUp {
    background: url(../assets/imagesService/Background-haut-de-page.png);
  } */
  .mailingList {
    background: url(../assets/imagesService/wave-down-page.png);
    background-repeat: no-repeat;
    background-size: cover;
  }
  .backgroundUp {
    background: url(../assets/imagesService/background-upmobile.png);
    background-size: cover;
    background-repeat: no-repeat;
  }

  .title {
    padding-bottom: 100px;
  }
  .section-1 {
    flex-direction: column;
    align-items: center;
  }
  .form-section {
    margin-top: 0;
  }
  .second-form {
    display: flex;
    flex-direction: column;
  }
  .mailingListMail {
    margin-left: 1rem;
  }
  .mailingListMail input {
    width: 10rem;
  }
  .mailingListSubmit {
    margin: auto;
  }
}

@media (max-width: 500px) {
  h2 {
    font-size: large;
    text-align: center;
  }
  .info-contact {
    justify-content: center;
  }
  .form-section {
    width: 50%;
    justify-content: center;
  }
  .formName input,
  .formMail input,
  .formMessage textarea {
    width: 6rem;
  }
}
