.container-home {
  margin-left: 161px;
  margin-top: 95px;
  margin-bottom: 80px;
}
.plage-titre {
  font-size: 10px;
  display: flex;
  justify-content: center;
  font-size: 16px;
}

#loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid var(--logo-color);
  border-top-color: var(--effet-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 9999;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid var(--logo-color);
  border-top-color: var(--effet-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 9999;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}



.nom .noms {
  max-width: 26px;
  font-size: 14px;
  color: var(--titre-color);
  font-weight: bold;
  max-width: 80px;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block;
}

.info-message {
  font-size: var(--taille-text-pc);
  color: var(--text-color);
  background: var(--navrigt-primary-bg);
  border-radius: 5px;
  padding: 8px 10px;
  margin-top: 5px;
}

.info-message span {
  display: inline-block;
  margin-right: 5px;
  color: var(--logo-color);
  font-weight: 500;
  cursor: pointer;
}

.produits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 6px var(--shaodw-color);
  padding: 2px;
  gap: 2px;
}

.reductions-produits {
  margin: 10px 0;
  padding: 8px;
  background: var(--navrigt-primary-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 13px;
}

.reductions-produits h4 {
  margin: 0 0 4px 0;
  font-weight: var(--text-gras);
}

.reductions-produits ul {
  margin: 0;
  padding-left: 18px;
}

.reductions-produits li {
  margin-bottom: 2px;
}


@keyframes rainbow-border {
  0% {
    border-color: red;
  }

  20% {
    border-color: orange;
  }

  40% {
    border-color: yellow;
  }

  60% {
    border-color: green;
  }

  80% {
    border-color: blue;
  }

  100% {
    border-color: violet;
  }
}

.rainbow-border {
  border: 2px solid;
  border-radius: 10px;
  animation: rainbow-border 3s linear infinite;
  box-shadow: 0 0 12px var(--navrigt-primary-bg);
}

/* =========================
   GRILLE DES PRODUITS
   ========================= */

/* =========================
   GRILLE PRINCIPALE
   ========================= */
  .product-item {
       height: 111%;
     }
.products-grid {
  display: grid;
  /* 3 colonnes sur mobile pour un look "catalogue" serré */
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  /* Un peu plus d'air pour la lisibilité */
  padding: 4px;
  background-color: #f8f9fa;
  /* Fond très léger pour faire ressortir les cartes */
}

@media (min-width: 768px) {
  .products-grid {
    /* 8 colonnes sur PC comme demandé, mais attention à la lisibilité */
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 15px;
  }
}

/* =========================
   CARTE PRODUIT
   ========================= */
.produit-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 8px;
  /* Coins plus modernes */
  overflow: hidden;
  border: 1px solid #eeeeee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 89%;
  /* Important pour que toutes les cartes aient la même taille */
}


/* =========================
   CONTENEUR IMAGE (Ratio Carré Pro)
   ========================= */
.post-media-container {
  width: 100%;
  position: relative;
  background-color: #fdfdfd;
  /* On force un ratio pour éviter les sauts de mise en page */
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.post-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* "cover" fait plus pro, "contain" si tu as des logos */
  display: block;
}

/* =========================
   INFORMATIONS PRODUIT (Version Pro)
   ========================= */
.product-info {
  padding: 3px;
  /* Espace interne propre, fini les marges négatives */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  /* Pousse le contenu vers le haut */
  position: relative;
}

/* NOM / TYPE PRODUIT */
.product-type {
  font-size: 11px;
  font-weight: 500;
  color: #666;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Coupe le texte proprement s'il est trop long */
}

.product-type a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* PRIX */
.product-price {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: auto;
  /* Aligne le prix en bas de la carte */
}

/* ÉTOILES / RATING */
.etoiless {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  /* Couleur or standard */
  margin-top: 2px;
}

/* BADGE VERIFIÉ */
.badge {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}


/* =========================
   ÉTOILES (RATING)
   ========================= */

.etoiles {
  display: flex;
  /* flexbox */
  justify-content: flex-end;
  /* étoiles alignées à droite */
  background: transparent;
  /* fond transparent */
  margin-top: -19px;
  /* ajustement position */
}


.product-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

