/* =========================================================
   SK Beauty — feuille de style
   ========================================================= */

:root {
  --cream: #F7F1EA;
  --white: #FFFFFF;
  --ink: #1E140E;
  --muted: #5E4A3C;
  --accent: #8C5A2E;
  --accent-dark: #6E4320;
  --sand: #EADCC8;
  --sand-2: #E2CFB7;
  --sand-3: #D8C0A3;
  --line: #DCCBB5;
  --line-soft: #EADCC8;
  --dark: #24150D;
  --dark-2: #33201A;
  --dark-line: #4A3426;
  --gold: #D9AE7A;
  --on-dark-muted: #CDBBA6;
  --error: #A3261B;
  --success: #2F5D3A;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 8px;
  --radius-lg: 12px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
button, input, textarea, select { font: inherit; }

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

.container { max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

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

/* ---------- Typo ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
}
.on-dark .eyebrow { color: var(--gold); }

h1, h2, h3 { margin: 0; }
.display {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(46px, 6vw, 80px); line-height: 1.02; letter-spacing: -.01em;
}
.display em { font-style: italic; color: var(--accent); }
.h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px, 4vw, 52px); line-height: 1.08;
}
.lead { font-size: 18px; color: var(--muted); margin: 0; }
.muted { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #3A2A20; color: var(--cream); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--dark); font-weight: 700; }
.btn-gold:hover { background: #E7C293; color: var(--dark); }
.btn[disabled], .btn[aria-disabled="true"] { background: #E7DACB; color: var(--muted); border-color: #E7DACB; cursor: not-allowed; }

.link-arrow {
  color: var(--ink); font-weight: 600; text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid var(--ink);
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Bandeau + en-tête ---------- */
.topbar { background: var(--dark); color: var(--sand); font-size: 13px; letter-spacing: .04em; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 32px; padding-top: 10px; padding-bottom: 10px; }
.topbar .gold { color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 234, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }

.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: .18em; }
.brand-tag { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 0; }
.nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .nav .btn { display: inline-flex; margin-top: 16px; border-bottom: 0; }
}
@media (min-width: 961px) { .nav .nav-cta { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--dark); color: var(--cream); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 48px; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
@media (max-width: 640px) { .section { padding: 72px 0; } }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-text .lead { max-width: 520px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 24px 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; }
.fact strong { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1; }
.fact span { font-size: 13px; color: var(--muted); margin-top: 6px; }

.hero-media { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; background: var(--sand-2); }
.hero-media .tall { grid-row: span 2; border-radius: 200px 200px 6px 6px; min-height: 520px; }
.hero-media .small { aspect-ratio: 1 / 1; }
@media (max-width: 640px) {
  .hero { padding: 40px 0 64px; }
  .hero-media .tall { min-height: 360px; }
}

/* ---------- Le salon ---------- */
.about { display: flex; flex-wrap: wrap; gap: 56px; }
.about-intro { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-intro p { margin: 0; color: var(--muted); font-size: 17px; }
.values { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.value { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--ink); }
.value .num { font-family: var(--font-display); font-size: 22px; color: var(--accent); }
.value h3 { font-size: 18px; font-weight: 600; }
.value p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Coiffures ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  flex: 1 1 320px; min-width: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand-2); }
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 18px; flex-grow: 1; }
.card-title { font-family: var(--font-display); font-size: 34px; font-weight: 500; }
.price-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; flex-grow: 1; }
.price-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.price-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.price-list .price { color: var(--muted); white-space: nowrap; }

