.produits .carte img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}
.gif-section1 {
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: auto;
  text-align: center;
}
/* Conteneur des GIFs */
.gif-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
/* Carte contenant chaque GIF */
.gif-card {
  width: 220px;
  height: 250px;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center; /* Centrer le texte */
  cursor: pointer;
  transition: all 0.2s ease;
}
.gif-card:hover {
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
  padding-bottom: 20px;
}
.gif-item {
  width: 100%;
  height: auto; /* Laisser l'image s'ajuster sans déformer */
  object-fit: cover;
  margin: 0;
  border-radius: 20px; /* Arrondir seulement le haut de l'image */
}
@media (max-width: 770px) {
  #indis {
    display: none;
  }
  .gif-section1 {
    margin-top: -10px;
  }
  .gif-container {
    display: flex;
    overflow-x: scroll; /* Permet le défilement horizontal */
    flex-wrap: wrap;
    padding: 0;
  }
  .gif-card {
    flex: 0 0 auto; /* Evite que les cartes se rétrécissent */
    background: none;
    width: 100px;
    height: auto;
    border-radius: 0;
  }
  .gif-card p {
    font-size: 13px;
  }
  .gif-card:hover {
    box-shadow: none;
    padding-bottom: 0;
  }
  .gif-item {
    width: 100px; /* Largeur des images */
    height: 100px; /* Hauteur des images */
    object-fit: cover; /* Assure que l'image remplit l'espace sans déformer */
  }
  .gif-section1 {
    padding: 0;
    width: 100%;
    margin: 0;
    background: white;
  }
  .left-panel {
    display: none;
  }
  .right-panel {
    display: none;
  }
}

.category-name {
  margin-top: 10px; /* Ajouter de l'espace entre l'image et le texte */
  font-size: 16px;
  color: #333; /* Choisir une couleur qui s'harmonise bien avec les GIFs */
  font-weight: bold;
  text-transform: uppercase; /* Optionnel, pour un effet de texte plus stylisé */
  width: 100%; /* Assurer que le texte prend toute la largeur de la carte */
}

/* Conteneur principal */
.container_marche {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  overflow: hidden;
  max-width: 1200px;
  margin: auto;
}

/* Panneau des catégories */
.left-panel {
  width: 20%;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
}

