.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #030712;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 0.5s ease 1.5s forwards; /* réduit */
  overflow: hidden;
}

.background-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.hexagon {
  position: absolute;
  width: 100px;
  height: 115.47px;
  background: linear-gradient(45deg, #4f46e5, #818cf8);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: rotateHex 2s infinite linear; /* réduit */
}

.hex1 { top: 20%; left: 20%; animation-delay: -1s; }
.hex2 { top: 60%; right: 20%; animation-delay: -2s; }
.hex3 { bottom: 10%; left: 40%; animation-delay: -3s; }
.hex4 { top: 40%; right: 40%; animation-delay: -4s; }

@keyframes rotateHex {
  0% { transform: rotate(0deg) scale(1); filter: hue-rotate(0deg); }
  50% { transform: rotate(180deg) scale(1.5); filter: hue-rotate(180deg); }
  100% { transform: rotate(360deg) scale(1); filter: hue-rotate(360deg); }
}

.lines {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  overflow: hidden;
}

.line {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #4f46e5, transparent);
  animation: moveLine 3s infinite linear;
}

@keyframes moveLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(2000%); }
}

.loading-content {
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(3, 7, 18, 0.5);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(79, 70, 229, 0.2);
  box-shadow: 0 0 40px rgba(79, 70, 229, 0.1);
}

.logo {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(to right, #4f46e5, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: fadeInUp 0.3s ease 0.1s forwards; /* réduit */
  text-shadow: 0 0 30px rgba(79, 70, 229, 0.5);
  position: relative;
}

.logo::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(to right, #4f46e5, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(8px);
  opacity: 0.5;
}

.loading-bar {
  width: 250px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin: 25px auto;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
}

.loading-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 0.8s infinite; /* réduit */
}

.loading-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4f46e5, #818cf8);
  animation: loading 1s ease forwards; /* réduit */
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
}

.loading-text {
  color: #e5e7eb;
  font-size: 1rem;
  opacity: 0;
  animation: fadeInUp 0.3s ease 0.1s forwards; /* réduit */
  text-transform: uppercase;
  letter-spacing: 2px;
}

.manga-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.dot {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #4f46e5;
  border-radius: 50%;
  animation: floatDot 3s infinite ease-in-out;
}

@keyframes floatDot {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-20px) scale(1.5); opacity: 0.7; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes loading {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}
