/* ============================================================
   JUNGLE — STYLESHEET
   Direction artistique : Jungle tropicale sombre & néon vert
   ============================================================ */

:root {
  --bg:        #060d07;
  --bg2:       #0b1a0d;
  --green:     #39ff14;
  --green-dim: #1a7a09;
  --gold:      #c8a84b;
  --white:     #f0ede6;
  --grey:      #8a9a85;
  --card-bg:   rgba(255,255,255,0.04);
  --font-title: 'Bebas Neue', sans-serif;
  --font-body:  'Syne', sans-serif;
  --font-mono:  'Space Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

/* Curseur caché sur tous les éléments cliquables (on gère nous-mêmes) */
a, button, [role="button"] { cursor: none !important; }

/* Custom cursor */
.cursor {
  width: 12px; height: 12px;
  background: var(--green);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  transition: transform 0.15s, background 0.15s, width 0.15s, height 0.15s;
}
.cursor.is-pointer {
  width: 8px; height: 8px;
  background: var(--gold);
}
.cursor-follower {
  width: 32px; height: 32px;
  border: 1px solid rgba(57,255,20,0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}
.cursor-follower.is-pointer {
  width: 44px; height: 44px;
  border-color: rgba(200,168,75,0.6);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s;
}
#navbar.scrolled {
  background: rgba(6,13,7,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(57,255,20,0.1);
}
.nav-logo {
  font-family: var(--font-title);
  font-size: 1.8rem;
  letter-spacing: 4px;
  color: var(--green);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links .nav-cta {
  color: var(--green);
  border: 1px solid var(--green);
  padding: 0.4rem 1rem;
  border-radius: 2px;
}
.nav-links .nav-cta:hover {
  background: var(--green);
  color: var(--bg);
}
.nav-play {
  color: var(--green);
  border: 1px solid var(--green);
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-play:hover {
  background: var(--green);
  color: var(--bg);
}
.burger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile game controls */
.mobile-controls {
  display: none;
  gap: 1rem;
  justify-content: center;
  padding: 0.8rem 0 0;
}
.mob-btn {
  flex: 1;
  max-width: 160px;
  padding: 0.9rem;
  background: rgba(57,255,20,0.06);
  border: 1px solid rgba(57,255,20,0.3);
  border-radius: 4px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.mob-btn:active { background: rgba(57,255,20,0.15); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#jungle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 8px;
  color: var(--green);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}
.hero-title {
  font-family: var(--font-title);
  font-size: clamp(8rem, 20vw, 18rem);
  line-height: 0.9;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--green) 0%, #a8f560 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
  text-shadow: none;
  filter: drop-shadow(0 0 60px rgba(57,255,20,0.3));
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--grey);
  letter-spacing: 3px;
  margin-top: 1rem;
  opacity: 0;
  animation: fadeUp 1s 0.7s forwards;
}
.btn-primary {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.9rem 2.5rem;
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: translateX(-100%);
  transition: transform 0.3s;
  z-index: -1;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { color: var(--bg); }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}
.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--grey);
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollPulse 2s infinite;
}

/* ============================================================
   SECTIONS COMMUNES
   ============================================================ */
section { padding: 8rem 2rem; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--green);
  text-transform: uppercase;
}
.section-header h2 {
  font-family: var(--font-title);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 3px;
  margin: 0.5rem 0;
  color: var(--white);
}
.section-header h2 em {
  font-style: normal;
  color: var(--green);
}
.section-header p {
  color: var(--grey);
  font-size: 1rem;
  letter-spacing: 2px;
}

/* ============================================================
   MEMBRES
   ============================================================ */
#membres { background: var(--bg2); }

.membres-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.membre-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  cursor: none;
  width: 240px;
  flex-shrink: 0;
}
.membre-card * { cursor: none !important; }
.membre-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--member-color, var(--green));
}
.membre-card:hover {
  transform: translateY(-6px);
  border-color: var(--member-color, var(--green));
}
.membre-card:hover .membre-emoji {
  transform: scale(1.2) rotate(10deg);
}
.membre-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.membre-nom {
  font-family: var(--font-title);
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--white);
}
.membre-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--member-color, var(--green));
  text-transform: uppercase;
  margin: 0.3rem 0 0.8rem;
}
.membre-desc {
  color: var(--grey);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.membres-note { display: none; }
.membre-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: nowrap;
  margin-top: 0.4rem;
}
.membre-links a {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  text-decoration: none;
  color: var(--grey);
  transition: all 0.2s;
  flex-shrink: 0;
}
.membre-links a svg { fill: currentColor; width: 13px; height: 13px; }
.membre-links a:hover {
  border-color: var(--member-color, var(--green));
  color: var(--member-color, var(--green));
  background: rgba(57,255,20,0.06);
  transform: translateY(-2px);
}
.membre-links .link-disabled {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 4px;
  color: rgba(138,154,133,0.2);
  flex-shrink: 0;
}
.membre-links .link-disabled svg { fill: currentColor; width: 13px; height: 13px; }
/* ============================================================
   RÉSEAUX
   ============================================================ */
