:root {
  --bg: #0a0a0a;
  --fg: #f0ede8;
  --accent: #c8f55a;
  --muted: #444;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* CURSEUR */
.cursor {
  width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}
.cursor-follower {
  width: 32px; height: 32px;
  border: 1px solid rgba(200,245,90,0.4); border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 48px;
  mix-blend-mode: difference;
  transition: background 0.4s;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 48px;
  letter-spacing: 0.15em;
  color: #f0ede8;
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em;
  color: #ffffff; text-decoration: none; opacity: 1; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

/* HERO */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.0) 40%, rgba(10,10,10,0.8) 100%);
}
.hero-scroll-hint {
  position: absolute; bottom: 72px; right: 48px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em;
  writing-mode: vertical-rl; opacity: 0;
  animation: fadeIn 1s 1s forwards;
}

/* TICKER */
.reel-bar {
  background: var(--accent); color: var(--bg);
  padding: 14px 0; overflow: hidden; white-space: nowrap;
}
.reel-ticker {
  display: inline-flex; gap: 32px;
  animation: ticker 22s linear infinite;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
}
.reel-ticker span { flex-shrink: 0; }

/* SLOGAN */
.slogan-space {
  padding: 40px 48px 20px;
  display: flex;
  align-items: center;
}

.slogan-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 10vw, 140px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
  width: 100%;
  text-align: center;
}

/* PROJETS */
.work { padding: 40px 48px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.project { position: relative; overflow: hidden; }
.project--large { grid-column: span 6; }
.project--small { grid-column: span 6; }

.project-media { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.project-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: grayscale(20%);
}
.project:hover .project-media img { transform: scale(1.05); filter: grayscale(0%); }

.project-hover-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.project:hover .project-hover-overlay { opacity: 1; }
.project-hover-overlay span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em;
  color: var(--fg); border: 1px solid rgba(240,237,232,0.4); padding: 12px 24px;
}

.project-info { display: flex; align-items: baseline; gap: 16px; padding: 16px 0 8px; }
.project-num { font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: 0.1em; }
.project-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.project-tags { font-family: var(--font-mono); font-size: 10px; opacity: 0.4; letter-spacing: 0.1em; margin-top: 4px; }

/* ABOUT */
.about { padding: 120px 48px; border-top: 1px solid var(--muted); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-title { font-size: clamp(40px, 5vw, 80px); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; }
.about-title em { font-style: italic; font-weight: 400; color: var(--accent); }
.about-text { font-size: 17px; line-height: 1.7; opacity: 0.75; margin-bottom: 24px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--muted); }
.stat-num { display: block; font-size: 40px; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.stat-label { display: block; font-family: var(--font-mono); font-size: 10px; opacity: 0.4; letter-spacing: 0.1em; margin-top: 8px; }

/* CLIENTS */
.clients { padding: 80px 48px; border-top: 1px solid var(--muted); }
.clients-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; opacity: 0.4; margin-bottom: 40px; }
.clients-grid { display: flex; gap: 48px; flex-wrap: wrap; align-items: center; }
.clients-grid span { font-size: 20px; font-weight: 700; opacity: 0.25; transition: opacity 0.3s; }
.clients-grid span:hover { opacity: 1; }

/* CONTACT */
.contact { padding: 160px 48px; text-align: center; }
.contact-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; opacity: 0.4; margin-bottom: 32px; }
.contact-email {
  display: block; font-size: clamp(18px, 2.5vw, 36px); font-weight: 800;
  letter-spacing: -0.02em; color: var(--fg); text-decoration: none;
  transition: color 0.3s; margin-bottom: 48px;
}
.contact-email:hover { color: var(--accent); }
.contact-socials { display: flex; justify-content: center; gap: 32px; }
.contact-socials a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  color: var(--fg); opacity: 0.4; text-decoration: none; transition: opacity 0.2s;
}
.contact-socials a:hover { opacity: 1; }

