:root {
  --ink: #1a1a1a;
  --paper: #faf8f5;
  --white: #ffffff;
  --wine: #7a1a2e;
  --red: #c0392b;
  --teal: #2c6e63;
  --gold: #b8943e;
  --muted: #6b5e58;
  --shadow: 0 8px 32px rgba(0,0,0,.10);
  --radius: 12px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(18,18,18,.88);
  backdrop-filter: blur(16px) saturate(1.4);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.brand { display: flex; flex-direction: column; gap: 0; min-width: max-content; line-height: 1; text-transform: uppercase; }
.brand span { font-size: 1.15rem; font-weight: 700; letter-spacing: .12em; }
.brand strong { color: var(--red); font-size: .75rem; font-weight: 600; letter-spacing: .28em; margin-top: 1px; }

.main-nav { display: flex; align-items: center; gap: 2px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.main-nav > a { border-radius: 8px; padding: 8px 14px; color: rgba(255,255,255,.78); transition: color var(--transition), background var(--transition); }
.main-nav > a:hover, .main-nav > a[aria-current] { color: var(--white); background: rgba(255,255,255,.10); }
.main-nav > a[aria-current] { color: #ffb4a2; }

/* Lang switch */
.lang-switch { margin-left: 8px; display: inline-flex; gap: 4px; }

.lang-switch a {
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  transition: all var(--transition);
}

.lang-switch a:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.40); }

.lang-switch a.current,
.lang-switch a[aria-current] {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  pointer-events: none;
}

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 42vh;
  overflow: hidden;
  color: var(--white);
  background-color: #1a1a1a;
  background-image: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,.2) 50%);
}

.hero-content {
  position: relative;
  width: min(960px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 150px 0 48px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 16px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(4px);
  border-radius: 100px;
  color: #ffd5c7;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 700px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.hero-text {
  max-width: 540px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  line-height: 1.65;
}

.page-body {
  width: min(960px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

.placeholder {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 60px 0;
}

.site-footer {
  padding: 48px 24px;
  background: #111;
  color: rgba(255,255,255,.62);
  text-align: center;
  font-size: .88rem;
}

.footer-inner { max-width: 480px; margin: 0 auto; }
.site-footer strong { display: block; color: rgba(255,255,255,.85); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.site-footer p { margin: 4px 0; }
.footer-copy { margin-top: 16px; font-size: .76rem; color: rgba(255,255,255,.35); }

/* ── Sub-navigation ── */
.subnav {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 0 24px;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky;
  top: 62px;
  z-index: 10;
}

.subnav a {
  padding: 16px 28px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--wine);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}

.subnav a:hover,
.subnav-active {
  color: var(--red);
  border-bottom-color: var(--red);
  background: rgba(192,57,43,.06);
}

/* ── Category sections ── */
.category-section { padding: 0 0 80px; }

.category-hero {
  position: relative;
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.category-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 50%);
}

.category-hero-content {
  position: relative;
  width: min(960px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 48px 0;
}

.category-hero h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.category-body {
  width: min(960px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 48px 0;
}

.category-text {
  max-width: 700px;
  margin: 0 0 48px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.section-kicker {
  display: inline-block;
  margin: 0 0 24px;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.available-kicker {
  color: var(--red);
  font-size: .88rem;
  letter-spacing: .12em;
  padding: 6px 18px;
  background: rgba(192,57,43,.08);
  border-radius: 100px;
}

/* ── Popup / lightbox ── */
.has-popup { position: relative; cursor: zoom-in; }

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  padding: 40px;
}

/* popup-overlay contrôlé par JS (lightbox) */

.popup-images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-images img {
  max-height: 75vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

.popup-close-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 101;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  letter-spacing: .08em;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}

.has-popup:hover ~ .popup-close-hint,
.has-popup:hover .popup-close-hint,
.popup-overlay:hover + .popup-close-hint,
.has-popup:hover + .popup-close-hint {
  opacity: 1;
  visibility: visible;
}

/* ── Artist accent kicker ── */
.section-kicker-accent {
  color: var(--red);
  font-size: .8rem;
  letter-spacing: .14em;
  padding: 6px 18px;
  background: rgba(192,57,43,.08);
  border-radius: 100px;
}

/* ── Commander eyebrow accent ── */
.eyebrow-accent {
  color: #fff;
  background: var(--red);
}

/* ── Photo credit ── */
.photo-credit {
  position: absolute;
  bottom: 16px;
  right: 24px;
  z-index: 5;
  color: rgba(255,255,255,.45);
  font-size: .68rem;
  letter-spacing: .06em;
}

/* ── Artwork card ── */
.artwork-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.artwork-image {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.artwork-image::after {
  content: "© Anne Bouillon";
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .18);
  color: rgba(255, 255, 255, .72);
  font-family: Inter, system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

.artwork-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.artwork-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 32px 32px 0;
}

.artwork-info h3 {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.2;
  color: var(--ink);
}

.artwork-medium {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.artwork-subtitle {
  margin: -8px 0 14px;
  color: var(--wine);
  font-size: .9rem;
  font-weight: 600;
  font-style: italic;
}

.artwork-dims {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: .88rem;
}

.artwork-price {
  margin: 12px 0 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wine);
}

.artwork-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .85rem;
  font-style: italic;
}

.artwork-btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 100px;
  padding: 14px 28px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(192,57,43,.30);
}

.btn-primary:hover {
  background: #a93226;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,57,43,.40);
}

.btn-outline-dark {
  border: 2px solid var(--ink);
  color: var(--ink);
}

.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Artist page ── */
.artist-grid {
  display: grid;
  gap: 56px;
}

.artist-block h2 {
  margin: 0 0 20px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  color: var(--ink);
}

.artist-block p {
  max-width: 700px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.artist-block p:last-child { margin-bottom: 0; }

/* ── Contact page ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-label {
  margin: 0 0 8px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.contact-value {
  display: block;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wine);
  border-bottom: 2px solid var(--red);
  padding-bottom: 6px;
}

.contact-fb { color: var(--teal); border-bottom-color: var(--teal); }

.contact-hint {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  font-style: italic;
}

.contact-text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* ── Commander page ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.step-card h3 {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
  color: var(--ink);
}

.step-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}

.step-link {
  display: inline-block;
  color: var(--red);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.step-link:hover { color: var(--wine); border-color: var(--wine); }

.commander-note {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.commander-note h2 {
  margin: 0 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  color: var(--ink);
}

.commander-note > p {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.commander-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .site-header { position: absolute; flex-wrap: wrap; gap: 10px; }
  .main-nav { width: 100%; overflow-x: auto; padding-bottom: 4px; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  .main-nav > a { white-space: nowrap; flex-shrink: 0; }
  .subnav { top: 90px; }
  .subnav a { padding: 12px 18px; font-size: .76rem; }
  .artwork-card { grid-template-columns: 1fr; }
  .artwork-info { padding: 0 24px 32px; }
  .steps-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .commander-cta { flex-direction: column; align-items: stretch; }
  .contact-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .commander-special { grid-template-columns: 1fr !important; }
  .commander-special > div:last-child { padding: 0 24px 32px !important; }
}

@media (max-width: 560px) {
  .site-header { padding: 12px 16px; }
  .brand span { font-size: 1rem; }
  .brand strong { font-size: .68rem; }
  .main-nav { font-size: .72rem; gap: 0; }
  .main-nav > a { padding: 6px 10px; }
  .page-hero h1 { font-size: 2rem; }
  .hero-text { font-size: .95rem; }
  .page-body { padding: 40px 0 64px; }
  .artist-block h2 { font-size: 1.55rem; }
}