.left-panel h2 {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.left-panel ul {
  list-style-type: none;
}

.left-panel ul li {
  cursor: pointer;
  margin-bottom: 5px;
  margin-left: 20px;
  font-size: 1.2em;
  justify-content: center; /* Centre le texte et l'icône ensemble */
}

.left-panel ul li a {
  text-decoration: none;
  margin-right: 10px; /* Espacement entre l'icône et le texte */
  line-height: 30px;
  font-weight: normal;
  font-size: 20px;
  /* Taille de l'icône */
  color: #000;
}

.left-panel ul li a:hover {
  color: #007bff;
}

/* Panneau du carousel */
.carousel-container_marche {
  width: 58%;
  position: relative;
}
@media screen and (max-width: 750px) {
  .container_marche {
    flex-direction: column;
    width: 100%;
  }
  .carousel-container_marche {
    width: 100%;
  }
}

.carousel_marche {
  cursor: pointer;
  display: flex;
  overflow-x: auto; /* Permet le défilement horizontal */
  scroll-snap-type: x mandatory; /* Améliore l'expérience de défilement */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling sur iOS */
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-item {
  flex: 0 0 100%; /* Chaque item prend 100% de la largeur */
  scroll-snap-align: start; /* Alignement pour le scroll */
  display: none;
}
.carousel-item.active {
  display: block; /* Afficher l'image active */
}
.carousel-item img {
  margin-top: 10px;
  width: 100%; /* Prendre toute la largeur disponible */
  max-height: 399px; /* Définir une hauteur maximale pour éviter que les images ne soient trop grandes */
  object-fit: cover; /* S'assurer que l'image couvre la zone sans déformation */
  border-radius: 8px;
}

@media screen and (max-width: 770px) {
  .carousel_marche {
    margin-left: -18px;
    background: white;
    padding: 5px;
    width: 100vw;
    flex-wrap: nowrap; /* Empêche le retour à la ligne */
  }
  .carousel-item {
    margin-right: 15px;
    display: block; /* Affiche tous les éléments côte à côte */
    flex: 0 0 100%; /* Permet aux éléments de conserver leur taille naturelle */
    width: auto; /* Annule le 100% pour permettre plusieurs éléments visibles */
  }
  .carousel-item img {
    width: 100%;
    height: 180px;
    margin-left: 5px;
  }
  .prev,
  .next {
    display: none;
  }
}
.buton_marche button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 15px;
  font-size: 24px;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}
.right-panel {
  width: 20%;
  background-color: #fff;
  border-radius: 8px;
  height: auto;
  position: relative; /* ✅ nécessaire */
  top: -96px;
}

.right-panel figure {
  margin-bottom: 5px;
  margin-left: 5px;
  color: #333;
  font-weight: bold;
  cursor: pointer;
}
.right-panel figcaption {
  text-align: center;
  margin-left: 15px;
  margin-top: -15px;
  font-weight: normal;
}

.right-panel i {
  background-color: orangered;
  padding: 18px;
  border-radius: 50%;
  color: white;
  margin-right: 10px;
}
.section_baiere {
  position: absolute;
  left: 50%; /* centrer */
  bottom: -240px; /* fait sortir en bas du panneau */
  transform: translateX(-50%); /* corrige le centrage */
}
.section_baiere img {
  border-radius: 5px;
  width: 230px;
  height: 100%;
  display: block;
}
.baniere1 {
  width: 100%;
  height: 56px;
  overflow: hidden;
}
.gift {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.stock-text {
  font-size: 14px;
  font-weight: normal;
  color: #333;
  margin-bottom: 5px;
}

.barre-stock {
  width: 100%;
  background-color: #ccc;
  height: 10px;
  border-radius: 5px;
  margin-top: 5px;
  position: relative;
}

.stock-restant {
  height: 100%;
  background-color: orangered;
  text-align: center;
  line-height: 8px;
  color: white;
  border-radius: 5px;
  margin-bottom: 5px;
}
.produits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
@media screen and (max-width: 750px) {
  .produits {
    display: flex;
    justify-content: space-around;
  }
}
/* Styles généraux */
.carte {
  position: relative;
  width: 200px;
  background: white;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  text-align: center;
  margin-bottom: 5px;
  margin-right: 5px;
}

/* Effet au survol */
.carte:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
@media screen and (max-width: 750px) {
  .carte {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }
  .carte:hover {
    box-shadow: none;
  }
}
/* Étiquette de réduction */
.rouge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 5px;
}

/* Informations du produit */
.product-info {
  padding: 10px;
}

.titre {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-top: 10px;
}

/* Prix */
.prix {
  font-size: 22px;
  font-weight: normal;
  color: black;
}

.reduit {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-left: 5px;
}
.box {
  display: grid;
}
/* Bouton Ajouter au panier */
.carte button {
  width: 100%;
  background: orangered;
  color: white;
  font-size: 14px;
  padding: 10px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 5px;
}

.carte button:hover {
  background: darkorange;
}
.img {
  position: relative;
}
.carte .img img {
  width: 100%;
}

.carte .favorite-icon {
  position: absolute;
  bottom: 200px;
  right: 10px;
  font-size: 18px;
  color: #ccc;
  background: white;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.3s, background 0.3s;
}

.favorite-icon:hover {
  color: red;
  background: rgba(255, 255, 255, 0.8);
}

.section_produit {
  background-color: white; /* Fond blanc */
  margin: 20px auto; /* Espacement extérieur et centrage */
  max-width: 1200px; /* Largeur ajustable */
}
@media screen and (max-width: 900px) {
  .section_produit {
    width: 100%;
  }
}
.selection {
  background-color: blue;
  color: white;
  padding: 10px;
  font-size: 20px;
  width: 100%;
}
.selection span a {
  float: right;
  color: white;
}
@media (max-width: 768px) {
  .carte {
    flex: 1 1 calc(50% - 20px); /* 2 cartes par ligne */
  }
  .selection {
    font-size: 16px;
  }
}
/* 📱 Une seule carte par ligne sur très petits écrans */
@media (max-width: 480px) {
  .carte {
    flex: 1 1 calc(50% - 20px);
  }
  .section_produit {
    background: white;
    width: 100%;
  }
  body {
    background-color: #f5f5f5;
  }
}
.container-marque {
  max-width: 144rem;
  margin: 20px 20px;
  display: grid;
  align-items: center;
  background: white;
  height: 100%;
}
@media screen and (max-width: 1024px) {
  .container-marque {
    margin: 0;
  }
}

.items1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 2rem;
}

.item1 {
  display: flex;
  align-items: center;
  justify-content: center;
}
.item1 img {
  width: 13rem;
  object-fit: contain;
  aspect-ratio: 2/1.5;
  filter: grayscale(100);
  transition: filter 1s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}
@media screen and (max-width: 1024px) {
  .item1 img {
    width: 100px;
  }
}
.item1 img:hover {
  filter: grayscale(0);
  transition: filter 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.flash-header {
  background-color: #e60000;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
}

.flash-title {
  display: flex;
  align-items: center;
  margin-right: 30px;
  font-size: 25px;
}

.flash-timer {
  font-size: 25px;
}

.slider2-wrapper2 {
  position: relative;
  margin: 30px;
}
.voir a {
  color: white;
  font-size: 25px;
}
@media screen and (max-width: 1024px) {
  .slider2-wrapper2 {
    margin: 0;
  }
  .flash-timer,
  .flash-title,
  .voir a {
    font-size: 15px;
  }
}

.flash-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
  background: white;
}

