/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(45deg, #0a0a2e, #1a1a4a);
  color: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Lien "Passer au contenu" pour accessibilité */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #7f00ff;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

a:focus,
button:focus {
  outline: 3px solid #00ffff;
  outline-offset: 2px;
}

/* Animation des étoiles */
.star {
  position: fixed;
  background: rgba(255, 255, 255, 0.8);
  width: 2px;
  height: 2px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: starFlow 20s linear infinite;
  will-change: transform;
  box-shadow: 0 0 2px 1px rgba(255, 255, 255, 0.4);
}

@keyframes starFlow {
  0% {
    transform: translate(-100vw, -100vh);
  }
  100% {
    transform: translate(100vw, 100vh);
  }
}

/* Ajout d'étoiles brillantes */
.star.bright {
  width: 2px;
  height: 2px;
  background: rgba(0, 255, 255, 0.9);
  box-shadow: 0 0 3px 1px rgba(0, 255, 255, 0.6);
}

.star.purple {
  background: rgba(127, 0, 255, 0.9);
  box-shadow: 0 0 3px 1px rgba(127, 0, 255, 0.6);
}

/* Navigation */
.nav-container {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 46, 0.98);
  z-index: 1000;
  padding: 0.8rem 1.5rem;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #7f00ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

/* Titre dans la navbar */
.nav-title {
  font-family: "Orbitron", sans-serif;
  color: #00ffff;
  font-size: 1.5rem;
  margin: 0 1rem;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
  font-weight: bold;
  position: relative;
  white-space: nowrap;
}

.nav-title:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7f00ff, transparent);
}

.nav-title-mobile {
  display: none;
  font-family: "Orbitron", sans-serif;
  color: #00ffff;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
  font-weight: bold;
}

/* Style pour la vidéo dans la navbar */
.nav-video-container {
  position: relative;
  width: 80px;
  height: 45px;
  overflow: hidden;
  border-radius: 8px;
  margin-right: 15px;
  border: 2px solid rgba(0, 225, 255, 0.6);
  box-shadow: 0 0 10px rgba(0, 225, 255, 0.6);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.nav-video-container:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 225, 255, 0.8);
}

.nav-video-container::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 10px;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 225, 255, 0.3),
    transparent
  );
  z-index: -1;
  animation: borderGlow 3s linear infinite;
}

.nav-video-container::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(0, 225, 255, 0.8);
  border-radius: 50%;
  top: -5px;
  right: -5px;
  animation: pulse 2s ease-in-out infinite;
}

.nav-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes borderGlow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.nav-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  transition: 0.3s ease;
}

.nav-link {
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  color: #00ffff;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: 0.3s;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #7f00ff;
  bottom: 0;
  left: 0;
  transition: 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid #00ffff;
  color: #00ffff;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
  margin-left: auto;
}

/* Sections communes */
section {
  padding: 8rem 2rem 4rem;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #00ffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #7f00ff;
}

/* Style pour la section header */
#header {
  position: relative;
  padding: 4rem 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
      circle at center,
      rgba(26, 26, 74, 0.5) 0%,
      rgba(10, 10, 46, 0.6) 100%
    ),
    url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="%237f00ff" opacity="0.03"/></svg>');
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Assurer la visibilité des sections */
section:target {
  scroll-margin-top: 80px; /* Hauteur de la navbar */
}