#reseaux { background: var(--bg); }

.reseaux-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.reseau-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 1rem 1.4rem;
  text-decoration: none;
  color: var(--white);
  transition: all 0.25s;
}
.reseau-row:hover {
  border-color: var(--platform-color, var(--green));
  transform: translateX(5px);
  background: rgba(57,255,20,0.04);
}
.reseau-platform {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--grey);
  flex-shrink: 0;
}
.reseau-platform svg { fill: currentColor; width: 18px; height: 18px; }
.reseau-row:hover .reseau-platform { color: var(--platform-color, var(--green)); }
.reseau-info { flex: 1; }
.reseau-name {
  font-family: var(--font-title);
  font-size: 1.2rem;
  letter-spacing: 2px;
}
.reseau-handle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--grey);
}
.reseau-arrow {
  color: var(--green);
  opacity: 0;
  transition: opacity 0.2s;
}
.reseau-row:hover .reseau-arrow { opacity: 1; }

/* ============================================================
   PROJETS
   ============================================================ */
#projets { background: var(--bg2); }

.projets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.projet-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
}
.projet-card:hover {
  transform: translateY(-4px);
  border-color: rgba(57,255,20,0.3);
}
.projet-emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.projet-titre {
  font-family: var(--font-title);
  font-size: 1.6rem;
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
}
.projet-desc {
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.projet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.projet-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--grey);
}
.projet-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  border: 1px solid;
}
.status-soon   { color: var(--gold);  border-color: var(--gold);  background: rgba(200,168,75,0.1); }
.status-wip    { color: var(--green); border-color: var(--green); background: rgba(57,255,20,0.08); }
.status-annoncé{ color: #60a5fa;      border-color: #60a5fa;      background: rgba(96,165,250,0.1); }

/* ============================================================
   MINI-JEU
   ============================================================ */
#jeu { background: var(--bg); }

.game-wrapper {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}
.game-info {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 0.8rem;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(57,255,20,0.1);
  border-radius: 4px 4px 0 0;
  border-bottom: none;
}
.game-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 60px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--grey);
  white-space: nowrap;
}
.stat-value {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--green);
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
}
#gameCanvas {
  width: 100%;
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: 0 0 4px 4px;
  background: #0a1a0a;
  display: block;
}
.canvas-wrapper {
  position: relative;
}
.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,13,7,0.92);
  border-radius: 0 0 4px 4px;
  backdrop-filter: blur(6px);
}
.overlay-content {
  text-align: center;
  padding: 2rem;
}
/* Le btn-primary dans l'overlay ne doit pas hériter de l'animation opacity du hero */
.overlay-content .btn-primary {
  opacity: 1 !important;
  animation: none !important;
  margin-top: 0;
  cursor: pointer;
}
.overlay-content p {
  color: var(--grey);
  margin-bottom: 2rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.game-controls {
  margin-top: 1.5rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--grey);
}
.game-overlay.hidden { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg2);
  border-top: 1px solid rgba(57,255,20,0.1);
  text-align: center;
  padding: 4rem 2rem;
}
.footer-logo {
  font-family: var(--font-title);
  font-size: 3rem;
  letter-spacing: 6px;
  color: var(--green);
  margin-bottom: 1rem;
}
footer p {
  color: var(--grey);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.footer-sub { font-family: var(--font-mono); font-size: 0.75rem !important; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.3; transform: scaleY(0.5); }
}

/* ============================================================
   MENU MOBILE OVERLAY
   ============================================================ */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #060d07;
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
#mobile-menu.open {
  display: flex;
}
#mobile-menu a {
  font-family: var(--font-title);
  font-size: 2.2rem;
  letter-spacing: 5px;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
#mobile-menu a:hover { color: var(--green); }
#mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.5rem;
}

#mobile-menu a.mob-play {
  color: var(--green);
  border: 1px solid var(--green);
  padding: 0.6rem 2rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-play  { display: none; }
  .burger {
    display: block;
    z-index: 2001;
    position: relative;
  }
  section { padding: 5rem 1.2rem; }
  .game-info { gap: 0.8rem; }
  .stat-value { font-size: 1.4rem; }
  .stat-label { font-size: 0.6rem; }
  .game-controls { flex-direction: column; gap: 0.5rem; }
  .mobile-controls { display: flex; }
  body { cursor: auto; }
  a, button, [role="button"] { cursor: pointer !important; }
  .membre-card, .membre-card * { cursor: auto !important; }
  .cursor, .cursor-follower { display: none; }
}
