/* ==========================================================
   Kev__Photos — accueil 2026
   ========================================================== */

:root {
  --bg: #0d0d0f;
  --bg-2: #141417;
  --ink: #f4f1ea;
  --ink-dim: #a9a59c;
  --line: rgba(255, 255, 255, .12);
  --accent: #ffd000;
  --radius: 18px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', 'SR', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 1px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--accent); color: #111; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 300;
  background: var(--accent); color: #111; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s;
}
.skip:focus { top: 1rem; }

.wrap { width: min(1280px, 100% - var(--gutter) * 2); margin-inline: auto; }

.section { padding-block: clamp(5rem, 11vw, 9rem); }

.eyebrow {
  margin: 0 0 1rem;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}

.title {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.05; letter-spacing: -.02em;
}
.title em { font-style: italic; color: var(--accent); }

.section__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 250;
  background: var(--accent);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--rd, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  transition: background .4s, backdrop-filter .4s, transform .5s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: rgba(13, 13, 15, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
body.menu-open .header { z-index: 220; transform: none; background: transparent; backdrop-filter: none; border-color: transparent; }

.header__logo img { height: 38px; width: auto; }

.header__nav { display: flex; gap: .35rem; }
.header__nav a {
  position: relative; padding: .5rem .9rem; border-radius: 999px;
  font-size: .92rem; color: var(--ink-dim);
  transition: color .3s, background .3s;
}
.header__nav a:hover { color: var(--ink); }
.header__nav a.is-active { color: #111; background: var(--ink); }

/* burger */
.burger {
  display: none; position: relative; z-index: 220;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(13, 13, 15, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; }
body.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* menu plein écran */
.menu {
  position: fixed; inset: 0; z-index: 210;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 1rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--bg);
  clip-path: circle(0 at calc(100% - 2.6rem) 2.6rem);
  visibility: hidden;
  transition: clip-path .75s var(--ease), visibility 0s .75s;
}
body.menu-open .menu {
  clip-path: circle(150% at calc(100% - 2.6rem) 2.6rem);
  visibility: visible; transition: clip-path .75s var(--ease), visibility 0s;
}
.menu__nav { display: flex; flex-direction: column; gap: .2rem; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1.1;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s, transform .6s var(--ease), color .3s;
}
.menu__nav a small { font-family: var(--sans); font-size: .75rem; color: var(--accent); letter-spacing: .15em; }
.menu__nav a.is-active { color: var(--accent); }
body.menu-open .menu__nav a { opacity: 1; transform: none; }
body.menu-open .menu__nav a:nth-child(1) { transition-delay: .25s; }
body.menu-open .menu__nav a:nth-child(2) { transition-delay: .32s; }
body.menu-open .menu__nav a:nth-child(3) { transition-delay: .39s; }
body.menu-open .menu__nav a:nth-child(4) { transition-delay: .46s; }
.menu__foot {
  display: flex; gap: 1rem; margin-top: 2.5rem;
  opacity: 0; transition: opacity .5s .5s;
}
body.menu-open .menu__foot { opacity: 1; }
.menu__foot a {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; font-size: 1.4rem;
  transition: background .3s, color .3s;
}
.menu__foot a:active, .menu__foot a:hover { background: var(--accent); color: #111; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__slides, .hero__slide, .hero__shade { position: absolute; inset: 0; }
.hero__slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.12);
  transition: opacity 1.6s ease;
}
.hero__slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__shade {
  background:
    linear-gradient(180deg, rgba(13,13,15,.55) 0%, rgba(13,13,15,0) 30%, rgba(13,13,15,.15) 55%, var(--bg) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(13,13,15,.55), transparent 60%);
}
.hero__content {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(5.5rem, 14vh, 9rem);
  max-width: 900px;
}
.hero__title {
  margin: 0 0 1rem;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.4rem, 13vw, 9.5rem);
  line-height: .92; letter-spacing: -.04em;
}
.hero__title span { color: var(--accent); font-style: italic; }
.hero__lead { margin: 0 0 2rem; max-width: 34rem; font-size: clamp(1rem, 2.2vw, 1.2rem); color: #d9d5cb; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__in { opacity: 0; transform: translateY(28px); animation: heroIn 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.6rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn--solid { background: var(--accent); color: #111; }
.btn--solid:hover { background: #fff; }
.btn--ghost { border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: #fff; }

.hero__dots { position: absolute; right: var(--gutter); bottom: clamp(5.5rem, 14vh, 9rem); display: flex; flex-direction: column; gap: .6rem; }
.hero__dots i { width: 3px; height: 20px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; position: relative; }
.hero__dots i.is-active::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform-origin: 50% 0; animation: dot var(--hero-step, 5s) linear forwards; }
@keyframes dot { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid rgba(255,255,255,.6); border-radius: 20px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 3px; background: #fff; animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- bio ---------- */
.bio { background: var(--bg-2); }
.bio__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.bio__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 240px 240px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
}
.bio__frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .8s ease, transform 1.2s var(--ease); }
.bio__frame img.is-swapping { opacity: 0; }
.bio__frame:hover img { transform: scale(1.04); }
.bio blockquote { margin: 2rem 0 0; padding-left: 1.4rem; border-left: 2px solid var(--accent); }
.bio blockquote p { margin: 0 0 1.4rem; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: #d9d5cb; }
.bio blockquote footer { font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.bio blockquote footer span { display: block; font-family: var(--sans); font-style: normal; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-dim); margin-top: .2rem; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 1.4rem 0; background: var(--bg); }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__track span {
  padding-inline: 2rem; white-space: nowrap;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 3rem); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.4);
}
.ticker__track span::after { content: '\2726'; margin-left: 4rem; color: var(--accent); -webkit-text-stroke: 0; font-size: .6em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- categories (bento) ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(200px, 22vw, 300px); gap: 1rem; }
.cat { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); isolation: isolate; }
.cat--1 { grid-column: span 2; grid-row: span 2; }
.cat--4 { grid-column: span 2; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; z-index: -2; }
.cat::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75)); transition: opacity .5s; }
.cat:hover img { transform: scale(1.08); }
.cat__num { position: absolute; top: 1.1rem; left: 1.2rem; font-size: .75rem; letter-spacing: .18em; color: rgba(255,255,255,.8); }
.cat__name { position: absolute; left: 1.2rem; bottom: 1.1rem; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1; transition: transform .6s var(--ease); }
.cat__arrow {
  position: absolute; right: 1rem; bottom: 1rem; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent); color: #111; font-size: 1.2rem;
  transform: translate(10px, 10px) scale(.6); opacity: 0; transition: all .5s var(--ease);
}
.cat:hover .cat__arrow, .cat:focus-visible .cat__arrow { transform: none; opacity: 1; }
.cat:hover .cat__name { transform: translateY(-4px); }

