/* ============================================
   NeoDodo - Styles Critiques LCP (Hero + Header + Services)
   Optimisés pour le chargement rapide
   ============================================ */

/* --- Animations clés optimisées --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

@keyframes scroll-pulse {
  0% { transform: translateY(0) translateZ(0); opacity: 1; }
  100% { transform: translateY(12px) translateZ(0); opacity: 0.3; }
}

@keyframes gradient-shift {
  0% { --bg-pos: 0%; }
  100% { --bg-pos: 100%; }
}

/* --- Hero Section --- */
.hero-glow-1,
.hero-glow-2,
.hero-glow-3,
.hero-glow-4 {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.15), transparent 70%);
  top: -200px;
  left: -100px;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.1), transparent 70%);
  bottom: -150px;
  right: -100px;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-gradient {
  background: linear-gradient(135deg, #34d399, #2dd4bf, #34d399) var(--bg-pos) 50% / 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shift 4s ease infinite;
}

/* --- Scroll indicator --- */
.scroll-indicator {
  display: none;
}

@media (min-width: 768px) {
  .scroll-indicator {
    display: block;
  }
}

.scroll-mouse {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: #34d399;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-pulse 2s ease-in-out infinite;
}

/* --- Service Cards --- */
.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #34d399, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 8px 30px rgba(52, 211, 153, 0.15);
}

/* --- Typographie --- */
.font-sans {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Espacement vertical cohérent --- */
section {
  padding: 60px 20px;
}

@media (max-width: 600px) {
  section {
    padding: 40px 16px;
  }
}

/* --- Accessibilité : focus visible --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 2px;
  border-radius: 4px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

/* --- Aurora désactivée sur mobile --- */
@media (max-width: 767px) {
  .hero-glow-1,
  .hero-glow-2,
  .hero-glow-3,
  .hero-glow-4 {
    animation: none;
  }
}