/* =========================================================
   Loïc Amans — Hyperréalisme animalier
   ========================================================= */
:root {
  --ink: #0b0b0c;
  --ink-2: #141416;
  --ink-3: #1c1c1f;
  --bone: #ece6dc;
  --muted: #a39e94;
  --ice: #9fd8ea;
  --ice-deep: #5fb3cf;
  --line: rgba(236, 230, 220, .12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ice); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.01em; }
h2 em, h1 em { font-style: italic; color: var(--ice); }
.eyebrow {
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.1rem;
}
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 36rem; margin: 1.2rem 0 0; }

/* Grain cinéma */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* Intro */
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--ink);
  display: grid; place-items: center; padding: 2rem;
  transition: opacity 1s var(--ease), visibility 1s;
}
.intro__line {
  font: italic 400 clamp(1.6rem, 4vw, 2.6rem)/1.2 var(--serif); text-align: center;
  opacity: 0; transform: translateY(10px);
  animation: introIn 1.4s .2s var(--ease) forwards;
}
@keyframes introIn { to { opacity: 1; transform: none; } }
.intro.is-done { opacity: 0; visibility: hidden; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.is-scrolled {
  background: rgba(11, 11, 12, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-block: .7rem; border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font: 500 1.25rem var(--serif); letter-spacing: .02em; }
.nav__brand img { width: 30px; height: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav__links a { text-decoration: none; font-size: .86rem; letter-spacing: .04em; color: var(--muted); transition: color .3s; position: relative; }
.nav__links a:hover { color: var(--bone); }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--ice);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta { color: var(--bone) !important; border: 1px solid var(--line); padding: .5rem 1.1rem; border-radius: 99px; transition: border-color .3s, background .3s !important; }
.nav__cta:hover { border-color: var(--ice); background: rgba(159, 216, 234, .08); }
.nav__toggle { display: none; }

@media (max-width: 820px) {
  .nav__toggle {
    display: grid; place-content: center; gap: 7px; width: 46px; height: 46px;
    background: rgba(236, 230, 220, .08); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; z-index: 2;
  }
  .nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--bone); transition: transform .4s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.6rem;
    background: rgba(11, 11, 12, .97); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links a { font: 400 2.2rem var(--serif); color: var(--bone); }
  .nav__cta { font-size: 1.6rem !important; padding: .6rem 1.8rem; }
}

/* =========================================================
   HERO — lampe torche
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  padding: 7rem var(--pad) clamp(3rem, 8vh, 6rem); overflow: hidden;
}
.hero__art { position: absolute; inset: 0 0 0 auto; width: min(62vw, 100%); cursor: none; touch-action: pan-y; }
.hero__art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(11,11,12,.55) 22%, transparent 48%),
              linear-gradient(0deg, var(--ink) 0%, transparent 25%);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.hero__img--dark { filter: brightness(.16) saturate(.4) contrast(1.1); }
.hero__img--lit {
  --x: 50%; --y: 42%; --r: 230px;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 30%, rgba(0,0,0,.6) 55%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 30%, rgba(0,0,0,.6) 55%, transparent 100%);
}
.hero__text { position: relative; z-index: 2; max-width: 36rem; pointer-events: none; }
.hero h1 { font-size: clamp(4.2rem, 13vw, 10.5rem); line-height: .88; letter-spacing: -.02em; margin-bottom: 1.6rem; }
.hero__lead { font: italic 400 clamp(1.3rem, 2.4vw, 1.75rem)/1.35 var(--serif); margin: 0 0 2rem; max-width: 24rem; }
.hero__hint { display: flex; align-items: center; gap: .8rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.hint-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 0 rgba(159,216,234,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(159,216,234,0); } 100% { box-shadow: 0 0 0 0 rgba(159,216,234,0); } }
.hero__caption { position: absolute; right: var(--pad); bottom: 2rem; z-index: 2; margin: 0; font: italic 400 .95rem var(--serif); color: var(--muted); }
.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; z-index: 2; width: 24px; height: 40px; border: 1px solid var(--line); border-radius: 99px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--bone); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 820px) {
  .hero { align-items: end; }
  .hero__art { width: 100%; }
  .hero__art::after { background: linear-gradient(0deg, var(--ink) 8%, rgba(11,11,12,.55) 42%, transparent 70%); }
  .hero__img { object-position: 50% 30%; }
  .hero__img--lit { --r: 150px; }
  .hero__caption, .scroll-cue { display: none; }
}
@media (hover: none) { .hint-text::after { content: " avec le doigt"; } }

/* =========================================================
   MANIFESTE
   ========================================================= */
.manifesto { padding: clamp(6rem, 18vh, 12rem) var(--pad); max-width: 72rem; margin: 0 auto; }
.manifesto__text { font: 400 clamp(2rem, 5.2vw, 4.2rem)/1.15 var(--serif); margin: 0; }
.manifesto__text .w { opacity: .14; transition: opacity .5s, color .5s; }
.manifesto__text .w.is-lit { opacity: 1; }
.manifesto__text .w.is-key { font-style: italic; }
.manifesto__text .w.is-key.is-lit { color: var(--ice); }

/* =========================================================
   ŒUVRES
   ========================================================= */
.works { padding: clamp(4rem, 10vh, 8rem) var(--pad); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.4rem; }
.filter {
  font: 500 .85rem var(--sans); color: var(--muted); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 99px; padding: .55rem 1.2rem; transition: all .3s;
}
.filter:hover { color: var(--bone); border-color: rgba(236,230,220,.3); }
.filter.is-active { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.grid { columns: 3 300px; column-gap: 1.4rem; }
.card {
  break-inside: avoid; margin: 0 0 1.4rem; position: relative; cursor: zoom-in;
  border-radius: 6px; overflow: hidden; background: var(--ink-2);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), opacity .5s, filter .5s;
  will-change: transform;
}
.card.is-hidden { display: none; }
.card img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .6s; }
.card:hover img { transform: scale(1.04); }
.card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 3rem 1.2rem 1.1rem;
  background: linear-gradient(0deg, rgba(11,11,12,.92), transparent);
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease);
}
.card:hover figcaption, .card:focus-visible figcaption { opacity: 1; transform: none; }
.card h3 { font-size: 1.6rem; }
.card small { color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.card .glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.14), transparent 45%);
}
.card:hover .glare { opacity: 1; }
@media (hover: none) { .card figcaption { opacity: 1; transform: none; } }

