/* ===============================
   RESET / BASE
=============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333; 
  background: #f9f9f9;
}
a {
  text-decoration: none;
  color: inherit;
}

/*SCROOL BAR*/
html::-webkit-scrollbar{
  width: .6rem;

}

html::-webkit-scrollbar-thumb{
  background: rgb(255, 47, 0);
  border-radius: 20px;
}

html::-webkit-scrollbar-track{
  background: #ff561352;
  border-radius: 20px;
}


header.scrolled{
  box-shadow: 0 5px 7px 0 rgba(0,0,0,0.2);
}


/* ===============================
   HEADER / NAVIGATION
=============================== */
 
#site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 5px rgba(0,0,0,0.05);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  font-family: 'Poppins', sans-serif;
}

#site-header.scrolled {
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
}

.hr-nav{
  float: left;
}



.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.logo-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff7f50;
  text-decoration: none;
  transition: transform 0.3s;
}

.logo-link:hover {
  transform: scale(1.05);
}

.main-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: #ff7f50;
  left: 0;
  bottom: -4px;
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: #ff7f50;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s, transform 0.3s;
}

.cart-btn:hover {
  background: #ff3c00;
  transform: scale(1.1);
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fff;
  color: #ff4400;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}



.nav-link {
  text-decoration: none;
  color: #333;
}
.nav-link.active {
  color: #007bff;
  font-weight: bold;
}


/* Burger menu (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
}

.burger-line {
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
}

.burger.open .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger.open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-list.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100vh;
  left: 0;
  width: 200px;
  height: 100vh;
  background: #fff;
  gap: 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.8);
  transition: .5s;
  padding-top: 100px;
}



@media screen and (max-width: 768px){
  .main-nav {
    position: fixed;
    top: -100vh;
    left: 0;
    height: 100vh;
    width: 200px;
    background: #fff;
    flex-direction: column;
    padding-top: 5rem;
    transition: 5s;
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
  }

  .logo{
    z-index: 50000;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 2rem;
    display: block;
  }

  .cart-btn{
    display: flex;
    column-gap: 1rem;
  }
  

  .main-nav.open {
    right: 0;
  }
  .burger {
    display: flex;
  }
  .features-grid {
    flex-direction: column;
  }
}

/*========== Resonsive mobile ==========*/
@media screen and (max-width: 343px){
  .main-nav {
    position: fixed;
    top: -100vh;
    left: 0;
    background: #fff;
    flex-direction: column;
    padding-top: 5rem;
    transition: 5s ease-in;
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
  }
  #site-header{
    z-index: 99999;
  }

  .logo .logo-link{
    font-size: .7rem;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 1.5rem;
    display: block;
    height: 100vh;
    font-size: .6rem;
    z-index: 100;
  }
  .nav-list.open{
    width: 100px;
  }

  .cart-btn{
    display: flex;
    column-gap: 1rem;
  }
  

  .main-nav.open {
    right: 0;
    top: 100%;
  }
  .burger {
    display: flex;
  }
  .burger-line {
  width: 18px;
  height: 1.5px;
}
  .features-grid {
    flex-direction: column;
  }
}


/* =============================================================================================================== */
/* RECHERCHE RAPIDE */
/* =============================================================================================================== */
.reherche-rapide{
  margin-top: 4rem;
  margin-bottom: -2rem;
  height: 20rem;
  padding: 2rem;
  background: rgb(255, 255, 255);
}
.reherche-rapide h2{
  text-align: center;
  margin-bottom: 2rem;
  color: rgb(255, 55, 0);
}

.element{
  list-style: none;
  color: #025fc1;
  font-weight: 600;
  margin: 1rem;
}

.element span{
  border: 1px solid #000fb0;
  border-radius: 80px;
  padding: 2px;
  justify-content: space-between;
  display: flex;
  flex-direction: column;
  margin-top: .5rem;
  text-align: center;

}

.element span:hover{
  background: #ff4d00;
  color: white;
  border: none;
  padding-left: .4rem;
  padding-right: .4rem;
  transition: .3s ease-in-out;
}





















