/* ═══════════════════════════════════════════
   ATELIER DE LA CITÉ — Feuille de style principale
   Site statique — Compatible Synology Web Station
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@200;300;400&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #B8965A;
  --gold-light:  #D4B483;
  --gold-dim:    rgba(184,150,90,0.22);
  --gold-glow:   rgba(184,150,90,0.07);
  --ink:         #1A1714;
  --ink2:        #221E1A;
  --ink3:        #2A2520;
  --warm-white:  #F7F4EF;
  --mid:         #8C8680;
  --line:        rgba(184,150,90,0.22);
  --line2:       rgba(184,150,90,0.1);
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--warm-white);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* ── Typography helpers ── */
.serif  { font-family: var(--font-serif); }
.gold   { color: var(--gold-light); }
.muted  { color: var(--mid); }
.label  {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.label::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 0.5px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary  { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-light); }
.btn-secondary {
  background: transparent;
  border: 0.5px solid var(--line);
  color: var(--mid);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-light); }

/* ══════════════════════════════
   NAVIGATION
══════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 0.5px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--warm-white); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 300;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 0.5px;
  background: var(--gold);
  transition: width 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--warm-white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { display: none; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink2);
  border: 0.5px solid var(--line);
  padding: 1rem 0;
  min-width: 200px;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.55rem 1.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.dropdown-menu a:hover { color: var(--gold-light); background: var(--gold-glow); }
.dropdown-menu a::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px; height: 0.5px;
  background: var(--gold-light);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 57px;
  background: var(--ink);
  z-index: 99;
  flex-direction: column;
  overflow-y: auto;
  border-top: 0.5px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu-inner { padding: 1.5rem 2rem 4rem; }
.mm-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--warm-white);
  padding: 1rem 0;
  border-bottom: 0.5px solid var(--line2);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.mm-link:hover { color: var(--gold-light); }
.mm-link span { font-family: var(--font-sans); font-size: 1rem; color: var(--gold); }
.mm-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0 1.25rem;
  border-bottom: 0.5px solid var(--line2);
}
.mm-sub a {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 0.35rem 0.85rem;
  border: 0.5px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}
.mm-sub a:hover { color: var(--gold-light); border-color: var(--gold-dim); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  border-top: 0.5px solid var(--line);
  padding: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.footer-tagline {
  font-size: 0.72rem;
  line-height: 1.9;
  color: var(--mid);
  font-weight: 300;
  max-width: 20rem;
}
.footer-col h4 {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 0.7rem;
  color: var(--mid);
  font-weight: 300;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 0.5px solid var(--line2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(140,134,128,0.5);
}

/* ══════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════ */
.page-hero {
  padding: 4rem 3rem 3rem;
  border-bottom: 0.5px solid var(--line);
}
.page-hero .label { margin-bottom: 1.25rem; }
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--warm-white);
}
.page-hero h1 em { font-style: italic; color: var(--gold-light); }
.page-hero .lead {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--mid);
  font-weight: 300;
  max-width: 42rem;
}

/* ══════════════════════════════
   GALLERY FILTERS
══════════════════════════════ */
.filters {
  padding: 1.5rem 3rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  border-bottom: 0.5px solid var(--line2);
}
.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  background: none;
  border: 0.5px solid var(--line);
  color: var(--mid);
  cursor: pointer;
  font-weight: 300;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.filter-btn.active {
  border-color: var(--gold);
  color: var(--gold-light);
  background: var(--gold-glow);
}

/* ══════════════════════════════
   GALLERY GRID (masonry-like)
══════════════════════════════ */
.gallery {
  padding: 2rem 3rem;
  columns: 3;
  column-gap: 0.75rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 0.5px solid transparent;
  transition: border-color 0.3s;
}
.gallery-item:hover { border-color: var(--line); }
.gallery-item:hover .gi-overlay { opacity: 1; }

.gi-img {
  width: 100%;
  display: block;
  background: var(--ink3);
}
.gi-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,17,14,0.75);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.25s;
}
.gi-zoom {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 28px; height: 28px;
  border: 0.5px solid rgba(184,150,90,0.5);
  display: flex; align-items: center; justify-content: center;
}
.gi-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--warm-white);
  line-height: 1.2;
}
.gi-meta {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.35rem;
}

/* ══════════════════════════════
   LIGHTBOX
══════════════════════════════ */
.lb-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12,10,8,0.97);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}
.lb-backdrop.open { display: flex; }
.lb-wrap {
  position: relative;
  width: 100%;
  max-width: 960px;
}
.lb-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  border: 0.5px solid var(--line);
  overflow: hidden;
}
.lb-visual {
  background: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
}
.lb-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lb-info {
  background: var(--ink);
  border-left: 0.5px solid var(--line);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}
