:root {
  --bg: #0d0d0c;
  --bg-2: #151513;
  --fg: #ecE8e1;
  --muted: #8f8b83;
  --line: rgba(236, 232, 225, .12);
  --accent: #d2a176;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --row-h: 340px;
  --gap: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 300 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; } /* un élément masqué reste masqué, quelle que soit sa mise en page */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }

h1, h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -.01em; margin: 0; line-height: 1.02; }
h2 { font-size: clamp(40px, 6vw, 76px); }
.eyebrow {
  margin: 0 0 18px;
  font-size: 11px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--gutter);
  transition: background .5s var(--ease), padding .5s var(--ease), backdrop-filter .5s;
}
.nav.solid {
  background: rgba(13, 13, 12, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: .02em; }
.nav-links { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav-links a {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  position: relative; padding: 4px 0; opacity: .85; transition: opacity .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; width: 28px; height: 18px; position: relative; z-index: 2; }
.nav-toggle span { position: absolute; left: 0; right: 0; height: 1px; background: var(--fg); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle span:first-child { top: 5px; }
.nav-toggle span:last-child { top: 13px; }
.nav.open .nav-toggle span:first-child { top: 9px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 9px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  background: center / cover no-repeat;
  opacity: 0; transition: opacity 2s var(--ease);
}
.hero-slide.active { opacity: 1; animation: kenburns 14s linear forwards; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.08); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,.08) 45%, rgba(0,0,0,0) 65%),
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 22%);
}
.hero-text {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(70px, 12vh, 130px);
  max-width: 900px;
}
.hero-text .eyebrow { color: rgba(236,232,225,.78); }
.hero h1 { font-size: clamp(54px, 10vw, 148px); }
.hero-intro {
  font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2vw, 25px);
  margin: 18px 0 0; color: rgba(236,232,225,.86); max-width: 34ch;
}
.hero-text > * { opacity: 0; transform: translateY(22px); animation: rise 1.4s var(--ease) forwards; }
.hero-text > :nth-child(2) { animation-delay: .15s; }
.hero-text > :nth-child(3) { animation-delay: .35s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-dots { position: absolute; right: var(--gutter); bottom: clamp(70px, 12vh, 130px); display: flex; gap: 10px; }
.hero-dots button { width: 26px; height: 18px; position: relative; }
.hero-dots button::before {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 1px;
  background: rgba(236,232,225,.35); transition: background .4s;
}
.hero-dots button.active::before { background: var(--fg); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 1px; height: 46px; background: rgba(236,232,225,.22); overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--fg); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 14vw, 180px) var(--gutter) 0; }
.section-head { margin-bottom: clamp(40px, 5vw, 70px); }
.section-sub { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--muted); margin: 14px 0 0; min-height: 1em; }

/* Séries */
.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(24px, 3vw, 44px); }
.serie { display: block; text-align: left; width: 100%; }
.serie-img { overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.serie-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), opacity 1s; }
.serie:hover .serie-img img { transform: scale(1.045); }
.serie-meta { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.serie-title { font-family: var(--serif); font-size: 32px; font-weight: 400; }
.serie-count { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.serie-desc { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 34px; }
.filters button {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); padding: 6px 0; position: relative; transition: color .3s;
}
.filters button:hover, .filters button.active { color: var(--fg); }
.filters button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fg); }

/* Grille justifiée */
.grid { display: flex; flex-wrap: wrap; gap: var(--gap); }
.grid::after { content: ""; flex-grow: 999999; }
.item {
  --r: 1.5;
  position: relative; overflow: hidden; cursor: zoom-in;
  flex-grow: calc(var(--r) * 100);
  width: calc(var(--r) * var(--row-h));
  background: var(--bg-2);
}
.item::before { content: ""; display: block; padding-bottom: calc(100% / var(--r)); }
.item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.02);
  transition: opacity 1s var(--ease), transform 1.4s var(--ease), filter .6s;
}
.item img.loaded { opacity: 1; transform: none; }
.item:hover img.loaded { transform: scale(1.03); }
.grid.fading { opacity: 0; transition: opacity .35s; }
.grid { transition: opacity .5s; }

/* À propos */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.about-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: 30px; }
.about-body p { margin: 0 0 1.2em; max-width: 52ch; color: rgba(236,232,225,.82); font-size: 17px; }

