/* ========================================================
   VØID Studio — Global Stylesheet
   Palette : Noir · Blanc · Gris
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:ital,wght@0,300;0,400;1,300&display=swap');

/* ── RESET & ROOT ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:      #080808;
  --bg2:     #111111;
  --bg3:     #1a1a1a;
  --accent:  #ffffff;
  --accent2: #aaaaaa;
  --accent3: #cccccc;
  --white:   #f0efea;
  --muted:   #666666;
  --muted2:  #2e2e2e;
  --border:  rgba(255,255,255,0.09);

  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);

  --radius: 2px;
  --nav-h: 80px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-display);
  cursor: none;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── NOISE OVERLAY ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
  opacity: 0.5;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  opacity: 0;
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: exclusion;
  transition: transform 0.08s ease, width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}
.cursor-ring {
  opacity: 0;
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: exclusion;
  transition: transform 0.18s var(--ease-out), width 0.35s var(--ease-out), height 0.35s var(--ease-out), border-color 0.3s, background 0.3s;
}
.cursor-ring.hovered {
  width: 56px; height: 56px;
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
}
.cursor-ring.clicking { transform: scale(0.8) !important; }

/* ── CANVAS STARS ── */
#stars {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 48px;
}
.nav::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,0.97) 0%, rgba(8,8,8,0) 100%);
  pointer-events: none;
}
.nav-logo {
  font-size: 1.3rem; font-weight: 800;
  letter-spacing: 0.12em; color: var(--accent);
  text-decoration: none; z-index: 1;
  transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.55; }
.nav-links {
  display: flex; gap: 36px; align-items: center; z-index: 1;
}
.nav-links a {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--muted); text-decoration: none;
  letter-spacing: 0.1em; transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  font-family: var(--font-mono) !important;
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 10px 20px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  transition: transform 0.25s, box-shadow 0.25s !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 30px rgba(255,255,255,0.15) !important; }

/* Mobile hamburger */
.nav-toggle {
  display: none; z-index: 1;
  flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 1px;
  background: var(--white); transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 190;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 40px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 2.5rem; font-weight: 800;
  color: var(--white); text-decoration: none;
  letter-spacing: -0.02em; transition: color 0.3s;
}
.nav-mobile a:hover { color: var(--accent); }

/* ── PAGE WRAPPER ── */
.page { position: relative; z-index: 1; }

/* ── SECTION BASICS ── */
.section { padding: 120px 48px; }
.section-sm { padding: 80px 48px; }

/* ── SECTION LABEL — avec bordure gauche pour plus de lisibilité ── */
.section-label {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--accent); letter-spacing: 0.28em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 64px;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}
.section-label::before { display: none; }

/* ── TYPOGRAPHY ── */
.display-xl {
  font-size: clamp(4rem, 11vw, 12rem);
  font-weight: 800; line-height: 0.9;
  letter-spacing: -0.03em;
}
.display-lg {
  font-size: clamp(3rem, 7vw, 8rem);
  font-weight: 800; line-height: 0.92;
  letter-spacing: -0.03em;
}
.display-md {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em;
}
.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }
.text-mono {
  font-family: var(--font-mono);
  font-size: 0.85rem; line-height: 1.8;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.04em;
  transition: all 0.3s var(--ease-out);
  cursor: none;
}
.btn-primary {
  background: var(--accent); color: var(--bg);
  padding: 18px 36px; font-size: 0.9rem;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(255,255,255,0.12);
}
.btn-outline {
  border: 1px solid var(--muted2); color: var(--white);
  padding: 16px 32px; font-size: 0.85rem;
}
.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn svg { transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translate(4px, -4px); }

/* ── CARDS ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease-out);
}
.card:hover { border-color: rgba(255,255,255,0.2); background: var(--bg3); }

/* ── TAG ── */
.tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--muted2);
  color: var(--muted);
}

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 0 48px; }

