/* ═══════════════════════════════════════════════
   VISION CLAIRE — Cinématique Immersif
   ═══════════════════════════════════════════════ */

:root {
  --black: #000000;
  --black-pure: #000000;
  --white: #ffffff;
  --gray-100: #f0f0f0;
  --gray-300: #999999;
  --gray-400: #777777;
  --gray-500: #666666;
  --gray-600: #444444;
  --gray-700: #333333;
  --gray-800: #1a1a1a;
  --gray-900: #0d0d0d;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.25);
  --border-strong: rgba(255,255,255,0.15);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; cursor: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: none; border: none; background: none; font-family: inherit; color: inherit; }
.mono { font-family: var(--font-mono); }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: 120px 0;
  position: relative;
}

/* ─────────── GRAIN OVERLAY ─────────── */

.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
}

/* ─────────── CUSTOM CURSOR ─────────── */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
  top: -3px;
  left: -3px;
  transition: transform 0.1s;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  position: absolute;
  top: -20px;
  left: -20px;
  transition: all 0.15s var(--ease);
}

.cursor.hover .cursor-ring {
  width: 64px;
  height: 64px;
  top: -32px;
  left: -32px;
  border-color: var(--white);
}

.cursor.video-hover .cursor-ring {
  width: 80px;
  height: 80px;
  top: -40px;
  left: -40px;
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.cursor.video-hover .cursor-dot { background: var(--white); }

.cursor-text {
  position: absolute;
  top: -6px;
  left: -16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor.video-hover .cursor-text {
  opacity: 1;
  color: var(--white);
}

/* ─────────── LOADER ─────────── */

.loader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: var(--black-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.loader.done {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.loader-logo {
  width: 70px;
  height: 70px;
  margin-bottom: 24px;
  display: block;
  object-fit: contain;
  animation: loaderPulse 1.5s ease-in-out infinite;
  filter: brightness(0) invert(1);
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.loader-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 200;
  letter-spacing: 8px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 32px;
  text-transform: uppercase;
}

.loader-bar {
  width: 120px;
  height: 1px;
  background: var(--gray-700);
  margin: 0 auto;
  overflow: hidden;
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: var(--white);
  animation: loaderFill 1.8s var(--ease) forwards;
}

@keyframes loaderFill {
  to { width: 100%; }
}

/* ─────────── NAVIGATION ─────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 40px;
  border-bottom: 1px solid var(--border);
}

.nav-left { flex: 1; }

.nav-meta {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 300;
  color: var(--gray-500);
  text-transform: uppercase;
}

.nav-logo {
  display: block;
  width: 48px;
  height: 48px;
  transition: transform 0.4s var(--ease);
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-logo:hover { transform: rotate(15deg) scale(1.1); }

.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  position: relative;
  transition: color 0.4s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 8px 20px !important;
  border: 1px solid var(--border-strong) !important;
  transition: all 0.3s var(--ease) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  border-color: var(--white) !important;
  color: var(--white) !important;
  background: rgba(255,255,255,0.05);
}

.nav-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav-menu span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--white);
  transition: all 0.3s var(--ease);
}

.nav-menu.open span:first-child { transform: rotate(45deg) translate(2px, 4px); }
.nav-menu.open span:last-child { transform: rotate(-45deg) translate(2px, -4px); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--black-pure);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(36px, 10vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--white); }

/* ─────────── HERO ─────────── */

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video iframe,
.hero-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.6) 70%, #000000 100%);
}

/* Hero badge */
.hero-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-badge-line {
  flex: 0 0 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
  animation: badgeLinePulse 3s ease-in-out infinite;
}

.hero-badge-line:last-child {
  background: linear-gradient(90deg, rgba(255,255,255,0.4), transparent);
}

@keyframes badgeLinePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hero-badge-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 200;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.dim { color: var(--gray-500); }

/* Hero content */
.hero-content {
  position: relative;
  z-index: 5;
  padding: 0 80px;
  max-width: 1200px;
}

.hero-title {
  margin-bottom: 32px;
}

.hero-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-line--stroke {
  -webkit-text-stroke: 1.5px var(--white);
  color: transparent;
  font-weight: 600;
}

/* Hero word animation */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: heroWordIn 1s var(--ease) forwards;
}

@keyframes heroWordIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll .mono {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--gray-500);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: var(--gray-700);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

/* ─────────── BUTTONS ─────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--white);
  color: var(--black);
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gray-700);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}

.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { color: var(--white); }
.btn-primary > * { position: relative; z-index: 1; }

.btn-arrow {
  transition: transform 0.3s var(--ease);
}
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 18px 40px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  color: var(--white);
  transition: all 0.3s var(--ease);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

.btn-full { width: 100%; justify-content: center; }

/* ─────────── CLIENTS MARQUEE ─────────── */

.clients {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.clients-track {
  display: flex;
  gap: 0;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.clients-track span {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.15em;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  padding: 0 16px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.clients-track .sep {
  color: rgba(255,255,255,0.1);
  font-size: 14px;
  padding: 0 8px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─────────── MANIFESTO ─────────── */

.manifesto {
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.manifesto .container {
  width: 100%;
}

.manifesto-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mw {
  transition: opacity 0.1s;
}

.manifesto-text {
  font-family: var(--font-body);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 200;
  line-height: 1.5;
  color: rgba(255,255,255,0.5);
}

.manifesto-text em {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  color: var(--white);
}

/* ─────────── SECTION STYLES ─────────── */

.section-head {
  margin-bottom: 72px;
}

.section-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  position: relative;
}

.section-title em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  display: block;
}

.section-sub {
  color: var(--gray-400);
  max-width: 640px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
}

/* ─────────── SERVICES ─────────── */

.services {
  padding-bottom: 0;
}

.services-header {
  padding-bottom: 60px;
}

.services-pin {
  overflow: hidden;
}

.services-track {
  display: flex;
  gap: 24px;
  padding: 0 48px;
  width: max-content;
}

.service-card {
  width: 45vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px;
  position: relative;
  border: 1px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.5s var(--ease);
}

.service-card:hover {
  border-color: var(--border-hover);
}

.service-card-num {
  font-family: var(--font-display);
  font-size: clamp(160px, 15vw, 240px);
  font-weight: 800;
  position: absolute;
  right: 40px;
  top: 40px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  pointer-events: none;
}

.service-card-content {
  position: relative;
  z-index: 1;
}

.service-label {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.service-card-content h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.service-card-content p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  max-width: 400px;
  line-height: 1.7;
}

/* ─────────── PORTFOLIO ─────────── */

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-count {
  font-size: 9px;
  color: var(--gray-500);
  opacity: 0.6;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.filter-btn.active .filter-count { color: var(--gray-700); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Portfolio Horizontal Reel */
.portfolio-reel-wrap {
  overflow: hidden;
  position: relative;
}

.portfolio-reel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px 24px;
}

.reel-counter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reel-current, .reel-total, .reel-sep {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gray-500);
}

.reel-current {
  color: var(--white);
}

.portfolio-reel {
  display: flex;
  gap: 24px;
  padding: 0 48px;
  width: max-content;
}

.portfolio-reel .portfolio-card {
  flex-shrink: 0;
  width: 40vw;
}

.portfolio-reel .card-featured {
  width: 55vw;
}

.portfolio-reel .card-featured:nth-child(2) {
  width: 40vw;
}

.portfolio-reel .portfolio-card .card-thumb {
  overflow: hidden;
}

.portfolio-reel .portfolio-card .card-thumb img {
  width: 120%;
  margin-left: -10%;
}

.reel-bar {
  height: 1px;
  background: var(--border);
  margin: 24px 48px 0;
}

.reel-bar-fill {
  height: 100%;
  background: var(--white);
  width: 0;
  transition: width 0.05s linear;
}

.portfolio-card {
  cursor: none;
  overflow: hidden;
  transition: opacity 0.4s var(--ease);
}

.portfolio-card.hidden { display: none; }

/* Featured cards span 2 columns */
.card-featured {
  grid-column: span 2;
}

.card-featured:nth-child(2) {
  grid-column: span 1;
}

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-900);
}

.card-featured .card-thumb {
  aspect-ratio: 21/9;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
}

.portfolio-card:hover .card-thumb img {
  transform: scale(1.05);
  filter: contrast(1.1) brightness(1.05);
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-card:hover .card-overlay { opacity: 1; }

.card-play-icon {
  font-size: 32px;
  color: var(--white);
  transform: scale(0.8);
  transition: transform 0.3s var(--ease);
}

.portfolio-card:hover .card-play-icon { transform: scale(1); }

.card-meta {
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-cat {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 4px 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.card-meta h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

/* ─────────── MÉTHODE ─────────── */

.methode-split {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 80px;
}

.methode-left {
  position: sticky;
  top: 120px;
  align-self: start;
}

.methode-big-num {
  font-family: var(--font-display);
  font-size: clamp(160px, 15vw, 240px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
  margin-top: 40px;
  transition: all 0.6s var(--ease);
}

.methode-right {
  border-top: 1px solid var(--border);
}

.methode-step {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0.3;
  transition: opacity 0.6s var(--ease);
}

.methode-step.active {
  opacity: 1;
}

.step-num {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gray-500);
  display: block;
  margin-bottom: 20px;
}

.methode-step h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.methode-step p {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  max-width: 480px;
}

/* ─────────── NOS OUTILS ─────────── */

.tools {
  padding: 160px 0;
}

.tools .section-head {
  margin-bottom: 80px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tool-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: default;
}

.tool-card-img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.tool-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-card:hover .tool-card-img img {
  transform: scale(1.05);
}

.tool-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: background 0.5s ease;
}

.tool-card:hover .tool-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.15) 100%);
}

.tool-card-num {
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

.tool-card-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 8px;
}

.tool-card-desc {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 360px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tool-card:hover .tool-card-desc {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────── STATS ─────────── */

.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 120px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat {
  padding: 40px 20px;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 800;
  line-height: 1;
  display: inline;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  color: rgba(255,255,255,0.3);
}

.stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
}

/* ─────────── CLIENTS LOGOS ─────────── */

.clients-logos {
  padding: 120px 0;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 60px;
  background: var(--border);
}

.logo-item {
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  transition: background 0.3s ease;
}

.logo-item:hover {
  background: rgba(255,255,255,0.03);
}

.logo-name {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s ease;
  text-align: center;
}

.logo-item:hover .logo-name {
  color: var(--white);
}

.logo-item-cta {
  background: rgba(255,255,255,0.02);
}

.logo-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-cta-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--white);
}

