/* Concept : une galerie de nuit qui bouge. Triptyque plein cadre avec le nom géant qui s'inverse sur les photos (difference),
   mouvement au défilement (parallaxe, mots qui s'allument, panneaux qui s'ouvrent), doré champagne en filet, italique serif en contrepoint. */
:root {
  --bg: #050505;
  --surface: #0d0c0b;
  --line: #23201d;
  --fg: #ece7dd;
  --muted: #8d877d;
  --accent: #c9a977;
  --accent-ink: #14100a;
  --f-display: "Archivo", "Arial Black", sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 16px; line-height: 1.55; padding-inline: 20px; padding-block: 0; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1320px; margin-inline: auto; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--f-display); font-stretch: 125%; font-weight: 500; line-height: .95; text-transform: uppercase; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 5.6vw, 4.8rem); }
h2 em, .it { font-family: var(--f-serif); font-style: italic; font-weight: 500; font-stretch: 100%; text-transform: none; letter-spacing: 0; color: var(--accent); }
h2 em { font-size: 1.12em; }
section { padding-block: clamp(64px, 10vw, 140px); }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: var(--accent); }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--accent); }

/* Apparition au défilement (visible par défaut, masqué seulement quand le script tourne) */
.js .rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* Écran d'ouverture (CSS pur : se retire seul) */
.lg { height: 40px; width: auto; display: block; }
.lg.big { height: clamp(90px, 16vw, 180px); }
.pre .lg { height: 120px; animation: logoIn 1.2s var(--ease) both; }
@keyframes logoIn { from { opacity: 0; transform: scale(.86); filter: blur(8px); } }

.pre { position: fixed; inset: 0; z-index: 400; background: #000; display: grid; place-items: center; animation: preOut 1s var(--ease) 2s forwards; }
.pre-in { display: grid; gap: 22px; justify-items: center; }
.pre .yf b { width: 64px; height: 74px; font-size: 2.2rem; }
.pre .yf b:first-child { animation: fromL 1s var(--ease) both; } .pre .yf b:last-child { animation: fromR 1s var(--ease) both; }
.pre .cnt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; color: var(--muted); font-variant-numeric: tabular-nums; }
.pre .bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.pre .bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: fill 1.7s var(--ease) both; }
@keyframes fromL { from { transform: translateX(-90px); opacity: 0; } } @keyframes fromR { from { transform: translateX(90px); opacity: 0; } }
@keyframes fill { from { transform: scaleX(0); } }
@keyframes preOut { to { transform: translateY(-100%); visibility: hidden; } }

