* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding-top: 80px;
  font-family:Verdana, Geneva, Tahoma, sans-serif;
  
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
}
h3 {
  font-size: 1.5rem;
  font-weight: 800;
}
h4 {
  font-size: 1.2rem;
  font-weight: 600;
  }
.navbar a{
  text-decoration: none;
  color:black;
  transition: 0.3 ease;
   
}
  

h5 {
  font-size: 1rem;
  font-weight: 400;
}
h6 {
  color: #d8d8d8;
}

button {
  font-size: 0.6rem;
  font-weight: 900;
  outline: none;
  border: none;
  background-color: black;
  color: aliceblue;
  padding: 13px 30px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.5s ease;
}

button:hover {
  background-color: coral;
}

.navbar {
  font-size: 16px;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
  left: 0;
  top: 0;
  box-shadow: 0 5px 10px rgba(0,0,0,1);
}

/* Style des liens */
.nav-item .nav-link {
  padding: 0 20px;
  color: rgb(13, 13, 13);
  transition: 0.4s ease;
}
.nav-item .nav-link:hover {
  color: coral;
}

/* Icônes */
.navbar i {
  font-size: 1.2rem;
  padding: 0 0.7px;
  transition: 0.4s ease;
  margin-left: 5px;
  cursor: pointer;

}
.navbar i:hover {
  color: coral;
}


.nav-buttons {
  margin-left: 60%;
}

@media screen and (max-width: 900px) {
  .nav-buttons {
    width: 100%;
    height: 50vh; /* prend tout l'écran */
    display: flex;
    flex-direction: column;
    justify-content:center; /* centre verticalement */
    align-items: center;     /* centre horizontalement */
    text-align: center;
    background-color: white; /* optionnel : fond blanc pour voir le menu */
  }

  .nav-buttons ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    list-style: none;
  }

  .nav-buttons li {
    font-size: 1.2rem;

  }

  .nav-buttons i {
    margin-top: 5px;
    font-size: 1.5rem;
    padding: 15px;

  }
}


/* Section accueil */
#home {
  background-image: url(../imgs/back.jpg);
  color: black;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position-x: 300px;
  background-position-y: -20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
@media screen and (max-width:900px){
    #home {
  background-image: url(../imgs/back.jpg);
  color: black;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position-x: 100px;
  background-position-y: -20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
 
}

#home span {
  color: coral;
}

 #home .container{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
 } 
 #new .one img{
width: 100%;
height: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
 } 
 #new .one{
    position: relative;
 }
 #new .one .detail{
position: absolute;
top: 0;
left: 0;
color: aliceblue;
font-weight:bold ;
transition:0.4s ease ;
opacity: 0.7;
background-color: black;
width: 100%;
height: 100%;
}
 #new .one :hover{
background-color: rgb(244, 121, 20);
 }

 #new .one:nth-child(1) .detail{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: start;
 }
  #new .one:nth-child(2) .detail{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: start;
 }
 #new .one:nth-child(3) .detail{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: start;
 }
/* product */

 .product{
    cursor: pointer;
    margin-bottom: 2rem;
 }
 .product img{
 transition: 0.3s all;
 }
 .product img:hover{
    opacity: 0.8;
 }
 .product .buy-btn{
    background-color:coral;
    transform:translateY(50px) ;
    opacity: 0;
    transition: 0.3s all;
    color: #d8d8d8;
 }
 .shop-buy-btn{
  background-color:coral;
    text-decoration: none;
    opacity: 1;
    transition: 0.3s all;
    color: #d8d8d8;
    padding: 7px;
    border-radius: 5px;
 }


 .product:hover .buy-btn{
    transform: translateY(0px);
    opacity: 1;
 }
 .container
  hr{
    width:30px ;
    height: 3px !important;
    opacity: 1 !important;
    background-color:coral ;
 } 
 .star{
    padding: 10px 0;
 }
 .star i{
    font-size: 0.9rem;
    color: gold;
 }
#banner{
    background-image: url(../imgs/back1.jpg);
  color: black;
  width: 100%;
  height: 60vh;
  background-size: cover;
  background-position-x:center;
  background-position-y: -100px;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
#banner .container{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
 }
 #banner h1{
color: coral;
 }
 #banner button{
    background-color: coral;
 }
#banner button:hover{
    background-color: black;
}

