/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY CLEAN + GRAIN ANIMÉ */
body {
  font-family: 'Arial Black', sans-serif;
  background-color: #000;
  color: white;
  height: 100vh;
  overflow: hidden;
  cursor: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

/* GRAIN ANIMÉ */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 5px 5px;
  animation: grainMove 1s steps(10) infinite;
  z-index: 9999;
  opacity: 0.2;
}

@keyframes grainMove {
  0% { transform: translate(0, 0); }
  25% { transform: translate(10%, -5%); }
  50% { transform: translate(-5%, 10%); }
  75% { transform: translate(5%, -10%); }
  100% { transform: translate(-10%, 5%); }
}

/* RGB SPLIT NOISE */
body::after {
  content: "";
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: repeating-linear-gradient(
    to right,
    rgba(255, 0, 0, 0.03) 0px,
    rgba(0, 255, 255, 0.02) 2px,
    rgba(255, 0, 255, 0.02) 4px
  );
  animation: rgbShift 3s infinite linear;
  z-index: 9998;
  opacity: 0.2;
}

@keyframes rgbShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, -2px); }
  100% { transform: translate(0, 0); }
}

/* HERO SECTION */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  padding: 2rem;
  z-index: 1;
}

/* LOGO glitch très léger */
.logo {
  font-size: 4vw;
  font-weight: 900;
  letter-spacing: -1px;
  color: #f0f0f0;
  text-transform: uppercase;
  position: relative;
  animation: flicker 4s infinite alternate;
  text-shadow:
    0px 0 red,
    -0px 0 cyan;
}

@keyframes flicker {
  0%   { opacity: 1; text-shadow: 0.1px 0 red, -0.1px 0 cyan; }
  15%  { opacity: 0.98; text-shadow: 0 0 1px red; }
  30%  { opacity: 1; text-shadow: -0.1px 0 blue; }
  45%  { opacity: 0.97; text-shadow: 0.1px 0 red; }
  100% { opacity: 1; text-shadow: 0.1px 0 red, -0.1px 0 cyan; }
}


/* BASELINE */
.baseline {
  margin-top: 1rem;
  font-size: 0.95rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #bbb;
  filter: drop-shadow(0 0 1px #00ffff55) drop-shadow(0 0 1px #ff00ff55);
}

/* FOOTER */
.footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-family: 'Courier New', Courier, monospace;
  color: #555;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-top: 1px solid #111;
  background-color: rgba(0, 0, 0, 0.4);
}

/* CUSTOM CURSOR TRIANGLE */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 10000;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid white;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: filter 0.3s ease;
}
