/* ART SUD FRANCE — gallery stylesheet */

:root {
  --wall: #FBFAF7;        /* gallery wall */
  --ink: #22211F;         /* near-black text */
  --stone: #8C877D;       /* captions, muted */
  --line: #E4E1D8;        /* hairline dividers */
  --outremer: #24439B;    /* French ultramarine accent */
  --card: #FFFFFF;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--wall);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--outremer); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1180px; margin: 0 auto;
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.brand span { color: var(--outremer); }
nav.top { display: flex; align-items: center; gap: 28px; }
nav.top a {
  color: var(--ink); text-decoration: none; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
nav.top a:hover { color: var(--outremer); }

.lang-toggle {
  border: 1px solid var(--ink); background: none; cursor: pointer;
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em;
  padding: 6px 14px; color: var(--ink);
}
.lang-toggle:hover, .lang-toggle:focus-visible { background: var(--ink); color: var(--wall); }

/* ---------- hero ---------- */
.hero { padding: 96px 24px 72px; text-align: center; }
.hero .eyebrow {
  font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--outremer); margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.08; max-width: 17ch; margin: 0 auto 24px;
}
.hero p.lede {
  max-width: 52ch; margin: 0 auto; color: var(--stone); font-size: 1.05rem;
}
.hero .rule {
  width: 56px; height: 2px; background: var(--outremer); margin: 40px auto 0;
}

/* ---------- gallery grid ---------- */
.gallery { padding: 24px 0 96px; }
.grid {
  display: grid; gap: 56px 40px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.work { cursor: pointer; background: none; border: none; text-align: left; padding: 0; font: inherit; color: inherit; }
.work:focus-visible { outline: 2px solid var(--outremer); outline-offset: 6px; }

.frame {
  background: var(--card);
  padding: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(34, 33, 31, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.work:hover .frame { box-shadow: 0 14px 34px rgba(34, 33, 31, 0.12); transform: translateY(-3px); }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* museum wall label */
.cartel { margin-top: 16px; padding-left: 14px; border-left: 2px solid var(--line); }
.work:hover .cartel { border-left-color: var(--outremer); }
.cartel .t {
  font-family: var(--serif); font-size: 1.28rem; font-weight: 600; line-height: 1.2;
}
.cartel .meta { color: var(--stone); font-size: 0.86rem; margin-top: 3px; }
.cartel .row {
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px;
}
.cartel .code {
  font-size: 0.72rem; letter-spacing: 0.18em; color: var(--stone); text-transform: uppercase;
}
.cartel .price { font-size: 0.98rem; font-weight: 400; }
.cartel .sold { color: #A0522D; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- modal / detail ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50; display: none;
  background: rgba(34, 33, 31, 0.55);
  padding: 24px;
  overflow-y: auto;
}
.modal.open { display: flex; }
.modal-card {
  background: var(--card); margin: auto; max-width: 980px; width: 100%;
  display: grid; grid-template-columns: 1.15fr 1fr;
}
.modal-img { background: var(--wall); padding: 28px; display: flex; align-items: center; }
.modal-img img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.modal-info { padding: 40px 36px; display: flex; flex-direction: column; }
.modal-info .code {
  font-size: 0.72rem; letter-spacing: 0.2em; color: var(--stone); text-transform: uppercase;
}
.modal-info h2 { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin: 8px 0 4px; }
.modal-info .meta { color: var(--stone); font-size: 0.9rem; }
.modal-info .desc { margin: 22px 0; font-size: 0.98rem; }
.modal-info .price-line {
  font-family: var(--serif); font-size: 1.5rem; margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.modal-info .sold-line { color: #A0522D; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.btn-mail {
  display: inline-block; margin-top: 18px; text-align: center;
  background: var(--outremer); color: #fff; text-decoration: none;
  padding: 14px 22px; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.btn-mail:hover { background: #1B3479; }
.modal-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}
.modal-close:focus-visible { outline: 2px solid #fff; }

/* ---------- about / contact ---------- */
.about { border-top: 1px solid var(--line); padding: 88px 24px; text-align: center; }
.about h2, .contact h2 {
  font-family: var(--serif); font-size: 2rem; font-weight: 600; margin-bottom: 18px;
}
.about p { max-width: 58ch; margin: 0 auto; color: var(--stone); }

.contact { border-top: 1px solid var(--line); padding: 88px 24px 96px; text-align: center; background: var(--card); }
.contact p { color: var(--stone); max-width: 50ch; margin: 0 auto 26px; }
.contact .email {
  font-family: var(--serif); font-size: 1.5rem; text-decoration: none; color: var(--outremer);
  border-bottom: 1px solid var(--outremer);
}

footer { padding: 34px 24px; text-align: center; color: var(--stone); font-size: 0.8rem; letter-spacing: 0.08em; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  nav.top a.navlink { display: none; }
  .hero { padding: 64px 20px 48px; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-img img { max-height: 46vh; }
  .modal-info { padding: 28px 24px 34px; }
}
