/* Jean Huot — DA Magazine Netflix (production) */

:root {
  --bg: #000000;
  --fg: #ffffff;
  --red: #e50914;
  --red-hover: #c10812;
  --muted: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.12);
  --max: 1600px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.82), transparent);
  transition: background 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  background: rgba(0,0,0,0.92);
  padding: 14px 48px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-dot { color: var(--red); }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.site-nav a, .lang-toggle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.82;
  transition: color 0.2s, opacity 0.2s;
  padding: 0;
}
.site-nav a:hover, .lang-toggle:hover { color: var(--red); opacity: 1; }
.lang-toggle {
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 2px;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--red); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.08) 45%, rgba(0,0,0,0.92) 100%);
  z-index: 1;
}
.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.hero-text h1 {
  font-size: clamp(56px, 13vw, 160px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.88;
  text-transform: uppercase;
}
.hero-sub {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.92;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.hero-sub::before, .hero-sub::after {
  content: '';
  display: inline-block;
  width: 60px;
  height: 2px;
  background: var(--red);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bob 2.2s ease-in-out infinite;
}
.chev {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
  transform: rotate(45deg);
  opacity: 0.8;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.9; }
  50% { transform: translate(-50%, 8px); opacity: 0.5; }
}

/* --- Sections --- */
section { padding: 140px 48px; }
.section-head {
  max-width: var(--max);
  margin: 0 auto 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.section-title {
  font-size: clamp(44px, 10vw, 140px);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.9;
}
.section-count {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}

/* --- About --- */
.about {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.4fr;
  gap: 80px;
  align-items: start;
}
.about .section-title {
  font-size: clamp(60px, 9vw, 120px);
  position: sticky;
  top: 140px;
}
.about-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
}
.about-body p:first-child {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--fg);
}
.about-meta {
  margin-top: 12px;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red) !important;
}

/* --- Work section override: no title, only the grid --- */
.work { padding-top: 120px; }

/* --- Shots grid (Work) — sections par pub, grille uniforme 16:9 --- */
.shots-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pub-section { margin: 0; padding: 0; }
.pub-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted, #8a8a8a);
  margin: 0 0 6px;
  padding: 0;
}
.pub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pub-grid .shot { aspect-ratio: 16 / 9; height: auto; }
.pub-sep {
  border: none;
  height: 1px;
  background: var(--red);
  margin: 26px 0;
  opacity: 0.55;
}
.pub-sep.major {
  margin: 10px auto;
  max-width: var(--max);
}
.shot {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  cursor: pointer;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.shot img,
.shot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shot video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.shot.is-playing video { opacity: 1; }
.shot.is-playing img { opacity: 0; }
.shot img { transition: opacity 0.35s ease; }

.shot:hover,
.shot.is-active {
  transform: scale(1.06);
  z-index: 2;
}

.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.0) 40%);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.3s;
}
.shot:hover::after,
.shot.is-active::after { opacity: 0; }

.shot-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  z-index: 3;
  opacity: 0.35;
  transition: opacity 0.3s;
  pointer-events: none;
}
.shot:hover .shot-play,
.shot.is-active .shot-play { opacity: 0; }
.shot-play::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 3px;
  width: 0;
  height: 0;
  border-left: 8px solid rgba(255,255,255,0.85);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* Bento rhythm variants */
.shot.tile-w2 { grid-column: span 2; }
.shot.tile-h2 { grid-row: span 2; }
.shot.tile-w2.tile-h2 { grid-column: span 2; grid-row: span 2; }

/* --- Making of grid --- */
.making-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  overflow: visible;
}
.mo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0a0a0a;
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s, filter 0.4s;
  will-change: transform;
}
.mo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
  transition: filter 0.4s;
}
.mo:hover {
  transform: scale(1.5);
  z-index: 10;
  overflow: visible;
  box-shadow: 0 14px 40px rgba(0,0,0,0.65);
  filter: grayscale(0);
}

