*{
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  font-family: "Lato-Regular", sans-serif;
}

body {
  overflow-x: hidden;
  background-color: #f2f3f2;
}

.body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-image: url(../assets/img/contact/pexels-fotoaibe-1571461.webp);
  opacity: 0.9;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  .container {
    text-align: center;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  h1 {
    font-weight: 700;
    font-size: 40px;
    font-family: 'Lato-Bold', sans-serif;
    color: #000000;
  }

  p {
    max-width: 600px;
    line-height: 1.3;
    padding: 1em;
    font-size: 1.2rem;
  }
}

.btn-container{
    display: flex;
    justify-content: center;

    & .Button {
        padding: 16px 23px;
        background: #474747;
        color: #FFFFFF;
        border-radius: 15px;
        font-size: 1rem;
        font-family: 'Inter', sans-serif;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s, color 0.3s;

        &:hover {
          background-color: #FFFFFF;
          color: #474747;
        }
    }
}

#titreNE {
  font-weight: 600;
  font-family: "Lato-Bold", sans-serif;
  font-size: 2rem;
  color: #242424;
  position: relative;
  padding: 40px;
  text-align: center;

  &:after {
    content: "";
    display: inline-block;
    width: 50px;
    height: 2px;
    background-color: #000000;
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
  }

}

#contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 100px;
  background-color: #f2f3f2;
  flex-wrap: wrap;

  & #contact-info {
    display: flex;
    flex-direction: column;
    min-width: 480px;
    max-width: 480px;
    flex-shrink: 0;

    & .infos{
      min-width: 470px;

      & .info-section {
        & #textePresentation{
          color: #242424;
          margin-bottom: 20px;
          background-color: #f2f3f2;
          width: 100%;
        }

        & .info-text {
          display: flex;
          align-items: center;
          gap: 10px;

          & .info-icon {
            width: 30px;
            height: auto;
            margin-top: 10px;
            margin-bottom: 10px;
          }
        }
      }
    }

    & .horaires{

      & h3 {
        margin: 20px 0 10px 0;
      }

      & .opening-hours {
        display: flex;

        & div{
          & p {
            margin: 10px 0;
          }
        }
      }
    }

  }

  & #contact-form {
    flex: 1;
    box-sizing: border-box;
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-left: 10px;
    width: 100%;
    min-width: 600px;
    background-color: #f2f3f2;
  }
}

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 9px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  font-size: 1rem;
  color: #333;
  box-sizing: border-box;
}

textarea {
  min-height: 150px;
  max-height: 300px;
  resize: vertical;
  width: 100%;
}

  /*------------------------------------------------------ MEDIA QUERIES ---------------------------------------------- */
@media (max-width: 1335px) {
    #contact-container {
        flex-direction: column;
    }

    #contact-container #contact-info {
        flex-direction: row;
      justify-content: space-between;
      gap: 20px;
        min-width: 100%;
    }

    #contact-container #contact-info .horaires{
      min-width: 280px;
    }

    #contact-container #contact-info .horaires h3 {
        margin: 0 0 10px 0;
    }

    #contact-info{
        margin-bottom: 20px;
    }

    #contact-container #contact-form {
      margin-left: 0;
    }
}

@media(max-width: 970px){
  #contact-info{
    flex-wrap: wrap;
  }

  .body {
    background-attachment: unset;
  }
}

@media(max-width: 800px){
  #contact-container #contact-form, #contact-container #contact-info .infos{
    min-width: 0;
  }
}

@media(max-width: 650px) {
  .body h1{
    font-size: 2.2rem;
  }

  .body p{
    font-size: 1rem;
    width: 500px;
  }

  #contact-container{
    padding: 20px 40px;
  }

  #titreNE{
    font-size: 1.6rem;
  }
}

@media (max-width: 500px) {
  .body {
    & h1 {
      font-size: 2rem;
    }

    & p {
      font-size: 0.8rem;
      width: 400px;
    }
  }

  #titreNE{
    padding: 20px;
    font-size: 1.5rem;

    &:after{
      bottom: 10px;
    }
  }
}

@media (max-width: 400px) {
  .body {
    & h1 {
      font-size: 1.7rem;
    }

    & p {
      font-size: 0.8rem;
      width: calc(100% - 1em);
    }
  }
}