/* Contact */
.contact { text-align: center; padding-bottom: clamp(100px, 14vw, 180px); }
.contact h2 { margin-bottom: 36px; }
.contact-mail {
  font-family: var(--serif); font-style: italic; font-size: clamp(26px, 4.4vw, 54px);
  display: inline-block; position: relative; word-break: break-word;
}
.contact-mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--accent); transform: scaleX(.3); transition: transform .7s var(--ease);
}
.contact-mail:hover::after { transform: scaleX(1); }
.contact-links { list-style: none; padding: 0; margin: 44px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 40px; }
.contact-links a, .contact-links span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.contact-links a:hover { color: var(--fg); }

.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  padding: 28px var(--gutter); border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); letter-spacing: .04em;
}

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

/* ---------- Visionneuse ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: #080807;
  display: grid; grid-template-columns: 80px minmax(0, 1fr) 80px; grid-template-rows: 64px minmax(0, 1fr) 64px;
  opacity: 0; transition: opacity .45s var(--ease);
}
.lb[hidden] { display: none; }
.lb.open { opacity: 1; }
.lb-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 0 20px 0 var(--gutter); }
.lb-count { font-size: 12px; letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-btn { display: grid; place-items: center; width: 52px; height: 52px; opacity: .6; transition: opacity .3s; }
.lb-btn:hover { opacity: 1; }
.lb-btn svg { width: 26px; height: 26px; fill: none; stroke: var(--fg); stroke-width: 1; }
.lb-prev, .lb-next { align-self: center; justify-self: center; }
.lb-stage { margin: 0; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; touch-action: pan-y; }
.lb-stage img {
  width: auto; height: auto;
  max-width: calc(100vw - 180px);
  max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px);
  object-fit: contain;
  user-select: none; -webkit-user-drag: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.lb-stage img.swap { opacity: 0; transform: scale(.985); }
.lb-caption {
  grid-column: 1 / -1; margin: 0; align-self: center; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 18px; color: rgba(236,232,225,.75);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --row-h: 230px; --gap: 6px; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 480px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; background: var(--bg);
    flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    opacity: 0; pointer-events: none; transition: opacity .45s var(--ease);
  }
  .nav-links a { font-family: var(--serif); font-size: 34px; letter-spacing: 0; text-transform: none; }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .hero-dots { display: none; }
  .lb { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .lb-stage img { max-width: calc(100vw - 20px); }
  .lb-prev, .lb-next { display: none; }
}
@media (max-width: 480px) {
  :root { --row-h: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-text > * { opacity: 1; transform: none; }
}

/* ---------- Pages ---------- */
body { animation: pagein .7s var(--ease) both; }
@keyframes pagein { from { opacity: 0; } }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.page-head { padding: clamp(140px, 18vw, 220px) var(--gutter) 0; }
.page-head h1 { font-size: clamp(54px, 9vw, 128px); }
.page-head .section-sub { max-width: 46ch; }
.page-head .meta { margin-top: 26px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.page-head + .section { padding-top: clamp(50px, 6vw, 80px); }
.serie-num { font-size: 11px; letter-spacing: .24em; color: var(--muted); margin-right: 14px; }
.sentinel { height: 1px; }
.empty { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 22px; }

/* Série précédente / suivante */
.serie-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
  margin: clamp(90px, 12vw, 160px) var(--gutter) 0;
}
.serie-nav a { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); display: block; }
.serie-nav img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .8s var(--ease), transform 1.6s var(--ease); }
.serie-nav a:hover img { opacity: .8; transform: scale(1.04); }
.serie-nav .label { position: absolute; left: 24px; bottom: 20px; right: 24px; }
.serie-nav .next .label { text-align: right; }
.serie-nav .label small { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(236,232,225,.75); margin-bottom: 6px; }
.serie-nav .label span { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 44px); }
.serie-nav a:only-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

.cta { text-align: center; padding: clamp(100px, 14vw, 180px) var(--gutter); }
.cta h2 { margin-bottom: 30px; }
.cta a.link {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  border-bottom: 1px solid var(--accent); padding-bottom: 6px;
}
.contact { padding-top: clamp(150px, 20vw, 240px); min-height: calc(100vh - 80px); }
@media (max-width: 600px) {
  .serie-nav { grid-template-columns: 1fr; }
  .serie-nav a, .serie-nav a:only-child { aspect-ratio: 16 / 8; }
}

