/* =========================================================
   [TON NOM] — Portfolio
   v2 : vintage cinema · Anton · grain renforcé
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Couleurs */
  --bg: #0A0A0A;
  --bg-elev: #111111;
  --bg-soft: #161616;
  --line: #1F1F1F;
  --line-strong: #2A2A2A;
  --text: #EDE6D6;
  --text-dim: #8A8A85;
  --text-mute: #5A5A57;
  --accent: #E63946;
  --accent-deep: #B81D29;
  --accent-warm: #FF8A3D;        /* light leak chaud */
  --white: #F5F5F0;
  --vintage-tint: #2A1810;       /* nuance brun/rouge sombre vieille pellicule */

  /* Typo */
  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Courier New", monospace;

  /* Espacements */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-py: clamp(3.5rem, 7vw, 6.5rem);

  /* Animations */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-in: cubic-bezier(.6, 0, .8, .2);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 240ms;
  --t-med: 480ms;
  --t-slow: 900ms;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 900px), (pointer: coarse) {
  body { cursor: auto; }
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Tous les titres en Anton, uppercase par défaut, tracking serré */
h1, h2, h3, h4, h5, .display {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

::selection { background: var(--accent); color: var(--white); }

/* ---------- Grain de film (intensifié) ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.42;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/></svg>");
  animation: grainShift 0.9s steps(8) infinite;
}
/* Couche supplémentaire de grain plus gros pour le côté pellicule */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='480'><filter id='n2'><feTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n2)' opacity='0.6'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.55;
  animation: grainShift2 1.4s steps(10) infinite reverse;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-3%, -2%); }
  20%  { transform: translate(2%, 3%); }
  30%  { transform: translate(-2%, 1%); }
  40%  { transform: translate(3%, -3%); }
  50%  { transform: translate(-1%, 2%); }
  60%  { transform: translate(2%, -1%); }
  70%  { transform: translate(-3%, 3%); }
  80%  { transform: translate(1%, -2%); }
  90%  { transform: translate(-2%, 2%); }
  100% { transform: translate(0, 0); }
}
@keyframes grainShift2 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-4%, 3%); }
  50%  { transform: translate(2%, -4%); }
  75%  { transform: translate(-2%, -2%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; opacity: 0.32; }
  .grain::after { animation: none; }
}