.logo-cta-arrow {
  font-size: 18px;
  color: var(--white);
  transition: transform 0.3s ease;
}

.logo-item-cta:hover .logo-cta-arrow {
  transform: translateX(6px);
}

/* ─────────── TESTIMONIALS ─────────── */

.testimonials {
  background: var(--black);
}

/* Testimonials — vertical list */
.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 60px;
  background: var(--border);
}

.testimonial-item {
  padding: 60px;
  background: var(--black);
  position: relative;
}

.testimonial-item .testimonial-quote {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 800;
  line-height: 0.7;
  color: rgba(255,255,255,0.04);
  position: absolute;
  top: 32px;
  right: 48px;
  pointer-events: none;
}

.testimonial-item .testimonial-text {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  max-width: 800px;
  margin-bottom: 32px;
}

.testimonial-item .testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-item .testimonial-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
}

.testimonial-item .testimonial-company {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}

/* Legacy grid (hidden) */
.testimonials-grid { display: none; }
.testimonial { display: none; }

/* ─────────── TEAM — Cards Grid ─────────── */

.team {
  background: var(--black);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 80px;
}

.team-card {
  position: relative;
}

.team-card-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--gray-900);
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.8s var(--ease);
}

.team-card:hover .team-card-photo img {
  transform: scale(1.04);
}

