@import url('https://fonts.googleapis.com/css2?family=Mozilla+Headline:wght@200..700&family=Playpen+Sans+Arabic:wght@100..800&display=swap');


*{
    padding: 0;
    margin: 0;
    font-family: "Mozilla Headline", 'Cairo', 'Tajawal', 'Amiri', Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
}


:root{
    --violet: #e99ee3;
    --main : #943f8d;
}


nav{
    display: flex;
    position: absolute;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    z-index: 99999999;
}
nav ul{
    display: flex;
    gap: 1.25rem;
}
nav .logo {
    width: 100px;
    cursor: pointer;
}
nav div img{
    width: 100%;
}
nav ul li{
    list-style-type: none;
    position: relative;
}
nav ul li a{
    color: white;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    transition: color ease-in-out 0.3s;
}
nav ul li a::before{
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--violet);
    bottom: 0;
    border-radius: 10%;
    transition: width ease-in-out 0.3s;
}
nav ul li a:hover::before{
    width: 100%;
}
nav ul li a:hover{
    color: var(--violet);
}
.right{
    display: flex;
    gap: 4rem;
    margin-right: 2rem;
}

.add-to-cart, .CART{
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    transition: color ease-in-out 0.3s;
    position: relative;
}
.add-to-cart:hover{
    color: var(--violet);
}

.add-to-cart .CART::before{
  display: none;
}

.number-of-items{
    position: absolute;
    top: -11.25px;
    z-index: 22;
    color: white;
    background: #b44cac;
    border-radius: 50%;
    padding: 2px;
    left: 22.5px;
    font-size: 1rem;
    padding: 0.125rem 0.25rem;
}


#Accueil{
    background-image: url(Main-bg.jpg);
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: #0000004f;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
#Accueil::after{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #0000004f;
}


.hero-content {
  position: relative;
  z-index: 2; 
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: wheat;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: whitesmoke;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--violet); /* Bright CTA color */
  color: whitesmoke;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
}

.cta-button:hover {
  background-color: #b44cac;
  color: white;
}


.about {
  padding: 80px 20px;
  background-color: #fff7f0;
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  text-align: center;
}

.about-text h2 {
  font-size: 2.5rem;
  position: relative;
  margin-bottom: 30px;
  color: var(--violet);
  display: inline-block;
}

.about-text h2::after {
  content: "";
  width: 100%;
  height: 5px;
  position: absolute;
  left: 0;
  bottom: -10px;
  background: #d486ce;
  border-radius: 1000px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #222;
  margin-bottom: 15px;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  object-fit: cover;
  border: 5px solid #74126b;
  cursor: pointer;
}


.products {
  padding: 50px 20px;
  background-color: #6a0dad; /* Purple background */
  color: #fff;
}

.section-header {
  display: flex;
  flex-direction: column; 
  margin-bottom: 20px;
  align-items: center;
  width: 100%;
}

.section-header h2 {
  margin-bottom: 10px;
  font-size: 2.5rem;
}

.section-header p {
  margin-bottom: 3rem;
  font-size: 1.1rem;
  text-align: center;
}

.product-filters {
  display: flex;
  flex-direction: column; 
  gap: 10px;
  width: 200px;
}

.product-filters .filter {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  background-color: #9b30ff; /* purple button */
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1.1rem;
  font-weight: 400;
  outline: none;
}



.product-filters .filter:hover{
    background: #e09cff;
}

.product-filters .filter.active,
.filter .active:hover {
  background-color: #d16aff;
}

.product-card {
  display: flex;
  width: 100%;
  max-width: 400px;
  height: 100%;
  justify-content: space-between;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 10px;
  background-color: #7b3fd3; 
  align-items: center;
}
.product-card img {
  width: 100%;
  height: 250px;
  border-radius: 10px;
  margin-bottom: 2.5rem;
  object-fit: cover;
}

.product-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.product-card p {
  margin-bottom: 18px;
  font-weight: 300;
  font-size: 0.9rem;
  text-align: center;
}

