/* ============================================================
   LUCAS ROYER PORTFOLIO — Main Stylesheet
   Palette: Crème #EDEADE + Vert forêt #2C3B1A
   ============================================================ */

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

:root {
  --cream:       #EDEADE;
  --cream-dark:  #E2DDD0;
  --cream-light: #F5F2EA;
  --green:       #2C3B1A;
  --green-mid:   #3E5428;
  --green-light: #6B8549;
  --green-muted: #8A9E72;
  --white:       #FFFFFF;
  --black:       #0A0A0A;
  --text:        #2C3B1A;
  --text-muted:  #6B7C5A;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 72px;
  --radius: 16px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* ── Page Transition Overlay ────────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  /* Fond crème → less violent than dark green full-screen */
  background: var(--cream);
  opacity: 0;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 1, 1);
}
#page-transition.pt--in  { opacity: 1; pointer-events: all; }
#page-transition.pt--out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0, 0, 0.2, 1);
}

/* ── Cinematic Loader ───────────────────────────────────── */
#site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #080d05;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Rideau haut/bas — s'ouvrent vers l'extérieur */
.loader-curtain {
  position: absolute;
  left: 0; right: 0;
  background: #080d05;
  z-index: 2;
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}
.loader-curtain--top    { top: 0; height: 50%; transform-origin: top; }
.loader-curtain--bottom { bottom: 0; height: 50%; transform-origin: bottom; }

#site-loader.loader--reveal .loader-curtain--top    { transform: translateY(-100%); }
#site-loader.loader--reveal .loader-curtain--bottom { transform: translateY(100%); }

/* Scanlines subtiles */
#site-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.012) 2px,
    rgba(255,255,255,0.012) 4px
  );
  pointer-events: none;
  z-index: 3;
  animation: scanMove 6s linear infinite;
}
@keyframes scanMove {
  from { background-position: 0 0; }
  to   { background-position: 0 100px; }
}

.loader-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 520px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  opacity: 1;
  transition: opacity 0.3s;
}
#site-loader.loader--reveal .loader-inner { opacity: 0; }

/* Compteur de frames */
.loader-frame-counter {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.loader-frame-num {
  font-family: 'Courier New', monospace;
  font-size: 52px;
  font-weight: 700;
  color: rgba(237,234,222,0.9);
  line-height: 1;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}
.loader-frame-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(237,234,222,0.3);
}

/* Centre : logo entre des perforations */
.loader-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.loader-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.loader-film-holes {
  display: flex;
  gap: 6px;
}
.lf-hole {
  width: 10px;
  height: 7px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.05);
}
.loader-logo-box {
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(237,234,222,0.04);
  border: 1px solid rgba(237,234,222,0.08);
  border-radius: 6px;
  animation: loaderLogoPulse 2s ease-in-out infinite;
}
@keyframes loaderLogoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107,133,73,0); }
  50%       { box-shadow: 0 0 24px 4px rgba(107,133,73,0.15); }
}
.loader-logo-img {
  height: 52px;
  width: auto;
  filter: invert(1) brightness(0.75);
  display: block;
}
.loader-logo-text {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 32px;
  color: rgba(237,234,222,0.7);
  letter-spacing: 0.1em;
}
.loader-tagline {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(237,234,222,0.25);
}