/* Correction pour le positionnement */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Bulle de texte */
.speech-bubble {
  position: relative;
  background: rgba(127, 0, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  border: 2px solid #7f00ff;
  box-shadow: 0 0 40px rgba(127, 0, 255, 0.3);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 20px 20px 0;
  border-style: solid;
  border-color: #7f00ff transparent transparent;
  filter: drop-shadow(0 4px 6px rgba(127, 0, 255, 0.2));
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  hyphens: auto;
  color: #e6e6ff;
  margin: 0;
}

/* Animation de flottement */
/* Responsive */

/* Section des liens professionnels */
.links-section {
  position: relative;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(10, 10, 46, 0.4);
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(127, 0, 255, 0.2);
  max-width: 900px;
  border: 1px solid rgba(127, 0, 255, 0.6);
}

.links-section::before {
  content: "Ressources professionnelles";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #0a0a2e;
  padding: 0.5rem 2rem;
  font-family: "Orbitron", sans-serif;
  color: #00ffff;
  font-size: 1.2rem;
  letter-spacing: 1px;
  border-radius: 30px;
  border: 1px solid #7f00ff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  white-space: nowrap;
}

.cta-container {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #7f00ff, #00ffff);
  padding: 1.2rem 2.5rem;
  /* Coins plus angulaires pour un look futuriste */
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  border: none;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3),
    inset 0 0 15px rgba(127, 0, 255, 0.3);
  z-index: 1;
  /* Animation de pulsation */
  animation: buttonGlow 3s infinite alternate;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button::after {
  content: "";
  position: absolute;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 6px;
  top: 2px;
  left: 2px;
}

.cta-button i {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 35px rgba(0, 255, 255, 0.5),
    inset 0 0 25px rgba(127, 0, 255, 0.5);
  color: white;
}

.cta-button:hover i {
  transform: scale(1.2) rotate(10deg);
}

/* Animation de lueur futuriste pour les boutons */
@keyframes buttonGlow {
  0% {
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3),
      inset 0 0 15px rgba(127, 0, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.5),
      inset 0 0 25px rgba(127, 0, 255, 0.5);
  }
}

/* Version mobile */
@media (max-width: 768px) {
  .cta-button {
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  position: relative;
}

/* Suppression du titre "Réseaux professionnels" */
.social-links::before {
  content: none;
}

.social-icon {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  /* Forme hexagonale futuriste au lieu de rond */
  border-radius: 15px;
  background: linear-gradient(135deg, #7f00ff, #00ffff);
  transition: all 0.3s ease;
  text-decoration: none;
  /* Ombre plus prononcée */
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4),
    inset 0 0 15px rgba(127, 0, 255, 0.3);
  /* Animation de pulsation */
  animation: iconGlow 3s infinite alternate;
  backdrop-filter: blur(5px);
  transform: rotate(45deg); /* Rotation pour forme en losange */
}

.social-icon i {
  font-size: 2.5rem;
  color: white;
  transition: transform 0.3s ease;
  transform: rotate(-45deg); /* Contre-rotation pour garder l'icône droite */
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.social-icon:hover {
  transform: rotate(45deg) scale(1.1);
  box-shadow: 0 0 35px rgba(0, 255, 255, 0.7),
    inset 0 0 20px rgba(127, 0, 255, 0.5);
}

.social-icon:hover i {
  transform: rotate(-45deg) scale(1.2);
}

/* Effet de vague au survol */
.social-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px; /* Même que l'icône */
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: pulse 1.5s infinite;
}

/* Animation de lueur futuriste */
@keyframes iconGlow {
  0% {
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4),
      inset 0 0 15px rgba(127, 0, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.6),
      inset 0 0 25px rgba(127, 0, 255, 0.5);
  }
}

/* Tooltip */
.icon-tooltip {
  position: absolute;
  bottom: -35px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.social-icon:hover .icon-tooltip {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .links-section {
    padding: 1.5rem 1rem;
    margin: 2.5rem auto;
  }

  .links-section::before {
    font-size: 1rem;
    padding: 0.3rem 1.5rem;
    top: -12px;
  }

  .cta-container {
    gap: 1rem;
  }

  .social-links {
    gap: 1.5rem;
  }

  .social-links::before {
    font-size: 0.9rem;
    padding: 0.3rem 1rem;
    white-space: nowrap;
  }

  .social-links {
    gap: 2rem;
  }

  .social-icon {
    width: 60px;
    height: 60px;
  }

  .social-icon i {
    font-size: 2rem;
  }
}

/* Parcours */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, #7f00ff, #00ffff);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  width: 100%;
  position: relative;
  margin-bottom: 60px;
}

