*{ 
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  font-family: "Lato-Regular", sans-serif;
}

html, body {
  overflow-x: hidden;
  width: 100vw;
}

  /*------------------------------------------------------ BANNIERE ---------------------------------------------- */

.body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-image: url("../assets/img/accueil/banniere.webp");
  opacity: 0.85;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center; 
  background-attachment: fixed;
  width: 100%;
  height: 100vh;

  & .container {
    text-align: center;
    width: calc(100% - 40px);
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  & h1 {
    font-size: 2.5rem;
    font-family: "Lato-Bold", sans-serif;
  }

  & p {
    width: 600px;
    line-height: 1.3;
    padding: 1em;
    font-size: 1.2rem;
  }
}


.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;
}
.Button:hover {
  background-color: #FFFFFF;
  color: #474747;
}
/*------------------------------------------------------ BANNIERE ---------------------------------------------- */

/*------------------------------------------------------ CARTE ---------------------------------------------- */

#domaines-container, #services-container {
  background-color: #f2f3f2;
}

#domaines, #services, .apropos-section > h2, #fondChiffre > h2 {
  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%);
  }
}

.new-cards-container {
  display: flex;
  justify-content: space-evenly;
  width: calc(100% - 80px);

  gap:20px;

  padding: 10px 40px 40px 40px;

  & .new-card {
    width: 300px;
    height: 500px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: inherit;
    text-decoration: none;

    & .plomberie {
      background: url(../assets/img/accueil/cartePlomberie.webp) no-repeat
      center center;
      background-size: cover;
    }

    & .zinguerie {
      background: url(../assets/img/accueil/carteGouttiere.webp) no-repeat
      center center;
      background-size: cover;
    }

    & .chauffage {
      background: url(../assets/img/accueil/carteRadiateur.webp) no-repeat
      center center;
      background-size: cover;
    }

    & .particulier {
      background: url(../assets/img/accueil/carteParticulier.webp)
      no-repeat center center;
      background-size: cover;
    }

    & .depannage {
      background: url(../assets/img/accueil/carteDepannage.webp) no-repeat
      center center;
      background-size: cover;
    }

    & .professionels {
      background: url(../assets/img/accueil/cartePro.webp) no-repeat
      center center;
      background-size: cover;
    }

    & .card-photo {
      width: calc(100% - 20px);
      height: calc(100% - 20px);
      display: flex;
      justify-content: start;
      align-items: end;

      flex-shrink: 0;
      padding: 10px;

      position: relative;

      &:after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background: linear-gradient(
                0deg,
                rgba(0, 0, 0, 0.6),
                transparent
        );
      }

      & h3 {
        margin: 0;
        position: relative;
        font-size: 1.5rem;
        font-weight: 600;
        color: hsl(0, 0%, 97%);
        z-index: 1;

        &:after {
          content: "";
          position: absolute;
          top: -8px;
          left: 0;
          width: 70%;
          height: 4px;
          background-color: hsla(0, 0%, 97%);
        }
      }
    }
  }
}
/*------------------------------------------------------ CARTE ---------------------------------------------- */

/*------------------------------------------------------ DEVIS ---------------------------------------------- */

#devis{
  background-color: #242424;
  width: 100%;
  height: 50vh;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  & #titreDevis{
    text-align: center;
    font-family: "Lato-Bold", sans-serif;
    font-size: 2rem;
  }

  & #paraDevis{
    text-align: center;
    color: #FFFFFF;
    font-size: 16px;
    width: 600px;
    padding: 20px;
  }

}

/*------------------------------------------------------ DEVIS ---------------------------------------------- */

/*------------------------------------------------------ A PROPOS ---------------------------------------------- */

.apropos-section {
  text-align: center;
  padding:  0 50px 20px 50px;
  background-color: #f2f3f2;

  & h2 {
    color: #333;
    margin-bottom: 10px;
  }

  & .cards-container {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 auto;
    flex-wrap: wrap;
    align-items: stretch;

    & .card {
      width: 300px;
      height: 350px;

      flex-shrink: 0;

      background-color: #fff;
      border-radius: 10px;
      padding: 20px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      margin-bottom: 20px;

      & .icon{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 100px;

        & img {
          width: 50px;
          height: auto;
        }

        & h3 {
          font-size: 1.5rem;
          color: #333333;
        }
      }

      & .content{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 200px;

        & p {
          font-size: 1rem;
          color: #555555;
        }

        & ul {
          list-style-type: none;
          padding: 0;
          font-size: 1rem;
          color: #555;
          text-align: left;
        }

        & strong > a {
          font-family: "Lato-Bold", sans-serif;
          font-size: 1.2rem;
          color: #333;
          text-decoration: none;
        }

        & li, p{
          line-height: 1.3;
        }
      }
    }
  }

}

/*------------------------------------------------------ A PROPOS ---------------------------------------------- */