/* Barre de progression */
.loader-progress-wrap {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.loader-progress-bar {
  height: 1px;
  background: rgba(107,133,73,0.9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.05s linear;
  box-shadow: 0 0 8px rgba(107,133,73,0.5);
}
.loader-progress-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(237,234,222,0.22);
  text-align: right;
}

/* ── Aesthetic Film Ribbon ──────────────────────────────── */
.aesthetic-film-ribbon {
  position: relative;
  width: 100%;
  height: 80px; /* Fine et élégante */
  background: var(--cream);
  padding: 10px 0;
  overflow: hidden;
  border-top: 1px solid rgba(44,59,26,0.1);
  border-bottom: 1px solid rgba(44,59,26,0.1);
  display: flex;
  align-items: center;
}

/* Le ruban continu (pas coupé) */
.film-ribbon-track {
  position: absolute;
  top: 14px; bottom: 14px;
  left: 0;
  width: 200%; /* Largeur double pour l'infini */
  background-color: #080905;
  box-shadow: 0 4px 20px rgba(44,59,26,0.15);
  
  /* Perforations de pellicule (haut et bas) en CSS pur */
  background-image: 
    repeating-linear-gradient(90deg, transparent 0, transparent 4px, rgba(255,255,255,0.2) 4px, rgba(255,255,255,0.2) 8px),
    repeating-linear-gradient(90deg, transparent 0, transparent 4px, rgba(255,255,255,0.2) 4px, rgba(255,255,255,0.2) 8px);
  background-position: 
    0 3px,
    0 calc(100% - 3px);
  background-size: 
    100% 4px,
    100% 4px;
  background-repeat: repeat-x;
  
  animation: ribbonScroll 25s linear infinite;
}

/* Lignes séparatrices internes très subtiles (fausses frames) */
.film-ribbon-track::before {
  content: '';
  position: absolute;
  inset: 10px 0;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 100px, rgba(255,255,255,0.03) 100px, rgba(255,255,255,0.03) 101px);
  z-index: 1;
}

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

/* Animation design avancé : Glare / Reflet de lumière balayant la pellicule */
.film-ribbon-glare {
  position: absolute;
  top: 0; bottom: 0;
  left: -50%;
  width: 300px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-30deg);
  animation: ribbonGlare 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes ribbonGlare {
  0%, 15% { left: -50%; opacity: 0; }
  50% { opacity: 1; }
  85%, 100% { left: 150%; opacity: 0; }
}

a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; display: block; }
button { cursor: none; border: none; background: none; font-family: inherit; }

/* ── Custom Cursor ─────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s;
  mix-blend-mode: multiply;
}
.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease-out), width 0.35s var(--ease-out), height 0.35s var(--ease-out), opacity 0.3s;
  opacity: 0.6;
}
.cursor.is-hovering { width: 16px; height: 16px; background: var(--green-light); }
.cursor-follower.is-hovering { width: 56px; height: 56px; opacity: 1; }
.cursor.is-video { width: 64px; height: 64px; background: rgba(44,59,26,0.15); border: none; }
.cursor-follower.is-video { width: 80px; height: 80px; }

/* ── Navigation ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  align-items: center;
  padding: 0 32px;
  z-index: 100;
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(237, 234, 222, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(44,59,26,0.1);
}
.nav-logo .logo-img {
  height: 48px;
  width: auto;
  filter: invert(0);
  transition: transform 0.3s var(--ease-out);
}
.nav-logo .logo-img:hover { transform: scale(1.05); }
.nav-info {
  display: flex;
  justify-content: center;
  gap: 48px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.nav-link {
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 5px 0 5px 20px;
  overflow: hidden;
  transition: color 0.28s var(--ease-out);
  /* Entrée animée */
  opacity: 0;
  transform: translateX(14px);
  animation: navLinkIn 0.6s var(--ease-out) forwards;
}
.nav-link:nth-child(1) { animation-delay: 0.15s; }
.nav-link:nth-child(2) { animation-delay: 0.22s; }
.nav-link:nth-child(3) { animation-delay: 0.29s; }
.nav-link:nth-child(4) { animation-delay: 0.36s; }
@keyframes navLinkIn {
  to { opacity: 1; transform: translateX(0); }
}
/* Ligne de soulignement qui glisse */
.nav-link::after {
  content: '';
  position: absolute;
  right: 0; bottom: 3px;
  height: 1px;
  width: 0;
  background: var(--green);
  transition: width 0.32s var(--ease-out);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--text); }
/* Lien actif */
.nav-link.active {
  color: var(--text);
  font-weight: 500;
}
.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 8px rgba(107,133,73,0.5);
  animation: activeDot 2.5s ease-in-out infinite;
}
@keyframes activeDot {
  0%,100% { box-shadow: 0 0 4px rgba(107,133,73,0.4); }
  50%      { box-shadow: 0 0 12px rgba(107,133,73,0.7); }
}
.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-menu-btn span {
  display: block;
  width: 24px; height: 2px;
  background: var(--green);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-link {
  font-family: var(--font-serif);
  font-size: clamp(28px, 6vw, 48px);
  color: var(--text);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--green-light); }

