/* partie general */
*{
    box-sizing: border-box;
    margin: 0;
}

body {
    font-family: monospace;
}
/* partie logo et conexion  */
.container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
} 

header .container{
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #d0e3ff;
    flex-wrap: wrap;
}

a{
    text-decoration: none;
    font-size: 17px;
    margin-left: 5px;
    color:rgb(43, 65, 143);
}

a:hover{
    color: red;
    transition: 0.4s;
}

h1 a{
    text-decoration: none;
    font-size: 30px;
    padding: 10px;
    color: rgb(0, 106, 254);
}
/* partie barre de recherche et des categories */
ul{
    padding-left: 0px;
}

header li{
    list-style-type: none;
    padding-left: 0px;
    display: inline;
}

header h2{
    color: rgb(0, 106, 254);
}

.searsh_bar input[type="text"] {
    width: 200px;
    height: 30px;
    font-size:15px;
    padding-left: 30px;
    color:rgb(43, 65, 143);
    border-radius: 10px;
    transition: 0.7s;
    margin-bottom: 5px;
    border: 0px;
}

.searsh_bar input[type="text"]:focus{
    width: 350px;
    padding-left: 5px;
    transition: 0.7s;
    border: none;
} 

.searsh_bar button {
    height: 30px;
    border-radius: 10px;
    border: 0px;
    color:rgb(43, 65, 143);
}

.searsh_bar button:hover{
    color: red;
    transition: 0.4s;
}

.searsh_bar .container{
    background-color: #d0e3ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 0px 0px 15px 15px;
}

.searsh_bar h3{
    padding-left: 15px;
    font-size: 20px;
    margin-bottom:5px;
    color:rgb(43, 65, 143);
}
.shopping_cart .cart{
    display: none;
}
.shopping_cart:hover .cart{
    display: inline;
}
/* les Rayons */
.category li{
    list-style-type: none;
    display: block;
    margin: 15px;
}

.menu {
    display: none;
    position: absolute;
    background-color: #eee;
    z-index: 1;
    width: 190px;
    border:1px solid #86a2c9 ;
    border-radius:5px ;
}

.category:hover .menu{
    display: block;
}

.header{
    margin-top: 50px;
}
/* les offers */
.container .slides{
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: scroll;
    overflow-x: hidden;
    height: 370px;
    border-radius: 15px;
}

.container .slides::-webkit-scrollbar{
    display: none;
}

.slides img{
    width: 100%;
}
/* partie les catégories populaires */
.popular_category .container{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin-top: 15px;
}

.popular_category h1{
    margin-left: 15%;
    margin-top: 50px;
    font-size: 30px;
    color:rgb(19, 30, 68);
}

.category_picture img{
    width: 150px;
    height: 150px;
}
/* carte du categorie  */
.category_cart{
    transition: transform .2s;
}

.category_cart:hover{
    transform: scale(1.2);
}

.category_picture{
    background-color: #eee;
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.popular_category p{
    justify-self: center;
    font-size: 20px;
    margin-top: 5px;
    font-weight: 600;
    color: rgb(43, 65, 143);
}
/* partie promos */
.promo .container{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 50px;
}

.promo h1 {
    margin-left: 15%;
    margin-top: 50px;
    font-size: 30px;
    color:rgb(19, 30, 68);
}
/* carte de promo */
.promo h2 {
    font-size: 20px;
    color: rgb(19, 30, 68);
}

.promo img{
    margin-top: 5px;
    width:100%;
}

.ads{
    overflow: hidden;
}

.promo img{
    transition: transform .3s;
}

.promo img:hover {
    transform: scale(1.05);
    opacity: 0.5;
}
/* partie des articles récemment consulté */
.recently_viewed .container{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 15px;
    margin-bottom: 50px;
}

.recently_viewed h1{
    margin-left: 15%;
    margin-top: 50px;
    font-size: 30px;
    color:rgb(19, 30, 68);
}
/*  carte de produit */
.product_cart img{
    width: 200px;
    height: 200px;
    margin-top: 10px;
}

.product_cart p{
    margin-bottom: 5px;
    color:rgb(19, 30, 68);
    font-weight: 600;
}

.product_cart{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
    border-radius: 15px;
    background-color: #eee;
}

.product_cart{
    transition: transform .2s;
}

.product_cart:hover {
    transform: scale(1.05);
    opacity: 0.8;
}
.product_cart button{
    margin-bottom: 5px;
    border-radius: 15px;
    background-color: #86a2c9;
    padding: 5px;
}
.product_cart p:last-of-type{
    color: #86a2c9;
}
/* partie contact */
footer .container{
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #d0e3ff;
    height: 90px;
    flex-wrap: wrap;
    margin-bottom: 0px;
    border-radius: 15px 15px 0 0;
}

footer span{
    align-self: flex-end;
    margin-bottom: 5px;
    font-size: 16px;
    color: rgb(43, 65, 143);
}

footer h1{
    font-size: 30px;
    padding: 10px;
    color: rgb(0, 106, 254);
}
/* Media Queries for Responsive Web Design 
Media query is a CSS technique introduced in CSS3
It uses the @media rule to include a block of CSS properties only if a certain condition is true.
*/

  /* Small screen */
@media (min-width: 768px) {
    .container {
    width: 750px;
}  
.popular_category .container{
    flex-wrap: wrap;
}
}

  /* Medium  screen */
@media (min-width: 992px) {
    .container {
    width: 970px;
}
.popular_category .container{
    flex-wrap: wrap;
}
}
  /* Large screen */
@media (min-width: 1200px) {
    .container {
    width: 1170px;
}
.popular_category .container{
    flex-wrap: wrap;
}
}