.timeline-content {
  width: 45%;
  padding: 20px;
  background: rgba(127, 0, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  border: 1px solid #7f00ff;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: 55%;
}
.timeline::after {
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .timeline::after {
    opacity: 0;
    display: block; /* Conserver le flux mais rendre invisible */
  }
}

/* Compétences */
.skills-container {
  max-width: 800px;
  margin: 0 auto;
}
/* Conteneur principal */
.tech-logos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 2rem;
  margin: 2rem auto 0;
  padding: 1rem;
  max-width: 1000px;
}

/* Item de logo */
.tech-logo-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px;
}

/* Wrapper pour effets 3D */
.logo-wrapper {
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

/* Image du logo */
.tech-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 2px solid #7f00ff;
  box-shadow: 0 4px 15px rgba(127, 0, 255, 0.2);
  transition: all 0.3s ease;
  transform: translateZ(0);
}

/* Effet hover */
.tech-logo-item:hover .tech-logo {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(127, 0, 255, 0.4);
  filter: drop-shadow(0 0 8px #7f00ff);
}

/* Effet de vague néon */
.logo-hover-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(
    45deg,
    rgba(127, 0, 255, 0.3),
    rgba(0, 255, 255, 0.3)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-logo-item:hover .logo-hover-effect {
  opacity: 1;
}

/* Étiquette */
.tech-label {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #00ffff;
  text-align: center;
  opacity: 0.8;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.tech-logo-item:hover .tech-label {
  opacity: 1;
  transform: translateY(3px);
}

/* Animation au chargement */
@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.tech-logo-item {
  animation: floatLogo 6s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .tech-logos-container {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 1.2rem;
  }

  .tech-logo {
    width: 60px;
    height: 60px;
    padding: 8px;
  }

  .tech-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .tech-logos-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .tech-logo {
    width: 50px;
    height: 50px;
  }
}

/* Styles des projets */

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
  position: relative;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #7f00ff;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(127, 0, 255, 0.2);
}

/* Media queries */
@media (min-width: 640px) {
  .projects-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1536px) {
  .projects-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Pour le responsive mobile */
@media (max-width: 480px) {
  .project-image-container {
    height: 200px;
  }

  .project-description {
    font-size: 0.9rem;
  }
}

.project-image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 46, 0) 0%,
    rgba(10, 10, 46, 0.9) 90%
  );
}

.project-header {
  padding: 1.5rem;
  position: relative;
}

