/* === BASE === */
body {
  background: black;
  height: 100vh;
  margin: 0;
  font-family: "Chewy", system-ui;
}

/* === TITRE CENTRAL === */
.title {
  background: rgb(255, 81, 67);
  border: 3px solid white;
  border-radius: 100%;
  width: 500px;
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Conteneur du titre avec la tige blanche */
.container-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.container-title::after {
  content: "";
  display: block;
  position: relative;
  background: white;
  height: 200px;
  width: 10px;
}

/* === TEXTE === */
h1 {
  color: white;
  font-size: 70px;
  line-height: 80px;
  font-weight: 400;
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

p {
  color: white;
  font-size: 50px;
  line-height: 60px;
  font-weight: 400;
  font-style: normal;
  position: absolute;
  opacity: 0;
}

/* Transition de l'affichage lors du changement d'état */
.change h1 {
  opacity: 0;
}
.change p {
  opacity: 1;
}
.change .button {
  display: none;
}

/* === BOUTON DE LANCEMENT === */
.button {
  background: white;
  color: rgb(255, 81, 67);
  border-radius: 5px;
  padding: 15px;
  font-size: 30px;
  line-height: 40px;
  cursor: pointer;
  transition: 0.5s ease;
}
.button:hover {
  transform: scale(1.1);
}

/* === CONTAINER GLOBAL === */
.main-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  position: relative;
  gap: 100px;
}

/* === FUSÉE === */
.rocket-container {
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Vibration au survol ou manuelle */
.rocket-container:hover,
.vibrate {
  animation: vibrate 0.3s infinite;
}

/* === FUMÉE === */
.smoke-container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  width: 100px;
  pointer-events: none;
  overflow: visible;
}

.smoke {
  position: absolute;
  bottom: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(200, 200, 200, 0.2) 100%);
  opacity: 0;
  animation: smokeRise 3s ease-out infinite;
}

/* Fumée : décalage temporel pour rendu naturel */
.smoke:nth-child(1) { left: 10%; animation-delay: 0s; }
.smoke:nth-child(2) { left: 40%; animation-delay: 0.5s; }
.smoke:nth-child(3) { left: 70%; animation-delay: 1s; }
.smoke:nth-child(4) { left: 30%; animation-delay: 1.3s; }
.smoke:nth-child(5) { left: 60%; animation-delay: 1.6s; }

/* === ÉTATS DE LA FUMÉE === */
.smoke-container.normal .smoke {
  animation-duration: 3s;
  opacity: 0.6;
}
.smoke-container.hover .smoke {
  animation-duration: 2s;
  opacity: 0.8;
}
.smoke-container.takeoff-smoke .smoke {
  animation-duration: 1s;
  opacity: 1;
}

/* === ANIMATIONS === */

/* Fumée qui monte */
@keyframes smokeRise {
  0%   { transform: translateY(0) scale(0.5); opacity: 0.6; filter: blur(0); }
  30%  { transform: translateY(-20px) scale(0.8); opacity: 0.4; filter: blur(1px); }
  60%  { transform: translateY(-50px) scale(1.1); opacity: 0.3; filter: blur(2px); }
  100% { transform: translateY(-90px) scale(1.3); opacity: 0; filter: blur(4px); }
}

/* Vibration */
@keyframes vibrate {
  0%, 100% { transform: translate(0); }
  20%, 60% { transform: translate(-2px, 2px); }
  40%, 80% { transform: translate(2px, -2px); }
}

/* Décollage vertical */
.takeoff {
  animation: liftOff 2s ease-in forwards;
}

@keyframes liftOff {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-1000px); opacity: 0; }
}

/* === SVG === */
svg {
  width: 200px;
  height: auto;
}
