/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========== THÈME CLAIR (par défaut) ========== */
body.light-theme {
  background: linear-gradient(135deg, #E8F0FF 0%, #F0E8FF 50%, #F5E8FF 100%);
  color: #1A1A2E;
}

body.light-theme .cursor-glow {
  background: radial-gradient(circle, rgba(0, 204, 255, 0.08) 0%, rgba(170, 0, 255, 0.03) 50%, rgba(255, 255, 255, 0) 70%);
}

body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 204, 255, 0.2);
}

body.light-theme .navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
}

body.light-theme .nav-links a {
  color: #1A1A2E;
}

body.light-theme .nav-links a.active {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-theme .logo {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-theme .social-icon {
  background: rgba(255, 255, 255, 0.9);
  color: #AA00FF;
  border: 1px solid rgba(0, 204, 255, 0.3);
}

body.light-theme .about-card,
body.light-theme .activity-card,
body.light-theme .member-slide,
body.light-theme .speaker-card,
body.light-theme .tech-panel,
body.light-theme .event-outline,
body.light-theme .technical-section,
body.light-theme .sponsor-why {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 204, 255, 0.2);
}

/* Texte dans les cartes - mode clair */
body.light-theme .about-card p,
body.light-theme .activity-card p,
body.light-theme .member-role-slide,
body.light-theme .member-email-slide,
body.light-theme .speaker-title,
body.light-theme .tech-card-dynamic p,
body.light-theme .outline-desc p,
body.light-theme .timeline-event,
body.light-theme .benefit p,
body.light-theme .sponsor-details p {
  color: #2A2A3E;
}

body.light-theme .about-card h3 {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-theme .activity-card h4,
body.light-theme .member-name-slide,
body.light-theme .speaker-name,
body.light-theme .tech-card-dynamic h4,
body.light-theme .benefit h4 {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-theme .legacy-stats,
body.light-theme .legacy-name {
  color: #3A3A5A;
}

body.light-theme .legacy-year {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-theme .mission-text {
  background: rgba(100, 120, 180, 0.1);
  color: #1A1A2E;
  border-left: 3px solid #AA00FF;
}

body.light-theme .outline-value {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-theme .outline-label {
  color: #5A4A8A;
}

body.light-theme .timeline-time {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-theme .timeline-location {
  color: #5A4A8A;
}

body.light-theme .contact-item {
  background: rgba(255, 255, 255, 0.7);
}

body.light-theme .contact-item p {
  color: #1A1A2E;
}

body.light-theme .contact-item h4 {
  color: #5A4A8A;
}

body.light-theme footer {
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(0, 204, 255, 0.2);
}

body.light-theme .footer-info p {
  color: #5A4A8A;
}

body.light-theme .footer-copyright {
  color: #7A6A9A;
}

body.light-theme .tech-structure li,
body.light-theme .tech-deliverables li,
body.light-theme .tech-panel li {
  color: #2A2A3E;
  border-bottom: 1px solid rgba(0, 204, 255, 0.2);
}

body.light-theme .tech-structure h4,
body.light-theme .tech-deliverables h4 {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-theme .section-subtitle {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-theme .hero-subtitle {
  color: #1A1A2E;
}

body.light-theme .hero-date {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light-theme .stat-label {
  color: #5A4A8A;
}

body.light-theme .countdown-label {
  color: #5A4A8A;
}

body.light-theme .hero-badge {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border: 1px solid rgba(0, 204, 255, 0.5);
}

/* ========== THÈME SOMBRE ========== */
body.dark-theme {
  background: linear-gradient(135deg, #0A0F1F 0%, #0B0A1A 50%, #0A0A2A 100%);
  color: #ffffff;
}

body.dark-theme .cursor-glow {
  background: radial-gradient(circle, rgba(170, 0, 255, 0.08) 0%, rgba(0, 204, 255, 0.03) 50%, rgba(0, 0, 0, 0) 70%);
}

body.dark-theme .navbar {
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(170, 0, 255, 0.5);
}

body.dark-theme .navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
}

body.dark-theme .nav-links a {
  color: #ffffff;
}

body.dark-theme .social-icon {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 1px solid rgba(170, 0, 255, 0.5);
}

body.dark-theme .about-card,
body.dark-theme .activity-card,
body.dark-theme .member-slide,
body.dark-theme .speaker-card,
body.dark-theme .tech-panel,
body.dark-theme .event-outline,
body.dark-theme .technical-section,
body.dark-theme .sponsor-why {
  background: rgba(170, 0, 255, 0.08);
  border: 1px solid rgba(170, 0, 255, 0.3);
}

body.dark-theme .about-card p,
body.dark-theme .activity-card p,
body.dark-theme .member-role-slide,
body.dark-theme .member-email-slide,
body.dark-theme .speaker-title,
body.dark-theme .tech-card-dynamic p,
body.dark-theme .outline-desc p,
body.dark-theme .timeline-event,
body.dark-theme .benefit p,
body.dark-theme .sponsor-details p {
  color: #ffffff;
}

body.dark-theme .about-card h3 {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.dark-theme .activity-card h4,
body.dark-theme .member-name-slide,
body.dark-theme .speaker-name,
body.dark-theme .tech-card-dynamic h4,
body.dark-theme .benefit h4 {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.dark-theme .legacy-stats,
body.dark-theme .legacy-name {
  color: #AA88FF;
}

body.dark-theme .legacy-year {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.dark-theme .mission-text {
  background: rgba(170, 0, 255, 0.1);
  color: #ffffff;
  border-left-color: #AA00FF;
}

body.dark-theme .outline-value {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.dark-theme .outline-label {
  color: #AA88FF;
}

body.dark-theme .timeline-time {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.dark-theme .timeline-location {
  color: #AA88FF;
}

body.dark-theme .contact-item {
  background: rgba(170, 0, 255, 0.1);
}

body.dark-theme .contact-item p {
  color: #ffffff;
}

body.dark-theme .contact-item h4 {
  color: #AA88FF;
}

body.dark-theme footer {
  background: rgba(0, 0, 0, 0.85);
  border-top: 1px solid rgba(170, 0, 255, 0.3);
}

body.dark-theme .footer-info p {
  color: #AA88FF;
}

body.dark-theme .footer-copyright {
  color: #AA88FF;
}

body.dark-theme .tech-structure li,
body.dark-theme .tech-deliverables li,
body.dark-theme .tech-panel li {
  color: #ffffff;
  border-bottom: 1px solid rgba(170, 0, 255, 0.2);
}

body.dark-theme .tech-structure h4,
body.dark-theme .tech-deliverables h4 {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.dark-theme .section-subtitle {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.dark-theme .hero-subtitle {
  color: #ffffff;
}

body.dark-theme .hero-date {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.dark-theme .stat-label {
  color: #AA88FF;
}

body.dark-theme .countdown-label {
  color: #AA88FF;
}

body.dark-theme .hero-badge {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border: 1px solid rgba(170, 0, 255, 0.5);
}

/* ========== CANVAS BACKGROUND ========== */
#cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ========== CURSOR GLOW ========== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease;
}

/* ========== SOCIAL SIDEBAR ========== */
.social-sidebar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.social-icon {
  width: 50px;
  height: 50px;
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.social-icon:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(0, 204, 255, 0.3);
}

.social-tooltip {
  position: absolute;
  right: 60px;
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

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

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.1rem 1.35rem; /* reduced padding */
  backdrop-filter: blur(20px);
  z-index: 1000;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.navbar.scrolled {
  padding: 0.05rem 1.35rem; /* reduced padding */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-img {
  height: 45px; /* Extremely small height to make the navbar vertically thin */
  width: auto;
  transform: scale(1.6); /* Make the visual scale bigger */
  transform-origin: left center;
  object-fit: contain;
}
.navbar {
  overflow: visible; 
}

.logo {
  overflow: visible;   
}
.nav-links {
  display: flex;
  gap: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  transition: 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #00CCFF, #AA00FF);
  transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 204, 255, 0.1);
  border: 1px solid rgba(0, 204, 255, 0.3);
  color: #00CCFF;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  color: #ffffff;
  border-color: transparent;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========== SECTIONS ========== */
.section {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.8rem;
  font-family: 'Orbitron', monospace;
  background: linear-gradient(135deg, #00CCFF, #AA00FF, #CC66FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
}

.title-glow {
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00CCFF, #AA00FF, transparent);
  margin: 0.5rem auto 0;
}

.section-subtitle {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 0.5rem;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* ========== FOOTER ========== */
footer {
  backdrop-filter: blur(10px);
  padding: 3rem 2rem 1.5rem;
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  transition: all 0.3s ease;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-family: 'Orbitron', monospace;
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

}

.footer-info p {
  margin: 0.5rem 0;
}

.footer-social a {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.5rem;
  margin-left: 1rem;
  transition: 0.3s;
  display: inline-block;
}

.footer-social a:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.footer-copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 204, 255, 0.2);
  font-size: 0.85rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    transition: 0.3s;
  }
  
  body.light-theme .nav-links {
    background: rgba(255, 255, 255, 0.98);
  }
  
  body.dark-theme .nav-links {
    background: rgba(0, 0, 0, 0.98);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .social-sidebar {
    right: 10px;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-social a {
    margin: 0 0.5rem;
  }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  border-radius: 10px;
}

body.light-theme ::-webkit-scrollbar-track {
  background: #F0E8FF;
}

body.dark-theme ::-webkit-scrollbar-track {
  background: #0B0A1A;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #AA00FF, #CC33FF);
}

/* ========== SELECTION ========== */
::selection {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  color: #ffffff;
}
/* ========== SPLASH SCREEN ========== */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0A0F1F, #0B0A1A, #0A0A2A);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Mode clair pour splash */
body.light-theme #splash-screen {
  background: linear-gradient(135deg, #E8F0FF, #F0E8FF, #F5E8FF);
}

.splash-container {
  text-align: center;
  animation: fadeInUp 0.6s ease;
}

.rotating-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 2rem;
  animation: rotateLogo 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.rotating-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.splash-text h2 {
  font-size: 2rem;
  font-family: 'Orbitron', monospace;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.splash-text p {
  font-size: 1rem;
  color: #AA88FF;
  letter-spacing: 2px;
}

body.light-theme .splash-text p {
  color: #5A4A8A;
}

/* Animation de rotation */
@keyframes rotateLogo {
  0% {
    transform: rotate(0deg) scale(0.9);
    opacity: 0.5;
  }
  50% {
    transform: rotate(180deg) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) scale(0.9);
    opacity: 0.5;
  }
}

/* Animation d'entrée */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Disparition du splash */
#splash-screen.hide {
  opacity: 0;
  visibility: hidden;
}

/* ========== LEGACY SECTION ========== */
.legacy-section {
  margin: 3rem 0;
}

.legacy-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-family: 'Orbitron', monospace;
  z-index: 100;
}

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

.legacy-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 204, 255, 0.2);
  text-align: center;
  z-index: 100;

}

.legacy-card:hover {
  transform: translateY(-5px);
  border-color: #00CCFF;
  box-shadow: 0 10px 25px rgba(0, 204, 255, 0.15);
}

.legacy-year-badge {
  display: inline-block;
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  color: white;
  margin-bottom: 0.8rem;
}

.legacy-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: 'Orbitron', monospace;
}

.legacy-stats {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  color: #AA88FF;
}

.legacy-date-location {
  font-size: 0.75rem;
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #AA88FF;
}

.legacy-date-location i {
  font-size: 0.7rem;
}

.legacy-view-btn {
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: 1px solid #00CCFF;
  border-radius: 30px;
  color: #00CCFF;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.legacy-view-btn:hover {
  background: linear-gradient(135deg, #00CCFF, #AA00FF);
  color: white;
  border-color: transparent;
}

.legacy-total {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 204, 255, 0.2);
  letter-spacing: 1px;
}

/* Mode clair */
body.light-theme .legacy-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 204, 255, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-theme .legacy-card h4 {
  color: #1A1A2E;
}

body.light-theme .legacy-stats,
body.light-theme .legacy-date-location {
  color: #5A4A8A;
}

body.light-theme .legacy-view-btn {
  color: #00CCFF;
  border-color: #00CCFF;
}

/* Mode sombre */
body.dark-theme .legacy-card {
  background: rgba(170, 0, 255, 0.1);
  border: 1px solid rgba(170, 0, 255, 0.2);
}

body.dark-theme .legacy-card h4 {
  color: white;
}

body.dark-theme .legacy-stats,
body.dark-theme .legacy-date-location {
  color: #AA88FF;
}

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


/* ── Hamburger button (3 dots) ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  border-radius: 8px;
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(167,139,250,0.12); }

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a78bfa; /* adapte la couleur à ton thème */
  transition: transform 0.3s, opacity 0.3s;
}

/* Animation ouverture */
.hamburger.open .dot:nth-child(1) { transform: translateY(10px) scale(1.3); }
.hamburger.open .dot:nth-child(2) { opacity: 0; transform: scale(0); }
.hamburger.open .dot:nth-child(3) { transform: translateY(-10px) scale(1.3); }

/* ── Mobile dropdown menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px; /* hauteur de ta navbar */
  left: 0; right: 0;
  background: rgba(10, 10, 26, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(167,139,250,0.2);
  max-height: 0;
  overflow: hidden;
  overflow-y: auto;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  opacity: 0;
  z-index: 999;
}
.mobile-menu.open {
  max-height: 70vh;
  opacity: 1;
}

.mobile-menu-inner {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu .nav-link {
  font-size: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.12em;
  text-decoration: none;
}
.mobile-menu .nav-link::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(167,139,250,0.4);
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.mobile-menu .nav-link:hover::before,
.mobile-menu .nav-link.active::before {
  background: #a78bfa;
  transform: scale(1.4);
}
.mobile-menu .nav-link:last-child { border-bottom: none; }

/* Scrollbar */
.mobile-menu::-webkit-scrollbar { width: 4px; }
.mobile-menu::-webkit-scrollbar-track { background: transparent; }
.mobile-menu::-webkit-scrollbar-thumb { background: rgba(167,139,250,0.3); border-radius: 4px; }

/* ── Responsive breakpoint ── */
@media (max-width: 820px) {
  .nav-links  { display: none; }   /* cache les liens desktop */
  .hamburger  { display: flex; }   /* affiche le bouton dots */
  .mobile-menu { display: block; } /* active le menu mobile */
}
/* ========== HAMBURGER MENU MOBILE ========== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  border-radius: 8px;
  color: var(--text-primary);
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(128, 128, 128, 0.15);
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open .dot:nth-child(1) { transform: translateY(8px) scale(1.3); }
.hamburger.open .dot:nth-child(2) { opacity: 0; transform: scale(0); }
.hamburger.open .dot:nth-child(3) { transform: translateY(-8px) scale(1.3); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  overflow-y: auto;
  opacity: 0;
  z-index: 999;
  backdrop-filter: blur(16px);
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  background: rgba(10, 10, 26, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .mobile-menu {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
  max-height: 70vh;
  opacity: 1;
}

.mobile-menu-inner {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu .nav-link {
  font-size: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-theme .mobile-menu .nav-link {
  color: rgba(0, 0, 0, 0.75);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-menu .nav-link:last-child {
  border-bottom: none;
}

.mobile-menu .nav-link::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(128, 128, 128, 0.4);
  transition: transform 0.2s, background 0.2s;
}

.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
  background: rgba(128, 128, 128, 0.1);
}

.mobile-menu .nav-link:hover::before,
.mobile-menu .nav-link.active::before {
  background: var(--accent-color, #a78bfa);
  transform: scale(1.4);
}

.mobile-menu::-webkit-scrollbar { width: 4px; }
.mobile-menu::-webkit-scrollbar-track { background: transparent; }
.mobile-menu::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.3);
  border-radius: 4px;
}

@media (max-width: 820px) {
  .nav-links   { display: none; }
  .hamburger   { display: flex; }
  .mobile-menu { display: block; }
}

/* ========== 2026 UX REFINEMENTS ========== */
body.no-scroll {
  overflow: hidden;
}

.navbar {
  width: 100%;
  left: 0;
  transform: none;
  padding: 0.1rem clamp(0.9rem, 2vw, 1.4rem);
}

.navbar.scrolled {
  padding: 0.05rem clamp(0.9rem, 2vw, 1.4rem);
}

.logo {
  max-width: none;
}

.logo-img {
  display: block;
  height: 45px;
  width: auto;
  min-width: auto;
  transform: scale(1.6);
  transform-origin: left center;
  object-fit: contain;
}

.nav-links {
  gap: clamp(0.8rem, 1.4vw, 1.3rem);
}

.nav-links a {
  font-size: 0.85rem;
}

.section {
  padding: clamp(3.4rem, 7vw, 6rem) 0;
}

/* Splash replacement using haja (4).html content */
#splash-screen {
  background: #050814;
  inset: 0;
  min-height: 100dvh;
}

.splash-frame-wrap {
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.splash-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.splash-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(5, 8, 20, 0.65), rgba(5, 8, 20, 0));
}

.skip-splash-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-weight: 600;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.skip-splash-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.6);
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 1.1rem;
  }
}

@media (max-width: 820px) {
  .navbar,
  .navbar.scrolled {
    padding: 0.1rem 0.85rem;
  }

  .logo-img {
    height: 40px;
    width: auto;
    min-width: auto;
    transform: scale(1.4);
    transform-origin: left center;
  }

  .social-sidebar {
    right: 10px;
    top: auto;
    bottom: 12px;
    transform: none;
    flex-direction: row;
    gap: 10px;
  }

  .social-tooltip {
    display: none;
  }

  .container {
    padding: 0 1rem;
  }
}