/**
 * Gmod4Life Community — vitrine moderne
 * Tokens staff · layout épuré (sans bandeau type screen)
 */

:root {
  --bg: #07090f;
  --bg2: #0c1019;
  --bg3: #121820;
  --text: #f8fafc;
  --text2: #d1d9e6;
  --text3: #9aa8bc;
  --border: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.2);

  --accent: #e84855;
  --accent2: #ff6b6b;
  --accent-glow: rgba(232, 72, 85, 0.35);
  --accent-soft: rgba(232, 72, 85, 0.12);

  --blue: #3b82f6;
  --cyan: #22d3ee;
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.12);

  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', monospace;

  --nav-h: 68px;
  --max: 1080px;
  --ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.container--narrow { max-width: 640px; }

::selection {
  background: rgba(232, 72, 85, 0.35);
  color: #fff;
}

/* Background */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.site-bg__img {
  position: absolute;
  inset: 0;
  background: url('../img/background.png') center / cover no-repeat;
}
.site-bg__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 15, 0.78) 0%, rgba(7, 9, 15, 0.72) 38%, rgba(7, 9, 15, 0.94) 78%, var(--bg) 100%),
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(7, 9, 15, 0.25) 0%, rgba(7, 9, 15, 0.75) 100%);
}

.navbar, main, .footer { position: relative; z-index: 1; }

/* Nav */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(7, 9, 15, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.navbar.is-scrolled {
  background: rgba(7, 9, 15, 0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--nav-h);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 2;
}
.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 9px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.nav-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #c8d2e0;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav-link.is-active {
  color: #fff;
  background: transparent;
  box-shadow: none;
  position: relative;
}
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* Dropdown Communauté */
.nav-dd {
  position: relative;
}
.nav-dd-btn .nav-dd-chevron {
  opacity: 0.55;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-dd.is-open .nav-dd-btn,
.nav-dd.has-active .nav-dd-btn {
  color: #fff;
}
.nav-dd.is-open .nav-dd-chevron {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 180px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 16, 24, 0.97);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}
.nav-dd.is-open .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dd-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text2);
  text-decoration: none;
  white-space: nowrap;
}
.nav-dd-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.nav-dd-menu a.is-active {
  color: #fff;
  background: rgba(232, 72, 85, 0.14);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-panel {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--text2);
  padding: 0 4px;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-panel:hover { color: #fff; }

.btn-nav-play {
  height: 36px;
  padding: 0 16px;
  font-size: 0.86rem;
  box-shadow: 0 6px 20px rgba(232, 72, 85, 0.28);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.03);
  z-index: 2;
}
.nav-toggle span {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.navbar.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar.open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Online */
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.22);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
}
.online-pill--hero {
  margin-bottom: 20px;
  height: auto;
  padding: 8px 16px;
  font-size: 0.88rem;
  background: rgba(7, 9, 15, 0.55);
  backdrop-filter: blur(12px);
  border-color: rgba(16, 185, 129, 0.35);
}
.online-pill strong {
  color: var(--success);
  font-variant-numeric: tabular-nums;
}
.online-pill.offline {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
}
.online-pill.offline strong { color: #ef4444; }
.online-pill.offline .dot {
  background: #ef4444;
  animation: none;
  box-shadow: none;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse 2s ease-out infinite;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 10px 28px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 14px 36px var(--accent-glow); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  backdrop-filter: blur(12px);
  color: var(--text);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}
.btn-xl {
  padding: 14px 26px;
  font-size: 1rem;
}

/* Hero — full modern, centered */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 48px 0 64px;
  text-align: center;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-logo {
  width: min(280px, 62vw);
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.65));
  animation: float 6s ease-in-out infinite;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0 0 14px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-tagline {
  max-width: 36ch;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  color: #f1f5f9;
  font-weight: 550;
  margin-bottom: 28px;
  line-height: 1.5;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(7, 9, 15, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(7, 9, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  transition: border-color var(--ease);
}
.ip-chip:hover { border-color: rgba(34, 211, 238, 0.45); }
.ip-chip code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #e2e8f0;
}
.ip-chip span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* Atouts — modern columns, no cards */
.section { padding: 80px 0; }

.atouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.atout {
  padding: 22px 20px;
  border-radius: 16px;
  background: rgba(12, 16, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.atout-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent2);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.atout h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: #fff;
}

.atout p {
  color: #dbe3ee;
  font-size: 0.95rem;
  max-width: none;
  line-height: 1.55;
}

/* Links strip */
.links-modern {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.links-modern a {
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
  color: #e8eef6;
  background: rgba(12, 16, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color var(--ease), border-color var(--ease), background var(--ease), transform var(--ease);
}
.links-modern a:hover {
  color: var(--text);
  border-color: rgba(232, 72, 85, 0.4);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* FAQ */
.section--faq { padding-top: 40px; padding-bottom: 100px; }

.faq-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 28px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border-radius: 14px;
  background: rgba(12, 16, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color var(--ease);
}
.faq-item[open] { border-color: rgba(232, 72, 85, 0.35); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 650;
  font-size: 0.95rem;
  color: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--accent2);
  font-size: 1.2rem;
  font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding: 0 18px 16px;
  color: #d5dde8;
  font-size: 0.92rem;
}
.faq-item a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.faq-item code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent2);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background: rgba(7, 9, 15, 0.85);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-copy {
  color: var(--text3);
  font-size: 0.8rem;
}
.footer-credit strong { color: #fff; }
.gh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.8rem;
  vertical-align: middle;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.gh-pill:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}
.gh-pill svg { flex-shrink: 0; opacity: .9; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--bg3);
  border: 1px solid rgba(34, 211, 238, 0.4);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Responsive */
@media (max-width: 1100px) {
  .online-pill-label { display: none; }
  .nav-cluster { gap: 1rem; }
}

@media (max-width: 900px) {
  .atouts { grid-template-columns: 1fr; gap: 28px; }
  .atout p { max-width: none; }

  .nav-toggle { display: flex; }
  .nav-cluster {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    background: rgba(7, 9, 15, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  }
  .navbar.open .nav-cluster {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    gap: 2px;
    width: 100%;
  }
  .nav-link {
    width: 100%;
    height: 44px;
    justify-content: space-between;
  }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active {
    background: rgba(232, 72, 85, 0.12);
    color: #fff;
  }
  .nav-dd-menu {
    position: static;
    transform: none;
    left: auto;
    min-width: 0;
    width: 100%;
    margin: 4px 0 8px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.03);
  }
  .nav-dd.is-open .nav-dd-menu {
    transform: none;
  }
  .nav-actions {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    justify-content: space-between;
  }
  .online-pill { display: inline-flex; }
  .online-pill-label { display: inline; }
  .btn-nav-play { flex: 1; justify-content: center; }
}

@media (max-width: 560px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .footer-row { flex-direction: column; text-align: center; }
  .brand-name { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