/* ── Grid Lines ─────────────────────────────────────────── */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
  z-index: 0;
}
.hero-grid-lines > div {
  border-right: 1px solid rgba(44,59,26,0.07);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 32px 0;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  top: 10%; left: 50%;
  transform: translateX(-20%);
  width: 600px; height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(107,133,73,0.18) 0%,
    rgba(180,200,160,0.1) 40%,
    transparent 70%);
  border-radius: 60% 40% 50% 60%;
  filter: blur(40px);
  animation: blobFloat 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes blobFloat {
  0%, 100% { transform: translateX(-20%) scale(1) rotate(0deg); }
  33% { transform: translateX(-15%) scale(1.05) rotate(3deg); }
  66% { transform: translateX(-25%) scale(0.97) rotate(-2deg); }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(56px, 9vw, 130px);
  line-height: 1.0;
  font-weight: 400;
  color: var(--green);
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
}
.hero-title .italic { font-style: italic; }
.line-reveal {
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  animation: lineReveal 0.9s var(--ease-out) forwards;
}
.line-reveal:nth-child(1) { animation-delay: 0.3s; }
.line-reveal:nth-child(2) { animation-delay: 0.5s; }
.line-reveal:nth-child(3) { animation-delay: 0.7s; }
@keyframes lineReveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--green);
  padding-bottom: 4px;
  transition: gap 0.3s var(--ease-out);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.1s forwards;
}
.hero-cta:hover { gap: 20px; }
.hero-cta .arrow { transition: transform 0.3s; }
.hero-cta:hover .arrow { transform: translateX(4px); }

/* Reel strip */
.hero-reel-strip {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  overflow: hidden;
  padding: 0 0 40px;
}
.reel-track {
  display: flex;
  gap: 12px;
  animation: reelScroll 30s linear infinite;
  width: max-content;
}
/* reel runs at constant speed — no hover state that could reset position */
.reel-item { will-change: transform; }
@keyframes reelScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.reel-item {
  width: 240px;
  height: 135px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  /* Fond sombre style pellicule : jamais de carré blanc */
  background: #1a1f12;
  border: 1px solid rgba(255,255,255,0.06);
}
/* Grain sur les items vides */
.reel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(255,255,255,0.015) 3px, rgba(255,255,255,0.015) 4px
  );
  z-index: 1;
  pointer-events: none;
}
.reel-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}
.reel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44,59,26,0.08);
  transition: opacity 0.3s;
  z-index: 3;
}
.reel-item:hover::after { opacity: 0; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.4s forwards;
}
.scroll-line {
  width: 40px; height: 1px;
  background: var(--green-muted);
  transform-origin: left;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.5); opacity: 0.4; }
}

/* ── Featured Projects ──────────────────────────────────── */
.featured {
  padding: 12px 0 80px;
}
.section-header {
  padding: 40px 60px 0;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.section-header::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--green-light);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  color: var(--green);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

/* ── Full-bleed Project Blocks ──────────────────────────── */
.projects-scroll { display: flex; flex-direction: column; }

.project-block {
  display: grid;
  grid-template-columns: 58% 42%;
  min-height: 90vh;
  align-items: center;
  position: relative;
  border-top: 1px solid rgba(44,59,26,0.1);
  overflow: hidden;
}
.project-block:last-child { border-bottom: 1px solid rgba(44,59,26,0.1); }
.project-block--reverse { grid-template-columns: 42% 58%; }
.project-block--reverse .pb-visual { order: 2; }
.project-block--reverse .pb-info  { order: 1; padding-left: 60px; padding-right: 40px; }

/* ── Visual side ── */
.pb-visual {
  position: relative;
  height: 100%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Clip-path reveal container */
.pb-video-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s cubic-bezier(0.16,1,0.3,1);
}
.pb-video-clip.revealed { clip-path: inset(0% 0 0 0); }

