/* ============================================
   SERVICES HUB - STYLES SCOPÉS PREMIUM
   Préfixe: .services-hub-*
   Design raffiné et haut de gamme
   ============================================ */

/* Variables CSS Premium */
:root {
  --services-premium-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --services-premium-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --services-premium-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.07);
  --services-premium-shadow-xl: 0 24px 56px rgba(0, 0, 0, 0.08);
  --services-premium-radius: 20px;
  --services-premium-border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Fond de page premium : off-white / lavande très clair, halos discrets, grain léger */
.services-hub-wrapper {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.services-hub-wrapper::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle at 30% 30%, rgba(196, 181, 253, 0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.services-hub-wrapper::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle at 70% 70%, rgba(196, 181, 253, 0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.services-hub-wrapper > * {
  position: relative;
  z-index: 1;
}

/* Fond : gradient off-white/lavande + grain ultra léger (une seule règle) */
.services-hub-wrapper {
  background-color: #FAFAFC;
  background-image:
    linear-gradient(180deg, #FAFAFC 0%, #F8F7FC 40%, #F5F3FF 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-blend-mode: normal, overlay;
  background-size: 100% 100%, 200px 200px;
  background-position: 0 0, 0 0;
}

/* Hero Section */
.services-hub-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 4rem;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

.services-hub-hero__image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.services-hub-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.services-hub-hero__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #C4B5FD 0%,
    #A78BFA 20%,
    #8B5CF6 40%,
    #7C3AED 60%,
    #6D28D9 80%,
    #5B21B6 100%
  );
  position: relative;
  overflow: hidden;
}

/* Effet de brillance animé - très subtil et raffiné */
.services-hub-hero__placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.02) 20%,
    transparent 50%
  );
  animation: shine 25s infinite ease-in-out;
  pointer-events: none;
}

.services-hub-hero__placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.02) 100%
  );
  pointer-events: none;
}

@keyframes shine {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translate(20%, 20%) rotate(90deg);
    opacity: 0.6;
  }
}

.services-hub-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 2;
}

.services-hub-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.services-hub-hero__h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-hub-hero__h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 2rem;
  opacity: 0.98;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 15px rgba(0, 0, 0, 0.15);
}

