.slider-background {
  /*background-image: url('https://softadastra.com/public/images/slide/home-page.jpg');*/
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease-in-out;
}

.subcategories-container {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.subcategory-card {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s, transform 0.3s;
  width: 200px;
  height: 250px;
  flex-shrink: 0;
  position: relative;
  text-align: center;
  margin: 0;
  padding: 0;
}

.subcategory-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.subcategory-card a {
  display: block;
  width: 100%;
  height: 100%;
}

.subcategory-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(0.1px) brightness(96%);
  transition: filter 0.3s ease;
}

.slider-background {
  filter: blur(0.1px) brightness(97%);
  transition: filter 0.3s ease;
}

.subcategory-image:hover {
  filter: blur(0) brightness(100%);
}

@media (max-width: 768px) {
  .subcategory-card {
    width: 120px;
    height: 120px;
  }
  /* .image-skeleton {
    width: 185px;
    height: 190px;
  } */
}

@media (max-width: 480px) {
  .subcategory-card {
    width: 120px;
    height: 120px;
  }
}

/* Résolution pour grands écrans */
@media (min-width: 1600px) {
  .subcategory-image[loading="lazy"] {
    opacity: 1 !important;
  }
}

/* Règle générale pour tous les autres écrans */
.subcategory-image {
  opacity: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(0.1px) brightness(96%);
  transition: filter 0.3s ease, opacity 0.5s ease-in-out;
}

.subcategory-image.loaded {
  opacity: 1;
}

.subcategory-image:hover {
  filter: blur(0) brightness(100%);
}

/* Au lieu de cibler spécifiquement les grands écrans */
.subcategory-image {
  opacity: 1 !important; /* Force l'opacité pour tous */
  transition: filter 0.3s ease;
}

.subcategory-image:not(.loaded) {
  opacity: 0;
}

.subcategory-image.loaded {
  opacity: 1;
}

@media (min-width: 1600px) {
  .subcategory-image {
    opacity: 1 !important;
    transition: none !important;
  }
}

/*******************************************************************/
.language-switcher {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 30px;
}

.language-switcher button {
  background-color: #f0f0f0;
  border: none;
  padding: 7px 16px;
  margin: 0 5px;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 1em;
}

.language-switcher button.active {
  background-color: #007185;
  color: white;
}

.cta-sell-section {
  background-color: #f3f3f3;
  border-radius: 12px;
  max-width: 900px;
  margin: 10px auto;
  font-family: "Amazon Ember", "Segoe UI", sans-serif;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding: 30px;
}

.cta-sell-section h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111;
}

.cta-sell-section .highlight {
  color: #ff9900;
}

.cta-sell-section .highlight-cities {
  color: #007185;
  font-weight: 600;
}

.cta-sell-section p {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.6;
}

.cta-benefits {
  list-style: none;
  padding: 0;
  margin: 0 auto 10px auto;
  text-align: left;
  max-width: 600px;
}

.cta-benefits li {
  font-size: 15px;
  margin: 10px 0;
  padding-left: 25px;
  position: relative;
  color: #232f3e;
}

.cta-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23007185' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.485 1.929a1 1 0 010 1.414L6.414 10.414l-3.9-3.9a1 1 0 10-1.414 1.414l4.607 4.607a1 1 0 001.414 0l7.778-7.778a1 1 0 00-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.cta-button-amazon {
  display: inline-block;
  background-color: #ff9900;
  color: #fff;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 25px;
  min-width: 200px;
  transition: background 0.3s ease;
}

.cta-button-amazon:hover {
  background-color: #e47911;
}

@media (max-width: 600px) {
  .cta-sell-section {
    padding: 10px 15px;
    padding-bottom: 30px;
    padding-top: 0;
  }

  .cta-sell-section h1 {
    font-size: 22px;
  }

  .cta-sell-section p,
  .cta-benefits li {
    font-size: 14px;
  }

  .cta-button-amazon {
    width: 100%;
    padding: 14px 0;
    font-size: 15px;
  }
}

.language-switcher2 {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 30px;
}

.language-switcher2 button {
  background-color: #f0f0f0;
  border: none;
  padding: 7px 16px;
  margin: 0 5px;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
  font-size: 1em;
}

.language-switcher2 button.active2 {
  background-color: #007185;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 113, 133, 0.6);
  transform: scale(1.05);
}

.cta-button {
  display: inline-block;
  background-color: #007185;
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1em;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 113, 133, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.cta-button:hover,
.cta-button:focus {
  background-color: #00575b;
  box-shadow: 0 6px 14px rgba(0, 87, 91, 0.7);
  transform: translateY(-2px);
  outline: none;
}

.cta-button:active {
  background-color: #004846;
  box-shadow: 0 2px 6px rgba(0, 72, 70, 0.9);
  transform: translateY(0);
}

.why-softadastra {
  background: #f7f9fa;
  padding: 20px 20px;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.why-softadastra h2 {
  font-size: 24px;
  font-weight: 700;
  color: #232f3e;
  margin-bottom: 20px;
}

.why-softadastra .brand-name {
  color: #ff9900;
}

.why-carousele {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: none;
  margin-bottom: 15px;
}

.why-carousele::-webkit-scrollbar {
  display: none;
}

.carousele-item {
  flex: 0 0 240px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  scroll-snap-align: center;
  text-align: left;
}

.carousele-item h3 {
  font-size: 16px;
  color: #232f3e;
  margin-bottom: 8px;
}

.carousele-item p {
  font-size: 14px;
  color: #555;
}

@media (min-width: 900px) {
  .why-carousele {
    overflow-x: visible;
    scroll-snap-type: none;
    justify-content: center;
  }
}

/*features*/

.seller-reminder {
  background-color: #f8f8f8;
  color: #444;
  font-size: 0.9rem;
  padding: 12px 16px;
  margin: 12px auto;
  width: 100%;
  max-width: 96%;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0px 2px #000;
  text-align: left;
  box-sizing: border-box;
  min-height: 48px;
}

.reminder-text {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 12px;
  max-width: 90%;
}

.close-reminder {
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.close-reminder:hover {
  color: #000;
}

@media (max-width: 600px) {
  .seller-reminder {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .reminder-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 12px;
    font-size: 0.85rem;
  }
}

.shipping-included {
  font-size: 12px;
  color: #999;
}

.product-price-box {
  font-size: 14px;
  margin-top: 5px;
  color: #ff9900;
  font-weight: 600;
}

.image-skeleton-product {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 12px;
}
@media (max-width: 576px) {
  .image-skeleton-product {
    aspect-ratio: 3 / 4.2;
  }
}

/* === SOFTADASTRA - CATEGORY CAROUSEL === */

.category-carousel-section {
  padding: 20px;
  background-color: #fff;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.category-carousel-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  padding-left: 10px;
  max-width: 100%;
  word-wrap: break-word;
  white-space: normal;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
}
/* 
.softadastra-category {
  flex: 0 0 auto;
  width: 160px;
  height: 200px !important;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
  text-align: center;
  margin: 0;
  line-height: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  transition: transform 0.3s ease;
  white-space: normal;
} */
/* 
.softadastra-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.softadastra-category a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  text-decoration: none;
  color: inherit;
}

.softadastra-category img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
  margin: 0 auto;
} */
/* 
.softadastra-category p {
  font-size: 0.9rem;
  margin: 6px 4px 0;
  color: #333;
  line-height: 1.2;
  text-align: center;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-btn {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  font-size: 24px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 2;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  transition: background 0.3s;
}

.carousel-btn:hover {
  background-color: #eee;
}

.carousel-btn.left {
  left: -10px;
}

.carousel-btn.right {
  right: -10px;
} */

/* Scrollbar Custom */
.carousel-track::-webkit-scrollbar {
  height: 6px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* Responsive */
/* @media (max-width: 768px) {
  .category-carousel-title {
    font-size: 1.2rem;
    padding-left: 0;
    margin-bottom: 10px;
  }

  .softadastra-category {
    width: 120px;
    height: 190px;
  }

  .softadastra-category img {
    height: 150px;
  }

  .carousel-btn {
    display: none;
  }
} */
/* Applique le style Adastra aux catégories */
.softadastra-category {
  flex: 0 0 auto;
  width: 140px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.softadastra-category:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.softadastra-category a {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.softadastra-category img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.softadastra-category:hover img {
  transform: scale(1.03);
}

.softadastra-category p {
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  margin: 0;
  text-align: center;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

@media (max-width: 768px) {
  .softadastra-category {
    width: 110px;
    padding: 10px;
  }

  .softadastra-category img {
    height: 80px;
  }

  .softadastra-category p {
    font-size: 0.85rem;
  }
}

.for-you {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 5px;
  padding-left: 8px;
  display: inline-block;
  padding: 6px 12px;
  letter-spacing: 0.5px;
}

@media screen and (max-width: 768px) {
  .for-you {
    font-size: 20px;
    padding: 4px 10px;
  }
}

#cookie-banner {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.adastra-categories {
  padding: 10px;
  background: #f9fafb;
  padding-bottom: 0;
}

.adastra-categories-title {
  font-size: 1.8rem;
  color: #1e293b;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: left;

  max-width: 1200px;
  margin: 0 auto 10px auto;
  padding-left: 10px;
  padding-right: 10px;
}

.adastra-carousel-container {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.adastra-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
}

.adastra-carousel-track::-webkit-scrollbar {
  display: none;
}

.adastra-category-card {
  flex: 0 0 auto;
  width: 140px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.adastra-category-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.adastra-cat-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.adastra-category-card:hover .adastra-cat-img {
  transform: scale(1.03);
}

.adastra-category-card p {
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  margin: 0;
  text-align: center;
}

/* Boutons de scroll */
.adastra-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ff9900;
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: none;
  /* Affichés dynamiquement avec JS */
}

.adastra-prev-btn {
  left: 0;
}

.adastra-next-btn {
  right: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .adastra-category-card {
    width: 110px;
    padding: 10px;
  }

  .adastra-cat-img {
    height: 80px;
  }

  .adastra-category-card p {
    font-size: 0.85rem;
  }

  .adastra-carousel-btn {
    display: none !important;
  }
}

.adastra-carousel-btn,
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid #ff9900;
  border-radius: 50%;
  color: #ff9900;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
  padding: 0;
  line-height: 1;
}

.adastra-carousel-btn:hover,
.carousel-btn:hover {
  background-color: #ff9900;
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.adastra-prev-btn,
.left {
  left: 10px;
}

.adastra-next-btn,
.right {
  right: 10px;
}

/* Empêche l'affichage sur mobile */
@media (max-width: 768px) {
  .adastra-carousel-btn {
    display: none !important;
  }
}

.adastra-skeleton-card {
  flex: 0 0 auto;
  width: 140px;
  height: 160px;
  border-radius: 12px;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  animation: pulse 1.2s infinite ease-in-out;
}

.adastra-skeleton-img {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  background: #e5e7eb;
  margin-bottom: 10px;
}

.adastra-skeleton-text {
  width: 80%;
  height: 14px;
  border-radius: 6px;
  background: #e5e7eb;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
}

.why-softadastra {
  background: #f9fafb;
  padding: 10px;
  text-align: center;
  padding-bottom: 20px;
}

.why-title {
  font-size: 1.8rem;
  color: #1e293b;
  margin-bottom: 30px;
  font-weight: 700;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.why-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.why-item .emoji {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.why-item p {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  margin: 0;
}

.for-you {
  font-size: 1.8rem;
  color: #1e293b;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: left;

  max-width: 1200px;
  margin: 0 auto 10px auto;
  padding-left: 10px;
  padding-right: 10px;
}

.hero-banner {
  position: relative;
  width: 100vw;
  height: 65vh;
  min-height: 350px;
  overflow: hidden;
  background-color: #f2f2f2;
}

.loader-skeleton-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  z-index: 3;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.hero-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px);
  z-index: 1;
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-image.loaded {
  opacity: 1;
}

.content .box {
  transform: translateY(-2px);
  background-color: #fff;
}

.content .box .imgBx img {
  border-radius: 10px;
}

section,
#articles-section {
  background-color: #fff;
}

.news-feed {
  font-size: 1.8rem;
  font-weight: 700;
  color: #222;
  margin: 20px 0 10px 10px;
  padding-left: 10px;
  border-left: 4px solid #ff9900;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.news-feed:hover {
  color: #ff9900;
}

.country-image-wrapper {
  background-color: #fff !important;
}

.adastra-updates {
  background: #ffffff;
  border-radius: 2rem;
  padding: 2rem;
  margin: 3rem auto;
  max-width: 860px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  position: relative;
}

.updates-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.updates-header h2 {
  font-size: 1.4rem;
  color: #1f2937;
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 200px;
}

.adastra-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid #ff9900;
  color: #ff9900;
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.tab-btn.active {
  background: #ff9900;
  color: white;
}

.updates-body {
  margin-top: 1rem;
}

.updates-list {
  display: none;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.updates-list.active {
  display: block;
}

.updates-list li {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.updates-list li span {
  font-weight: 600;
  color: #007185;
}

.adastra-badge {
  position: absolute;
  top: -12px;
  left: -12px;
  background: #ff9900;
  color: white;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  font-family: "Segoe UI", sans-serif;
  letter-spacing: 0.5px;
}

.updates-list li {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.updates-list li span {
  font-weight: 700;
  color: #007185;
}

/* ✅ Media query pour responsive < 600px */
@media (max-width: 600px) {
  .adastra-updates {
    padding: 0.8rem 1rem;
    margin: 0.5rem 0.8rem;
  }

  .updates-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .updates-header h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .tab-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .updates-list li {
    font-size: 0.9rem;
  }

  .adastra-badge {
    top: -10px;
    left: -10px;
    font-size: 0.7rem;
    padding: 3px 10px;
  }
}
@media (min-width: 1024px) {
  .styled-section-title {
    font-family: "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 10px 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;

    justify-content: center;
    text-align: center;
  }
}

.referral-highlight {
  background: #fff8e1;
  border: 1px solid #ffdd99;
  padding: 20px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.1);
  margin: 30px auto;
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.referral-text {
  flex: 1;
  min-width: 260px;
}

.referral-text h3 {
  font-size: 1.5em;
  color: #232f3e;
  margin-bottom: 10px;
}

.referral-text p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 10px;
}

.referral-text strong {
  color: #b12704;
}

.referral-highlight .cta-button {
  background-color: #ff9900;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.referral-highlight .cta-button:hover {
  background-color: #e68a00;
}

@media (max-width: 768px) {
  .referral-highlight {
    flex-direction: column;
    text-align: center;
  }

  .referral-highlight .cta-button {
    justify-content: center;
    width: 100%;
    max-width: 240px;
  }
}

.loading-spinner {
  text-align: center;
  padding: 30px;
  color: #555;
  font-size: 18px;
  display: none;
}

.loading-spinner i {
  font-size: 24px;
  margin-right: 8px;
  color: #888;
}

#end-message {
  background-color: #fff;
  display: none;
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 16px;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  margin-top: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#back-to-top {
  position: fixed;
  bottom: 70px;
  right: 20px;
  display: none;
  background-color: #ff9900;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 24px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
  transform: scale(1.1);
  background-color: #e68600;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 4px;
}

.skeleton-card {
  opacity: 1;
  animation: fadeIn 0.2s ease-in;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.3rem !important;
  }

  .hero-subtitle {
    font-size: 0.96rem !important;
  }

  .hero-button,
  .hero-link {
    font-size: 0.92rem !important;
    padding: 10px 14px !important;
  }

  .referral-text h3 {
    font-size: 1.2rem !important;
  }

  .referral-text p {
    font-size: 0.95rem !important;
  }

  .referral-highlight .cta-button {
    font-size: 0.95rem !important;
    padding: 10px 16px !important;
  }

  .styled-section-title,
  .adastra-categories-title {
    font-size: 1.2rem !important;
  }

  #vendor-map-intro h2 {
    font-size: 1.1rem !important;
  }

  #vendor-map-intro p {
    font-size: 0.92rem !important;
  }

  #back-to-top {
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
  }
}

.hero-content {
  background-color: #fff !important;
}

.image-skeleton {
  position: relative;
  background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
}

.image-skeleton::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top: 3px solid #ff9900;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin-image 0.8s ease-in-out infinite;
}

.country-image-skeleton {
  position: relative;
  background-color: #f3f3f3;
  border-radius: 2px;
  width: 16px;
  height: 12px;
  overflow: hidden;
}

.country-image-skeleton::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top: 2px solid #ff9900;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin-country 0.8s ease-in-out infinite;
}

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

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

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

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

/* ============ HERO BANNER (look Vinted + CTA Softadastra) ============ */
.hero-banner {
  position: relative;
  width: 100%;
  height: 66vh;
  min-height: 380px;
  max-height: 760px;
  overflow: hidden;
  isolation: isolate;
  /* pour backdrop-blur */
}

/* Image */
.hero-banner .hero-image,
.hero-banner .hero-image-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-banner .hero-image-placeholder {
  filter: blur(18px) saturate(0.9);
  transform: scale(1.02);
}

/* Overlay plus doux (dégradé) */
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.38) 0%,
      rgba(0, 0, 0, 0.18) 40%,
      rgba(0, 0, 0, 0) 70%
    ),
    radial-gradient(
      90% 60% at 20% 20%,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0) 60%
    );
  z-index: 1;
  pointer-events: none;
}