.project-title {
  color: #00ffff;
  font-family: "Orbitron", sans-serif;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.title-icon {
  font-size: 1.2em;
  color: #7f00ff;
  transition: transform 0.3s ease;
}

.project-card:hover .title-icon {
  transform: rotate(45deg);
}

.tech-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tech-tags span {
  background: rgba(127, 0, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid #7f00ff;
}

.project-description {
  color: #e6e6ff;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
}

/* Menu déroulant */
.project-dropdown {
  margin: 1rem;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dropdown-toggle {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(45deg, #7f00ff, #00ffff);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.dropdown-toggle:hover {
  background: linear-gradient(45deg, #6a00d4, #00c8c8);
}

.dropdown-toggle i {
  transition: transform 0.3s ease;
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.dropdown-content.active {
  max-height: 500px;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  color: #e6e6ff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.dropdown-link:hover {
  background: rgba(127, 0, 255, 0.1);
  padding-left: 1.5rem;
}

.dropdown-link i {
  width: 25px;
  text-align: center;
}

/* Animations */
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(127, 0, 255, 0.3);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

@keyframes floatTitle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.project-title .title-text {
  animation: floatTitle 4s ease-in-out infinite;
}

/* Style du lecteur audio */

.audio-player-container {
  border-top: 1px solid #7f00ff33;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.custom-audio-player {
  display: none;
  padding: 1rem;
  background: rgba(127, 0, 255, 0.1);
  border-radius: 10px;
  margin-top: 0.5rem;
}

.custom-audio-player.active {
  display: block;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.play-pause {
  background: #7f00ff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-pause:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px #7f00ff;
}

.seek-slider {
  flex-grow: 1;
  height: 4px;
  background: #7f00ff33;
  border-radius: 2px;
  appearance: none;
}

.seek-slider::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  background: #00ffff;
  border-radius: 50%;
  cursor: pointer;
}

.time-display {
  color: #00ffff;
  font-size: 0.9rem;
  min-width: 100px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.volume-slider {
  width: 80px;
  height: 4px;
  background: #7f00ff33;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: #00ffff;
  border-radius: 50%;
}

/* Styles pour la section articles */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.article-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #7f00ff;
  position: relative;
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(127, 0, 255, 0.3);
}

.article-image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 46, 0) 0%,
    rgba(10, 10, 46, 0.8) 90%
  );
  transition: opacity 0.3s ease;
}

.article-content {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.article-content h3 {
  color: #00ffff;
  margin-bottom: 1rem;
  font-family: "Orbitron", sans-serif;
  min-height: 60px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(45deg, #7f00ff, #00ffff);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(127, 0, 255, 0.4);
}

/* Animation au survol */
.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #7f00ff;
  border-radius: 15px;
  opacity: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

.article-card:hover::before {
  animation: none;
  opacity: 1;
  transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .article-image-container {
    height: 200px;
  }

  .article-content h3 {
    font-size: 1.2rem;
    min-height: auto;
  }
}

/* Section Contact */
#contact {
  text-align: center;
  background: linear-gradient(45deg, #0a0a2ecc, #1a1a4acc);
  backdrop-filter: blur(5px);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 1px solid #7f00ff;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(127, 0, 255, 0.3);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #7f00ff, #00ffff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.contact-icon i {
  font-size: 1.8rem;
  color: white;
}

.contact-content h3 {
  color: #00ffff;
  margin-bottom: 0.5rem;
  font-family: "Orbitron", sans-serif;
}

.contact-content p {
  font-size: 1.1rem;
}

.map-link {
  display: inline-block;
  margin-top: 1rem;
  color: #7f00ff;
  text-decoration: none;
  position: relative;
}

.map-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #7f00ff;
  transition: width 0.3s ease;
}

.map-link:hover::after {
  width: 100%;
}

/* Animation de la photo */
.profile-bubble {
  position: relative;
  width: 150px; /* Taille réduite */
  height: 150px; /* Taille réduite */
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #7f00ff;
  box-shadow: 0 0 15px rgba(127, 0, 255, 0.6);
}

.profile-picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.profile-bubble:hover .profile-picture {
  transform: scale(1.05);
}

.profile-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
  top: 0;
  left: 0;
}

/* Fenêtre vidéo futuriste améliorée */
.video-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  position: relative;
  padding: 2rem;
  background: rgba(10, 10, 46, 0.4);
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
  max-width: 500px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.video-title {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #00ffff;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
  position: relative;
  padding-bottom: 10px;
  text-align: center;
}

.video-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ffff, transparent);
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 240px;
  border: 3px solid #00ffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-frame::before,
.video-frame::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 5;
}

.video-frame::before {
  top: 0;
  left: 0;
  border-top: 2px solid #00ffff;
  border-left: 2px solid #00ffff;
}

.video-frame::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid #00ffff;
  border-right: 2px solid #00ffff;
}

.video-frame:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.video-frame:hover .video-thumbnail {
  transform: scale(1.05);
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 1.2rem;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 255, 255, 0.6);
}

.video-play-button i {
  font-size: 1.8rem;
  color: #00ffff;
}