.pb-video-wrap {
  position: absolute;
  inset: 0;
  cursor: pointer;
  overflow: hidden;
}

.pb-vid {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.1);
  will-change: transform;
}

/* Dark tint */
.pb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44,59,26,0.35) 0%,
    rgba(44,59,26,0.1) 60%,
    transparent 100%
  );
  transition: opacity 0.5s;
}
.pb-video-wrap:hover .pb-overlay { opacity: 0.5; }

/* Play button */
.pb-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 72px; height: 72px;
  background: rgba(237,234,222,0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.pb-video-wrap:hover .pb-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.pb-play svg { width: 22px; height: 22px; fill: var(--green); margin-left: 4px; }

/* Giant background number */
.pb-bg-num {
  position: absolute;
  bottom: -20px; right: -10px;
  font-family: var(--font-serif);
  font-size: clamp(120px, 18vw, 220px);
  font-weight: 700;
  color: rgba(237,234,222,0.12);
  line-height: 1;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out) 0.3s, transform 0.9s var(--ease-out) 0.3s;
  user-select: none;
}
.pb-bg-num.revealed { opacity: 1; transform: translateY(0); }

/* ── Info side ── */
.pb-info {
  padding: 60px 60px 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.pb-info.revealed { opacity: 1; transform: translateX(0); }
.project-block--reverse .pb-info {
  transform: translateX(-32px);
}
.project-block--reverse .pb-info.revealed { transform: translateX(0); }

.pb-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.pb-count {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.pb-count-sep { margin: 0 2px; }
.pb-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(44,59,26,0.2);
  color: var(--green-mid);
  padding: 4px 14px;
  border-radius: 100px;
}
.pb-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 20px;
}
.pb-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 380px;
}
.pb-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(44,59,26,0.08);
}
.pb-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pb-meta-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 52px;
  flex-shrink: 0;
}
.pb-meta-val {
  font-size: 14px;
  color: var(--green);
}
.pb-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--cream);
  padding: 16px 32px;
  border-radius: 100px;
  align-self: flex-start;
  cursor: pointer;
  transition: background 0.3s, transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s;
}
.pb-cta:hover {
  background: var(--green-mid);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(44,59,26,0.2);
}
.pb-cta-icon { font-size: 11px; }



/* ── All Projects Grid (work.html) ──────────────────────── */
.works-hero {
  padding: calc(var(--nav-h) + 60px) 32px 60px;
  position: relative;
  overflow: hidden;
}
.works-hero-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4,1fr); pointer-events: none; }
.works-hero-grid > div { border-right: 1px solid rgba(44,59,26,0.07); }
.works-blob {
  position: absolute;
  top: -20%; right: -10%;
  width: 500px; height: 400px;
  background: radial-gradient(ellipse, rgba(107,133,73,0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.works-title {
  font-family: var(--font-serif);
  font-size: clamp(52px, 10vw, 140px);
  font-weight: 400;
  color: var(--green);
  line-height: 0.95;
  position: relative;
  z-index: 1;
}
.works-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 24px;
  position: relative;
  z-index: 1;
}
/* Filters */
.filter-bar {
  padding: 32px 32px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(44,59,26,0.12);
}
.filter-btn {
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(44,59,26,0.25);
  color: var(--text-muted);
  transition: all 0.25s;
  cursor: pointer;
  background: transparent;
  font-family: var(--font-sans);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}
/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  padding: 40px 32px 120px;
}
.grid-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-dark);
  border: 1px solid rgba(44,59,26,0.1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), box-shadow 0.3s;
}
.grid-card.visible { opacity: 1; transform: translateY(0); }
.grid-card:hover { box-shadow: 0 20px 60px rgba(44,59,26,0.12); }
.grid-card-video {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.grid-card:hover .grid-card-video { transform: scale(1.04); }
.grid-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,59,26,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.grid-card:hover .grid-card-overlay { opacity: 1; }
.grid-card-overlay-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--cream);
  font-weight: 400;
}
.grid-card-info {
  padding: 20px 20px 24px;
}
.grid-card-category {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-muted);
  margin-bottom: 8px;
}
.grid-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--green);
  margin-bottom: 8px;
}
.grid-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Video Lightbox ──────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
}
.lightbox-content {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 1200px;
  transform: scale(0.95);
  transition: transform 0.4s var(--ease-out);
}
.lightbox.open .lightbox-content { transform: scale(1); }
.lightbox-video {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  max-height: 80vh;
}
.lightbox-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--cream);
  margin-top: 20px;
}
.lightbox-close {
  position: absolute;
  top: -48px; right: 0;
  font-size: 28px;
  color: var(--cream);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.3s;
  background: none;
  border: none;
  font-family: var(--font-sans);
}
.lightbox-close:hover { opacity: 1; transform: rotate(90deg); }