.price {
    font-weight: bold;
    color: #ffea00;
    font-size: 1.65rem; 
}

.per-kilo {
    font-size: 0.95rem;  
    font-weight: 400;
    color: #fffccc;
    vertical-align: baseline; 
    margin-left: 4px; 
}



.grid-wrapper {
  display: block;
  width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, max-content));
  gap: 20px;
  width: 100%;
  justify-content: center;
}


.product-add-to-cart {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  margin-top: 2rem; 
  border: none;
  border-radius: 25px;
  background-color: var(--violet);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.product-add-to-cart:hover {
  background-color: #b44cac;
}

.product-add-to-cart .cart-icon {
  fill: white; 
}

.testimonials {
  padding: 80px 20px;
  background-color: #fff7f0;
  color: #222;
}

.testimonials .section-header {
  text-align: center;
}

.testimonials .section-header h2 {
  font-size: 2.5rem;
  color: var(--violet);
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.testimonials .section-header h2::after {
  content: "";
  width: 50%;
  height: 4px;
  background-color: #d486ce;
  display: block;
  margin: 5px auto 0;
  border-radius: 1000px;
}

.testimonials .section-header p {
  font-size: 1.1rem;
  margin: 0;
}

.testimonial-grid {
  display: flex;
  gap: 30px;
  width: 90%;
  overflow-x: auto;
  margin: 0 1.5rem;
  anchor-name: --carousel;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0;
}

.testimonial-card::scroll-marker:target-current{
    background-color: var(--main);
}

.testimonial-grid::-webkit-scrollbar{
    display: none;
}

.testimonial-grid::scroll-button(right),
.testimonial-grid::scroll-button(left){
    content: ">";
    background-color: var(--violet);
    color: white;
    border: none;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 15px 20px;
    border-radius: 50%;
    cursor: pointer;
    position: fixed;
    position-anchor: --carousel;
    position-area: right center;
    translate: -50%;
    transition: 0.2s ease-in-out;
}

.testimonial-grid::scroll-button(right):hover, .testimonial-grid::scroll-button(left):hover{
    background-color: var(--main);
}

.testimonial-grid::scroll-button(right):disabled,
.testimonial-grid::scroll-button(left):disabled{
    opacity: 0.25;
    pointer-events: none;
}

.testimonial-grid::scroll-button(left){
    content: "<";
    position-area: left center;
    translate: 50%;
}
.testimonial-card {
  background-color: #f9eaea;
  flex: 0 0 30rem;
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  scroll-snap-align: start ;
}

.testimonial-pdp {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--violet);
}

.testimonial-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

.stars {
  color: #ffcc00;
  margin-bottom: 15px;
}

.stars i {
  margin: 0 2px;
  font-size: 1rem;
}

.testimonial-comment {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}



/* RESPONSIVE */
@media (max-width : 1024px) {
    .testimonial-card{
        flex: 0 0 100%;
    }
}


.gallery {
  padding: 80px 20px;
  background-color: var(--violet);
  color: #222;
  height: fit-content;
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-header h2 {
  font-size: 2.5rem;
  color: #fff7f0;
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.gallery-header h2::after {
  content: "";
  width: 50%;
  height: 4px;
  background-color: wheat;
  display: block;
  margin: 5px auto 0;
  border-radius: 1000px;
}

.gallery-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}


.slider{
    width: 100%;
    height: var(--height);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
}
.slider{
    margin-bottom: 2rem;
}
.slider .list{
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    gap: 0.35rem;
    position: relative;
}
.slider .list .item{
    width: var(--width);
    height: var(--height);
    position: absolute;
    animation: autoRun 90s linear infinite;
    animation-delay: calc( (90s / var(--quantity)) * (var(--position) - 1) - 90s) !important;
    right: 100%;
}

.slider .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}



@keyframes autoRun {
    from{
        left: calc(var(--width) * -1);
    }
    to{
        left: 100%;
    }
}

.slider[reverse="true"] .item {
    animation: reversePlay 90s linear infinite;
}


@keyframes reversePlay {
    from{
        left: 100%;
    }
    to{
        left: calc(var(--width) * -1);
    }
}

.slider:hover .item{
    animation-play-state: paused !important;
}


#contact {
    background-color: #fff;
    color: #222;
    text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-container {
    gap: 50px;
    display: flex;
    padding: 5rem 20px; 
    width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
    justify-items: center;
    align-content: center;
    flex-direction: column;
}

.contact-form, .contact-info {
    max-width: 800px;
    width: 100%;
}

.contact-form h2, .contact-info h2 {
  font-size: 2rem;
  color: var(--violet);
  margin-bottom: 25px;
}

.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form button {
  padding: 15px 30px;
  background-color: var(--violet);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.contact-form button:hover {
  background-color: #b44cac;
}

.social-links {
  display: flex;
  
  gap: 20px;
  justify-content: center; 
}

.social-links a i {
  font-size: 1.5rem;
  color: var(--violet);
  transition: 0.3s;
}

.social-links a:hover i {
  color: #b44cac;
}


.username-container, .email-container, .message-container {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}

.username-container input, .email-container input, .message-container textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.username-container label, .email-container label, .message-container label {
  position: absolute;
  left: 18px;
  top: 15px;
  color: gray;
  background: white;
  padding: 0 5px;
  font-size: 1rem;
  pointer-events: none; /* click passes to input */
  transition: all 0.2s ease-in-out;
}


.username-container input:focus + label,
.username-container input:not(:placeholder-shown) + label,
.email-container input:focus + label,
.email-container input:not(:placeholder-shown) + label,
.message-container textarea:focus + label,
.message-container textarea:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 0.8rem;
    color: gray;
}



#footer {
  background-color: var(--main);
  color: #fff;
  padding: 50px 20px 20px;
  text-align: center;
  font-family: "Mozilla Headline", sans-serif;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  width: 9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #fff;
  font-size: 1rem;
  transition: 0.3s;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--violet);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: #fff;
  font-size: 1.25rem;
  transition: 0.3s;
}

