/* ============================================================
   BESSFRAME — Portfolio photo · Paris
   Système éditorial galerie d'art
   ============================================================ */

:root {
  /* Tokens — palette par défaut (sombre éditorial) */
  --bg: #0d0c0a;
  --bg-soft: #15130f;
  --fg: #f0ece4;
  --fg-dim: #9e978a;
  --fg-mute: #5b554a;
  --accent: oklch(0.74 0.10 75);     /* warm gold */
  --rule: rgba(240, 236, 228, 0.13);
  --rule-strong: rgba(240, 236, 228, 0.25);

  /* Typo */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Layout */
  --gutter: clamp(20px, 3vw, 56px);
  --section-pad: clamp(60px, 8vw, 140px);
  --maxw: 1680px;
}

/* Palette: light gallery */
.palette-light {
  --bg: #f4f1ea;
  --bg-soft: #ebe6db;
  --fg: #15130f;
  --fg-dim: #5b554a;
  --fg-mute: #a9a293;
  --rule: rgba(21, 19, 15, 0.14);
  --rule-strong: rgba(21, 19, 15, 0.28);
}

/* Palette: cream */
.palette-cream {
  --bg: #1a1612;
  --bg-soft: #221d18;
  --fg: #f3ead8;
  --fg-dim: #b8a98b;
  --fg-mute: #6b5d48;
  --accent: oklch(0.80 0.13 70);
  --rule: rgba(243, 234, 216, 0.14);
  --rule-strong: rgba(243, 234, 216, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 400ms ease, color 400ms ease;
}

body {
  overflow-x: hidden;
}

img { display: block; max-width: 100%; user-select: none; -webkit-user-drag: none; }

/* ============================================================
   Type
   ============================================================ */

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.sans-caps { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.italic { font-style: italic; }

h1.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

h2.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

h3.cat-title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ============================================================
   Top bar
   ============================================================ */

.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  z-index: 50;
  mix-blend-mode: difference;
  color: #f0ece4;
  pointer-events: none;
}

.topbar .nav-link, .topbar .wordmark { pointer-events: auto; }

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: inherit;
}
.wordmark .dot {
  display: inline-block; width: 4px; height: 4px; background: currentColor;
  border-radius: 50%; vertical-align: middle; margin: 0 4px 4px 4px;
  opacity: 0.6;
}

.nav {
  display: flex; gap: clamp(16px, 2.4vw, 36px);
}
.nav a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 260ms cubic-bezier(.6,.05,.2,1);
}
.nav a:hover::after { transform: scaleX(1); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative; height: 100vh; min-height: 700px;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.78);
  transform: scale(1.05);
  transition: transform 1.6s cubic-bezier(.2,.6,.2,1);
}
.hero.in .hero-img { transform: scale(1.0); }

.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,12,10,0.45) 0%, transparent 30%, transparent 60%, rgba(13,12,10,0.7) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 2;
  height: 100%; padding: 0 var(--gutter) calc(var(--gutter) * 1.4);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #f0ece4;
}

.hero-meta {
  position: absolute; top: 90px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-start;
  color: #f0ece4;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-meta .col { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .label { opacity: 0.55; }

.hero h1.display {
  max-width: 16ch;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero-tag {
  display: flex; gap: 24px; align-items: baseline;
  margin-top: clamp(16px, 2vw, 28px);
  max-width: 60ch;
}
.hero-tag .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 300;
  opacity: 0.92;
  max-width: 44ch;
  line-height: 1.4;
}

.hero-footer {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: clamp(32px, 5vw, 64px);
  border-top: 1px solid rgba(240, 236, 228, 0.25);
  padding-top: 16px;
}

.scroll-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  display: flex; align-items: center; gap: 10px;
}
.scroll-hint .line {
  width: 40px; height: 1px; background: currentColor; opacity: 0.5;
  animation: line-pulse 2.4s ease-in-out infinite;
}
@keyframes line-pulse {
  0%, 100% { transform: scaleX(0.3); opacity: 0.3; transform-origin: left; }
  50% { transform: scaleX(1); opacity: 0.8; }
}

/* ============================================================
   Index / table of contents
   ============================================================ */