/* ---------- Curseur custom ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: opacity var(--t-fast) var(--ease);
}
.cursor__dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform var(--t-fast) var(--ease);
}
.cursor__ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 36px; height: 36px;
  border: 1px solid rgba(245, 245, 240, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width var(--t-med) var(--ease), height var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.cursor.is-hover .cursor__ring {
  width: 64px; height: 64px;
  border-color: var(--accent);
}
.cursor.is-hover .cursor__dot { background: var(--accent); }
.cursor.is-hidden { opacity: 0; }
@media (max-width: 900px), (pointer: coarse) {
  .cursor { display: none; }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 800ms var(--ease), visibility 800ms;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

/* En-tête : labels mono en haut (DA editoriale) */
.loader__top {
  position: absolute;
  top: clamp(1.6rem, 5vw, 3.5rem);
  left: clamp(1.6rem, 5vw, 3.5rem);
  right: clamp(1.6rem, 5vw, 3.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.loader__label { color: var(--white); }
.loader__label--accent { color: var(--accent); }

/* Compteur geant en bas a gauche */
.loader__counter {
  position: absolute;
  left: clamp(1.6rem, 5vw, 3.5rem);
  bottom: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--display);
  font-size: clamp(6rem, 24vw, 20rem);
  line-height: 0.8;
  color: var(--white);
  letter-spacing: -0.03em;
}
.loader__pct {
  color: var(--accent);
  font-size: 0.32em;
  margin-left: 0.08em;
  font-family: var(--display);
  vertical-align: baseline;
}

/* Barre de progression pleine largeur, tout en bas */
.loader__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.loader__bar-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 120ms linear;
  box-shadow: 0 0 22px 1px rgba(230, 57, 70, 0.6);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.2rem var(--gutter);
  background: linear-gradient(to bottom, rgba(10,10,10,0.85), rgba(10,10,10,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: padding var(--t-med) var(--ease), background var(--t-med);
}
.nav.is-scrolled {
  padding: 0.85rem var(--gutter);
  background: rgba(10,10,10,0.92);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav__brand-mark {
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}
.nav__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
}
.nav__link {
  position: relative;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.5rem 0;
  transition: color var(--t-fast) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--t-med) var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.nav__link.is-active { color: var(--accent); }

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.nav__lang:hover { border-color: var(--text); color: var(--text); }
.nav__lang span { font-weight: 500; }
.nav__lang span.is-active { color: var(--accent); }

/* Horodatage / viewfinder */
.nav__timestamp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  white-space: nowrap;
}
.nav__timestamp::before {
  content: "";
  display: block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s var(--ease) infinite;
}
@media (max-width: 900px) {
  .nav__timestamp { display: none; }
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--text);
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast);
}
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { bottom: 14px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 900px) {
  .nav {
    grid-template-columns: auto 1fr auto;
    /* Le flou casse le position:fixed du menu enfant sur mobile -> on le retire */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 10, 10, 0.92);
  }
  .nav__menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease), visibility var(--t-med);
    z-index: 1;
  }
  .nav.is-open .nav__menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__link { font-size: 2.5rem; }
  .nav__toggle { display: block; z-index: 2; }
  .nav__right { z-index: 2; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.7rem;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform var(--t-med) var(--ease), background var(--t-med), color var(--t-med), border-color var(--t-med);
  will-change: transform;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--accent-deep);
  transform: scale(1.02);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--text);
  background: rgba(255,255,255,0.04);
}
.btn__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  font-size: 0.65rem;
  margin-left: -0.4rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gutter);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  padding-top: 8rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.85);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    /* Vignette (sombre vers les coins) */
    radial-gradient(ellipse at center, transparent 30%, rgba(10,10,10,0.65) 100%),
    /* Gradient général pour la lisibilité */
    linear-gradient(to bottom, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.55) 60%, rgba(10,10,10,0.95) 100%);
}
/* Light leaks orangés */
.hero__light-leak {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 138, 61, 0.45) 0%, transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(255, 95, 50, 0.35) 0%, transparent 28%),
    radial-gradient(circle at 88% 5%, rgba(230, 57, 70, 0.18) 0%, transparent 22%);
  mix-blend-mode: screen;
  animation: leakBreathe 8s ease-in-out infinite;
}
@keyframes leakBreathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__light-leak { animation: none; }
}

.hero__content {
  position: relative;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  z-index: 2;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.6rem;
}
.hero__dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(3.5rem, 13vw, 13rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--white);
  text-transform: uppercase;
}
.hero__line { display: block; }
.hero__line .accent { color: var(--accent); }
.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-dim);
  max-width: 38ch;
  margin: 1.8rem 0 2.2rem;
  line-height: 1.5;
  font-family: var(--sans);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 2;
}
.hero__scroll-line {
  display: block;
  width: 50px;
  height: 1px;
  background: var(--text-mute);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left center;
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleX(0); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
  51% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
@media (max-width: 600px) { .hero__scroll { display: none; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
  overflow: hidden;
  background: var(--bg);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  width: max-content;          /* la piste fait la largeur de son contenu, pas celle de l'écran */
  animation: marqueeScroll 42s linear infinite;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  will-change: transform;
}
.marquee__track > * {
  flex: 0 0 auto;              /* les mots ne se compressent jamais (pas d'empilement) */
}
.marquee__sep {
  color: var(--accent);
  font-size: 0.6em;
  font-family: var(--sans);
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Le bandeau doit défiler même si "Réduire les animations" est activé (sinon il buggait) */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: marqueeScroll 42s linear infinite !important; }
}
/* ---------- Sections génériques ---------- */
.section {
  padding: var(--section-py) var(--gutter);
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
}
.section__head {
  max-width: 880px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
  font-weight: 500;
}
.section__title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 7rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  padding-top: 0.12em;
}
.section__title .accent { color: var(--accent); }
.section__title--small {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}
.section__intro {
  margin-top: 1.4rem;
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 55ch;
  line-height: 1.6;
}
.section__head--center .section__intro { margin-left: auto; margin-right: auto; }

