
.hero-section {
    height: 100vh;
}

.hero-content {
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 20px 0;
}

.titre_principal {
  font-family: "MuseoModerno", sans-serif;
  line-height: 120%;
  letter-spacing: 2px;
  font-size: 2.8rem;
  animation: fadeInScale 1s ease-out;
}

.intro {
  font-size: 1.2rem;
  color: #3C3A3A;
}

.hero-content div {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#hero-background {
  width: 100%;
  height: 70vh;
  padding: 25px 40px;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(../assets/env_bg.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 30px;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  transition: all 1s ease-in-out;
}

#hero-background button {
  padding: 10px 20px;
  background-color: white;
  color: #000;
  border: none;
  font-size: 1.2rem;
}


.env-sec {
  background-color: #F5F5F5;
}

.content {
    width: 93%;
    padding: 40px 45px;
    background-color: white;
    border-radius: 30px;
    margin: 0 auto;
}

.content-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 5px;
}

.content-header h2 {
    font-family: "MuseoModerno", sans-serif;
    text-align: left;
    line-height: 130%;
}

.content-header h2 span {
    display: block;
    width: clamp(100px, 20vw, 200px);
    background-color: #E42C2E;
    height: 7px;
}

.content-header p {
    color: #3C3A3A;
    text-align: left;
}

.wrapper {
    margin-top: 30px;
    width: 100%;
    display: flex;
    gap: 10px;
}

.wrapper img, .wrapper-content {
    width: 50%;
    border-radius: 20px;
}

.wrapper-content {
    background-color: #E42C2E;
    padding: 0 40px;
    color: white;
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.wrapper-content h3 {
    font-family: "MuseoModerno", sans-serif;
    font-size: 1.6rem;
}

.wrapper-content h3 i {
    font-size: 1.8rem;
    margin-right: 5px;
}

.wrapper-content p {
    text-align: justify;
}

.sections-header p {
    margin: 15px auto 0;
    max-width: 75%;
    color: #3C3A3A;
    text-align: justify;

}

.qualite img {
    margin-top: 50px;
    width: 45%;
    max-height: 280px;
    border-radius: 30px;
}

.reverse {
    flex-direction: row-reverse;
}

@media screen and (min-width: 1440px) {
  .titre_principal {
    font-size: 3.5rem;
  }

  .intro {
    font-size: 1.4rem;
  }

  #hero-background button {
    font-size: 1.6rem;
  }

  .content-header h2 {
    font-size: 2rem;
  }

  .content-header p {
    font-size: 1.2rem;
  }

  .wrapper-content h3 i {
    font-size: 2.5rem;
  }

  .wrapper-content h3 {
    font-size: 2.2rem;
  }

  .wrapper-content p {
    font-size: 1.5rem;
  }

  .sections-header p {
    font-size: 1.4rem;
  }

  .qualite img {
    max-height: 340px;
  }
}

@media screen and (max-width: 978px) {
    .wrapper-content {
        padding: 20px 28px;
        gap: 13px;
    }

    .wrapper-content h3 {
        font-size: 1.4rem;
    }
    
    .wrapper-content h3 i {
        font-size: 1.6rem;
    }
    
    .wrapper-content p {
        font-size: 0.7rem;
    }
}


@media screen and (max-width: 768px) {
  .titre_principal {
    font-size: 2.2rem;
  }

  .intro {
    font-size: 1rem;
  }

  .wrapper {
    align-items: center;
    flex-direction: column;
}

.wrapper img, .wrapper-content {
    width: 100%;
}

.wrapper img {
    max-height: 300px;
}

.wrapper-content {
    padding: 40px;
    gap: 20px;
}

.wrapper-content h3, .content-header h2 {
    font-size: 1.6rem;
}

.wrapper-content h3 i {
    font-size: 1.8rem;
}

.wrapper-content p, .content-header p {
    font-size: 1rem;
}

.sections-header p {
    max-width: 90%;
    font-size: 1rem;
}

.qualite img {
    width: 70%;
}
  
}

@media screen and (max-width: 580px) {
  .hero-section {
    padding: 0 25px;
  }

  #hero-background {
    height: 40vh;
    padding: 20px 30px;
  }

  .titre_principal {
    font-size: 1.6rem;
  }

  .intro {
    font-size: 0.8rem;
  }

  #hero-background button {
    font-size: 0.9rem;
  }

  .hero-section {
    height: auto;
    margin: 60px 0;
    }

    .env-sec {
        padding: 30px 20px;
    }

    .content {
        width: 100%;
        padding: 30px 25px;
    }

    .wrapper-content {
        padding: 30px;
        gap: 13px;
    }

    .wrapper-content h3, .content-header h2 {
        font-size: 1.3rem;
    }

    .wrapper-content h3 i {
        font-size: 1.5rem;
    }

    .wrapper-content p, .content-header p {
        font-size: 0.8rem;
    }

    .qualite {
        padding: 30px 20px;
    }

    .sections-header p {
        max-width: 100%;
        font-size: 0.8rem;
        text-align: justify;
    }

    .qualite img {
        width: 90%;
        max-height: 200px;
    }
}

@media screen and (max-width: 380px) {
  .hero-section {
    padding: 0 10px;
  }

  #hero-background {
    height: 40vh;
    padding: 15px 20px;
  }

  .titre_principal {
    font-size: 1.3rem;
  }

  .intro {
    font-size: 0.65rem;
  }

  #hero-background button {
    font-size: 0.75rem;
  }

  .wrapper img {
    max-height: 200px;
    }

    .wrapper-content {
        padding: 20px;
        gap: 13px;
    }

    .wrapper-content h3, .content-header h2 {
        font-size: 1.1rem;
    }

    .wrapper-content h3 i {
        font-size: 1.3rem;
    }

    .wrapper-content p, .content-header p {
        font-size: 0.6rem;
    }

    .sections-header p {
        font-size: 0.7rem;
    }
}

