/* ═══════════════════════════════════════════════════════
   hero.css — Section Hero
   ═══════════════════════════════════════════════════════ */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 var(--sp-xl);
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 43, 226, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 43, 226, .06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow-l {
  position: absolute;
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 43, 226, .18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow-r {
  position: absolute;
  right: -100px;
  top: 30%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 25, 43, .12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--vio3);
  letter-spacing: 3px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--vio);
  flex-shrink: 0;
}

/* Nom principal */
.hero-name {
  font-family: 'Orbitron', monospace;
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -2px;
  color: var(--wh);
  position: relative;
  display: block;
}

/* Glitch — PAS de ::after, PAS de laser */
.glitch-wrap {
  position: relative;
  display: inline-block;
}

.glitch-layer {
  position: absolute;
  top: 0; left: 0;
  font-family: 'Orbitron', monospace;
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -2px;
  pointer-events: none;
}

.glitch-layer.a {
  color: var(--vio2);
  opacity: .4;
  animation: glitch 4s infinite;
  animation-delay: .1s;
}

.glitch-layer.b {
  color: var(--red2);
  opacity: .3;
  animation: glitch 4s infinite;
  animation-delay: .2s;
}

/* Typed role */
#typed-role {
  display: inline;
  background: linear-gradient(135deg, var(--vio2) 0%, var(--red2) 60%, var(--acc) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.type-cursor {
  display: inline-block;
  width: 3px;
  height: .85em;
  background: var(--vio2);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink .8s infinite;
  -webkit-text-fill-color: var(--vio2);
}

/* Sous-titre */
.hero-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
  line-height: 1.8;
  border-left: 2px solid var(--vio);
  padding-left: 16px;
}

.hero-title strong { color: var(--vio3); }

/* Boutons */
.hero-btns {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--bord2);
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  overflow: hidden;
  background: var(--surf);
}

.hero-stat {
  flex: 1;
  padding: 18px 20px;
  border-right: 1px solid var(--bord2);
  position: relative;
  transition: background var(--tr-med);
}

.hero-stat:last-child { border-right: none; }

.hero-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--vio), var(--red));
  opacity: 0;
  transition: opacity var(--tr-med);
}

.hero-stat:hover::before { opacity: 1; }

.stat-n {
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--vio2), var(--red2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-l {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-top: 2px;
}

.v-line--left  { left: 48px; }
.v-line--right { right: 48px; }

/* ── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  #hero {
    padding: 0 20px;
    padding-top: 80px;
  }

  .hero-stats {
    flex-direction: column;
  }

  .hero-stat {
    border-right: none;
    border-bottom: 1px solid var(--bord2);
  }

  .hero-stat:last-child { border-bottom: none; }
}
