/* ========= RESET ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #001133 0, #000814 45%, #000000 100%);
  color: #e0f7ff;
}

/* ========= HERO (page d'accueil) ========= */
.page-home .hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, rgba(0, 207, 255, 0.35), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(90, 0, 255, 0.35), transparent 60%),
              #000814;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  animation: floatGlow 18s infinite alternate;
}
.hero::before {
  width: 400px;
  height: 400px;
  background: #00cfff;
  top: -100px;
  left: -120px;
}
.hero::after {
  width: 450px;
  height: 450px;
  background: #5a00ff;
  bottom: -120px;
  right: -150px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4), #000814 80%);
}
.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 0 20px;
}
.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  color: #00cfff;
  text-shadow: 0 0 10px #00cfff, 0 0 25px #5a00ff, 0 0 40px #00cfff;
  margin-bottom: 10px;
}
.hero-subtitle {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: #b3d9ff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  margin-bottom: 30px;
}

/* ========= BUTTONS ========= */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-neon {
  border-color: #00cfff;
  color: #00cfff;
  background: rgba(0, 8, 20, 0.7);
  box-shadow: 0 0 8px rgba(0, 207, 255, 0.8), 0 0 16px rgba(90, 0, 255, 0.6);
}
.btn-neon:hover {
  background: #00cfff;
  color: #000814;
  box-shadow: 0 0 14px #00cfff, 0 0 30px #5a00ff;
  transform: translateY(-1px) scale(1.02);
}

/* ========= NAVBAR ========= */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 8, 20, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 207, 255, 0.25);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00cfff;
  text-decoration: none;
  text-shadow: 0 0 8px #00cfff;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-links a {
  text-decoration: none;
  color: #b3d9ff;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #00cfff, #5a00ff);
  box-shadow: 0 0 6px #00cfff;
  transition: width 0.25s ease;
}
.nav-links a:hover {
  color: #ffffff;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a.active {
  color: #ffffff;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-bar {
  width: 20px;
  height: 2px;
  background: #00cfff;
  box-shadow: 0 0 5px #00cfff;
}

/* ========= MAIN LAYOUT ========= */
.main {
  max-width: 1100px;
  margin: 0 auto 60px auto;
  padding: 30px 20px 60px 20px;
}
.page-header {
  margin-top: 24px;
  margin-bottom: 20px;
}
.page-title {
  font-size: 2rem;
  color: #00cfff;
  text-shadow: 0 0 12px #00cfff, 0 0 20px #5a00ff;
  margin-bottom: 6px;
}
.page-subtitle {
  color: #cfe9ff;
}
.section {
  margin-top: 30px;
}
.section-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #00cfff;
  text-shadow: 0 0 8px #00cfff, 0 0 18px #5a00ff;
}
.section-intro {
  margin-bottom: 18px;
  color: #cfe9ff;
}

/* ========= CARDS ========= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.card-link {
  text-decoration: none;
  color: inherit;
}
.card {
  background: radial-gradient(circle at top, rgba(0, 207, 255, 0.12), transparent 60%);
  background-color: rgba(0, 8, 20, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(0, 207, 255, 0.35);
  box-shadow: 0 0 12px rgba(0, 207, 255, 0.16), 0 0 22px rgba(90, 0, 255, 0.16);
  padding: 16px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card h3 {
  margin-bottom: 8px;
  color: #e9f7ff;
}
.card p {
  font-size: 0.95rem;
  color: #c1ddff;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0, 207, 255, 0.25), 0 0 32px rgba(90, 0, 255, 0.25);
}

/* ========= UPDATES ========= */
.section-updates .card {
  margin-top: 8px;
}
.updates-list {
  list-style: none;
  margin-bottom: 8px;
}
.updates-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0, 207, 255, 0.2);
}
.updates-list li:last-child {
  border-bottom: none;
}
.update-date {
  font-weight: 600;
  color: #00cfff;
  min-width: 110px;
}
.update-text {
  flex: 1;
  color: #d7ecff;
}
.update-note {
  font-size: 0.85rem;
  color: #9ab8ff;
}

/* ========= ACCORDION ========= */
.accordion {
  margin-top: 10px;
}
.accordion-item {
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(0, 207, 255, 0.11), transparent 60%);
  background-color: rgba(0, 8, 20, 0.9);
  border: 1px solid rgba(0, 207, 255, 0.35);
  box-shadow: 0 0 10px rgba(0, 207, 255, 0.16), 0 0 18px rgba(90, 0, 255, 0.13);
}
.accordion-header {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: #e0f7ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.98rem;
}
.accordion-header span {
  pointer-events: none;
}
.accordion-header::after {
  content: "+";
  font-size: 1rem;
  color: #00cfff;
  text-shadow: 0 0 6px #00cfff;
  transition: transform 0.2s ease;
}
.accordion-item.open .accordion-header::after {
  transform: rotate(45deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  transition: max-height 0.3s ease, padding-bottom 0.3s ease;
  font-size: 0.93rem;
}
.accordion-body p,
.accordion-body ul,
.accordion-body ol {
  margin-top: 8px;
  margin-bottom: 8px;
}
.accordion-body ul,
.accordion-body ol {
  padding-left: 18px;
}

/* ========= FOOTER ========= */
.footer {
  border-top: 1px solid rgba(0, 207, 255, 0.25);
  background: radial-gradient(circle at top, rgba(90, 0, 255, 0.25), #000814 50%);
  padding: 18px 20px 24px 20px;
  text-align: center;
  color: #c4dcff;
  font-size: 0.9rem;
}
.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 10px 0 8px 0;
}
.footer-links a {
  color: #00cfff;
  text-decoration: none;
  font-weight: 500;
  text-shadow: 0 0 8px rgba(0, 207, 255, 0.7);
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-links a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}
.footer-top {
  color: #9ab8ff;
  text-decoration: none;
  font-size: 0.8rem;
  opacity: 0.8;
}
.footer-top:hover {
  opacity: 1;
}

/* ========= ANIMATIONS ========= */
@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, 20px, 0) scale(1.05);
  }
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 8, 20, 0.96);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 18px;
    gap: 10px;
    min-width: 180px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }
  .nav-links.open {
    max-height: 260px;
    opacity: 1;
  }
  .nav-links a {
    width: 100%;
  }
}