/* Contenu */
.hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 7%;
  transform: translateY(-50%);
  max-width: 460px;

  /* carte “verre dépoli” */
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);

  padding: 28px 28px 24px;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Titre / sous-titre */
.hero-title {
  font-size: clamp(1.6rem, 2.4vw + 0.8rem, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 12px;
  color: #111;
  letter-spacing: 0.2px;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 0.35vw + 0.8rem, 1.05rem);
  color: #444;
  margin: 0 0 18px;
  line-height: 1.45;
}

/* CTA principal (Softadastra) */
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  background: #ff9900;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.04s ease, filter 0.2s ease, background 0.2s ease;
  box-shadow: 0 6px 18px rgba(255, 153, 0, 0.35);
  border: 1px solid rgba(255, 153, 0, 0.6);
}

.hero-button:hover {
  filter: brightness(0.95);
}

.hero-button:active {
  transform: translateY(1px);
}

/* Lien secondaire (style Vinted) */
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  color: #212121;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.hero-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: #00bfa5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.hero-link:hover {
  color: #00a693;
}

.hero-link:hover::after {
  transform: scaleX(1);
}

/* Loader skeleton optionnel si tu l’utilises */
.loader-skeleton-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, #f3f4f6 0%, #eaecef 20%, #f3f4f6 40%);
  background-size: 200% 100%;
  animation: sa-skeleton 1.4s infinite linear;
}

@keyframes sa-skeleton {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Accessibilité (réduction animations) */
@media (prefers-reduced-motion: reduce) {
  .hero-button {
    transition: none;
  }

  .hero-link::after {
    transition: none;
  }

  .loader-skeleton-banner {
    animation: none;
  }
}

/* Tablette */
@media (max-width: 1024px) {
  .hero-content {
    left: 5%;
    max-width: 520px;
    padding: 24px 22px 20px;
    border-radius: 14px;
  }
}

/* Mobile (carte en bas, style app) */
@media (max-width: 768px) {
  .hero-banner {
    height: 52vh;
    min-height: 320px;
  }

  .hero-content {
    top: auto;
    left: 50%;
    right: 0;
    bottom: 0;
    transform: translateX(-50%);
    width: min(92%, 540px);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 18px 16px 14px;
  }

  .hero-title {
    margin-bottom: 8px;
  }

  .hero-subtitle {
    margin-bottom: 14px;
  }

  .hero-button {
    width: 88%;
    min-width: 0;
    margin: 0 auto 8px;
    border-radius: 12px;
  }

  .hero-link {
    margin: 4px auto 0;
  }
}

/* Très petits écrans */
@media (max-width: 360px) {
  .hero-banner {
    min-height: 300px;
  }

  .hero-content {
    width: 94%;
  }
}

/* Focus visibles */
.hero-button:focus,
.hero-link:focus {
  outline: 2px solid #00bfa5;
  outline-offset: 2px;
  border-radius: 12px;
}

/* Small screens (mobiles) */
@media (max-width: 768px) {
  .hero-content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  }

  .hero-content::after {
    content: "";
    position: absolute;
    bottom: -1px;
    /* ✅ descend d'1px pour éviter le liseré */
    left: -50vw;
    width: 200vw;
    /* ✅ dépasse bien sur les côtés */
    height: 50%;
    background: rgba(255, 255, 255, 0.97);
    z-index: -1;
  }

  .hero-title {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-bottom: 10px;
    padding: 4px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .hero-button {
    font-size: 1rem;
    width: 90%;
    margin: 12px auto 6px;
  }

  .hero-link {
    font-size: 0.95rem;
    margin-top: 6px;
    display: block;
    padding: 5px;
  }
}

/* =========================
   HERO – overrides compacts & fluides
   (à coller après ton CSS actuel)
========================= */

:root {
  /* hauteurs/tailles fluides pour mobile */
  --hero-h-fluid: clamp(300px, 52vh, 680px);
  --hero-pad-fluid: clamp(12px, 2.2vh, 24px);
  --hero-radius-fluid: clamp(14px, 18px, 20px);

  --hero-title-fluid: clamp(1.2rem, 2.1vw + 0.8rem, 2.2rem);
  --hero-sub-fluid: clamp(0.9rem, 1vw + 0.7rem, 1.05rem);

  --hero-btn-h: clamp(32px, 6.2vh, 44px);
  --hero-btn-f: clamp(0.9rem, 1.1vw + 0.7rem, 1rem);
  --hero-btn-w: clamp(180px, 88%, 320px);
}

/* Desktop : on ne change rien visuellement, juste un peu de fluidité possible */
@media (min-width: 769px) {
  .hero-banner {
    height: var(--hero-h-fluid);
  }

  .hero-content {
    padding: var(--hero-pad-fluid) var(--hero-pad-fluid)
      calc(var(--hero-pad-fluid) - 4px);
    border-radius: 16px;
    max-width: 460px;
    /* on garde ta limite */
  }

  .hero-title {
    font-size: var(--hero-title-fluid);
  }

  .hero-subtitle {
    font-size: var(--hero-sub-fluid);
  }

  .hero-button {
    min-width: 180px;
    /* ton comportement existant */
    height: var(--hero-btn-h);
    font-size: var(--hero-btn-f);
    line-height: 1;
    padding: 0 16px;
  }
}

/* Mobile (≤768px) : on conserve ta "carte en bas", mais plus compacte si écran petit */
@media (max-width: 768px) {
  .hero-banner {
    height: clamp(280px, 48vh, 540px);
    /* un poil plus flexible que 52vh */
  }

  .hero-content {
    width: min(92%, 540px);
    padding: calc(var(--hero-pad-fluid) - 2px) calc(var(--hero-pad-fluid) - 4px)
      calc(var(--hero-pad-fluid) - 6px);
    border-radius: clamp(16px, 3vh, 18px) clamp(16px, 3vh, 18px) 0 0;
  }

  .hero-title {
    font-size: var(--hero-title-fluid);
    margin-bottom: 8px;
  }

  .hero-subtitle {
    font-size: var(--hero-sub-fluid);
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .hero-button {
    width: var(--hero-btn-w);
    height: var(--hero-btn-h);
    font-size: var(--hero-btn-f);
    line-height: 1;
    margin: 8px auto 6px;
  }

  .hero-link {
    font-size: clamp(0.9rem, 1vw + 0.7rem, 1rem);
  }
}

/* Petites HAUTEURS (ex: iPhone SE / Galaxy S8) : compaction douce */
@media (max-height: 640px) {
  .hero-banner {
    height: clamp(260px, 46vh, 500px);
  }

  /* limite le sous-titre à 3 lignes pour éviter d'occuper trop de place */
  .hero-subtitle {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* réduit un peu les paddings */
  .hero-content {
    padding: calc(var(--hero-pad-fluid) - 6px) calc(var(--hero-pad-fluid) - 8px)
      calc(var(--hero-pad-fluid) - 8px);
  }
}

/* Ultra compact (≤360px de large OU ≤560px de haut) */
@media (max-width: 360px), (max-height: 560px) {
  :root {
    --hero-title-fluid: clamp(1.05rem, 1.8vw + 0.7rem, 1.6rem);
    --hero-sub-fluid: clamp(0.85rem, 0.9vw + 0.65rem, 0.95rem);
    --hero-btn-h: clamp(30px, 5.6vh, 36px);
    --hero-btn-w: clamp(170px, 90%, 240px);
  }

  .hero-content {
    width: 94%;
  }
}

/* Si tu utilises une barre mobile en bas (body.has-mobile-bar, var(--bar-h)) :
   on remonte légèrement la carte pour qu'elle ne colle pas la barre. */
@media (max-width: 768px) {
  body.has-mobile-bar .hero-content {
    bottom: calc(
      max(8px, 2vh) + var(--bar-h, 56px) + env(safe-area-inset-bottom)
    );
  }
}

/* Forcer la carte à coller en bas en mobile */
@media (max-width: 768px) {
  .hero-content {
    top: auto !important;
    left: 50% !important;
    right: 0 !important;
    transform: translateX(-50%) !important;
    bottom: 0 !important;
    /* 👈 collée en bas */
  }

  /* Si tu avais une règle qui la remontait pour la barre mobile, on l’annule */
  body.has-mobile-bar .hero-content {
    bottom: 0 !important;
  }
}

@media (max-width: 768px) {
  body.has-mobile-bar .hero-banner {
    padding-bottom: calc(var(--bar-h, 56px) + env(safe-area-inset-bottom));
  }
}

/* ===== HERO — Réduction globale (desktop + mobile) ===== */
.hero-banner .hero-content {
  padding: 18px 16px 14px !important;
  /* - compresse la carte */
  max-width: 440px !important;
  /* - un poil plus étroit */
  border-radius: 14px !important;
}

/* Titres & textes plus petits partout */
.hero-banner .hero-title {
  /* avant: jusqu'à 2.4rem — on CAP à 1.8rem et on réduit la pente */
  font-size: clamp(1.05rem, 1.2vw + 0.6rem, 1.8rem) !important;
  line-height: 1.18 !important;
  margin: 0 0 8px !important;
}

.hero-banner .hero-subtitle {
  font-size: clamp(0.85rem, 0.6vw + 0.6rem, 0.98rem) !important;
  line-height: 1.38 !important;
  margin: 0 0 12px !important;
  color: #444 !important;
}

/* Bouton plus fin et plus court */
.hero-banner .hero-button {
  min-width: 0 !important;
  /* annule les 180px fixes */
  width: clamp(180px, 60%, 280px) !important;
  height: clamp(32px, 5.4vh, 40px) !important;
  font-size: clamp(0.9rem, 0.6vw + 0.55rem, 0.95rem) !important;
  line-height: 1 !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 16px rgba(255, 153, 0, 0.25) !important;
  margin: 6px 0 6px !important;
}

/* Lien secondaire plus discret */
.hero-banner .hero-link {
  font-size: clamp(0.88rem, 0.5vw + 0.6rem, 0.95rem) !important;
  gap: 4px !important;
  margin-left: 10px !important;
}

/* ===== Mobiles (≤768px) : carte en bas, compacte ===== */
@media (max-width: 768px) {
  .hero-banner {
    height: clamp(260px, 48vh, 520px) !important;
  }

  .hero-banner .hero-content {
    bottom: 0 !important;
    /* reste collée en bas */
    left: 50% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    width: min(92%, 520px) !important;
    padding: 14px 14px 12px !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .hero-banner .hero-title {
    font-size: clamp(1rem, 2.6vw + 0.55rem, 1.4rem) !important;
    margin-bottom: 6px !important;
  }

  .hero-banner .hero-subtitle {
    font-size: clamp(0.84rem, 1.8vw + 0.55rem, 0.95rem) !important;
    margin-bottom: 10px !important;

    /* limite la hauteur de texte sur petits écrans */
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    /* mets 2 si tu veux encore plus serré */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .hero-banner .hero-button {
    width: 90% !important;
    height: clamp(30px, 5.6vh, 36px) !important;
    font-size: clamp(0.88rem, 1.6vw + 0.55rem, 0.95rem) !important;
    margin: 6px auto 6px !important;
  }

  .hero-banner .hero-link {
    font-size: clamp(0.86rem, 1.2vw + 0.55rem, 0.94rem) !important;
    margin: 4px auto 0 !important;
  }
}

/* ===== Très petits téléphones (≤360px ou ≤560px de haut) ===== */
@media (max-width: 360px), (max-height: 560px) {
  .hero-banner .hero-content {
    padding: 10px 10px 8px !important;
    width: 94% !important;
  }

  .hero-banner .hero-title {
    font-size: clamp(0.95rem, 2.8vw + 0.45rem, 1.2rem) !important;
  }

  .hero-banner .hero-subtitle {
    -webkit-line-clamp: 2 !important;
  }

  .hero-banner .hero-button {
    width: 94% !important;
    height: clamp(28px, 5.2vh, 34px) !important;
    font-size: 0.9rem !important;
  }
}

/* Si tu as la barre mobile en bas : le hero-container prend le padding,
   la carte reste bien à bottom:0 */
@media (max-width: 768px) {
  body.has-mobile-bar .hero-banner {
    padding-bottom: calc(var(--bar-h, 56px) + env(safe-area-inset-bottom));
  }

  body.has-mobile-bar .hero-content {
    bottom: 0 !important;
  }
}

:root {
  --sa-orange: #ff9900;
  --sa-text: #212121;
  --sa-muted: #666;
  --sa-border: #e9e9e9;
  --sa-shadow-1: 0 6px 18px rgba(0, 0, 0, 0.12);
  --sa-shadow-2: 0 18px 38px rgba(0, 0, 0, 0.12);
}

/* S'assure que is-hidden masque vraiment, et qu'on n'a pas de conflit */
.is-hidden {
  display: none !important;
}

/* ===== Banner ===== */
.sa-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--sa-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12), 0 -1px 3px rgba(0, 0, 0, 0.05);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s 0.25s;
  z-index: 5000;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Variante légère en fond beige clair pour contraster encore mieux */
.sa-cookie-banner {
  background: #fffaf5;
  /* 🟠 très léger beige pour rappeler la couleur #ff9900 */
}

.sa-cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sa-cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}

.sa-cookie-banner__title {
  font-weight: 700;
  color: var(--sa-text);
  margin: 0 0 4px;
}

.sa-cookie-banner__text {
  color: var(--sa-muted);
  margin: 0 0 6px;
  line-height: 1.4;
}

.sa-cookie-banner__text a {
  color: var(--sa-orange);
  text-decoration: none;
}

.sa-cookie-banner__text a:hover {
  text-decoration: underline;
}

.sa-cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Desktop: toast en bas à droite */
@media (min-width: 992px) {
  .sa-cookie-banner {
    left: auto;
    width: min(520px, 92vw);
    border: 1px solid var(--sa-border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    box-shadow: var(--sa-shadow-1);
    margin-right: 20px;
  }

  .sa-cookie-banner__content {
    padding: 16px 16px 14px;
  }
}

/* ===== Buttons ===== */
.sa-btn {
  line-height: 1;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.05s ease;
}

.sa-btn--primary {
  background: var(--sa-orange);
  color: #fff;
  border-color: var(--sa-orange);
  box-shadow: 0 6px 16px rgba(255, 153, 0, 0.25);
}

.sa-btn--primary:hover {
  background: #e68900;
  border-color: #e68900;
}

.sa-btn--primary:active {
  transform: translateY(1px);
}

.sa-btn--ghost {
  background: #fff;
  color: var(--sa-text);
  border-color: var(--sa-border);
}

.sa-btn--ghost:hover {
  border-color: #d6d6d6;
  background: #fafafa;
}

.sa-btn--link {
  background: transparent;
  color: var(--sa-orange);
  padding: 8px 6px;
  border: none;
  font-weight: 700;
  text-decoration: none;
}

.sa-btn--link:hover {
  text-decoration: underline;
}

/* ===== Modal ===== */
.sa-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
}

.sa-cookie-modal.is-hidden {
  display: none;
}

.sa-cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(2px);
}

.sa-cookie-modal__panel {
  position: relative;
  width: min(560px, 92vw);
  background: #fff;
  border: 1px solid var(--sa-border);
  border-radius: 14px;
  box-shadow: var(--sa-shadow-2);
  padding: 18px 18px 14px;
  z-index: 1;
}

.sa-cookie-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.sa-cookie-modal__close:hover {
  color: #666;
}

.sa-cookie-modal__title {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--sa-text);
  font-weight: 800;
}

.sa-cookie-modal__subtitle {
  margin: 0 0 10px;
  color: var(--sa-muted);
}

/* Rows */
.sa-cookie-modal__options {
  display: grid;
  gap: 10px;
}

.sa-cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--sa-border);
}