/* ---------- models (rail) ---------- */
.models { background: var(--bg-2); padding-bottom: clamp(5rem, 10vw, 8rem); overflow: hidden; }
.arrows { display: flex; gap: .6rem; }
.arrows button {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  font-size: 1.6rem; line-height: 1; display: grid; place-items: center; padding-bottom: 3px;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.arrows button:hover { background: var(--accent); border-color: var(--accent); color: #111; }
.arrows button:active { transform: scale(.92); }
.arrows button:disabled { opacity: .3; pointer-events: none; }

.rail {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem var(--gutter) 1.5rem; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rail.is-dragging a { pointer-events: none; }
.model { flex: 0 0 clamp(220px, 24vw, 320px); scroll-snap-align: start; }
.model a { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; }
.model img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; transition: transform 1s var(--ease); }
.model a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.8)); }
.model:hover img { transform: scale(1.07); }
.model__name {
  position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: .9rem;
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.1;
  transition: color .3s, transform .5s var(--ease);
}
.model:hover .model__name { color: var(--accent); transform: translateY(-4px); }

/* ---------- footer ---------- */
.footer { padding: clamp(3rem, 7vw, 5rem) 0 2rem; text-align: center; border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 2rem; justify-items: center; }
.footer__logo img { height: 84px; width: auto; transition: transform 1s var(--ease); }
.footer__logo:hover img { transform: rotate(360deg); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem; }
.footer__links a { color: var(--ink-dim); font-size: .95rem; transition: color .3s; }
.footer__links a:hover { color: var(--accent); }
.footer__social { display: flex; gap: .9rem; }
.footer__social a {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); font-size: 1.4rem; transition: background .3s, color .3s, transform .4s var(--ease);
}
.footer__social a:hover { background: var(--accent); color: #111; transform: translateY(-4px); }
.footer__copy { margin: 2.5rem 0 0; font-size: .82rem; color: var(--ink-dim); padding-inline: 1rem; }

/* ---------- back to top ---------- */
.totop {
  position: fixed; right: max(1.2rem, env(safe-area-inset-right)); bottom: max(1.2rem, env(safe-area-inset-bottom)); z-index: 150;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.7rem; display: grid; place-items: center; padding-bottom: 3px;
  background: rgba(13,13,15,.7); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease), background .3s, color .3s;
}
.totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--accent); color: #111; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header__nav { display: none; }
  .burger { display: block; }
  .header__logo img { height: 34px; }

  .bio__grid { grid-template-columns: 1fr; }
  .bio__photo { max-width: 360px; margin-inline: auto; }

  .cats { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; }
  .cat--1 { grid-column: span 2; grid-row: span 2; }
  .cat--4 { grid-column: span 2; grid-row: span 1; }
  .cat__arrow { opacity: 1; transform: none; width: 38px; height: 38px; }

  .hero__dots {
    right: var(--gutter); bottom: max(1.8rem, env(safe-area-inset-bottom));
    flex-direction: row; gap: .4rem;
  }
  .hero__dots i { width: clamp(12px, 4vw, 18px); height: 3px; }
  .hero__dots i.is-active::after {
    transform-origin: 0 50%;
    animation-name: dot-horizontal;
  }
  @keyframes dot-horizontal { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .model { flex-basis: 62vw; }
}