/* ── About Page ─────────────────────────────────────────── */
.about-hero {
  padding: calc(var(--nav-h) + 80px) 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}
.about-text-side {}
.about-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.about-big-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 40px;
}
.about-big-title em { font-style: italic; }
.about-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 480px;
}
.about-visual-side {
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-logo-display {
  width: 320px;
  padding: 60px;
  background: var(--green);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-logo-display img {
  width: 100%;
  filter: invert(1) brightness(0.85);
}
.about-stats {
  padding: 60px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(44,59,26,0.12);
  border-top: 1px solid rgba(44,59,26,0.12);
  border-bottom: 1px solid rgba(44,59,26,0.12);
}
.stat-item {
  background: var(--cream);
  padding: 48px 40px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  color: var(--green);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.about-skills {
  padding: 80px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.skills-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--green);
  margin-bottom: 40px;
}
.skill-list { list-style: none; }
.skill-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(44,59,26,0.1);
  font-size: 15px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.skill-item::before {
  content: '→';
  color: var(--green-light);
  font-size: 12px;
}

/* ── About Teaser (homepage) ────────────────────────────── */
.about-teaser {
  padding: 100px 32px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: center;
  border-top: 1px solid rgba(44,59,26,0.12);
}
.about-teaser-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.about-teaser-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 24px;
}
.about-teaser-title em { font-style: italic; }
.about-teaser-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
}
.film-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--green);
  border-radius: 16px;
  padding: 20px 12px;
}
.film-hole {
  width: 28px; height: 20px;
  background: var(--cream);
  border-radius: 4px;
  opacity: 0.7;
}
.film-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
}