/* ===============================
   CARROUSEL PRODUITS POPULAIRES
=============================== */

/* bar sections */

.carousel-container {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}
.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease-in-out;
}

.bar-c1{
  position: absolute;
  left: 0;
  height: 1px;
  width: 450px;
  height: 3px;
  background: linear-gradient(90deg, red, rgb(255, 94, 0), rgb(255, 149, 0), rgb(255, 225, 0));
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}
.bar-c2{
  right: 0;
  position: absolute;
  height: 1px;
  width: 450px;
  height: 3px;
  background: linear-gradient(90deg, rgb(255, 255, 0), rgb(255, 149, 0), rgb(255, 94, 0), red);
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}


.carousel-item {
  min-width: 220px;
  max-width: 150px;
  max-height: 310px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
}
.carousel-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  max-width: 150px;
  max-height: 110px;
}
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 0.5rem;
  z-index: 10;
  transition: background 0.3s;
}
.item-actions{
  margin-top: 1rem;
}

.carousel-control:hover {
  background: linear-gradient(90deg, rgb(255, 115, 0), rgb(255, 42, 5));
  color: #fff;
}
.carousel-control.prev {
  left: 0.5rem;
}
.carousel-control.next {
  right: 0.5rem;
}
/*=====   RESPONSIVE  MOBILE =====*/
@media screen and (max-width: 768px){
  .populaires-section .section-title{
    font-size: 1.5rem;
  }
    .bar-c1{
  height: 2px;
  width: 100px;
  margin-top: 1rem;
}
.bar-c2{
  width: 100px;
  height: 2px;
  margin-top: 1rem;
}
}
@media screen and (max-width: 343px){
  #populaires{
    padding-top: 100px;
    height: 30rem;
  }
  .populaires-section .section-title {
    margin-top: 5px;
    margin-bottom: 1rem; 
    font-size: .8rem;
  }
  .bar-c1{
  height: 2px;
  width: 40px;
  margin-top: .5rem;
}
.bar-c2{
  width: 40px;
  height: 2px;
  margin-top: .5rem;
}
  .populaires-section .section-sub {
    font-size: .5rem;
  }

  .carousel-item {
    width: 5rem;
    height: 15rem;
    padding: 5px;
    border-radius: 15px;
  }

  .carousel-item img {
    width: 8rem;
    height: 8rem;
    margin: 0 auto;
  }

  .carousel-item h4 {
    margin: 0.5rem 0;
    font-size: .5rem;
  }

  .carousel-item .btn {
    width: 5rem;
    height: 1.5rem;
    padding-left: 4px;
    padding-right: 2px;
    font-size: 10px;
    border-radius: 5px;
  }
  .item-price {
    font-size: .8rem;
    color: #ff4400;
    font-weight: 600;
    margin-bottom: .5rem;
  }
  .item-actions{
    display: flex;

  }
  .btn.small {
    padding-top: 3.5px;
  }
  .carousel-control {
  font-size: 2rem;
  cursor: pointer;
  border-radius: 100%;
  width: 40px;
  height: 40px;
  z-index: 10;
}

.carousel-track {
  display: inline-flex;
  gap: 2rem;
  transition: transform 0.5s ease-in-out;
  width: 1000rem;
}
  
}








