/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  background-color: #fefefe;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transition: background-image 1s ease-in-out;
}

header, footer {
  background: #fde2e4;
  text-align: center;
  padding: 2rem;
  color: #5d3a00;
}

footer {
  padding-top: 10px;
  margin-top: auto;
}

#journey {
  position: relative;
  flex: 1 0 auto;
  margin-top: 2rem;
  margin-bottom: 5rem;
}

svg#path {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

#airplane {
  width: 50px;
  height: 50px;
  background-image: url('assets/airplane.png');
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
}

.step {
  width: 80%;
  margin: 5rem auto;
  background: rgba(255, 245, 248, 0.8); /* pastel overlay */
  background-size: cover;
  background-position: center center; /* centrer parfaitement */
  background-repeat: no-repeat;
  padding: 3rem 1rem; /* <-- Plus de hauteur pour voir l'image */
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out, background-image 1s ease-in-out;
}
#step4 {
  background-image: url('assets/background_fuji.png');

  background-size: 100% auto;   /* 📏 léger zoom, pas énorme */
  background-position: 50% 25%; /* 🎯 cadrage précis sur avion/aéroport */
  background-repeat: no-repeat;
  background-color: rgba(255, 245, 248, 0.8);
}
#step10 {
  background-image: url('assets/background_airplane.png');

  background-size: 120% auto;   /* 📏 léger zoom, pas énorme */
  background-position: 50% 25%; /* 🎯 cadrage précis sur avion/aéroport */
  background-repeat: no-repeat;
  background-color: rgba(255, 245, 248, 0.8);
}
.step.active {
  opacity: 1;
  transform: translateY(0);
}

/* Sakura Petal */
.petal {
  width: 20px;
  height: 20px;
  background-image: url('assets/sakura_petal.png');
  background-size: contain;
  background-repeat: no-repeat;
  position: fixed;
  top: -50px;
  z-index: 0;
  animation: fall linear infinite;
}

@keyframes fall {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  100% { transform: translateY(100vh) translateX(50px) rotate(360deg); }
}