.index-section {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--rule);
}

.index-header {
  display: grid; grid-template-columns: 120px 1fr;
  gap: var(--gutter);
  margin-bottom: clamp(40px, 6vw, 80px);
  align-items: baseline;
}
.index-header .section-num { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.12em; text-transform: uppercase; }
.index-header .section-eyebrow {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(16px, 1.5vw, 22px);
  color: var(--fg-dim);
  margin-bottom: 16px;
}

.cat-index {
  border-top: 1px solid var(--rule);
}
.cat-row {
  display: grid;
  grid-template-columns: 80px 1.4fr 2fr 100px;
  gap: var(--gutter);
  align-items: center;
  padding: clamp(20px, 2.4vw, 36px) 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  position: relative;
  transition: padding 300ms ease;
  color: var(--fg);
  text-decoration: none;
}
.cat-row:hover { padding-left: 16px; }
.cat-row:hover .cat-row-title { color: var(--accent); }
.cat-row .cat-num { font-family: var(--mono); font-size: 11px; color: var(--fg-mute); }
.cat-row-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 240ms ease;
}
.cat-row-title em { font-style: italic; color: var(--fg-dim); font-weight: 400; }
.cat-row .cat-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cat-row .cat-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-mute);
  text-align: right;
  letter-spacing: 0.06em;
}

/* ============================================================
   Portfolio category section
   ============================================================ */

.portfolio-section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--rule);
}

.portfolio-header {
  display: grid; grid-template-columns: 120px 1fr 1fr;
  gap: var(--gutter);
  padding: 0 var(--gutter);
  margin-bottom: clamp(40px, 5vw, 80px);
  align-items: baseline;
}
.portfolio-header .cat-num-big {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.12em;
}
.portfolio-header h3 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 80px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.portfolio-header h3 em { font-style: italic; color: var(--fg-dim); }
.portfolio-header .blurb {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 19px);
  color: var(--fg-dim);
  max-width: 38ch;
  line-height: 1.5;
}

/* Editorial spreads — varied layouts per category */
.spread {
  display: grid;
  gap: clamp(8px, 1vw, 16px);
  padding: 0 var(--gutter);
}

/* Layout solo — mariage locked: one detail shot, centered, behind lock */
.spread.layout-solo {
  grid-template-columns: 1fr;
  min-height: 70vh;
}
.spread.layout-solo .photo {
  aspect-ratio: 16/9;
  width: 100%;
  min-height: 60vh;
}

/* Layout A — mariage: large + 3 stacked */
.spread.layout-A {
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: 70vh;
}
.spread.layout-A .photo:nth-child(1) { grid-row: 1 / span 2; }
.spread.layout-A .photo:nth-child(2) { grid-column: 2; }
.spread.layout-A .photo:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; }
.spread.layout-A .photo:nth-child(4) { grid-column: 2; }
.spread.layout-A .photo { min-height: 280px; }

/* Layout 3 — portrait/food: 3 photos, rhythmic editorial */
.spread.layout-3 {
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
}
.spread.layout-3 .photo:nth-child(1) { aspect-ratio: 3/4; }
.spread.layout-3 .photo:nth-child(2) { aspect-ratio: 4/5; margin-top: clamp(40px, 6vw, 100px); }
.spread.layout-3 .photo:nth-child(3) { aspect-ratio: 3/4; }