/* ===============================
   PRODUITS GRID
=============================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.product-card {
  background: #ffffff;
  max-width: 15rem;
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 8px 8px 15px #c5c9d1, -8px -8px 15px #ffffff;
  text-align: center;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;

}
.bar-c3{
  position: absolute;
  left: 0;
  height: 1px;
  width: 450px;
  height: 3px;
  background: linear-gradient(90deg, red, rgb(255, 94, 0), rgb(255, 149, 0), rgb(255, 225, 0));
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}
.bar-c4{
  right: 0;
  position: absolute;
  height: 1px;
  width: 450px;
  height: 3px;
  background: linear-gradient(90deg, rgb(255, 255, 0), rgb(255, 149, 0), rgb(255, 94, 0), red);
  transition: all 0.3s ease;
  margin-top: 1.5rem;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.product-card:hover img {
  transform: scale(1.08) rotate(-1deg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.product-card img {
  width: 100%;
  height: 8rem;
  border-radius: 10px;
  margin-bottom: 0.5rem; 
  max-height: 200px;
}
.product-card h3 {
  margin: 0.5rem 0;
  font-size: .8rem;
}
.product-card:hover h3 {
  color: #ff3700;
}

.product-card .price {
  font-weight: bold;
  color: #ff3300;
  margin-bottom: 0.6rem;
  transition: color 0.4s ease, transform 0.3s ease;
}
.product-card:hover .price {
  color: #ff3700;
  transform: scale(1.05);
}



#btn-add-to-cart img{
  height: 1.5rem
}




/* BOUTONS PREMIUM */
.card-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.btn.small {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.4s ease;
  font-weight: 600;
}

/* Ajouter au panier */
.btn.small.add-to-cart {
  background: linear-gradient(90deg, rgb(255, 115, 0), rgb(255, 42, 5));
  color: #fff;
  outline: none;
  border: #e0e5ec;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.2);

}

.btn.small.add-to-cart:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 15px rgba(255, 95, 3, 0.6);
}
.btn.small.add-to-cart:focus{
  animation: addToCart 1s ;
}

/* Bouton ghost */
.btn.small.ghost {
  background: #fff;
  border: 1px solid #ff7c09;
  color: #ff5100;
  box-shadow: inset 2px 2px 5px rgba(255, 149, 107, 0.2);
}

.btn.small.ghost:hover {
  background: linear-gradient(90deg, rgb(255, 115, 0), rgb(255, 42, 5));
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 12px rgba(255,107,107,0.5);
}

/* MICRO-ANIMATION AJOUT PANIER */
@keyframes addToCart {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1) rotate(360deg); opacity: 0.5; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Ajouter au bouton JS :  */
.animate-cart {
  animation: addToCart 0.6s ease forwards;
}
.product-card {
  animation: fadeInUp 1s ease forwards;
  will-change: transform, opacity;
}

/*  ANIMATIONS D’APPARITION */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(25px); }
  100% { opacity: 1; transform: translateY(0); }
}



/*    RESPONSIVE */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
  .section-title{
    font-size: 1.5rem;
  }
   .bar-c3{
  height: 2px;
  width: 100px;
}
.bar-c4{
  width: 100px;
  height: 2px;
}
  .product-card {
    padding: 0.8rem;
    border-radius: 15px;
  }

  .btn.small {
    padding: 0.35rem 0.7rem;
  }
}


/* ===============================
   BOUTONS
=============================== */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  font-size: 0.8rem;
  text-align: center;
  height: 2rem;

}
.btn.primary {
  background: linear-gradient(90deg, rgb(255, 115, 0), rgb(255, 42, 5));
  color: #fff;
  border: none;
  height: 2rem;
}
.btn.primary:hover {
  background: linear-gradient(90deg, rgb(255, 115, 0), rgb(255, 42, 5));

}
.btn.ghost {
  background: #fff;
  border: 2px solid #fe4000;
  color: #ffffff;
  height: 2rem;
}
.btn.ghost:hover {
  background: linear-gradient(90deg, rgb(255, 115, 0), rgb(255, 42, 5));
  color: #fff;
}
.btn.small {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

.btn-ghost2{
  border: 2px solid rgb(255, 89, 0);
  background: #fff;
  margin-top: 10px;
  color: #ff3700;
  font-weight: 700;
}



/* ==============================
   PANIER (CART MODAL)
============================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.3s ease; 
  z-index: 200000;
}


#cart-modal {
  width: 90%;
  max-width: 400px;
  padding: .5rem;
  animation: slideIn 0.5s forwards;
  position: fixed;
  border-radius: 20px;
  height: 20rem;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

.modal-panel {
  background: #ffffff;
  border-radius: 15px;
  width: 100%;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 2rem;
  position: relative;
  transform: translateY(-20px);
  animation: slideIn 0.4s forwards;
}

/* Visible */
#cart-modal[aria-hidden="false"] {
  display: block;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

#cart-modal h2 {
  margin-bottom: 1rem;
}