/* ---------- Featured project (home) ---------- */
.featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .featured { grid-template-columns: 1.3fr 1fr; gap: 4rem; }
}
.featured__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: none;
}
.featured__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.08);
  transition: transform 1.2s var(--ease), filter var(--t-med);
}
.featured__media:hover img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.12);
}
.featured__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(10,10,10,0.6));
  z-index: 1;
}
.featured__play {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-med) var(--ease);
}
.featured__media:hover .featured__play { transform: scale(1.1); }
.featured__tag {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.featured__title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  color: var(--white);
}
.featured__title .accent { color: var(--accent); }
.featured__desc {
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1.8rem;
  max-width: 50ch;
}
.featured__meta {
  display: flex;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.featured__meta strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0;
  display: block;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

/* ---------- Stats (home) ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) 0;
  max-width: 1500px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat__num {
  font-family: var(--display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.9;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}
.stat__num .accent { color: var(--accent); }
.stat__lbl {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- Home : qui je suis preview ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .intro { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; }
}
.intro__visual {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-soft);
}
.intro__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.1);
}
.intro__visual-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.intro__dot {
  width: 6px; height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.intro__text p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 0 1.2rem;
}
.intro__text p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 4rem;
  line-height: 0.9;
  float: left;
  margin: 0.05em 0.15em -0.05em 0;
  color: var(--accent);
  text-transform: uppercase;
}

/* ---------- CTA grid (home → autres pages) ---------- */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) { .cta-grid { grid-template-columns: 1fr 1fr 1fr; } }
.cta-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  border: 1px solid var(--line);
  cursor: none;
  transition: border-color var(--t-med);
}
.cta-card:hover { border-color: var(--accent); }
.cta-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-card__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.1) brightness(0.6);
  transition: transform 1.2s var(--ease), filter var(--t-med);
}
.cta-card:hover .cta-card__bg img {
  transform: scale(1.06);
  filter: saturate(0.95) contrast(1.15) brightness(0.8);
}
.cta-card__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.2) 30%, rgba(10,10,10,0.85));
}
.cta-card__inner {
  position: relative;
  z-index: 1;
}
.cta-card__num {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.cta-card__title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.cta-card__hint {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-card:hover .cta-card__hint { color: var(--accent); }

/* ---------- Films page : filtres ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.filters__group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filters__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-right: 0.8rem;
}
.filter-btn {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all var(--t-fast);
}
.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.filters__sep {
  width: 1px;
  height: 1.6rem;
  background: var(--line-strong);
  margin: 0 0.6rem;
}

/* ---------- Work / Films grid ---------- */
.work__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .work__grid { grid-template-columns: 1fr 1fr; }
  .work__item:nth-child(even) { margin-top: clamp(2rem, 6vw, 6rem); }
}
.work__item {
  position: relative;
  cursor: none;
  transition: opacity var(--t-med);
}
.work__item.is-hidden { display: none; }
.work__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}
.work__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
  filter: saturate(0.85) contrast(1.08);
}
.work__item:hover .work__media img { transform: scale(1.05); filter: saturate(1) contrast(1.12); }
.work__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0) 50%, rgba(10,10,10,0.7));
  z-index: 1;
  opacity: 0.6;
  transition: opacity var(--t-med) var(--ease);
}
.work__item:hover .work__media::before { opacity: 0.9; }
.work__play {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245,245,240,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245,245,240,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--t-med) var(--ease);
}
.work__item:hover .work__play {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}
.work__info {
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}
.work__title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 0.4rem;
}
.work__title .accent { color: var(--accent); }
.work__meta {
  display: flex;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.work__meta span:not(:last-child)::after {
  content: "·";
  margin-left: 0.8rem;
  color: var(--text-mute);
}
.work__year {
  font-family: var(--display);
  color: var(--text-dim);
  font-size: 1.4rem;
  letter-spacing: 0;
}

/* ---------- Photo ---------- */
.photo__series {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 7rem);
}
.photo__serie {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .photo__serie { grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
}
.photo__serie-head { position: sticky; top: 7rem; }
.photo__serie-num {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: block;
}
.photo__serie-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1rem;
}
.photo__serie-title .accent { color: var(--accent); }
.photo__serie-desc {
  font-size: 0.94rem;
  color: var(--text-dim);
  margin: 0 0 1rem;
  line-height: 1.6;
}
.photo__serie-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.photo__grid {
  columns: 2;
  column-gap: 1rem;
}
@media (min-width: 700px) { .photo__grid { columns: 3; } }
.photo__item {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: none;
  break-inside: avoid;
  margin-bottom: 1rem;
  display: block;
}
.photo__item img {
  width: 100%; height: auto;
  display: block;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 1.2s var(--ease), filter var(--t-med);
}
.photo__item:hover img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.1);
}