/* ---------- Étapes ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; margin-bottom: 56px; }
.step-item { display: flex; flex-direction: column; gap: 12px; }
.step-item .big { font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--gold); }
.step-item h3 { font-size: 20px; font-weight: 600; }
.step-item p { margin: 0; color: var(--on-dark-muted); font-size: 15px; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: var(--sand-2); }

/* ---------- Boutique ---------- */
.shop { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.shop-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.shop-intro p { margin: 0; color: var(--muted); font-size: 17px; }
.products { flex: 1 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.product { display: flex; flex-direction: column; gap: 16px; }
.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; background: #F2E7DA; }
.product-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product h3 { font-size: 18px; font-weight: 600; }
.product .amount { font-family: var(--font-display); font-size: 26px; font-weight: 600; }

/* ---------- Contact ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.info-list { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list svg { flex-shrink: 0; margin-top: 2px; }
.info-list strong { display: block; }
.info-list a, .info-list span.val { color: var(--muted); text-decoration: none; }
.map { flex: 1 1 480px; min-width: 0; min-height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- CTA final ---------- */
.cta-band {
  background: var(--sand); border-radius: var(--radius-lg); padding: 64px 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px;
}
.cta-band h2 { max-width: 620px; font-size: clamp(32px, 3.6vw, 46px); }
@media (max-width: 640px) { .cta-band { padding: 40px 24px; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); font-size: 14px; }
.site-footer .container { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer-brand .brand-name { color: var(--cream); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .title { color: var(--cream); font-weight: 600; }
.footer-col a { color: var(--on-dark-muted); text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--dark-line); font-size: 13px; }

/* =========================================================
   Prise de rendez-vous
   ========================================================= */
.booking-page { padding: 48px 0 96px; }
.booking-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.booking-head h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5vw, 60px); line-height: 1.05; }
.booking-head p { margin: 0; color: var(--muted); max-width: 640px; }

.stepper { list-style: none; margin: 0 0 36px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.stepper button {
  background: transparent; border: 0; padding: 4px 0; min-height: 44px;
  display: flex; align-items: center; gap: 10px; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 500;
}
.stepper button[disabled] { cursor: default; }
.stepper .dot {
  width: 32px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; background: var(--white); border: 1px solid #CDBBA6; color: var(--muted);
}
.stepper .is-done .dot { background: var(--dark); border-color: var(--dark); color: var(--cream); }
.stepper .is-current button { color: var(--ink); font-weight: 700; }
.stepper .is-current .dot { background: var(--accent); border-color: var(--accent); color: var(--white); }

.booking-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.booking-main {
  flex: 999 1 600px; min-width: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
}
.panel { display: flex; flex-direction: column; gap: 28px; }
.panel[hidden] { display: none; }
.panel-head { display: flex; flex-direction: column; gap: 6px; }
.panel-head h2 { font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1.15; }
.panel-head p { margin: 0; color: var(--muted); font-size: 15px; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 12px; }
legend .opt, label .opt { font-weight: 400; color: var(--muted); }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }

/* Choix : input radio/checkbox visuellement masqué + label stylé */
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: flex; flex-direction: column; gap: 2px;
  min-height: 44px; padding: 11px 20px; border-radius: 999px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
  cursor: pointer; font-size: 15px; font-weight: 500; transition: background-color .15s, border-color .15s;
}
.choice label:hover { border-color: var(--ink); }
.choice input:checked + label { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice input:disabled + label { background: #F2EBE2; color: #7A6A5C; border-style: dashed; cursor: not-allowed; text-decoration: line-through; }

.choice.card-choice label { border-radius: 10px; padding: 16px 20px; }
.choice.card-choice .big { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.1; }
.choice.card-choice .sub { font-size: 13px; }
.choice.day label { border-radius: 10px; padding: 10px 4px; align-items: center; text-align: center; }
.choice.day .wd, .choice.day .mo { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.choice.day .num { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.1; }
.choice.slot label { border-radius: 10px; align-items: center; font-weight: 600; }
.choice.check label { flex-direction: row; align-items: center; gap: 10px; border-radius: 10px; }
.choice.check .box { width: 18px; height: 18px; border-radius: 4px; border: 1px solid #8A7462; background: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--dark); flex-shrink: 0; }
.choice.check input:checked + label .box { background: var(--gold); border-color: var(--gold); }
.choice.check input:checked + label .box::after { content: "✓"; }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea {
  padding: 12px 14px; min-height: 48px; border: 1px solid #BFA88F; border-radius: var(--radius);
  background: var(--white); color: var(--ink); font-size: 15px; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input[type="file"] { border-style: dashed; background: #FBF7F2; padding: 10px 12px; font-size: 14px; }
.field .help { font-size: 13px; color: var(--muted); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: 13px; color: var(--error); }

.consent { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--cream); border-radius: 10px; }
.consent .row { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--dark); flex-shrink: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.square-box {
  display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line);
  border-radius: 10px; background: #FBF7F2;
}
.square-box strong { font-size: 16px; }
.square-box p { margin: 0; font-size: 14px; color: var(--muted); }

.recap { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px; }
.recap div { padding: 14px 0; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 2px; }
.recap dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.recap dd { margin: 0; font-weight: 600; word-break: break-word; }

.form-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; margin-top: 32px; border-top: 1px solid var(--line-soft); }
.form-nav .right { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 16px; margin-left: auto; }
.form-hint { font-size: 14px; color: var(--muted); }
.form-alert { padding: 14px 16px; border-radius: var(--radius); background: #F8E3E0; color: var(--error); font-size: 14px; }
.form-alert[hidden] { display: none; }

.summary {
  flex: 1 1 300px; min-width: 0; position: sticky; top: 112px;
  background: var(--dark); color: var(--cream); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 20px;
}
.summary h2 { font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.summary dl { margin: 0; display: flex; flex-direction: column; }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--dark-line); font-size: 14px; }
.summary dt { color: var(--on-dark-muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .fee { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.summary .fee span:first-child { color: var(--on-dark-muted); font-size: 14px; }
.summary .fee strong { font-family: var(--font-display); font-size: 34px; color: var(--gold); white-space: nowrap; }
.summary .help-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--dark-2); font-size: 13px; color: var(--sand); }
.summary .help-box a { color: var(--gold); }
@media (max-width: 960px) { .summary { position: static; } }

.success { text-align: center; align-items: center; padding: 24px 0; }
.success .ref {
  display: inline-flex; flex-direction: column; gap: 4px; padding: 16px 28px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--cream);
}
.success .ref span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.success .ref strong { font-family: var(--font-display); font-size: 30px; }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; padding: 64px 24px 96px; margin: 0 auto; }
.legal h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 5vw, 54px); line-height: 1.1; margin-bottom: 24px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.todo { background: #FFF4D6; color: #6B4E00; padding: 2px 6px; border-radius: 4px; }

@media (max-width: 640px) { .hide-sm { display: none; } }
.brand-name { white-space: nowrap; }
.link-arrow { white-space: nowrap; }
@media (max-width: 420px) {
  .brand-name { font-size: 24px; letter-spacing: .14em; }
  .brand-tag { font-size: 10px; letter-spacing: .24em; }
}

/* ---------- Logo ---------- */
.brand { flex-direction: row; align-items: center; gap: 12px; }
.brand-icon { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-body); font-weight: 800; font-size: 26px; letter-spacing: .01em; }
.brand-accent { color: #C4450C; }
.brand-tag { letter-spacing: .22em; margin-top: 5px; }
.footer-logo { width: 120px; height: 120px; border-radius: 16px; background: var(--cream); padding: 10px; }
@media (max-width: 420px) {
  .brand-icon { width: 44px; height: 44px; }
  .brand-name { font-size: 22px; letter-spacing: .01em; }
  .brand-tag { font-size: 10px; letter-spacing: .16em; }
}

/* ---------- Galerie ---------- */
.gallery-page .lead { margin-top: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter {
  min-height: 44px; padding: 10px 20px; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); font-weight: 600; font-size: 15px;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.filter .count { font-weight: 400; opacity: .75; }

.masonry { columns: 3 280px; column-gap: 16px; }
.shot { margin: 0 0 16px; break-inside: avoid; position: relative; border-radius: 8px; overflow: hidden; background: var(--sand-2); }
.shot a { display: block; cursor: zoom-in; }
.shot img { width: 100%; height: auto; transition: transform .4s ease; }
.shot a:hover img { transform: scale(1.03); }
.shot figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(36, 21, 13, .82); color: var(--cream); font-size: 13px; font-weight: 600; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } .shot a:hover img { transform: none; } }

.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0;
  background: rgba(20, 12, 8, .94); color: var(--cream);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(20, 12, 8, .94); }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100vw - 160px); }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 6px; }
.lb-figure figcaption { font-size: 14px; color: var(--sand); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(247,241,234,.3);
  background: rgba(36,21,13,.6); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.lb-btn:hover { background: var(--dark); border-color: var(--gold); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-figure { max-width: 100vw; padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
  .lb-figure img { max-height: calc(100vh - 170px); }
}
.nav a[aria-current="page"] { color: var(--accent); }
