/* Lara — Entre rêve et couleur
   Un atelier lumineux en bord de mer : l'interface reste pâle et en retrait, les tableaux dominent.
   Mouvement unique : « la brume qui se lève » (flou → net). Tout est coupé sous prefers-reduced-motion.
   Mobile d'abord. Aucune bibliothèque. */

/* ---------- Polices (auto-hébergées) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
  /* palette */
  --ivory: #fbf6ec;          /* ivoire de plage */
  --ivory-rose: #fcf1ec;     /* intro */
  --ivory-cool: #fbf7ef;     /* galerie */
  --sand: #f1e6d1;           /* à propos */
  --sea-pale: #e4f3ef;       /* contact */
  --rose: #f6d9d6;           /* rose poudré */
  --sea: #9ad8d0;            /* verre de mer */
  --sea-soft: #d2ece6;
  --teal: #17706e;           /* turquoise profond : liens, boutons */
  --teal-deep: #11595a;
  --ink: #2b2320;            /* encre chaude */
  --ink-2: #5d5149;
  --line: rgba(43, 35, 32, 0.14);
  --canvas: #ece3d3;         /* fond d'une toile avant chargement */

  /* type */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --soft: "SOFT" 100, "WONK" 1;

  /* espace */
  --gutter: clamp(1rem, 4vw, 4rem);
  --max: 82rem;
  --max-wide: 100rem;
  --header-h: 4rem;
  --section: clamp(4.5rem, 11vw, 9.5rem);

  /* matière */
  --shadow-1: 0 1px 2px rgba(43, 35, 32, 0.08), 0 10px 24px -14px rgba(43, 35, 32, 0.32);
  --shadow-2: 0 2px 4px rgba(43, 35, 32, 0.08), 0 22px 42px -18px rgba(43, 35, 32, 0.38);
  --shadow-3: 0 2px 6px rgba(43, 35, 32, 0.10), 0 34px 70px -26px rgba(43, 35, 32, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  --tone: var(--ivory);
}
@media (min-width: 960px) {
  :root { --header-h: 4.75rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  scrollbar-gutter: stable;
  /* pas de fond ici : celui du body s'étend à toute la page et passe sous les lavis .atmos */
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--tone);
  transition: background-color 1.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body[data-tone="hero"]    { --tone: var(--ivory); }
body[data-tone="intro"]   { --tone: var(--ivory-rose); }
body[data-tone="gallery"] { --tone: var(--ivory-cool); }
body[data-tone="about"]   { --tone: var(--sand); }
body[data-tone="contact"] { --tone: var(--sea-pale); }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--teal-deep); }
button { font: inherit; color: inherit; }
::selection { background: var(--rose); color: var(--ink); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  font-weight: 500;
  text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--ivory); }

