/* =============================================
   SERVICES - Section dark, glassmorphism, blobs
   ============================================= */

#service {
  background: var(--dark);
  padding: 80px 6vw;
  position: relative;
  overflow: hidden;
}

/* Header */
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.services-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
}

.services-header h2 span {
  color: var(--orange);
}

.services-header p {
  color: rgba(255, 255, 255, 0.5);
  max-width: 380px;
  line-height: 1.6;
  font-size: 14px;
  padding-top: 8px;
}

/* Grid de cartes */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  transition: transform .3s, border-color .3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.4);
}

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

/* Mockup preview dans la card */
.service-mockup {
  border-radius: 12px;
  background: #2d2d44;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-mockup img[alt="Xefi"] {
  object-fit: contain;
  background: radial-gradient(circle at 50% 40%, #1d1d2b, #0c0c12);
  padding: 50px 56px;
}

.service-mockup img[alt="Pimms"] {
  object-fit: contain;
  background: #fff;
  padding: 16px;
}

.mockup-ui {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 6px;
  padding: 10px;
}

.mockup-panel {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  flex: 1;
  padding: 8px;
}

.mockup-bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 6px;
}

.mockup-bar.accent {
  background: var(--orange);
  width: 60%;
}

.mockup-bar.short {
  width: 40%;
}

.mockup-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.7;
  margin: 4px 0;
}

/* Flèche en bas à droite */
.service-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: background .2s;
}

.service-card:hover .service-arrow {
  background: var(--orange);
}

/* Overlay "Projet privé" */
.service-card--private {
  cursor: default;
}

.private-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.88);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity .3s ease;
}

.service-card--private:hover .private-overlay {
  opacity: 1;
}

.private-lock {
  font-size: 36px;
}

.private-label {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}

.private-techs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.private-techs span {
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  font-family: 'Nunito', sans-serif;
}

/* Blobs décoratifs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.4;
}

.blob-1 {
  width: 200px;
  height: 200px;
  background: var(--orange);
  top: -40px;
  right: 30%;
}

.blob-2 {
  width: 160px;
  height: 160px;
  background: #c2410c;
  bottom: 20px;
  left: 20%;
}

/* Dots du carousel */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background .2s, width .2s;
  cursor: pointer;
}

.dot.active {
  background: var(--orange);
  width: 28px;
  border-radius: 6px;
}

/* ── Responsive ── */

/* Tablette */
@media (max-width: 1024px) and (min-width: 601px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  #service {
    padding: 60px 5vw;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-header {
    flex-direction: column;
    gap: 12px;
  }

  .service-mockup {
    height: 150px;
  }
}

.service-card { text-decoration: none; }

.service-mockup img[alt="Pesto"] {
  object-fit: contain;
  background: #f6f4ef;
  padding: 10px 16px;
}

/* ── Switch Professionnels / Perso ── */
.services-header { align-items: center; }

.proj-switch {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
}
.proj-switch button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, .6);
  white-space: nowrap;
  transition: color .3s;
}
.proj-switch button:hover { color: #fff; }
.proj-switch button.is-on { color: #fff; }
.proj-switch-thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #8B1538, #C41E5E);
  box-shadow: 0 6px 20px -6px rgba(196, 30, 94, .8), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .55s cubic-bezier(.34, 1.45, .5, 1), width .55s cubic-bezier(.34, 1.45, .5, 1);
}

.service-card.is-hidden { display: none; }

@media (max-width: 600px) {
  .services-header { align-items: flex-start; }
  .proj-switch button { padding: 10px 14px; font-size: 13px; }
}

.private-desc {
  max-width: 82%;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .75);
}
