/* ============================================
   ANIMATIONS — Clinic Malak Beauty
   ============================================ */

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}

.hero-bg-shape {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gradient-soft);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-text .section-tag { animation: fade-up 0.8s var(--ease-soft) 0.1s both; }
.hero-text h1 { animation: fade-up 0.8s var(--ease-soft) 0.25s both; margin-bottom: 1.3rem; }
.hero-text p { animation: fade-up 0.8s var(--ease-soft) 0.4s both; font-size: 1.1rem; max-width: 480px; margin-bottom: 2.2rem; }
.hero-text .hero-actions { animation: fade-up 0.8s var(--ease-soft) 0.55s both; display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  animation: fade-up 1s var(--ease-soft) 0.3s both;
}

.hero-visual-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 4/5;
}

.hero-visual-img img { width: 100%; height: 100%; object-fit: cover; }

.hero-float-card {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: float-card 5s ease-in-out infinite;
}

.hero-float-card.card-1 { top: 8%; left: -8%; animation-delay: 0s; }
.hero-float-card.card-2 { bottom: 10%; right: -10%; animation-delay: 1.5s; }

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Hero pages internes ---- */
.page-hero {
  padding: 9rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gradient-soft);
}

.page-hero-content { position: relative; z-index: 2; max-width: 720px; }
.page-hero-content .section-tag { animation: fade-up 0.7s var(--ease-soft) both; }
.page-hero-content h1 { animation: fade-up 0.7s var(--ease-soft) 0.15s both; margin: 1rem 0; }
.page-hero-content p { animation: fade-up 0.7s var(--ease-soft) 0.3s both; font-size: 1.05rem; }

/* Hero service avec visuel */
.service-hero {
  padding: 1.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.service-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.service-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 4/3.4;
  animation: fade-up 0.9s var(--ease-soft) 0.2s both;
}

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

/* ---- Reveal au scroll (fallback si pas d'AOS) ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}

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

/* ---- Blobs animés positionnés ---- */
.blob-decor-1 { width: 420px; height: 420px; top: -100px; right: -100px; }
.blob-decor-2 { width: 350px; height: 350px; bottom: -80px; left: -120px; animation-delay: -4s; }
.blob-decor-3 { width: 280px; height: 280px; top: 40%; right: 10%; animation-delay: -8s; }

/* ---- Responsive hero ---- */
@media (max-width: 900px) {
  .hero-content, .service-hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .hero-float-card.card-1 { left: 0; top: -5%; }
  .hero-float-card.card-2 { right: 0; bottom: -5%; }
}