/* ---------- About ---------- */
.about__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
@media (min-width: 900px) {
  .about__layout { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}
.about__visual {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  max-width: 35%;
}
.about__visual img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.8) contrast(1.1);
}
.about__visual-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}
.about__visual-dot {
  width: 6px; height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulseGreen 2s infinite;
}
.about__text { margin: 1.6rem 0 2.4rem; color: var(--text); }
.about__text p { margin: 0 0 1.1rem; max-width: 60ch; line-height: 1.65; font-size: 1rem; }
.about__skills {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2.4rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.about__skill { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; }
.about__skill-num {
  font-family: var(--display);
  color: var(--accent);
  font-size: 1.8rem;
  text-transform: uppercase;
}
.about__skill h4 {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 0.4rem;
}
.about__skill p { margin: 0; font-size: 0.92rem; color: var(--text-dim); }
.about__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.about__socials a {
  position: relative;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), color var(--t-med);
}
.about__socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Chat IA / Devis ---------- */
.chat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 900px) { .chat { grid-template-columns: 1fr 320px; gap: 3rem; } }
.chat__window {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
.chat__messages {
  flex: 1;
  padding: 1.6rem;
  overflow-y: auto;
  max-height: 580px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.chat__messages::-webkit-scrollbar { width: 6px; }
.chat__messages::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.chat__msg { display: flex; gap: 0.8rem; align-items: flex-start; animation: msgIn 480ms var(--ease) backwards; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat__avatar {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}
.chat__bubble {
  flex: 1;
  padding: 0.9rem 1.1rem;
  background: var(--bg-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  border: 1px solid var(--line);
}
.chat__msg--user { flex-direction: row-reverse; }
.chat__msg--user .chat__avatar {
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.chat__msg--user .chat__bubble {
  background: rgba(230, 57, 70, 0.08);
  border-color: rgba(230, 57, 70, 0.25);
}
.chat__bubble strong { color: var(--white); font-weight: 500; }
.chat__typing { display: inline-flex; gap: 4px; padding: 0 4px; }
.chat__typing span {
  width: 6px; height: 6px;
  background: var(--text-mute);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}
.chat__typing span:nth-child(2) { animation-delay: 0.2s; }
.chat__typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.chat__form {
  display: flex;
  gap: 0.6rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.chat__input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.85rem 1.2rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--t-fast);
}
.chat__input:focus { border-color: var(--accent); }
.chat__input::placeholder { color: var(--text-mute); }
.chat__send {
  width: 48px; height: 48px;
  background: var(--accent);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.chat__send:hover { background: var(--accent-deep); transform: scale(1.05); }
.chat__send:disabled { background: var(--line-strong); color: var(--text-mute); cursor: not-allowed; }
.chat__side h4 {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.chat__side ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.chat__side li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.chat__side li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--display);
  color: var(--accent);
}
.chat__disclaimer {
  font-size: 0.78rem;
  color: var(--text-mute);
  font-style: italic;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 8vw, 7rem) var(--gutter) 2rem;
  margin-top: 4rem;
}
.footer__top {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 800px) { .footer__top { flex-direction: row; align-items: end; justify-content: space-between; } }
.footer__cta {
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 7rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}
.footer__cta .accent { color: var(--accent); }
.footer__mail {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.4rem;
  transition: color var(--t-med), border-color var(--t-med);
}
.footer__mail:hover { color: var(--accent); border-color: var(--accent); }
.footer__home {
  max-width: 1500px;
  margin: 0 auto 2.5rem;
  display: flex;
  justify-content: center;
}

.footer__bottom {
  max-width: 1500px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(20px);
  z-index: 9500;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: clamp(4rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 5vw, 4rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility var(--t-med);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  z-index: 10;
  transition: background var(--t-med), border-color var(--t-med);
}
.lightbox__close:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.lightbox__inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: scale(0.96);
  transition: transform var(--t-med) var(--ease);
}
.lightbox.is-open .lightbox__inner { transform: scale(1); }
.lightbox__player {
  position: relative;
  width: 100%;
  max-width: min(100%, calc(55vh * 16 / 9));
  aspect-ratio: 16/9;
  background: black;
  margin: 0 auto;
}
.lightbox__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lightbox__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 800px) { .lightbox__meta { grid-template-columns: 1.5fr 1fr; gap: 3rem; } }
.lightbox__meta-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  color: var(--white);
}
.lightbox__meta-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.lightbox__credits {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.lightbox__credits dt {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 0.5rem;
}
.lightbox__credits dd { margin: 0; color: var(--text); font-family: var(--sans); }

.lightbox--photo .lightbox__photo-inner {
  position: relative;
  max-width: 90vw;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: scale(0.96);
  transition: transform var(--t-med) var(--ease);
}
.lightbox--photo.is-open .lightbox__photo-inner { transform: scale(1); }
.lightbox--photo img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox__photo-caption {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-align: center;
  text-transform: uppercase;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  z-index: 10;
  transition: background var(--t-med), border-color var(--t-med);
}
.lightbox__nav:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ---------- Inner page hero (smaller hero for sub-pages) ---------- */
.page-hero {
  padding: 10rem var(--gutter) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-hero__inner {
  max-width: 1500px;
  margin: 0 auto;
}
.page-hero__num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.page-hero__title {
  font-family: var(--display);
  font-size: clamp(3rem, 11vw, 11rem);
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--white);
}
.page-hero__title .accent { color: var(--accent); }
.page-hero__sub {
  margin-top: 1.4rem;
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 60ch;
  line-height: 1.6;
}

/* ---------- i18n : éléments traduits ---------- */
[data-i18n] { transition: opacity var(--t-fast); }

/* ---------- Reduced motion global ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* === Mosaique (case study) === */
.mosaic {
  position: fixed;
  inset: 0;
  z-index: 9700;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(4rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 5vw, 4rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility var(--t-med);
}
.mosaic.is-open { opacity: 1; visibility: visible; }
.mosaic__close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  z-index: 10;
  cursor: pointer;
  transition: background var(--t-med), border-color var(--t-med);
}
.mosaic__close:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.mosaic__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.mosaic__head {
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
  text-align: left;
}
.mosaic__tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: block;
  margin-bottom: 0.8rem;
}
.mosaic__title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--white);
}
.mosaic__title .accent { color: var(--accent); }
.mosaic__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 65ch;
  margin: 0;
}
.mosaic__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  grid-auto-flow: dense;
}
@media (min-width: 768px) {
  .mosaic__grid { grid-template-columns: repeat(6, 1fr); gap: 0.6rem; }
}
.mosaic__item {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: 2px;
}
.mosaic__item--landscape {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.mosaic__item--portrait {
  grid-column: span 1;
  aspect-ratio: 9/16;
}
@media (max-width: 767px) {
  /* Sur mobile : 3 cols. Landscape span 3 (pleine largeur), portrait span 1 (3 par ligne) */
  .mosaic__item--landscape { grid-column: span 3; }
  .mosaic__item--portrait  { grid-column: span 1; }
}
.mosaic__item img,
.mosaic__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.05);
  transition: filter var(--t-med);
}
.mosaic__item:hover img,
.mosaic__item:hover video { filter: saturate(1) contrast(1.1); }
.mosaic__footer {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.mosaic__credit {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.mosaic__credit-key {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.mosaic__credit-val {
  font-size: 0.95rem;
  color: var(--text);
}

/* === Onglets categories photo === */
.photo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .photo-tabs { gap: 0.8rem; padding: 1.4rem 0; }
}

/* ---------- Panneau d'infos dans la lightbox carrousel ---------- */
.lightbox--photo video { max-width: 90%; max-height: 75vh; object-fit: contain; }

.lightbox__photo-info {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 720px;
  color: var(--text);
  text-align: left;
  padding: 0 1rem;
}
.lightbox__photo-info-head {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}
.lightbox__photo-info-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.lightbox__photo-info-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 0.85rem 0;
  color: var(--white);
  line-height: 1;
}
.lightbox__photo-info-desc {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}
.lightbox__photo-info-section {
  margin-bottom: 1.5rem;
}
.lightbox__photo-info-section h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 0.85rem 0;
  font-weight: 500;
}
.lightbox__photo-info-section dl {
  display: grid;
  grid-template-columns: minmax(140px, max-content) 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0;
}
.lightbox__photo-info-section dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lightbox__photo-info-section dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
}

