/* ============================================================
   Gabin Vidal — Compositing Artist
   Style : sombre, minimaliste, cinématographique, intemporel
   ============================================================ */

:root {
  --bg:        #000000;
  --bg-soft:   #0a0a0c;
  --fg:        #f2f2f0;
  --muted:     rgba(242, 242, 240, 0.55);
  --faint:     rgba(242, 242, 240, 0.32);
  --line:      rgba(242, 242, 240, 0.14);
  --line-soft: rgba(242, 242, 240, 0.08);
  --font:      "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pad-x:     clamp(1.5rem, 6vw, 6rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--pad-x);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.nav__brand {
  font-weight: 300;
  letter-spacing: 0.34em;
  font-size: 1.05rem;
  text-decoration: none;
  text-transform: uppercase;
  padding-left: 0.34em; /* compense l'interlettrage */
}
.nav__links {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  list-style: none;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 3px;
}
.nav__links a:hover { color: var(--fg); }
.nav__links a.is-active { color: var(--fg); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--fg);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.lang-switch {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.lang-switch:hover { color: var(--fg); border-color: rgba(242,242,240,0.4); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  width: 24px; height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero__video-wrap { position: absolute; inset: 0; z-index: 0; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.15) 30%,
    rgba(0,0,0,0.15) 60%,
    rgba(0,0,0,0.8) 100%
  );
}
/* Vignette : assombrit très légèrement les bords, effet ciné discret */
.hero__vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0,0,0,0.22) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  margin: auto;
  text-align: center;
  padding: 0 1.5rem;
  animation: rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero__name {
  font-weight: 300;
  font-size: clamp(2.4rem, 8vw, 6.5rem);
  letter-spacing: 0.02em;
  line-height: 1.02;
}
.hero__role {
  margin-top: 1.1rem;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0.42em;
}
/* Boutons du hero */
.hero__actions {
  margin-top: 2.6rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--fg);
  color: #000;
}
.btn--primary:hover { background: #ffffff; }
.btn__play { font-size: 0.62em; line-height: 1; }
.btn--ghost {
  color: var(--fg);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--fg); background: rgba(242,242,240,0.06); }

.hero__scroll {
  position: relative;
  z-index: 2;
  margin: 0 auto 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--fg), transparent);
  animation: pulse 2.2s ease-in-out infinite;
}

/* ============ SECTIONS GÉNÉRIQUES ============ */
.section {
  padding: clamp(5rem, 12vh, 9rem) var(--pad-x);
  border-top: 1px solid var(--line-soft);
  max-width: 1500px;
  margin: 0 auto;
}
.section__head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.section__index {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.section__title {
  font-weight: 300;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  letter-spacing: 0.01em;
}
.section__lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: -1.8rem;
  margin-bottom: 2.4rem;
  max-width: 40ch;
}
.section__note {
  margin-top: 1.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--faint);
}
.section__note code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  color: var(--muted);
}