/* Titres de section : Fraunces doux, jamais en capitales */
.gallery-head h2,
.about-text h2,
.contact-inner h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: var(--soft);
  font-size: clamp(2.35rem, 1.5rem + 3vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0 1.45rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
.btn svg { flex: none; }
.btn-primary { background: var(--teal); color: var(--ivory); }
.btn-primary:hover { background: var(--teal-deep); color: var(--ivory); }
.btn-ghost { border-color: var(--teal); color: var(--teal); background: rgba(251, 246, 236, 0.55); }
.btn-ghost:hover { background: var(--sea-soft); color: var(--teal-deep); }
.btn:active { transform: translateY(1px); }

/* ---------- Atmosphère : deux lavis qui dérivent très lentement ---------- */
.atmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 1.4s ease;
}
.atmos i {
  position: absolute;
  display: block;
  width: 95vmax;
  height: 95vmax;
  border-radius: 50%;
  will-change: transform;
}
.atmos-a {
  top: -48vmax;
  right: -42vmax;
  background: radial-gradient(closest-side, rgba(154, 216, 208, 0.5), rgba(154, 216, 208, 0.18) 55%, rgba(154, 216, 208, 0));
}
.atmos-b {
  bottom: -52vmax;
  left: -46vmax;
  background: radial-gradient(closest-side, rgba(246, 217, 214, 0.85), rgba(246, 217, 214, 0.3) 55%, rgba(246, 217, 214, 0));
}
body[data-tone="gallery"] .atmos { opacity: 0.4; }
body[data-tone="about"] .atmos { opacity: 0.55; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(var(--gutter), calc((100% - var(--max-wide)) / 2 + var(--gutter))) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: transparent;
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}
.site-header.is-scrolled {
  background-color: rgba(251, 246, 236, 0.86);
  background-color: color-mix(in srgb, var(--tone) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--serif);
  font-weight: 350;
  font-variation-settings: var(--soft);
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.5s ease;
}
.wordmark:hover { color: var(--teal); }
.site-nav { display: flex; align-items: center; gap: clamp(0rem, 1.6vw, 1.75rem); margin-right: -0.55rem; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.55rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.55rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover { color: var(--teal); }
.site-nav a:hover::after { transform: scaleX(1); }
@media (min-width: 640px) {
  .site-nav a { font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--max-wide);
  margin-inline: auto;
  padding: calc(var(--header-h) + clamp(1.25rem, 5vh, 3rem)) var(--gutter) clamp(2.5rem, 6vh, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 5vh, 3rem);
}
.hero-title { display: flex; flex-direction: column; }
.hero-name {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: var(--soft);
  font-size: clamp(5rem, 2.6rem + 11vw, 14.5rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin-left: -0.05em;
}
.hero-concept {
  margin-top: clamp(0.85rem, 2vh, 1.4rem);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 330;
  font-size: clamp(1.55rem, 1.05rem + 1.9vw, 2.65rem);
  line-height: 1.15;
  color: var(--teal);
}
.hero-manifest {
  margin-top: clamp(1rem, 2.4vh, 1.6rem);
  max-width: 27em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 0.98rem + 0.45vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.hero-actions { margin-top: clamp(1.5rem, 3.6vh, 2.5rem); }
.hero-actions .btn svg { transition: transform 0.35s var(--ease); }
.hero-actions .btn:hover svg { transform: translateY(2px); }

.hero-art {
  display: block;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  cursor: zoom-in;
  transform: translate3d(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -6px), 0);
  transition: transform 1s var(--ease);
}
.hero-art img {
  width: min(100%, calc((100svh - var(--header-h) - 22rem) * var(--ar, 1.33)));
  min-width: min(100%, 17rem);
  height: auto;
  aspect-ratio: var(--ar, auto);
  box-shadow: var(--shadow-3);
  background: var(--canvas);
}
.hero-art:focus-visible { outline-offset: 8px; }

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    column-gap: clamp(2.5rem, 5vw, 6.5rem);
    padding-bottom: clamp(2.5rem, 7vh, 5rem);
  }
  .hero-art { justify-self: end; }
  .hero-art img { width: min(100%, calc((100svh - var(--header-h) - 8rem) * var(--ar, 1.33))); }
}