.sa-cookie-row:first-child {
  border-top: none;
}

.sa-cookie-row__label {
  color: var(--sa-text);
}

/* Switch */
.sa-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.sa-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sa-switch__slider {
  position: absolute;
  inset: 0;
  background: #e5e5e5;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.sa-switch__slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.sa-switch input:checked + .sa-switch__slider {
  background: var(--sa-orange);
}

.sa-switch input:checked + .sa-switch__slider::before {
  transform: translateX(20px);
}

/* Actions */
.sa-cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* Mobile bottom-sheet style */
@media (max-width: 600px) {
  .sa-cookie-modal {
    align-items: end;
  }

  .sa-cookie-modal__panel {
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

:root {
  --sa-orange: #ff9900;
  --sa-text: #212121;
  --sa-muted: #666;
  --sa-border: #e9e9e9;
  --sa-bg: #ffffff;
  /* blanc pur */
  --sa-bg-soft: #fffefc;
  /* blanc très léger teinté */
  --sa-shadow-1: 0 10px 30px rgba(0, 0, 0, 0.14);
  --sa-shadow-2: 0 3px 10px rgba(0, 0, 0, 0.08);
  --sa-radius: 14px;
}

/* --- Wrapper modal --- */
.sa-welcome {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
}

.sa-welcome.is-hidden {
  display: none !important;
}

/* Overlay avec léger blur pour détacher du fond blanc */
.sa-welcome__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(2px);
}

/* Panel : carte blanche très lisible (Vinted-like) */
.sa-welcome__panel {
  position: relative;
  width: min(560px, 92vw);
  background: var(--sa-bg);
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius);
  box-shadow: var(--sa-shadow-1), var(--sa-shadow-2);
  padding: 22px 20px 18px;
  z-index: 1;
  animation: sa-pop 0.2s ease-out;
}

@keyframes sa-pop {
  from {
    transform: translateY(8px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close (X) */
.sa-welcome__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #9a9a9a;
  cursor: pointer;
}

.sa-welcome__close:hover {
  color: #555;
}

/* Titres & textes */
.sa-welcome__title {
  margin: 4px 0 6px;
  color: var(--sa-text);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.sa-welcome__lead {
  margin: 0 0 12px;
  color: var(--sa-muted);
  font-size: clamp(0.95rem, 1.6vw, 1.02rem);
  line-height: 1.45;
}

.sa-welcome__subtitle {
  margin: 12px 0 8px;
  color: var(--sa-text);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 700;
}

.sa-welcome__cta {
  margin: 16px 0 12px;
  color: #2a2a2a;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.7vw, 1rem);
}

/* Animation échange */
.sa-exchange {
  margin: 14px 0;
}

.sa-exchange__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: clamp(22px, 4vw, 26px);
}

.sa-exchange__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(18px, 3.2vw, 20px);
}

.sa-exchange__person small {
  margin-top: 4px;
  color: #777;
  font-size: 11px;
}

.sa-exchange__emoji {
  transition: transform 0.3s ease;
}

.sa-exchange__seller {
  color: #0077cc;
}

.sa-exchange__buyer {
  color: #3cb371;
}

.sa-exchange__arrow {
  font-size: clamp(18px, 3.2vw, 20px);
  color: #888;
}

.sa-exchange__box {
  font-size: clamp(20px, 3.6vw, 24px);
}

.sa-exchange__row:hover .sa-exchange__emoji {
  transform: translateY(-2px);
}

/* Benefits */
.sa-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 6px;
}

.sa-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 6px;
  border-radius: 10px;
  background: var(--sa-bg-soft);
  border: 1px solid #f2f2f2;
}

.sa-benefit__icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.sa-benefit__text {
  color: #444;
  font-size: 12.5px;
  line-height: 1.35;
}

/* CTA button (Softadastra orange) */
.sa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
  line-height: 1;
  text-decoration: none;
}

.sa-btn--primary {
  background: var(--sa-orange);
  color: #fff;
  border: 1px solid var(--sa-orange);
  box-shadow: 0 8px 18px rgba(255, 153, 0, 0.28);
}

.sa-btn--primary:hover {
  background: #e68900;
  border-color: #e68900;
}

.sa-btn--primary:active {
  transform: translateY(1px);
}

.sa-welcome__btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 6px;
}

/* Mobile bottom-sheet style */
@media (max-width: 600px) {
  .sa-welcome {
    align-items: end;
  }

  .sa-welcome__panel {
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* Très petites hauteurs : compacter */
@media (max-height: 640px) {
  .sa-welcome__panel {
    padding: 16px 14px 12px;
  }

  .sa-benefits {
    gap: 8px;
  }

  .sa-welcome__btn {
    padding: 10px 14px;
  }
}

/* Accessibilité: réduire animations */
@media (prefers-reduced-motion: reduce) {
  .sa-exchange__emoji,
  .sa-welcome__panel {
    animation: none;
    transition: none;
  }
}

/* Animation d'entrée */
@keyframes sa-zoom-in {
  0% {
    transform: scale(0.92) translateY(10px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Animation de sortie */
@keyframes sa-zoom-out {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  100% {
    transform: scale(0.92) translateY(10px);
    opacity: 0;
  }
}

/* Classes utilisées par le JS */
.sa-animate-in {
  animation: sa-zoom-in 0.25s ease-out forwards;
}

.sa-animate-out {
  animation: sa-zoom-out 0.2s ease-in forwards;
}

/* ================================
   Softadastra Categories — Alibaba/Amazon style
   (uses sa-cats*, sa-cat*, sa-skel*)
================================ */

/* Design tokens */
:root {
  --sa-text: #1f2937;
  /* slate-800 */
  --sa-muted: #6b7280;
  /* slate-500 */
  --sa-border: #e5e7eb;
  /* slate-200 */
  --sa-bg: #ffffff;
  /* page bg */
  --sa-soft: #f9fafb;
  /* list bg */
  --sa-white: #ffffff;
  /* card bg (always white) */
  --sa-accent: #ff9900;
  /* Softadastra orange */
  --sa-shadow-1: 0 10px 28px rgba(0, 0, 0, 0.1);
  --sa-shadow-2: 0 2px 10px rgba(0, 0, 0, 0.06);
  --sa-radius: 12px;
}

/* Container & header */
.sa-cats {
  max-width: 1200px;
  margin-inline: auto;
}

.sa-cats__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 8px 8px;
}

.sa-cats__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sa-text);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
}

.sa-cats__title i {
  color: var(--sa-accent);
}

.sa-cats__count {
  color: var(--sa-muted);
  font-weight: 600;
}

.sa-cats__grid {
  display: grid;
  gap: 14px 16px;
  padding: 18px 10px 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

@media (max-width: 720px) {
  .sa-cats__grid {
    gap: 12px;
    padding: 14px 8px 8px;
  }
}

@media (max-width: 600px) {
  .sa-cats__grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.sa-cat {
  background: var(--sa-white);
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius);
  overflow: hidden;
  box-shadow: var(--sa-shadow-2);
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease;
  will-change: transform, box-shadow;
}

.sa-cat:hover {
  transform: translateY(-2px);
  border-color: #ffd28a;
  box-shadow: var(--sa-shadow-1);
}

.sa-cat__link {
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.sa-cat__imgwrap {
  background: #fafafa;
  aspect-ratio: 4 / 3;
  display: block;
  position: relative;
}

.sa-cat__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

.sa-cat__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(180deg, #ffb84d, #ff9900);
  color: #261a00;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.sa-cat__body {
  background: var(--sa-white);
  padding: 12px 12px 14px;
  text-align: center;
  position: relative;
}

.sa-cat__body::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: #f2f2f2;
}

.sa-cat__count {
  font-size: 0.84rem;
  color: #8a8f98;
}

.sa-cat__foot {
  margin-top: 8px;
  font-size: 0.83rem;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sa-cat__foot svg {
  width: 14px;
  height: 14px;
}

.sa-cat--all {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.sa-cat--all .sa-cat__imgwrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-cat--all img {
  width: 44px;
  height: 44px;
  opacity: 0.75;
  filter: grayscale(1);
}

.sa-cat__link:focus-visible {
  outline: 3px solid rgba(255, 153, 0, 0.55);
  outline-offset: 4px;
}

.sa-cats__loading,
.sa-cats__error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--sa-muted);
  padding: 8px 10px;
  margin: 4px 8px 12px;
  border: 1px dashed var(--sa-border);
  border-radius: 10px;
  background: var(--sa-soft);
}

.sa-cats__retry {
  margin-left: 6px;
  background: #fff;
  border: 1px solid var(--sa-border);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
}

.sa-cats__retry:hover {
  border-color: #dadada;
}

.sa-skel {
  border: 1px solid #f1f1f1;
  border-radius: var(--sa-radius);
  overflow: hidden;
  background: #fff;
}

.sa-skel__img {
  height: 120px;
  background: #f5f5f5;
  position: relative;
}

.sa-skel__line {
  height: 12px;
  margin: 10px;
  background: #f0f0f0;
  border-radius: 6px;
}

.sa-skel__line--sm {
  width: 60%;
}

.sa-skel__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: translateX(-100%);
  animation: sa-shimmer 1.2s infinite;
}

@keyframes sa-shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sa-cat {
    transition: none !important;
  }

  .sa-skel__shimmer {
    animation: none !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --sa-text: #1f2937;
    --sa-muted: #a6adbb;
    --sa-border: #2b2f36;
    --sa-bg: #0b0d10;
    --sa-soft: #11151b;
  }

  body {
    background: var(--sa-bg);
  }

  .sa-cats__title {
    color: #1f2937;
  }

  .sa-cats__count {
    color: #a6adbb;
  }

  .sa-cats__loading,
  .sa-cats__error {
    background: var(--sa-soft);
    border-color: #273040;
  }

  .sa-cat {
    background: var(--sa-white);
    border-color: #e8eaee;
    box-shadow: none;
  }

  .sa-cat:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    border-color: #ffd28a;
  }

  .sa-cat__body {
    background: var(--sa-white);
  }

  .sa-cat__name {
    color: #1f2937;
  }

  .sa-cat__count {
    color: #5b6573;
  }

  .sa-cat__imgwrap {
    background: #f3f4f6;
  }
}