/* ---------- Logo ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand { display: block; line-height: 0; }
.brand-logo { height: 58px; width: auto; display: block; overflow: visible; transition: height .5s var(--ease); }
.nav.solid .brand-logo { height: 48px; }
.hero-logo { margin: 0 0 6px; line-height: 0; }
.logo-full { width: clamp(300px, 52vw, 760px); height: auto; overflow: visible; margin-left: -3.5%; }
.hero-text > .hero-logo { opacity: 1; transform: none; animation: none; }
.logo-full .logo-line { transform-origin: left center; transform-box: fill-box; animation: line 1.6s var(--ease) .2s both; }
.logo-full .logo-sig { animation: write 2.8s cubic-bezier(.45,.05,.3,1) .5s both; }
.logo-full .logo-caps { animation: fadeup 1.2s var(--ease) 2.4s both; }
@keyframes line { from { transform: scaleX(0); } }
@keyframes write { from { clip-path: inset(-30% 100% -30% -5%); } to { clip-path: inset(-30% -5% -30% -5%); } }
@keyframes fadeup { from { opacity: 0; } }
@media (max-width: 720px) { .brand-logo, .nav.solid .brand-logo { height: 44px; } }
.hero-text > .hero-intro { animation-delay: 2.5s; }
.hero-shade {
  background:
    linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.38) 38%, rgba(0,0,0,0) 68%),
    linear-gradient(to right, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 55%),
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 22%);
}
.logo-full { filter: drop-shadow(0 2px 14px rgba(0,0,0,.45)); }
.hero-intro { text-shadow: 0 1px 10px rgba(0,0,0,.5); }

/* =====================================================================
   Version 2 : sélection, séries racontées, visionneuse, tirages, contact
   ===================================================================== */
.link { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; border-bottom: 1px solid var(--accent); padding-bottom: 6px; display: inline-block; }
.cta .sep { color: var(--muted); margin: 0 14px; }
.btn-plein { display: inline-block; background: var(--fg); color: var(--bg); font: 500 11px var(--sans); letter-spacing: .22em; text-transform: uppercase; padding: 15px 26px; border: 0; cursor: pointer; transition: background .3s, color .3s; }
.btn-plein:hover { background: var(--accent); }
.footer a { color: var(--muted); border-bottom: 1px solid var(--line); transition: color .3s; }
.footer a:hover { color: var(--fg); }
mark { background: none; color: var(--accent); border-bottom: 1px dashed var(--accent); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ---------- Accueil : sélection ---------- */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.mosaic.six { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(60px, 8.5vw, 118px); }
.mosaic.six .t1 { grid-column: span 3; grid-row: span 4; }
.mosaic.six .t2 { grid-column: span 3; grid-row: span 2; }
.mosaic.six .t3 { grid-column: span 2; grid-row: span 2; }
.mosaic.six .t4 { grid-column: span 1; grid-row: span 2; }
.mosaic.six .t5 { grid-column: span 2; grid-row: span 3; }
.mosaic.six .t6 { grid-column: span 4; grid-row: span 3; }
.tile { position: relative; overflow: hidden; background: var(--bg-2); display: block; min-height: 160px; }
.mosaic.six .tile { min-height: 0; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.tile:hover img { transform: scale(1.035); }
.tile-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0)); display: flex; flex-direction: column; opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }
.tile-cap em { font: 400 italic 20px var(--serif); }
.tile-cap small { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(236,232,225,.75); }
@media (max-width: 700px) {
  .mosaic.six { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .mosaic.six .tile { grid-column: span 1 !important; grid-row: span 2 !important; }
  .mosaic.six .t1, .mosaic.six .t6 { grid-column: span 2 !important; }
  .tile-cap { opacity: 1; transform: none; }
}

/* Dernière série */
.last { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; border-top: 1px solid var(--line); padding-top: clamp(40px, 6vw, 70px); }
.last-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.last-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.last:hover .last-img img { transform: scale(1.03); }
.last-text h2 { margin: 6px 0 4px; }
.last-text .link { margin-top: 26px; }
@media (max-width: 800px) { .last { grid-template-columns: 1fr; } }

/* ---------- Série : ouverture plein écran ---------- */
.serie-hero { position: relative; height: 82vh; height: 82svh; min-height: 460px; overflow: hidden; }
.serie-hero-img { position: absolute; inset: 0; background: center 45% / cover no-repeat; animation: kenburns 18s linear forwards; }
.serie-hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%), linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0) 25%); }
.serie-hero-text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(34px, 7vh, 80px); max-width: 900px; }
.serie-hero-text .eyebrow { color: rgba(236,232,225,.8); }
.serie-hero h1 { font-size: clamp(54px, 9vw, 128px); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 18px 0 0; font: 400 11px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(236,232,225,.85); }
.serie-hero .section-sub { color: rgba(236,232,225,.85); margin-top: 14px; }
.serie-tools { display: flex; justify-content: flex-end; padding: 26px var(--gutter) 0; }
.toggle { display: inline-flex; border: 1px solid var(--line); }
.toggle button { font: 500 10.5px var(--sans); letter-spacing: .22em; text-transform: uppercase; padding: 10px 18px; color: var(--muted); transition: color .3s, background .3s; }
.toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.serie-body { padding-top: 26px; }