footer{
    background-color: black;

}
footer h5{
    color: #d8d8d8;
    font-weight: 700;
    font-size: 1.2rem;
}
footer li{
    padding-bottom: 4px;
}
footer li a{
font-size: 0.8rem;
color: #d8d8d8;
text-decoration: none;
}
footer li a:hover{
    color: antiquewhite;
}
footer .copyright a{
color: black;
height: 40px;
width: 40px;
background-color: #d8d8d8;
display:inline-block;
text-align: center;
border-radius: 50%;
line-height: 38px;
transition: 0.3s ease;
margin: 0 5px;

}
footer .copyright a:hover{
    color: #d8d8d8;
    background-color: coral;
}
footer p{
    color: #d8d8d8;
}
footer .copyright img{
    width: 30%;
}
.logo{
    width: 40px;
    height: 40px;
}
.navbar .brand{
    margin: 3px 5px;
}
/* single product */

.small-img-group{
    display: flex;
    justify-content: space-between;
}
.small-img-col{
    flex-basis: 24%;
cursor:pointer ;
}
.single-product input{
    width: 50px;
    height: 40px;
    padding-left: 10px;
    font-size: 16px;
    margin-right: 10px;
    
}


.single-product input:focus{
    outline: none;
}

.container-single-product{
  width:50%;
}
.form-control{
  border-color: coral;
}
.single-product .buy-btn{
    background-color: coral;
    opacity: 1;
    transition: 0.4s;
    

}
.single-product .buy-btn:hover{
    background-color: black;
}



.form-check input{
  border-color: coral;
}
.form-check input:hover{
  background-color: blue;
}

.offset-products {
  margin-left: 120px; /* ou 150px ou + selon ton besoin */
}

@media screen and (max-width: 768px) {
  .products-row {
    /* la div parent avec class row */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .product {
    flex: 0 0 48%;
    /* 2 colonnes */
    max-width: 48%;
    margin: 1%;
    padding: 7%;
  }
    .offset-products {
      margin-left: 10px;
      
      
      /* ou 150px ou + selon ton besoin */
    }
       
}
/* @media screen and (max-width: 768px) {
  .offset-products {
    margin-left: 0 !important;
    justify-content: center !important;
  }

  .product {
    margin: 0 auto 2rem auto;
    /* centré + espacé */
    /* float: none;
    width: 90%;
    max-width: 300px;
  }
} */

/* cart */

.cart table{
  width: 100%;
  border-collapse: collapse;
}
.cart .product-info{
  display: flex;
  flex-wrap: wrap;
}
.cart th{
  text-align: left;
  padding: 5px 10px;
  color: 
  d8d8d8;
  background-color: coral;
}
.cart td{
  padding: 10px 20px;
}
.cart td img{
  width: 80px;
  height: 80px;
  margin-right: 10px;
}
.cart td input{
  width: 50px;
  height: 30px;
  padding: 5px;
}
.cart td a{
  color: coral;
}
.cart .remove-btn{
  color: coral;
  text-decoration: none;
   background-color: rgb(249, 241, 241);
  border: none;
  width: 100%;
}
.cart .edit-btn{
  color: coral;
  text-decoration: none;
  font-size: 15px;
  background-color:rgb(249, 241, 241); 
  border: none;

}

.cart .product-info p{
  margin: 3px;
}
.cart-total{
  display: flex;
  justify-content: flex-end;
}
.cart-total table{
  width: 100%;
  max-width: 500px;
  border-top: 3px solid coral ;
}
td:last-child{
  text-align: right;
}
th:last-child{
  text-align: right;
}
.checkout-container{
  display: flex;
  justify-content: flex-end;
}
.checkout-btn{
  display: flex;
  justify-content: flex-end;
  background-color: coral;
  color: #d8d8d8;
  border: none;
  width: 100%;
  height: 100%;
  
}
.checkout-btn:hover{
  background-color: black;
}

/*login*/

#login-form{
  width: 50%;
  margin: 5px auto;
  text-align: center;
  padding: 20px;
  border-top: 1px solid coral;
}


#login-form input {
  width: 50%;
  margin: 5px auto;
 
}

#login-form #login-btn{
width: 30%;
  color: #d8d8d8;
  
}
#login-form #register-url{
  color: coral;
}
@media  screen and (max-width:760px) {
  #login-form {
      width: 85%;
      margin: 5px auto;
      text-align: center;
      padding: 20px;
      border-top: 1px solid coral;
    }
  
  
    #login-form input {
      width: 85%;
      margin: 10px auto;
  
    }
  
    #login-form #login-btn {
      width: 70%;
      color: #d8d8d8;
  
    }
  
    #login-form #register-url {
      color: coral;
    }
}