/* ===== Compact cards + better images ===== */

/* Structure verticale sans étirement */
.sa-cat {
  display: flex;
  flex-direction: column;
}

/* Image plus visible : ratio carré (style tuiles Amazon) */
.sa-cat__imgwrap {
  aspect-ratio: 1 / 1;
  /* au lieu de 4/3 → rend l’image plus grande et lisible */
  max-height: 220px;
  /* garde des cartes compactes en desktop */
  background: #fafafa;
}

/* Par défaut: photo recadrée proprement */
.sa-cat__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* remplit la vignette */
  object-position: center;
  /* centre le sujet */
  image-rendering: auto;
}

/* Variante pour logos/PNG: ne pas recadrer (à mettre sur <article class="sa-cat sa-cat--contain">) */
.sa-cat.sa-cat--contain .sa-cat__img {
  object-fit: contain;
  padding: 8px;
  /* petite marge autour du logo */
  background: #fff;
  /* contraste propre pour logos transparents */
  border-radius: 6px;
}

/* Body compact, fond blanc, séparation subtile */
.sa-cat__body {
  background: #fff;
  padding: 10px 10px 10px;
  /* -2px vs avant */
  text-align: center;
  position: relative;
}

.sa-cat__body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: #f2f2f2;
}

/* Titre sur 2 lignes max (évite les grandes hauteurs) */
.sa-cat__name {
  margin: 4px 0 2px;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #222;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compteur discret et compact */
.sa-cat__count {
  margin: 0;
  font-size: 0.82rem;
  color: #8a8f98;
}

/* Hover: léger lift pro */
.sa-cat:hover {
  transform: translateY(-2px);
  border-color: #ffd28a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

/* Grille: garde l’autofit en desktop, 3 colonnes en mobile */
.sa-cats__grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  /* un poil plus large qu’avant */
}

@media (max-width: 600px) {
  .sa-cats__grid {
    grid-template-columns: repeat(3, 1fr) !important;
    /* demandé */
    gap: 12px;
  }

  .sa-cat__imgwrap {
    max-height: 140px;
  }

  /* images bien visibles mais cartes compactes */
}

/* Dark: on garde les cartes blanches (look Amazon/Alibaba) */
@media (prefers-color-scheme: dark) {
  .sa-cat__imgwrap {
    background: #f3f4f6;
  }

  .sa-cat__body {
    background: #fff;
  }

  .sa-cat__name {
    color: #1f2937;
  }

  .sa-cat__count {
    color: #5b6573;
  }
}

/* 📱 Petits téléphones (ex: ≤ 380px de large ou ≤ 600px de haut) */
@media (max-width: 380px), (max-height: 600px) {
  .sa-cats__grid {
    gap: 8px;
  }

  .sa-cat__imgwrap {
    aspect-ratio: 1 / 1;
    /* carré, plus compact */
  }

  .sa-cat__body {
    padding: 8px 6px;
  }

  .sa-cat__name {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .sa-cat__count {
    font-size: 0.7rem;
  }

  .sa-cat__foot {
    font-size: 0.7rem;
    gap: 4px;
  }

  .sa-cat__badge {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
}

.sa-skel {
  border: 1px solid #f1f1f1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.sa-skel__img {
  height: 0;
  padding-bottom: 100%;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.sa-skel__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0)
  );
  transform: translateX(-100%);
  animation: sa-shimmer 1.15s infinite;
}

@keyframes sa-shimmer {
  to {
    transform: translateX(100%);
  }
}

.sa-skel__body {
  padding: 10px 10px 12px;
}

.sa-skel__line {
  height: 12px;
  border-radius: 6px;
  background: #eee;
  margin: 8px 0;
}

.sa-skel__line--sm {
  width: 60%;
}

.sa-fade {
  opacity: 0;
  transform: translateY(6px);
}

.sa-fade.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.sa-img-fade {
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.35s ease, filter 0.35s ease;
  will-change: opacity, filter;
}

.sa-img-fade.is-loaded {
  opacity: 1;
  filter: blur(0);
}
.sa-feed,
.sa-cats {
  max-width: min(100%, 1520px);
  margin-inline: auto;
  padding-inline: 8px;
  padding-block: 0 12px;
}

@media (max-width: 640px) {
  .sa-feed,
  .sa-cats {
    padding-inline: 6px;
  }
}

:root {
  --sa-cat-card-w: 160px;
  --sa-cat-gap: 12px;
}

.sa-cats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--sa-cat-card-w), 1fr));
  gap: var(--sa-cat-gap);
}

.sa-cats__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 14px;
  padding: 6px 0;
}

.sa-cats__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 clamp(1.05rem, 2vw, 1.3rem) / 1.2 "Inter", "Segoe UI", system-ui,
    Arial, sans-serif;
  color: #1f2937;
  margin: 0;
}

.sa-cats__title i {
  color: #ff9900;
}

.sa-cats__count {
  font: 600 0.9rem/1 "Inter", system-ui;
  color: #6b7280;
}

.sa-cat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.sa-cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #dfe3e8;
}

.sa-cat__imgwrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  overflow: hidden;
}

.sa-cat__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Corps */
.sa-cat__body {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sa-cat__name {
  margin: 0;
  color: #111827;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sa-cat__count {
  color: #6b7280;
  font: 600 0.8rem/1 "Inter", system-ui;
}

/* Loader / Error */
.sa-cats__loading,
.sa-cats__error {
  max-width: 820px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0;
  color: #555;
}

.sa-cats__error {
  background: #fff4f4;
  border: 1px solid #ffb3b3;
  border-radius: 8px;
}

.sa-cats__retry {
  margin-left: 6px;
  border: 1px solid #ff9900;
  color: #ff9900;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.sa-cats__retry:hover {
  background: #fff7ec;
}
.sa-cat__name {
  margin: 4px 0 2px;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #222;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  /* 4 colonnes fixes */
  .sa-cats .sa-cats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 6px !important;
  }

  /* Image wrap plus petite */
  .sa-cats .sa-cat__imgwrap {
    aspect-ratio: 1 / 1;
    max-height: 90px; /* réduit la hauteur */
  }

  /* Texte compact */
  .sa-cats .sa-cat__name {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
  }
  .sa-cats .sa-cat__count {
    font-size: 0.65rem !important;
  }

  /* Badge aussi réduit */
  .sa-cats .sa-cat__badge {
    font-size: 0.6rem;
    padding: 2px 5px;
  }
}
/* pour les images en 'contain' détectées par JS */
.sa-cat__imgwrap.is-contain {
  background: #fff; /* ou var(--sa-white) */
  display: flex;
  align-items: center;
  justify-content: center;
}
/* petit coussin pour éviter l’effet collé si 'contain' */
.sa-cat__imgwrap.is-contain .sa-cat__img {
  box-sizing: border-box;
  padding: 4px; /* ajuste 0–8px selon goût */
}

/* =========================================
   Softadastra – Vinted-like Cards & Grid
   (Look & feel inspired by Vinted, not copied)
   Version: 1.0.0
========================================= */

/* Design tokens */
:root {
  --sa-text: #1e1e1e;
  --sa-muted: #7c7c7c;
  --sa-border: #e6e6e6;
  --sa-bg: #ffffff;
  --sa-soft: #f8f8f8;
  --sa-price: #1e1e1e;
  --sa-accent: #ff9900;
  /* Softadastra */
  --sa-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  --sa-radius: 10px;
  --sa-gap: 12px;
  --sa-card-w: 230px;
}

/* Feed title */
.sa-feed__title {
  font: 600 1.25rem/1.3 "Inter", system-ui, -apple-system, Segoe UI, Arial,
    sans-serif;
  color: var(--sa-text);
  margin: 8px 8px 12px;
}

/* Grid */
#sa-feed-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--sa-card-w), 1fr));
  gap: var(--sa-gap);
  padding: 8px;
}

/* Card */
.sa-card {
  background: var(--sa-bg);
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius);
  box-shadow: var(--sa-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sa-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Image */
.sa-card__imgwrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--sa-soft);
}

.sa-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.sa-card:hover .sa-card__img {
  transform: scale(1.02);
}

/* Favorite overlay */
.sa-card__fav {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 4px 6px;
  font: 500 0.8rem/1 "Inter", system-ui, Arial, sans-serif;
  box-shadow: var(--sa-shadow);
}

.sa-card__fav-btn {
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}

.sa-card__fav-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.sa-card__fav-btn.is-active svg path {
  fill: #ef4444;
  stroke: #ef4444;
}

.sa-card__fav-count {
  min-width: 1em;
  text-align: center;
  font-size: 0.75rem;
}

/* Location badge (bottom-left over image) */
.sa-imgbadge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--sa-border);
  border-radius: 999px;
  padding: 4px 8px;
  box-shadow: var(--sa-shadow);
  font: 600 0.78rem/1 "Inter", system-ui, Arial, sans-serif;
  color: var(--sa-text);
}

.sa-imgbadge img {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

/* Body */
.sa-card__body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sa-card__title {
  font: 500 0.92rem/1.3 "Inter", system-ui, Arial, sans-serif;
  color: var(--sa-text);
  margin: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

/* Brand (small gray line) */
.sa-card__brand {
  margin: 0;
  font: 500 0.82rem/1.2 "Inter", system-ui, Arial, sans-serif;
  color: var(--sa-muted);
}

/* Meta row (just condition now) */
.sa-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 2px;
}

.sa-cond-badge {
  font: 600 0.72rem/1 "Inter", system-ui, Arial, sans-serif;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 999px;
  padding: 4px 6px;
}

/* Price */
.sa-card__pricebox {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.sa-card__price {
  font: 700 0.95rem/1 "Inter", system-ui, Arial, sans-serif;
  color: var(--sa-price);
  background: #fff;
  border: 1px solid var(--sa-border);
  border-radius: 999px;
  padding: 6px 8px;
  box-shadow: var(--sa-shadow);
  margin: 0;
}

.sa-card__usd {
  font: 600 0.78rem/1 "Inter", system-ui, Arial, sans-serif;
  color: var(--sa-muted);
  margin: 0;
}

.sa-flag {
  display: inline-block;
  margin-right: 6px;
  line-height: 1;
  font-size: 1em;
}

/* Stats (views + time) */
.sa-card__stats {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 0.8rem/1 "Inter", system-ui, Arial, sans-serif;
  color: var(--sa-muted);
}

.sa-eye {
  display: inline-block;
}

/* Skeletons */
.sa-skel.card {
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius);
  background: var(--sa-bg);
  box-shadow: var(--sa-shadow);
  overflow: hidden;
}

.sa-skel__img,
.sa-skel__line {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 37%, #f3f4f6 63%);
  background-size: 400% 100%;
  animation: sa-shimmer 1.2s infinite;
}

.sa-skel__img {
  width: 100%;
  aspect-ratio: 1/1;
}

.sa-skel__line {
  height: 12px;
  margin: 8px 10px;
  border-radius: 6px;
}

@keyframes sa-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: 0 0;
  }
}

