.clients-slider {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding-bottom: 10px;
}

.clients-slider::-webkit-scrollbar {
  display: none;
}

.clients-track {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.client-card {
  min-width: 300px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.client-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-card span {
  position: absolute;
  bottom: 12px;
  font-size: 20px;
  left: 16px;
  color: white;
  font-weight: 600;
}

.clients-slider:active {
  cursor: grabbing;
}

.clients-wrapper {
  position: relative;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;

  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 18px;

  cursor: pointer;
  transition: 0.3s;
}

.slider-btn:hover {
  background: rgba(0,255,200,0.3);
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

@media (max-width: 768px) {
  .slider-btn {
    display: none;
  }
}

.client-card {
  position: relative;
  overflow: hidden;
}

.client-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay sombre dégradé */
.client-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.2),
    transparent
  );
  z-index: 1;
}

/* Texte centré */
.client-card span {
  position: absolute;
  z-index: 2;

  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  width: 90%;
  text-align: center;

  color: #fff;
  font-weight: 600;
  font-size: 20px;
}

.client-card span {
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.client-card span {
  bottom: 7%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .values-slider {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px;
  }

  .values-slider::-webkit-scrollbar {
    display: none;
  }

  .values-grid {
    display: flex;
    gap: 16px;
    width: max-content;
  }

  .value-card {
    width: 260px;
    min-width: 260px;
    flex: 0 0 260px;
  }
  .value-card {
    width: 82vw;
    min-width: 82vw;
    flex: 0 0 82vw;
  }

  .values-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
  }

  .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: 0.3s;
    cursor: pointer;
  }

  .dot.active {
    width: 20px;
    border-radius: 10px;
    background: #00ffc8;
  }

  .values-slider {
    scroll-behavior: smooth;
  }

}


/* mobile uniquement */
@media (max-width: 768px) {
  .values-dots {
    display: flex;
  }
}