/* Mode récit */
.recit { display: grid; gap: clamp(70px, 10vw, 140px); max-width: 1180px; margin: 30px auto 0; }
.chapitre { margin: 0; display: grid; gap: 18px; }
.chapitre a { display: block; cursor: zoom-in; }
.chapitre img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; background: var(--bg-2); }
.chapitre.vertical { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: clamp(24px, 5vw, 70px); }
.chapitre.vertical:nth-child(4n+2) a { order: 2; }
.chapitre figcaption { display: grid; gap: 6px; max-width: 46ch; }
.chapitre figcaption .eyebrow { margin: 0; }
.chapitre figcaption em { font: 300 italic 28px/1.2 var(--serif); }
.chapitre figcaption p { margin: 4px 0 0; color: rgba(236,232,225,.8); font: 300 italic 19px/1.55 var(--serif); }
@media (max-width: 760px) { .chapitre.vertical { grid-template-columns: 1fr; } .chapitre.vertical:nth-child(4n+2) a { order: 0; } }

/* ---------- Visionneuse enrichie ---------- */
.lb { --panel: 0px; grid-template-columns: 80px minmax(0, 1fr) 80px var(--panel); grid-template-rows: 64px minmax(0, 1fr) 112px; transition: opacity .45s var(--ease); }
.lb.info { --panel: 300px; }
.lb-top { grid-column: 1 / 4; padding-right: 12px; }
.lb-tools { display: flex; gap: 4px; }
.lb-info[aria-pressed="true"] { opacity: 1; }
.lb-info[aria-pressed="true"] svg { stroke: var(--accent); }
.lb-stage img { max-width: calc(100vw - 180px - var(--panel)); max-height: calc(100vh - 196px); max-height: calc(100dvh - 196px); }
.lb-bottom { grid-column: 1 / 4; display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: 8px; padding-bottom: 12px; min-width: 0; }
.lb-caption { grid-column: auto; font-size: 17px; }
.lb-strip { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; padding: 4px 12px; scrollbar-width: none; }
.lb-strip::-webkit-scrollbar { display: none; }
.lb-strip button { flex: none; height: 52px; opacity: .4; transition: opacity .3s; outline-offset: 2px; }
.lb-strip button:hover { opacity: .8; }
.lb-strip button.on { opacity: 1; outline: 1px solid var(--fg); }
.lb-strip img { height: 100%; width: auto; display: block; }
.lb-panel { grid-column: 4; grid-row: 1 / -1; overflow: hidden auto; border-left: 1px solid var(--line); padding: 72px 26px 26px; display: none; align-content: start; gap: 18px; }
.lb.info .lb-panel { display: grid; }
.lb-panel .eyebrow { margin: 0; }
.lb-title { font: 300 italic 30px/1.1 var(--serif); margin: 0; }
.lb-exif { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 4px 0 8px; font-size: 13.5px; }
.lb-exif dt { font: 500 9.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.lb-exif dd { margin: 0; }
.lb-cta { display: block; text-align: center; background: var(--fg); color: var(--bg); font: 500 10.5px var(--sans); letter-spacing: .22em; text-transform: uppercase; padding: 14px; }
.lb-cta:hover { background: var(--accent); }
.lb-ghost { display: block; width: 100%; text-align: center; border: 1px solid var(--line); font: 500 10.5px var(--sans); letter-spacing: .22em; text-transform: uppercase; padding: 13px; color: rgba(236,232,225,.8); }
.lb-ghost:hover { border-color: var(--fg); }
.lb-toast { margin: 0; min-height: 1.4em; font-size: 12.5px; color: var(--accent); word-break: break-all; }
@media (max-width: 899px) {
  .lb.info { --panel: 0px; }
  .lb-panel { position: fixed; left: 0; right: 0; bottom: 0; max-height: 58%; border-left: 0; border-top: 1px solid var(--line); background: #0f0f0e; padding: 22px 20px 26px; z-index: 3; }
}
@media (max-width: 720px) {
  .lb-stage img { max-width: calc(100vw - 20px); }
  .lb { grid-template-columns: 0 minmax(0, 1fr) 0 0; grid-template-rows: 64px minmax(0, 1fr) 96px; }
  .lb-strip button { height: 42px; }
}

/* ---------- Tirages ---------- */
.prints { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 44px); }
.print { display: grid; gap: 10px; align-content: start; }
.print .mat { display: block; background: #e9e4da; padding: 9%; }
.print .mat img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.print h2 { font: 400 26px/1.15 var(--serif); margin: 8px 0 0; }
.print-meta { margin: 0; font-size: 13px; color: var(--muted); }
.formats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.formats button { border: 1px solid var(--line); font-size: 12px; padding: 6px 12px; color: rgba(236,232,225,.8); font-variant-numeric: tabular-nums; }
.formats button[aria-pressed="true"] { border-color: var(--fg); color: var(--fg); }
.print-price { margin: 2px 0 6px; font: 400 italic 20px var(--serif); }
.print .btn-plein { justify-self: start; }
.tirages-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(70px, 9vw, 120px); }
.tirages-info > div { background: var(--bg); padding: 28px; }
.tirages-info p:last-child { margin: 0; color: rgba(236,232,225,.8); font-size: 15px; }
@media (max-width: 800px) { .tirages-info { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 110px); padding-top: clamp(140px, 18vw, 220px); padding-bottom: clamp(90px, 12vw, 160px); align-items: start; }
.contact-intro h1 { font-size: clamp(44px, 6.5vw, 88px); margin-bottom: 20px; }
.contact-intro .contact-mail { font-size: clamp(24px, 3vw, 36px); margin-top: 34px; }
.contact-intro .contact-links { justify-content: flex-start; margin-top: 26px; }
.contact-form { display: grid; gap: 22px; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 12px; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; border: 1px solid var(--line); font-size: 13px; padding: 8px 14px; transition: border-color .3s, color .3s; }
.chips input:checked + span { border-color: var(--accent); color: var(--accent); }
.chips input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 3px; }
.field { display: grid; gap: 6px; }
.field[hidden] { display: none; }
.field span { font: 500 10px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { font: 300 16px/1.5 var(--sans); color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0 10px; resize: vertical; border-radius: 0; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: #5d5a54; }
.form-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.form-note a { border-bottom: 1px solid var(--line); }
.contact-form .btn-plein { justify-self: start; }
.form-status { margin: 0; min-height: 1.5em; font-size: 14px; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #e39a86; }
@media (max-width: 860px) { .contact-page { grid-template-columns: 1fr; } }

/* ---------- Mentions légales ---------- */
.legal { max-width: 760px; padding-top: clamp(140px, 18vw, 220px); padding-bottom: clamp(90px, 12vw, 160px); margin: 0 auto; }
.legal h1 { font-size: clamp(44px, 6vw, 76px); margin-bottom: 30px; }
.legal h2 { font-size: 28px; margin: 44px 0 12px; }
.legal p { color: rgba(236,232,225,.82); }
.legal a { border-bottom: 1px solid var(--accent); }
/* placement explicite : le panneau peut se fermer sans décaler la photo */
.lb-top { grid-row: 1; }
.lb-prev { grid-column: 1; grid-row: 2; }
.lb-stage { grid-column: 2; grid-row: 2; }
.lb-next { grid-column: 3; grid-row: 2; }
.lb-bottom { grid-row: 3; }

/* ---------- Menu simplifié (réglage menuSimple dans site.js) ---------- */
.nav:not(.ready) .nav-links { visibility: hidden; } /* évite d'afficher l'ancien menu une fraction de seconde */
.nav.simple .nav-toggle { display: none; }
@media (max-width: 720px) {
  .nav.simple .nav-links { position: static; inset: auto; background: none; flex-direction: row; opacity: 1; pointer-events: auto; }
  .nav.simple .nav-links a { font: 400 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; }
}

/* ---------- Partage ---------- */
.serie-tools { justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.share-label { font: 500 10px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share a, .share button { font: 400 12px var(--sans); letter-spacing: .08em; color: rgba(236,232,225,.8); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.share a:hover, .share button:hover { color: var(--fg); border-bottom-color: var(--accent); }
.share-col { padding-top: 6px; border-top: 1px solid var(--line); }
.share-col .share-label { flex-basis: 100%; padding-top: 12px; }

/* ---------- Récit : une photo par écran, défilement cran par cran ---------- */
html.recit-snap { scroll-snap-type: y mandatory; }
html.recit-snap .serie-hero { scroll-snap-align: start; }
html.recit-snap .serie-nav { scroll-snap-align: start; }
html.recit-snap .footer { scroll-snap-align: end; }
html.recit-snap .serie-body { padding-left: 0; padding-right: 0; }
html.recit-snap .recit { max-width: none; margin: 0; gap: 0; }
html.recit-snap .chapitre {
  scroll-snap-align: start; scroll-snap-stop: always;
  height: 100vh; height: 100svh;
  padding: 84px var(--gutter) 26px;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  justify-items: center; align-items: center; gap: 16px;
}
html.recit-snap .chapitre a { order: 0 !important; height: 100%; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
html.recit-snap .chapitre img { width: auto; height: auto; max-width: 100%; max-height: 100%; background: none; }
html.recit-snap .chapitre figcaption { max-width: 62ch; text-align: center; justify-items: center; gap: 2px; }
html.recit-snap .chapitre figcaption em { font-size: 24px; }
html.recit-snap .chapitre figcaption p { font-size: 17px; }

/* Indicateur de position */
.recit-progress {
  position: fixed; right: max(14px, calc(var(--gutter) - 24px)); top: 50%; z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; transform: translate(8px, -50%); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.recit-progress.on { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.rp-count { font: 500 10.5px var(--sans); letter-spacing: .16em; color: var(--fg); font-variant-numeric: tabular-nums; writing-mode: vertical-rl; transform: rotate(180deg); }
.rp-track { position: relative; width: 1px; height: 110px; background: var(--line); }
.rp-track i { position: absolute; left: 0; top: 0; width: 1px; background: var(--fg); transition: height .5s var(--ease); }
.rp-btn { width: 30px; height: 30px; display: grid; place-items: center; opacity: .75; transition: opacity .3s; }
.rp-btn:hover { opacity: 1; }
.rp-btn:disabled { opacity: .2; cursor: default; }
.rp-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--fg); stroke-width: 1.2; }
@media (max-width: 720px) {
  html.recit-snap .chapitre { padding: 74px 14px 20px; }
  .recit-progress { right: 6px; gap: 6px; }
  .rp-track { height: 70px; }
  .rp-btn { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) { html.recit-snap { scroll-snap-type: y proximity; } }
@media (min-width: 721px) {
  html.recit-snap .chapitre { padding-left: max(var(--gutter), 72px); padding-right: max(var(--gutter), 72px); }
}
@media (max-width: 720px) {
  html.recit-snap .chapitre { padding-left: 34px; padding-right: 34px; }
}

/* Récit : la photo se cale net, puis apparaît en fondu sans bouger */
html.recit-snap { scroll-behavior: auto; }
html.recit-snap .chapitre.reveal { transform: none; transition: opacity .8s var(--ease); }

/* ---------- Zoom dans la visionneuse ---------- */
.lb-stage { overflow: hidden; touch-action: none; position: relative; }
.lb-stage img { cursor: zoom-in; will-change: transform; }
.lb.zoomed .lb-stage img { cursor: grab; }
.lb.zoomed .lb-stage img:active { cursor: grabbing; }
.lb.zoomed .lb-prev, .lb.zoomed .lb-next { opacity: .25; }
.lb-zoom[aria-pressed="true"] svg { stroke: var(--accent); }
.lb-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); margin: 0; font: 400 11px var(--sans); letter-spacing: .12em; color: rgba(236,232,225,.7); background: rgba(8,8,7,.6); padding: 6px 12px; pointer-events: none; opacity: 0; transition: opacity .6s; white-space: nowrap; }
.lb-hint.on { opacity: 1; }