/* =========================================================
   ZOOM — du chevalet au regard
   ========================================================= */
.zoom { position: relative; height: 320vh; }
.zoom__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.zoom__frame { position: relative; height: 100%; width: min(100vw, 76svh); overflow: hidden; }
.zoom__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  transform-origin: 48% 40.5%; transform: scale(var(--s, 1)); will-change: transform;
  filter: brightness(var(--b, 1));
}
.zoom__frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 120px 40px var(--ink); pointer-events: none; }
.zoom__words { position: absolute; left: var(--pad); bottom: 12vh; max-width: 30rem; }
.zoom__word {
  position: absolute; bottom: 0; left: 0; margin: 0; width: max-content; max-width: 80vw;
  font: italic 400 clamp(2rem, 4.6vw, 3.8rem)/1.05 var(--serif);
  opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease);
  text-shadow: 0 2px 30px rgba(0,0,0,.8);
}
.zoom__word.is-on { opacity: 1; transform: none; }
.zoom__word:last-child { color: var(--ice); }

/* =========================================================
   JEU DES REGARDS
   ========================================================= */
.game { padding: clamp(5rem, 12vh, 9rem) var(--pad); background: var(--ink-2); border-block: 1px solid var(--line); }
.eyes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 1000px) { .eyes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; } }
.eye-card { perspective: 1200px; }
.eye-card__inner { position: relative; aspect-ratio: 3 / 4; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.eye-card.is-flipped .eye-card__inner { transform: rotateY(180deg); }
.eye-card__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 8px; overflow: hidden; background: var(--ink);
  border: 1px solid var(--line);
}
.eye-card__front { display: flex; flex-direction: column; }
.eye-card__band {
  flex: 1; background-repeat: no-repeat; position: relative;
  -webkit-mask-image: linear-gradient(0deg, transparent 18%, #000 40%, #000 60%, transparent 82%);
          mask-image: linear-gradient(0deg, transparent 18%, #000 40%, #000 60%, transparent 82%);
  animation: blink 7s infinite;
}
.eye-card:nth-child(2) .eye-card__band { animation-delay: 1.7s; }
.eye-card:nth-child(3) .eye-card__band { animation-delay: 3.9s; }
.eye-card:nth-child(4) .eye-card__band { animation-delay: 5.3s; }
@keyframes blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(.06); } }
.eye-card__choices { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .4rem; padding: .8rem; }
.choice {
  font: 500 .8rem var(--sans); color: var(--bone); background: var(--ink-3); border: 1px solid var(--line);
  border-radius: 99px; padding: .55rem .3rem; cursor: pointer; transition: background .3s, border-color .3s, transform .2s;
}
.choice:hover { border-color: var(--ice); }
.choice:active { transform: scale(.96); }
.eye-card.shake .eye-card__inner { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.eye-card__back { transform: rotateY(180deg); }
.eye-card__back img { width: 100%; height: 100%; object-fit: cover; }
.eye-card__back figcaption {
  position: absolute; inset: auto 0 0 0; padding: 3rem 1.1rem 1rem; background: linear-gradient(0deg, rgba(11,11,12,.95), transparent);
}
.eye-card__back h3 { font-size: 1.7rem; }
.eye-card__back p { margin: .2rem 0 0; font-size: .85rem; color: var(--muted); }
.eye-card__verdict { position: absolute; top: .9rem; right: .9rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 99px; background: rgba(11,11,12,.75); }
.eye-card__verdict.ok { color: var(--ice); }
@media (max-width: 560px) {
  .eye-card__inner { aspect-ratio: 3 / 5; }
  .eye-card__choices { grid-template-columns: 1fr; gap: .35rem; padding: .6rem; }
  .choice { padding: .5rem; }
}
.game__score { margin: 2.2rem 0 0; font: italic 400 1.5rem var(--serif); min-height: 2rem; text-align: center; }

/* =========================================================
   L'ARTISTE
   ========================================================= */
.artist {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start;
  padding: clamp(5rem, 14vh, 10rem) var(--pad); max-width: 82rem; margin: 0 auto;
}
.artist__photo { position: sticky; top: 6rem; border-radius: 6px; overflow: hidden; }
.artist__photo img { width: 100%; height: auto; }
.artist h2 { font-style: italic; font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 1.6rem; }
.artist__text > p { font-size: 1.1rem; color: var(--bone); max-width: 34rem; }
.timeline { list-style: none; padding: 0; margin: 2.6rem 0 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 2rem 2rem; color: var(--muted); max-width: 32rem; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: .55rem; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--ice);
}
.timeline li:last-child::before { background: var(--ice); box-shadow: 0 0 14px var(--ice); }
.timeline span { display: block; font: 500 1.45rem var(--serif); color: var(--bone); margin-bottom: .2rem; }
@media (max-width: 820px) {
  .artist { grid-template-columns: 1fr; }
  .artist__photo { position: relative; top: 0; max-width: 28rem; }
}