/* --- CTA --- */
.cta {
  padding: 180px 48px 160px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at center, rgba(229,9,20,0.14) 0%, transparent 60%), var(--bg);
}
.cta-title {
  font-size: clamp(44px, 8vw, 120px) !important;
  max-width: 1200px;
  margin: 0 auto 28px;
}
.cta-desc {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.72;
  margin: 0 auto 40px;
  max-width: 640px;
}
.cta-lines {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  font-size: 16px;
  font-weight: 500;
}
.cta-line { color: var(--fg); transition: color 0.2s; }
a.cta-line:hover { color: var(--red); }
.cta-line-sep { color: var(--red); font-weight: 700; }
.cta-phone { color: var(--muted); }

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--fg);
  padding: 22px 56px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(229,9,20,0.28);
}

/* --- Footer --- */
.site-footer {
  padding: 36px 48px;
  text-align: center;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 14px;
}
.site-footer .sep { color: var(--red); }

/* --- Lightbox (fullscreen video overlay, sober) --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox[aria-hidden="false"] { display: flex; opacity: 1; }
.lightbox-video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
  outline: none;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 32px;
  font-weight: 200;
  color: rgba(255,255,255,0.7);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.lightbox-close:hover { color: var(--fg); background: rgba(255,255,255,0.08); }

/* --- Reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .site-header { padding: 16px 28px; }
  .site-header.scrolled { padding: 12px 28px; }
  section { padding: 100px 28px; }
  .cta { padding: 140px 28px 120px; }
  .site-footer { padding: 32px 28px; }

  .site-nav ul { gap: 20px; }
  .site-nav a { font-size: 11px; letter-spacing: 0.14em; }

  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about .section-title { position: static; font-size: clamp(52px, 9vw, 100px); }

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

  .pub-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .making-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .site-header { padding: 14px 18px; }
  .site-header.scrolled { padding: 10px 18px; }
  section { padding: 80px 18px; }
  .cta { padding: 110px 18px 96px; }
  .site-footer { padding: 28px 18px; flex-wrap: wrap; gap: 8px; }

  .hero { min-height: 520px; }
  .hero-text h1 { font-size: clamp(48px, 18vw, 84px); }
  .hero-sub { font-size: 11px; letter-spacing: 0.28em; gap: 10px; }
  .hero-sub::before, .hero-sub::after { width: 26px; }

  .burger { display: flex; }
  .site-nav ul {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 60;
  }
  .site-nav.open ul { transform: translateX(0); }
  .site-nav.open .burger { position: fixed; top: 16px; right: 18px; z-index: 70; }
  .site-nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.open .burger span:nth-child(2) { opacity: 0; }
  .site-nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav a { font-size: 16px; letter-spacing: 0.2em; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-title { font-size: clamp(36px, 12vw, 60px); }
  .about-body { font-size: 16px; }
  .about-body p:first-child { font-size: 20px; }

  .pub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  .making-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .cta-title { font-size: clamp(36px, 10vw, 60px) !important; }
  .cta-desc { font-size: 16px; }
  .btn { padding: 18px 40px; font-size: 12px; }

  .lightbox { padding: 12px; }
  .lightbox-close { top: 10px; right: 12px; width: 40px; height: 40px; font-size: 28px; }
}

/* --- Work Featured (bande demo + court-metrage) --- */
.work-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (max-width: 900px) {
  .work-featured { grid-template-columns: 1fr; gap: 18px; }
}
.featured-card {
  position: relative;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color .2s;
}
.featured-card:hover { border-color: rgba(255,255,255,0.18); }
.featured-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.featured-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-info {
  padding: 16px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.featured-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.featured-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

/* --- Featured hover/click + play overlay --- */
.featured-card { cursor: pointer; }
.featured-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(8,8,11,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  color: #EAEAEA;
  font-size: 26px; line-height: 72px; text-align: center;
  backdrop-filter: blur(4px);
  opacity: 0.85;
  transition: opacity .2s, transform .3s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.featured-card:hover .featured-play { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
.featured-card.playing .featured-play { opacity: 0; }
.featured-card.playing .featured-media::before {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--red, #E50914);
  pointer-events: none; z-index: 1;
}