/* Layout B — portrait: 2 + 2 alternating */
.spread.layout-B {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.spread.layout-B .photo:nth-child(1) { grid-column: 1 / span 2; aspect-ratio: 3/4; }
.spread.layout-B .photo:nth-child(2) { aspect-ratio: 3/4; margin-top: 80px; }
.spread.layout-B .photo:nth-child(3) { aspect-ratio: 3/4; }
.spread.layout-B .photo:nth-child(4) { grid-column: 3 / span 2; aspect-ratio: 4/3; align-self: end; }

/* Layout C — food: 2x2 grid */
.spread.layout-C {
  grid-template-columns: 1fr 1fr;
}
.spread.layout-C .photo { aspect-ratio: 4/3; }
.spread.layout-C .photo:nth-child(1) { aspect-ratio: 3/4; grid-row: 1 / span 2; }
.spread.layout-C .photo:nth-child(2) { }
.spread.layout-C .photo:nth-child(3) { }
.spread.layout-C .photo:nth-child(4) { aspect-ratio: 16/9; grid-column: 1 / span 2; }
.spread.layout-C .photo:nth-child(5) { aspect-ratio: 16/9; grid-column: 1 / span 2; }

/* Layout D — spectacle: dramatic mosaic */
.spread.layout-D {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.spread.layout-D .photo:nth-child(1) { grid-column: 1 / span 2; aspect-ratio: 4/3; }
.spread.layout-D .photo:nth-child(2) { aspect-ratio: 3/4; grid-row: 1 / span 2; }
.spread.layout-D .photo:nth-child(3) { aspect-ratio: 3/4; grid-row: 1 / span 2; }
.spread.layout-D .photo:nth-child(4) { aspect-ratio: 4/3; }
.spread.layout-D .photo:nth-child(5) { aspect-ratio: 4/3; }

.photo {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-soft);
}
.photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms cubic-bezier(.2,.6,.2,1);
}
.photo:hover img { transform: scale(1.025); }
.photo .photo-num {
  position: absolute; top: 12px; left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: #f0ece4;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 240ms ease;
  z-index: 2;
}
.photo:hover .photo-num { opacity: 0.9; }

.photo .photo-tag {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: #f0ece4;
  letter-spacing: 0.1em;
  display: flex; justify-content: space-between;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 280ms ease, transform 280ms ease;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  z-index: 2;
}
.photo:hover .photo-tag { opacity: 0.9; transform: translateY(0); }

/* portfolio footer — caption strip */
.portfolio-footer {
  padding: 32px var(--gutter) 0;
  display: grid; grid-template-columns: 120px 1fr 1fr 1fr;
  gap: var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  border-top: 1px solid var(--rule);
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 24px;
  text-transform: uppercase;
}
.portfolio-footer .pf-label { color: var(--fg-mute); display: block; margin-bottom: 4px; font-size: 9px; }
.portfolio-footer .pf-val { color: var(--fg); }

/* ============================================================
   Locked section (mariage — password gate)
   ============================================================ */

.portfolio-section.locked .spread .photo img {
  filter: blur(28px) saturate(0.85) brightness(0.85);
  transform: scale(1.12);
}
.portfolio-section.unlocked .spread .photo img {
  filter: none;
}

/* Frosted "contact sheet" overlay on locked photos — gives editorial feel
   even when blurred: thin diagonal stripes + corner index */
.portfolio-section.locked .spread .photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(13, 12, 10, 0) 0,
      rgba(13, 12, 10, 0) 14px,
      rgba(13, 12, 10, 0.18) 14px,
      rgba(13, 12, 10, 0.18) 15px
    );
  opacity: 0.6;
}
.portfolio-section.locked .spread .photo::after {
  content: attr(data-locked-index);
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 3;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(240, 236, 228, 0.7);
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* Reveal animation — staggered wipe from top to bottom */
.portfolio-section.unlocked.just-unlocked .spread .photo {
  animation: photo-reveal 900ms cubic-bezier(.2, .65, .25, 1) both;
}
.portfolio-section.unlocked.just-unlocked .spread .photo:nth-child(1) { animation-delay: 80ms; }
.portfolio-section.unlocked.just-unlocked .spread .photo:nth-child(2) { animation-delay: 200ms; }
.portfolio-section.unlocked.just-unlocked .spread .photo:nth-child(3) { animation-delay: 320ms; }
.portfolio-section.unlocked.just-unlocked .spread .photo:nth-child(4) { animation-delay: 440ms; }
.portfolio-section.unlocked.just-unlocked .spread .photo:nth-child(5) { animation-delay: 560ms; }
.portfolio-section.unlocked.just-unlocked .spread .photo:nth-child(6) { animation-delay: 680ms; }

@keyframes photo-reveal {
  0% {
    clip-path: inset(0 0 100% 0);
    transform: translateY(8px);
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

.lock-veil.dismissing {
  animation: veil-dismiss 600ms cubic-bezier(.5, 0, .2, 1) forwards;
  pointer-events: none;
}
@keyframes veil-dismiss {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-24px); }
}
.portfolio-section.locked .spread .photo {
  cursor: default;
}
.portfolio-section.locked .spread .photo:hover img {
  transform: scale(1.12);
}
.portfolio-section.locked .photo .photo-num,
.portfolio-section.locked .photo .photo-tag { display: none; }

.spread-wrap {
  position: relative;
}

.lock-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: var(--gutter);
  background:
    radial-gradient(circle at 50% 50%, rgba(13,12,10,0.4) 0%, rgba(13,12,10,0.75) 60%, rgba(13,12,10,0.92) 100%);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}
