@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, #050014, #090979, #000);
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #00d4ff;
  font-family: 'Orbitron', sans-serif;
}

/* Vortex animé */
.vortex {
  position: absolute;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, #00d4ff10, transparent 70%);
  animation: spin 10s linear infinite;
  z-index: 0;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.overlay {
  position: relative;
  text-align: center;
  z-index: 2;
  animation: fadeIn 3s ease-in;
}

.glitch {
  font-size: 3rem;
  color: #00d4ff;
  text-shadow:
    0 0 10px #00d4ff,
    0 0 20px #00d4ff,
    0 0 40px #0ff;
  position: relative;
  animation: flicker 2s infinite;
}

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  color: #00ffff;
  clip: rect(0, 900px, 0, 0);
}

.glitch::before {
  animation: glitchTop 1.5s infinite linear alternate-reverse;
}

.glitch::after {
  animation: glitchBottom 1.5s infinite linear alternate-reverse;
  color: #f0f;
}

@keyframes glitchTop {
  0% { clip: rect(0, 9999px, 0, 0); }
  10% { clip: rect(0, 9999px, 10px, 0); transform: translate(2px, -2px); }
  20% { clip: rect(0, 9999px, 0, 0); }
}

@keyframes glitchBottom {
  0% { clip: rect(0, 9999px, 0, 0); }
  10% { clip: rect(85px, 9999px, 140px, 0); transform: translate(-2px, 2px); }
  20% { clip: rect(0, 9999px, 0, 0); }
}

.subtitle {
  margin-top: 10px;
  font-size: 1rem;
  opacity: 0.8;
  letter-spacing: 3px;
}

.btn-start {
  display: inline-block;
  margin-top: 40px;
  padding: 15px 40px;
  border: 2px solid #00d4ff;
  border-radius: 8px;
  color: #00d4ff;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 1rem;
  transition: all 0.3s;
  animation: pulse 1.5s infinite;
}

.btn-start:hover {
  background: #00d4ff;
  color: #000;
  box-shadow: 0 0 25px #00d4ff;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px #00d4ff; }
  50% { box-shadow: 0 0 25px #00d4ff, 0 0 50px #0ff; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.construction {
  margin-top: 40px;
  padding: 20px 30px;
  border: 2px dashed #00d4ff;
  border-radius: 10px;
  display: inline-block;
  background: rgba(0, 0, 30, 0.6);
  box-shadow: 0 0 15px #00d4ff80, inset 0 0 10px #00d4ff40;
  animation: pulse 2s infinite;
}

.construction p {
  color: #00d4ff;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-shadow: 0 0 10px #00d4ff;
}

.warning {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
