@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;900&display=swap');
*{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-padding-top: 2rem;
    scroll-behavior: smooth;
}
/* Client scroll bar*/
::-webkit-scrollbar{
    width: 0.5rem;
    background: var(--light-green-color);
}
::-webkit-scrollbar-thumb{
    width: 0.5rem;
    background: var(--green-color);
    border-radius: 5rem;
}
/* declaration des variables couleurs aui sera utiliser*/
section{
    padding: 4.5rem 0 1.5rem;
}
:root{
    --green-color: #3cb815;
    --light-green-color: #c0eb7b;
    --orange-color: #ff7e77;
    --light-orange-color: #f75f1d;
    --text-color: #1a2428;
    --gb-color: #fff;
    }
img{
    width: 100%;
}
body{
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins' sans-serif;
}
.search{
    position: relative;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 60%;
    transition: 0.5s;
    box-shadow: 0 0 0 5px #2573ef;
    right: 10px;
}
.search .icon{
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background: #fff;
    display: flex;
    border-radius: 60px;
    justify-content: center;
    align-items: center;
    z-index: 1000;;
    cursor: pointer;
}
.search.active{
    width: 360px;
}
.search .icon::before{
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 3px solid #287dfc;
    border-radius: 50%;
    transform: translate(-4px, -4px);
}
.search .icon::after{
    content: '';
    position: absolute;
    width: 3px;
    height: 12px;
    background: #287dfc;
    transform: translate(6px, 6px) rotate(315deg);
}
header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gb-color);
    box-shadow:  0 8px 11px rgb(14 55 54 /15%);
    padding: 20px 100px;
    transition: 0.5s;
}
.profile{
display: flex;
align-items: center;
column-gap: 0.5rem;
cursor: pointer;
}
/*Pour recuperer profile et img et le redimantionner pour arrondir ce le border-raduis*/
.profile img{
    width: 40px;
    height: 40px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}
.profile span{
    font-size: 13px;
    font-weight: 500;
}
.logo{
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    column-gap: 0.5rem;
}
.logo .bx{
  font-size: 24px;  
  color: var(--orange-color);
}
/*Pour alligner les options de la bar de navigation en ligne*/
.navbar{
    display: flex;
    column-gap: 0.5rem;
}
/*Pour creer un espacement entre les options */
.navbar a{
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 1rem;
}
/*.navbar a:hover definie l'action du survole sur une options*/
.navbar a:hover, .navbar .home-active{
    background: var(--green-color);
    border-radius: 2rem;
    color: var(--gb-color);
    transition:  background 0.5s;
}
/*section accueil*/
.container{
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: url(/images/banner/cta-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.container img{
    width: 400px;
    position: absolute;
    bottom: -500px;
    right: 200px;
}
.home-text{
    padding: 150px;
    
}
.home-text span{
    font-weight: 400;
    text-transform: uppercase;
    color: var(--light-green-color);
}
.home-text h1{
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gb-color);
}
.btn{
    padding: 0.6rem;
    background: var(--green-color);
    color: var(--gb-color);
    font-weight: 400;
    border-radius: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 0.5rem;
    max-width: 200px;
}
.btn:hover{
    background:  var(--light-orange-color);
    border-color: var(--green-color);
    border-style:ridge;
    transition: 0.3s;
}
.btn .bx{
padding: 4px;
background: var(--gb-color);
color: var(--text-color);
border-radius: 1rem;
font-size: 20px;
margin: auto;
}
.swiper-button-next{
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center;
    margin-left: 20px;
}
.swiper-button-next::after{
    display: flex;
}
.swiper-button-prev{
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center;
    margin-left: 20px;
}
.swiper-button-prev::after{
    display: none;
}
.heading{
display: flex;
justify-content: space-between;
align-items: center;
}
.heading h1{
    font-size: 1.6rem;
    font-weight: 700;
}
.heading span{
    color: var(--green-color);
    
}

/************************************CATEGORIES**************************************/
.categories{
    max-width: 968px;
    margin-left: auto;
    margin-right: auto;
    
}
.categories-container{
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, auto));
    align-items: center;
    gap: 1.5rem;
}
.categories-container .box{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 0.8rem;
}
.categories-container .box img{
    width: 100%;
    height: 100px;
    object-fit: contain;
    object-position: center;
}
.categories-container .box h2{
    font-size: 1rem;
    font-weight: 600;

}
.categories-container .box span{
    font-size: O.8rem;
    font-weight: 400;  
    margin-bottom: 1rem;
}
.categories-container .box .bx{
    padding: 10px;
    background: var(--green-color);
    color: var(--gb-color);
    border-radius: 5rem;
    margin-top: 2rem;
    position: absolute;
    bottom: -8%;
    display: none;
}
.categories-container .box .bx:hover{
    background: var(--light-orange-color);
    transition: 0.2 all linear;
}
/*ici je cache le box du faite que si je survole il apparait*/
.categories-container .box:hover .bx{
    display: block;
    transition: 0.2 all linear;
}
.box1{
    background: #fef4ea;
    box-shadow: 1px 2px 11px 4px rgb(14 55 54 /15%);
}
.box2{
    background: #e9f4e3;
    box-shadow: 1px 2px 11px 4px rgb(14 55 54 /15%);
}
.box3{
    background: #faeaea;
    box-shadow: 1px 2px 11px 4px rgb(14 55 54 /15%);
}
.box4{
    background: #f7f6d7;
    box-shadow: 1px 2px 11px 4px rgb(14 55 54 /15%);
}
.box5{
    background: #f7f6d7;
    box-shadow: 1px 2px 11px 4px rgb(14 55 54 /15%);
}