.footer-social a:hover {
  color: var(--violet);
}

.footer-bottom {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #f0e6f5;
}



.creator-section {
  background-color: #4a0158;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #fff;
}

.creator-social {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.creator-social a {
  color: white;
  font-size: 1.2rem;
  transition: 0.3s;
}

.creator-social a:hover {
  color: #b44cac;
}


.sideBar{
    width: 275px;
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    z-index: 999;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(10px);
    background: rgba(234, 127, 255, 0.267);
    position: fixed;
    top: 0;
    right: 0;
    padding-top: 1.25rem;
    transform: translateX(100%);
}

.close, .hamburger{
    color: white;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: 0.25s;
}
.hamburger i{
    font-size: 1.75rem;
    display: none;
}
.close:hover, .hamburger:hover{
    color: #580134;
}

.sideBar li button{
    margin-top: 3rem;
}

.appearSideBar{
    transform: translateX(0);
    transition: 0.3s ease-in-out all;
}
.hideSideBar{
    transition: 0.3s ease-in-out all;
    transform: translateX(100%);
}

@media (max-width : 1000px) {
    .HiddenButtons{
        display: none;
    }
    .hamburger i{
        display: block;
    }
}
@media (max-width : 375px) {
    .sideBar{
        width: 100%;
    }
}


#scrollToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #6a0dad, #9b4dff); /* Violet gradient */
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.35s ease-in-out;
}

#scrollToTop.show {
  opacity: 1;
  visibility: visible;
}

#scrollToTop:hover {
  background: linear-gradient(135deg, #9b4dff, #6a0dad);
}




@media (max-width : 1000px) {
    .container{
        flex-direction: column;
        text-align: center;
    }
    .about-text{
      order: -1;
    }
    .about-image{
        min-width: 300px;
        width: 50%;
    }
    .hero-content{
        padding-top: 2rem;
    }
    nav .logo{
        width: 75px;
    }
}

