/* ─── ÉTOILES FILANTES — redesign: traits fins bleutés ─── */
.star-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.star {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(180,215,255,0.2) 50%, rgba(255,255,255,0.9) 100%);
  border-radius: 2px;
  opacity: 0;
  animation: shoot 8s linear infinite;
  transform-origin: left center;
}

.star::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  box-shadow:
    0 0 6px 2px rgba(255,255,255,0.9),
    0 0 14px 4px rgba(160,210,255,0.7),
    0 0 28px 8px rgba(100,170,255,0.3);
}

@keyframes shoot {
  0%   { transform: translate(0, 0) rotate(22deg); opacity: 0; }
  6%   { opacity: 1; }
  88%  { opacity: 0.9; }
  100% { transform: translate(120vw, 120vh) rotate(22deg); opacity: 0; }
}

.star:nth-child(1) { top: -4%; left: 8%;  animation-delay: 0s;   animation-duration: 7s;   width: 150px; }
.star:nth-child(2) { top: -4%; left: 28%; animation-delay: 1.2s; animation-duration: 9s;   width: 200px; }
.star:nth-child(3) { top: -4%; left: 52%; animation-delay: 3.1s; animation-duration: 6.5s; width: 120px; }
.star:nth-child(4) { top: -4%; left: 72%; animation-delay: 0.7s; animation-duration: 10s;  width: 180px; }
.star:nth-child(5) { top: -4%; left: 88%; animation-delay: 4.4s; animation-duration: 8s;   width: 140px; }
.star:nth-child(6) { top: 18%; left: -4%; animation-delay: 2.5s; animation-duration: 9.5s; width: 220px; }
.star:nth-child(7) { top: 38%; left: -4%; animation-delay: 5.8s; animation-duration: 7.5s; width: 130px; }
.star:nth-child(8) { top: 62%; left: -4%; animation-delay: 1.6s; animation-duration: 11s;  width: 170px; }
.star:nth-child(9) { top: 80%; left: -4%; animation-delay: 3.9s; animation-duration: 8.5s; width: 155px; }

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(7,21,38,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-home {
  display: flex;
  align-items: center;
  color: var(--text2);
  transition: color .2s;
}

.nav-home:hover {
  color: var(--text);
}

.nav-logo {
  font-weight: 700;
  font-size: 1.4rem;
  font-family: 'DM Serif Display', serif;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: 1rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.02em;
}

.nav-links a {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.2s ease;
}

.nav-links a:hover { opacity: 0.7; }

/* ─── HAMBURGER ─── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 101;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .nav-burger span:nth-child(2) { opacity: 0; }
nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-burger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8,9,15,0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    backdrop-filter: blur(16px);
    font-size: 1rem;
  }

  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text); }
}

/* ─── DROPDOWN ─── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--blue);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  line-height: inherit;
  transition: opacity 0.2s ease;
}

.nav-dropdown-btn:hover { opacity: 0.7; }

.nav-dropdown-btn svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-btn svg,
.nav-dropdown.open  .nav-dropdown-btn svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(7, 21, 38, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  min-width: 200px;
  flex-direction: column;
  padding: 0.4rem 0;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open  .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  font-family: 'DM Mono', monospace;
  color: var(--muted) !important;
  background: none !important;
  -webkit-text-fill-color: var(--muted) !important;
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}

.nav-dropdown-menu a:hover {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  background-color: var(--surface) !important;
}

@media (max-width: 768px) {
  .nav-dropdown { width: 100%; }

  .nav-dropdown-btn {
    width: 100%;
    justify-content: space-between;
    -webkit-text-fill-color: var(--text);
    background: none;
  }

  .nav-dropdown-menu {
    position: static;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0.3rem 0 0 1rem;
    border-left: 1px solid var(--border);
    margin-top: 0.4rem;
  }

  .nav-dropdown-menu a {
    padding: 0.4rem 0;
  }
}