/* La lightbox doit pouvoir scroller si beaucoup d'infos */
.lightbox--photo {
  overflow-y: auto;
  padding: 4rem 1rem;
}
.lightbox--photo .lightbox__photo-inner {
  margin: 0 auto;
}


/* =========================================================
   COULISSES — Reels polaroid TikTok-style
   ========================================================= */
[data-page="coulisses"] {
  overflow: hidden;
}
[data-page="coulisses"] body {
  overflow: hidden;
}
.reels {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 5;
  background: var(--bg);
  padding-top: 80px;
}
.reels__container {
  height: calc(100vh - 80px);
  height: calc(100dvh - 80px);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.reels__container::-webkit-scrollbar { display: none; }

.reel {
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 4rem;
}

/* Le polaroid */
.polaroid {
  --polaroid-rotate: 0deg;
  background: #F2EBDC;
  padding: 14px 14px 50px 14px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.3),
    0 30px 60px rgba(0,0,0,0.55),
    0 8px 24px rgba(0,0,0,0.4);
  position: relative;
  width: min(420px, 88vw);
  transform: rotate(var(--polaroid-rotate)) scale(0.98);
  transition: transform 0.6s var(--ease-out);
  animation: polaroidIn 0.7s var(--ease-out) both;
}
.reel.is-active .polaroid {
  transform: rotate(0deg) scale(1);
}
@keyframes polaroidIn {
  from { opacity: 0; transform: rotate(var(--polaroid-rotate)) scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: rotate(var(--polaroid-rotate)) scale(0.98) translateY(0); }
}
.polaroid__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
}
.polaroid__photo::after {
  /* Petite vignette subtile sur la photo */
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.25);
  pointer-events: none;
}
.polaroid__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.polaroid__caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.2;
  padding: 0 4px;
}
.polaroid__tag {
  position: absolute;
  top: calc(100% + 1.2rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}

/* Indicateur 1 / 10 en haut */
.reels__indicator {
  position: fixed;
  top: 6.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-strong);
  z-index: 10;
}

