﻿body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  /* Dégradé noir en haut et en bas, plus clair au centre (corrigé) */
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.9) 0%,      /* noir fort en haut */
      rgba(0, 0, 0, 0.2) 30%,     /* devient plus clair vers le centre (adouci) */
      rgba(0, 0, 0, 0.2) 70%,     /* reste clair au milieu (adouci) */
      rgba(0, 0, 0, 0.9) 100%     /* noir fort en bas */
    ),
    url('https://images.unsplash.com/photo-1503264116251-35a269479413?auto=format&fit=crop&w=1950&q=80')
    no-repeat center center / cover;

  min-height: 100vh;
  color: #fff;
}



/* Animation pour le dégradé (non utilisée sur body, mais conservée) */
@keyframes gradientBG {
  0% { background-position: 0% 50%, center; }
  50% { background-position: 100% 50%, center; }
  100% { background-position: 0% 50%, center; }
}

/* Le reste du design */
.page_404 {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

.content_404 {
  /* Effet "verre dépoli" */
  background: rgba(255, 255, 255, 0.15); 
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6); 
  max-width: 600px; /* Conserve la max-width pour desktop */
  backdrop-filter: blur(15px); 
  -webkit-backdrop-filter: blur(15px); /* Compatibilité Safari */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.four_zero_four_bg h1 {
  /* REVENU AU ROUGE SELON VOTRE DEMANDE */
  font-size: 6rem;
  margin: 0;
  color: #ff6b6b; /* Couleur rouge d'origine */
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.8); /* Effet "lueur" rouge */
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); } /* Moins agressif */
}

.content_404 h2 {
  font-size: 2.2rem;
  margin: 20px 0 10px;
  color: #fff; /* Couleur blanche pour la lisibilité sur fond sombre */
  text-transform: uppercase;
}

.content_404 p {
  color: #eee; /* Couleur claire pour la lisibilité */
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.link_404 {
  /* REVENU AU ROUGE SELON VOTRE DEMANDE */
  display: inline-block;
  background: #ff6b6b; /* Couleur rouge d'origine */
  color: #fff; /* Texte blanc sur bouton rouge */
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.link_404:hover {
  background: #e55a5a; /* Rouge un peu plus sombre au survol */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}


/* ---------------------------------------------------------------------- */
/* AJOUT POUR LE RESPONSIVE (SMARTPHONE) */
/* ---------------------------------------------------------------------- */
@media (max-width: 768px) {
    
    .content_404 {
        /* Permet au conteneur de s'adapter à l'écran */
        max-width: 90%; 
        margin: 0 15px; /* Marge de respiration sur les côtés de l'écran */
        padding: 30px 20px; /* Réduction du padding */
    }

    .four_zero_four_bg h1 {
        font-size: 6rem; /* Réduction de la taille du 404 */
    }

    .content_404 h2 {
        font-size: 1.5rem; /* Réduction du sous-titre */
    }
}