/* ----------------------------------------- COLLECTIONS ----------------------------------------- */
.collections {
  background-color: var(--bg);
  margin: 10px;
  padding: 10px 10px 20px 10px;
  border-radius: 40px;
}

.collections .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--secondary);
  padding: 8px 15px;
  margin-bottom: -10px;
}

.collections .header h2 {
  color: var(--secondary);
  font-size: 1.5rem;
  margin: 0;
}

.header h2.brush-full {
  display: inline-block;
  padding: 0 20px;
  background: #d1ebe9;
  border-radius: 0;
  transform: rotate(-1deg);
}


.collections .header a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-size: 1rem;
  transition: background-color 0.3s ease;
  margin-bottom: -28px;
}

.collections .header a svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.collections .header a:hover {
  text-decoration: underline;
}

.collections .collection-cards {
  display: flex;
  gap: 20px;
  overflow: hidden; /* Ensure container clips overflow */
  position: relative; /* Added for absolute positioning of arrows */
  perspective: 1200px;
}

.collections .collection-cards > svg {
    position: absolute;
    top: 55%;
    transform: translateY(-40%);
    z-index: 100;
    cursor: pointer;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    padding: 8px; /* Add some clickable area/background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 40px !important; /* Force size including padding */
    height: 40px !important;
}

.collections .collection-cards > svg:first-child {
    left: 10px;
}

.collections .collection-cards > svg:last-child {
    right: 10px;
}

/* Ensure the cards container takes remaining space and allows scrolling */
.collections .collection-cards .cards {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 15px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  margin: 10px 0 15px 0;
  transform-style: preserve-3d;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc(50% - 100px);
}

.collections .collection-cards .cards::-webkit-scrollbar {
  display: none;
}

.collections .collection-cards .cards .card {
  flex: 0 0 280px;
  min-width: 280px;
  scroll-snap-align: center;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.collections .collection-cards .collection-thumbnail  {
  margin: 10px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 445px;
  flex: 0 0 250px;
  cursor: pointer;
}

.collections .collection-cards .collection-thumbnail img {
  max-height: 443px;
  border-radius: 8px;
}

/* ----------------------------------------- Besoins ----------------------------------------- */
.besoin-block {
  margin: 12px 10px 22px;
}

.besoin-banner-link {
  display: block;
  width: 100%;
}

.besoin-banner-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* ---------------------------------- Our Promec ---------------------------------- */
.our-promec {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 10px 10px;
  align-items: stretch;
}

.our-promec > div {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.our-promec img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.our-promec h2 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.our-promec p {
  font-size: 0.9rem;
  color: var(--muted-text);
  line-height: 1.4;
}

/* ----------------------------------------- Static Images ----------------------------------------- */
.static-container {
  position: relative;
  background-color: transparent;
  margin: 20px 10px;
  padding: 0 35px;
}

.static-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 15px 35px;
  margin-left: 30px;
}

.static-track::-webkit-scrollbar {
  display: none;
}

.static-container .static-img-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 170px;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--secondary);
  transition: transform 0.28s ease;
}

.static-container .static-img-link:hover {
  transform: translateY(-5px);
}

.static-container .static-img-link span {
  letter-spacing: 0.6px;
  font-size: 0.85rem;
  font-weight: 700;
}

.static-container img {
  border: 2px solid #d3e8e8;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(64, 116, 116, 0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.static-container .static-img-link:hover img {
  transform: scale(1.04);
  box-shadow: 0 14px 28px rgba(64, 116, 116, 0.3);
}

.static-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #bdd8d8;
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(47, 94, 94, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 3;
}

.static-nav-btn:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 9px 18px rgba(47, 94, 94, 0.24);
}

.static-nav-left {
  left: 16px;
  background-color: var(--bg);
}

.static-nav-right {
  right: 16px;
  background-color: var(--bg);

}

.static-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .besoin-block {
    margin: 10px 6px 18px;
  }

  .besoin-banner-image {
    border-radius: 16px;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain !important;
    object-position: center;
    background-color: transparent;
  }

  .collections{
    padding: 0;
  }

  .collections h2 {
    font-size: 1rem;
  }

  .header h2.brush-full {
    display: inline-block;
    padding: 0 5px;
    background: #d1ebe9;
    border-radius: 0;
    transform: rotate(-1deg);
    font-size: 1rem;
  }

  .collections .header {
    padding: 0;
  }

  .collections .header a {
    margin-bottom: -10px;
  }

  .static-container {
    margin: 12px 6px 24px;
    padding: 8px 0;
  }

  .static-track {
    gap: 12px;
    padding: 4px 0 10px;
    scroll-padding-inline: 34px;
  }

  .static-container .static-img-link {
    min-width: 106px;
    gap: 6px;
  }

  .static-container .static-img-link span {
    font-size: 0.72rem;
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0.35px;
  }

  .static-container img {
    width: 102px;
    height: 102px;
  }

  .static-nav-btn {
    width: 30px;
    height: 30px;
    border-width: 1px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(47, 94, 94, 0.18);
  }

  .static-nav-left {
    left: 2px;
  }

  .static-nav-right {
    right: 2px;
  }

  .collections .collection-cards {
    margin-top: -10px;
  }

  .collections .collection-cards .cards {
    --mobile-card-width: min(82vw, 280px);
    padding: 10px calc((100% - var(--mobile-card-width)) / 2) 24px;
    scroll-padding-inline: calc((100% - var(--mobile-card-width)) / 2);
  }

  .collections .collection-cards .cards .card {
    flex: 0 0 var(--mobile-card-width);
    min-width: var(--mobile-card-width);
  }

  .categories-wrapper {
    margin: 8px 0 15px 0;
  }

  .collections .collection-cards > svg {
    width: 50px !important;
    height: 50px !important;
    top: 40%;
  }

  .collections .collection-cards > svg:last-child {
    width: 50px !important;
    height: 50px !important;
  }

}

@media (max-width: 480px) {
  .besoin-banner-image {
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 14px;
    object-fit: contain !important;
    object-position: center;
  }

  .static-track {
    gap: 10px;
    padding: 4px 30px 8px;
    scroll-padding-inline: 30px;
    margin-left: -20px;
  }

  .static-container .static-img-link {
    min-width: 96px;
  }

  .static-container img {
    width: 92px;
    height: 92px;
  }

  .static-container .static-img-link span {
    font-size: 0.68rem;
  }

  .static-nav-btn {
    width: 28px;
    height: 28px;
  }
}