.palette-light .lock-veil {
  background:
    radial-gradient(circle at 50% 50%, rgba(244,241,234,0.55) 0%, rgba(244,241,234,0.82) 60%, rgba(244,241,234,0.95) 100%);
}

.lock-card {
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  padding: clamp(36px, 4vw, 64px) clamp(32px, 4vw, 72px);
  max-width: 520px;
  width: 100%;
  text-align: center;
  position: relative;
}
.lock-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 28px;
  background: var(--rule-strong);
  transform: translate(-50%, -100%);
}

.lock-icon {
  width: 28px; height: 36px;
  margin: 0 auto 24px;
  position: relative;
}
.lock-icon::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 22px;
  border: 1px solid var(--fg);
  border-radius: 2px;
}
.lock-icon::after {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px;
  border: 1px solid var(--fg);
  border-bottom: none;
  border-radius: 9px 9px 0 0;
}

.lock-card .lock-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.lock-card h4 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.lock-card h4 em { font-style: italic; color: var(--fg-dim); }

.lock-card .lock-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--fg-dim);
  line-height: 1.5;
  max-width: 38ch;
  margin: 0 auto 32px;
  font-weight: 300;
}

.lock-form {
  display: flex;
  gap: 0;
  border: 1px solid var(--rule-strong);
  background: var(--bg-soft);
  align-items: stretch;
}
.lock-form.error {
  animation: lock-shake 320ms cubic-bezier(.36,.07,.19,.97);
  border-color: oklch(0.62 0.18 28);
}
@keyframes lock-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

