:root {
  --bg: #fff;
  --ink: #111;
  --mute: #6b6b6b;
  --line: #e8e8e8;
  --line-strong: #ccc;
  --accent: #e4572e;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #c4c4c4 #fff; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: fixed; left: var(--pad); top: 12px; z-index: 100; padding: 12px 18px; background: var(--ink); color: #fff; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; transform: translateY(-200%); transition: transform .3s var(--ease); }
.skip:focus { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

/* ---------- typographie ---------- */
.eyebrow {
  font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--mute);
}
h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 300; line-height: .95; margin: 0; letter-spacing: -.01em; }
.display { font-size: clamp(56px, 12.5vw, 220px); }
.title { font-size: clamp(40px, 7vw, 120px); }
.lead { font-family: var(--serif); font-size: clamp(24px, 3vw, 44px); line-height: 1.2; font-weight: 300; }
em { font-style: italic; }

/* ---------- préchargeur & transitions ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: #fff;
  display: grid; place-items: center; transition: transform 1.1s var(--ease) .15s;
}
.loader.done { transform: translateY(-100%); pointer-events: none; }
.loader span { font: 300 clamp(28px, 4vw, 56px)/1 var(--serif); letter-spacing: .02em; overflow: hidden; display: block; }
.loader i { font-style: normal; display: inline-block; transform: translateY(110%); animation: up .8s var(--ease) forwards; }
@keyframes up { to { transform: none; } }
.loader-bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--ink); width: 0; animation: bar 1.1s var(--ease) forwards; }
@keyframes bar { to { width: 100%; } }

.wipe {
  position: fixed; inset: 0; z-index: 99; background: var(--ink); transform: translateY(100%);
  pointer-events: none; transition: transform .7s var(--ease);
}
.wipe.on { transform: none; pointer-events: all; }

/* ---------- curseur ---------- */
.cursor, .cursor-label {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; opacity: 0;
  will-change: transform;
}
.cursor {
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--ink); mix-blend-mode: difference; filter: invert(1);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s;
}
.cursor.big { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
.cursor.link { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.cursor-label {
  font: 500 10px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: #fff; mix-blend-mode: difference; transform: translate(-50%, -50%);
}
body.has-cursor .cursor.show { opacity: 1; }
body.has-cursor .cursor-label.show { opacity: 1; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--pad); color: var(--ink);
  background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.logo { font: 400 22px/1 var(--serif); letter-spacing: .02em; }
.nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav a {
  position: relative; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 14px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 60; }

/* ---------- révélations ---------- */
.split .line { display: block; }
.split .ch { display: inline-block; overflow: hidden; vertical-align: top; }
.split .ch > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 35ms); }
.split.in .ch > span { transform: none; }

[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

.img-reveal { overflow: hidden; position: relative; background: #f4f4f4; }
.img-reveal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); clip-path: inset(0 0 100% 0); transition: transform 1.6s var(--ease), clip-path 1.3s var(--ease); }
.img-reveal.in img { transform: scale(1); clip-path: inset(0); }
.img-reveal:hover img { transform: scale(1.05); }

.words span { opacity: .14; transition: opacity .25s linear; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; padding: 140px var(--pad) 40px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.hero h1 { position: relative; z-index: 2; }
.hero h1 .line { display: block; }
.hero-meta { display: flex; justify-content: space-between; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.hero-float { position: absolute; z-index: 1; overflow: hidden; will-change: transform; }
.hero-float.a { top: 13vh; right: var(--pad); width: clamp(200px, 32vw, 520px); aspect-ratio: 4 / 5; }
.hero-float.b { top: 50vh; right: calc(var(--pad) + clamp(150px, 24vw, 400px)); width: clamp(150px, 19vw, 320px); aspect-ratio: 1; }
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; }
.scroll-hint::after { content: ""; width: 1px; height: 36px; background: var(--ink); transform-origin: top; animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 2; background: var(--bg); overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; animation: marq 38s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 300 clamp(40px, 7vw, 110px)/1 var(--serif); display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✦"; font-size: .35em; color: var(--accent); }
.marquee span:nth-child(even) { font-style: italic; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: clamp(80px, 12vw, 180px) var(--pad); position: relative; }
.grid-2 { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 96px); }
.intro .lead { max-width: 22em; }
.link-arrow { display: inline-flex; align-items: center; gap: 14px; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-top: 40px; padding: 16px 0; border-bottom: 1px solid var(--ink); }
.link-arrow svg { width: 18px; transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: translateX(8px); }

/* puzzle spotlight */
.spot { position: relative; margin-top: 56px; --x: 50%; --y: 50%; --r: 0px; overflow: hidden; background: #fff; }
.spot img { width: 100%; height: auto; }
.spot .base { filter: grayscale(1) contrast(1.05); opacity: .35; }
.spot .color {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 60%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 60%, transparent 100%);
}

/* galerie à décalage */
.stagger { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 3vw, 48px); align-items: start; }
.stagger figure { margin: 0; }
.stagger .s1 { grid-column: 1 / 8; }
.stagger .s2 { grid-column: 9 / 13; margin-top: 18vw; }
.stagger .s3 { grid-column: 2 / 6; margin-top: -4vw; }
.stagger .s4 { grid-column: 7 / 13; margin-top: 8vw; }
.stagger .s5 { grid-column: 1 / 13; }
.stagger .img-reveal { aspect-ratio: 4 / 3; }
.stagger .s2 .img-reveal, .stagger .s3 .img-reveal { aspect-ratio: 4 / 5; }
figcaption { font: 400 12px/1.4 var(--sans); color: var(--mute); margin-top: 12px; display: flex; gap: 14px; }
figcaption b { font-weight: 500; color: var(--ink); }
.tilt { transform-style: preserve-3d; transition: transform .6s var(--ease); }