/* Feed states */
.sa-feed__loading,
.sa-feed__end,
.sa-feed__error {
  margin: 10px auto 16px;
  text-align: center;
  font: 500 0.95rem/1.4 "Inter", system-ui, Arial, sans-serif;
  color: var(--sa-muted);
}

.sa-feed__error {
  color: #b91c1c;
}

/* Responsive */
@media (max-width: 640px) {
  :root {
    --sa-card-w: 160px;
  }

  .sa-card__title {
    font-size: 0.85rem;
  }

  .sa-card__price {
    font-size: 0.9rem;
    padding: 5px 7px;
  }
}

/* La pilule ne doit pas dépasser */
.sa-card__pricebox {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.sa-card__price {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* déjà présent chez toi : */
  font: 700 0.95rem/1 "Inter", system-ui, Arial, sans-serif;
  color: var(--sa-price);
  background: #fff;
  border: 1px solid var(--sa-border);
  border-radius: 999px;
  padding: 6px 8px;
  box-shadow: var(--sa-shadow);
  margin: 0;
}

/* Sur petits écrans : réduire un peu la taille */
@media (max-width: 640px) {
  .sa-card__price {
    font-size: 0.85rem;
    padding: 5px 7px;
  }
}

/* Hauteur fixe pour toutes les images de cartes */
.sa-card__imgwrap {
  position: relative;
  width: 100%;
  height: 240px;
  /* identique pour toutes */
  overflow: hidden;
  border-radius: 8px;
  background-color: #f9f9f9;
  /* couleur de fond neutre en cas d'image manquante */
}

.sa-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* recadre l'image sans la déformer */
  display: block;
}

/* ===== Mobile price fixes ===== */

/* 1) Smartphone classique : on empile le ≈ USD sous la pilule */
@media (max-width: 420px) {
  .sa-card__pricebox {
    flex-direction: column;
    /* empile */
    align-items: flex-start;
    /* aligné à gauche */
    gap: 4px;
  }

  .sa-card__price {
    font-size: 0.88rem;
    /* un poil plus petit */
    padding: 5px 8px;
    /* pilule plus compacte */
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* ne déborde jamais */
  }

  .sa-card__usd {
    font-size: 0.78rem;
    /* discret sous la pilule */
    line-height: 1.1;
  }

  .sa-flag {
    margin-right: 5px;
  }
}

/* 2) Très petit écran (ex. 320px) : on réduit encore et on autorise wrap si besoin */
@media (max-width: 340px) {
  .sa-card__price {
    font-size: 0.84rem;
    padding: 5px 7px;
  }

  .sa-card__pricebox {
    gap: 3px;
  }

  /* Option: cacher l'USD si ça reste trop serré 
     (dé-commente si tu préfères)
  .sa-card__usd{ display:none; }
  */
}

/* 3) Si tu utilises une grille très serrée, micro-ajustement */
@media (max-width: 300px) {
  .sa-card__price {
    font-size: 0.8rem;
  }
}

.sa-card__pricebox--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* ====== End of Feed ====== */
.sa-feed__end {
  text-align: center;
  padding: 40px 16px;
  color: #6b7280;
  /* slate-500 */
  font-family: "Segoe UI", sans-serif;
}

.sa-feed__end-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.sa-feed__end-text {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.sa-feed__end-sub {
  font-size: 0.85rem;
  color: #9ca3af;
  /* slate-400 */
}

/* ====== Feed Error ====== */
.sa-feed__error {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef2f2;
  /* red-50 */
  border: 1px solid #fecaca;
  /* red-200 */
  border-radius: 8px;
  padding: 14px 20px;
  margin: 20px;
  gap: 12px;
  font-family: "Segoe UI", sans-serif;
}

.sa-feed__error-icon {
  font-size: 1.4rem;
  color: #dc2626;
  /* red-600 */
}

.sa-feed__error-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sa-feed__error-text {
  color: #b91c1c;
  /* red-700 */
  font-weight: 500;
  margin: 0;
}

.sa-feed__error-retry {
  background: #ff9900;
  color: white;
  border: none;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sa-feed__error-retry:hover {
  background: #e88b00;
}

.sa-feed__end[hidden] {
  display: none !important;
}

/* ----- Zone du loader ----- */
.sa-feed__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 8px;
  color: #555;
  font: 500 0.95rem/1 "Segoe UI", system-ui, Arial, sans-serif;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.sa-feed__loading.is-loading {
  opacity: 1;
}

.sa-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #ff9900;
  border-radius: 50%;
  animation: sa-spin 0.8s linear infinite;
  animation-play-state: paused;
  /* par défaut: pause */
}

.sa-feed__loading.is-loading .sa-spinner {
  animation-play-state: running;
  /* en charge: tourne */
}

@keyframes sa-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .sa-feed__loading {
    font-size: 0.85rem;
    gap: 8px;
  }

  .sa-spinner {
    width: 20px;
    height: 20px;
  }
}

#sa-feed-sentinel {
  height: 1px;
  background: transparent;
}

#sa-feed-articles {
  margin-bottom: 60px;
}

.sa-feed__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  margin-bottom: 60px;
  /* ✅ espace pour qu'il soit visible avant le sentinel */
}

#sa-feed-sentinel {
  height: 1px;
  background: transparent;
  margin-bottom: 40px;
  /* ✅ espace de sécurité pour déclenchement */
}

.sa-feed__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  margin-bottom: 40px;
  /* ✅ pour qu'il ne soit pas collé au sentinel */
}

/* ===== Conteneur avec marges réduites sur mobile ===== */
.sa-feed {
  max-width: min(100%, 1280px);
  margin-inline: auto;
  padding-inline: 8px;
  padding-block: 0 12px;
}

/* Titre */
.sa-feed__title {
  margin: 10px 0 14px;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: #1f2937;
}

/* ===== Grille ===== */
:root {
  --sa-card-w: 230px;
  --sa-gap: 12px;
}

#sa-feed-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--sa-card-w), 1fr));
  gap: var(--sa-gap);
}

/* Conteneur image */
.sa-card__imgwrap {
  position: relative;
  width: 100%;
  height: 340px;
  /* 📏 plus grand : ajuste selon besoin */
  overflow: hidden;
  border-radius: 10px;
  background: #f5f5f5;
}

/* Image */
.sa-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .sa-card__imgwrap {
    height: 280px;
    /* un peu moins haut sur mobile */
  }
}

/* Petits écrans */
@media (max-width: 640px) {
  :root {
    --sa-card-w: 160px;
    --sa-gap: 8px;
  }

  .sa-feed {
    padding-inline: 6px;
  }
}

/* Écrans moyens (tablettes) */
@media (min-width: 768px) and (max-width: 1279px) {
  :root {
    --sa-card-w: 240px;
    --sa-gap: 14px;
  }

  .sa-feed {
    max-width: 1280px;
    padding-inline: 16px;
  }
}

/* Grands écrans (desktop) */
@media (min-width: 1280px) {
  :root {
    --sa-card-w: 280px;
    /* 📌 plus large comme Vinted */
    --sa-gap: 16px;
    /* 📌 plus d’espace entre les cartes */
  }

  .sa-feed {
    max-width: 1520px;
    /* 📌 plus large sur desktop */
    padding-inline: 20px;
  }
}

/* Loader / End / Error */
.sa-feed__loading,
.sa-feed__end,
.sa-feed__error {
  max-width: 820px;
  margin-inline: auto;
  width: 100%;
}

/* ---- Titre section (style Vinted-like, mis en avant) ---- */
.sa-feed__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 16px;
  padding: 6px 0;
  font-family: "Segoe UI", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #1f2937;
}

/* Icône */
.sa-feed__title-icon {
  width: 22px;
  height: 22px;
  color: #ff9900;
  flex-shrink: 0;
}

/* Texte */
.sa-feed__title-text {
  line-height: 1.2;
}

/* ===== Softadastra Reminder ===== */
.sa-reminder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffe3b3;
  /* 🆕 Orange clair visible */
  color: #1f2937;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 500;
  padding: 8px 12px;
  /* 🆕 Plus compact */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  animation: saSlideIn 0.4s ease-out;
  margin: 20px auto 16px;
  max-width: min(100%, 1520px);
  /* ✅ même largeur que produits/cats */
}

/* Texte + icône */
.sa-reminder__text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sa-reminder__text svg {
  width: 18px;
  height: 18px;
  stroke: #ff9900;
  /* Accent Softadastra */
}

/* Bouton de fermeture */
.sa-reminder__close {
  background: rgba(255, 153, 0, 0.15);
  border: none;
  color: #ff9900;
  font-size: 1rem;
  font-weight: 700;
  width: 26px;
  height: 26px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sa-reminder__close:hover {
  background: rgba(255, 153, 0, 0.25);
}

/* Animation entrée */
@keyframes saSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation sortie */
.sa-reminder.is-hiding {
  animation: saFadeOut 0.3s ease forwards;
}

@keyframes saFadeOut {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* Mobile : flex row + compact */
@media (max-width: 640px) {
  .sa-reminder {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 8px;
    /* encore plus compact sur mobile */
    margin: 12px auto;
  }

  .sa-reminder__text {
    gap: 5px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .sa-reminder__text svg {
    width: 16px;
    height: 16px;
  }

  .sa-reminder__close {
    width: 24px;
    height: 24px;
    font-size: 0.95rem;
  }
}

/* 👇 Empêche le bloc de coller aux bords sur mobile */
@media (max-width: 640px) {
  .sa-reminder {
    /* crée des marges latérales visibles */
    width: calc(100% - 20px);
    margin: 12px 10px;
    /* 10px gauche/droite */
    padding: 6px 10px;
    /* compact, mais respire un peu */
    gap: 6px;
    flex-direction: row;
    /* reste en ligne comme Vinted */
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .sa-container {
    padding-inline: 10px;
    /* au lieu de 6px */
  }
}

.hero-banner .hero-title {
  font-size: 1.6em !important;
}

/* ================================
   Vinted-like horizontal rail
   (appliqué à tes classes + alias Vinted)
================================ */

/* Tokens */
:root {
  --rail-gutter-mob: 12px;
  --rail-gutter-desk: 24px;
  --rail-gap: 12px;
  --rail-mask: 56px;
  /* longueur du fondu aux bords */
  --card-radius: 12px;
  --card-border: #e5e7eb;
  --card-bg: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #ff9900;
}

/* Bloc vendeur (header + rail) */
.seller-block {
  width: 100%;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: clip;
  /* évite les scrollbars parasites */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Header vendeur */
.seller-info-section {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #f2f2f2;
  background: #fff;
}

.seller-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seller-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee;
}

.seller-details {
  display: flex;
  flex-direction: column;
}

.seller-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.seller-username {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.seller-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  margin-top: 4px;
  font-size: 13px;
}

.follower-count {
  color: #8a8a8a;
}

/* ================================
   RAIL (conteneur scrollable)
   - alias: .horizontal-scroll__content--full-width-alignment .horizontal-scroll__rail
================================ */
.carousel-section-product {
  background: #fff;
}

.carousel-container-product {
  position: relative;
}

/* Rail (scroll container) */
.carousel-wrapper-product,
.horizontal-scroll__content--full-width-alignment .horizontal-scroll__rail {
  /* full-width alignment + gouttières */
  padding-inline: var(--rail-gutter-mob);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-gutter-mob);
  display: block;
  /* Masque de bords (effet fondu à gauche/droite) */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    black var(--rail-mask),
    black calc(100% - var(--rail-mask)),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    black var(--rail-mask),
    black calc(100% - var(--rail-mask)),
    transparent 100%
  );
  /* No bounce latéral sur certains navs */
  overscroll-behavior-inline: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  /* Firefox */
}

.carousel-wrapper-product::-webkit-scrollbar {
  display: none;
}

/* WebKit */

/* Track (liste d’items) */
.carousel-track-product {
  display: flex;
  gap: var(--rail-gap);
  width: max-content;
  padding-block: 12px 16px;
  /* respirations haut/bas */
}

/* Snap par carte sur le bord gauche (comme Vinted) */
.product-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: clamp(140px, 24vw, 200px);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.product-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Media: augmenter gouttières en desktop */
@media (min-width: 768px) {
  .carousel-wrapper-product,
  .horizontal-scroll__content--full-width-alignment .horizontal-scroll__rail {
    padding-inline: var(--rail-gutter-desk);
    scroll-padding-inline: var(--rail-gutter-desk);
  }
}

/* Images */
.product-img-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  background: #f3f4f6;
  overflow: hidden;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Infos carte */
.product-info {
  padding: 10px;
}

.product-brand {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 2px;
}

.product-condition {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
}

.product-price-box {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.shipping-included {
  font-size: 12px;
  color: #9ca3af;
}

.product-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.product-flag {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.product-city {
  font-size: 12px;
  color: #374151;
  text-transform: capitalize;
}

/* ================================
   Flèches (apparition au survol desktop)
================================ */
.rexdale-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  /* cachées par défaut */
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rexdale-left {
  left: 8px;
}

.rexdale-right {
  right: 8px;
}

@media (hover: hover) {
  .carousel-container-product:hover .rexdale-arrow {
    opacity: 1;
    pointer-events: auto;
  }

  .rexdale-arrow:hover {
    transform: translateY(-50%) scale(1.04);
  }
}

/* Mobile: flèches visibles (petites) */
@media (max-width: 768px) {
  .rexdale-arrow {
    opacity: 1;
    pointer-events: auto;
    width: 34px;
    height: 34px;
  }
}

/* ================================
   Squelettes
================================ */
.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 45%, #f3f4f6 65%);
  background-size: 400% 100%;
  animation: shimmer 1.1s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton-carousel {
  height: 220px;
  min-width: 100%;
  border-radius: 12px;
}

/* ================================
   Correctifs divers
================================ */

/* évite le bug dans ton @media précédent (typo) */
@media (max-width: 600px) {
  .seller-reminder {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
  }
}

/* Accessibilité focus dans le rail */
.carousel-wrapper-product :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.carousel-wrapper-product,
.horizontal-scroll__content--full-width-alignment .horizontal-scroll__rail {
  /* full-width alignment + gouttières */
  padding-inline: var(--rail-gutter-mob);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-gutter-mob);
  display: block;

  /* ❌ Suppression du masque flou */
  /* -webkit-mask-image: linear-gradient(...); */
  /* mask-image: linear-gradient(...); */

  overscroll-behavior-inline: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  /* Firefox */
}

.carousel-wrapper-product::-webkit-scrollbar {
  display: none;
  /* WebKit */
}

/* ====== Cadre global aligné sur .sa-reminder ====== */
/* ⚠️ ton <div id="sellers-container" style="padding:0"> enlève le padding.
   On le rétablit ici avec !important pour éviter de toucher au HTML. */
#sellers-container {
  box-sizing: border-box;
  max-width: min(100%, 1520px);
  margin: 0 auto;
  /* centre le bloc comme .sa-reminder */
  padding-inline: 24px !important;
  /* gouttières desktop */
}

/* Gouttières responsives (mêmes proportions que catégories/produits) */
@media (max-width: 1024px) {
  #sellers-container {
    padding-inline: 20px !important;
  }
}

@media (max-width: 640px) {
  #sellers-container {
    padding-inline: 5px !important;
  }
}

