/* ============================================================================
   LE CABINET PIERREY — Catalogue Raisonné sur Lin
   Système de design : encre sur lin. ~93 % de chaque écran = lin + encre,
   un filet de laiton (1px), un seul geste terracotta (bouton « Acquérir »).
   ============================================================================ */

/* ----------------------------------------------------------- 1. TOKENS */
:root {
  /* Palette */
  --lin:    #FFFFFF;   /* fond blanc */
  --lin-2:  #F4F1EC;   /* off-white discret (dégradé lumière) */
  --lin-3:  #FFFFFF;   /* halo */
  --encre:  #2A211E;   /* texte & filets (jamais noir pur) */
  --sable:  #D8C5B6;   /* neutre structurel : filet intérieur passe-partout */
  --argile: #AE7465;   /* terracotta — geste unique */
  --terre:  #6E4438;   /* bandeau pied-de-page + renfort Acquérir */
  --laiton: #B9986B;   /* fil précieux, 1px, rationné */
  --olive:  #7E8268;   /* uniquement contexte Paysages */

  --encre-88: rgba(42,33,30,0.88);
  --encre-70: rgba(42,33,30,0.70);
  --encre-45: rgba(42,33,30,0.45);
  --encre-18: rgba(42,33,30,0.18);
  --encre-12: rgba(42,33,30,0.12);

  /* Espacement — base 8, rampe nombre d'or */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 40px;
  --s5: 64px; --s6: 96px; --s7: 110px; --s8: 168px;

  --pad-x: clamp(24px, 5vw, 96px);
  --shell: 1280px;
  --shell-wide: 1512px;
  --measure: 64ch;

  /* Typo */
  --serif:   "Noto Serif Oriya", "Noto Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --roman:   "Cinzel", "Trajan Pro", "Cormorant Garamond", serif;

  /* Mouvement */
  --ease-gallery: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:    cubic-bezier(0.4, 0, 0.2, 1);

  /* Ombre portée chaude à trois couches — une lumière de galerie en haut */
  --cast: 0 1px 2px rgba(42,33,30,0.10), 0 8px 18px rgba(42,33,30,0.12), 0 22px 48px rgba(110,68,56,0.14);
  --cast-hover: 0 2px 4px rgba(42,33,30,0.12), 0 14px 28px rgba(42,33,30,0.14), 0 34px 70px rgba(110,68,56,0.20);
}

/* ----------------------------------------------------------- 2. RESET */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.65;
  color: var(--encre-88);
  background: var(--lin);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; padding: 0; }
::selection { background: rgba(174,116,101,0.22); }

/* ----------------------------------------------------------- 3. TYPO */
h1, h2, h3, h4 { font-family: var(--display); color: var(--encre); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
h3 { font-size: 1.75rem; font-weight: 500; line-height: 1.2; }
h4 { font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
p  { font-size: 1.0625rem; }
.lead { font-size: 1.25rem; line-height: 1.6; color: var(--encre-88); }

.eyebrow {
  font-family: var(--roman);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--laiton);
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}
/* (plus de trait décoratif devant les libellés) */

.smallcaps {
  font-variant: small-caps;
  font-feature-settings: "smcp" 1;
  letter-spacing: 0.04em;
}
.oldstyle { font-variant-numeric: oldstyle-figures; }
.tabular  { font-variant-numeric: lining-nums tabular-nums; }

.section-head {
  font-family: var(--display);
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

/* Lien de corps : soulignement laiton qui vire à l'argile au survol */
.tlink {
  font-family: var(--roman);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--encre);
  position: relative;
  padding-bottom: 4px;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--laiton); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-gallery), background 180ms var(--ease-soft);
}
.tlink:hover::after { transform: scaleX(1); background: var(--argile); }
.tlink .arrow { display: inline-block; transition: transform 220ms var(--ease-gallery); }
.tlink:hover .arrow { transform: translateX(4px); }

