/* ================================================================
   VET NORD ISÈRE ÉLEVAGE — CSS complémentaire
   (animations et overrides non couverts par Tailwind CDN)
================================================================ */

/* ── Padding corps sur mobile pour la barre téléphone ── */
@media (max-width: 767px) {
  body { padding-bottom: 62px; }
}

/* ── Hero : background-attachment fixe (effet parallax désactivé sur iOS) ── */
.hero-bg { background-attachment: fixed; }
@supports (-webkit-touch-callout: none) {
  .hero-bg { background-attachment: scroll; }
}

/* ── Animation d'apparition des cartes (IntersectionObserver) ── */
.anim-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.anim-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Menu mobile : animation d'entrée ── */
@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
#mobile-overlay.open {
  animation: fade-in-down 0.22s ease;
}

/* ── Hamburger : lignes animées ── */
#hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
#hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ── Bouton retour en haut ── */
#back-to-top.visible {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* ── Lien actif dans la nav ── */
.nav-link.active {
  color: #24b67e;
  background-color: #e8f7f1;
  border-radius: 8px;
}

/* ── Service card : hero section spécifique ── */
.hero-section {
  min-height: calc(100svh - 70px);
}