.lock-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 18px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--fg);
  letter-spacing: 0.2em;
}
.lock-form input::placeholder {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.lock-form button {
  background: var(--fg);
  color: var(--bg);
  border: none;
  padding: 0 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.lock-form button:hover { background: var(--accent); color: var(--bg); }

.lock-hint {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lock-hint.error { color: oklch(0.72 0.16 28); }
.lock-ask {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
  transition: border-color 200ms ease, color 200ms ease;
}
.lock-ask:hover { color: var(--accent); border-color: var(--accent); }

.lock-relock {
  position: absolute;
  top: clamp(20px, 2vw, 36px);
  right: var(--gutter);
  display: flex; align-items: center; gap: 8px;
  background: none;
  border: 1px solid var(--rule);
  color: var(--fg-dim);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transition: opacity 240ms ease, border-color 200ms ease, color 200ms ease;
  z-index: 6;
}
.portfolio-section.unlocked:hover .lock-relock { opacity: 1; }
.lock-relock:hover { border-color: var(--fg); color: var(--fg); }
.lock-relock .dot { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.72 0.17 145); }

.portfolio-section.locked .portfolio-footer { opacity: 0.4; }

@media (max-width: 720px) {
  .lock-form { flex-direction: column; }
  .lock-form button { padding: 14px; }
}

/* ============================================================
   Tarifs
   ============================================================ */

.tarifs-section {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
}

.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.tarif-card {
  padding: clamp(28px, 3vw, 48px) clamp(20px, 2vw, 32px);
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 16px;
}
.tarif-card:last-child { border-right: none; }
.tarif-card .tarif-num { font-family: var(--mono); font-size: 10px; color: var(--fg-mute); letter-spacing: 0.12em; }
.tarif-card .tarif-name {
  font-family: var(--serif);
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 400;
  line-height: 1.05;
  margin-top: 8px;
}
.tarif-card .tarif-name em { font-style: italic; color: var(--fg-dim); }
.tarif-card .tarif-desc {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.5;
  font-weight: 300;
  flex: 1;
}
.tarif-card .tarif-price-wrap {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 16px; border-top: 1px solid var(--rule);
}
.tarif-card .tarif-from {
  font-family: var(--mono); font-size: 10px; color: var(--fg-mute); letter-spacing: 0.12em; text-transform: uppercase;
}
.tarif-card .tarif-price {
  font-family: var(--serif);
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.tarif-card .tarif-price .unit { font-size: 0.55em; color: var(--fg-dim); margin-left: 6px; vertical-align: 0.4em; }
.tarif-card .tarif-includes {
  font-family: var(--sans); font-size: 12px;
  color: var(--fg-dim);
  display: flex; flex-direction: column; gap: 4px;
  font-weight: 300;
}
.tarif-card .tarif-includes li { list-style: none; padding-left: 14px; position: relative; }
.tarif-card .tarif-includes li::before {
  content: '—'; position: absolute; left: 0; color: var(--fg-mute);
}

/* ============================================================
   Print / tirages
   ============================================================ */

.print-section {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.print-section.compact { grid-template-columns: 1fr; }

.print-copy h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.print-copy h2 em { font-style: italic; color: var(--fg-dim); }
.print-copy p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.3vw, 21px);
  color: var(--fg-dim);
  line-height: 1.55;
  max-width: 48ch;
  margin-bottom: 24px;
  font-weight: 300;
}

.print-specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  margin-top: 32px;
  border-top: 1px solid var(--rule); padding-top: 28px;
}
.print-specs .spec .spec-label {
  font-family: var(--mono); font-size: 10px; color: var(--fg-mute); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 6px;
}
.print-specs .spec .spec-val {
  font-family: var(--serif); font-size: 19px; color: var(--fg);
}

.print-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 3vw, 56px);
  overflow: hidden;
}
.print-frame {
  position: relative;
  background: #f7f2e8;
  padding: clamp(24px, 3vw, 56px);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.5),
    0 0 0 1px rgba(0,0,0,0.04);
  max-width: 90%;
  transform: rotate(-1deg);
}
.print-frame img {
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: saturate(0.95) contrast(0.98);
}
.print-frame .frame-caption {
  margin-top: 14px;
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  color: #15130f;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   About
   ============================================================ */

.about-section {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: var(--gutter);
  align-items: start;
}
.about-section .section-num { font-family: var(--mono); font-size: 11px; color: var(--fg-mute); letter-spacing: 0.12em; }
.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.about-text h2 em { font-style: italic; color: var(--fg-dim); }
.about-text p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.3vw, 22px);
  color: var(--fg-dim);
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 48ch;
}
.about-text p:last-child { color: var(--fg); font-style: normal; font-family: var(--sans); font-size: 14px; }

.about-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  text-transform: uppercase;
  display: flex; flex-direction: column; gap: 22px;
}
.about-meta .meta-block .meta-label { color: var(--fg-mute); display: block; margin-bottom: 6px; font-size: 9px; }
.about-meta .meta-block .meta-val { color: var(--fg); font-family: var(--serif); font-size: 19px; text-transform: none; letter-spacing: 0; }

/* ============================================================
   Contact
   ============================================================ */

.contact-section {
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
  text-align: center;
}
.contact-section .eyebrow {
  font-family: var(--mono); font-size: 11px; color: var(--fg-mute); letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.contact-section h2 {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 140px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin-bottom: 40px;
}
.contact-section h2 em { font-style: italic; color: var(--fg-dim); }

.contact-lines {
  display: flex; flex-direction: column; gap: 16px;
  align-items: center;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  color: var(--fg);
  margin-bottom: 60px;
}
.contact-lines a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: 4px; transition: border-color 200ms ease; }
.contact-lines a:hover { border-color: var(--accent); color: var(--accent); }

.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: 24px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-dim);
}
.contact-grid > div { padding: 0 16px; text-align: left; }
.contact-grid > div:first-child { text-align: left; }
.contact-grid > div:last-child { text-align: right; }
.contact-grid .label { color: var(--fg-mute); display: block; margin-bottom: 6px; font-size: 9px; }
.contact-grid .val { color: var(--fg); font-family: var(--serif); font-size: 17px; text-transform: none; letter-spacing: 0; }