.product-links {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.product-links a {
  text-decoration: none;
  color: var(--accent-color);
  font-weight: bold;
  font-size: var(--taille-text-pc);
}
/* CARTE GLOBALE */
.separator-card {
  grid-column: span 3;
  background: var(--bg-color);
}

/* CONTENEUR PRINCIPAL */
.boosters-container {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--bg-color);
  overflow-x: auto;
  /* scroll horizontal */
  gap: 5px;
}

/* CAROUSEL */
.advertisement-carousel {
  display: flex;
  gap: 5px;
}

/* CHAQUE CARTE */
.ad-slide {
  position: relative;
  flex-shrink: 0;
  /* empêche le rétrécissement */
  width: 130px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  /* fallback propre */
}

.ad-slide img {

  height: 220px;
  object-fit: cover;
  /* remplit tout le cadre */
  display: block;
  /* supprime les espaces invisibles */
}


/* TEXTE SUR IMAGE */
.ad-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px;
  font-size: 12px;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* TITRE */
.boosted {
  font-size: 12px;
  margin: 0;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .boosters-container {
    height: 190px;
  }

  .ad-slide {
    width: 120px;
    height: 180px;
  }

  .ad-slide img {

    height: 180px;
    object-fit: cover;
    /* remplit tout le cadre */
    display: block;
    /* supprime les espaces invisibles */
  }

 
}

.extra-info {
  color: var(--navrigt-primary-bg);
  margin-bottom: 3px;
  font-size: 0.7em;
}

.boosted {
  color: var(--text-color);
  margin-bottom: 3px;
  font-size: var(--taille-text-pc);
  bottom: 5px;
}

.title {
  font-size: var(--taille-titre-pc);
  margin-bottom: 3px;
}

.price {
  color: var(--text-color);
  font-size: var(--taille-text-pc);

}

.btn-container {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 2px;
}

.btn-reserver {
  text-decoration: none;
  padding: 4px 8px;
  background-color: var(--navrigt-primary-bg);
  color: var(--text-color);
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-size: var(--taille-text-pc);
}