/* ----------------------------------------------------------- 4. LAYOUT */
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad-x); width: 100%; }
.shell-wide { max-width: var(--shell-wide); margin-inline: auto; padding-inline: var(--pad-x); width: 100%; }
.measure { max-width: var(--measure); }
.section { padding-block: var(--s6); }
.section-lg { padding-block: var(--s8); }
/* Première section d'une page intérieure : dégage la hauteur de l'en-tête fixe */
.section-top { padding-top: calc(88px + var(--s6)); }
.center { text-align: center; }
.hairline { height: 1px; background: var(--encre-12); border: 0; }

/* ----------------------------------------------------------- 5. HEADER / NAV */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 88px; display: flex; align-items: center;
  transition: background 280ms var(--ease-soft), border-color 280ms var(--ease-soft), height 280ms var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246,240,233,0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom-color: var(--encre-12);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: var(--s2); }
.brand .monogram { width: 34px; height: 34px; color: var(--encre); }
.brand .rule-v { width: 1px; height: 20px; background: var(--laiton); }
.brand .wordmark {
  font-family: var(--roman); font-size: 0.8125rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--encre);
}
.nav-links { display: flex; align-items: center; gap: var(--s3); }
.nav-links a {
  font-family: var(--serif); font-size: 0.75rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--encre-70); position: relative; padding: 4px 0;
  transition: color 200ms var(--ease-soft);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--laiton); transform: scaleX(0); transform-origin: center;
  transition: transform 220ms var(--ease-gallery);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--encre); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-end { display: flex; align-items: center; gap: var(--s3); }
.nav-divider { width: 1px; height: 18px; background: var(--encre-18); }
.lang-toggle { display: inline-flex; gap: 6px; font-family: var(--serif); font-size: 0.75rem; letter-spacing: 0.12em; }
.lang-toggle button { color: var(--encre-45); transition: color 180ms var(--ease-soft); text-transform: uppercase; }
.lang-toggle button.active { color: var(--encre); }
.lang-toggle .sep { color: var(--encre-18); }

.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 26px; height: 26px; padding: 0; flex: none; }
.menu-toggle span { display: block; height: 2px; width: 100%; background: var(--encre); border-radius: 1px; transition: transform 280ms var(--ease-gallery), opacity 200ms; }

/* Plein écran mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--lin);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s3);
  opacity: 0; visibility: hidden; transition: opacity 360ms var(--ease-soft), visibility 360ms;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--display); font-size: 2rem; color: var(--encre); opacity: 0; transform: translateY(8px); }
.mobile-menu.open a { animation: fadeUp 500ms var(--ease-gallery) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------- 6. BOUTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--roman); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 16px 32px; border: 1px solid var(--encre); color: var(--encre);
  transition: background 240ms var(--ease-soft), color 240ms var(--ease-soft), border-color 240ms var(--ease-soft);
}
.btn:hover { background: var(--encre); color: var(--lin); }
/* Geste unique terracotta : Acquérir */
.btn-acquire { background: var(--argile); border-color: var(--argile); color: var(--lin); }
.btn-acquire:hover { background: var(--terre); border-color: var(--terre); color: var(--lin); }
.btn-ghost { border-color: var(--encre-18); color: var(--encre-70); }
.btn-ghost:hover { background: transparent; border-color: var(--encre); color: var(--encre); }
.btn-block { width: 100%; }

