/* ===================================================
   EMMA D  –  Official Website
   Modern redesign 2026
   =================================================== */

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:      #f8f6f2;
  --text:    #1c1c1c;
  --subtle:  #6b6160;
  --accent:  #8b7355;
  --border:  #e2dbd2;
  --white:   #ffffff;
  --gap:     18px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }


/* ─── HEADER ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
}

.site-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}

.site-nav a:hover,
.site-nav a.current { color: var(--accent); }

.nav-sep { color: var(--border); font-size: 12px; }


/* ─── LANGUAGE ─── */

html[lang="fr"] [data-lang="en"] { display: none; }
html[lang="en"] [data-lang="fr"] { display: none; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-toggle button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 9.5px;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 0;
  transition: color 0.2s;
}

.lang-toggle button.active,
.lang-toggle button:hover { color: var(--text); }
.lang-toggle-sep { color: var(--border); font-size: 11px; }


/* ─── MAIN ─── */

main { flex: 1; display: flex; flex-direction: column; }


/* ─── PAGE HEADING ─── */

.page-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 60px 52px 44px;
  color: var(--text);
}

.page-subheading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  text-align: center;
  color: var(--subtle);
  padding: 0 52px 48px;
  line-height: 1.6;
}


/* ─── MASONRY GALLERY ─── */

.gallery {
  column-count: 3;
  column-gap: var(--gap);
  padding: 0 52px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  cursor: zoom-in;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: opacity 0.3s, transform 0.5s ease;
}

.gallery-item:hover img {
  opacity: 0.92;
  transform: scale(1.02);
}

.gallery-caption {
  padding: 7px 0 2px;
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--subtle);
  line-height: 1.5;
}


/* ─── HOME HERO ─── */

.home-hero {
  text-align: center;
  padding: 36px 52px 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.home-hero .hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 68px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
}

.home-hero .hero-tagline {
  margin-top: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: var(--subtle);
  letter-spacing: 0.05em;
}

.home-hero .hero-links {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.home-hero .hero-links a {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--subtle);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.home-hero .hero-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.home-section-label {
  font-size: 9.5px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--subtle);
  text-align: center;
  padding: 0 52px 28px;
}


/* ─── SERIES INDEX ─── */

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 52px 88px;
}

.series-card { display: block; }

.series-card-img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.series-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.series-card:hover .series-card-img img { transform: scale(1.06); }

.series-card-label {
  margin-top: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
}

.series-card-meta {
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--subtle);
}


/* ─── BACK LINK ─── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 26px 52px 0;
  transition: color 0.2s;
}

.back-link::before { content: '←'; font-size: 14px; }
.back-link:hover { color: var(--text); }


/* ─── BIO PAGE ─── */

.bio-banner {
  width: 100%;
  height: auto;
  display: block;
}

.bio-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 52px 24px;
}

.bio-section { margin-bottom: 44px; }

.bio-section h2 {
  font-family: 'Jost', sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.bio-section p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 3px;
}

.bio-section a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.bio-section a:hover { border-color: var(--accent); }

.bio-link-block {
  margin-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
}


/* ─── POSTERS / EXHIBITION IMAGES ─── */

.section-label {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 52px 18px;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

.posters-gallery {
  column-count: 4;
  column-gap: 14px;
  padding: 24px 52px 72px;
  max-width: 1100px;
  margin: 0 auto;
}

.posters-gallery .gallery-item { cursor: zoom-in; }


/* ─── NEWS PAGE ─── */

.news-intro {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 52px 64px;
}

/* grid is obsolete — one column visible at a time via lang toggle */
.news-cols { display: block; }

.news-col h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 32px;
  color: var(--text);
}

.news-col p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.9;
  text-align: justify;
  margin-bottom: 22px;
  color: var(--text);
}

.news-col .news-date {
  margin-top: 32px;
  font-family: 'Jost', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--subtle);
}

.news-images {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  padding: 0 52px 72px;
  max-width: 900px;
  margin: 0 auto;
}

.news-images img {
  max-height: 420px;
  width: auto;
  flex: 1 1 280px;
  object-fit: contain;
}

.news-divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 680px;
  margin: 0 auto 72px;
}

.tribute-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 52px 96px;
}

.tribute-section .tribute-header {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}

.tribute-section p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 300;
  text-align: justify;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 22px;
}

.tribute-section .tribute-date {
  text-align: right;
  font-family: 'Jost', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-top: 32px;
}


/* ─── FOOTER ─── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-social { display: flex; align-items: center; gap: 20px; }

.footer-social a {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
}

.footer-social a:hover { color: var(--text); }
.footer-sep { color: var(--border); }

.footer-copy {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--subtle);
}


/* ─── HOME TITLE ─── */

.home-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text);
  padding: 40px 52px 0;
  line-height: 1;
}


