/* ===== Services Detail Section ===== */
.services-detail-section {
  padding: 0 0;
  background: #040510;
  position: relative;
  overflow: visible;
  z-index: 2;
}

.services-detail-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, rgba(147, 51, 234, 0.05) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
}

.services-detail-section::after {
    content: "";
    position: absolute;
    top: -15%;
    left: -5%;
    width: 50%;
    height: 500px;
    background: #00fff41f; 
    filter: blur(35px);
    z-index: -1;
}

.services-detail-section .content {
  display: block !important;
  max-width: 1200px !important;
  width: 90% !important;
  margin: 0 auto !important;
}

.services-detail-container {
  display: flex;
  gap: 60px;
}

/* Sélecteur à gauche */
.services-selector {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-tab {
  position: relative;
  padding: 20px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-tab:hover {
  border-left-color: rgba(97, 142, 255, 0.5);
}

.service-tab.active {
  border-left-color: var(--primary);
  background: rgba(97, 142, 255, 0.1);
}

.service-tab h3 {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 10px 0;
}

.service-tab.active h3 {
  color: #fff;
}

/* Progress bar animation */
.tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width 5s linear;
}

.service-tab.active .tab-progress {
  width: 100%;
}

/* Contenu à droite */
.services-content {
  flex: 1;
}

.service-content-item {
  display: none;
}

.service-content-item.active {
  display: block;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.services-detail-section .text-content h2 {
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 15px 0;
}

.services-detail-section .text-content p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0;
}

/* Media Content */
.media-content {
  background: rgba(97, 142, 255, 0.05);
  border: 1px solid rgba(97, 142, 255, 0.2);
  border-radius: 16px;
  padding: 25px;
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.frame-decoration {
  display: none;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  cursor: pointer;
}

.design-overlay {
  position: absolute;
  bottom: 40px;
  right: 40px;
}

.design-tag {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Devices showcase */
.devices-showcase {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
  height: 100%;
}

.device {
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
}

.device.desktop {
  flex: 2;
  border: 6px solid #2d3748;
  border-radius: 10px;
}

.device.mobile {
  flex: 0.8;
  border: 6px solid #2d3748;
  border-radius: 14px;
}

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

/* Responsive */
@media (max-width: 900px) {
  .services-detail-container {
    flex-direction: column;
  }

  .services-selector {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }

  .service-tab {
    min-width: 200px;
  }

  .services-detail-section .text-content h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .services-detail-section {
    padding: 80px 0;
  }

  .service-tab {
    padding: 20px;
  }

  .tab-number {
    font-size: 24px;
  }

  .service-tab h3 {
    font-size: 18px;
  }

  .text-content h2 {
    font-size: 28px;
  }

  .text-content p {
    font-size: 16px;
  }

  .media-content {
    padding: 20px;
  }

  .devices-showcase {
    flex-direction: column;
    align-items: center;
  }

  .device.mobile {
    transform: translateY(0);
  }
}