/***************************PRODUIT******************************/

.produits{
    max-width: 968px;
margin-left: auto;
margin-right: auto;
}
.produits-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,auto));
    gap: 1.5rem;
    margin-top: 2rem;
}
.produits-container .box{
    padding: 24px;
    box-shadow: 1px 2px 11px 4px rgb(14 55 54 /15%);
border-radius: 0.5rem;
position: relative;
}
.produits-container .box:hover{
    box-shadow: #202da8;
    background: var(--light-green-color);
}
.produits-container .box img{
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
}
.produits-container .box span{
    font-weight: 500;
    font-size: 13px;
}
.produits-container .box h2{
    font-size: 1.2rem;
    font-weight: 600;
}
.produits-container .box .price{
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: var(--light-orange-color);
}
.produits-container .box .price span{
    color: var(--text-color);
}
.produits-container .box .bx-cart-alt{
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 10px;
    background: var(--orange-color);
    font-size: 20px;
    border-radius: 0.5rem 0 0.5rem 0;
    cursor: pointer;
    color: #202da8;
    box-shadow: 1px 2px 11px 4px rgb(14 55 54 /15%);
}
.produits-container .box .bx-cart-alt:hover{
background: var(--orange-color);
transition: 0.3 all linear;
}
.produits-container .box .bx-heart{
position: absolute;
top: 1rem;
right: 1rem;
font-size: 20px;
color: var(--light-orange-color);
}
.produits-container .box .discount{
    position: absolute;
    top: 1rem;
    left: 0;
    background: var(--light-orange-color);
    color: var(--gb-color);
    padding: 4px 18px;
    clip-path: polygon(100% 0%, 75% 50%, 100% 100%, 0 100%, 0% 50%, 0 0);
}






/*************************ABOUT US********************************/
.about{
    max-width: 968px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(21rem, auto));
    align-items: center;
    gap: 1.5rem;
}
.about-text span{
   font-weight: 900; 
   text-transform: uppercase;
   color: var(--green-color);
   text-align: center;
}
.about-text p{
    margin: 0.5rem 0 1rem;
}


/*Client ou customer*/
.clients{
    max-width: 968px;
    margin-left: auto;
    margin-right: auto; 
}
.clients h2{
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
}
.clients-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, auto));
    gap: 1.5rem;
    margin-top: 2rem;
}
.clients-container .box{
    padding: 20px;
    box-shadow: 1px 2px 11px 4px  rgb(14 55 54 /15%);
    border-radius: 0.5rem;
    border-bottom: 7px solid var(--green-color);
}
.clients-container .box:hover{
    transform: translateY(10px);
    transition: 0.2s all linear; 
}
.clients-container .box .bx{
    font-size: 24px;
    color: var(--green-color);
}
.clients-container .box .etoiles .bx{
    font-size: 1rem;
    color: var(--light-orange-color);
}
.clients-container .box p{
    font-size: 0.938rem;
}
.review-profile{
    display: flex;
    align-items: center;
    margin-top: 1rem;
    column-gap: 0.5rem;
}
.review-profile img{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}
.review-profile h3{
    font-size: 1rem;
    font-weight: 600;
}