/* ─── HOME SLIDESHOW ─── */

.home-slideshow {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 32px 80px;
}

.slide-track {
  flex: 1;
  max-width: 860px;
  text-align: center;
}

.slide-item {
  display: none;
}

.slide-item.active {
  display: block;
  animation: slideFade 0.35s ease;
}

@keyframes slideFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-item img {
  max-height: 72vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.slide-item .gallery-caption {
  text-align: center;
  padding: 12px 0 0;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--subtle);
  font-size: 48px;
  font-weight: 200;
  line-height: 1;
  padding: 16px 12px;
  transition: color 0.25s;
  user-select: none;
  z-index: 10;
}

.slide-arrow:hover { color: var(--text); }
.slide-prev { left: 20px; }
.slide-next { right: 20px; }

/* ── Dot indicators ── */
.slide-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 0 32px;
}

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.slide-dot.active { background: var(--subtle); transform: scale(1.3); }
.slide-dot:hover  { background: var(--subtle); }


/* ─── POSTERS SLIDESHOW (built by JS from .posters-gallery) ── */

.posters-slideshow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 80px 72px;
}

.posters-slideshow .slide-track {
  flex: 1;
  max-width: 560px;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.posters-slideshow .slide-item   { display: none; }
.posters-slideshow .slide-item.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideFade 0.35s ease;
}

.posters-slideshow .slide-item img {
  max-height: 60vh;
  width: auto;
  max-width: 100%;
}


/* ─── SERIES SLIDESHOW (built by JS from .gallery) ── */

main.has-slideshow {
  display: flex;
  flex-direction: column;
}

.series-slideshow {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 16px 80px 48px;
}

.series-slideshow .slide-track {
  flex: 1;
  max-width: 860px;
  height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.series-slideshow .slide-item   { display: none; }
.series-slideshow .slide-item.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: slideFade 0.35s ease;
}

.series-slideshow .slide-item img {
  max-height: 68vh;
  width: auto;
  max-width: 100%;
}

.series-slideshow .gallery-caption {
  text-align: center;
  padding: 12px 0 0;
}


/* ─── LIGHTBOX ─── */

.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 20px;
  animation: lbFade 0.18s ease;
}

@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.lb-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 12px 80px rgba(0,0,0,0.7);
  cursor: default;
}

.lb-caption {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  pointer-events: none;
}

.lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
  font-weight: 200;
}

.lb-close:hover { color: #fff; }


/* ─── RESPONSIVE ─── */

@media (max-width: 960px) {
  .site-header  { padding: 0 28px; }
  .home-hero    { padding: 56px 28px 44px; }
  .home-hero .hero-name { font-size: 52px; }
  .home-section-label { padding: 0 28px 24px; }
  .gallery      { column-count: 2; padding: 0 28px 60px; }
  .series-grid  { grid-template-columns: repeat(2,1fr); padding: 0 28px 60px; }
  .posters-gallery { column-count: 3; padding: 20px 28px 60px; }
  .bio-layout   { padding: 48px 28px 20px; }
  .section-label { padding: 40px 28px 18px; }
  .news-intro   { padding: 0 28px 48px; }
  .news-images  { padding: 0 28px 56px; }
  .news-divider { margin: 0 auto 56px; }
  .tribute-section { padding: 0 28px 72px; }
  .back-link    { padding: 24px 28px 0; }
  .site-footer  { padding: 24px 28px; gap: 20px; }
}

@media (max-width: 640px) {
  .site-header  { padding: 0 16px; height: 56px; }
  .site-logo    { font-size: 17px; }
  .site-nav     { gap: 14px; }
  .site-nav a   { font-size: 8.5px; }
  .home-hero    { padding: 44px 16px 36px; }
  .home-hero .hero-name { font-size: 38px; }
  .home-section-label { padding: 0 16px 20px; }
  .page-heading { padding: 44px 16px 32px; font-size: 30px; }
  .gallery      { column-count: 1; padding: 0 16px 48px; }
  .series-grid  { grid-template-columns: 1fr; padding: 0 16px 48px; }
  .posters-gallery { column-count: 2; padding: 16px 16px 48px; }
  .bio-layout   { padding: 36px 16px 16px; }
  .section-label { padding: 36px 16px 16px; }
  .news-intro   { padding: 0 16px 40px; }
  .news-images  { padding: 0 16px 48px; flex-direction: column; align-items: center; }
  .news-divider { margin: 0 auto 48px; }
  .tribute-section { padding: 0 16px 56px; }
  .news-col h3  { font-size: 24px; }
  .news-col p, .tribute-section p { font-size: 17px; }
  .back-link    { padding: 20px 16px 0; }
  .site-footer  { padding: 20px 16px; gap: 14px; flex-direction: column; }
}