.flash-container::-webkit-scrollbar {
  display: none;
}
.slider-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.product-slider {
  display: flex;
  overflow-x: auto;
  padding: 15px 10px;
  gap: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
}
.product-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.product-card {
  background: #f9f9f9;
  border-radius: 5px;
  width: 200px;
  min-width: 200px;
  padding: 10px;
  flex-shrink: 0;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.discount-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffe4b5;
  color: #e60000;
  padding: 3px 6px;
  font-size: 12px;
  border-radius: 3px;
}

.product-image {
  height: 120px;
  background: #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}

.price {
  font-weight: bold;
  font-size: 18px;
}

.old-price {
  text-decoration: line-through;
  font-size: 14px;
  color: gray;
}

.stock {
  font-size: 13px;
  margin-top: 5px;
  color: #555;
}

.progress-bar {
  height: 10px;
  background: #ccc;
  margin-top: 8px;
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: orange;
  width: 30%;
}

/* Flèches */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.arrow-left {
  left: 40px;
}

.arrow-right {
  right: 40px;
}
@media screen and (max-width: 1024px) {
  .arrow-left,
  .arrow-right {
    display: none;
  }
}
.product-image {
  height: 120px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 4px;
  object-fit: contain;
  margin-bottom: 10px;
}

.product-image img {
  width: 100%;
  object-fit: contain;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0; /* on commence invisible */
}

@media screen and (max-width: 1024px) {
  .flash-header {
    font-size: 8px;
    flex-wrap: wrap;
  }
  .product-slider {
    width: 100%;
    margin: 0;
  }
}
/* Style pour les produits épuisés */
.out-of-stock {
  opacity: 0.5; /* Griser la carte */
  pointer-events: none; /* Empêcher les interactions avec la carte (clics, etc.) */
}

/* Style pour les liens non-cliquables */
.disabled-link {
  pointer-events: none; /* Empêche les clics sur le lien */
  color: gray; /* Change la couleur pour indiquer que le produit est épuisé */
}

/* Style pour le bouton d'achat désactivé */
.disabled-button {
  background-color: gray; /* Griser le bouton */
  cursor: not-allowed; /* Changer le curseur pour indiquer que le bouton est désactivé */
}

.marques-sponsorisees {
  background: #fff;
  padding: 20px 15px;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  max-width: 96%;
  position: relative;
}

.header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 10px;
}

.header-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.sponsor-icon {
  margin-right: 6px;
}

.controleurs-scroll {
  display: flex;
  gap: 8px;
}

.btn-scroll {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f5f5f5;
  padding: 15px;
  z-index: 99;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #666;
}

.btn-scroll:hover {
  background: #f68b1e;
  color: white;
  transform: scale(1.1);
}

.btn-scroll:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.conteneur-scroll {
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 10px 5px;
  position: relative;
}

.conteneur-scroll::-webkit-scrollbar {
  display: none;
}

.liste-marques {
  display: flex;
  gap: 20px;
  padding: 5px 0;
  transition: transform 0.5s ease;
}

.marque-card {
  min-width: 180px;
  width: 180px;
  padding: 20px 15px;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.marque-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  border-color: #f68b1e;
}

.sponsored-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f68b1e;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.marque-logo {
  width: 100px;
  height: 50px;
  object-fit: contain;
  margin: 10px 0 15px;
  transition: all 0.3s ease;
  filter: grayscale(0%) brightness(100%);
}

.marque-card:hover .marque-logo {
  filter: grayscale(0%) brightness(90%);
  transform: scale(1.05);
}

.marque-info {
  text-align: center;
  width: 100%;
  margin-top: auto;
}

.promo-text {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f68b1e;
  margin-bottom: 4px;
}

.category {
  display: block;
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 4px;
}

.expires {
  display: block;
  font-size: 0.75rem;
  color: #888;
  font-style: italic;
}

.hover-content {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.marque-card:hover .hover-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.quick-shop {
  padding: 8px 15px;
  background: #f68b1e;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.quick-shop:hover {
  background: #e07e1b;
  transform: scale(1.05);
}

.pagination-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: #f68b1e;
  transform: scale(1.2);
}

/* Version responsive */
@media (max-width: 768px) {
  .marque-card {
    min-width: 150px;
    width: 150px;
    padding: 15px 10px;
  }

  .marque-logo {
    width: 80px;
    height: 40px;
  }

  .header-section h2 {
    font-size: 1.1rem;
  }

  .btn-scroll {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .marque-card {
    min-width: 140px;
    width: 140px;
  }

  .sponsored-badge {
    font-size: 0.6rem;
    padding: 3px 6px;
  }
}
