/* ==========================================================
   LAYOUT — HEADER, NAV, FOOTER, CONTAINERS, GLOBAL STRUCTURE
   ========================================================== */

/* ========== HEADER GLOBAL ========== */

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.header-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo img {
  height: 60px;
  transition: transform .25s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* NAV DESKTOP */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

.main-nav a {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  transition: color .2s ease, text-shadow .2s ease;
}

.main-nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 6px #ffd00080;
}

.main-nav a.active {
  color: var(--accent);
}

/* ========== MOBILE HEADER ========== */

.mobile-nav-placeholder {
  height: 64px; /* pour éviter que le contenu remonte sous le header */
}

@media (max-width: 768px) {

  .main-header {
    padding: 8px 0;
    background: var(--bg-soft);
    border-bottom: 1px solid #1c1f25;
  }

  .header-inner {
    flex-direction: column;
    gap: 8px;
  }

  .logo img {
    height: 42px;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .main-nav a {
    font-size: 0.9rem !important;
    color: #dbe2ec !important;
  }

  .main-nav a.active {
    color: var(--link) !important;
  }
}

/* ========== HERO (GENERIC) ========== */

.hero {
  width: 100%;
  text-align: center;
  padding: 40px 0;
}

.hero .main-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem;
  color: #fff;
  letter-spacing: 2px;
  margin: 0 auto;
  text-shadow:
    0 0 10px rgba(255,255,255,0.7),
    0 0 20px rgba(255,255,255,0.4),
    0 0 30px rgba(0,153,255,0.4),
    0 0 40px rgba(0,153,255,0.6);
}

@media (max-width: 768px) {
  .hero {
    padding: 25px 0 10px;
  }

  .hero .main-title {
    font-size: 2.8rem;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
  }
}

/* ========== STRUCTURE DES PAGES ========== */

.container {
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
}

/* Version desktop visible par défaut — mobile masqué */
.home-desktop {
  display: block;
}

.home-mobile {
  display: none;
}

@media (max-width: 768px) {
  .home-desktop {
    display: none !important;
  }
  .home-mobile {
    display: block !important;
  }
}

/* ========== FOOTER ========== */

.site-footer {
  background: linear-gradient(90deg, #101010, #171717);
  border-top: 1px solid var(--line);
  padding: 40px 20px;
  margin-top: 60px;
  text-align: center;
  color: #aaa;
  font-family: 'Genos', sans-serif;
}

.site-footer strong {
  color: var(--link);
  text-shadow: 0 0 6px rgba(0, 201, 255, .35);
}

.site-footer .links a {
  color: #ccc;
  margin: 0 8px;
  transition: color .2s;
}

.site-footer .links a:hover {
  color: var(--link);
}
