* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: #000;
  color: #e0e6ed;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 40%, rgba(60, 30, 100, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(30, 80, 120, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Particles Background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* NAVBAR */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 65px;
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  z-index: 9999;
  padding: 0 40px;
  animation: slideDown 0.6s ease-out;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-btn {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  letter-spacing: 0.3px;
}

.nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-btn::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  transition: width 0.3s ease;
}

.nav-btn:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-btn:hover::before {
  opacity: 1;
}

.nav-btn:hover::after {
  width: 80%;
}

.nav-btn.right {
  margin-left: auto;
  margin-right: 0;
}

/* MAIN CONTENT */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px 60px;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 2.8rem;
  margin: 60px 0 40px;
  text-align: center;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  border-radius: 2px;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.6;
  color: #ffffff;
  letter-spacing: -0.2px;
}

/* GRILLE DE PERSONNAGES */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 30px;
  margin: 70px 0;
  justify-items: center;
  padding: 40px 0;
}

.character-face {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  opacity: 0.7;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 60px rgba(255, 255, 255, 0.05);
  position: relative;
}

.character-face::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.characters-grid a .character-face:hover,
.characters-grid .character-face:hover {
  transform: translateY(-8px) scale(1.05);
  opacity: 1;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 80px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.characters-grid a .character-face:hover::before,
.characters-grid .character-face:hover::before {
  opacity: 1;
}

/* BLOCS IMAGES */
.image-block {
  display: flex;
  align-items: center;
  gap: 60px;
  margin: 100px 0;
  padding: 20px 0;
}

.image-block img {
  flex: 0 0 40%;
  max-width: 500px;
  border-radius: 16px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-block:hover img {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 120px rgba(255, 255, 255, 0.1);
}

.image-block div {
  flex: 1;
}

/* ANIMATION SCROLL */
.reveal-left {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .topbar {
    height: 60px;
    gap: 30px;
  }

  .container {
    padding: 80px 20px 40px;
  }

  h1 {
    font-size: 2.2rem;
    margin: 40px 0 30px;
  }

  .image-block {
    flex-direction: column;
    gap: 30px;
    margin: 60px 0;
  }

  .image-block img {
    flex: 1;
    width: 100%;
  }

  .characters-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
  }

  .character-face {
    width: 100px;
    height: 100px;
  }
}