.banner { margin-inline: -20px; padding: 6px 20px; background: #000; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); z-index: 120; }
nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; margin-inline: -20px; padding: 14px 20px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transition: transform .5s var(--ease); }
nav.hide { transform: translateY(-100%); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-stretch: 125%; font-weight: 700; letter-spacing: .08em; font-size: .85rem; }
.yf { display: inline-flex; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); font-family: var(--f-display); font-weight: 900; font-stretch: 125%; line-height: 1; }
.yf b { display: grid; place-items: center; width: 30px; height: 34px; font-size: 1.05rem; }
.yf b { background: #0a0a0a; }
.yf b:first-child { color: #fff; } .yf b:last-child { color: #e3262b; }
.yf.big b { width: clamp(70px, 14vw, 150px); height: clamp(84px, 17vw, 180px); font-size: clamp(2.4rem, 7vw, 5.6rem); }
.links { display: flex; gap: 30px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.links a { color: var(--muted); position: relative; padding-block: 4px; transition: color .3s; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.links a:hover { color: var(--fg); } .links a:hover::after { transform: scaleX(1); transform-origin: left; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; background: var(--fg); color: #0a0a0a; border: 1px solid var(--fg); cursor: pointer; font-family: var(--f-body); transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease); will-change: transform; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--fg); border-color: #3a3631; } .btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
@media (max-width: 760px) { .links { display: none; } }
@media (max-width: 420px) { .logo .nm { display: none; } }

/* Héros : triptyque + nom géant */
.hero { padding-top: clamp(20px, 3vw, 36px); }
.hero-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.stage { position: relative; }
.tri { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 10px; height: min(76vh, 780px); }
.pane { position: relative; overflow: hidden; border-radius: 2px; background: var(--surface); will-change: transform; }
.pane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.14); transition: opacity 1.6s ease, transform 9s linear; filter: contrast(1.06) saturate(.92); }
.pane img.on { opacity: 1; transform: scale(1); }
.pane.p1 { margin-top: clamp(30px, 6vw, 80px); } .pane.p3 { margin-top: clamp(60px, 11vw, 150px); }
.pane::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12), transparent 30%, rgba(0,0,0,.5)); pointer-events: none; }
.tag-slide { position: absolute; left: 12px; top: 12px; z-index: 2; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; color: #fff; mix-blend-mode: difference; text-transform: uppercase; }
.giant { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; font-size: clamp(2.7rem, 12.4vw, 12.6rem); line-height: .86; font-weight: 800; color: #fff; mix-blend-mode: difference; pointer-events: none; display: flex; flex-direction: column; transform: translateY(14%); }
.giant .ln { display: block; overflow: hidden; padding-block: .03em; }
.giant .ln.l2 { text-align: right; }
.giant .ch { display: inline-block; animation: up 1.1s var(--ease) backwards; animation-delay: calc(2.1s + var(--i) * 70ms); }
@keyframes up { from { transform: translateY(115%); } }
.hero-bot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: clamp(40px, 7vw, 90px); }
.statement { font-size: clamp(1.15rem, 1.9vw, 1.6rem); max-width: 30ch; margin: 0; color: var(--muted); line-height: 1.35; }
.statement b { font-weight: 500; color: var(--fg); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spin { width: 96px; height: 96px; position: relative; }
.spin svg { width: 100%; height: 100%; animation: rot 14s linear infinite; }
.spin text { font-family: var(--f-mono); font-size: 10.4px; letter-spacing: .24em; fill: var(--muted); text-transform: uppercase; }
.spin::after { content: "↓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); font-size: 20px; }
@keyframes rot { to { transform: rotate(360deg); } }
.facts { display: flex; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; }
.facts div b { display: block; font-family: var(--f-display); font-stretch: 112%; font-weight: 600; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .tri { grid-template-columns: .6fr 1fr .6fr; gap: 6px; height: 62vh; } .giant { font-size: 12.2vw; } }

.marquee { margin-inline: -20px; border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; }
.marquee div { display: flex; gap: 44px; width: max-content; animation: slide 40s linear infinite; font-family: var(--f-display); font-stretch: 125%; font-weight: 300; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .3em; }
.marquee:hover div { animation-play-state: paused; }
.marquee span { display: flex; align-items: center; gap: 44px; color: #6a645b; }
.marquee span::after { content: ""; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Manifeste : mots qui s'allument */
.manifest { padding-block: clamp(80px, 14vw, 200px); }
.manifest p { font-family: var(--f-display); font-stretch: 112%; font-weight: 300; text-transform: uppercase; font-size: clamp(1.9rem, 6.4vw, 5.6rem); line-height: 1.02; margin: 0; max-width: 18ch; text-wrap: balance; }
.manifest .w { opacity: .18; transition: opacity .5s ease, color .5s ease; }
.manifest .w.on { opacity: 1; }
.manifest .w.s.on { color: var(--accent); font-family: var(--f-serif); font-style: italic; text-transform: none; font-stretch: 100%; font-size: 1.1em; }

/* Séries : bande horizontale */
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head p { margin: 0; max-width: 36ch; }
.series { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; cursor: grab; }
.series.drag { cursor: grabbing; scroll-snap-type: none; }
.serie { flex: 0 0 min(78vw, 400px); aspect-ratio: 3 / 4; position: relative; overflow: hidden; border-radius: 2px; scroll-snap-align: start; border: 0; padding: 0; background: var(--surface); color: inherit; text-align: left; }
.serie img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: contrast(1.05) saturate(.9) brightness(.82); pointer-events: none; }
.serie:hover img { transform: scale(1.07); filter: contrast(1.05) saturate(1) brightness(1); }
.serie .num { position: absolute; top: 16px; left: 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: #fff; }
.serie .ttl { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.serie .ttl b { font-family: var(--f-display); font-stretch: 125%; font-weight: 700; text-transform: uppercase; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1; color: #fff; }
.serie .ttl span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: #ddd; text-transform: uppercase; white-space: nowrap; }
.serie::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.8)); pointer-events: none; }
.serie .ttl, .serie .num { z-index: 2; }

/* Comp card */
.comp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.comp > * { min-width: 0; }
.tiltwrap { perspective: 1200px; }
.card { background: var(--surface); border: 1px solid #3a3226; border-radius: 2px; box-shadow: 0 40px 100px rgba(0,0,0,.7); padding: clamp(12px, 2vw, 22px); display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 10px; aspect-ratio: 4 / 3.1; transition: transform .5s var(--ease); transform-style: preserve-3d; }
.card figure { margin: 0; overflow: hidden; border-radius: 2px; position: relative; min-height: 0; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card figure:hover img { transform: scale(1.06); }
.card .big { grid-row: 1 / 4; }
.card figcaption { position: absolute; left: 8px; bottom: 6px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.specs h3 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); margin-bottom: 8px; }
.specs .sub { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.specs dl { margin: 0; }
.specs dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); transition: padding .4s var(--ease), border-color .3s; }
.specs dl div:hover { padding-left: 10px; border-color: var(--accent); }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 0; font-family: var(--f-mono); font-size: 14px; text-align: right; }
.specs .actions { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.note { margin-top: 14px; }
@media (max-width: 900px) { .comp { grid-template-columns: 1fr; } }

/* Regard : panneaux qui s'ouvrent */
.acc { display: flex; gap: 8px; height: min(74vh, 620px); }
.acc figure { flex: 1; position: relative; overflow: hidden; margin: 0; border-radius: 2px; transition: flex .9s var(--ease); cursor: pointer; background: var(--surface); }
.acc figure.open { flex: 5; }
.acc img { position: absolute; top: 0; left: 50%; height: 100%; min-width: 100%; width: auto; max-width: none; transform: translateX(-50%); object-fit: cover; filter: brightness(.55) saturate(.8); transition: filter .8s ease; }
.acc figure.open img { filter: brightness(1) saturate(1); }
.acc figcaption { position: absolute; left: 14px; bottom: 14px; z-index: 2; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; writing-mode: vertical-rl; transform: rotate(180deg); transition: opacity .4s; }
.acc figure.open figcaption { writing-mode: horizontal-tb; transform: none; font-family: var(--f-serif); font-style: italic; font-size: 2.6rem; letter-spacing: 0; text-transform: none; left: 20px; bottom: 16px; }
@media (max-width: 700px) { .acc { flex-direction: column; height: 560px; } .acc figcaption { writing-mode: horizontal-tb; transform: none; } .acc figure.open figcaption { font-size: 2rem; } }

/* Book */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-family: var(--f-body); font-size: 13px; letter-spacing: .06em; cursor: pointer; transition: all .3s; }
.chip:hover { color: var(--fg); border-color: var(--fg); }
.chip[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.masonry { columns: 4; column-gap: 12px; }
.tile { break-inside: avoid; margin: 0 0 12px; position: relative; overflow: hidden; border-radius: 2px; cursor: zoom-in; border: 0; padding: 0; width: 100%; display: block; background: var(--surface); color: inherit; }
.tile img { width: 100%; height: auto; filter: contrast(1.04) saturate(.94); transition: transform 1s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: 40px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #f0ebe2; text-align: left; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: all .4s var(--ease); }
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; transform: none; }
.tile[hidden] { display: none; }
@media (max-width: 1000px) { .masonry { columns: 3; } }
@media (max-width: 680px) { .masonry { columns: 2; column-gap: 8px; } .tile { margin-bottom: 8px; } }

/* Références */
.refs { border-top: 1px solid var(--line); }
.ref { display: grid; grid-template-columns: 90px 1.4fr 1fr 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding .5s var(--ease), color .3s; }
.ref:hover { padding-left: 16px; }
.ref:hover b { color: var(--accent); }
.ref b { font-family: var(--f-display); font-stretch: 112%; font-weight: 500; font-size: clamp(1.1rem, 2.2vw, 1.7rem); text-transform: uppercase; transition: color .3s; }
.ref span { color: var(--muted); }
.ref span:first-child { font-family: var(--f-mono); font-size: 12px; }
@media (max-width: 700px) { .ref { grid-template-columns: 1fr 1fr; } .ref b { grid-column: 1 / -1; } }
.peek { position: fixed; left: 0; top: 0; width: 200px; aspect-ratio: 3 / 4; z-index: 150; pointer-events: none; overflow: hidden; border-radius: 2px; opacity: 0; transform: translate(-50%, -50%) scale(.8); transition: opacity .3s, scale .3s; }
.peek img { width: 100%; height: 100%; object-fit: cover; }
.peek.on { opacity: 1; }
@media (hover: none) { .peek { display: none; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); }
.contact > * { min-width: 0; }
.contact h2 { font-size: clamp(2.4rem, 7.4vw, 6.4rem); margin-bottom: 26px; }
.reach { margin-top: 28px; }
.reach div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.reach div:last-child { border-bottom: 1px solid var(--line); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.form label { display: grid; gap: 6px; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; color: var(--fg); font-family: var(--f-body); font-size: 16px; border-radius: 0; width: 100%; transition: border-color .3s; }
.form select option { background: var(--surface); color: var(--fg); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--accent); }
.form textarea { min-height: 96px; resize: vertical; }
.ok { grid-column: 1 / -1; color: var(--accent); font-family: var(--f-mono); font-size: 13px; min-height: 1.2em; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); margin-inline: -20px; padding: 48px 20px calc(28px + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }

/* Curseur suiveur */
.cur { position: fixed; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 1px solid #fff; border-radius: 50%; z-index: 300; pointer-events: none; mix-blend-mode: difference; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s; opacity: 0; }
.cur.on { opacity: 1; }
.cur.big { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: #fff; }
@media (hover: none), (pointer: coarse) { .cur { display: none; } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 250; background: rgba(4,4,4,.97); display: grid; grid-template-rows: 1fr auto; padding: 16px; gap: 12px; animation: fade .4s ease; }
.lb[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; }
.lb-stage img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px; animation: zoom .6s var(--ease); }
@keyframes zoom { from { opacity: 0; transform: scale(.96); } }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--fg); flex-wrap: wrap; }
.lb button.nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.5); color: #fff; font-size: 18px; cursor: pointer; transition: background .3s; }
.lb button.nav:hover { background: var(--accent); color: #000; }
.lb button.nav.p { left: 4px; } .lb button.nav.n { right: 4px; }
.lb .btn { padding: 9px 18px; }

@media (prefers-reduced-motion: reduce) {
  .pre { display: none; } .giant .ch, .spin svg, .marquee div { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; } .pane img { transition: opacity 1s; transform: none; }
}
