*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange: #ff6f1f;
  --orange-bright: #ff9a1f;
  --violet: #a855f7;
  --violet-deep: #7c3aed;
  --magenta: #ff2daa;
  --green: #39ff14;
  --bg: #0a0818;
  --bg2: #120e24;
}

body {
  background: var(--bg);
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ── Canvas particules ── */

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ── Fond nebuleux ── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 60%, rgba(255, 111, 31, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 70% 40%, rgba(255, 45, 170, 0.06) 0%, transparent 60%);
  z-index: 0;
  animation: nebulaPulse 8s ease-in-out infinite alternate;
}

@keyframes nebulaPulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* ── Anneaux d'energie Starfire ── */

.energy-ring {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 111, 31, 0.15);
  box-shadow:
    0 0 40px rgba(255, 111, 31, 0.08),
    inset 0 0 40px rgba(255, 111, 31, 0.05);
  z-index: 1;
  animation: ringExpand 4s ease-in-out infinite;
}

.energy-ring--2 {
  width: 650px;
  height: 650px;
  border-color: rgba(168, 85, 247, 0.1);
  box-shadow:
    0 0 40px rgba(168, 85, 247, 0.06),
    inset 0 0 40px rgba(168, 85, 247, 0.03);
  animation: ringExpand 5s ease-in-out 1s infinite;
}

@keyframes ringExpand {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

/* ── Contenu centre ── */

.center {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* ── Titre principal ── */

.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
  user-select: none;
}

.title__line {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title__line--1 {
  font-size: clamp(4rem, 14vw, 10rem);
  background-image: linear-gradient(135deg, var(--orange-bright) 0%, var(--orange) 40%, var(--magenta) 100%);
  animation: titleReveal1 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both,
             titleGlow 3s ease-in-out 1.5s infinite;
}

.title__line--2 {
  font-size: clamp(3rem, 10vw, 7rem);
  background-image: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 50%, var(--magenta) 100%);
  animation: titleReveal2 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both,
             titleGlow2 3s ease-in-out 1.8s infinite;
  letter-spacing: 0.35em;
}

@keyframes titleReveal1 {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    filter: drop-shadow(0 0 0px rgba(255, 111, 31, 0)) blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 30px rgba(255, 111, 31, 0.4)) blur(0px);
  }
}

@keyframes titleReveal2 {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.8);
    filter: drop-shadow(0 0 0px rgba(168, 85, 247, 0)) blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.35)) blur(0px);
  }
}

@keyframes titleGlow {
  0%, 100% {
    filter: drop-shadow(0 0 25px rgba(255, 111, 31, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 50px rgba(255, 111, 31, 0.6)) drop-shadow(0 0 100px rgba(255, 111, 31, 0.2));
  }
}

@keyframes titleGlow2 {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 45px rgba(168, 85, 247, 0.5)) drop-shadow(0 0 90px rgba(168, 85, 247, 0.15));
  }
}

/* ── Sous-titre ── */

.subtitle {
  margin-top: 1.5rem;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.4), 0 0 60px rgba(57, 255, 20, 0.15);
  animation: subtitleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both,
             subtitleGlow 3s ease-in-out 1.8s infinite;
}

@keyframes subtitleIn {
  from {
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 0.8em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.4em;
  }
}

@keyframes subtitleGlow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.4), 0 0 60px rgba(57, 255, 20, 0.15);
  }
  50% {
    text-shadow: 0 0 35px rgba(57, 255, 20, 0.7), 0 0 80px rgba(57, 255, 20, 0.3), 0 0 120px rgba(57, 255, 20, 0.1);
  }
}

/* ── Starbolts (orbes d'energie flottants) ── */

.starbolts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.starbolt {
  position: absolute;
  border-radius: 50%;
  animation: starFloat linear infinite;
}

.starbolt--1 {
  width: 14px;
  height: 14px;
  background: var(--orange);
  box-shadow: 0 0 20px var(--orange), 0 0 60px rgba(255, 111, 31, 0.3);
  top: 20%;
  left: 15%;
  animation-duration: 7s;
  animation-delay: 0s;
}

.starbolt--2 {
  width: 8px;
  height: 8px;
  background: var(--magenta);
  box-shadow: 0 0 15px var(--magenta), 0 0 50px rgba(255, 45, 170, 0.3);
  top: 70%;
  right: 20%;
  animation-duration: 9s;
  animation-delay: 1s;
}

.starbolt--3 {
  width: 10px;
  height: 10px;
  background: var(--violet);
  box-shadow: 0 0 18px var(--violet), 0 0 55px rgba(168, 85, 247, 0.3);
  top: 35%;
  right: 12%;
  animation-duration: 8s;
  animation-delay: 2s;
}

.starbolt--4 {
  width: 6px;
  height: 6px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green), 0 0 40px rgba(57, 255, 20, 0.3);
  bottom: 25%;
  left: 22%;
  animation-duration: 10s;
  animation-delay: 0.5s;
}

.starbolt--5 {
  width: 12px;
  height: 12px;
  background: var(--orange-bright);
  box-shadow: 0 0 22px var(--orange-bright), 0 0 65px rgba(255, 154, 31, 0.3);
  top: 55%;
  left: 8%;
  animation-duration: 6s;
  animation-delay: 3s;
}

.starbolt--6 {
  width: 9px;
  height: 9px;
  background: var(--magenta);
  box-shadow: 0 0 18px var(--magenta), 0 0 55px rgba(255, 45, 170, 0.3);
  top: 15%;
  right: 30%;
  animation-duration: 8s;
  animation-delay: 1.5s;
}

.starbolt--7 {
  width: 11px;
  height: 11px;
  background: var(--violet);
  box-shadow: 0 0 20px var(--violet), 0 0 60px rgba(168, 85, 247, 0.3);
  bottom: 15%;
  right: 10%;
  animation-duration: 7s;
  animation-delay: 2.5s;
}

.starbolt--8 {
  width: 7px;
  height: 7px;
  background: var(--green);
  box-shadow: 0 0 15px var(--green), 0 0 50px rgba(57, 255, 20, 0.3);
  top: 80%;
  left: 40%;
  animation-duration: 9s;
  animation-delay: 0.8s;
}

@keyframes starFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate(80px, -150px) scale(1.3);
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(-50px, -250px) scale(0.6);
    opacity: 0.3;
  }
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .title__line--2 { letter-spacing: 0.15em; }
  .starbolt { display: none; }
  .subtitle { letter-spacing: 0.2em; font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .energy-ring { width: 250px; height: 250px; }
  .energy-ring--2 { width: 320px; height: 320px; }
  .subtitle { letter-spacing: 0.15em; }
}