/* ── MARQUEE ── */
.marquee-wrapper {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0; overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.marquee-track {
  display: flex; white-space: nowrap;
  animation: marquee 20s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.18em; color: var(--muted);
  padding: 0 48px; display: flex; align-items: center; gap: 48px;
}
.marquee-dot { color: var(--accent); }

/* ── STATS BAR — fond blanc, texte noir ── */
.stats-bar {
  background: var(--accent);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item { padding: 52px 40px; border-right: 1px solid rgba(8,8,8,0.12); }
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; color: var(--bg); line-height: 1;
}
.stat-suffix { color: rgba(8,8,8,0.45); font-size: 0.6em; }
.stat-label {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: rgba(8,8,8,0.55); margin-top: 8px;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 48px 40px;
  position: relative; z-index: 1;
}
.footer-top {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 64px;
}
.footer-brand .logo {
  font-size: 2rem; font-weight: 800;
  color: var(--accent); letter-spacing: 0.1em;
  display: block; margin-bottom: 16px;
}
.footer-brand p {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--muted); line-height: 1.7; max-width: 260px;
}
.footer-col h4 {
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--accent); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--muted); text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.footer-copy {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted);
}
.footer-socials { display: flex; gap: 24px; }
.footer-socials a {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--muted); text-decoration: none;
  letter-spacing: 0.08em; transition: color 0.3s;
}
.footer-socials a:hover { color: var(--accent); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── PAGE TRANSITION ── */
.page-transition {
  position: fixed; inset: 0; z-index: 9990;
  background: var(--white);
  transform: translateY(100%);
  pointer-events: none;
}
.page-transition.entering { animation: ptEnter 0.5s var(--ease-out) forwards; }
.page-transition.leaving  { animation: ptLeave 0.5s var(--ease-in) forwards; }

/* ── GLITCH — version gris/blanc ── */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
.glitch::before {
  color: var(--accent2);
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
  animation: glitch1 5s infinite;
}
.glitch::after {
  color: var(--accent3);
  clip-path: polygon(0 65%, 100% 65%, 100% 80%, 0 80%);
  animation: glitch2 5s infinite 0.15s;
}

/* ── ANIMATIONS ── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes glitch1 {
  0%,88%,100% { transform: translate(0); opacity: 0; }
  89% { transform: translate(-3px, 1px); opacity: 0.6; }
  91% { transform: translate(3px, -1px); opacity: 0.3; }
  94% { transform: translate(0); opacity: 0; }
}
@keyframes glitch2 {
  0%,90%,100% { transform: translate(0); opacity: 0; }
  91% { transform: translate(3px, -2px); opacity: 0.5; }
  93% { transform: translate(-3px, 1px); opacity: 0.25; }
  96% { transform: translate(0); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ptEnter {
  from { transform: translateY(100%); }
  to   { transform: translateY(0%); }
}
@keyframes ptLeave {
  from { transform: translateY(0%); }
  to   { transform: translateY(-100%); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes scrollLine { 0%{top:-100%} 100%{top:200%} }

/* ── HERO SHARED ── */
.page-hero {
  min-height: 55vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 60px) 48px 80px;
}
.page-hero-tag {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--accent); letter-spacing: 0.2em;
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.9s 0.2s var(--ease-out) forwards;
}
.page-hero h1 {
  opacity: 0; animation: fadeUp 0.9s 0.35s var(--ease-out) forwards;
}
.page-hero p {
  opacity: 0; animation: fadeUp 0.9s 0.55s var(--ease-out) forwards;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .section, .section-sm { padding-left: 32px; padding-right: 32px; }
  .nav { padding: 0 32px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .section, .section-sm { padding-left: 24px; padding-right: 24px; padding-top: 80px; padding-bottom: 80px; }
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .divider { margin: 0 24px; }
  body { cursor: auto; }
  .cursor, .cursor-ring { opacity: 0; display: none; }
}