#cart-items {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  padding: .5rem;
  border-bottom: 1px solid #ddd;
}

.remove-item {
  background: red;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
}


.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  color: red;
  font-weight: 900;
  border: none;
  cursor: pointer;
}



.cart-items li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}


.cart-actions button {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-actions button:hover {
  background: linear-gradient(90deg, rgb(255, 115, 0), rgb(255, 42, 5));
  color: #fff;
}


@keyframes slideIn {
  to { transform: translateY(0); }
}



/* ============================================
   SECTION
   ============================================ */
.section {
  padding: 6rem 1rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #111;
}

.section-sub {
  text-align: center;
  margin-bottom: 3rem;
  color: #666;
}



/* ============================================
   ANIMATIONS BOUTONS & IMAGES
   ============================================ */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

img:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

/* ============================================
   RESPONSIVE CARROUSEL & MODAL
   ============================================ */
@media (max-width: 768px) {
  .carousel-track {
    gap: 1rem;
  }

  .carousel-item {
    min-width: 200px;
  }

  .modal-panel {
    width: 95%;
  }
}


/* ============================================
   FOOTER STYLES
============================================ */
.site-footer {
  background-color: #111;
  color: #eee;
  font-family: 'Poppins', sans-serif;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid #333;
  padding-bottom: 2rem;
}

.footer-brand {
  flex: 1 1 200px;
}

.footer-brand strong {
  font-size: 1.8rem;
  color: #ff9800;
}

.footer-brand p {
  margin-top: 0.5rem;
  color: #aaa;
}

.footer-partners, .footer-newsletter {
  flex: 1 1 250px;
}

.footer-partners h4,
.footer-newsletter h4 {
  font-size: 1.2rem;
  color: #ff9800;
  margin-bottom: 1rem;
}

.partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.partner {
  background-color: #222;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.partner:hover {
  background-color: #ff9800;
  color: #111;
  transform: translateY(-3px);
}

.footer-newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-newsletter input[type="email"] {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  outline: none;
}

.footer-newsletter button {
  padding: 0.5rem 1rem;
  background-color: #ff9800;
  color: #111;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-newsletter button:hover {
  background-color: #e68a00;
}

/* FOOTER BOTTOM */
.footer-bottom {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials a {
  color: #eee;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.socials a:hover {
  color: #ff9800;
  transform: translateY(-2px);
}

.site-footer .copyright {
  font-size: 0.9rem;
  color: #aaa;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-newsletter form {
    flex-direction: column;
  }

  .footer-newsletter input[type="email"],
  .footer-newsletter button {
    width: 100%;
  }

  .footer-bottom {
    gap: 0.5rem;
  }
}

/*========== Responsive Mobile ==========*/
@media screen and (max-width: 343px){
  .site-footer {

  padding:  1.5rem 1.5rem;
  margin-top: 100px;
  display: grid;
}
  .footer-brand strong {
  font-size: 1.2rem;
  color: #ff9800;
  margin-top: 500px;
}

.footer-brand p {
  color: #aaa;
  font-size: 12px;
}
.footer-partners, .footer-newsletter {
  flex: 1 1 250px;
}
.partners-list span{
  font-size: .6rem;
  padding-left: 8px;
  padding-top: 5px;
  padding-right: 8px;
  max-width:45px;
  max-height: 25px;
}
.partners-list {
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-partners h4{
  margin-top: 100px;
}
.footer-newsletter h4{
  margin-top: 1px;
}
.footer-bottom {
  margin-bottom: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.socials {
  display: flex;
  gap: .1rem;
}

.socials a {
  color: #eee;
  font-size: .6rem;
  transition: all 0.3s ease;
}

.site-footer .copyright {
  font-size: 0.5rem;
  color: #aaa;
}


}