.btn-reserver:hover {
  background-color: var(--navrigt-primary-bg);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

.prev-btn,
.next-btn {
  background-color: var(--navrigt-primary-bg);
  color: var(--text-color);
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: var(--taille-icon-pc)
}

.prev-btn:hover,
.next-btn:hover {
  background-color: var(--hover-bg);
}

.responsive-separator-card {
  text-align: center;
  position: relative;
  display: block;
  border-radius: 10px;



}

.responsive-separator-card h4 {
  font-size: var(--taille-text-pc);
  margin-bottom: 15px;
  color: var(--text-color);
}

.boosted-products-carousel {
  overflow: hidden;
  position: relative;
  height: 182px;
  margin: 0;
  background: transparent;

}
.post-media-container a {
  position: relative;
  z-index: 2;
}
.boosted-products-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.boosted-card .compteur-flottants {
  position: fixed;
  /* reste toujours visible */
  top: 200px;
  /* distance du haut */
  right: 5px;
  /* distance de la droite */
  background-color: var(--titre-color);
  /* rouge vif pour attirer l’œil */
  color: var(--text-color);
  padding: 15px 5px;
  border-radius: 25px;
  /* arrondi style badge */
  font-size: 24px;
  box-shadow: 0 4px 10px var(--shaodw-color);
  z-index: 9999;
  /* toujours au-dessus */
  z-index: 999;
}

/* effet quand le compteur change (animation “pop”) */
.compteur-flottants.pop {
  background-color: var(--navrigt-primary-bg);
}



.boosted-card {
  position: relative;
  border-radius: 10px;
  box-shadow: 0 4px 6px var(--shadow-color);
  border: 1px solid var(--border-color);
  flex: 0 0 100%;
  height: 244px;
  transform: translateZ(0);
  backface-visibility: hidden;
  width:0px;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 93%;
  transform: translateY(-50%);
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width:35px;
  height: 35px;
  font-size: var(--taille-icon-pc);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.boosted-card img.ad-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
  padding: 10px;
}

.prix p {
  font-size: var(--taille-titre-pc);
}

.boosted-card h5 {
  font-size: 10px;
  color: var(--text-color);
  margin-bottom: 10px;
}

.boosted-card p {
  font-size: var(--taille-titre-pc);
  color: var(--text-color);
  margin-bottom: 10px;
}



.prev-btn {
  left: 1px;
}

.next-btn {
  right: 1px;
}

.prev-btn:hover,
.next-btn:hover {
  background-color: var(--hover-bg);
}

.boosted-products-wrapper p {
  font-size: var(--taille-titre-pc);
  color: var(--text-color);
  text-align: center;
  margin: auto;
}

.banner-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.left-titles {
  display: flex;
  gap: 5px;
  flex: 1;
}

.title {
  padding: 10px 20px;
  color: var(--text-color);
}

.main-image-pub {
  flex: 2;
  align-items: center;
}

.main-image-pub img {
  max-width: 60px;
  border-radius: 50%;
}

.sponsors {
  display: flex;
  gap: 5px;
  position: absolute;
  top: 5px;
  right: 10px;
}

.sponsors img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.button-link {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.link-button {
  display: inline-block;
  padding: 5px 25px;
  background-color: var(--navrigt-primary-bg);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 50%;
  text-align: center;
}

@keyframes rainbow-border {
  0% {
    border-color: var(--effet-color);
  }

  20% {
    border-color: var(--logo-color);
  }

  40% {
    border-color: var(--effet-color);
  }

  60% {
    border-color: var(--logo-color);
  }

  80% {
    border-color: var(--effet-color);
  }

  100% {
    border-color: var(--logo-color);
  }
}

.rainbow-border {
  border: 2px solid;
  border-radius: 10px;
  animation: rainbow-border 3s linear infinite;
  box-shadow: 0 0 12px var(--shadow-color);
}

div#pub-container {
  margin-top: 92px;
}

span.image-counter {
  right: 3px;
  position: absolute;
  top: 10px;
  border-radius: 10px;
  font-size: 77px;
}
span.nom {
  font-size: 14px;
  color: var(--text-color);
  font-weight: bold;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block;
}
.favori-btn {
  padding: 10px;
  cursor: pointer;
}

.favori-btn:hover {
  color: var(--hover-bg);
}

.favori-btn i {
  font-size: var(--taille-icon-pc);
  vertical-align: middle;
}

.compteur-flottant {
  position: fixed;
  top: 340px;
  left: 0px;
  background-color: var(--navrigt-primary-bg);
  color: var(--text-color);
  padding: 5px 10px;
  border-radius: 25px;
  font-size: 12px;
  box-shadow: 0 4px 10px var(--shaodw-color);
  z-index: 9999;
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 999;
}

.compteur-flottant.pop {
  transform: scale(1.2);
  background-color: var(--navrigt-primary-bg);
}

.top-produits-container {
  position: fixed;
  bottom: 0;
  left: 0;
  top: 400px;
  width: 100%;
  max-height: 0;
  background-color: var(--navrigt-primary-bg);
  box-shadow: 0 -2px 10px var(--shadow-color);
  overflow-y: auto;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  z-index: 999;
}

.top-produits-container.active {
  max-height: 60vh;
  opacity: 1;
}

.top-produits-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
  font-weight: bold;
  background-color: var(--bg-color);
}