/* ====== Rail: ajoute une “respiration” interne ====== */
:root {
  --rail-gutter-desk: 24px;
  --rail-gutter-mob: 12px;
}

.carousel-wrapper-product {
  padding-inline: var(--rail-gutter-desk);
  scroll-padding-inline: var(--rail-gutter-desk);
}

@media (max-width: 768px) {
  .carousel-wrapper-product {
    padding-inline: var(--rail-gutter-mob);
    scroll-padding-inline: var(--rail-gutter-mob);
  }

  .product-brand {
    font-size: 13px;
  }
}

/* Espace vertical cohérent entre blocs vendeurs */
.section-seller {
  margin: 0 0 16px;
}

/* Option: laisse les flèches visibles quand elles débordent un peu */
.carousel-container-product {
  overflow: visible;
}

/* Positionnement overlay dans l'image */
.product-img-wrapper {
  position: relative;
}

.sa-card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
}

.sa-card-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5e7eb;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 999px;
  color: #111827;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Boutons ronds “heart / bag” */
.sa-btn-heart,
.sa-btn-bag {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, background 0.15s ease;
}

.sa-btn-heart:hover,
.sa-btn-bag:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* État “favori” actif (cœur plein) */
.sa-btn-heart.is-active {
  background: #ffebcc;
  border-color: #ffd199;
  color: #ff9900;
}

.sa-btn-heart.is-active svg path {
  /* petit remplissage visuel en “active” */
  fill: currentColor;
}

/* Mobile: rétrécir un peu */
@media (max-width: 480px) {
  .sa-btn-heart,
  .sa-btn-bag {
    width: 30px;
    height: 30px;
  }

  .sa-card-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
}

.sa-card-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e7eb;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  color: #ff9900;
  /* Accent Softadastra */
}

.sa-card-badge svg {
  width: 12px;
  height: 12px;
}

.sa-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(90deg, #ffd700, #ffb700);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  vertical-align: middle;
}

.sa-premium-badge svg {
  fill: currentColor;
}

/* petit anneau doré autour de l’avatar */
.sa-premium-avatar {
  position: relative;
  box-shadow: 0 0 0 2px #ffd54a;
  /* anneau doré */
  border-radius: 50%;
}

.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 45%, #f3f4f6 65%);
  background-size: 400% 100%;
  animation: shimmer 1.1s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-text {
  display: block;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}
.sa-clothes-promo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-radius: 16px;
  padding: 28px 32px;
  margin: 28px auto;
  box-shadow: var(--sa-shadow, 0 4px 14px rgba(0, 0, 0, 0.06));
  max-width: min(100%, 1520px);
  width: calc(100% - 32px);
  min-height: 220px;
  overflow: hidden;
  color: #fff;
  /* texte blanc */
  z-index: 0;
}

/* Overlay semi-transparent */
.sa-clothes-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

.sa-clothes-promo__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
  /* texte au-dessus de l’overlay */
  max-width: 100%;
}

/* Labels, titres et boutons en blanc */
.sa-clothes-promo__label,
.sa-clothes-promo__title,
.sa-clothes-promo__btn {
  color: #fff;
}

/* Bouton blanc avec hover transparent */
.sa-clothes-promo__btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  width: auto;
  /* ✅ largeur adaptée au texte */
  align-self: flex-start;
  /* ✅ bouton aligné à gauche */
}

.sa-clothes-promo__btn:hover {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .sa-clothes-promo {
    flex-direction: column;
    text-align: center;
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .sa-clothes-promo {
    width: calc(100% - 20px);
    margin: 12px auto;
    padding: 16px;
  }
}

#see-more-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 18px;
  font-size: 15px;
  background: var(--sa-orange, #ff9900);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease;
}

#see-more-btn:hover {
  background: #e88c00;
}
/******************************************************************************************************************************************************/
/* ========= Softadastra Map (palette) ========= */
:root {
  --map-bg: #ffffff;
  /* fond pur blanc */
  --map-border: #eef2f7;
  /* bordure douce */
  --map-shadow: 0 8px 30px rgba(31, 41, 55, 0.07);

  --map-primary: #ff9900;
  /* orange Softadastra */
  --map-primary-hover: #e68a00;
  --map-accent: #3b82f6;
  /* bleu accent */
  --map-text: #111827;
  /* texte titre */
  --map-text-2: #374151;
  /* texte secondaire */
}

/* ===== Section Promo Home ===== */
.sa-home-promo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  /* ⬇️ fond BLANC */
  background: var(--map-bg);
  border: 1px solid var(--map-border);
  border-radius: 16px;
  padding: 22px;
  margin: 20px auto;
  box-shadow: var(--map-shadow);
  max-width: min(100%, 1520px);
  width: calc(100% - 20px);
  overflow: hidden;
}

/* (on retire tout bokeh bleu) */
.sa-home-promo::before,
.sa-home-promo::after {
  content: none;
}

.sa-home-promo__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.sa-home-promo__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--map-primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sa-home-promo__title {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  font-weight: 800;
  color: var(--map-text);
  margin: 2px 0 0;
  line-height: 1.35;
}

.sa-home-promo__text {
  margin: 2px 0 8px;
  color: var(--map-text-2);
  opacity: 0.95;
  font-size: 1rem;
}

/* CTA group */
.sa-home-promo__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Boutons */
.sa-home-promo__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--map-primary);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
  text-decoration: none;
  transition: transform 0.08s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 16px rgba(255, 153, 0, 0.25);
}

.sa-home-promo__btn:hover {
  background: var(--map-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 153, 0, 0.28);
}

.sa-home-promo__btn:active {
  transform: translateY(0);
}

.sa-home-promo__btn:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

/* Variante ghost */
.sa-home-promo__btn--ghost {
  background: #fff;
  color: var(--map-text);
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
}

.sa-home-promo__btn--ghost:hover {
  background: #f9fafb;
}

/* Icônes SVG inline */
.sa-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  fill: currentColor;
}

.sa-icon--spark {
  color: var(--map-primary);
  width: 16px;
  height: 16px;
}

/* Visuel (colonne droite) */
.sa-home-promo__image {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: clamp(160px, 22vw, 240px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.sa-seller-map-illu {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Passe les couleurs au SVG via variables */
.sa-home-promo .sa-seller-map-illu {
  --sa-primary: var(--map-primary);
  --sa-accent: var(--map-accent);
}

.sa-home-promo__btn.sa-home-promo__btn--outline {
  background: #fff;
  color: var(--sa-orange, #ff9900);
  border: 2px solid var(--sa-orange, #ff9900);
  box-shadow: none;
}

.sa-home-promo__btn.sa-home-promo__btn--outline:hover {
  background: rgba(255, 153, 0, 0.06);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .sa-home-promo {
    gap: 18px;
    padding: 18px;
  }

  .sa-home-promo__btn {
    display: inline-flex;
    align-items: center;
    gap: 0px;
    background: var(--map-primary);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    width: fit-content;
    text-decoration: none;
    transition: transform 0.08s ease, background 0.25s ease,
      box-shadow 0.25s ease;
    box-shadow: 0 6px 16px rgba(255, 153, 0, 0.25);
  }
}

@media (max-width: 768px) {
  .sa-home-promo {
    flex-direction: column-reverse;
    text-align: center;
    padding: 16px;
  }

  .sa-home-promo__cta {
    justify-content: center;
  }

  .sa-home-promo__image {
    width: min(240px, 80%);
  }
}

/* Accessibilité: moins d’animations si demandé */
@media (prefers-reduced-motion: reduce) {
  .sa-home-promo__btn,
  .sa-home-promo__btn:hover {
    transition: none;
    transform: none;
  }
}

/* Par défaut (desktop) */
.sa-home-promo__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sa-text, #1f2937);
}

/* Badge "New" */
.sa-home-promo__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 153, 0, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  color: #ff9900;
  text-transform: uppercase;
}

.sa-home-promo__label .sa-icon--spark {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Mobile : tout centré */
@media (max-width: 768px) {
  .sa-home-promo__content {
    align-items: center;
    text-align: center;
  }
}
/* Grille du feed (multi-col responsive) */
.sa-feed-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: stretch;
}

@media (max-width: 600px) {
  .sa-feed-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* Carte */
.sa-card {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
  content-visibility: auto;
  contain-intrinsic-size: 320px 420px;
  /* boost perf */
}

.sa-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  border-color: #e7e7e7;
}

.sa-card__media {
  position: relative;
  aspect-ratio: 1/1;
  background: #fafafa;
  overflow: hidden;
}

.sa-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .sa-card:hover .sa-card__media img {
    transform: scale(1.03);
    transition: transform 0.25s ease;
  }
}

.sa-card__body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sa-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #212121;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sa-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sa-card__price {
  color: #ff6a00;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.sa-card__price small {
  color: #555;
  font-weight: 600;
  margin-left: 4px;
  font-size: 0.85rem;
}

.sa-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: #ffb400;
}

.sa-card__rating .count {
  color: #666;
  font-size: 0.78rem;
}

.sa-card__meta {
  font-size: 0.82rem;
  color: #666;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.sa-card__fav {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sa-card__fav-btn {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.sa-card__fav-btn.is-active {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.sa-card__fav-count {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 0.78rem;
  color: #444;
}

.sa-badge {
  position: absolute;
  top: 8px;
  /* left: 8px; */
  background: #ff3b30;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 6px;
}

/* Loader */
.sa-feed__loading {
  display: none;
  justify-content: center;
  padding: 14px;
}

.sa-feed__loading.is-visible {
  display: flex;
}

.sa-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #eee;
  border-top: 3px solid #ff9900;
  border-radius: 50%;
  animation: saSpin 0.9s linear infinite;
}

@keyframes saSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Fin / Erreur */
.sa-feed__end {
  text-align: center;
  padding: 10px;
  color: #666;
}

.sa-feed__error {
  display: none;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 10px;
  color: #b00020;
}

.sa-feed__error.is-visible {
  display: flex;
}

/* Ne peint pas les cartes hors écran, garde une taille intrinsèque pour éviter les sauts */
.cv-auto {
  content-visibility: auto;
  contain-intrinsic-size: 320px 420px;
}
/* ------- Bottom Sheet (prefixe sa-) ------- */
.sa-login-sheet {
  position: fixed;
  inset: auto 0 0 0;
  transform: translateY(100%);
  transition: transform 0.28s ease;
  z-index: 10050;
  display: block;
  background: #fff;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.15);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  max-height: 85vh;
}

.sa-login-sheet.is-open {
  transform: translateY(0);
}

.sa-login-sheet__grab {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: #dcdcdc;
  margin: 10px auto 4px;
}

.sa-login-sheet__content {
  padding: 14px 16px 18px;
  color: #212121;
  /* demandé */
}

.sa-login-sheet__title {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0 8px;
  color: #212121;
}

.sa-login-sheet__text {
  font-size: 14px;
  line-height: 1.45;
  color: #212121;
  opacity: 0.9;
  margin-bottom: 16px;
}

.sa-login-sheet__actions {
  display: grid;
  gap: 10px;
  padding-bottom: 8px;
}

.sa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 12px;
  padding: 0 14px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
}

.sa-btn--primary {
  background: #ff9900;
  color: #fff;
  border-color: #ff9900;
}

.sa-btn--ghost {
  background: #fff;
  color: #212121;
  border-color: #e5e7eb;
}

/* Optionnel : backdrop pour cliquer hors du sheet */
.sa-login-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10049;
}

.sa-login-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sa-login-sheet {
  will-change: transform;
}

html {
  scrollbar-gutter: stable;
}