/* ── Categories Listing (homepage) ─────────────────────── */
.categories-section {
  padding: 80px 60px 100px;
  border-top: 1px solid rgba(44,59,26,0.12);
}
.categories-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 64px;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.cat-col {
  border-left: 1px solid rgba(44,59,26,0.1);
  padding: 0 40px 0 32px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.cat-col:first-child { border-left: none; padding-left: 0; }
.cat-col.visible { opacity: 1; transform: translateY(0); }
.cat-col:nth-child(2) { transition-delay: 0.08s; }
.cat-col:nth-child(3) { transition-delay: 0.16s; }
.cat-col:nth-child(4) { transition-delay: 0.24s; }

.cat-name {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 400;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(44,59,26,0.12);
}
.cat-name em { font-style: italic; }
.cat-count {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-muted);
  margin-bottom: 20px;
}
.cat-video-list { list-style: none; }
.cat-video-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(44,59,26,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.cat-video-item:last-child { border-bottom: none; }
.cat-video-title {
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
  transition: color 0.2s;
}
.cat-video-item:hover .cat-video-title { color: var(--green-light); }
.cat-video-year {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.cat-video-play {
  font-size: 9px;
  color: var(--green-muted);
  opacity: 0;
  transition: opacity 0.2s, transform 0.25s;
  transform: translateX(-6px);
  flex-shrink: 0;
}
.cat-video-item:hover .cat-video-play { opacity: 1; transform: translateX(0); }

@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
  .cat-col { border-left: none; padding: 0; }
  .categories-section { padding: 60px 32px 80px; }
}
@media (max-width: 640px) {
  .categories-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--cream);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 40px;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(44,59,26,0.2);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 100px;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  padding: 120px 32px;
  text-align: center;
  background: var(--cream-dark);
  border-top: 1px solid rgba(44,59,26,0.12);
}
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 400;
  color: var(--green);
  margin-bottom: 16px;
}
.cta-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* ── Contact Page ───────────────────────────────────────── */
.contact-hero {
  padding: calc(var(--nav-h) + 80px) 32px 0;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.contact-blob { position: absolute; top: 0; right: 0; width: 400px; height: 350px; background: radial-gradient(ellipse, rgba(107,133,73,0.18) 0%, transparent 70%); border-radius: 50%; filter: blur(50px); pointer-events: none; }
.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(52px, 10vw, 130px);
  font-weight: 400;
  color: var(--green);
  line-height: 0.95;
  position: relative;
  z-index: 1;
}
.contact-body {
  padding: 80px 32px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-top: 1px solid rgba(44,59,26,0.12);
}
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--green);
  margin-bottom: 16px;
}
.contact-info-text { font-size: 15px; color: var(--text-muted); line-height: 1.8; }
.contact-email-link {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--green);
  border-bottom: 1px solid var(--green-muted);
  padding-bottom: 4px;
  display: inline-block;
  transition: color 0.2s, border-color 0.2s;
}
.contact-email-link:hover { color: var(--green-light); border-color: var(--green-light); }
.contact-socials { display: flex; gap: 20px; flex-wrap: wrap; }
.social-link {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(44,59,26,0.25);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 100px;
  transition: all 0.25s;
}
.social-link:hover { background: var(--green); color: var(--cream); border-color: var(--green); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.form-input, .form-textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(44,59,26,0.25);
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.3s;
  outline: none;
  width: 100%;
}
.form-input:focus, .form-textarea:focus { border-color: var(--green); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-submit { align-self: flex-start; }
.form-success {
  display: none;
  background: rgba(44,59,26,0.06);
  border: 1px solid rgba(44,59,26,0.2);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  color: var(--green);
  font-size: 14px;
}
.form-success.show { display: block; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  padding: 40px 32px;
  border-top: 1px solid rgba(44,59,26,0.12);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.footer-logo { height: 40px; width: auto; opacity: 0.7; }
.footer-center { font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; text-align: center; }
.footer-right { display: flex; gap: 24px; justify-content: flex-end; }
.footer-social { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); transition: color 0.2s; }
.footer-social:hover { color: var(--green); }

/* ── 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); }

/* ── No Projects Message ────────────────────────────────── */
.no-projects {
  padding: 80px 32px;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile First
   ══════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 1024px) ──────────────────────────────────── */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
  .cat-col { border-left: none; padding: 0; }
  .categories-section { padding: 60px 32px 80px; }

  /* Project blocks : empilés verticalement */
  .project-block {
    grid-template-columns: 1fr !important;
    min-height: auto;
  }
  .project-block--reverse .pb-visual { order: 1; }
  .project-block--reverse .pb-info   { order: 2; padding-left: 32px; padding-right: 32px; }
  .pb-visual { min-height: 55vw; }
  .pb-info { padding: 40px 32px; }

  .contact-body { grid-template-columns: 1fr; gap: 60px; }
}