/* ---------- Intro : Joie · Amour · Nature ---------- */
.intro {
  padding: var(--section) var(--gutter);
  text-align: center;
}
.intro-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 0.32em;
  row-gap: 0.1em;
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: var(--soft);
  /* plafond : les trois mots (≈ 9,2 em) tiennent sur une ligne dès 320 px ; sans effet dès la tablette */
  font-size: min(clamp(2.3rem, 0.6rem + 7.4vw, 7.75rem), calc((100vw - 2.5rem) / 9.6));
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.intro-words .w { display: inline-block; }
.intro-words .dot {
  display: inline-block;
  width: 0.13em;
  height: 0.13em;
  border-radius: 50%;
  background: var(--sea);
  transform: translateY(0.06em);
}
.intro-words .dot ~ .dot { background: #efb9b3; }
.intro-text {
  max-width: 40rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Galerie ---------- */
.gallery {
  max-width: var(--max-wide);
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 3rem) var(--gutter) var(--section);
}
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  margin-bottom: clamp(1.75rem, 4vw, 3.25rem);
}
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(251, 246, 236, 0.6);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.chip .count {
  min-width: 1.5em;
  padding: 0.22em 0.42em;
  border-radius: 999px;
  background: rgba(43, 35, 32, 0.06);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.chip:hover { border-color: rgba(23, 112, 110, 0.55); }
@media (max-width: 479px) {
  .filters { gap: 0.4rem; }
  .chip { padding: 0 0.8rem; gap: 0.45rem; font-size: 0.875rem; }
}
.chip[aria-pressed="true"] {
  background: var(--sea-soft);
  border-color: var(--teal);
  box-shadow: inset 0 0 0 0.5px var(--teal);
}
.chip[aria-pressed="true"] .count { background: var(--teal); color: var(--ivory); }

.pieces {
  --gap: 0.75rem;
  --row: 230px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}
@media (min-width: 560px) { .pieces { --gap: 1rem; --row: 270px; } }
@media (min-width: 1000px) { .pieces { --gap: 1.5rem; --row: 330px; } }
@media (min-width: 1500px) { .pieces { --gap: 1.75rem; --row: 380px; } }

/* Lignes justifiées en CSS seul (repli sans JavaScript) : chaque œuvre garde son ratio. */
.piece {
  position: relative;
  min-width: 0;
  flex-grow: calc(var(--ar) * 100);
  flex-basis: calc(var(--ar) * var(--row));
}
.pieces-end { flex-grow: 1000000; flex-basis: 0; height: 0; }
/* Avec JavaScript : largeurs calculées ligne par ligne (app.js), aucune ligne bancale. */
.pieces.is-laid .piece { flex: 0 0 auto; }
.pieces.is-laid .pieces-end { display: none; }
.piece[hidden] { display: none; }

.piece-link {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.piece-link:focus-visible { outline: none; }
.piece-frame {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--canvas);
  border-radius: 2px;
  box-shadow: var(--shadow-1);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.piece-link:focus-visible .piece-frame { outline: 2px solid var(--teal); outline-offset: 4px; }
.piece-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.9s ease, transform 0.9s var(--ease);
}
.piece img.fade { opacity: 0; }
.piece img.fade.is-loaded { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .piece-link:hover .piece-frame { transform: translateY(-4px); box-shadow: var(--shadow-2); }
  .piece-link:hover .piece-frame img { transform: scale(1.015); }
}
.badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: var(--rose);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(43, 35, 32, 0.12);
}
.piece-cap {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Filtres : la galerie s'efface puis réapparaît dans la brume */
.pieces.is-fading .piece { opacity: 0; transition: opacity 0.18s ease; }
@media (prefers-reduced-motion: no-preference) {
  .piece.is-entering { animation: mist-in 0.65s var(--ease) both; animation-delay: var(--d, 0ms); }
}

/* ---------- À propos ---------- */
.about-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--section) var(--gutter);
  display: grid;
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: center;
}
.about-art {
  display: block;
  width: fit-content;
  max-width: 100%;
  cursor: zoom-in;
}
.about-art img {
  width: min(100%, 26rem);
  height: auto;
  aspect-ratio: var(--ar, auto);
  box-shadow: var(--shadow-3);
  background: var(--canvas);
}
.about-portrait img { width: min(100%, 26rem); }
.about-art:focus-visible { outline-offset: 8px; }
.about-text h2 { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.about-text p { max-width: 36rem; text-wrap: pretty; }
/* Les mots de Lara, à la première personne */
.about-voice { margin: 0; }
.about-voice blockquote {
  margin: 0;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 2px solid var(--sea);
}
.about-voice blockquote p {
  font-family: var(--serif);
  font-weight: 340;
  font-variation-settings: "SOFT" 60, "WONK" 0; /* texte courant : lettres droites */
  font-size: clamp(1.125rem, 1.04rem + 0.38vw, 1.3rem);
  line-height: 1.6;
}
.about-voice blockquote p + p { margin-top: 0.85em; }
.about-voice figcaption {
  margin-top: 1rem;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 330;
  font-size: 1.2rem;
  color: var(--teal);
}
.about-voice figcaption::before { content: "— "; }
.about-more {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: 1rem;
  color: var(--ink-2);
}
@media (min-width: 720px) {
  .about-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .about-art { position: sticky; top: calc(var(--header-h) + 2rem); margin-top: clamp(0.5rem, 2vw, 1.5rem); }
  .about-art img { width: min(100%, 32rem); }
}

/* ---------- Contact ---------- */
.contact-inner {
  max-width: 60rem;
  margin-inline: auto;
  padding: var(--section) var(--gutter);
  text-align: center;
}
.contact-lead {
  max-width: 32rem;
  margin: 1.25rem auto 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--ink-2);
  text-wrap: pretty;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.contact-actions .btn { min-width: 9.5rem; }
.contact-lines {
  margin-top: 2.25rem;
  font-size: 1.0625rem;
  line-height: 2;
}
.contact-lines a {
  color: var(--ink);
  text-decoration-color: rgba(23, 112, 110, 0.45);
  display: inline-block;
  padding: 0.2rem 0;
}
.contact-lines a:hover { color: var(--teal); text-decoration-color: currentColor; }
.contact-note {
  margin-top: 1.5rem;
  text-wrap: balance;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* ---------- Pied de page ---------- */
.site-footer {
  max-width: var(--max-wide);
  margin-inline: auto;
  padding: 1.75rem var(--gutter) calc(1.75rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.footer-name {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: var(--soft);
  font-size: 1.05rem;
  color: var(--ink);
  margin-right: 0.35rem;
}

/* ---------- Visionneuse ---------- */
html.is-viewer { overflow: hidden; }
.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.viewer::backdrop { background: transparent; }
.viewer[open] { display: block; }
.v-wash {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--ivory);
}
.v-wash img {
  position: absolute;
  top: -15%;
  left: -15%;
  width: 130%;
  height: 130%;
  max-width: none;
  object-fit: cover;
  filter: blur(70px) saturate(1.15);
  opacity: 0.45;
}
.v-close,
.v-nav {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(251, 246, 236, 0.88);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 10px -4px rgba(43, 35, 32, 0.25);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}
.v-close:hover,
.v-nav:hover { background: var(--ivory); border-color: rgba(23, 112, 110, 0.5); color: var(--teal); }
.v-close {
  position: fixed;
  z-index: 3;
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
  right: 0.75rem;
}
.v-stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: calc(4.5rem + env(safe-area-inset-top, 0px)) 1rem 1.25rem;
  touch-action: pan-y;
}
.v-nav {
  position: absolute;
  z-index: 2;
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
}
.v-prev { left: 0.75rem; }
.v-next { left: calc(0.75rem + 3rem + 0.5rem); }
.v-fig {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.v-img {
  display: block;
  width: min(100%, calc(62svh * var(--ar, 0.75)));
  height: auto;
  aspect-ratio: var(--ar, auto);
  background: var(--canvas);
  box-shadow: var(--shadow-3);
  user-select: none;
  -webkit-user-drag: none;
}
.v-info {
  position: relative;
  z-index: 1;
  margin: 0 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  padding: 1.5rem 1.35rem 1.6rem;
  border-radius: 1rem;
  background: rgba(251, 246, 236, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 40px -24px rgba(43, 35, 32, 0.35);
}
.v-count {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.v-title {
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-weight: 320;
  font-variation-settings: var(--soft);
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.v-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1.25rem;
  margin-top: 1.1rem;
  font-size: 0.9375rem;
}
.v-meta:empty { display: none; }
.v-meta dt { color: var(--ink-2); }
.v-price {
  margin-top: 1.1rem;
  font-weight: 500;
  font-size: 1rem;
}
.v-price.is-sold {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--rose);
}
.v-cta {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}
.v-cta-q {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 330;
  font-size: 1.3rem;
  line-height: 1.3;
}
.v-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.v-cta-btns .btn { flex: 1 1 8rem; }
.v-note {
  margin-top: 1.1rem;
  font-size: 0.875rem;
  color: var(--ink-2);
}

@media (min-width: 960px) {
  .viewer[open] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(20rem, 28vw, 26rem);
    overflow: hidden;
  }
  .v-close { top: 1.25rem; right: 1.25rem; }
  .v-stage {
    height: 100vh;
    height: 100dvh;
    padding: 3.5rem 6rem;
  }
  .v-nav { top: 50%; transform: translateY(-50%); }
  .v-prev { left: 1.5rem; }
  .v-next { left: auto; right: 1.5rem; }
  .v-img { width: min(100%, calc((100dvh - 7rem) * var(--ar, 0.75))); }
  .v-info {
    align-self: center;
    margin: 0 clamp(1.5rem, 3vw, 3rem) 0 0;
    max-height: calc(100dvh - 7rem);
    overflow-y: auto;
    padding: 2rem 1.9rem 2.1rem;
  }
}

/* ---------- Page 404 ---------- */
.page-404 main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2rem;
  padding: 2rem var(--gutter);
  text-align: center;
}
.page-404 h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: var(--soft);
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.75rem);
  line-height: 1.1;
}