/* =========================================================
   COMMANDES
   ========================================================= */
.commission {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center;
  padding: clamp(5rem, 14vh, 10rem) var(--pad); background: var(--ink-2); border-top: 1px solid var(--line);
}
.commission__photo { margin: 0; }
.commission__photo img { width: 100%; height: auto; border-radius: 6px; }
.commission__photo figcaption { margin-top: .8rem; font: italic 400 1rem var(--serif); color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0 0 2.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.steps li {
  padding: 1.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--ink);
  transition: border-color .4s, transform .4s var(--ease);
}
.steps li:hover { border-color: rgba(159,216,234,.45); transform: translateY(-4px); }
.steps b { font: 400 .8rem var(--sans); letter-spacing: .2em; color: var(--ice); }
.steps h3 { font-size: 1.6rem; margin: .5rem 0 .4rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) {
  .commission { grid-template-columns: 1fr; }
  .commission__photo { max-width: 26rem; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  font: 600 .92rem var(--sans); letter-spacing: .02em; color: var(--ink); background: var(--bone);
  padding: 1rem 1.8rem; border-radius: 99px; border: 1px solid var(--bone);
  transition: background .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn:hover { background: var(--ice); border-color: var(--ice); transform: translateY(-2px); box-shadow: 0 10px 40px -10px rgba(159,216,234,.5); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--line); }
.btn--ghost:hover { color: var(--ink); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { position: relative; overflow: hidden; text-align: center; padding: clamp(7rem, 20vh, 13rem) var(--pad); }
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(.22) saturate(.7); }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 20%, var(--ink) 78%); }
.contact h2 { font-size: clamp(2.8rem, 8vw, 6rem); }
.contact .section-sub { margin-inline: auto; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.6rem; }

.footer { padding: 2rem var(--pad); border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; text-align: center; }
.footer p { margin: 0; }

/* =========================================================
   LIGHTBOX + LOUPE
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(8,8,9,.96);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem;
  opacity: 0; transition: opacity .4s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; min-width: 0; }
.lightbox__stage { position: relative; cursor: none; touch-action: none; }
.lightbox__img { max-height: 80svh; max-width: 100%; width: auto; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.loupe {
  position: absolute; width: 190px; height: 190px; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(236,230,220,.85); box-shadow: 0 10px 50px rgba(0,0,0,.7), inset 0 0 20px rgba(0,0,0,.4);
  background-repeat: no-repeat; opacity: 0; transform: translate(-50%, -50%) scale(.6);
  transition: opacity .25s, transform .25s var(--ease);
}
.loupe.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.lightbox figcaption { text-align: center; }
.lightbox__title { font-size: 2rem; }
.lightbox__meta { margin: .2rem 0 0; color: var(--muted); font-size: .85rem; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(236,230,220,.08); border: 1px solid var(--line); color: var(--bone); font-size: 1.6rem; cursor: pointer; z-index: 2;
}
.lightbox__nav {
  width: 52px; height: 52px; border-radius: 50%; background: transparent; border: 1px solid var(--line);
  color: var(--bone); font-size: 1.8rem; cursor: pointer; transition: border-color .3s;
}
.lightbox__nav:hover, .lightbox__close:hover { border-color: var(--ice); }
@media (max-width: 700px) {
  .lightbox { grid-template-columns: 1fr; padding: 4.5rem .6rem 1rem; }
  .lightbox__nav { position: absolute; bottom: 1.2rem; }
  .lightbox__prev { left: 1rem; } .lightbox__next { right: 1rem; }
  .lightbox__img { max-height: 68svh; }
  .loupe { width: 150px; height: 150px; margin-top: -100px; }
}

/* =========================================================
   MANIFESTE — fond : le regard d'Azul
   ========================================================= */