/* optionnel mais aide */
html.sa-lock {
  overflow: hidden;
  overscroll-behavior: contain;
  padding-right: var(--sa-sbw, 0px);
}

body.sa-lock {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(-1 * var(--sa-lock-y, 0px));
}
.cv-auto {
  content-visibility: auto;
  contain-intrinsic-size: 180px 220px;
}
.hidden {
  display: none !important;
}

/* =========================================================
   COOKIE BANNER — Card collée en bas, look clean (façon Vinted)
   ========================================================= */
.sa-cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 16px;
  margin: 0 auto;
  z-index: 10000;

  max-width: 980px;
  background: #fff;
  color: #111827;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06);

  padding: 14px 14px 12px;
  display: none; /* caché par défaut */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.sa-cookie-banner.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.sa-cookie-banner__content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
}

.sa-cookie-banner__left {
  display: grid;
  gap: 6px;
}

.sa-cookie-banner__title {
  margin: 0;
  font: 700 16px/1.3 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #0b1320;
}

.sa-cookie-banner__text {
  margin: 0;
  font: 500 14px/1.55 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #4b5563;
}
.sa-cookie-banner__text a {
  color: #007185;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sa-cookie-banner__text a:hover {
  opacity: 0.9;
}

/* Actions */
.sa-cookie-banner__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 700 13px/1 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, border-color 0.15s ease;
}

.sa-btn:active {
  transform: translateY(1px);
}

.sa-btn--primary {
  background: #007185;
  color: #fff;
  border-color: #006272;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.sa-btn--primary:hover {
  filter: brightness(1.02);
}

.sa-btn--ghost {
  background: #fff;
  color: #111827;
  border-color: rgba(0, 0, 0, 0.12);
}
.sa-btn--ghost:hover {
  background: #f9fafb;
}

.sa-btn--link {
  background: transparent;
  color: #007185;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding-left: 4px;
  padding-right: 4px;
}
.sa-btn--link:hover {
  filter: brightness(1.05);
}

/* Focus visible */
.sa-btn:focus-visible,
.sa-cookie-modal__close:focus-visible,
.sa-switch input:focus-visible + .sa-switch__slider {
  outline: 2px solid #007185;
  outline-offset: 2px;
  border-radius: 10px;
}
/* ===== Cookie Banner Content ===== */
.sa-cookie-banner__content {
  display: flex; /* ✅ flex en desktop */
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

/* Mobile: empilement */
@media (max-width: 720px) {
  .sa-cookie-banner__content {
    flex-direction: column; /* ✅ passe en colonne */
    align-items: stretch;
    gap: 12px;
  }
}

/* Responsive */
@media (max-width: 720px) {
  .sa-cookie-banner__content {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sa-cookie-banner {
    padding: 12px;
    border-radius: 12px;
  }
  .sa-cookie-banner__actions {
    justify-content: flex-end;
  }
}

/* =========================================================
   COOKIE MODAL — Overlay accessible + panel élégant
   ========================================================= */
.sa-cookie-modal.is-hidden {
  display: none;
}
.sa-cookie-modal[aria-hidden="false"] {
  display: block;
}

.sa-cookie-modal__overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(2px);
  animation: saFade 0.18s ease;
}

.sa-cookie-modal__panel {
  position: fixed;
  z-index: 10002;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -46%);
  width: min(680px, calc(100vw - 28px));

  background: #fff;
  color: #111827;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2), 0 6px 16px rgba(0, 0, 0, 0.1);

  padding: 18px 16px 14px;
  animation: saPop 0.18s ease;
}

.sa-cookie-modal__title {
  margin: 0 32px 6px 0;
  font: 800 18px/1.25 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.sa-cookie-modal__subtitle {
  margin: 0 0 8px;
  font: 500 14px/1.5 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #4b5563;
}

.sa-cookie-modal__close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #111827;
  font: 700 18px/1 Inter, system-ui;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease;
}
.sa-cookie-modal__close:hover {
  background: #f3f4f6;
}
.sa-cookie-modal__close:active {
  transform: translateY(1px);
}

.sa-cookie-modal__options {
  margin-top: 8px;
  display: grid;
  gap: 12px;
}

.sa-cookie-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
}

.sa-cookie-row__label {
  font: 600 14px/1.4 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #1f2937;
}

/* Switch stylé */
.sa-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.sa-switch input {
  display: none;
}

.sa-switch__slider {
  position: absolute;
  inset: 0;
  background: #e5e7eb;
  border-radius: 999px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.sa-switch__slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}

.sa-switch input:checked + .sa-switch__slider {
  background: #007185;
  box-shadow: inset 0 0 0 1px #006272;
}
.sa-switch input:checked + .sa-switch__slider::before {
  transform: translateX(20px);
}

/* Actions modal */
.sa-cookie-modal__actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Animations */
@keyframes saFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes saPop {
  from {
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -46%) scale(1);
  }
}

/* Lock scroll quand modal ouverte */
.sa-noscroll {
  overflow: hidden;
}

/* =========================================================
   DARK MODE — auto via prefers-color-scheme
   ========================================================= */
@media (prefers-color-scheme: dark) {
  .sa-cookie-banner {
    background: #0b1215;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.35);
  }
  .sa-cookie-banner__title {
    color: #e5e7eb;
  }
  .sa-cookie-banner__text {
    color: #b9c2ca;
  }
  .sa-btn--ghost {
    background: #0e171b;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.1);
  }
  .sa-btn--ghost:hover {
    background: #122128;
  }

  .sa-cookie-modal__overlay {
    background: rgba(0, 0, 0, 0.55);
  }
  .sa-cookie-modal__panel {
    background: #0b1215;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.06);
  }
  .sa-cookie-modal__subtitle {
    color: #a6b1bb;
  }
  .sa-cookie-row {
    background: #0e171b;
    border-color: rgba(255, 255, 255, 0.08);
  }
  .sa-cookie-row__label {
    color: #e5e7eb;
  }
  .sa-switch__slider {
    background: #1f2a30;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
  .sa-cookie-modal__close {
    background: #0e171b;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.1);
  }
  .sa-cookie-modal__close:hover {
    background: #122128;
  }
}

/* =========================================================
   Petites améliorations d’accessibilité
   ========================================================= */
.sa-cookie-banner [tabindex="-1"]:focus {
  outline: none;
}
.sa-cookie-banner a:focus-visible,
.sa-cookie-modal a:focus-visible {
  outline: 2px solid #007185;
  outline-offset: 2px;
  border-radius: 4px;
}
/* ===== THEME ===== */
:root {
  --sa-primary: #007185; /* ta couleur */
  --sa-bg: #0b0f14cc; /* overlay foncé */
  --sa-panel: #fff;
  --sa-text: #0f172a;
  --sa-muted: #6b7280;
  --sa-shadows: 0 22px 60px rgba(2, 6, 23, 0.35);
  --sa-radius: 16px;
}

/* ===== CONTAINER ===== */
.sa-welcome.is-hidden {
  display: none;
}
.sa-welcome {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.sa-welcome__overlay {
  position: absolute;
  inset: 0;
  background: var(--sa-bg);
  opacity: 0;
  animation: saFadeIn 0.28s ease forwards;
  backdrop-filter: blur(3px);
}

/* ===== PANEL ===== */
.sa-welcome__panel {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100vw - 28px));
  margin: 8vh auto 0;
  padding: 24px 22px 22px;
  background: var(--sa-panel);
  color: var(--sa-text);
  border-radius: var(--sa-radius);
  box-shadow: var(--sa-shadows);
  transform-origin: 50% 40%;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
}

/* Entrée avec “spring-like” */
.sa-animate-in {
  animation: saPopIn 0.34s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}
/* Sortie */
.sa-animate-out {
  animation: saPopOut 0.22s ease forwards;
}

/* ===== HEAD ===== */
.sa-welcome__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111;
  display: inline-grid;
  place-items: center;
  transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}
.sa-welcome__close:hover {
  transform: translateY(-1px);
  background: #f8fafc;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.sa-welcome__title {
  font: 700 22px/1.2 Inter, system-ui, sans-serif;
  margin: 6px 40px 6px 4px;
}
.sa-welcome__lead {
  color: var(--sa-muted);
  margin: 0 4px 14px;
}

/* ===== EXCHANGE ROW (SVG animés) ===== */
.sa-exchange {
  margin: 14px 4px 10px;
}
.sa-exchange__row {
  display: grid;
  grid-template-columns: 1fr auto auto auto 1fr;
  align-items: center;
  gap: 8px;
}
.sa-exchange__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #475569;
}
.sa-exchange__svg {
  width: 68px;
  height: 68px;
}
.sa-exchange__arrows {
  width: 42px;
  height: 24px;
  opacity: 0.9;
}
.sa-exchange__box {
  width: 40px;
  height: 40px;
}

/* Animations SVG */
@keyframes saFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes saPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}
@keyframes saMoveBox {
  0% {
    transform: translateX(0);
  }
  45% {
    transform: translateX(120px);
  }
  55% {
    transform: translateX(120px);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes saArrows {
  0%,
  100% {
    opacity: 0.9;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}

/* Appliquer les animations */
.sa-exchange .seller {
  animation: saFloat 3.4s ease-in-out infinite;
}
.sa-exchange .buyer {
  animation: saFloat 3.4s ease-in-out 0.35s infinite;
}
.sa-exchange .box {
  animation: saMoveBox 3.4s ease-in-out infinite;
}
.sa-exchange .ar {
  animation: saArrows 1.4s ease-in-out infinite;
}

/* ===== BENEFITS (SVG avec “draw”) ===== */
.sa-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 12px 2px 8px;
}
.sa-benefit {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sa-benefit__icon {
  width: 26px;
  height: 26px;
}
.sa-benefit__text {
  margin: 0;
  font-size: 14px;
  color: #1f2937;
}

@keyframes saDraw {
  from {
    stroke-dasharray: 1 200;
    stroke-dashoffset: 1;
  }
  to {
    stroke-dasharray: 200 0;
    stroke-dashoffset: 0;
  }
}
.sa-benefit path,
.sa-benefit circle,
.sa-benefit rect {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: saDraw 0.9s ease forwards;
}
.sa-benefit:nth-child(2) path,
.sa-benefit:nth-child(2) circle,
.sa-benefit:nth-child(2) rect {
  animation-delay: 0.12s;
}
.sa-benefit:nth-child(3) path,
.sa-benefit:nth-child(3) circle,
.sa-benefit:nth-child(3) rect {
  animation-delay: 0.24s;
}

/* ===== CTA ===== */
.sa-welcome__cta {
  margin: 10px 4px 12px;
  color: #334155;
}
.sa-welcome__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sa-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 22px rgba(0, 113, 133, 0.32);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}
.sa-welcome__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 113, 133, 0.36);
  filter: brightness(1.03);
}

