/* Palette sombre et néon pour l'ambiance gaming améliorée */
:root {
  --color-primary: #1e3799;
  --color-secondary: #4a69bd;
  --color-accent: #6a89cc;
  --color-highlight: #82ccdd;
  --color-background: #0a1931;
  --color-surface: #102542;
  --color-card: #132e4a;
  --color-text: #ffffff;
  --color-muted: #99a9c6;
}

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

html, body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Hero section */
.hero {
  position: relative;
  height: 90vh;
  background-image: url('hero-bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 49, 0.6);
  backdrop-filter: blur(3px);
  z-index: 0;
}

.hero .overlay {
  position: relative;
  text-align: center;
  max-width: 900px;
  padding: 1rem;
  z-index: 1;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-highlight);
  text-shadow: 0 0 14px var(--color-secondary);
}

.hero .tagline {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--color-muted);
}

/* Particles container */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  top: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
  animation-name: float;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh);
    opacity: 0;
  }
}

/* General sections */
section {
  padding: 4rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

section h2 {
  margin-bottom: 2rem;
  font-size: 2.3rem;
  color: var(--color-highlight);
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 90px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 0.5rem;
}

section p {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

/* Card grid */
.card-grid .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.card-grid .card {
  background-color: var(--color-card);
  border-radius: 8px;
  padding: 1.5rem;
  flex: 1 1 260px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-grid .card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.card-grid h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: var(--color-highlight);
}

.card-grid p {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  background-color: var(--color-surface);
  color: var(--color-muted);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3.2rem;
  }
  .hero .tagline {
    font-size: 1.3rem;
  }
  section {
    padding: 3rem 1rem;
  }
}
