/* Reset général */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Style global du body */
body {
  font-family: 'Roboto Mono', monospace; /* Remplace Roboto par Roboto Mono pour un look cyber */
  background: linear-gradient(135deg, #1a1b2f, #2e2a4a); /* Bleu profond à violet sombre */
  color: #e0e7ff; /* Blanc cassé lumineux */
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Fond cyber avec effet de scan */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(92, 225, 230, 0.1) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: 0.5;
  z-index: -1;
  animation: scanLine 6s infinite linear;
}

@keyframes scanLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Navigation */
.menu {
  display: flex;
  justify-content: center;
  background: rgba(26, 27, 47, 0.9); /* Bleu sombre semi-transparent */
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #5ce1e6; /* Cyan vif */
  backdrop-filter: blur(10px);
}

.menu a {
  color: #e0e7ff;
  text-decoration: none;
  padding: 10px 20px;
  font-family: 'Syncopate', sans-serif; /* Remplace Orbitron par Syncopate pour cohérence */
  font-weight: 700;
  font-size: 1em;
  transition: all 0.3s ease;
  border-radius: 15px;
  margin: 0 5px;
}

.menu a:hover {
  color: #b19cd9; /* Violet clair */
  background: rgba(92, 225, 230, 0.2); /* Cyan léger */
  box-shadow: 0 0 10px rgba(92, 225, 230, 0.5);
  transform: scale(1.05);
}

.menu_bouton { display: none; }

.menu_links {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

/* Header */
.header {
  background: linear-gradient(135deg, #1a1b2f, #5ce1e6); /* Bleu profond à cyan */
  padding: 80px 20px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 85%, 0 70%);
  margin-bottom: 40px;
}

.glow-text {
  font-family: 'Syncopate', sans-serif;
  font-size: 2.5em;
  color: #e0e7ff;
  text-shadow: 0 0 8px rgba(92, 225, 230, 0.7), 0 0 15px rgba(177, 156, 217, 0.5);
  animation: cyberGlow 2s infinite alternate;
}

@keyframes cyberGlow {
  0% { text-shadow: 0 0 8px rgba(92, 225, 230, 0.7), 0 0 15px rgba(177, 156, 217, 0.5); }
  100% { text-shadow: 0 0 15px rgba(92, 225, 230, 1), 0 0 25px rgba(177, 156, 217, 0.8); }
}

/* Section Project Details */
.project-details {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-details.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image */
.project-image {
  flex: 0 0 300px;
  min-width: 250px;
  position: relative;
}

.project-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 15px;
  border: 2px solid #5ce1e6; /* Cyan vif */
  box-shadow: 0 0 15px rgba(92, 225, 230, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-image:hover img {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(92, 225, 230, 0.7);
  animation: imagePulse 1.5s infinite;
}

@keyframes imagePulse {
  0% { box-shadow: 0 0 15px rgba(92, 225, 230, 0.4); }
  50% { box-shadow: 0 0 25px rgba(92, 225, 230, 0.7); }
  100% { box-shadow: 0 0 15px rgba(92, 225, 230, 0.4); }
}

/* Description */
.project-description {
  background: rgba(46, 42, 74, 0.9); /* Violet sombre */
  padding: 20px 25px;
  border-radius: 15px;
  max-width: 300px;
  flex: 0 0 300px;
  border: 2px solid #b19cd9; /* Violet clair */
  box-shadow: 0 0 15px rgba(177, 156, 217, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-description:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(177, 156, 217, 0.6);
}

.section-title {
  font-family: 'Syncopate', sans-serif;
  font-size: 1.5em;
  color: #5ce1e6; /* Cyan vif */
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(92, 225, 230, 0.5);
  animation: textPulse 2s infinite ease-in-out;
}

@keyframes textPulse {
  0% { text-shadow: 0 0 5px rgba(92, 225, 230, 0.5); }
  50% { text-shadow: 0 0 10px rgba(92, 225, 230, 0.8); }
  100% { text-shadow: 0 0 5px rgba(92, 225, 230, 0.5); }
}

/* Documents */
.project-documents {
  background: rgba(26, 27, 47, 0.9); /* Bleu sombre */
  padding: 25px;
  border-radius: 15px;
  max-width: 900px;
  margin: 40px auto;
  border: 2px solid #5ce1e6; /* Cyan vif */
  box-shadow: 0 0 20px rgba(92, 225, 230, 0.4);
}

.project-documents ul.pdf-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
}

.project-documents a.pdf-link {
  color: #e0e7ff;
  text-decoration: none;
  font-size: 1.1em;
  font-family: 'Syncopate', sans-serif;
  padding: 10px 20px;
  background: linear-gradient(45deg, #5ce1e6, #b19cd9); /* Cyan à violet */
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  animation: gradientShift 6s infinite ease;
}

@keyframes gradientShift {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.project-documents a.pdf-link:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(92, 225, 230, 0.7);
  color: #1a1b2f; /* Bleu profond pour contraste */
}

/* Footer */
.footer {
  background: rgba(26, 27, 47, 0.9); /* Bleu sombre */
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
  border-top: 2px solid #b19cd9; /* Violet clair */
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links img {
  width: 40px;
  border: 2px solid #5ce1e6; /* Cyan vif */
  border-radius: 50%;
  padding: 5px;
  transition: transform 0.4s ease;
}

.footer-links a:hover img {
  transform: scale(1.1);
}

.legal-links {
  margin: 15px 0;
}

.legal-links a {
  color: #e0e7ff;
  text-decoration: none;
  font-size: 1em;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #5ce1e6; /* Cyan vif */
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu {
    padding: 10px 0;
  }

  .menu a {
    padding: 8px 15px;
    margin: 5px 0;
    font-size: 0.9em;
  }

  .header {
    padding: 60px 15px;
    clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 75%, 0 60%);
  }

  .glow-text {
    font-size: 2em;
  }

  .project-details {
    padding: 30px 15px;
    flex-direction: column;
    align-items: center;
  }

  .project-image, .project-description {
    max-width: 100%;
    flex: 0 0 250px;
  }

  .project-image img {
    max-width: 250px;
  }

  .section-title {
    font-size: 1.3em;
  }

  .project-documents {
    padding: 20px;
  }

  .project-documents ul.pdf-list {
    grid-template-columns: 1fr;
  }

  .menu_bouton {
    display: flex;
    align-items: start;
    cursor: pointer;
    position: relative;
    z-index: 100;
  }

  .menu_bouton img {
    align-items: flex-start;
    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;
    text-align: center;
  }

  .menu_active {
    display: flex;
  }

  .hidden {
    display: none;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 50px 10px;
  }

  .glow-text {
    font-size: 1.8em;
  }

  .project-image, .project-description {
    flex: 0 0 200px;
  }

  .project-image img {
    max-width: 200px;
  }

  .section-title {
    font-size: 1.2em;
  }

  .project-documents a.pdf-link {
    font-size: 1em;
    padding: 8px 15px;
  }

  .footer-links img {
    width: 35px;
  }

  .legal-links a {
    font-size: 0.9em;
    margin: 0 8px;
  }
}