@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Montserrat+Subrayada:wght@400;700&display=swap');

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

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255,255,255,1);
  --accent: #52FFD1;
  --border: rgba(255,255,255,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
a, button, [data-cursor], input, textarea, select, label { cursor: none; }

/* ─── CURSEUR CUSTOM ──────────────────────────────── */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, background 0.2s;
}
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s;
}
a:hover ~ #cursor-ring,
button:hover ~ #cursor-ring { width: 52px; height: 52px; }

/* ─── NAV ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 56px;
}
.nav.scrolled {
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 56px;
}
.nav-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}
.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.btn-nav {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--accent); }

/* ─── MOBILE OVERLAY ──────────────────────────────── */
#mobile-overlay {
  position: fixed; inset: 0; z-index: 190;
  background: #000;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 48px 40px;
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  top: 30px;
}
#mobile-overlay.open { transform: translateY(0); }

.mob-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.mob-link:hover { color: var(--accent); }

/* ─── FOOTER ──────────────────────────────────────── */
.footer {
  padding-top: 40px;
}

/* Clip wrapper — shows only top half */
.footer-wordmark-wrap {
  overflow: hidden;
  height: 7.54vw; /* 65% of 11.6vw font-size */
}

.footer-wordmark {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11.3vw;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  display: block;
  padding: 0;
  margin: 0;
}

/* Mobile: "WS" instead of WANDERSTUDIO */
.footer-wordmark-mobile {
  display: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 44vw;
  letter-spacing: -0.05em;
  line-height: 1;
  overflow: hidden;
  height: 28.6vw; /* 65% of 44vw */
  text-align: center;
  width: 100%;
}

@media (max-width: 600px) {
  .footer-wordmark-wrap { display: none; }
  .footer-wordmark-mobile { display: block; }
}
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px 36px;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-bar a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bar a:hover { color: #fff; }

/* ─── SECTION TITLE (big background text) ─────────── */
.section-big-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(5rem, 14vw, 16rem);
  letter-spacing: -0.03em;
  line-height: 0.85;
  text-transform: uppercase;
  color: rgba(255,255,255,0.06);
  padding: 0 56px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

/* ─── REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* ─── METHOD STEPS ───────────────────────────────── */
.method-step {
  display: flex; gap: 32px; align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.method-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--accent);
  min-width: 28px;
  padding-top: 4px;
}
.method-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.method-content p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ─── SERVICES ───────────────────────────────────── */
.service-row {
  display: flex; gap: 40px; align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s;
}
.service-row:hover { padding-left: 10px; }
.service-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.08);
  min-width: 80px;
}
.service-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.service-content p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 560px;
}

/* ─── CONTACT FORM ───────────────────────────────── */
.form-field {
  border-bottom: 1px solid var(--border);
}
.form-field-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.12);
}
.form-field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none; outline: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  resize: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.18); }
.form-field input:focus ~ .form-field-line,
.form-field textarea:focus ~ .form-field-line { background: var(--accent); }

.btn-submit {
  margin-top: 40px;
  background: #fff;
  color: #000;
  border: none;
  padding: 18px 60px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--accent); }

/* ─── PROJECT GRID ───────────────────────────────── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.proj-cell {
  aspect-ratio: 1;
  background: #0d0d0d;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.proj-cell.wide { grid-column: span 3; aspect-ratio: 21/6; }
.proj-cell.half { grid-column: span 2; aspect-ratio: 2/1; }
.proj-cell-inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding: 24px; text-align: center;
}

/* ─── tagline mobile: hidden by default, shown on mobile ── */
.footer-tagline-mobile { display: none; }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 20px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links, #nav-cta { display: none !important; }
  #menu-btn, .nav-mobile-btn { display: flex !important; }
  .section-big-title { padding: 0 24px; }
}
@media (max-width: 600px) {
  /* Nav: hide logo */
  .nav-logo { display: none !important; }

  /* Footer: WS instead of WANDERSTUDIO */
  .footer-wordmark-wrap { display: none; }
  .footer-wordmark-mobile { display: block; }

  /* Tagline right under WS */
  .footer-tagline-mobile {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    padding: 10px 20px 0;
    letter-spacing: 0.04em;
    text-align: center;
  }

  /* Footer bar: column, centré, ordre: email puis location */
  .footer-bar {
    flex-direction: column-reverse; /* email (last child) remonte en premier */
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 28px 24px 40px;
  }
  /* Cacher le tagline dans le footer-bar (il est déjà sous le WS) */
  .footer-bar-tagline { display: none; }

  .proj-grid { grid-template-columns: 1fr; }
  .proj-cell.wide, .proj-cell.half { grid-column: span 1; aspect-ratio: 4/3; }
}
