@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Open+Sans:wght@400;600&display=swap");

:root {
  --font-body: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  --font-heading: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

a:focus,
button:focus {
  outline-offset: 2px;
}

/* === Apparition au scroll pour le texte Star Wars === */
.fade-in-up {
  opacity: 0 !important;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-up.visible {
  opacity: 1 !important;
  transform: translateY(0);
}

/* Ancienne animation supprimée car désormais gérée par IntersectionObserver */
footer span.text-yellow-400 {
  opacity: 1;
  transform: none;
}