@media (max-width : 768px) {
    .hero-content h1{
        font-size: 2.5rem;
    }
    .hero-content p{
        font-size: 1.1rem;
    }
    .cta-button{
        font-size: 1rem;
    }
    .about-text h2{
        font-size: 2.25rem;
    }
    .about-text p{
        font-size: 1rem;
    }
}
@media (max-width : 650px) {
    .section-header h2{
        font-size: 2.25rem;
    }
    .section-header p{
        font-size: 1rem;
    }
    .product-filters .filter{
        padding: 7.5px 15px;
        font-size: 1.05rem;
    }
}
@media (max-width : 600px) {
    .footer-logo img{
        width: 6rem;
    }
    .footer-links{
        flex-direction: column;
        margin-bottom: 1rem;
    }
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 99; /* juste en dessous du sidebar */
}

.sideBar.appearSideBar ~ #overlay {
  opacity: 1;
  visibility: visible;
}

@media (max-width : 320px) {
    .about-text h2{
        font-size: 2.1rem;
    }
    .about-text p{
        font-size: 0.9rem;
    }
    .about-text{
        width: 80%;
      text-align: center;
    }
    .container{
        justify-content: center;
    }
    .about-image img{
        width: 80%;
    }
    nav .logo{
      width: 50px;
    }
}



@media (max-width : 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  }
}
@media (max-width : 425px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}


.language-switcher-container {
    margin-top: 15px;
    display: flex; /* smaller than full flex */
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-family: "Mozilla Headline", sans-serif;
    flex-wrap: wrap; /* wraps on small screens */
}

.language-switcher-container label {
    font-weight: 500;
    color: #fff;
    font-size: 0.9rem;
}

#language-select {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--violet);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    background-color: white;
    color: var(--main);
    transition: 0.2s;
    min-width: 100px;
}

#language-select:hover,
#language-select:focus {
    border-color: #b44cac;
    box-shadow: 0 0 3px #b44cac44;
}

/* Mobile */
@media (max-width: 500px) {
    .language-switcher-container {
        gap: 5px;
    }
    #language-select {
        font-size: 0.8rem;
        min-width: 80px;
        padding: 4px 8px;
    }
}


/* Loading Screen Styles */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6a0dad, #9b30ff); /* Purple theme */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999999999999;
  overflow: hidden;
  text-align: center;
  transition: transform 0.8s ease; 
}

#loading-screen.hide {
  transform: translateY(100%); 
}

.loader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.loader .spinner {
  width: 50px;
  height: 50px;
  border: 5px solid white;
  border-top: 5px solid #e0c3ff; 
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader p {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
}


.contact-phone a {
  display: flex;
  align-items: center;
  gap: 15px;             /* more space between icon and number */
  color: var(--violet);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;  
  transition: 0.2s ease-in-out all;
}

.contact-phone a i {
  font-size: 1.75rem;        /* bigger icon */
}

.contact-phone a:hover {
  color: #b44cac;         /* hover effect */
}


/* Popup styles */
.popup {
    position: fixed;
    left: 0;
    bottom: 50px;
    z-index: 9999999999;
    transform: translateX(-100%);
    justify-content: center;
    transition: 0.3s;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 25px 30px;
    border-radius:0 12px 12px 0;
    max-width: 400px;
    text-align: center;
    color: purple;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
}

.show-popup{
  transform: translateX(0);
}

.error-message {
  color: rgb(255, 0, 0);
  font-size: 14px;
  margin-top: 5px;
  display: block;
  min-height: 18px; 
  text-align: left;
  margin-left: 1rem;
}

input.error, textarea.error {
    border-color: red;
}


.cart-popup {
    position: fixed;
    bottom: 20px;
    background: linear-gradient(135deg, #8a2be2, #6a0dad);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translate(-50%, 20px);
    z-index: 9999;
    left: 50%;
    font-weight: bold;
}

.cart-popup.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

input:focus, textarea:focus{
    border-color: #ce06d4;
    outline: none;
}