.lb-artist {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.lb-artist::before { content:''; display:block; width:1rem; height:0.5px; background:var(--gold); }
.lb-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--warm-white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.lb-desc {
  font-size: 0.72rem;
  line-height: 1.85;
  color: var(--mid);
  font-weight: 300;
  flex: 1;
}
.lb-details {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--line2);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.lb-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.65rem;
  gap: 1rem;
}
.lb-row .lbl { font-size: 0.58rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mid); white-space: nowrap; }
.lb-row .val { color: var(--warm-white); text-align: right; }
.lb-row .val.avail { color: #7AB87A; }
.lb-row .val.sold  { color: var(--mid); }

.lb-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}
.lb-close-btn {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.lb-close-btn:hover { color: var(--gold-light); }
.lb-nav-btns { display: flex; gap: 0.5rem; }
.lb-nav-btn {
  width: 36px; height: 36px;
  background: none;
  border: 0.5px solid var(--line);
  color: var(--mid);
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.lb-nav-btn:hover { border-color: var(--gold); color: var(--gold-light); }

/* ══════════════════════════════
   INFO EXPO STRIP
══════════════════════════════ */
.expo-strip {
  padding: 1.75rem 3rem;
  background: var(--gold-glow);
  border-bottom: 0.5px solid var(--line);
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.expo-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.expo-label {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  display: flex; align-items: center; gap: 0.6rem;
}
.expo-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--warm-white);
  font-weight: 300;
  flex: 1;
  min-width: 0;
}

/* ══════════════════════════════
   ARTIST PAGE
══════════════════════════════ */
.artist-intro {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  border-bottom: 0.5px solid var(--line);
}
.artist-portrait {
  background: var(--ink3);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 0.5px solid var(--line);
  overflow: hidden;
}
.artist-portrait canvas,
.artist-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.artist-bio-block {
  padding: 3.5rem;
}
.artist-bio-block .label { margin-bottom: 1.5rem; }
.artist-bio-block h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.artist-bio-block h1 em { font-style: italic; color: var(--gold-light); }
.artist-bio-text {
  font-size: 0.78rem;
  line-height: 1.95;
  color: var(--mid);
  font-weight: 300;
  margin-bottom: 2rem;
}
.artist-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.atag {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 0.35rem 0.9rem;
  border: 0.5px solid var(--line);
}
.sub-nav {
  display: flex;
  gap: 0;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  overflow-x: auto;
}
.sub-nav a {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 1rem 1.75rem;
  border-right: 0.5px solid var(--line);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.sub-nav a:hover { color: var(--gold-light); }
.sub-nav a.active { color: var(--warm-white); background: var(--gold-glow); }

/* ══════════════════════════════
   CONTACT PAGE
══════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 0.5px solid var(--line);
}
.contact-info {
  padding: 3.5rem;
  border-right: 0.5px solid var(--line);
}
.contact-form-area { padding: 3.5rem; }
.contact-detail {
  margin-bottom: 2rem;
}
.contact-detail .lbl {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.contact-detail p {
  font-size: 0.78rem;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.8;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.6rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--ink2);
  border: 0.5px solid var(--line);
  color: var(--warm-white);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  font-weight: 300;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 2; }
  .lb-inner { grid-template-columns: 1fr; }
  .lb-info { border-left: none; border-top: 0.5px solid var(--line); }
  .lb-visual { min-height: 320px; }
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links, .nav-dropdown { display: none; }
  .hamburger { display: flex; }
  .page-hero { padding: 2.5rem 1.5rem 2rem; }
  .filters { padding: 1.25rem 1.5rem; }
  .gallery { padding: 1.25rem 1.5rem; columns: 2; }
  .footer { padding: 2rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .expo-strip { padding: 1.25rem 1.5rem; gap: 1rem; }
  .artist-intro { grid-template-columns: 1fr; }
  .artist-portrait { min-height: 280px; }
  .artist-bio-block { padding: 2rem 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { padding: 2rem 1.5rem; border-right: none; border-bottom: 0.5px solid var(--line); }
  .contact-form-area { padding: 2rem 1.5rem; }
  .lb-visual { min-height: 240px; }
}

@media (max-width: 480px) {
  .gallery { columns: 1; }
  .nav { padding: 1rem; }
}
</style>