.manifesto { position: relative; }
.manifesto__bg { position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; overflow: hidden; }
.manifesto__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: brightness(.2) saturate(.8); }
.manifesto__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, transparent 30%, transparent 70%, var(--ink) 100%); }

/* =========================================================
   LA COLLECTION — œuvre mise en avant
   ========================================================= */
.collection { padding: clamp(5rem, 14vh, 10rem) var(--pad); max-width: 84rem; margin: 0 auto; }
.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.feature__stage { position: relative; border-radius: 6px; cursor: none; touch-action: none; box-shadow: 0 40px 120px -40px rgba(95,179,207,.25); }
.feature__stage img { width: 100%; height: auto; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.feature__stage .loupe { width: 220px; height: 220px; }
.feature__hint {
  position: absolute; left: 1rem; bottom: 1rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(11,11,12,.7); padding: .45rem .8rem; border-radius: 99px; pointer-events: none; transition: opacity .3s;
}
.feature__stage:hover .feature__hint { opacity: 0; }
.feature__num { font: 400 .8rem var(--sans); letter-spacing: .3em; color: var(--ice); margin: 0 0 .6rem; }
.feature__text h3 { font-size: clamp(3.4rem, 8vw, 6.5rem); font-style: italic; }
.feature__meta { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; margin: .4rem 0 1.6rem; }
.feature__text > p:not(.feature__num):not(.feature__meta) { font: italic 400 1.35rem/1.45 var(--serif); max-width: 26rem; }
.feature__detail { margin: 2rem 0; }
.feature__detail img { width: 100%; height: 170px; object-fit: cover; border-radius: 6px; }
.feature__detail figcaption { margin-top: .5rem; font-size: .75rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.next {
  margin-top: clamp(3rem, 8vw, 5rem); padding: 2.4rem; border: 1px dashed rgba(236,230,220,.22); border-radius: 8px; text-align: center;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(236,230,220,.018) 14px 28px);
}
.next__title { font: italic 400 clamp(1.8rem, 4vw, 2.6rem) var(--serif); margin: 0; }
.next__sub { color: var(--muted); margin: .5rem 0 0; }
.next__sub a { color: var(--ice); }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature__stage .loupe { width: 150px; height: 150px; margin-top: -95px; }
}
@media (hover: none) {
  .feature__hint { font-size: 0; }
  .feature__hint::after { content: "Maintenez le doigt pour zoomer"; font-size: .72rem; }
}
.timeline a { color: var(--ice); }

/* =========================================================
   AVANT AZUL — passerelle vers les archives
   ========================================================= */
.before {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding: clamp(5rem, 14vh, 9rem) var(--pad); border-top: 1px solid var(--line);
}
.before__strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.before__strip img {
  width: 100%; aspect-ratio: 3 / 5; object-fit: cover; border-radius: 4px;
  filter: grayscale(1) brightness(.6); transition: filter .6s, transform .6s var(--ease);
}
.before__strip img:nth-child(even) { transform: translateY(2rem); }
.before:hover .before__strip img { filter: grayscale(.2) brightness(.85); }
.before--back { grid-template-columns: 1fr; text-align: center; }
.before--back .section-sub { margin-inline: auto; }
@media (max-width: 820px) {
  .before { grid-template-columns: 1fr; }
  .before__strip img:nth-child(n+4) { display: none; }
  .before__strip { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   PAGE ARCHIVES
   ========================================================= */
.archives-head { padding: clamp(8rem, 22vh, 12rem) var(--pad) 1rem; max-width: 60rem; }
.archives-head h1 { font-size: clamp(3.4rem, 10vw, 7.5rem); line-height: .95; }
.archives-back { display: inline-block; margin-top: 2rem; color: var(--muted); text-decoration: none; font-size: .9rem; transition: color .3s; }
.archives-back:hover { color: var(--ice); }
.page-archives .works { padding-top: 2rem; }
.page-archives .card img { filter: saturate(.85); }
.nav__links a[aria-current="page"] { color: var(--bone); }

/* Apparitions au défilement */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .intro { display: none; }
}