/* ============================================================
   Footer
   ============================================================ */

footer.colophon {
  padding: 40px var(--gutter) 32px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
footer.colophon .colophon-c { letter-spacing: 0; text-transform: none; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--fg-dim); }

/* ============================================================
   Lightbox
   ============================================================ */

.lightbox {
  position: fixed; inset: 0;
  background: rgba(8, 7, 6, 0.96);
  z-index: 200;
  display: flex; flex-direction: column;
  animation: lb-in 240ms cubic-bezier(.2,.6,.2,1);
}
@keyframes lb-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--gutter);
  color: #f0ece4;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(240,236,228,0.1);
  flex-shrink: 0;
}
.lightbox-top .lb-meta { display: flex; gap: 24px; align-items: center; }
.lightbox-top .lb-meta .lb-cat { font-family: var(--serif); font-size: 18px; font-style: italic; text-transform: none; letter-spacing: 0; color: #f0ece4; }
.lightbox-close {
  background: none; border: 1px solid rgba(240,236,228,0.25);
  color: #f0ece4; padding: 8px 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: border-color 200ms ease, color 200ms ease;
}
.lightbox-close:hover { border-color: #f0ece4; color: #fff; }

.lightbox-stage {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 40px var(--gutter);
  position: relative;
  min-height: 0;
}
.lightbox-stage img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  animation: img-in 380ms cubic-bezier(.2,.6,.2,1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
@keyframes img-in {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.lb-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: #f0ece4;
  font-family: var(--serif); font-size: 40px;
  cursor: pointer;
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.5;
  transition: opacity 200ms ease;
  font-style: italic;
}
.lb-arrow:hover { opacity: 1; }
.lb-arrow.prev { left: 16px; }
.lb-arrow.next { right: 16px; }

.lightbox-bottom {
  padding: 20px var(--gutter) 28px;
  border-top: 1px solid rgba(240,236,228,0.1);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gutter);
  color: #f0ece4;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.lightbox-bottom .lb-block .lb-label { color: rgba(240,236,228,0.4); display: block; margin-bottom: 6px; font-size: 9px; }
.lightbox-bottom .lb-block .lb-val { color: #f0ece4; font-family: var(--serif); font-size: 16px; text-transform: none; letter-spacing: 0; }
.lightbox-bottom .lb-block.right { text-align: right; }
.lightbox-bottom .lb-block.center { text-align: center; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .cat-row { grid-template-columns: 60px 1fr 80px; }
  .cat-row .cat-meta { display: none; }
  .portfolio-header { grid-template-columns: 60px 1fr; }
  .portfolio-header .blurb { grid-column: 2; margin-top: 16px; }
  .tarifs-grid { grid-template-columns: repeat(2, 1fr); }
  .tarif-card:nth-child(2n) { border-right: none; }
  .tarif-card:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .print-section { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid > div { text-align: left !important; }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .topbar { padding: 16px var(--gutter); }
  .nav { gap: 14px; }
  .hero-meta { display: none; }
  .spread.layout-A, .spread.layout-B, .spread.layout-C, .spread.layout-D, .spread.layout-3, .spread.layout-solo {
    grid-template-columns: 1fr;
  }
  .spread .photo, .spread.layout-A .photo, .spread.layout-B .photo,
  .spread.layout-C .photo, .spread.layout-D .photo, .spread.layout-3 .photo, .spread.layout-solo .photo {
    grid-column: 1 !important; grid-row: auto !important; aspect-ratio: 4/3 !important; margin-top: 0 !important;
  }
  .tarifs-grid { grid-template-columns: 1fr; }
  .tarif-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .tarif-card:last-child { border-bottom: none; }
  .portfolio-footer { grid-template-columns: 1fr; gap: 16px; }
  .lightbox-bottom { grid-template-columns: 1fr; gap: 16px; }
  .lightbox-bottom .lb-block, .lightbox-bottom .lb-block.right, .lightbox-bottom .lb-block.center { text-align: left; }
}