/* ============ REEL ============ */
.reel-player {
  position: relative;
  width: 100%;
  max-width: 1050px;        /* taille intermédiaire, ni pleine largeur ni trop petit */
  margin: 0 auto;           /* centré */
  aspect-ratio: 16 / 9;     /* ratio de la demoreel */
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}
.reel-player__video,
.reel-player__embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;        /* remplit parfaitement le cadre 16:9 */
  border: 0;
  display: block;
}
.reel-player__caption {
  margin-top: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ============ PROJECTS ============ */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.proj {
  border: 1px solid var(--line-soft);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  transition: border-color 0.4s ease;
}
.proj:hover { border-color: var(--line); }

.proj__top {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}
.proj__poster {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
}
.proj__poster img {
  width: 100%;
  display: block;      /* affiche montrée en entier, ratio d'origine */
}
.proj__title {
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.04em;
}
.proj__role {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.proj__desc {
  margin-top: 1.1rem;
  max-width: 60ch;
  line-height: 1.7;
  color: var(--muted);
  font-size: 0.95rem;
}
.proj__actions {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.proj__movie { margin: 0; }
.proj__toggle,
.proj__more {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: none;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.proj__toggle:hover,
.proj__more:hover { border-color: var(--fg); background: rgba(242,242,240,0.05); }
.proj__more-ico { font-size: 1.05em; line-height: 1; opacity: 0.8; }
.proj__toggle .lbl-hide { display: none; }
.proj__toggle.is-open .lbl-show { display: none; }
.proj__toggle.is-open .lbl-hide { display: inline; }
.proj__chevron { font-size: 0.7em; transition: transform 0.35s ease; }
.proj__toggle.is-open .proj__chevron { transform: rotate(180deg); }

.proj__details {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.55s ease, opacity 0.45s ease, margin-top 0.45s ease;
}
.proj__details.is-open {
  max-height: 6000px;
  opacity: 1;
  margin-top: 2rem;
}
.proj__shots-lead { margin-top: 0 !important; }

/* Grille des shots */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
.shot {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
}
.shot img,
.shot video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.shot:hover img,
.shot:hover video { transform: scale(1.05); }
/* Badge type de breakdown */
.shot__badge {
  position: absolute;
  bottom: 0.6rem; left: 0.6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
}
.shot::after {  /* voile discret au survol */
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.35s ease;
}
.shot:hover::after { background: rgba(0,0,0,0.12); }

@media (max-width: 1100px) { .shots-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .shots-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Modal breakdown ---- */
.bd {
  position: fixed; inset: 0;
  z-index: 150;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.2rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.bd.is-open { opacity: 1; visibility: visible; }
.bd__close {
  position: absolute;
  top: 1.6rem; right: 2rem;
  background: none; border: none;
  color: var(--fg);
  font-size: 2.2rem; line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}
.bd__close:hover { opacity: 1; }
.bd__stage {
  width: 100%;
  max-width: 1100px;
  max-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bd__stage video {
  width: 100%;
  max-height: 84vh;
  background: #000;
  display: block;
}

/* ---- Slider avant / après ---- */
.ba {
  position: relative;
  width: 100%;
  max-height: 84vh;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  background: #000;
}
.ba img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba__before {               /* image "avant" superposée, découpée à gauche de la poignée */
  z-index: 2;
}
.ba__label {
  position: absolute;
  top: 0.8rem;
  z-index: 3;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  pointer-events: none;
}
.ba__label--before { left: 0.8rem; }
.ba__label--after  { right: 0.8rem; }
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--fg);
  transform: translateX(-1px);
  z-index: 4;
  pointer-events: none;
}
.ba__grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--fg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  font-size: 0.9rem;
}

/* ============ TOOLS ============ */
.tools-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* deux colonnes */
  gap: 1.6rem;
}
.tool-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.4rem;
  align-items: start;
  border: 1px solid var(--line-soft);
  padding: 1.6rem;
  transition: border-color 0.4s ease;
}
.tool-card:hover { border-color: var(--line); }
.tool-card__logo {
  width: 96px;
}
.tool-card__logo img {
  width: 100%;
  height: auto;
  display: block;   /* chaque logo garde sa forme (carré ou arrondi), sans cadre */
}
.tool-card__name {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.tool-card__summary {
  margin-top: 0.6rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}
.tool-card__more {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.tool-card__more:hover { border-color: var(--fg); background: rgba(242,242,240,0.05); }
.tool-card__ext { font-size: 0.9em; opacity: 0.8; }
@media (max-width: 900px) { .tools-list { grid-template-columns: 1fr; } }

/* ---- Page complète d'un outil (overlay) ---- */
.toolpage {
  position: fixed; inset: 0;
  z-index: 130;
  background: rgba(0,0,0,0.96);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.toolpage.is-open { opacity: 1; visibility: visible; }
.toolpage__close {
  position: fixed;
  top: 1.6rem; right: 2rem;
  z-index: 2;
  background: none; border: none;
  color: var(--fg);
  font-size: 2.2rem; line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}
.toolpage__close:hover { opacity: 1; }
.toolpage__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) var(--pad-x) 5rem;
}
.toolpage__title {
  font-weight: 300;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.03em;
}
.toolpage__wordmark {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
}
.toolpage__summary {
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--fg);
  max-width: 60ch;
}
.toolpage__media {
  width: 100%;
  display: block;
  margin: 2.2rem 0;
  border: 1px solid var(--line-soft);
}
/* Les screenshots (images) sont affichés plus petits que les vidéos, centrés */
img.toolpage__media { max-width: 460px; margin-left: auto; margin-right: auto; }
.toolpage__desc {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.98rem;
  max-width: 65ch;
}
.toolpage__links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}

/* ---- Page complète d'un projet ---- */
.pp__role {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.pp__desc { margin-top: 1.4rem; }
.pp__main {
  max-width: 100%;      /* le résultat s'affiche en pleine largeur */
  aspect-ratio: auto;
  background: #000;
}
.pp__watch { margin-top: 2rem; }
.pp__bd-heading {
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}
.pp__breakdowns {
  grid-template-columns: repeat(2, 1fr);   /* breakdowns par type, 2 colonnes */
  max-width: 760px;
}
@media (max-width: 640px) { .pp__breakdowns { grid-template-columns: 1fr; } }

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);   /* 5 colonnes sur ordinateur */
  gap: 0.6rem;
}
/* Tablette : 3 colonnes */
@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;        /* miniatures en portrait */
  cursor: pointer;
  background: var(--bg-soft);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15);
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), filter 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); filter: grayscale(0); }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none; border: none;
  color: var(--fg);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 1.8rem; right: 2rem; font-size: 2.2rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 0 1.4rem; }
.lightbox__nav--prev { left: 0.5rem; }
.lightbox__nav--next { right: 0.5rem; }

/* ============ ABOUT ============ */
.about {
  display: grid;
  grid-template-columns: 240px 1fr;   /* photo plus compacte */
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about__photo {
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.about__photo img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(0.12);
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1), filter 0.5s ease;
}
.about__photo:hover img { transform: scale(1.03); filter: grayscale(0); }
.about__body { max-width: 60ch; }
.about__lead {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 1.6rem;
}
.about__text {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.98rem;
}
.about__cv {
  display: inline-block;
  margin-top: 2.4rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.about__cv:hover { border-color: var(--fg); background: rgba(242,242,240,0.04); }

/* ============ CONTACT ============ */
.contact { display: flex; flex-direction: column; gap: 2rem; }
.contact__mail {
  font-weight: 300;
  font-size: clamp(1.6rem, 5vw, 3rem);
  text-decoration: none;
  letter-spacing: 0.01em;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.contact__mail:hover { border-color: var(--fg); }
.contact__socials {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}
.contact__socials a {
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.contact__socials a:hover { color: var(--fg); }

.footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ============ ANIMATIONS ============ */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* Apparition des sections au scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__content, .reveal { animation: none; opacity: 1; transform: none; transition: none; }
  .hero__scroll-line { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100svh;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    padding: 2rem;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
    border-left: 1px solid var(--line-soft);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 0.95rem; }
  .nav__burger { display: flex; z-index: 60; }
  .nav__burger.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav__burger.is-open span:last-child { transform: translateY(-3px) rotate(-45deg); }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .section__lead { margin-top: -1rem; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 320px; }
  .proj__top { grid-template-columns: 1fr; }
  .proj__poster { max-width: 240px; }
}