@media (max-width: 520px) {
  .section__head--row { align-items: flex-end; }
  .arrows button { width: 46px; height: 46px; }
}

@media (hover: none) {
  .cat:hover img, .model:hover img { transform: none; }
}

/* ---------- accessibilité mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__in { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* ==========================================================
   Kev__Photos — pages catégories / modèles 2026
   (à charger après home.css)
   ========================================================== */

.menu__nav a:nth-child(5) { transition-delay: .53s; }
body.menu-open .menu__nav a:nth-child(5) { transition-delay: .53s; }

/* ---------- header : toujours lisible sur ces pages ---------- */
.header {
  background: rgba(13, 13, 15, .86);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom-color: var(--line);
}
.header__nav a { color: #e6e2d8; }
.header__nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.header__nav a.is-active,
.header__nav a.is-active:hover { color: #111; background: var(--ink); }

/* ---------- bandeau ---------- */
.phero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 58vh; min-height: clamp(380px, 58svh, 640px);
  /* le contenu ne passe jamais sous le header */
  padding-top: calc(var(--header-h) + 3rem);
  overflow: hidden;
}
.phero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: var(--pos, center);
  transform: scale(1.1);
  animation: kenburns 10s ease-out forwards;
}
.phero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,13,15,.55) 0%, rgba(13,13,15,.1) 40%, rgba(13,13,15,.35) 70%, var(--bg) 100%);
}
.phero__content { position: relative; width: min(1280px, 100% - var(--gutter) * 2); padding-bottom: clamp(1.8rem, 5vh, 3.5rem); }
.crumb {
  margin: 0 0 .8rem; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: #cfcbc1;
}
.crumb a { color: var(--accent); transition: color .3s; }
.crumb a:hover { color: #fff; }
.crumb i { font-style: normal; margin: 0 .6rem; opacity: .5; }
.phero__title {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.8rem, 9vw, 6.5rem); line-height: 1; letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.phero__meta { margin: .9rem 0 0; color: #d9d5cb; font-size: 1rem; }

/* ---------- galerie : rangées justifiées (aucune photo recadrée de force) ---------- */
.gallery-wrap { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem); }

.gallery {
  --row-h: 300px;
  --gap: .7rem;
  display: flex; flex-wrap: wrap; gap: var(--gap);
}
/* la dernière rangée garde la taille naturelle des photos au lieu de s'étirer */
.gallery::after { content: ''; flex-grow: 1000000; }

.shot {
  --ar: 1.5;
  position: relative; margin: 0; overflow: hidden;
  flex: calc(var(--ar) * 100) 1 calc(var(--ar) * var(--row-h));
  max-width: calc(var(--ar) * var(--row-h) * 2.2);
  aspect-ratio: var(--ar);
  border-radius: 6px;
  background: linear-gradient(135deg, #17171b, #1f1f25);
}
.shot__open { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; padding: 0; cursor: pointer; }
.shot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), opacity .9s ease, filter .9s ease;
  -webkit-user-drag: none; user-select: none;
}
/* apparition douce : flou -> net quand la photo est chargée */
.js .shot img { opacity: 0; filter: blur(14px); transform: scale(1.05); }
.js .shot img.is-loaded { opacity: 1; filter: none; transform: none; }
.shot:hover img.is-loaded { transform: scale(1.045); }

