/* Réinitialisation et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #1a1b2f, #2e2a4a); /* Bleu profond à violet sombre */
  color: #e0e7ff; /* Blanc cassé lumineux */
  font-family: 'Roboto Mono', monospace; /* Remplace Roboto par Roboto Mono pour un look cyber */
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(0deg, rgba(92, 225, 230, 0.05), rgba(92, 225, 230, 0.05) 1px, transparent 1px, transparent 20px); /* Cyan subtil */
  z-index: -1;
  animation: scanLine 6s infinite linear; /* Effet de scan cyber */
}

@keyframes scanLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Navigation */
.menu {
  display: flex;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 27, 47, 0.9); /* Bleu sombre semi-transparent */
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #5ce1e6; /* Cyan vif */
  backdrop-filter: blur(5px);
}

.menu a {
  color: #e0e7ff;
  text-decoration: none;
  margin: 0 20px;
  font-family: 'Syncopate', sans-serif; /* Remplace Orbitron pour cohérence */
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.3s ease;
}

.menu a:hover {
  color: #b19cd9; /* Violet clair */
  transform: scale(1.1);
  text-shadow: 0 0 10px rgba(92, 225, 230, 0.5); /* Lueur cyan */
}

.menu_bouton {
  display: none;
}

.menu_links {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

/* Section Projet */
.project-details {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: rgba(46, 42, 74, 0.9); /* Violet sombre */
  border-radius: 15px;
  border: 2px solid #5ce1e6; /* Cyan vif */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: box-shadow 0.4s ease;
}

.project-details:hover {
  box-shadow: 0 10px 40px rgba(92, 225, 230, 0.4); /* Pulsation cyan au survol */
}

.project-details h1 {
  font-family: 'Syncopate', sans-serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(45deg, #5ce1e6, #b19cd9); /* Cyan à violet */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 8px rgba(92, 225, 230, 0.5);
  animation: textGlow 2s infinite alternate; /* Animation de lueur */
}

@keyframes textGlow {
  0% { text-shadow: 0 0 8px rgba(92, 225, 230, 0.5); }
  100% { text-shadow: 0 0 15px rgba(92, 225, 230, 0.8); }
}

.project-details h2 {
  font-family: 'Syncopate', sans-serif;
  font-size: 1.8rem;
  color: #5ce1e6; /* Cyan vif */
  margin: 25px 0 15px;
  text-shadow: 0 0 5px rgba(92, 225, 230, 0.3);
  animation: textPulse 2s infinite ease-in-out; /* Pulsation subtile */
}

@keyframes textPulse {
  0% { text-shadow: 0 0 5px rgba(92, 225, 230, 0.3); }
  50% { text-shadow: 0 0 10px rgba(92, 225, 230, 0.6); }
  100% { text-shadow: 0 0 5px rgba(92, 225, 230, 0.3); }
}

.project-details p {
  font-size: 1.1rem;
  color: #e0e7ff;
  margin-bottom: 20px;
  text-align: justify;
}

/* Footer */
footer {
  background: rgba(26, 27, 47, 0.9); /* Bleu sombre */
  text-align: center;
  padding: 20px;
  border-top: 2px solid #b19cd9; /* Violet clair */
  margin-top: 40px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-links img {
  width: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-links a:hover img {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(92, 225, 230, 0.5); /* Lueur cyan */
}

.legal-links a {
  color: #e0e7ff;
  text-decoration: none;
  margin: 0 10px;
  font-family: 'Roboto Mono', monospace;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #5ce1e6; /* Cyan vif */
}

footer p {
  font-size: 0.9rem;
  color: #e0e7ff;
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu {
    padding: 15px;
  }

  .menu_bouton {
    display: flex;
    align-items: start;
    cursor: pointer;
    position: relative;
    z-index: 100;
  }

  .menu_bouton img {
    height: 30px;
    width: 30px;
    background-color: #ffffff;
    transition: opacity 0.3s ease;
  }

  #menu_close {
    display: none;
    position: absolute;
  }

  .menu_links {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .menu_links a {
    display: block;
    padding: 10px;
    margin: 5px 0;
    text-align: center;
  }

  .menu_active {
    display: flex;
  }

  .project-details {
    margin: 20px;
    padding: 20px;
  }

  .project-details h1 {
    font-size: 2rem;
  }

  .project-details h2 {
    font-size: 1.5rem;
  }

  .project-details p {
    font-size: 1rem;
  }

  footer {
    padding: 15px;
  }

  .footer-links img {
    width: 35px;
  }
}

@media (max-width: 480px) {
  .project-details {
    margin: 15px;
    padding: 15px;
  }

  .project-details h1 {
    font-size: 1.8rem;
  }

  .project-details h2 {
    font-size: 1.3rem;
  }

  .project-details p {
    font-size: 0.9rem;
  }

  .footer-links img {
    width: 32px;
  }

  footer p {
    font-size: 0.8rem;
  }
}