/* FOOTER */
.footer {
  padding: 24px 48px; border-top: 1px solid var(--muted);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; opacity: 0.3; letter-spacing: 0.1em;
}

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 0.3; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav { padding: 20px 24px; }
  .nav-logo { font-size: 32px; }
  .work { padding: 48px 24px; }
  .slogan-space { padding: 0 24px; height: 100px; }
  .about { padding: 80px 24px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .clients { padding: 56px 24px; }
  .contact { padding: 100px 24px; }
  .footer { padding: 20px 24px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project--large, .project--small { grid-column: span 1; }
  .hero-scroll-hint { display: none; }
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
}

/* ================================
   PROJET VFX — outline / filled label
   ================================ */

.project-vfx .project-media {
  position: relative;
  overflow: hidden;
}

.project-vfx .project-img,
.project-vfx .project-vid {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.project-vfx .project-img {
  z-index: 1;
  transition: opacity 0.5s ease;
}

.project-vfx .project-vid {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-vfx:hover .project-vid {
  opacity: 1;
}

/* Label commun */
.project-label {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 68px);
  letter-spacing: 0.12em;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
  user-select: none;
  transform: translate(-50%, -50%) scaleX(1.6);
}

/* Au repos : outline propre */
.project-label--outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.85);
  opacity: 1;
}

/* Au hover : plein blanc */
.project-label--filled {
  color: #ffffff;
  -webkit-text-stroke: 0;
  opacity: 0;
}

.project-vfx:hover .project-label--outline {
  opacity: 0;
}

.project-vfx:hover .project-label--filled {
  opacity: 1;
}

/* ================================
   PAGES PROJET
   ================================ */

.page-hero {
  padding: 180px 48px 16px;
}

.page-hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}

.page-hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 7vw, 100px);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--fg);
  margin-bottom: 24px;
}

.page-hero-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.4;
}

.page-content {
  padding: 16px 48px 80px;
}

.page-media {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 48px;
}

.page-media img,
.page-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-description {
  max-width: 600px;
}

.page-description p {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.6;
}

/* ================================
   PAGE CONTACT
   ================================ */

.contact-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding-top: 120px;
}

.contact-page-left {
  padding: 80px 64px 80px 48px;
  border-right: 1px solid var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-page-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 6vw, 88px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 24px 0 56px;
}

.contact-page-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.contact-page-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.35;
}

.contact-info-item a,
.contact-info-item span {
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.contact-info-item a:hover {
  opacity: 1;
  color: var(--accent);
}

.contact-info-socials {
  display: flex;
  gap: 24px;
}

/* FORMULAIRE */
.contact-page-right {
  padding: 80px 48px 80px 64px;
  display: flex;
  align-items: center;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 1;
  color: #ffffff;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--muted);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 15px;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  opacity: 0.25;
  font-family: var(--font-display);
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
}

.form-submit {
  background: none;
  border: 1px solid rgba(240,237,232,0.3);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  padding: 16px 32px;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  align-self: flex-start;
  min-width: 220px;
}

.form-submit:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.form-success {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.5s;
}

.form-success.visible { opacity: 1; }

@media (max-width: 900px) {
  .contact-page {
    grid-template-columns: 1fr;
    padding-top: 100px;
  }
  .contact-page-left {
    padding: 48px 24px;
    border-right: none;
    border-bottom: 1px solid var(--muted);
  }
  .contact-page-right { padding: 48px 24px; }
}

/* ================================
   STUDIO — SECTIONS SPLIT
   ================================ */

.studio-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}

.studio-split--reverse {
  direction: rtl;
}

.studio-split--reverse > * {
  direction: ltr;
}

.studio-split + .studio-split {
  margin-top: 80px;
}

.studio-split-media {
  overflow: hidden;
}

.studio-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-split-text {
  display: flex;
  align-items: center;
  padding: 80px 64px;
  background: var(--bg);
}

.studio-split-text p {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.65;
  color: var(--fg);
  opacity: 0.85;
  font-weight: 400;
}

@media (max-width: 900px) {
  .studio-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .studio-split--reverse { direction: ltr; }
  .studio-split-media { height: 300px; }
  .studio-split-text { padding: 48px 24px; }
}