/* ============================================================
   GULLIVER — $GLVR — Stylesheet
   Thème : océan sombre × or de voyage × accents cyan
   ============================================================ */

:root {
  --bg: #050b16;
  --bg-2: #0a1322;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --text: #eaf2ff;
  --muted: #93a5c4;
  --gold: #f5c451;
  --gold-2: #ffdf8e;
  --cyan: #4fd8ff;
  --grad-gold: linear-gradient(135deg, #f5c451 0%, #ff9f43 100%);
  --grad-cyan: linear-gradient(135deg, #4fd8ff 0%, #7c6bff 100%);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(245, 196, 81, 0.35); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Décor d'arrière-plan ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; }

.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: drift 22s ease-in-out infinite alternate; }
.blob-a { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(245, 196, 81, 0.28), transparent 65%); }
.blob-b { width: 460px; height: 460px; top: 42%; left: -180px; background: radial-gradient(circle, rgba(79, 216, 255, 0.22), transparent 65%); animation-delay: -8s; }
.blob-c { width: 380px; height: 380px; bottom: -120px; right: 22%; background: radial-gradient(circle, rgba(124, 107, 255, 0.22), transparent 65%); animation-delay: -15s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.12); }
}

.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 35% 80%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 10% 60%, rgba(255,255,255,.4), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle { from { opacity: 0.5; } to { opacity: 1; } }

/* ---------- Barre d'annonce ---------- */
.announce {
  text-align: center;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1204;
  background: var(--grad-gold);
  animation: announcePulse 3s ease-in-out infinite;
}
@keyframes announcePulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 11, 22, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.brand-mark { font-size: 1.4rem; filter: drop-shadow(0 0 8px rgba(245, 196, 81, 0.5)); }
.brand-ticker {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 0.85em;
}

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.nav-links a:hover { color: var(--gold); transform: translateY(-1px); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); padding: 6px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: rgba(245, 196, 81, 0.5); }
.lang-opt { opacity: 0.45; transition: opacity 0.2s; }
.lang-opt.is-active { opacity: 1; color: var(--gold); }
.lang-divider { opacity: 0.3; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700;
  border-radius: 999px; border: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-gold {
  background: var(--grad-gold); color: #1a1204;
  box-shadow: 0 8px 28px rgba(245, 196, 81, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 34px rgba(245, 196, 81, 0.45); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(79, 216, 255, 0.5); box-shadow: 0 8px 24px rgba(79, 216, 255, 0.12); }

/* ---------- Éléments communs ---------- */
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}

.grad-text {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.ca-box {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  max-width: 520px;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 216, 255, 0); }
  50% { box-shadow: 0 0 30px 0 rgba(79, 216, 255, 0.12); }
}
.ca-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ca-row { display: flex; align-items: center; gap: 12px; }
.ca-row code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem; color: var(--cyan);
  word-break: break-all; flex: 1;
}
.btn-copy {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--gold); width: 36px; height: 36px; border-radius: 10px;
  transition: 0.2s; flex-shrink: 0;
}
.btn-copy:hover { background: rgba(245, 196, 81, 0.15); border-color: var(--gold); transform: scale(1.05); }

/* ---------- STATS ---------- */
.stats { padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  text-align: center; padding: 26px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(245, 196, 81, 0.4); }
.stat-num {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.85rem; color: var(--muted); }

/* ---------- Sections génériques ---------- */
.section { padding: 100px 0; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025), transparent);
  border-block: 1px solid var(--border);
}
.section-head { text-align: center; margin-bottom: 60px; }
.section-title { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 700; margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 560px; margin-inline: auto; }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 196, 81, 0.35);
  box-shadow: var(--shadow);
}
.about-cta { margin: 22px 0 24px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-copy p strong { color: var(--gold); }

.check-list { list-style: none; margin-top: 18px; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--text); font-size: 0.95rem; }
.check-list li::before {
  content: "⚓"; position: absolute; left: 0; top: 1px; font-size: 0.85rem;
}

/* ---------- VOYAGE ---------- */
.voyage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.voyage-card {
  position: relative; padding: 48px 36px; min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.voyage-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: var(--grad-gold); opacity: 0; transition: opacity 0.25s;
}
.voyage-card:hover { transform: translateY(-6px); border-color: rgba(245, 196, 81, 0.45); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
.voyage-card:hover::after { opacity: 1; }
.voyage-tag {
  display: inline-block; font-family: var(--font-head); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 10px;
}
.voyage-card h3 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 4px; }
.voyage-sub { font-size: 0.9rem; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.voyage-desc { font-size: 1rem; color: var(--muted); }

/* Cartes de voyage avec image de fond */
.voyage-card-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.voyage-card-img::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 22, 0.08) 0%, rgba(5, 11, 22, 0.4) 55%, rgba(5, 11, 22, 0.8) 100%);
}
.voyage-card-img > * { position: relative; z-index: 1; }
.voyage-card-img .voyage-tag,
.voyage-card-img h3,
.voyage-card-img .voyage-sub,
.voyage-card-img .voyage-desc {
  text-shadow: 0 2px 14px rgba(5, 11, 22, 0.95), 0 1px 3px rgba(5, 11, 22, 0.6);
}

