:root {
  --paper: #f4efe6;
  --paper-2: #ece5d8;
  --ink: #2b2723;
  --ink-soft: #6b625a;
  --line: #d9d0c1;
  --red: #d2553b;
  --blue: #3f6fb5;
  --green: #5a9a4a;
  --yellow: #e9b53c;
  --gold: #b48a3c;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: italic; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em, .brand em { font-style: italic; color: var(--red); }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }

.eyebrow {
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 36ch; }

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.25s, padding 0.25s, box-shadow 0.25s;
}
/* Le flou est porté par un pseudo-élément pour ne pas créer de bloc conteneur
   qui piégerait le menu mobile plein écran (position: fixed). */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity 0.25s;
}
.site-header.scrolled { padding-block: 12px; }
.site-header.scrolled::before { opacity: 1; }
.brand { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; }
.nav { display: flex; gap: 2rem; }
.nav a { text-decoration: none; font-size: 0.95rem; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(110px, 16vh, 160px); }
.hero-text { position: relative; }
.hero h1 { font-size: clamp(3.6rem, min(12vw, 16vh), 8.5rem); margin-bottom: 1.5rem; }
.hero .lede { margin: 0 0 2rem; }
.hero-wall { margin: clamp(48px, 7vw, 80px) 0 0; }
.hero-wall img {
  width: 100%;
  aspect-ratio: 4700 / 1780;
  object-fit: cover;
}
.hero-wall figcaption, .small {
  font-size: 0.8rem; color: var(--ink-soft);
}
.hero-wall figcaption { padding: 12px var(--gutter) 0; text-align: right; }
.swipe-hint { display: none; }

/* ---------- Propos ---------- */
.propos {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem 5rem;
  padding-block: clamp(80px, 12vw, 150px);
}
.propos-head { position: sticky; top: 100px; align-self: start; }
.scribble { width: 180px; margin-top: 14px; }
.scribble path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.propos-body p { margin: 0 0 1.2rem; max-width: 62ch; }
.propos-body .big {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; font-weight: 300;
  margin-bottom: 2rem;
}
.facts {
  grid-column: 1 / -1;
  list-style: none; margin: 1rem 0 0; padding: 2rem 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.facts li { display: flex; flex-direction: column; }
.facts strong { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; }
.facts li:nth-child(1) strong { color: var(--blue); }
.facts li:nth-child(2) strong { color: var(--green); }
.facts li:nth-child(3) strong { color: var(--red); }
.facts span { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Œuvres ---------- */
.oeuvres { background: var(--paper-2); padding-block: clamp(80px, 12vw, 140px); }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.hint { color: var(--ink-soft); margin: 0.8rem 0 0; font-size: 0.95rem; }

.gallery {
  list-style: none; margin: 0; padding: 0;
  columns: 3 300px; column-gap: clamp(24px, 4vw, 48px);
}
.work { break-inside: avoid; margin-bottom: clamp(32px, 5vw, 56px); }
.work button {
  all: unset; display: block; width: 100%; cursor: zoom-in;
  border-radius: 2px;
  box-shadow: 0 18px 30px -18px rgba(40, 30, 20, 0.45), 0 2px 6px rgba(40, 30, 20, 0.12);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s;
}
.work button:hover, .work button:focus-visible {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 28px 40px -20px rgba(40, 30, 20, 0.5), 0 2px 6px rgba(40, 30, 20, 0.12);
}
.work button:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.cartel { padding: 16px 2px 0; }
.cartel .num { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--gold); font-weight: 700; }
.cartel h3 { font-size: 1.45rem; margin: 4px 0 2px; }
.cartel p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Duo ---------- */
.duo { padding-block: clamp(80px, 12vw, 150px); }
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.artist {
  background: #fbf8f2; border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(28px, 4vw, 48px);
}
.swatch {
  display: block; width: 56px; height: 14px; border-radius: 8px 3px 9px 4px;
  background: var(--c); margin-bottom: 1.5rem; transform: rotate(-3deg);
}
.artist h3 { font-size: clamp(2rem, 4vw, 2.8rem); font-style: italic; }
.role { margin: 0.5rem 0 1.2rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); }
.artist p:last-child { margin: 0; }

/* ---------- Infos ---------- */
.infos { background: var(--ink); color: var(--paper); padding-block: clamp(80px, 11vw, 130px); }
.infos .eyebrow, .infos .lede { color: #b9b0a4; }
.infos h2 { margin-bottom: 1.2rem; }
.infos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 5rem; align-items: start; }
.info-list { margin: 0; }
.info-list div {
  display: grid; grid-template-columns: 120px 1fr; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid #4a443e;
}
.info-list div:first-child { border-top: 1px solid #4a443e; }
.info-list dt { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: #b9b0a4; padding-top: 0.25rem; }
.info-list dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 300; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding-block: 32px; font-size: 0.95rem;
}
.site-footer p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(24, 21, 18, 0.96); color: var(--paper);
}
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; animation: fade 0.25s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 56px 0 24px; min-width: 0; }
.lightbox img { max-height: calc(100dvh - 170px); width: auto; max-width: 100%; object-fit: contain; }
.lightbox figcaption { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.lb-num { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--gold); font-weight: 700; }
#lb-title { font-family: var(--serif); font-weight: 300; font-size: 1.6rem; }
#lb-meta { font-size: 0.85rem; color: #b9b0a4; }
.lb-close, .lb-nav {
  background: none; border: 0; color: var(--paper); cursor: pointer; font-family: var(--serif);
  opacity: 0.7; transition: opacity 0.2s;
}
.lb-close:hover, .lb-nav:hover, .lb-close:focus-visible, .lb-nav:focus-visible { opacity: 1; }
.lb-close { position: absolute; top: 10px; right: 16px; font-size: 2.6rem; line-height: 1; padding: 4px 10px; z-index: 2; }
.lb-nav { font-size: 3.4rem; height: 100%; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Reveal ---------- */
.work, .artist, .facts li { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.work.in, .artist.in, .facts li.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; z-index: 2;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform 0.25s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center; gap: 1.6rem;
    background: var(--paper); opacity: 0; pointer-events: none; transition: opacity 0.25s;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a { font-family: var(--serif); font-size: 2rem; font-weight: 300; }

  .hero-wall .pan { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hero-wall .pan::-webkit-scrollbar { display: none; }
  .hero-wall img { height: min(56vh, 420px); width: auto; max-width: none; aspect-ratio: 4700 / 1780; }
  .hero-wall figcaption { text-align: left; }
  .swipe-hint { display: inline; }
  .propos, .infos-grid, .duo-grid { grid-template-columns: 1fr; }
  .propos-head { position: static; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .facts span { font-size: 0.8rem; }
  .info-list div { grid-template-columns: 1fr; gap: 0.2rem; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-nav { display: none; }
  .lightbox figure { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .work, .artist, .facts li { opacity: 1; transform: none; }
}