/* chiffres / actus */
.facts { border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding .6s var(--ease), background .4s; position: relative; }
.fact:hover { padding-left: 24px; }
.fact .y { font: 300 clamp(28px, 3vw, 44px)/1 var(--serif); color: var(--mute); transition: color .4s; }
.fact:hover .y { color: var(--accent); }
.fact h3 { font-size: clamp(24px, 2.6vw, 38px); }
.fact p { margin: 0; color: var(--mute); font-size: 14px; }

/* bannière large */
.band { padding: 0; height: 80vh; overflow: hidden; position: relative; }
.band img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.band h2 { position: absolute; left: var(--pad); bottom: 40px; color: #fff; z-index: 2; text-shadow: 0 2px 40px rgba(0,0,0,.25); }

/* ---------- pages intérieures ---------- */
.page-head { padding-top: clamp(140px, 18vw, 240px); padding-bottom: 40px; }
.project { border-top: 1px solid var(--line); }
.project-head { display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: start; margin-bottom: 56px; }
.project-head .n { font: 300 20px/1 var(--serif); color: var(--mute); padding-top: 12px; }
.project-body { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 96px); margin-bottom: 64px; }
.project-body p { margin: 0 0 1.2em; max-width: 36em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; transition: background .3s, color .3s; }
.tags span:hover { background: var(--ink); color: #fff; }
.soon { padding: 56px; border: 1px dashed var(--line-strong); color: var(--mute); text-align: center; font: italic 300 clamp(20px, 2vw, 28px)/1.3 var(--serif); }

.masonry { columns: 3; column-gap: clamp(12px, 2vw, 28px); }
.masonry a { display: block; margin-bottom: clamp(12px, 2vw, 28px); break-inside: avoid; }
.masonry .img-reveal img { height: auto; }

/* bio */
.bio-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.bio-portrait { position: sticky; top: 100px; }
.toggle { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; padding: 4px; margin-bottom: 40px; }
.toggle button { font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; background: none; border: 0; padding: 12px 22px; border-radius: 999px; color: var(--ink); transition: background .4s var(--ease), color .4s; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.bio-text p { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2vw, 30px); line-height: 1.35; margin: 0 0 1em; }
.bio-text[data-mode="short"] .long, .bio-text[data-mode="long"] .short { display: none; }

/* contact */
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list > li > div { display: grid; grid-template-columns: 180px 1fr auto; align-items: baseline; gap: 24px; padding: 30px 0; transition: padding .6s var(--ease); }
.contact-list a:hover { padding-left: 24px; }
.contact-list .v { font: 300 clamp(26px, 3.4vw, 56px)/1.05 var(--serif); overflow-wrap: anywhere; }
.contact-list a:hover .v { font-style: italic; }
.contact-list .arr { font-size: 22px; transition: transform .5s var(--ease); }
.contact-list a:hover .arr { transform: translate(6px, -6px); }

/* footer */
.site-footer { padding: 60px var(--pad) 36px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; font-size: 13px; color: var(--mute); }
.site-footer a:hover { color: var(--ink); }
.big-cta { text-align: center; padding-block: clamp(100px, 16vw, 240px); }
.big-cta a { display: inline-block; font: 300 clamp(48px, 10vw, 180px)/1 var(--serif); position: relative; }
.big-cta a span { display: inline-block; transition: transform .6s var(--ease); }
.big-cta a:hover span { font-style: italic; }
.big-cta a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .8s var(--ease); }
.big-cta a:hover::after { transform: scaleX(1); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 95; background: rgba(255,255,255,.97); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); padding: 5vw; }
.lb.open { opacity: 1; pointer-events: all; }
.lb img { max-width: 100%; max-height: 82vh; object-fit: contain; transform: scale(.94); transition: transform .8s var(--ease); }
.lb.open img { transform: none; }
.lb-cap { position: absolute; left: var(--pad); bottom: 24px; font-size: 12px; color: var(--mute); }
.lb button { position: absolute; background: none; border: 0; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 20px; color: var(--ink); }
.lb .x { top: 12px; right: calc(var(--pad) - 20px); }
.lb .p { left: calc(var(--pad) - 20px); top: 50%; }
.lb .n { right: calc(var(--pad) - 20px); top: 50%; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid-2, .project-body, .bio-grid { grid-template-columns: 1fr; }
  .bio-portrait { position: static; }
  .stagger { display: block; }
  .stagger figure { margin: 0 0 40px !important; }
  .masonry { columns: 2; }
  .fact { grid-template-columns: 70px 1fr; }
  .fact p { grid-column: 2; }
  .contact-list a, .contact-list > li > div { grid-template-columns: 1fr; gap: 6px; }
  .contact-list .arr { display: none; }
  .hero-float.b { display: none; }
  .hero-float.a { top: 12vh; width: 60vw; }
  .project-head { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 520px) {
  .nav { gap: 12px; }
  .nav a { font-size: 11px; letter-spacing: .03em; }
  .nav a.lang { margin-left: 0; padding-left: 10px; }
  .logo { font-size: 17px; white-space: nowrap; }
  .nav { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
  .site-header { gap: 10px; }
  .masonry { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  /* pas de mouvement : les contenus apparaissent directement, un simple fondu garde les changements d'état lisibles */
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
  [data-reveal] { transform: none; transition: opacity .4s linear; }
  .split .ch > span { transform: none; transition: none; }
  .img-reveal img { transform: none; clip-path: none; transition: opacity .4s linear; }
  .img-reveal:hover img { transform: none; }
  .words span { opacity: 1 !important; }
  .marquee-track { animation: none; }
  .pin { height: auto; padding: 80px 0 40px; }
  .pin-stage { position: static; height: auto; overflow: visible; display: grid; gap: 24px; padding: 0 var(--pad); }
  .pin-title { position: static; }
  .pin-frame, .pin-frame.f1, .pin-frame.f2, .pin-frame.f3, .pin-frame.f4, .pin-frame.f5 { position: static; opacity: 1 !important; transform: none !important; width: min(100%, 720px); }
  .pin-ui, .pin-bar { display: none; }
}

/* ---------- scène épinglée (la page reste fixe, les images arrivent) ---------- */
.pin { padding: 0; height: 480vh; }
.pin-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.pin-title { position: absolute; top: 88px; left: var(--pad); z-index: 5; }
.pin-frame { position: absolute; margin: 0; opacity: 0; will-change: transform, opacity; box-shadow: 0 30px 80px rgba(0,0,0,.12); background: #f4f4f4; }
.pin-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pin-frame.f1 { left: 3%; top: 14%; width: min(50vw, 74vh); }
.pin-frame.f2 { left: 46%; top: 10%; width: min(50vw, 76vh); }
.pin-frame.f3 { left: 22%; top: 40%; width: min(46vw, 70vh); }
.pin-frame.f4 { left: 60%; top: 44%; width: min(38vw, 58vh); }
.pin-frame.f5 { left: 2%; top: 54%; width: min(30vw, 44vh); }
.pin-ui { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; display: flex; justify-content: space-between; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); z-index: 5; }
.pin-cap { color: var(--ink); }
.pin-bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 2px; background: var(--line); }
.pin-bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
@media (max-width: 860px) {
  .pin-frame.f1 { left: 4%; top: 15%; width: 84vw; }
  .pin-frame.f2 { left: 14%; top: 30%; width: 84vw; }
  .pin-frame.f3 { left: 3%; top: 44%; width: 78vw; }
  .pin-frame.f4 { left: 22%; top: 53%; width: 74vw; }
  .pin-frame.f5 { left: 4%; top: 66%; width: 52vw; }
}

/* sélecteur de langue */
.nav a.lang { opacity: .8; margin-left: 6px; padding-left: 14px; border-left: 1px solid currentColor; line-height: 1; }
.nav a.lang:hover { opacity: 1; }

/* visionneuse : boutons lisibles et repérables au clavier */
.lb button { cursor: pointer; }
.lb button:focus-visible { outline-offset: -6px; }
