/* ============================================
   VNESYS COMMUNITY — CSS Défilement Infini Fluide
   Cartes de TAILLE IDENTIQUE + Typographie Réduite de 40%
   Design: OLED Dark (#000000) & Amber Gold (#F59E0B)
============================================ */

/* --------------------------------------------
   1. VARIABLES & RESET
-------------------------------------------- */
:root {
  --gold:          #F59E0B;
  --gold-hover:    #D97706;
  --gold-glow:     rgba(245, 158, 11, 0.25);
  --bg-dark:       #080808;
  --bg-card:       #141414;
  --border:        #242429;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-main:     #FFFFFF;
  --text-sub:      #A1A1AA;
  --nav-h:         68px;
}

/* --------------------------------------------
   FOOTER (uniformisé - identique à earn.html)
-------------------------------------------- */
footer {
  border-top: 1px solid #1C1C20;
  background: #050507;
  padding: 40px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

footer .logo img {
  height: 32px;
  opacity: 0.6;
  filter: brightness(2);
}

footer p {
  font-size: 0.8rem;
  color: #71717A;
}

footer nav a {
  color: #71717A;
  text-decoration: none;
  font-size: 0.8rem;
  margin-left: 20px;
  transition: color 0.2s;
}

footer nav a:hover {
  color: #F59E0B;
}

footer > a {
  color: #71717A;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

footer > a:hover {
  color: #F59E0B;
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    text-align: center;
  }
  footer nav a {
    margin: 0 10px;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Verrouillage strict : aucune scrollbar native */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', -apple-system, sans-serif;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  overflow: hidden !important;
}

/* Masquage de toutes les barres de défilement */
::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* --------------------------------------------
   2. TOP NAVBAR (Glassmorphism Dark)
-------------------------------------------- */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 2em;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.navbar-logo img {
  height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.4em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.92em;
  font-weight: 600;
  padding: 0.5em 1.1em;
  border-radius: 100px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.navbar-links a:hover {
  background: var(--bg-card);
  color: var(--gold);
}

.navbar-links a.nav-cta {
  background: linear-gradient(135deg, var(--gold) 0%, #D97706 100%);
  color: #000000 !important;
  font-weight: 700;
  padding: 0.5em 1.3em;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  margin-left: 0.4em;
}

.navbar-links a.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  gap: 5px;
}

.navbar-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.navbar-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100%;
  background: rgba(8, 8, 10, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.8em 0 1.2em;
  z-index: 999;
}

.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 0 1.5em; margin: 0; }
.mobile-menu li { border-bottom: 1px solid var(--border-subtle); }
.mobile-menu li:last-child { border-bottom: none; }

.mobile-menu a {
  display: block;
  padding: 0.85em 0.5em;
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98em;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .top-navbar { padding: 0 1.2em; }
  .navbar-links { display: none; }
  .navbar-toggle { display: flex; }
}

/* --------------------------------------------
   3. CONTENEUR & RAIL HORIZONTAL (.grid)
-------------------------------------------- */
main {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
  display: flex;
  align-items: center;
  cursor: grab;
  user-select: none;
}

main:active {
  cursor: grabbing;
}

.grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: calc(100% - 40px);
  width: max-content;
  align-items: stretch;
  padding: 0 2vw;
  gap: 2vw;
  will-change: transform;
}

/* Neutraliser les wrappers intermédiaires (.grid2__item, .grid3__item) */
.grid2__item,
.grid3__item {
  display: contents;
}

/* --------------------------------------------
   4. TAILLE STRICTEMENT IDENTIQUE POUR TOUTES LES CARTES
-------------------------------------------- */
.grid__item {
  flex: 0 0 auto;
  width: 32vw;
  min-width: 380px;
  max-width: 500px;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.grid__item:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.2);
}

/* Vidéo d'arrière-plan */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.65);
  z-index: 0;
  pointer-events: none;
}

/* Overlay sombre pour la lisibilité */
.grid__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}

/* --------------------------------------------
   5. CONTENU & ÉCRITURE RÉDUITE DE 40%
-------------------------------------------- */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 90%;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.85);
  pointer-events: none;
}

/* Titre des tuiles (H2, une seule balise H1 par page pour le SEO) : clamp(1.2rem, 1.9vw, 1.8rem) au lieu de clamp(2rem, 3.2vw, 3rem) */
.hero-content h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 1.9vw, 1.8rem);
  letter-spacing: 0.06em;
  margin-bottom: 0.4em;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-content h2,
.hero-content .cta-btn {
  pointer-events: auto;
}

.tren-red {
  color: var(--gold) !important;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.45);
}

/* Bouton CTA réduit proportionnellement */
.cta-btn {
  margin-top: 0.6em;
  padding: 0.6em 2em;
  background: linear-gradient(135deg, var(--gold) 0%, #D97706 100%);
  color: #000000;
  border: none;
  border-radius: 100px;
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
  filter: brightness(1.1);
}

/* --------------------------------------------
   6. RESPONSIVE MOBILE (< 768px)
-------------------------------------------- */
@media (max-width: 768px) {
  .grid__item {
    width: 82vw;
    min-width: 290px;
    max-width: 360px;
  }
  .hero-content h2 {
    font-size: 1.35rem;
  }
}