@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300&display=swap');

*{
    margin: 0; padding: 0;
    box-sizing: border-box;
    outline: none; border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: all 0.2s linear;
    font-family: 'Poppins', sans-serif;
}
:root{
    --min-color: #2a2a2a;
    --sc-color: #0f00f9;
    --th-color: #202020;
}
html{
    scroll-behavior: smooth;
    scroll-padding-top: 0.5rem;
    font-size: 66%;
}
.btn{
    display: inline-block;
    padding: 0.8rem 3.8rem;
    font-size: 1.8rem;
    border: 0.1rem solid var(--sc-color);
    outline: 0;
    background: var(--sc-color);
    border-radius: 1rem;
    cursor: pointer;
    text-align: center;
    color: white;
}
.btn:hover{
    background: none;
    color: var(--sc-color);
}
.heading{
    margin: 5rem auto;
    font-size: 3.5rem;
    text-align: center;
    color: var(--th-color);
}
.heading div{
    display: inline-block;
    border-bottom: 0.2rem solid var(--th-color);
    width: 15rem;
}
.heading div:hover{
    width: 25rem;
}
section{
    padding: 3rem 9%;
}
header{
    position: fixed;
    top: 0; right: 0; left: 0;
    display: flex;
    align-items: center; 
    justify-content: space-between;
    padding: 1rem 3%;
    background: rgba(10, 10, 9, 0.6);
    z-index: 1001;
}
header .logo{
    font-size: 3.5rem;
    color: white;
    padding: 0.4rem;
}
header .navbar a{
    margin: 0 0.8rem;
    font-size: 1.9rem;
    color: white;
    padding: 0.4rem ;
}
header .navbar a:hover,
header .fa-bars:hover{
    color: var(--sc-color);
}
header .fa-bars{
    font-size: 2.8rem;
    color: var(--min-color);
    cursor: pointer;
    display: none;

}
.home .home-slid .box{
    position: relative;

}
.home .home-slid .box::before{
    content: "";
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}  
.home .home-slid .box .content{
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50% , -50%);
    color: #0f00f9;
    text-align: center;
}
.home .home-slid .box .content img{
    width: 100%;
}
.home .home-slid .box .content h3{
    font-size: 4rem;
    color: #ffffff
}
.home .home-slid .box .content p{
    font-size: 2.5rem;
    margin: 1rem 0;
    color: #ffffff
}
.about{
    background: #eee;
}
.about .box{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 7rem;
}
.about .box .image img{
    width: 80rem;
    height: 100%;
    object-fit: cover;
}
.about .box .content h3{
    color: var(--th-color);
    font-size: 3.5rem;
}
.about .box .content p{
    color: var(--th-color);
    font-size: 2rem;
    margin: 2rem 0;
}
.about .box .content div{
    color: var(--th-color);
    font-size: 2.2rem;
}
.services .row{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(30%,1fr));
    gap: 0.8rem;
    margin-top: 5rem;
}
.services .row .box{
    text-align: center;
    color: var(--th-color);
    padding: 4rem;
    border-radius: 0.8rem;
}
.services .row .box:hover{
    box-shadow: 0.5rem 0.5rem 0.5rem rgba(0, 0, 0, 0.2);
    background: #eee;
}
.services .row .box i{
    font-size: 5rem;
}
.services .row .box h3{
    font-size: 2.5rem;
    margin: 1.5rem 0;
}
.services .row .box p{
    font-size: 2rem;
}
.portfolio .row{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(25%,1fr));
    gap: 1rem;
    margin: 6rem auto;
    width: 90%;
}
.portfolio .row .box{
    position: relative;
    overflow: hidden;
}
.portfolio .row .box:hover img{
    transform: translateY(-100%);
}
.portfolio .row .box img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.portfolio .row .box:hover .content{
    transform: translateY(0);
}
.portfolio .row .box .content{
    position: absolute;
    top: 0; left: 0;
    background: transparent;
    text-align: center;
    padding: 3rem 2rem;
    height: 100%; width: 100%;
    transform: translateY(100%);
    padding-top: 2.5rem;
}
.portfolio .row .box .content h3{
    font-size: 2.5rem;
    color: var(--sc-color);
    margin-top: 4rem;
}
.portfolio .row .box .content p{
    padding: 1rem 0;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--min-color);
    margin-bottom: 0;
    color: var(--min-color);
}