/* ---------- TOKENOMICS ---------- */
.token-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.token-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.token-card {
  padding: 22px 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s;
}
.token-card:hover { transform: translateY(-4px); border-color: rgba(79, 216, 255, 0.4); }
.token-k { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.token-v { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; }
.token-v em { font-style: normal; font-size: 0.75em; color: var(--cyan); }

.token-bars { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.bar-item { width: 100%; }
.bar-head { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 8px; color: var(--text); }
.bar-head span:last-child { font-family: var(--font-head); font-weight: 700; color: var(--gold); }
.bar { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill {
  display: block; height: 100%; width: var(--w, 0%);
  background: var(--grad-cyan); border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-item:first-child .bar-fill { background: var(--grad-gold); }
.token-note { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

/* ---------- BUY / STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 46px; }
.step { position: relative; padding: 30px 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num {
  position: absolute; top: -18px; left: 22px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 6px 14px; border-radius: 999px;
  background: var(--grad-gold); color: #1a1204;
  box-shadow: 0 6px 18px rgba(245, 196, 81, 0.35);
}
.step h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--muted); }
.buy-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- ROADMAP ---------- */
.timeline { position: relative; max-width: 720px; margin-inline: auto; padding-left: 40px; }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--cyan));
  opacity: 0.5;
}
.tl-item { position: relative; padding: 10px 0 40px; }
.tl-dot {
  position: absolute; left: -36px; top: 18px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(245, 196, 81, 0.15);
}
.tl-phase {
  display: inline-block; font-family: var(--font-head); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 4px;
}
.tl-item h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 6px; }
.tl-item p { color: var(--muted); font-size: 0.95rem; max-width: 560px; }

/* ---------- COMMUNITY ---------- */
.section-bg {
  position: relative;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}
.section-bg .container { position: relative; z-index: 1; }
.roadmap-bg {
  position: relative;
  background-image: url("../assets/roadmap.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.roadmap-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(5, 11, 22, 0.85) 0%, rgba(5, 11, 22, 0.65) 50%, rgba(5, 11, 22, 0.9) 100%);
}
.roadmap-bg > * { position: relative; z-index: 1; }
.bg-zone {
  position: relative;
  background-image: url("../assets/tokenomics-buy.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bg-zone::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(5, 11, 22, 0.85) 0%, rgba(5, 11, 22, 0.65) 50%, rgba(5, 11, 22, 0.9) 100%);
}
.bg-zone > * { position: relative; z-index: 1; }

.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.social-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 34px 18px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.social-card:hover { transform: translateY(-6px); border-color: rgba(245, 196, 81, 0.5); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4); }
.social-ico { display: inline-flex; align-items: center; justify-content: center; height: 44px; }
.social-ico svg { width: 44px; height: 44px; }
.ico-x { color: #e7e9ea; }
.ico-tg { color: #26a5e4; }
.ico-discord { color: #5865f2; }
.ico-dex { color: #37d67a; }
.social-name { font-family: var(--font-head); font-weight: 700; }
.social-handle { font-size: 0.8rem; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 120%);
  background: rgba(10, 19, 34, 0.95); border: 1px solid rgba(245, 196, 81, 0.5);
  color: var(--gold); font-family: var(--font-head); font-weight: 600;
  padding: 13px 26px; border-radius: 999px; font-size: 0.9rem;
  box-shadow: var(--shadow); z-index: 200;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Révélation au scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Hover prioritaire après la révélation (spécificité) */
.stat.reveal.visible:hover,
.token-card.reveal.visible:hover,
.social-card.reveal.visible:hover { transform: translateY(-4px); }
.voyage-card.reveal.visible:hover { transform: translateY(-6px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .voyage-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .token-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; z-index: 99;
    flex-direction: column; align-items: center; gap: 6px;
    background: rgba(5, 11, 22, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 20px 16px 26px;
    transform: translateY(-130%); transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.05rem; padding: 8px 0; }
  .nav-burger { display: flex; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta { display: none; }
  .voyage-grid, .steps, .token-cards, .social-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