/* Hint "Faire défiler" en bas */
.reels__hint {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  z-index: 10;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.4s ease;
  animation: bounceY 2.2s ease infinite;
}
@keyframes bounceY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 600px) {
  .polaroid { padding: 12px 12px 44px; }
  .polaroid__caption { font-size: 1.2rem; bottom: 12px; }
  .polaroid__tag { top: calc(100% + 1rem); font-size: 0.62rem; }
  .reels__indicator { top: 5.5rem; }
}


/* =========================================================
   AMBIENT BACKLIGHT — Fond flouté pour lightbox carrousel
   ========================================================= */
.lightbox__ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.lightbox__ambient::after {
  /* Overlay sombre pour lisibilite + nuance vintage */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.78) 100%);
  z-index: 2;
}
.lightbox__ambient video,
.lightbox__ambient img {
  position: absolute;
  top: 50%; left: 50%;
  width: 130%; height: 130%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: blur(70px) saturate(1.6);
  opacity: 0.9;
  animation: ambientFadeIn 0.6s ease both;
}
@keyframes ambientFadeIn {
  from { opacity: 0; }
  to { opacity: 0.9; }
}

/* Le contenu de la lightbox doit etre au-dessus du fond */
.lightbox--photo .lightbox__photo-inner { position: relative; z-index: 1; }
.lightbox--photo .lightbox__close,
.lightbox--photo .lightbox__nav { z-index: 5; }


