/* 070 — Blob Field
   Fond d'ambiance : blobs de gradient organiques qui morphent (border-radius)
   et dérivent lentement (transform), superposés en mix-blend-mode: screen.
   Chaque blob a sa propre cadence — le champ ne se répète jamais visuellement. */

.blob-field {
  position: relative;
  width: 100%;
  min-height: 240px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ml-bg, #0d1017);
  isolation: isolate;
}

.blob-field__blob {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 46% 54% 60% 40% / 50% 44% 56% 50%;
  filter: blur(32px);
  mix-blend-mode: screen;
  opacity: 0.65;
  will-change: transform, border-radius;
  animation:
    blob-field-morph 6.5s ease-in-out -2s infinite alternate,
    blob-field-drift 11s ease-in-out -4s infinite alternate;
}

.blob-field__blob--1 {
  top: -22%;
  left: -14%;
  background: radial-gradient(circle at 34% 32%, var(--blob-field-c1, #7c8cff), transparent 68%);
}

.blob-field__blob--2 {
  right: -16%;
  bottom: -26%;
  background: radial-gradient(circle at 60% 60%, var(--blob-field-c2, #2dd4bf), transparent 68%);
  animation-duration: 8s, 13s;
  animation-delay: -3s, -6s;
}

.blob-field__blob--3 {
  top: 18%;
  left: 36%;
  width: 46%;
  background: radial-gradient(circle at 45% 40%, var(--blob-field-c3, #a78bfa), transparent 66%);
  opacity: 0.55;
  animation-duration: 5.5s, 9s;
  animation-delay: -4s, -2s;
}

.blob-field__blob--4 {
  bottom: -14%;
  left: 4%;
  width: 40%;
  background: radial-gradient(circle at 40% 55%, var(--blob-field-c4, #f472b6), transparent 64%);
  opacity: 0.38;
  animation-duration: 9s, 15s;
  animation-delay: -5s, -9s;
}

/* Contenu par-dessus le champ (mini-hero) */
.blob-field__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 24px;
  text-align: center;
}

.blob-field__eyebrow {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ml-accent-2, #2dd4bf);
}

.blob-field__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ml-fg, #e8eaf2);
  text-shadow: 0 2px 24px rgba(4, 7, 16, 0.6);
}

.blob-field__sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ml-muted, #8b91a3);
}

@keyframes blob-field-morph {
  0% {
    border-radius: 46% 54% 60% 40% / 50% 44% 56% 50%;
  }
  33% {
    border-radius: 58% 42% 38% 62% / 42% 58% 46% 54%;
  }
  66% {
    border-radius: 40% 60% 55% 45% / 60% 38% 62% 40%;
  }
  100% {
    border-radius: 52% 48% 42% 58% / 46% 54% 40% 60%;
  }
}

@keyframes blob-field-drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(12%, -9%, 0) rotate(32deg) scale(1.18);
  }
  100% {
    transform: translate3d(-10%, 10%, 0) rotate(-24deg) scale(0.9);
  }
}

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