/* ----------------------------------------------------------- 7. HERO */
.hero { position: relative; background: #fff; padding-top: 88px; }
.hero-stage { position: relative; display: block; background: #fff; }
.hero-frame { width: 100%; }
.hero-frame img {
  display: block; width: 100%; height: auto; margin-inline: auto;
  opacity: 0; transform: scale(1.02);
}
.hero-stage.lit .hero-frame img { animation: heroSettle 1100ms var(--ease-gallery) 120ms forwards; }
@keyframes heroSettle { to { opacity: 1; transform: none; } }
.hero-copy {
  width: min(1100px, 92vw); margin: var(--s5) auto 0; padding-inline: var(--pad-x); text-align: left;
  opacity: 0; transform: translateY(16px);
}
.hero-stage.lit .hero-copy { animation: fadeUp 500ms var(--ease-gallery) 900ms forwards; }
.hero-copy h1 { margin: var(--s2) 0 var(--s3); }

/* Portails de catégorie (sous le pli) */
.portals { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); align-items: start; }
.portal { position: relative; display: block; }
.portal .frame { background: transparent; }
.portal .frame img { width: 100%; height: auto; display: block; object-fit: contain; box-shadow: var(--cast); transition: box-shadow 300ms var(--ease-soft), transform 300ms var(--ease-gallery); }
.portal:hover .frame img { box-shadow: var(--cast-hover); transform: translateY(-4px); }
.portal .label { font-family: var(--display); font-size: 1.75rem; margin-top: var(--s3); color: var(--encre); }
.portal .count { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--encre-45); }

/* ----------------------------------------------------------- 8. GALERIE */
.gallery-intro { text-align: center; }
.filter-rail {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--s4); margin: var(--s5) 0 var(--s2);
}
.filter-rail .filter {
  font-family: var(--roman); font-size: 0.875rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--encre-45); padding-bottom: 10px; position: relative; transition: color 220ms var(--ease-soft);
}
.filter-rail .filter.active { color: var(--encre); }
.filter-rail .filter[data-cat="paysages"].active { color: var(--olive); }
/* marqueur laiton coulissant */
.brass-marker {
  position: absolute; left: 0; bottom: 0; height: 1px; background: var(--laiton);
  transition: transform 320ms var(--ease-gallery), width 320ms var(--ease-gallery);
}
.brass-marker.paysages { background: var(--olive); }
.gallery-count { text-align: center; font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--encre-45); margin-bottom: var(--s5); }

/* Masonry simple par colonnes — chaque image garde son ratio naturel (zéro déformation) */
.grid { column-count: 3; column-gap: 20px; }
@media (max-width: 1099px) { .grid { column-count: 2; } }
@media (max-width: 640px)  { .grid { column-count: 1; } }

.tile { display: block; break-inside: avoid; -webkit-column-break-inside: avoid; margin-bottom: 20px; }
[data-grid] .tile, [data-selected] .tile, .related-grid .tile { cursor: pointer; }
.tile .mat { position: relative; display: block; }
.tile .mat img {
  width: 100%; height: auto; display: block; background: var(--lin-2);
  box-shadow: var(--cast);
  transition: box-shadow 300ms var(--ease-soft), transform 300ms var(--ease-gallery);
}
.tile:hover .mat img { transform: translateY(-5px); box-shadow: var(--cast-hover); }

.tile .caption { margin-top: var(--s2); }
.tile .cap-title { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--encre); line-height: 1.25; }
.tile .cap-meta { font-size: 0.8125rem; line-height: 1.5; color: var(--encre-70); margin-top: 4px; }
.tile .cap-meta .smallcaps { letter-spacing: 0.04em; }
.tile.sold .mat img { opacity: 0.92; }
.cap-sold { font-family: var(--roman); font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--laiton); }

.tile.is-hidden { display: none; }
.tile.fade-in { animation: tileFade 440ms var(--ease-gallery) both; }
@keyframes tileFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------- 9. FICHE ŒUVRE */
.work { padding-top: 88px; }
/* Duo image/texte — colonnes en fr (la gouttière est retranchée → jamais de débordement) */
.work-split { display: grid; grid-template-columns: 61.8fr 38.2fr; gap: var(--s5); align-items: start; }
.work-split.split-img    { grid-template-columns: 38.2fr 61.8fr; }   /* image à gauche */
.work-split.split-center { align-items: center; }
.work-image-rail { position: relative; }
.work-image {
  position: relative; padding: var(--s3); background: var(--lin);
  display: flex; align-items: center; justify-content: center;
}
.work-image.dark-oil::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(185,152,107,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.work-image img { max-height: calc(100vh - 235px); width: auto; max-width: 100%; object-fit: contain; box-shadow: var(--cast); position: relative; cursor: zoom-in; }
.enlarge { display: inline-flex; gap: 6px; margin-top: var(--s2); float: right;
  font-family: var(--roman); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--encre-45); }