/* =========================================================
   COULISSES — Ambient backlight (fond qui suit le polaroid actif)
   ========================================================= */
.reels__ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.reels__ambient-layer {
  position: absolute;
  top: -10%; left: -10%; right: -10%; bottom: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(80px) saturate(1.6) brightness(0.85);
  opacity: 0;
  transition: opacity 1s ease;
  transform: scale(1.15);
}
.reels__ambient-layer.is-visible {
  opacity: 0.65;
}
.reels__ambient::after {
  /* Overlay sombre pour assurer la lisibilite et garder l'ambiance noire */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.65) 100%);
  pointer-events: none;
}

/* S'assurer que le contenu reste au-dessus du fond ambient */
.reels__container { position: relative; z-index: 1; }


/* =========================================================
   CARTE VOYAGE — Leaflet + markers custom
   ========================================================= */
.travel-map {
  width: 100%;
  height: 60vh;
  min-height: 420px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  margin-bottom: 1rem;
}
/* Atténue légèrement les tuiles pour coller au ton du site */
.travel-map .leaflet-tile-pane { filter: saturate(0.85) contrast(1.05); }
/* Fond des contrôles Leaflet en sombre */
.travel-map .leaflet-control-zoom a {
  background: #141414;
  color: var(--text);
  border-color: var(--line-strong);
}
.travel-map .leaflet-control-zoom a:hover { background: #1f1f1f; }
.travel-map .leaflet-control-attribution {
  background: rgba(10,10,10,0.6);
  color: var(--text-mute);
  font-size: 9px;
}
.travel-map .leaflet-control-attribution a { color: var(--text-dim); }

/* Marker : cercle SVG rouge ancré au pixel + label tooltip */
.travel-circle {
  cursor: pointer;
  transition: fill 0.2s ease;
}
.travel-circle:hover { fill: #ff5864; }
.travel-tooltip {
  background: rgba(10,10,10,0.78) !important;
  border: 1px solid var(--line-strong) !important;
  color: #fff !important;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  box-shadow: none !important;
  border-radius: 0;
}
.travel-tooltip::before { display: none !important; }
.leaflet-tooltip-right.travel-tooltip { margin-left: 0; }