.top-produits-header button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.top-produits-list .produit-item {
  padding: 8px;
  border-bottom: 1px solid var(--logo-color);
  display: inline-block;
  width: 90px;
  margin: 5px;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.top-produits-list .produit-item:hover {
  transform: scale(1.05);
  background-color: var(--hover-bg);
  border-radius: 5px;
}

.produit-media-img,
.produit-media-video {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 25px;
}

.separator-cards {
  display: none;
  background: var(--bg-color);
  max-height: 170px;
}

.boosters-containers {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  height: 115px;
  display: flex;

}

.image-counters {
  position: absolute;
  top: 39px;
  left: 16px;
  background-color: var(--navrigt-primary-bg);
  color: var(--text-color);
  padding: 1px 2px;
  border-radius: 50%;
  font-size: 8px;
  font-weight: bold;
}


.advertisement-carousels {
  display: grid;
  position: relative;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
}

.advertisement-carousels img {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 25px;
}

.ad-slides {
  display: flex;
  flex-shrink: 1;
  position: relative;
  align-items: center;
  justify-content: space-between;
  margin-left: -5px;
  padding: 1px 9px;
}


.separato-cards {
  background: var(--bg-color);
  max-height: 170px;
}

/* ANIMATION */
@keyframes autoScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.boosters-containe {
  /* position: relative; */
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  height: 100px;
  display: flex;
}

.advertisement-car {
  display: flex;
  position: relative;
  gap: 2px;
  animation: autoScroll 1s linear infinite;
  width: max-content;
}

/* ITEM */
.ad-sl {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.carousel-n {
  position: absolute;
  top: 26%;
  left: -8px;
  right: -8px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

.separato-cards {
  display: block;
}

.prev-bt,
.next-bt {
  position: absolute;
  top: 20%;
  transform: translateY(-50%);
  color: var(--text-color);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: var(--taille-icon-pc);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 4px var(--shadow-color);
  z-index: 2;
  transition: background-color 0.3s ease;
}

.advertisement-car img {
  width: 70px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
}

.plage-titre {
  font-size: 10px;
}



@media (max-width: 768px) {
  .post-media-container {
    margin-left: 0px !important;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  

  .post-media-container {
    width: 100%;
    margin-left: 0px;
  }
  .produit-card{
    width: 100%;
  }


  .separator-cards {
    display: block;

  }

  .container-home {
    margin-left: 0px !important;
    margin-top: 65px;

  }


  .produits-grid {
    display: grid;
    gap: 5px;
    width: auto;
    grid-template-columns: repeat(3, 1fr);
    /* 5 colonnes de tailles égales */
  }
  .plage-titre {
  
    font-size: 20px;
  }
  .favori-btn i {
    font-size: var(--taille-icon-mo);
  }

  .product-links a {

    font-size: var(--taille-text-mo);
  }

  .boosters-container h2 {
    font-size: var(--taille-titre-mo);

  }

  .info-message {
    font-size: var(--taille-text-mo);

  }

  .boosted {
    font-size: 6px !important;
  }

  .title {
    font-size: var(--taille-titre-mo);
  }

  .product-info p {
    font-size: var(--taille-text-mo);
  }

  .price {
    font-size: var(--taille-text-mo);
  }
  .boosted-card img.ad-img {
    height: 137px;
  }

  .post-media-container img {
    height: 110px;
  }

  .boosted-card {
    height: 179px;
  }

  .btn-reserver {

    font-size: var(--taille-text-mo);
  }

  .boosted-products-wrapper p {
    font-size: var(--taille-titre-mo);

  }

  .favori-btn {
    font-size: 9px;
  }

  .prev-btn,
  .next-btn {

    font-size: var(--taille-icon-mo)
  }

  .responsive-separator-card h4 {
    font-size: var(--taille-text-mo);

  }

  .second {
    display: none;
  }

  .prev-btn,
  .next-btn {
    font-size: var(--taille-icon-mo);
  }

  .prix p {
    font-size: var(--taille-titre-mo);
  }

  .product-price,
  .product-size {
    font-size: var(--taille-text-pc);

  }

  .boosted-card h5 {
    font-size: var(--taille-titre-mo);
  }

  .boosted-card p {
    font-size: var(--taille-titre-mo);
  }

  .info-text {
    font-size: 0, 2rem;
    width: 150px;
  }

  .product-title,
  .product-size {
    display: none;
  }

  .boosters-container h2 {
    font-size: var(--taille-text-mo);

  }

  .product-links {
    margin-top: 0;
  }

  .product-info p {
    margin-bottom: 1px;
    font-size: 17px;
  }


  .ad-details {
    font-size: var(--taille-text-mo);
  }

  .ad-slide {
    margin-left: 4px;
    width: 40%;
    gap: 1px;
    flex-shrink: 0;
  }

  .product-price,
  .product-size {
    font-size: var(--taille-text-mo);

  }
  span.nom_boost{
    margin-left: 30px;
    font-size: 14px;
      color: var(--text-color);
      font-weight: bold;
      white-space: nowrap;
      text-overflow: ellipsis;
      display: inline-block;
    
    
  }


  .banner-container {
    align-items: start;
  }

  .left-titles {
    gap: 0 !important;
  }

  .title-pub {
    padding: 10px 5px;
  }

  .main-image-pub img {
    max-width: 50px;

  }


}

@media(min-width: 768px) {
  .top-produits-container {
    display: none;
  }
}