/* ===== Animations globales ===== */
@keyframes saFadeIn {
  to {
    opacity: 1;
  }
}
@keyframes saPopIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  55% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes saPopOut {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

/* ===== Accessibility: reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .sa-welcome__overlay,
  .sa-welcome__panel,
  .sa-exchange .seller,
  .sa-exchange .buyer,
  .sa-exchange .box,
  .sa-exchange .ar,
  .sa-benefit path,
  .sa-benefit circle,
  .sa-benefit rect {
    animation: none !important;
  }
}
/* =======================
   PATCH — Cartes compactes
   (colle tout en bas du CSS)
   ======================= */

/* 1) Images plus courtes et cohérentes */
.sa-card__imgwrap {
  height: auto !important;
  /* force l'abandon des hauteurs fixes */
  aspect-ratio: 4 / 5;
  /* + vertical que 1/1, carte plus courte */
  background: var(--sa-soft, #f8f8f8);
}

@media (max-width: 640px) {
  .sa-card__imgwrap {
    aspect-ratio: 1 / 1;
    /* carré sur mobile, mais */
    max-height: 220px;
    /* ...on borne la hauteur */
  }
}

/* 2) Corps de carte plus dense */
.sa-card__body {
  padding: 8px 9px 9px;
  /* 10→8 */
  gap: 4px;
  /* 6→4 */
}

.sa-card__title {
  font-size: 0.9rem;
  line-height: 1.28;
  -webkit-line-clamp: 2;
}

.sa-card__brand {
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--sa-muted);
}

.sa-card__meta {
  gap: 4px 6px;
  /* plus compact */
  margin-top: 0;
}

.sa-cond-badge {
  font-size: 0.7rem;
  padding: 3px 6px;
  /* 4px→3px */
}

/* 3) Prix + devise plus compacts */
.sa-card__pricebox {
  gap: 5px;
  margin-top: 2px;
}

.sa-card__price {
  font-size: 0.9rem;
  /* 0.95→0.9 */
  padding: 4px 7px;
  /* 6x8→4x7 */
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.sa-card__usd {
  font-size: 0.76rem;
  /* 0.78→0.76 */
  line-height: 1.1;
}

@media (max-width: 420px) {
  .sa-card__pricebox {
    flex-direction: row;
    /* évite l'empilement qui allonge */
    align-items: center;
    gap: 4px;
  }

  .sa-card__price {
    font-size: 0.88rem;
    padding: 4px 6px;
  }

  .sa-card__usd {
    font-size: 0.72rem;
  }
}

/* 4) Likes (cœur + compteur) plus petits, moins envahissants */
.sa-card__fav {
  top: 4px;
  /* 6→4 */
  right: 4px;
  /* 6→4 */
  gap: 3px;
  /* 4→3 */
  padding: 2px 5px;
  /* 4x6→2x5 */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.sa-card__fav-btn svg {
  width: 14px;
  /* 16→14 */
  height: 14px;
}

.sa-card__fav-count {
  font-size: 0.7rem;
  /* 0.75→0.7 */
  line-height: 1;
  min-width: auto;
}

@media (max-width: 480px) {
  .sa-card__fav {
    padding: 2px 4px;
    gap: 2px;
  }

  .sa-card__fav-btn svg {
    width: 13px;
    height: 13px;
  }

  .sa-card__fav-count {
    font-size: 0.68rem;
  }
}

/* 5) Stats (vues/temps) plus discrets */
.sa-card__stats {
  margin-top: 4px;
  gap: 4px;
  font-size: 0.74rem;
  /* 0.8→0.74 */
  color: var(--sa-muted);
}

/* 6) Perf + stabilité de layout
   (évite les grands placeholders) */
.sa-card.cv-auto,
.cv-auto.sa-card {
  contain-intrinsic-size: 240px 340px;
  /* plus petit que 320x420 */
}

/* 7) Petits écrans : micro-ajustements globaux */
@media (max-width: 360px) {
  .sa-card__title {
    font-size: 0.86rem;
  }

  .sa-card__brand {
    font-size: 0.78rem;
  }

  .sa-card__price {
    font-size: 0.86rem;
  }

  .sa-card__stats {
    font-size: 0.72rem;
  }
}

/* =======================
   PATCH Vinted-like — images 100% de la carte
   ======================= */

/* 1) Annule toutes les hauteurs fixes vues plus haut */
.sa-card__imgwrap {
  width: 100%;
  height: auto !important;
  /* annule 240/280/340px */
  aspect-ratio: 1 / 1 !important;
  /* carré par défaut, remplit la carte */
  background: var(--sa-soft, #f8f8f8);
  overflow: hidden;
  border-radius: 10px;
  /* option : garde tes coins */
}

/* Desktop/tablette : ratio 3/4 comme Vinted */
@media (min-width: 768px) {
  .sa-card__imgwrap {
    aspect-ratio: 3 / 4 !important;
  }
}

/* 2) L’image doit couvrir totalement le wrapper */
.sa-card__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* 3) Évite des cartes trop étroites (images paraissent petites sinon) */
@media (max-width: 640px) {
  :root {
    --sa-card-w: 180px;
    /* 160px → 180px pour des vignettes plus grandes */
  }
}

/* 4) Stabilité de layout : remet une taille intrinsèque réaliste des cartes */
.sa-card.cv-auto,
.cv-auto.sa-card {
  contain-intrinsic-size: 300px 380px;
  /* évite les sauts, mais visuel ≈ Vinted */
}

/* 5) Sécurité : si tu as encore une règle height sur .sa-card__imgwrap plus bas */
.sa-card__imgwrap[style*="height"] {
  height: auto !important;
}

/* Mobile : 2 colonnes fixes, images verticales (portrait) */
@media (max-width: 640px) {
  #sa-feed-articles {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .sa-card {
    width: 100% !important;
  }

  .sa-card__imgwrap {
    aspect-ratio: 3 / 4 !important;
    /* portrait comme Vinted */
    width: 100%;
    height: auto !important;
    overflow: hidden;
  }

  .sa-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Tablette : 3 colonnes fixes */
@media (min-width: 641px) and (max-width: 1024px) {
  #sa-feed-articles {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }

  .sa-card__imgwrap {
    aspect-ratio: 3 / 4 !important;
  }
}

/* Desktop : 4 colonnes */
@media (min-width: 1025px) and (max-width: 1439px) {
  #sa-feed-articles {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
  }

  .sa-card__imgwrap {
    aspect-ratio: 3 / 4 !important;
  }
}

/* Très grand écran : 5 colonnes */
@media (min-width: 1440px) {
  #sa-feed-articles {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
  }

  .sa-card__imgwrap {
    aspect-ratio: 3 / 4 !important;
  }
}

.sa-card__title {
  margin: 0;
  font-size: 0.9rem;
  /* 📏 taille discrète comme Vinted */
  font-weight: 400;
  /* ⚖️ normal, pas bold */
  color: #212121;
  /* texte sombre neutre */
  line-height: 1.35;
  /* lisible */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* max 2 lignes */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .sa-card__title {
    font-size: 0.85rem;
    line-height: 1.3;
  }
}

/* ========== LOADER (spinner) ========== */
.sa-loading {
  display: none;
  /* caché par défaut */
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 10px;
  margin: 8px auto 10px;
  color: #555;
  font: 600 0.95rem/1 Inter, system-ui, -apple-system, Segoe UI, Arial;
  opacity: 0.65;
  transition: opacity 0.18s ease;
}

.sa-loading.is-loading {
  display: flex;
  opacity: 1;
}

.sa-loading__text {
  letter-spacing: 0.2px;
}

/* Spinner rond — neutre, accessible, motion-safe */
.sa-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(17, 17, 17, 0.12);
  border-top-color: var(--sa-accent, #ff9900);
  animation: sa-spin 0.8s linear infinite;
}

@keyframes sa-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sa-spinner {
    animation: none;
  }
}

/* ===== Skeleton Articles (pulse, ratio 3/4) ===== */
:root {
  --sa-skel-base: #eef1f4;
}

.sa-skel.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--sa-border, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--sa-shadow, 0 2px 8px rgba(0, 0, 0, 0.06));
  content-visibility: auto;
  contain-intrinsic-size: 320px 420px;
}

/* image placeholder en 3/4 (comme tes vraies cartes produits) */
.sa-skel__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--sa-skel-base);
  animation: sa-skel-pulse 1.1s ease-in-out infinite;
}

/* lignes (titre, sous-titre, prix) */
.sa-skel__line {
  height: 12px;
  margin: 8px 10px 0;
  border-radius: 8px;
  background: var(--sa-skel-base);
  animation: sa-skel-pulse 1.1s ease-in-out infinite;
}

.sa-skel__line--sm {
  height: 10px;
  opacity: 0.9;
}

.sa-skel__line--pill {
  height: 24px;
  width: 110px;
  border-radius: 999px;
}

/* pulse soft – pas de déplacement horizontal */
@keyframes sa-skel-pulse {
  0%,
  100% {
    filter: brightness(100%);
  }

  50% {
    filter: brightness(96%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sa-skel__img,
  .sa-skel__line {
    animation: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --sa-skel-base: #1a2630;
  }

  .sa-skel.card {
    background: #0e171b;
    border-color: rgba(255, 255, 255, 0.08);
  }
}
/* ===== Skeleton Articles (clair only) ===== */
:root {
  --sa-skel-base: #f3f4f6;
  /* gris clair neutre */
}

.sa-skel.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--sa-border, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  /* fond toujours blanc */
  box-shadow: var(--sa-shadow, 0 2px 8px rgba(0, 0, 0, 0.06));
  content-visibility: auto;
  contain-intrinsic-size: 320px 420px;
}

/* image placeholder */
.sa-skel__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--sa-skel-base);
  animation: sa-skel-pulse 1.2s ease-in-out infinite;
}

/* lignes texte */
.sa-skel__line {
  height: 12px;
  margin: 8px 10px 0;
  border-radius: 8px;
  background: var(--sa-skel-base);
  animation: sa-skel-pulse 1.2s ease-in-out infinite;
}

.sa-skel__line--sm {
  height: 10px;
  opacity: 0.9;
}

.sa-skel__line--pill {
  height: 24px;
  width: 120px;
  border-radius: 999px;
}

/* effet pulse (clair) */
@keyframes sa-skel-pulse {
  0%,
  100% {
    filter: brightness(100%);
  }

  50% {
    filter: brightness(94%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sa-skel__img,
  .sa-skel__line {
    animation: none;
  }
}
@media (max-width: 420px) {
  .sa-card__pricebox {
    flex-direction: column;
    align-items: start;
    gap: 4px;
  }
}
/* === HERO – Ajustements pour très petits téléphones === */
@media (max-width: 360px), (max-height: 560px) {
  .hero-banner {
    height: clamp(240px, 46vh, 460px) !important;
    background: #f5f6f8;
    /* filet de sécurité clair si l’image tarde */
  }

  .hero-banner .hero-content {
    width: 94% !important;
    padding: 10px 10px 8px !important;
    border-radius: 14px 14px 0 0 !important;
    text-align: center !important;
  }

  .hero-banner .hero-title {
    font-size: clamp(0.95rem, 2.8vw + 0.45rem, 1.2rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
    /* moins lourd que bold */
  }

  .hero-banner .hero-subtitle {
    font-size: clamp(0.8rem, 1.6vw + 0.55rem, 0.92rem) !important;
    margin-bottom: 10px !important;
    line-height: 1.35 !important;

    /* Limite la hauteur de texte */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .hero-banner .hero-button {
    width: 94% !important;
    height: clamp(28px, 5.2vh, 34px) !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
    margin: 6px auto 6px !important;
  }

  .hero-banner .hero-link {
    font-size: 0.85rem !important;
    margin-top: 4px !important;
    display: block !important;
  }
}

.sa-cats__head {
  padding-left: 10px;
}

/* ===== Reminder (style Vinted-like) ===== */
.sa-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 12px;
}

.sa-reminder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 12px auto;

  font-size: 0.92rem;
  color: #222;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  animation: fadeIn 0.25s ease-out;
}

.sa-reminder__text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  line-height: 1.35;
}

.sa-reminder__text svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #ff9900;
  /* accent Softadastra */
}

.sa-reminder__text strong {
  font-weight: 600;
  color: #111;
}

.sa-reminder__close {
  background: none;
  border: none;
  color: #555;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}

.sa-reminder__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile : full width + police un peu plus petite */
@media (max-width: 480px) {
  .sa-reminder {
    border-radius: 10px;
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .sa-reminder__text svg {
    width: 16px;
    height: 16px;
  }
}

/* ============ Clothes promo — taille compacte & responsive ============ */

/* Base : bloc flexible, hauteur limitée */
.sa-clothes-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  /* pas collé aux bords */
  width: calc(100% - 32px);
  margin: 14px auto;

  /* fond */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  /* cap de hauteur (évite le "trop grand") */
  min-height: 180px;
  max-height: 320px;

  /* padding et coins doux */
  padding: 16px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Contenu lisible, compact */
.sa-clothes-promo__content {
  display: grid;
  gap: 8px;
  max-width: 560px;
  padding: 10px 12px;

  /* carton semi-transparent pour le contraste sur image */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
}

/* Typos compactes */
.sa-clothes-promo__label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #111;
}

.sa-clothes-promo__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1rem, 1.2vw + 0.8rem, 1.35rem);
  line-height: 1.25;
  color: #111;
}

.sa-clothes-promo__btn {
  width: fit-content;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 0;
  background: #ff9900;
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 153, 0, 0.25);
}

/* ====== Tablette (limite encore la hauteur) ====== */
@media (min-width: 641px) and (max-width: 1024px) {
  .sa-clothes-promo {
    min-height: 180px;
    max-height: 300px;
    padding: 14px 16px;
    gap: 14px;
  }

  .sa-clothes-promo__content {
    max-width: 520px;
    padding: 10px;
  }
}

/* ===== Clothes promo — mobile simplifié (≤640px) ===== */
@media (max-width: 640px) {
  .sa-clothes-promo {
    width: calc(100% - 20px);
    margin: 12px auto;
    min-height: 180px;
    max-height: 220px;
    padding: 0;
    /* plus de padding inutile */
    display: flex;
    align-items: flex-end;
    /* colle le contenu en bas */
    justify-content: flex-start;
    border-radius: 10px;
    overflow: hidden;
  }

  .sa-clothes-promo::after {
    /* léger dégradé noir en bas pour lisibilité */
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
    pointer-events: none;
  }

  .sa-clothes-promo__content {
    position: relative;
    z-index: 1;
    background: none !important;
    /* supprime fond/bloc */
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;

    padding: 12px;
    text-align: left;
    width: 100%;
    /* occupe toute la largeur en bas */
  }

  .sa-clothes-promo__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    /* blanc car direct sur image */
  }

  .sa-clothes-promo__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 4px 0 6px;
  }

  .sa-clothes-promo__btn {
    display: inline-block;
    background: #ff9900;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  }
}

/* ====== Très petits téléphones ====== */
@media (max-width: 360px) {
  .sa-clothes-promo {
    aspect-ratio: 3 / 2;
    /* un peu plus bas pour réduire la hauteur */
    max-height: 210px;
    padding: 10px;
  }

  .sa-clothes-promo__title {
    -webkit-line-clamp: 2;
  }

  .sa-clothes-promo__btn {
    width: 94%;
    padding: 9px 12px;
    font-size: 0.9rem;
  }
}

/* Mobile: compacter l'empilement dans .sa-clothes-promo__content */
@media (max-width: 640px) {
  .sa-clothes-promo__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* contrôle unique de l’espacement entre éléments */
    gap: 20px;
    /* ajuste 4–8px selon goût */
    padding: 12px;
    /* évite le gros padding vertical */
  }

  /* Annule les marges par défaut qui créent des “trous” */
  .sa-clothes-promo__content > * {
    margin: 0 !important;
  }

  .sa-clothes-promo__label {
    font-size: 0.8rem;
    font-weight: 600;
  }

  .sa-clothes-promo__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    /* compact mais lisible */
  }

  .sa-clothes-promo__btn {
    align-self: flex-start;
    /* reste à gauche */
    padding: 8px 14px;
    font-size: 0.9rem;
    line-height: 1;
    /* évite la hauteur extra */
    /* pas de margin-top: géré par gap */
  }
}