.enlarge:hover { color: var(--encre); }

.work-meta { position: sticky; top: 128px; max-width: 34ch; }
.work-meta .eyebrow { margin-bottom: var(--s3); }
.work-meta h1 { font-size: 2.25rem; line-height: 1.1; }
.work-meta .title-en { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--encre-70); margin-top: 6px; }
.meta-rule { width: 64px; height: 1px; background: var(--laiton); margin: var(--s3) 0; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px var(--s3); }
.dl dt { font-family: var(--roman); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--encre-45); align-self: center; }
.dl dd { font-size: 0.9375rem; color: var(--encre); }
.work-price { font-family: var(--display); font-weight: 500; font-size: 1.5rem; color: var(--encre); margin: var(--s3) 0 var(--s2); }
.work-price.sold { font-family: var(--roman); font-size: 0.875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--laiton); }
.work-actions { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s3); }
.secure-note { font-size: 0.75rem; color: var(--encre-45); margin-top: var(--s1); }
.work-note { max-width: var(--measure); margin: var(--s7) auto 0; }
.work-note p { margin-bottom: var(--s3); }

.work-nav { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s7); }
.work-nav a { display: flex; align-items: center; gap: var(--s2); color: var(--encre-70); }
.work-nav a:hover { color: var(--encre); }
.work-nav img { width: 64px; height: 64px; object-fit: contain; background: var(--lin); box-shadow: var(--cast); }
.work-nav .wn-label { font-family: var(--roman); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; }
.related { margin-top: var(--s7); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s4); }

/* ----------------------------------------------------------- 10. LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(246,240,233,0.98);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease-soft), visibility 300ms;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); object-fit: contain; box-shadow: var(--cast-hover); cursor: zoom-out; }
.lb-close, .lb-arrow {
  position: absolute; color: var(--encre-45); font-family: var(--roman); font-size: 1.5rem;
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  transition: color 200ms; opacity: 0;
}
.lightbox.show-chrome .lb-close, .lightbox.show-chrome .lb-arrow { opacity: 1; }
.lb-close { top: 32px; right: 32px; }
.lb-arrow:hover, .lb-close:hover { color: var(--encre); }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center;
  color: var(--encre-70); opacity: 0; transition: opacity 200ms; }
.lightbox.show-chrome .lb-caption { opacity: 1; }
.lb-caption .lb-title { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--encre); }
.lb-caption .lb-medium { font-size: 0.8125rem; color: var(--encre-45); margin-top: 2px; }
.lb-caption .lb-inquire { display: inline-block; margin-top: 10px; font-family: var(--roman); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--encre-45); border-bottom: 1px solid var(--encre-18); padding-bottom: 3px; cursor: pointer; }
.lb-caption .lb-inquire:hover { color: var(--encre); border-color: var(--encre); }

/* Flèches gauche/droite de la fiche œuvre */
.work-arrows { display: flex; justify-content: space-between; margin-top: var(--s6); }
.work-arrows a { font-family: var(--roman); font-size: 1.4rem; color: var(--encre-45); width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--encre-12); transition: color 200ms var(--ease-soft), border-color 200ms var(--ease-soft); }
.work-arrows a:hover { color: var(--encre); border-color: var(--encre); }

/* ----------------------------------------------------------- 11. MODALE RENSEIGNEMENT */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(42,33,30,0.45);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: var(--s3);
  opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease-soft), visibility 300ms;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--lin); width: min(520px, 100%); padding: var(--s5);
  box-shadow: var(--cast-hover); transform: translateY(12px); transition: transform 320ms var(--ease-gallery);
}
.modal-backdrop.open .modal { transform: none; }
.modal h3 { margin-bottom: var(--s2); }
.modal .modal-close { position: absolute; top: var(--s3); right: var(--s3); font-family: var(--roman); color: var(--encre-45); }