/* ---------- Mouvement : la brume qui se lève ---------- */
@keyframes mist-rise {
  from { opacity: 0; filter: blur(12px); transform: translateY(16px); }
}
@keyframes mist-art {
  from { opacity: 0; filter: blur(18px); transform: scale(1.03); }
}
@keyframes mist-in {
  from { opacity: 0; filter: blur(5px); transform: translateY(10px); }
}
@keyframes fade-in {
  from { opacity: 0; }
}
@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-9vmax, 7vmax, 0) scale(1.08); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(10vmax, -6vmax, 0) scale(0.96); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Un seul moment orchestré, à l'ouverture (≈ 1,9 s) */
  .atmos { animation: fade-in 2.2s ease both; }
  .atmos-a { animation: drift-a 46s ease-in-out infinite alternate; }
  .atmos-b { animation: drift-b 58s ease-in-out infinite alternate; }
  .site-header { animation: fade-in 1.2s 0.9s ease both; }
  .hero-name { animation: mist-rise 1.25s 0.1s var(--ease) both; }
  .hero-concept { animation: mist-rise 1.1s 0.42s var(--ease) both; }
  .hero-manifest { animation: mist-rise 1.1s 0.62s var(--ease) both; }
  .hero-actions { animation: mist-rise 1s 0.85s var(--ease) both; }
  .hero-art img { animation: mist-art 1.7s 0.2s var(--ease) both; }

  /* Révélations au fil de la lecture (classes posées par app.js) */
  .rv {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(14px);
    transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease);
    transition-delay: var(--rv-d, 0ms);
  }
  .rv.in { opacity: 1; filter: none; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .hero-art { transform: none; }
}