.video-frame:hover .video-play-button {
  background: rgba(127, 0, 255, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 768px) {
  .video-container {
    padding: 1rem;
    max-width: 90%;
  }

  .video-title {
    font-size: 1.2rem;
  }

  .video-frame {
    height: 180px;
  }
}

/* Footer */
footer {
  background: #0a0a2e;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid #7f00ff;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: rgba(10, 10, 46, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    height: auto;
    padding: 2rem;
    gap: 1.5rem;
    transition: all 0.3s ease;
    z-index: 999;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #7f00ff;
  }

  .nav-menu.active {
    right: 0;
  }

  .timeline-content {
    width: 85%;
    margin-left: 15% !important;
  }

  /* Gestion du titre en mode mobile */
  .nav-title {
    display: none;
  }

  .nav-title-mobile {
    display: block;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(127, 0, 255, 0.3);
    width: 100%;
    text-align: center;
  }

  /* Style futuriste pour les liens du menu mobile */
  .nav-menu .nav-link {
    display: block;
    text-align: center;
    width: 100%;
    font-family: "Orbitron", sans-serif;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    margin: 0.3rem 0;
    position: relative;
    overflow: hidden;
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    border: 1px solid transparent;
    border-radius: 5px;
    background: rgba(127, 0, 255, 0.1);
    transition: all 0.3s ease;
  }

  .nav-menu .nav-link:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(0, 255, 255, 0.2),
      transparent
    );
    transition: all 0.5s ease;
  }

  .nav-menu .nav-link:hover {
    background: rgba(127, 0, 255, 0.2);
    transform: translateY(-3px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
  }

  .nav-menu .nav-link:hover:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7f00ff, #00ffff);
    transform: translateX(-50%);
    transition: width 0.3s ease;
  }

  .nav-menu .nav-link:hover:after {
    width: 80%;
  }
}