/* fin liseré intérieur pour détacher la photo du fond */
.shot::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72));
  opacity: 0; transform: translateY(10px);
  transition: transform .55s var(--ease), opacity .4s;
}
.shot { container-type: inline-size; }
.shot figcaption a {
  display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0;
  padding: 2.4rem clamp(.6rem, 5cqw, 1rem) .85rem;
}
.shot figcaption span {
  max-width: 100%; font-family: var(--serif); font-size: clamp(.95rem, 7.5cqw, 1.2rem); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* même légende sur toutes les tuiles : le texte s'adapte à la largeur au lieu de disparaître */
.shot figcaption small {
  font-size: clamp(.56rem, 4.3cqw, .68rem); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap;
}
.shot:hover figcaption, .shot:has(:focus-visible) figcaption { opacity: 1; transform: none; }

/* ---------- précédent / suivant ---------- */
.pagenav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line);
}
.pagenav a { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 0; transition: color .3s, transform .5s var(--ease); }
.pagenav small { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); }
.pagenav span { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: 1; }
.pagenav__next { text-align: right; align-items: flex-end; }
.pagenav a:hover { color: var(--accent); }
.pagenav__prev:hover { transform: translateX(-6px); }
.pagenav__next:hover { transform: translateX(6px); }
.pagenav--single { grid-template-columns: 1fr; }

/* ---------- visionneuse ---------- */
.lb {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  background: rgba(8, 8, 10, .95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility 0s .4s;
  touch-action: pan-y pinch-zoom;
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .4s, visibility 0s; }
.lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: 100%; }
.lb__fig img {
  max-width: min(94vw, 1500px); max-height: calc(100vh - 8rem); max-height: calc(100svh - 8rem);
  width: auto; height: auto; object-fit: contain; border-radius: 6px;
  transform: scale(.96); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s;
  -webkit-user-drag: none; user-select: none;
}
.lb.is-open .lb__fig img.is-ready { transform: none; opacity: 1; }
.lb__fig figcaption { display: flex; align-items: center; gap: 1.2rem; font-size: .9rem; color: var(--ink-dim); min-height: 1.6rem; }
.lb__fig figcaption a { color: var(--ink); border-bottom: 1px solid var(--accent); transition: color .3s; }
.lb__fig figcaption a:hover { color: var(--accent); }
.lb__fig figcaption a[hidden] { display: none; }
.lb__close, .lb__nav {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(20, 20, 23, .6); font-size: 1.8rem; line-height: 1; padding-bottom: 3px;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.lb__close:hover, .lb__nav:hover { background: var(--accent); color: #111; border-color: var(--accent); }
.lb__close { top: max(1rem, env(safe-area-inset-top)); right: max(1rem, env(safe-area-inset-right)); font-size: 2rem; }
.lb__nav { top: 50%; margin-top: -26px; }
.lb__nav--prev { left: max(1rem, env(safe-area-inset-left)); }
.lb__nav--next { right: max(1rem, env(safe-area-inset-right)); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .gallery { --row-h: 240px; }
}

@media (max-width: 900px) {
  .phero { padding-top: calc(var(--header-h) + 2rem); min-height: 50vh; min-height: clamp(340px, 50svh, 520px); }
}

@media (max-width: 700px) {
  .gallery { --row-h: 190px; --gap: .5rem; }
  .shot { border-radius: 4px; }
  .pagenav { gap: .5rem; }

  /* sur mobile, le nom du modèle reste visible, discret */
  .shot figcaption { opacity: 1; transform: none; }
  .shot figcaption a { padding: 1.6rem .6rem .5rem; gap: .15rem; }

  .lb__nav { top: auto; bottom: max(1rem, env(safe-area-inset-bottom)); margin-top: 0; }
  .lb__fig img { max-height: calc(100svh - 11rem); }
}

@media (hover: none) {
  .shot:hover img.is-loaded { transform: none; }
  .shot figcaption { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .phero__bg { animation: none; transform: none; }
  .lb__fig img { transition: none; }
  .js .shot img { filter: none; transform: none; }
}

/* ---------- mentions legales ---------- */
.legal-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.legal-section { min-width: 0; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.legal-section:last-child { grid-column: 1 / -1; }
.legal-section h2 {
  margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400; line-height: 1.1;
}
.legal-section p { margin: 0 0 1rem; color: #d9d5cb; }
.legal-section ul { margin: 1rem 0 0; padding-left: 1.25rem; list-style: disc; color: #d9d5cb; }
.legal-section li + li { margin-top: .75rem; }
.legal-section a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.legal-section a:hover { color: var(--ink); }

@media (max-width: 700px) {
  .legal-content { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .legal-section:last-child { grid-column: auto; }
}
