/* ==========================================================================
   FEUILLE DE STYLE POUR LA PAGE D'ERREUR 404 (404.css)
   ========================================================================== */

.error-page-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 120px 24px 80px;
  background-color: var(--color-primary, #02182b);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Lueur verte chartée */
.error-page-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(80, 184, 72, 0.15) 0%, rgba(80, 184, 72, 0) 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.error-content-box {
  text-align: center;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

/* SVG d'Erlenmeyer scientifique cassé/dissous */
.error-illustration {
  margin-bottom: 40px;
  animation: floatIllustration 6s ease-in-out infinite;
}

.error-illustration svg {
  width: 180px;
  height: 180px;
}

/* Animation de flottement pour l'illustration */
@keyframes floatIllustration {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.error-code {
  font-family: 'Inter', sans-serif;
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 10px 0;
  color: var(--color-green, #50B848);
  letter-spacing: -3px;
  text-shadow: 0 10px 30px rgba(80, 184, 72, 0.2);
}

.error-title {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #ffffff;
}

.error-message {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #a0aec0;
  margin: 0 0 40px 0;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-error-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-green, #50B848);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 32px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(80, 184, 72, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-error-home:hover {
  background-color: #40a038;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(80, 184, 72, 0.3);
}

.btn-error-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 32px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-error-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .error-code {
    font-size: 80px;
  }
  .error-title {
    font-size: 22px;
  }
  .error-actions {
    flex-direction: column;
    gap: 12px;
  }
  .btn-error-home,
  .btn-error-secondary {
    justify-content: center;
    width: 100%;
  }
}