/****************Footer******************/
.footer{
    max-width: 968px;
    margin-left: auto;
    margin-right: auto;
     display: grid;  
     grid-template-columns: repeat(auto-fit, minmax(200px, auto));
     gap: 1.5rem;
     margin-top: 2rem;
     background: #fef4ea;
     border-radius: 0.5rem;
     padding: 20px;
}
.footer-box{
    font-size: 0.938rem;
    flex-direction: column;
    margin: 0.5rem 0 1rem;
}
 .footer-box p{
    font-size: 0.938rem;
    margin: 0.5rem 0 1rem;
 }
 .social{
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
 }
 .social .bx{
    padding: 10px;
    background: var(--gb-color);
    color: var(--green-color);
    border-radius: 5rem;
    font-size: 20px;
 }
 .social .bx:hover{
    background: var(--green-color);
    color: var(--gb-color);
    transition: 0.2s all linear;
 }
 .footer-box h2{
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
 }
 .footer-box a{
    color: #868a92;
    margin-bottom: 1rem;
 }
 .footer-box a:hover{
    color: var(--light-orange-color);
 }
 .footer-box form{
    border-bottom: 1px solid var(--text-color);
    padding: 10px;
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
 }
 .footer-box form input{
    background: transparent;
    border: none;
    outline: none;
 }
 .footer-box form .bx{
    font-size: 20px;
    color: var(--light-orange-color);
    cursor: pointer;
 }
.footer-box form .bxs-envelope{
    color: var(--green-color);
}
.copyright{
   text-align: center; 
   background: var(--text-color);
color: var(--gb-color);
}
.copyright a{
    color: var(--green-color);
    cursor: pointer;
}


/*Making responsive*/
@media(max-width: 1080px){
    header{
        padding: 18px 68px;
    }
    .home-text{
        padding: 0 100px;
    }
    .container img{
        right: 100px;
    }
}
@media(max-width: 991px){
    header{
        padding: 18px 4%;
    }
    section{
        padding: 50px 4%;
    }
    .home-text h1{
        font-size: 2rem;
    }
    .home-text{
        padding: 0 5rem;
    }
    .swiper-button-next, 
    .swiper-button-nprev{
        margin: 0;
    }
}
@media(max-width: 852px){
    header{
        padding: 0;
    }
    .window-scroll {
        background: var(--text-color) ;
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
      
    .navbar{
        position: absolute;
        top: -570px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: var(--gb-color);
        box-shadow: 4px 4px 0 4px rgb(14 55 54 /15%);
        transition: 0.2s all linear;
        text-align: left;
    }
    .navbar a{
        padding: 1rem;
        margin: 1rem;
        display: block;
    }
    .navbar a:hover,.navbar .home-active{
        border-radius: 00.5rem;
        color: var(--gb-color);
    }
    .navbar{
top: 100%;
    }
    home-text h1{
        font-size: 1.78rem;
    }
    .container img{
        width: 390px;
    }
    .btn{
        padding: 0.6rem 1.2rem;
    }
    .produits-container{
        grid-template-columns: repeat(auto-fit, minmax(244px, auto));
    }
}
@media(max-width: 712px){
    .container img{
        right: 20px;
    }
    .heading h1{
        font-size: 1.2rem;
    }
    .about{
        grid-template-columns: repeat(auto-fit, minmax(20rem, auto));
    }
    .about img{
        order: 2;
    }
    .about-text{
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .btn{
        max-width: 164px;
    }
    .clients h2{
        font-size: 1.2rem;
    }
}
@media(max-width: 642px){
    .container img{
        right: 0;
        width: 370px;
    }
}
@media(max-width: 546px){
    .container img{
        right: 0;
        width: 370px;
        height: 820px;
        object-fit: contain;
    }
}
@media(max-width: 370px){
    .logo{
        font-size: 1rem;

    }
    .profile img{
        width: 30px;
        height: 30px;
    }
    .profile span{
        font-size: 10px;
    }
    .home-text{
        padding-bottom: 17rem;
    }
    .home-text span{
        font-size: 0.8rem;
    }
    .home-text h1{
        font-size: 1.4rem;
    }
    .heading{
        flex-direction: column;
        text-align: center;
    }
    .heading .btn{
        margin-top: 1rem;
    }
    .categories-container{
        gap: 1.5rem;
    }
}

}