@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/space-grotesk-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-grotesk-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-700.woff2') format('woff2');
}

:root {
  --bg: #ffffff;
  --fg: #000000;
  --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --gap: 8px;
  --cols: 4;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
}
img { display: block; max-width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: static;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
}
.brand-logo {
  display: block;
  line-height: 0;
}
.brand-logo img {
  height: 74px;
  width: auto;
  display: block;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-bottom: 3px;
}
.site-nav a {
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
}
.site-nav a.active {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 25px;
  }
  .site-nav a { font-size: 16px; }
}
@media (max-width: 768px) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 15px;
  }
  .site-nav a { font-size: 14px; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: static;
  max-width: 1360px;
  margin: 0 auto;
  padding: 64px 16px;
  text-align: center;
  background: transparent;
}
.site-footer p {
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
}

/* ---------- Gallery grid (masonry, aspect ratio preserved) ---------- */
.gallery-grid {
  column-count: var(--cols);
  column-gap: var(--gap);
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px;
}
.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: var(--gap);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
}
@media (max-width: 1023px) {
  :root { --cols: 3; }
}
@media (max-width: 767.98px) {
  :root { --cols: 2; }
}

/* ---------- Contact / about page ---------- */
.about-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
  min-height: 50vh;
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.about-email {
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font);
  font-size: 18px;
}
.about-instagram {
  display: inline-flex;
  width: 44px;
  height: 44px;
}
.about-handle {
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
}
.about-copyright {
  font-family: var(--font);
  font-size: 14px;
  opacity: 0.6;
  color: var(--fg);
}

/* ---------- Accueil : 2 grandes tuiles LIVE / JUNG ---------- */
.home-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1760px;
  margin: 0 auto 40px;
  padding: 0 40px;
  box-sizing: border-box;
}
.home-tile {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 16 / 9;
}
.home-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
}
.home-tile-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.jung-logo-label {
  height: 54px; /* ~ même taille visuelle que le texte "Live" */
  width: auto;
  max-width: 60%;
  filter: invert(1); /* logo noir -> blanc sur la tuile sombre */
}
.home-tile:hover::after { background: rgba(0, 0, 0, 0.45); }
.home-tile:hover .home-tile-label { opacity: 1; }

@media (max-width: 768px) {
  .home-tiles {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .home-tile { aspect-ratio: 4 / 3; }
  .home-tile::after { background: rgba(0, 0, 0, 0.28); }
  .home-tile-label { opacity: 1; }
}

/* ---------- Live : titre par concert ---------- */
.live-page { padding: 0 40px; }
.concert { margin-bottom: 56px; }
.concert-title {
  text-align: left;
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg);
  margin: 40px 0 24px;
}
.live-page .concert:first-child .concert-title { margin-top: 0; }

/* ---------- Lightbox (agrandissement plein écran) ---------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-overlay[hidden] { display: none; }
.lb-stage {
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  -webkit-user-select: none;
  user-select: none;
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 16px; right: 22px; font-size: 40px; }
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  padding: 0 20px;
}
.lb-prev { left: 6px; }
.lb-next { right: 6px; }
@media (max-width: 768px) {
  .lb-prev, .lb-next { font-size: 44px; padding: 0 8px; }
  .lb-close { font-size: 34px; top: 12px; right: 14px; }
}

/* ---------- JUNG : "Soon available" ---------- */
.soon {
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.soon-text {
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 500;
}

/* ---------- Live : galerie en rangées justifiées (bord à bord) ---------- */
.live-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}
/* La dernière rangée (incomplète) ne s'étire pas : ce faux élément absorbe
   l'espace restant, les photos gardent leur taille naturelle. */
.live-gallery::after {
  content: "";
  flex-grow: 999999;
}
.live-item {
  height: 260px;
  overflow: hidden;
  display: block;
}
.live-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .live-item { height: 190px; }
  .live-page { padding: 0 16px; }
}

/* ---------- Police JUNG : Cormorant Garamond (auto-hébergée) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-600.woff2') format('woff2');
}
:root {
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

/* ---------- Onglet JUNG : logo dans le menu ---------- */
.nav-jung {
  display: inline-flex;
  align-items: center;
}
.nav-jung img {
  height: 22px;
  width: auto;
  display: block;
}

/* ---------- Page JUNG : liste des collaborations ---------- */
.jung-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 80px;
}
.jung-list {
  counter-reset: jung;               /* démarre la numérotation automatique */
}
.jung-entry {
  counter-increment: jung;           /* 1., 2., 3.… sans rien gérer à la main */
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.jung-entry:first-child {
  border-top: none;
}
.jung-portrait img,
.jung-oeuvre img {
  width: 100%;
  height: auto;
}
.jung-text {
  position: relative;
}
.jung-text::before {
  content: counter(jung) ".";        /* le numéro affiché */
  display: block;
  font-family: var(--font);
  font-size: 20px;
  margin-bottom: 16px;
}
.jung-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 46px;
  line-height: 1.05;
  margin-bottom: 24px;
}
.jung-interview {
  font-family: var(--font);
  font-weight: 500;
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 12px;
}
.jung-body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}
.jung-body p {
  margin-bottom: 12px;
}

/* Empilage propre sur tablette/mobile */
@media (max-width: 900px) {
  .jung-entry {
    grid-template-columns: 1fr 1fr;
  }
  .jung-text {
    grid-column: 1 / -1;
    margin-top: 24px;
  }
}
@media (max-width: 560px) {
  .jung-entry {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
