/* === SERVICES SECTION - DESIGN 2025 === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--delay, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.services-section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
  isolation: isolate;
}

.services-container {
  max-width: min(1200px, 90vw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* === HEADER ÉPURÉ === */
.services-header {
  text-align: center;
  margin-bottom: clamp(3rem, 8vw, 5rem);
  max-width: 640px;
  margin-inline: auto;
}

.services-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.06);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  margin-bottom: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-badge:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}

.services-title {
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 600;
  line-height: 1.1;
  color: #0f172a;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.02em;
}

.services-title em {
  font-style: normal;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-accent {
  display: block;
  font-weight: 400;
  color: #64748b;
  margin-top: 0.25rem;
}

.services-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.services-subtitle strong {
  color: #334155;
  font-weight: 500;
}

/* === GRID MODERNE === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

/* === CARDS ÉPURÉES === */
.service-card {
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2rem);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    transparent,
    var(--service-color, #6366f1)
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.1);
}

.service-card:hover::before {
  opacity: 0.6;
}

/* === HEADER CARD === */
.service-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--service-color, #6366f1);
  background: color-mix(
    in srgb,
    var(--service-color, #6366f1) 10%,
    transparent
  );
  border-radius: 12px;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.service-card:hover .service-icon {
  transform: scale(1.05);
  background: color-mix(
    in srgb,
    var(--service-color, #6366f1) 15%,
    transparent
  );
}

.service-meta {
  flex: 1;
  min-width: 0;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.service-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* === CONTENT ÉPURÉ === */
.service-content {
  margin-bottom: 1.5rem;
}

.service-price {
  margin-bottom: 1.25rem;
}

.price-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--service-color, #6366f1);
  display: block;
  line-height: 1.2;
}

.price-unit {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 400;
}

/* === FEATURES MINIMALISTES === */
.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-features li {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 4px;
  height: 4px;
  background: var(--service-color, #6366f1);
  border-radius: 50%;
}

/* === TIMING DISCRET === */
.service-timing {
  font-size: 0.85rem;
  color: #64748b;
  background: #f8fafc;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border-left: 2px solid var(--service-color, #6366f1);
}

/* === CTA ÉPURÉ === */
.service-footer {
  margin-top: auto;
}

.service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--service-color, #6366f1);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.service-link:hover::before {
  left: 100%;
}

.service-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px
    color-mix(in srgb, var(--service-color, #6366f1) 40%, transparent);
}

.service-link svg {
  transition: transform 0.3s ease;
}

.service-link:hover svg {
  transform: translateX(2px);
}

/* === CTA SECTION === */
.services-cta {
  text-align: center;
  padding: clamp(2rem, 6vw, 3rem);
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  position: relative;
}

.cta-content {
  max-width: 480px;
  margin: 0 auto;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.cta-text {
  font-size: 1rem;
  color: #64748b;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cta-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: 1px solid transparent;
}

.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.cta-secondary {
  background: transparent;
  color: #6366f1;
  border: 1px solid #e2e8f0;
}

.cta-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* === GLACY EFFECT POUR CTA === */
.cta-primary,
.cta-secondary {
  position: relative;
  overflow: hidden;
}

.cta-primary::before,
.cta-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}

.cta-primary:hover::before,
.cta-secondary:hover::before {
  left: 100%;
}

/* === ÉTAT VIDE === */
.services-empty {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 2rem;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.services-empty h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 1rem 0;
}

.services-empty p {
  color: #64748b;
  margin: 0 0 2rem 0;
  line-height: 1.6;
}

.empty-cta {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: #6366f1;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.empty-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === RESPONSIVE MODERNE === */
@container (max-width: 320px) {
  .service-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .service-icon {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card {
    animation: none;
  }

  .service-card:hover {
    transform: none;
  }

  .service-link:hover {
    transform: none;
  }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
  .services-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%),
      radial-gradient(
        ellipse at top,
        rgba(99, 102, 241, 0.1) 0%,
        transparent 60%
      );
  }

  .service-card {
    background: #1e293b;
    border-color: #334155;
  }

  .service-title,
  .services-title,
  .cta-title {
    color: #f8fafc;
  }

  .service-subtitle,
  .services-subtitle,
  .cta-text {
    color: #cbd5e1;
  }

  .service-timing {
    background: #334155;
  }
}