.team-card-number {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.08);
}

.team-card-info {
  padding: 24px 0;
}

.team-card-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.team-card-role {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-bottom: 16px;
}

.team-card-bio {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
}

/* ─────────── FAQ ─────────── */

/* FAQ — split asymétrique */
.faq-split {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 80px;
}

.faq-left {
  position: sticky;
  top: 120px;
  align-self: start;
}

.faq-right .faq-list {
  max-width: none;
}

.faq-list {
  max-width: 780px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  text-align: left;
  transition: color 0.3s;
}

.faq-btn:hover { color: var(--gray-300); }

.faq-icon {
  font-size: 20px;
  font-weight: 300;
  color: var(--gray-500);
  transition: all 0.3s var(--ease);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 28px;
}

.faq-answer p {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-300);
  line-height: 1.8;
}

/* ─────────── CONTACT ─────────── */

.contact {
  padding-left: 0;
  padding-right: 0;
}

.contact > .container {
  max-width: none;
  padding: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 0;
  align-items: stretch;
}

.contact-grid > div:first-child {
  padding: 80px 60px;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--border);
}

.contact-grid > div:last-child {
  padding: 80px 60px;
}

.contact-desc {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 200;
  color: var(--gray-400);
  margin-bottom: 48px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
}

.contact-detail a,
.contact-detail > span {
  font-size: 15px;
  transition: color 0.3s;
}