/* ----------------------------------------------------------- 12. FORMULAIRES */
.field { margin-bottom: var(--s3); }
.field label { display: block; font-family: var(--roman); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--encre-45); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--serif); font-size: 1rem; color: var(--encre);
  background: transparent; border: 0; border-bottom: 1px solid var(--encre-18);
  padding: 10px 2px; transition: border-color 220ms var(--ease-soft);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--argile); }
.field textarea { resize: vertical; min-height: 120px; }

/* ----------------------------------------------------------- 13. PIED DE PAGE */
.site-footer { background: var(--terre); color: var(--lin); padding: var(--s7) 0 var(--s5); margin-top: var(--s8); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.footer-grid .monogram { width: 40px; height: 40px; color: var(--lin); margin-bottom: var(--s3); }
.footer-col h5 { font-family: var(--roman); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(246,240,233,0.6); margin-bottom: var(--s3); }
.footer-col p, .footer-col a { font-family: var(--display); font-style: italic; font-size: 1.125rem; color: rgba(246,240,233,0.92); display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--lin); }
.footer-col .plain { font-family: var(--serif); font-style: normal; font-size: 0.9375rem; }
.footer-nav a { font-family: var(--serif); font-style: normal; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(246,240,233,0.8); }
.footer-nav a:hover { color: var(--lin); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s5); padding-top: var(--s3); }
.footer-bottom::before { content: ""; position: absolute; left: var(--pad-x); height: 1px; width: 38.2%; background: var(--laiton); margin-top: calc(-1 * var(--s3) - 1px); }
.footer-bottom { position: relative; }
.footer-bottom span, .footer-bottom a { font-size: 0.6875rem; letter-spacing: 0.04em; color: rgba(246,240,233,0.7); font-family: var(--serif); }
.lang-toggle.on-dark button { color: rgba(246,240,233,0.45); }
.lang-toggle.on-dark button.active { color: var(--lin); }
.lang-toggle.on-dark .sep { color: rgba(246,240,233,0.25); }

/* ----------------------------------------------------------- 14. RÉVÉLATIONS */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-gallery), transform 700ms var(--ease-gallery); }

/* Espacement des paragraphes de prose (bio injectée, notes) */
[data-bio] p { margin-block-end: var(--s3); }
[data-bio] p:last-child { margin-block-end: 0; margin-block-start: var(--s2); }

/* ----------------------------------------------------------- 15. RESPONSIVE */

/* Tablettes & iPad (portrait ⩽834, paysage 1024) : navigation → menu plein écran,
   duos image/texte empilés. Le sélecteur de langue reste visible dans l'en-tête. */
@media (max-width: 1024px) {
  .nav-links, .nav-end .nav-divider { display: none; }
  .menu-toggle { display: flex; }

  .work-split, .work-split.split-img { grid-template-columns: 1fr; gap: var(--s4); }
  .work-meta { position: static; max-width: var(--measure); }
  .grid { row-gap: var(--s5); }
  .section { padding-block: var(--s5); }
  .section-lg { padding-block: var(--s6); }
}

/* Tablette portrait & téléphone large : grilles en une colonne */
@media (max-width: 768px) {
  .portals, .related-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .footer-bottom { flex-direction: column; gap: var(--s2); align-items: flex-start; }
  .footer-bottom::before { display: none; }
  .filter-rail { gap: var(--s3); }
}

/* Téléphone : en-tête compact, monogramme seul */
@media (max-width: 640px) {
  .site-header { height: 64px; }
  .brand .wordmark, .brand .rule-v { display: none; }
  .section-top { padding-top: calc(64px + var(--s4)); }
  .hero { padding-top: 64px; }
  .hero-copy { width: min(640px, 90vw); }
}

/* ----------------------------------------------------------- 16. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 200ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-frame img, .hero-copy { opacity: 1 !important; transform: none !important; animation: none !important; }
}