/* Responsive - mobiles */
@media (max-width: 576px) {
  .nav-container {
    padding: 0.6rem 1rem;
  }

  .nav-video-container {
    width: 60px;
    height: 35px;
    margin-right: 10px;
  }

  .nav-title {
    font-size: 1.2rem;
    margin: 0 0.5rem;
  }

  .menu-toggle {
    padding: 0.3rem 0.6rem;
    font-size: 1rem;
  }

  .nav-menu {
    top: 60px;
    padding: 1.5rem;
  }

  .nav-title-mobile {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .nav-menu .nav-link {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(127, 0, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(127, 0, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(127, 0, 255, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 2rem auto;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
  }

  .contact-icon i {
    font-size: 1.5rem;
  }
}

/* Modal de diplôme - masquée */
#diplomaModal {
  display: none !important;
}

/* Styles pour l'affichage plein écran du diplôme */
.fullscreen-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-image.active {
  opacity: 1;
  visibility: visible;
}

.fullscreen-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border: 2px solid #00ffff;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.fullscreen-image.active .fullscreen-content {
  transform: scale(1);
}

.close-fullscreen {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #00ffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(10, 10, 46, 0.7);
  border: 2px solid #7f00ff;
  transition: all 0.3s ease;
}

.close-fullscreen:hover {
  background: rgba(127, 0, 255, 0.7);
  transform: rotate(90deg);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .close-fullscreen {
    top: 15px;
    right: 15px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
}

html {
  scroll-behavior: smooth;
}

/* Container radial - animations des bulles */
.radial-section {
  padding: 2rem 1rem 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.radial-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Structure verticale pour les cartes */
.center-photo {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid rgba(127, 0, 255, 0.7);
  box-shadow: 0 0 15px rgba(127, 0, 255, 0.4), 0 0 30px rgba(0, 255, 255, 0.2);
  border-radius: 1rem;
  background: transparent;
  z-index: 10;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.center-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lignes de connexion */
.radial-container::before {
  content: "";
  position: absolute;
  width: 3px;
  height: calc(100% - 300px);
  background: linear-gradient(to bottom, #7f00ff, #00ffff);
  top: 80px;
  z-index: 1;
}

/* Style de chaque carte */
.presentation-card {
  position: relative;
  width: 320px;
  padding: 1.5rem;
  background: rgba(127, 0, 255, 0.07);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(127, 0, 255, 0.5);
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 0 20px rgba(127, 0, 255, 0.2);
  z-index: 5;
  margin: 1.5rem 0;
}

/* Icône des cartes */
.presentation-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #00ffff;
}

/* Lignes horizontales pour connecter les cartes */
.presentation-card::before {
  content: "";
  position: absolute;
  height: 3px;
  width: 80px;
  background: linear-gradient(to right, #7f00ff, #00ffff);
  top: 50%;
  z-index: -1;
}

/* Positionnement des cartes alternées */
.presentation-card:nth-of-type(odd) {
  margin-right: calc(50% + 160px);
}

.presentation-card:nth-of-type(odd)::before {
  right: -80px;
}

.presentation-card:nth-of-type(even) {
  margin-left: calc(50% + 160px);
}

.presentation-card:nth-of-type(even)::before {
  left: -80px;
}

/* Grands écrans */
@media (min-width: 1400px) {
  .radial-container {
    max-width: 1200px;
  }

  .presentation-card {
    width: 350px;
  }

  .center-photo {
    width: 280px;
    height: 280px;
  }

  .presentation-card:nth-of-type(odd) {
    margin-right: calc(50% + 180px);
  }

  .presentation-card:nth-of-type(even) {
    margin-left: calc(50% + 180px);
  }
}

/* Écrans moyens */
@media (max-width: 1200px) and (min-width: 992px) {
  .radial-container {
    max-width: 900px;
  }

  .presentation-card {
    width: 300px;
  }

  .presentation-card:nth-of-type(odd) {
    margin-right: calc(50% + 140px);
  }

  .presentation-card:nth-of-type(even) {
    margin-left: calc(50% + 140px);
  }
}

/* Tablettes */
@media (max-width: 991px) and (min-width: 769px) {
  .radial-container {
    max-width: 700px;
  }

  .presentation-card {
    width: 250px;
    padding: 1.2rem;
  }

  .center-photo {
    width: 200px;
    height: 200px;
  }

  .presentation-card .card-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .presentation-card:nth-of-type(odd) {
    margin-right: calc(50% + 100px);
  }

  .presentation-card:nth-of-type(even) {
    margin-left: calc(50% + 100px);
  }

  .presentation-card::before {
    width: 60px;
  }

  .presentation-card:nth-of-type(odd)::before {
    right: -60px;
  }

  .presentation-card:nth-of-type(even)::before {
    left: -60px;
  }
}

/* Petites tablettes */
@media (max-width: 768px) and (min-width: 576px) {
  .radial-section {
    padding: 2rem 1rem;
  }

  .radial-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    justify-items: center;
  }

  .radial-container::before {
    display: none;
  }

  .center-photo {
    grid-column: 1 / span 2;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
  }

  .presentation-card {
    position: relative;
    width: 100%;
    max-width: 250px;
    margin: 0;
  }

  .presentation-card:nth-of-type(odd),
  .presentation-card:nth-of-type(even) {
    margin-left: 0;
    margin-right: 0;
  }

  .presentation-card::before {
    display: none;
  }
}

/* Responsive - mobile */
@media (max-width: 575px) {
  .radial-section {
    padding: 2rem 0;
  }

  .radial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .radial-container::before {
    display: none;
  }

  .center-photo {
    margin-bottom: 2rem;
    width: 150px;
    height: 150px;
  }

  .presentation-card {
    margin: 1rem 0;
    width: 100%;
    max-width: 300px;
    padding: 1rem;
  }

  .presentation-card:nth-of-type(odd),
  .presentation-card:nth-of-type(even) {
    margin-left: 0;
    margin-right: 0;
  }

  .presentation-card .card-icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .presentation-card::before {
    display: none;
  }
}

/* Modal vidéo futuriste */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.video-modal-content {
  position: relative;
  width: 80%;
  max-width: 900px;
  border: 3px solid #00ffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

/* Optimisations pour la vidéo */
.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #00ffff;
  font-family: "Orbitron", sans-serif;
}

.loader {
  width: 30px;
  height: 30px;
  border: 3px solid transparent;
  border-top: 3px solid #00ffff;
  border-radius: 50%;
  margin-bottom: 10px;
  animation: simple-spin 1.5s linear infinite;
}

@keyframes simple-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Effets futuristes */
.corner-effect {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid #00ffff;
  z-index: 1002;
}

.corner-effect.top-left {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.corner-effect.top-right {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}

.corner-effect.bottom-left {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}

.corner-effect.bottom-right {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

/* Animation pour les coins */
@keyframes cornerGlow {
  0%,
  100% {
    box-shadow: 0 0 5px #00ffff;
  }
  50% {
    box-shadow: 0 0 15px #00ffff;
  }
}

.corner-effect {
  animation: cornerGlow 2s infinite alternate;
}

/* Responsive pour la modal */
@media (max-width: 768px) {
  .video-modal-content {
    width: 95%;
  }

  .video-modal-close {
    top: 10px;
    right: 10px;
  }
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.video-wrapper iframe.loaded {
  opacity: 1;
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #00ffff;
  border-radius: 50%;
  color: #00ffff;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1010;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}

.video-modal-close:hover,
.video-modal-close:focus {
  background: rgba(127, 0, 255, 0.8);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.video-modal-close i {
  pointer-events: none;
}

html {
  scroll-behavior: smooth;
}

/* Titre futuriste */
.futuristic-title-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 3rem 0 2rem;
  z-index: 10;
  overflow: hidden;
  margin-top: 80px;
  background: transparent;
}

.futuristic-title {
  font-family: "Orbitron", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #00ffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(127, 0, 255, 0.7), 0 0 20px rgba(0, 255, 255, 0.5),
    0 0 30px rgba(127, 0, 255, 0.3);
  position: relative;
  animation: titlePulse 3s ease-in-out infinite alternate;
}

.futuristic-title::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #7f00ff,
    #00ffff,
    transparent
  );
  animation: scanLine 4s linear infinite;
}

.futuristic-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #00ffff,
    #7f00ff,
    transparent
  );
  animation: scanLine 4s linear infinite reverse;
}

@keyframes titlePulse {
  0% {
    filter: brightness(0.8);
    transform: scale(0.98);
  }
  100% {
    filter: brightness(1.2);
    transform: scale(1);
  }
}

@keyframes scanLine {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .futuristic-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .futuristic-title-container {
    padding: 2rem 1rem 1.5rem;
    margin-top: 70px;
  }
}

/* Style futuriste pour le nom dans la navbar */
.futuristic-name {
  font-family: "Orbitron", sans-serif;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0 1rem;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  background: rgba(10, 10, 46, 0.5);
  border-left: 2px solid #7f00ff;
  border-right: 2px solid #00ffff;
  position: relative;
  overflow: hidden;
  width: auto;
  max-width: 100%;
}

.futuristic-name::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(127, 0, 255, 0.2),
    rgba(0, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
  animation: scanEffect 3s linear infinite;
  pointer-events: none;
}

.glow-letter {
  display: inline-block;
  font-weight: 600;
  margin: 0 0px;
  position: relative;
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
  animation: letterGlow 2s ease-in-out infinite;
  font-size: 0.75rem;
}

.spacer {
  width: 6px;
  display: inline-block;
}

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

@keyframes letterGlow {
  0%,
  100% {
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
  }
  50% {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8),
      0 0 15px rgba(0, 255, 255, 0.5);
  }
}

/* Style pour le nom dans le menu mobile */
.futuristic-name-mobile {
  font-family: "Orbitron", sans-serif;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.5rem auto 1rem;
  padding: 0.4rem;
  width: fit-content;
  max-width: 90%;
  border-radius: 4px;
  background: rgba(10, 10, 46, 0.7);
  border-top: 2px solid #7f00ff;
  border-bottom: 2px solid #00ffff;
  position: relative;
  overflow: hidden;
}

.futuristic-name-mobile .glow-letter {
  font-size: 0.9rem;
  margin: 0 0px;
}

.futuristic-name-mobile .spacer {
  width: 0.4rem;
  display: inline-block;
}

/* Responsive pour le nom futuriste */
@media (min-width: 1400px) {
  .glow-letter {
    font-size: 0.85rem;
  }

  .spacer {
    width: 8px;
  }

  .futuristic-name {
    padding: 0.5rem 0.8rem;
  }

  .futuristic-name-mobile .glow-letter {
    font-size: 1rem;
  }
}

@media (max-width: 1200px) {
  .glow-letter {
    font-size: 0.7rem;
  }

  .spacer {
    width: 4px;
  }

  .futuristic-name {
    padding: 0.4rem 0.6rem;
    margin: 0 0.4rem;
  }
}

@media (max-width: 576px) {
  .futuristic-name-mobile .glow-letter {
    font-size: 0.9rem;
  }

  .futuristic-name-mobile .spacer {
    width: 0.3rem;
  }

  .futuristic-name-mobile {
    padding: 0.4rem;
  }
}

/* Ajustements responsive pour le nom futuriste */
@media (max-width: 992px) {
  .futuristic-name {
    display: none !important;
  }
}

/* Masquer toutes les instances de futuristic-name dans la navbar pour éviter la duplication */
.nav-container .futuristic-name {
  display: none !important;
}

/* Responsive - grands écrans */
@media (min-width: 1400px) {
  .nav-container {
    padding: 1rem 2rem;
  }

  .nav-video-container {
    width: 100px;
    height: 50px;
  }

  .nav-title {
    font-size: 1.7rem;
  }

  .nav-menu {
    gap: 3rem;
  }

  .nav-link {
    font-size: 1.1rem;
  }
}

/* Responsive - écrans moyens */
@media (max-width: 1200px) and (min-width: 992px) {
  .nav-container {
    padding: 0.8rem 1.5rem;
  }

  .nav-menu {
    gap: 1.5rem;
  }

  .nav-video-container {
    width: 70px;
    height: 40px;
  }
}

/* Responsive - petits écrans/tablettes */
@media (max-width: 991px) {
  .menu-toggle {
    display: block;
  }

  .nav-left {
    width: 100%;
    justify-content: space-between;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: rgba(10, 10, 46, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    height: auto;
    padding: 2rem;
    gap: 1.5rem;
    transition: all 0.3s ease;
    z-index: 999;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #7f00ff;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-title-mobile {
    display: block;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(127, 0, 255, 0.3);
    width: 100%;
    text-align: center;
  }

  /* Style futuriste pour les liens du menu mobile */
  .nav-menu .nav-link {
    display: block;
    text-align: center;
    width: 80%;
    max-width: 300px;
    font-family: "Orbitron", sans-serif;
    font-size: 1.1rem;
    padding: 0.7rem 1.2rem;
    margin: 0.3rem 0;
    position: relative;
    overflow: hidden;
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
    border: 1px solid transparent;
    border-radius: 5px;
    background: rgba(127, 0, 255, 0.1);
    transition: all 0.3s ease;
  }

  .nav-menu .nav-link:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(0, 255, 255, 0.2),
      transparent
    );
    transition: all 0.5s ease;
  }

  .nav-menu .nav-link:hover {
    background: rgba(127, 0, 255, 0.2);
    transform: translateY(-3px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
  }

  .nav-menu .nav-link:hover:before {
    left: 100%;
  }

  .nav-menu .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7f00ff, #00ffff);
    transform: translateX(-50%);
    transition: width 0.3s ease;
  }

  .nav-menu .nav-link:hover::after {
    width: 80%;
  }
}

/* Responsive - mobiles */
@media (max-width: 576px) {
  .nav-container {
    padding: 0.6rem 1rem;
  }

  .nav-video-container {
    width: 60px;
    height: 35px;
    margin-right: 10px;
  }

  .nav-title {
    font-size: 1.2rem;
    margin: 0 0.5rem;
  }

  .menu-toggle {
    padding: 0.3rem 0.6rem;
    font-size: 1rem;
  }

  .nav-menu {
    top: 60px;
    padding: 1.5rem;
  }

  .nav-title-mobile {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .nav-menu .nav-link {
    font-size: 1rem;
    padding: 0.6rem 1rem;
    width: 90%;
  }
}

/* Responsive - très petits écrans */
@media (max-width: 360px) {
  .nav-title {
    font-size: 1rem;
    margin: 0 0.3rem;
  }

  .nav-video-container {
    width: 50px;
    height: 30px;
    margin-right: 8px;
  }

  .menu-toggle {
    padding: 0.2rem 0.5rem;
    font-size: 0.9rem;
  }
}