.contact-detail a:hover { color: var(--white); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: transparent;
  border: 1px solid var(--border);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--white);
  transition: border-color 0.3s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-700);
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--black);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gray-500);
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 80px 0;
}

.form-success.show { display: block; }

.success-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-success p:last-child {
  color: var(--gray-300);
  font-size: 15px;
}

/* ─────────── CTA FINAL ─────────── */

.cta-final {
  text-align: center;
  padding: 200px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-content {
  transform-origin: center center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 64px;
}

.cta-title span { display: block; }

.cta-stroke {
  -webkit-text-stroke: 1.5px var(--white);
  color: transparent;
  font-weight: 600;
}

.cta-title em {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.2em;
  color: rgba(255,255,255,0.4);
}

/* ─────────── FOOTER ─────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.footer-name {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 4px;
  font-weight: 300;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 24px;
}

.footer-social a {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: color 0.3s;
}

.footer-social a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gray-700);
}

/* ─────────── VIDEO MODAL ─────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.modal.open { opacity: 1; pointer-events: all; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
}

.modal-content {
  position: relative;
  width: 90vw;
  max-width: 1200px;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.5s var(--ease);
}

.modal.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: -56px;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  transition: color 0.3s;
  z-index: 10;
  cursor: none;
}

.modal-close svg { width: 20px; height: 20px; }
.modal-close:hover { color: var(--white); }

.modal-video {
  aspect-ratio: 16/9;
  background: var(--gray-900);
}

.modal-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.modal-info h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-info .mono {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ─── Vertical (9:16) Video Modal ─── */
.modal-content.vertical {
  width: auto;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content.vertical .modal-video {
  aspect-ratio: 9/16;
  height: 80vh;
  width: auto;
}

.modal-content.vertical .modal-close {
  top: -48px;
  right: -8px;
}

/* ─────────── REVEAL ANIMATIONS ─────────── */

.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.45s; }
.reveal.delay-4 { transition-delay: 0.6s; }

/* ─────────── RESPONSIVE ─────────── */

@media (max-width: 1024px) {
  .container { padding: 0 32px; }

  /* Services — smaller cards */
  .services-track { padding: 0 32px; }
  .service-card { width: 60vw; padding: 48px; }
  .service-card-num { font-size: clamp(120px, 12vw, 180px); }

  /* Portfolio reel — wider cards */
  .portfolio-reel { padding: 0 32px; }
  .portfolio-reel-header { padding: 0 32px 24px; }
  .portfolio-reel .portfolio-card { width: 55vw; }
  .portfolio-reel .card-featured { width: 65vw; }
  .reel-bar { margin: 24px 32px 0; }

  /* Méthode — tighter split */
  .methode-split { gap: 48px; }
  .methode-big-num { font-size: clamp(120px, 12vw, 180px); }

  /* Testimonials */
  .testimonial-item { padding: 48px; }

  /* Client logos */
  .logos-grid { grid-template-columns: repeat(3, 1fr); }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-grid > div:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-grid > div:first-child,
  .contact-grid > div:last-child { padding: 60px 32px; }

  /* Team */
  .team-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Footer */
  .footer-links { display: none; }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  a, button, .portfolio-card, .form-group input,
  .form-group select, .form-group textarea,
  .modal-close { cursor: auto; }
  .cursor { display: none; }

  .container { padding: 0 20px; }
  .section { padding: 100px 0; }

  /* Nav */
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-menu { display: flex; }
  .nav-meta { display: none; }
  .nav-left { flex: 0; }

  /* Hero */
  .hero-content { padding: 0 20px; }
  .hero-line { font-size: clamp(32px, 10vw, 80px); }
  .hero-sub { font-size: 12px; letter-spacing: 0.12em; max-width: 100%; }
  .hero-sub br { display: none; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas a { text-align: center; }

  .section-title { font-size: clamp(40px, 10vw, 56px); }

  /* Services — stack vertical */
  .services-track {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }
  .service-card {
    width: 100%;
    min-height: 60vh;
    padding: 40px 24px;
  }
  .service-card-num { font-size: 100px; right: 20px; top: 20px; }
  .services-header { padding-bottom: 40px; }

  /* Portfolio reel — stack vertical */
  .portfolio-reel {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }
  .portfolio-reel .portfolio-card,
  .portfolio-reel .card-featured {
    width: 100%;
  }
  .portfolio-reel .card-featured:nth-child(2) { width: 100%; }
  .portfolio-reel .portfolio-card .card-thumb img {
    width: 100%;
    margin-left: 0;
  }
  .portfolio-reel-header { padding: 0 20px 24px; flex-direction: column; gap: 16px; align-items: flex-start; }
  .reel-bar { margin: 24px 20px 0; }
  .reel-counter { display: none; }

  /* Méthode — single column */
  .methode-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .methode-left {
    position: relative;
    top: auto;
  }
  .methode-big-num { font-size: 80px; margin-top: 16px; }
  .methode-step { padding: 40px 0; }

  /* Testimonials */
  .testimonial-item { padding: 32px 24px; }
  .testimonial-item .testimonial-quote { font-size: 80px; }
  .testimonial-item .testimonial-text { font-size: 16px; }

  /* Client logos */
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-name { font-size: 14px; }
  .logo-item { padding: 32px 16px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 12px; overflow: hidden; }
  .stat-num { font-size: 40px; }
  .stat-suffix { font-size: 24px; }

  /* Tools — single column */
  .tools { padding: 80px 0; }
  .tools .section-head { margin-bottom: 48px; }
  .tools-grid { grid-template-columns: 1fr; gap: 16px; }
  .tool-card { aspect-ratio: 16/10; border-radius: 12px; }
  .tool-card-overlay { padding: 24px; }
  .tool-card-title { font-size: 20px; }
  .tool-card-desc { opacity: 1; transform: none; font-size: 13px; }

  /* FAQ — single column */
  .faq-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .faq-left {
    position: relative;
    top: auto;
  }

  /* Contact — single column */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > div:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-grid > div:first-child,
  .contact-grid > div:last-child { padding: 40px 20px; }

  /* Team */
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-card-name { font-size: 24px; }
  .team-card-number { font-size: 56px; }

  /* Manifesto */
  .manifesto { padding: 100px 0; min-height: auto; }
  .manifesto-text { font-size: clamp(22px, 5vw, 32px); }

  /* Filters */
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 8px 14px; font-size: 9px; }
  .filter-count { display: none; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* CTA */
  .cta-title { font-size: clamp(40px, 10vw, 60px); }

  /* Vertical video modal — mobile fullscreen */
  .modal-content.vertical {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .modal-content.vertical .modal-video {
    aspect-ratio: 9/16;
    height: 85vh;
    width: auto;
    max-width: 100vw;
  }
  .modal-content.vertical .modal-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 210;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 44px;
    height: 44px;
  }
  .modal-content.vertical .modal-info {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-logo { width: 36px; height: 36px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 48px; }
  .stat-suffix { font-size: 32px; }
  .step-num { font-size: 48px; }
}
