@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at center, #0a0018, #050010);
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  overflow: hidden;
  height: 100vh;
}

.scene {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Texte principal */
.text-zone {
  position: absolute;
  top: 30%;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.title {
  font-size: 3.5rem;
  color: #9d4edd;
  animation: flicker 2s infinite;
}

.subtitle {
  color: #facc15;
  font-size: 1.8rem;
  margin-top: 10px;
}

.thank-you {
  font-size: 1rem;
  margin-top: 10px;
  color: #7b2cbf;
}

/* Grue */
.crane {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  animation: swing 3s ease-in-out infinite;
}

.beam {
  width: 200px;
  height: 8px;
  background: #9d4edd;
}

.cable {
  width: 4px;
  height: 100px;
  background: #7b2cbf;
  margin: auto;
  animation: drop 2s ease-in-out infinite alternate;
}

.hook {
  width: 20px;
  height: 20px;
  background: #e0aaff;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  margin: auto;
}

/* Robot bras */
.robot-arm {
  position: absolute;
  bottom: 10%;
  left: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: moveArm 4s ease-in-out infinite;
}

.base {
  width: 20px;
  height: 50px;
  background: #7b2cbf;
}

.arm {
  width: 10px;
  height: 80px;
  background: #9d4edd;
}

.claw {
  width: 30px;
  height: 10px;
  background: #c77dff;
  border-radius: 2px;
}

/* Sol */
.ground {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 20px;
  background: #240046;
}

/* Animations */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes swing {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  50% { transform: translateX(-50%) rotate(2deg); }
}

@keyframes drop {
  from { height: 80px; }
  to { height: 120px; }
}

@keyframes moveArm {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