/* ── Mobile (≤ 768px) ───────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* ── Nav ── */
  nav {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }
  .nav-info  { display: none; }
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .mobile-menu  { display: flex; }

  /* ── Hero ── */
  .hero {
    padding: calc(var(--nav-h) + 28px) 20px 48px;
    min-height: 90vh;
    justify-content: flex-end;
  }
  .hero-title {
    font-size: clamp(44px, 13vw, 80px);
    line-height: 1.0;
  }
  .hero-sub {
    font-size: 13px;
    letter-spacing: 0.06em;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
  .hero-scroll-hint { display: none; }
  .film-strip { display: none; }

  /* ── Section headers ── */
  .section-header {
    padding: 40px 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .section-title { font-size: clamp(32px, 9vw, 52px); }

  /* ── Project Blocks (homepage featured) ── */
  .project-block {
    grid-template-columns: 1fr !important;
    min-height: auto;
    padding: 0;
    gap: 0;
  }
  .pb-visual {
    min-height: 72vw;
    height: 72vw;
    max-height: 400px;
  }
  .pb-info {
    padding: 28px 20px 40px !important;
    transform: none !important;
    opacity: 1 !important;  /* toujours visible sur mobile, pas d'attente hover */
  }
  .pb-info.revealed {
    transform: none !important;
    opacity: 1 !important;
  }
  .pb-title { font-size: clamp(26px, 7vw, 40px); margin-bottom: 12px; }
  .pb-desc  { font-size: 14px; margin-bottom: 24px; max-width: 100%; }
  .pb-bg-num { display: none; }
  .pb-meta  { margin-bottom: 24px; padding-top: 16px; }

  /* Bouton play toujours visible sur mobile (pas de hover) */
  .pb-play {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
    width: 60px; height: 60px;
  }
  .pb-overlay { opacity: 0.25; }

  /* CTA bouton voir vidéo */
  .pb-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 13px;
  }

  /* ── Work Grid (projets) ── */
  .featured { padding: 0 20px; }
  .filter-bar {
    padding: 16px 20px;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 18px;
    font-size: 11px;
  }
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px 20px 60px;
  }
  .grid-card { border-radius: 12px; }
  .grid-card-video { height: 42vw; min-height: 120px; }
  .grid-card-info {
    padding: 12px 14px 14px;
  }
  .grid-card-category { font-size: 9px; }
  .grid-card-title    { font-size: 14px; margin-bottom: 4px; }
  .grid-card-desc     { display: none; } /* masqué sur mobile pour garder les cards compactes */

  /* Titre page works */
  .works-hero { padding: calc(var(--nav-h) + 24px) 20px 0; }
  .works-title { font-size: clamp(44px, 14vw, 80px); }

  /* ── Lightbox ── */
  .lightbox-content {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    padding: 0;
  }
  .lightbox-video {
    width: 100%;
    max-height: 60vh;
    border-radius: 0;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 36px; height: 36px;
    font-size: 18px;
  }
  .lightbox-title {
    font-size: 16px;
    padding: 16px 20px;
  }

  /* ── Categories section ── */
  .categories-section { padding: 48px 20px 64px; }
  .categories-grid    { grid-template-columns: 1fr; gap: 36px; }
  .cat-col            { border: none; padding: 0; }
  .cat-title          { font-size: 18px; margin-bottom: 16px; }

  /* ── CTA section ── */
  .cta-section  { padding: 72px 20px; }
  .cta-title    { font-size: clamp(36px, 10vw, 72px); }
  .cta-sub      { font-size: 15px; margin-bottom: 32px; }

  /* ── Contact page ── */
  .contact-hero  { padding: calc(var(--nav-h) + 40px) 20px 0; min-height: 35vh; }
  .contact-title { font-size: clamp(44px, 12vw, 96px); }
  .contact-body  { padding: 48px 20px 80px; grid-template-columns: 1fr; gap: 48px; }
  .contact-info-title { font-size: 24px; }
  .contact-email-link { font-size: 20px; }

  /* ── Footer ── */
  .footer {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    padding: 32px 20px;
  }
  .footer-right { justify-content: center; }

  /* ── About page ── */
  .about-teaser { padding: 60px 20px; }

  /* ── Scroll Reveal mobile : réduit la distance ── */
  .reveal {
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }
}

/* ── Small Mobile (≤ 480px) ─────────────────────────────── */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(38px, 12vw, 60px); }

  /* Grid 1 colonne sur très petits écrans */
  .projects-grid { grid-template-columns: 1fr; gap: 16px; }
  .grid-card-video { height: 56vw; max-height: 280px; }
  .grid-card-desc  { display: none; }

  /* Project blocks encore plus compacts */
  .pb-visual { min-height: 80vw; height: 80vw; max-height: 340px; }
  .pb-info   { padding: 24px 16px 32px !important; }
  .pb-title  { font-size: clamp(24px, 8vw, 36px); }

  /* Contact */
  .contact-title { font-size: clamp(38px, 14vw, 80px); }

  /* Works title */
  .works-title { font-size: clamp(38px, 15vw, 72px); }
}