/*------------------------------------------------------ CHIFFRE ---------------------------------------------- */
#fondChiffre {
  width: calc(100% - 40px);
  background-image:url(../assets/img/accueil/fondChiffre.webp);
  padding: 20px;
  background-size: cover;
  background-position-y: 70%;

  display: flex;
  flex-direction: column;
  align-items: center;

  & h2 {
    font-family: "Lato-Bold", sans-serif;
    font-size: 2rem;
  }

  & .numbers-container{
    display: flex;
    width: 100%;
    min-height: 240px;
    max-height: max-content;
    flex-wrap: wrap;

    .number{
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 80%;
      flex-shrink: 0;

      & h3 {
          font-size: 3rem;
          font-family: "Lato-Regular", sans-serif;
          color: black;
      }

      & p {
          font-size: 1.4rem;
          font-family: "Lato-Bold", sans-serif;
          text-wrap: nowrap;
      }
    }
  }
}

/*------------------------------------------------------ CHIFFRE ---------------------------------------------- */

/*------------------------------------------------------ MEDIA QUERIES ---------------------------------------------- */

@media screen and (max-width: 860px) {
    .new-cards-container .new-card {
        width: 250px;
        height: 350px;
    }

    .body {
      background-attachment: unset;
    }
}

@media screen and (max-width: 768px) {
  .new-cards-container .new-card {
    width: 250px;
    height: 300px;
  }


  .Button {
    padding: 14px 20px;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 700px){

  .body h1{
    font-size: 2.2rem;
  }

  .body p{
    font-size: 1rem;
    width: 500px;
  }
  
  .Button {
    font-size: 0.8rem;
  }

  #domaines, #services, .apropos-section > h2, #fondChiffre > h2, #devis #titreDevis {
    font-size: 1.8rem;
  }

  #devis #paraDevis{
    font-size: 14px;
    width: 500px;
  }


  .new-cards-container .new-card {
    width: 150px;
    height: 250px;

    & .card-photo h3{
      font-size: 1.2rem;
    }
  }

  #fondChiffre .numbers-container .number {
    & p {
      font-size: 1.2rem;
    }

    & h3 {
      font-size: 2rem;
    }
  }

}

@media (max-width: 600px) {

  .new-cards-container .new-card .card-photo h3{
    font-size: 1rem;
  }

  #domaines, #services, .apropos-section > h2, #fondChiffre > h2, #devis #titreDevis {
    font-size: 1.6rem;
  }

  #devis #paraDevis{
    font-size: 14px;
    width: 80%;
  }

  .apropos-section .cards-container .card {
    height: 275px;

    & .icon {
      height: 80px;

        & img {
            width: 40px;
        }

        & h3 {
            font-size: 1.2rem;
        }
    }

    & .content {
      height: 150px;

      & p, li {
        font-size: 0.9rem;
      }
    }
  }

  #fondChiffre .numbers-container .number {
    margin-right: 10px;

    & p {
      font-size: 1rem;
    }

    & h3 {
      font-size: 1.8rem;
    }
  }
}

@media (max-width: 500px) {
  .body{
    & h1{
      font-size: 2rem;
    }

    & p{
      font-size: 0.8rem;
      width: 400px;
    }
  }

  .Button {
    font-size: 0.6rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 0.9rem;
  }

  .Button {
    font-size: 0.8rem;
    padding: 10px 15px;
  }

  #domaines, #services, .apropos-section > h2, #fondChiffre > h2, #devis #titreDevis {
    font-size: 1.5rem;
  }

  .new-cards-container .new-card .card-photo h3{
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  .body{
    & h1{
      font-size: 1.7rem;
    }

    & p{
      font-size: 0.8rem;
      width: calc(100% - 1em);
    }
  }

  #domaines, #services, #devis #titreDevis {
    font-size: 1.3rem;
    padding: 20px;

    &:after {
      bottom: 10px;
    }
  }

  .apropos-section > h2, #fondChiffre > h2 {
    font-size: 1.1rem;
    padding: 20px;

    &:after {
      bottom: 10px;
    }
  }

  .new-cards-container .new-card .card-photo h3{
    font-size: 0.55rem;
  }

  .new-cards-container .new-card {
    width: 150px;
    height: 180px;

    & .card-photo h3:after{
      height: 3px;
    }
  }

  #devis #titreDevis{
    padding: 12px;
  }

  #devis #paraDevis{
    font-size: 0.8rem;
    width: 80%;
    padding: 0 0 20px 0;
  }

  #fondChiffre .numbers-container{
    display: flex;
    flex-direction: column;
  }
  #fondChiffre .numbers-container .number {
    margin-right: 0;

    & p {
      font-size: 0.8rem;
    }

    & h3 {
      font-size: 1.5rem;
    }
  }

  .apropos-section .cards-container .card {
    width: 100%;
  }

}

/*------------------------------------------------------ MEDIA QUERIES ---------------------------------------------- */