.team{
    width: 100%;
}
.team .row{

   background: url(../img/background/reviews-bg.jpg);
   background-position: center;
   background-repeat: no-repeat;
   background-size: cover;
   background-attachment: fixed;
   position: relative;
   display: flex;
   align-items: center;
   min-height: 70vh;
} 
.row::before{
    content: "";
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}
.team .row .team-slider  .box{
    padding: 0 3%;
}
.team .team-slider .box .content{
    background: #222;
    box-shadow: 0 0.5 0.5 rgba(0, 0, 0, 0.6);
    text-align: center;
    padding: 4rem;
    border-radius: 1rem;
    height:30rem;
}
.team .team-slider .box .image img{
    width: 10rem;
    height: 7rem;
    border-radius: 50%;
    position: absolute;
    top: 22rem; left: 1rem;
    border: 0.3rem solid var(--sc-color);
    
}
.team .team-slider .box .content h3{
    font-size: 3.5rem;
    color: var(--sc-color);
    margin: 1rem;

}
.team .team-slider .box .content p{
    color: #fff;
    font-size: 2.2rem;
}
.blog .row{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(25%,1fr));
    gap: 2rem;
    margin: 6rem 0;
}
.blog .row img{
    width: 100%;
    object-fit: cover;
}
.blog .row h3{
    color: var(--th-color);
    font-size: 3rem;
    margin: 1.5rem 0;
}
.blog .row p{
    color: var(--th-color);
    font-size: 1.9rem;
    margin: 1rem 0;
}
.welcam{
    padding: 7rem 0;
    text-align: center;
    height: 18rem;
    background: var(--th-color);
}
.welcam span{
    font-size: 3rem;
    padding: 3rem;
    color: white;
}
.contact .box{
    display: grid; 
    grid-template-columns: repeat(auto-fit,minmax(30%,1fr));
    gap: 2rem;
    text-align: center;
}
.contact .box i{
    font-size: 3.8rem;
    color: var(--sc-color);
}
.contact .box div{
    font-size: 2rem;
    color: var(--th-color);
    margin: 1rem 0;
}
.contact .row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 8rem 0;
} 
.contact .row .form-c input,textarea{
    background: var(--min-color);
    border: 0.1rem solid rgb(160, 160, 160);
    padding: 1rem;
    height: 4.5rem; width: 100%;
    margin: 0.7rem 0;
    color: var(--th-color);
    font-size: 1.9rem;
}
.contact .row .form-c input[type="submit"]{
    background: var(--sc-color);
    cursor: pointer;
    margin-bottom: 2rem;
    color: white;
    border: 0.1rem solid var(--sc-color);

}
.contact .row .form-c input[type="submit"]:hover{
    background: none;
    color: var(--sc-color);
}
.contact .row .form-c textarea{
    height: 15rem;
    padding: 1rem;
}
.footer{
    background: #222;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(20%,1fr));
    gap: 2rem;
    text-align: center;
    padding: 4rem;
}
.footer h3{
    font-size: 3.5rem;
    margin: 2rem 0;
    color: white;
}
.footer p{
    font-size: 1.6rem;
    margin: 1rem 0;
    color: white;
}
.footer i{
    font-size: 2.6rem;
    margin: 1rem 0.5rem;
    color: white;
}
.footer i:hover,
.footer a:hover{
    color: var(--sc-color);
}
.footer a{
    display: block;
    font-size: 2rem;
    margin: 0.5rem;
    color: white;
}

@media (max-width: 1480px){
    header{
      padding: 12px 2.5%;
      transition: .1s;
    }
    header{
      padding: 10px 2.5%;
      transition: .1s;
    }
    section{
      padding: 110px 3% 60px;
    }
    .end{
      padding: 15px 3%;
    }
  }
  
  @media (max-width: 1100px){
     :root{
      --big-font: 4rem;
      --h2-font: 2.5rem;
      --p-font: 1rem;
      transition: .1s;
     } 
      .home-text h3{
          font-size: 2.5rem;
      }
      .home{
          height: 87vh;
      }
  }
  
  @media (max-width: 920px){
      .about{
          grid-template-columns: 1fr;
      }
      .about-img{
          text-align: center;
          order: 2;
      }
      .about-img img{
          width: 100%;
          height: auto;
          max-width: 100%;
      }
      .contact{
          grid-template-columns: 1fr;
      }
  }
  
  @media (max-width: 840px){
      #menu-icon{
          display: block;
      }
      .navlist{
          position: absolute;
          top: -1000px;
          right: 0;
          left: 0;
          display: flex;
          flex-direction: column;
          background: var(--bg-color);
          text-align: left;
          transition: all .45s ease;
      }
      .navlist a{
          display: block;
          margin: 17px;
          font-size: 20px;
          transition: all .45s ease;
          color: var(--text-color);
      }
      .navlist a:hover{
          color: var(--text-color);
      }
      .navlist a.active{
          color: var(--text-color);
      }
      .navlist.open{
          top: 100%;
      }
  }
  @media screen and (max-width: 768px) {
    html {
        font-size: 50%;
    }

    header {
        padding: 12px 5%;
    }

    .logo, .navlist a {
        font-size: 2rem;
    }

    .navlist {
        flex-direction: column;
        padding: 20px;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
    }

    .navlist a {
        margin: 10px 0;
    }

    #menu-icon {
        display: inline;
    }

    .home {
        padding: 100px 5% 60px;
        height: auto;
    }

    .home-text h1, .home-text h3, .home-text p {
        text-align: center;
    }

    .about .box, .services .row, .portfolio .row, .team .row, .contact .box, .contact .row {
        flex-direction: column;
    }

    .about .box .image, .services .row .box, .portfolio .row .box, .team .row .box, .contact .box .content {
        width: 100%;
    }

    .about .box .content, .services .row .box, .portfolio .row .box .content, .team .row .box .content, .contact .box .content {
        padding: 20px;
    }

    .footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 10px 4%;
    }

    .logo, .navlist a {
        font-size: 1.8rem;
    }

    .home-text h1 {
        font-size: var(--big-font);
    }

    .home-text h3 {
        font-size: var(--h2-font);
    }

    .home-text p {
        font-size: var(--p-font);
    }
}

/* Ajout d'un comportement pour le menu icon pour gérer l'affichage de la navlist sur les petits écrans */
#menu-icon.open + .navlist {
    display: flex;
}