@import url('https://fonts.googleapis.com/css2?family=cursive&display=swap');
:root{
    --bg-color:#FFFFFF;
    --rgba-img:rgba(0, 0, 0, 0.60);
    --primary-text:#FFFFFF;
    --primary-description:#FFFFFFCC;
    --catg-color:#555555;
    --text-color:#1A1A1A;
    --bg-box:#F7F7F7;
    --btn-color:#E5C07B;
    --skeleton-base: #e0e0e0;
    --skeleton-highlight: #f5f5f5;
     --count-content: "0";
}
.darkmode {
    --bg-color:#0F0F0F; /* Fond principal très sombre mais pas noir */
    --rgba-img:rgba(255, 255, 255, 0.50); /* Opposé du thème clair */

    --primary-text:#F5F5F5; /* Texte principal blanc doux */
    --primary-description:#D1D1D1; /* Texte secondaire gris clair */
    --catg-color:#AAAAAA; /* Catégorie en gris moyen */
    --text-color:#E6E6E6; /* Noir → blanc cassé */

    --bg-box:#1A1A1A; /* Fond des cartes/box */
    --btn-color:#D4B46E; /* Version légèrement assombrie du jaune */

    --skeleton-base:#2A2A2A;
    --skeleton-highlight:#3A3A3A;
}

*{
    padding: 0;
    margin: 0;
    outline: none;
    scroll-behavior: smooth;
    list-style-type: none;
    text-decoration: none;
    font-family: cursive;
    color: var(--primary-text);
}
body{
    background: var(--bg-color);
    width: 100%;
    overflow-x: hidden;
    position: relative;
}
.skeleton{
    position: relative;
    opacity: 1;
}
.skeleton::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
    90deg,
    var(--skeleton-base, #e0e0e0) 25%,
    var(--skeleton-highlight, #f5f5f5) 50%,
    var(--skeleton-base, #e0e0e0) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index: 1100;
}
.skeleton.endskeleton::before{
    opacity: 0;
    transition: .4s;
    pointer-events: none;
    -webkit-transition: .4s;
    -moz-transition: .4s;
    -ms-transition: .4s;
    -o-transition: .4s;
}
@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}
.noview{
    opacity: 0;
    transition: 1s ease-in;
    transform: translateX(10px);
    -webkit-transform: translateX(10px);
    -moz-transform: translateX(10px);
    -ms-transform: translateX(10px);
    -o-transform: translateX(10px);
}
.view{
    opacity: 1;
    transition: 1s ease-in;
    transform: translateX(0);
    -webkit-transition: 1s ease-in;
    -moz-transition: 1s ease-in;
    -ms-transition: 1s ease-in;
    -o-transition: 1s ease-in;
    -webkit-transform: translateX(0px);
    -moz-transform: translateX(0px);
    -ms-transform: translateX(0px);
    -o-transform: translateX(0px);
}
main{
    display: flex;
    flex-direction: column;
    position: relative;
}
header{
    background:var(--btn-color);
}
.navigation{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
    background: var(--rgba-img);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
}
.logo img{
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
}
nav{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
nav ul{
    display: flex;
    gap: 1rem;
}
nav ul li a{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
}
.active{
    position: relative;
}
.active::before{
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    width: 100%;
    height: 3px;
}
nav ul li a::before{
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-text);
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
    transition: .8s ease;
    -webkit-transition: .8s ease;
    -moz-transition: .8s ease;
    -ms-transition: .8s ease;
    -o-transition: .8s ease;
    overflow: hidden;
}
nav  ul li a:hover::before{
    width: 100%;
}
#basket{
    position: relative;
}
#basket::before{
    content: var(--count-content);
    position: absolute;
    top: -.9rem;
    right: 1rem;
    background: red;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: circle(50% at center);
}
#sun{
    display: none;
}
i{
    cursor: pointer;
}
.Addproducts{
    text-align:center;
    width:100%;
    background:var(--bg-box);
    height:100vh;
    display:flex;
    flex-direction:column;
    gap:1rem;
    padding:1rem 0;
}
.Addproducts h2{
    text-align:center;
    margin:0 auto;
    color:var(--text-color);
}
.boxs{
    width:100%;
}

.box{
    display:flex;
    justify-content:center;
    align-items:center;
    gap: 1rem;
    background:var(--catg-color);
    margin-bottom: 5px;
}
.box .details{
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 45%;
}
.box .btns{
    color: var(--text-color);
    border-radius:.5rem ;
    width: 15%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition:  background .6s ease;
    -webkit-transition:  background .6s ease;
    -moz-transition:  background .6s ease;
    -ms-transition:  background .6s ease;
    -o-transition:  background .6s ease;
}
.box img{
    width: 25%;
    margin: 2% 0 2% 2%;
    object-fit: cover;
    border-radius: .5rem;
    -webkit-border-radius: .5rem;
    -moz-border-radius: .5rem;
    -ms-border-radius: .5rem;
    -o-border-radius: .5rem;
    box-shadow: 0 0 10px rgba(0,0,0,.1);
    background: transparent;
}
.box .quantity{
    display: flex;
    width: 20%;
    text-align: center;
}
.box .quantity span{
    font-weight: 800;
    font-family: cursive;
}

.btn_commander{
    background: var(--btn-color);
    color: var(--primary-text);
    font-size: 25px;
    padding: .7rem 2rem;
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


footer{
    background: var(--btn-color);
    width: 100%;
    height: 100%;
    padding: 1rem 0;
}


.footer__bar{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
    color: var(--bg-box);
}
.footer__links{
    padding-top: 1rem;
}
.footer__links i{
    color: var(--bg-box);
    font-weight: 600;
    background: var(--catg-color);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    width: fit-content;
    padding: .4rem;
}
.footer__socials{
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.footer__socials i{
    background: var(--catg-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition:  background .6s ease;
    -webkit-transition:  background .6s ease;
    -moz-transition:  background .6s ease;
    -ms-transition:  background .6s ease;
    -o-transition:  background .6s ease;
}
.footer__socials i:hover{
    background: var(--bg-color);
    color: var(--btn-color);
}
.footer__content p, li, a{
    color: var(--bg-color);
}
.footer__content{
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
}
.footer__logo{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .2rem;

}
.footer__bar{
    width: 100%;
    text-align: center;
}