/*Register*/

#register-form{
   width: 50%;
  margin: 5px auto;
  text-align: center;
  padding: 20px;
  border-top: 1px solid coral;
}
#register-form input{
  width: 50%;
  margin: 5px auto;
}

#register-form #register-btn{
  width: 25%;
  margin:5px auto ;
}



#register-form #register-url{
  color: coral;
}

@media screen and (max-width: 768px) {
  #register-form {
      width: 85%;
      margin:  auto;
      text-align: center;
      padding: 5px;
      border-top: 1px solid coral;
    }
  
    #register-form input {
      width: 85%;
      margin:  auto;
    }
  
    #register-form #register-btn {
      width: 70%;
      margin-top: 20px;
      
    
    }
  
  
  
    #register-form #register-url {
      color: coral;
    }
}

/*account*/
#account-form{
  width: 50%;
  margin: 35px auto;
  text-align: center;
  padding: 20px;
}
#account-form input{
  margin: 5px auto;
}
#account-form #change-pass-btn{
  color: #d8d8d8;
  background-color: coral;
}
.account-info #order-btn {
  color: coral;
  text-decoration: none;
}
/*ca ne marche pas*/
.account-info #logout-btn{
   color: coral;
  text-decoration: none;
}
/*Orders*/
.orders table{
  width: 100%;
  border-collapse: collapse;
}
.orders .product-info{
  display: flex;
  flex-wrap: wrap;
}
.orders th{
  /* text-align: left; */
  padding: 10px 10px;
  background-color: coral;
  color: #d8d8d8;
}
.orders th:nth-child(2){
  /* text-align: right; */
  padding-right: 20px; 
}
.orders td{
  padding: 10px 20px;
}
.orders td img{
  width: 80px;
  height: 80px;
  margin-right:10px ;
}

.orders .order-details-btn{
  color: #d8d8d8;
  background-color: coral;
}
/*checkout*/

#checkout-form .checkout-small-element{
  display: inline-block;
  width: 48.5%;
  margin: 10px auto;

   
}
#checkout-form .checkout-large-element{
  width: 97%;

  
}
#checkout-form .checkout-btn-element{
  margin: 10px;
  text-align: right;
  margin-right: 40px;
}
#checkout-form #checkout-btn{
  color: #d8d8d8;
  background-color: coral;
}
.form-group input {
  border: 1px solid coral;
}
/*contact*/

#contact span{
  color:coral ;
}

/* choisir par category dans shop*/

 .form-shop{
  position: fixed;
  left: 0;
  top: -50px;
  z-index: 10;
  margin: 0;
  padding: 0;
}

.cart_quantity{
  background-color: coral;
  color: #d8d8d8;
  padding:2px 5px ;
  border-radius: 50%;
  margin: -3px;
  font-size:0.7rem;
}
/* login_admin */

#form-admin{
   width: 50%;
  margin: 5px auto;
  text-align: center;
  padding: 20px;
  
}
#form-admin input{
  width: 50%;
  margin: 5px auto;
  border: 1px solid coral;
}

#form-admin #form-url{
  color: coral;
 width: 50%;
  margin: 5px auto;
  text-align: center;
  padding: 20px;
  border-top: 1px solid coral;
}
@media screen and (max-width: 768px) {
  #form-admin {
      width: 90%;
      margin: 5px auto;
      text-align: center;
      padding: 20px;
  
    }
  
    #form-admin input {
      width: 90%;
      margin: 5px auto;
      border: 1px solid coral;
    }
  
    #form-admin #form-url {
      color: coral;
      width: 70%;
      margin: 5px auto;
      text-align: center;
      padding: 20px;
      border-top: 1px solid coral;
    }
}
/* dashboard */

.sidebar {
  width: 200px; /* ou 250px selon la taille souhaitée */
  position: fixed;
  top: 150px;
  left: 0;
  height: 100vh;
  background-color: #f8f9fa;
  border-right: 1px solid #ddd;
  z-index: 100;
}
         .sidebar a {
            display: block;
            padding: 1px 5px;
            color: #333;
            text-decoration: none;
        }
        .sidebar a:hover {
            background-color: #e9ecef;
            color: #000;
        }

        
  
    .form-box p, .form-select {
        border: 1px solid coral; /* bleu Bootstrap */
        border-radius: 8px;
        padding: 20px;
        margin-top:px ;
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
        background-color: #f9f9f9;
    }
    #create-form label{
      padding:5px;
    }

  



 
