/* ========================================
   SERVICES 6 — SPOTLIGHT STACK
   ======================================== */
.services-6 {
  padding: 100px 5%;
  background: var(--gray-light);
  position: relative;
  overflow: hidden;
}

/* ── Curseur custom ── */
.services-6__cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
  transition:
    opacity 0.3s,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s;
  will-change: transform;
}
.services-6__cursor.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.services-6__cursor.is-hovering-list {
  background: var(--primary);
}
.services-6__cursor-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── Layout ── */
.services-6__container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ── Liste gauche ── */
.services-6__list-header {
  margin-bottom: 40px;
}
.services-6__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 12px;
}
.services-6__list-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--primary);
  line-height: 1.1;
}

/* Item */
.services-6__item {
  position: relative;
  margin-bottom: 4px;
}
.services-6__item-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: transparent;
  transition: background 0.3s;
  cursor: pointer;
}
.services-6__item.is-active .services-6__item-inner,
.services-6__item:hover .services-6__item-inner {
  background: var(--white);
}

.services-6__item-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: rgba(0, 0, 0, 0.15);
  min-width: 32px;
  transition: color 0.3s;
}
.services-6__item.is-active .services-6__item-num {
  color: var(--secondary);
}

.services-6__item-text {
  flex: 1;
}
.services-6__item-text h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
  transition: color 0.3s;
}
.services-6__item.is-active .services-6__item-text h3 {
  color: var(--secondary);
}
.services-6__item-text p {
  font-size: 0.85rem;
  color: var(--gray-dark);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.5s ease,
    opacity 0.4s ease;
}
.services-6__item.is-active .services-6__item-text p {
  max-height: 80px;
  opacity: 1;
}

/* Flèche */
.services-6__item-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: rotate(-45deg);
  opacity: 0;
  text-decoration: none;
}
.services-6__item.is-active .services-6__item-arrow {
  opacity: 1;
  transform: rotate(0deg);
  background: var(--secondary);
  border-color: var(--secondary);
}
.services-6__item-arrow svg {
  width: 14px;
  height: 14px;
  color: var(--white);
}

/* Barre de progression */
.services-6__item-bar {
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s linear;
}

/* CTA */
.services-6__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  margin-top: 32px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s;
}
.services-6__cta:hover {
  background: var(--secondary);
}
.services-6__cta svg {
  width: 16px;
  height: 16px;
}

/* ── Stage droit ── */
.services-6__stage {
  position: relative;
  height: 580px;
}
.services-6__stack {
  position: relative;
  height: 100%;
}

/* ── Cartes : états par défaut (toutes cachées sauf active/prev/next) ── */
.services-6__card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
  opacity: 0;
  transform: perspective(1000px) translateX(100px) rotateY(-14deg) scale(0.88);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

/* Carte précédente — visible, décalée à gauche */
.services-6__card.is-prev {
  opacity: 0.35;
  transform: perspective(1000px) translateX(-50px) rotateY(8deg) scale(0.92);
  z-index: 1;
}

/* Carte active — plein écran, au centre */
.services-6__card.is-active {
  opacity: 1;
  transform: perspective(1000px) translateX(0) rotateY(0deg) scale(1);
  pointer-events: auto;
  z-index: 2;
}

/* Carte suivante — visible, décalée à droite (même style que prev, miroir) */
.services-6__card.is-next {
  opacity: 0.35;
  transform: perspective(1000px) translateX(50px) rotateY(-8deg) scale(0.92);
  z-index: 1;
}

/* Fond image */
.services-6__card-bg {
  position: absolute;
  inset: 0;
}
.services-6__card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.services-6__card.is-active .services-6__card-bg img {
  transform: scale(1.04);
}

/* Overlay */
.services-6__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.3) 60%,
    transparent 100%
  );
}

/* Contenu */
.services-6__card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.services-6__card-icon {
  width: 52px;
  height: 52px;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  transform: translateY(10px);
  opacity: 0;
  transition:
    transform 0.5s 0.1s ease,
    opacity 0.5s 0.1s ease;
}
.services-6__card.is-active .services-6__card-icon {
  transform: translateY(0);
  opacity: 1;
}
.services-6__card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.services-6__card-content h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 16px;
  transform: translateY(15px);
  opacity: 0;
  transition:
    transform 0.5s 0.2s ease,
    opacity 0.5s 0.2s ease;
}
.services-6__card.is-active .services-6__card-content h3 {
  transform: translateY(0);
  opacity: 1;
}

/* Sous-services */
.services-6__card-subs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  transform: translateY(15px);
  opacity: 0;
  transition:
    transform 0.5s 0.3s ease,
    opacity 0.5s 0.3s ease;
}
.services-6__card.is-active .services-6__card-subs {
  transform: translateY(0);
  opacity: 1;
}
.services-6__card-subs li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--white);
}
.services-6__card-subs svg {
  width: 14px;
  height: 14px;
  color: var(--secondary);
  flex-shrink: 0;
}

/* Bouton carte */
.services-6__card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--secondary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  align-self: flex-start;
  transform: translateY(15px);
  opacity: 0;
  transition: all 0.4s ease;
}

.services-6__card.is-active .services-6__card-btn {
  transform: translateY(0);
  opacity: 1;
}
.services-6__card-btn:hover {
  background: var(--white);
  color: var(--primary);
}

/* Numéro déco */
.services-6__card-deco {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--white);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ── Progress dots ── */
.services-6__progress {
  position: absolute;
  bottom: -36px;
  left: 0;
  display: flex;
  gap: 10px;
}
.services-6__progress-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.services-6__progress-dot.is-active {
  background: var(--secondary);
  width: 28px;
  border-radius: 20px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .services-6__container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .services-6__stage {
    height: 440px;
  }
  .services-6 {
    cursor: auto;
  }
  .services-6__cursor {
    display: none;
  }
  .services-6__item {
    cursor: pointer;
  }
}
@media (max-width: 640px) {
  .services-6__stage {
    height: 380px;
  }
  .services-6__card-content {
    padding: 28px 24px;
  }
  .services-6__card-content h3 {
    font-size: 1.4rem;
  }
}