.services-hub-hero__micro {
  font-size: clamp(1rem, 1.5vw, 1.375rem);
  margin-bottom: 3rem;
  opacity: 0.95;
  line-height: 1.7;
  letter-spacing: 0.01em;
  font-weight: 400;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.services-hub-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.services-hub-hero__cta {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.services-hub-hero__cta--primary {
  background: linear-gradient(135deg, #2563eb 0%, #6366f1 50%, #8b5cf6 100%);
  color: white;
  box-shadow: 
    0 4px 15px rgba(37, 99, 235, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

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

.services-hub-hero__cta--primary:hover::before {
  left: 100%;
}

.services-hub-hero__cta--primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 8px 25px rgba(37, 99, 235, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}

.services-hub-hero__cta--secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.services-hub-hero__cta--secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.services-hub-hero__chips {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.services-hub-chip {
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.services-hub-chip:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Universes Conversation - Design premium harmonisé */
.services-hub-universes {
  padding: 4rem 1rem 5rem;
  background: transparent;
  margin: 0 1rem;
}

.services-universe-conversation {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Cartes univers : rayon unique, ombres douces, bordure hairline */
.services-universe-bubble {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(250, 248, 255, 0.95) 100%
  );
  border-radius: var(--services-premium-radius);
  padding: 2.75rem 3rem;
  box-shadow: var(--services-premium-shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: var(--services-premium-border);
  backdrop-filter: blur(20px);
  overflow: visible;
  max-width: 75%;
  margin-left: 8%;
  margin-right: auto;
  animation: bubbleFloat 10s ease-in-out infinite;
}

.services-universe-bubble[data-index="0"] { animation-delay: 0s; }
.services-universe-bubble[data-index="1"] {
  animation-delay: 0.3s;
  margin-left: auto;
  margin-right: 8%;
}
.services-universe-bubble[data-index="2"] { animation-delay: 0.6s; }
.services-universe-bubble[data-index="3"] {
  animation-delay: 0.9s;
  margin-left: auto;
  margin-right: 8%;
}
.services-universe-bubble[data-index="4"] { animation-delay: 1.2s; }
.services-universe-bubble[data-index="5"] {
  animation-delay: 1.5s;
  margin-left: auto;
  margin-right: 8%;
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Queue bulle : très discret (décor clipart supprimé visuellement) */
.services-universe-bubble__tail {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  bottom: 30px;
  opacity: 0.12;
}

.services-universe-bubble[data-index="0"] .services-universe-bubble__tail,
.services-universe-bubble[data-index="2"] .services-universe-bubble__tail,
.services-universe-bubble[data-index="4"] .services-universe-bubble__tail {
  left: -20px;
  border-width: 20px 20px 0 0;
  border-color: rgba(120, 113, 108, 0.2) transparent transparent transparent;
}

.services-universe-bubble[data-index="1"] .services-universe-bubble__tail,
.services-universe-bubble[data-index="3"] .services-universe-bubble__tail,
.services-universe-bubble[data-index="5"] .services-universe-bubble__tail {
  right: -20px;
  border-width: 20px 0 0 20px;
  border-color: rgba(120, 113, 108, 0.2) transparent transparent transparent;
}

.services-universe-bubble__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.services-universe-bubble__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.services-universe-bubble__title {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

/* Médaillon sobre : bord fin, fond translucide, ombre légère */
.services-universe-bubble__emoji-wrapper {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--services-premium-shadow-sm);
  transition: box-shadow 0.3s ease;
}

.services-universe-bubble__emoji {
  font-size: 2rem;
  line-height: 1;
  display: block;
  animation: emojiFloat 8s ease-in-out infinite;
}

@keyframes emojiFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.services-universe-bubble:hover .services-universe-bubble__emoji-wrapper {
  box-shadow: var(--services-premium-shadow-md);
}

.services-universe-bubble__baseline {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-weight: 600;
  background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 50%, #C4B5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.5;
  font-style: italic;
}

.services-universe-bubble__text {
  font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
  color: #64748B;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  flex-grow: 1;
}

/* CTA unifié : dégradé Junspro discret, ombre douce, hover lift 1–2px, focus ring */
.services-universe-bubble__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: white;
  border-radius: var(--services-premium-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--services-premium-shadow-sm);
  align-self: flex-start;
  margin-top: 0.5rem;
}

.services-universe-bubble__cta:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.5);
  outline-offset: 2px;
}

.services-universe-bubble__cta svg {
  transition: transform 0.25s ease;
}

.services-universe-bubble__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--services-premium-shadow-md);
}

.services-universe-bubble__cta:hover svg {
  transform: translateX(3px);
}

.services-universe-bubble:hover {
  transform: translateY(-2px);
  box-shadow: var(--services-premium-shadow-lg);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Comment ça marche : bloc premium, pastilles minimalistes, timeline claire */
.services-hub-how-it-works {
  padding: 4rem 2rem 5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border-radius: var(--services-premium-radius);
  margin: 0 1rem 4rem;
  box-shadow: var(--services-premium-shadow-md);
  border: var(--services-premium-border);
}

.services-hub-section-title {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #1E293B;
  letter-spacing: -0.02em;
}

.services-hub-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

.services-hub-step {
  text-align: center;
  padding: 2rem 1.5rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.services-hub-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pastille numérotée minimaliste (remplace gros ronds) */
.services-hub-step__number {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
  box-shadow: var(--services-premium-shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.services-hub-step__title {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0F172A;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.services-hub-step__text {
  font-size: 0.9375rem;
  color: #64748B;
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 768px) {
  .services-hub-hero__h1 {
    font-size: 2rem;
  }
  
  .services-hub-hero__h2 {
    font-size: 1.5rem;
  }
  
  .services-hub-hero__micro {
    font-size: 1rem;
  }
  
  .services-universe-conversation {
    gap: 2rem;
    padding: 1rem 0;
  }

  .services-universe-bubble {
    max-width: 95%;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: var(--services-premium-radius) !important;
    padding: 2rem 1.5rem;
  }

  .services-universe-bubble:nth-child(even) {
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: var(--services-premium-radius) !important;
  }

  .services-universe-bubble__emoji-wrapper {
    width: 48px;
    height: 48px;
  }

  .services-universe-bubble__emoji {
    font-size: 1.75rem;
  }

  .services-universe-bubble__tail {
    display: none;
  }

  .services-universe-bubble__title {
    font-size: 1.5rem;
  }

  .services-universe-bubble__baseline {
    font-size: 1rem;
  }

  .services-universe-bubble__text {
    font-size: 0.9375rem;
  }
  
  .services-hub-steps {
    grid-template-columns: 1fr;
  }

  .services-hub-how-it-works {
    padding: 3rem 1rem 4rem;
    margin: 0 1rem 3rem;
  }
}

/* prefers-reduced-motion : désactiver animations (hors hero) */
@media (prefers-reduced-motion: reduce) {
  .services-universe-bubble {
    animation: none;
  }

  .services-universe-bubble__emoji {
    animation: none;
  }

  .services-hub-step {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
