:root {
  --pink: #FF2D8A;
  --yellow: #FFE600;
  --black: #0A0A0A;
  --white: #FAFAF5;
  --grey: #1A1A1A;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: var(--black);
  border-bottom: 2px solid var(--pink);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
}
.nav-logo span { color: var(--pink); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--pink); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--black);
  border-bottom: 2px solid var(--pink);
  z-index: 99;
  flex-direction: column;
  padding: 1.5rem 2rem;
  gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
}
.mobile-menu a:hover { color: var(--pink); }

/* ─── PAGES ─── */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 64px;
}
.page.active { display: block; }

/* ─── HOME ─── */
.hero {
  position: relative;
  /* Moins que la hauteur de l'écran, pour qu'on voie qu'il y a une suite */
  min-height: calc(75vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Version allégée et déjà assombrie (luminosité 0.4) : voir README, point 18 */
  background-image: url('photos_bled2025/bled2025_13_hero.jpg');
  background-size: cover;
  background-position: center 30%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  /* limité aussi par la hauteur de l'écran, pour que le bas de l'en-tête reste visible */
  font-size: clamp(4rem, min(14vw, 12vh), 11rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--pink); }

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  max-width: 560px;
  color: rgba(250,250,245,0.75);
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}
.hero-cta:hover { background: var(--yellow); color: var(--black); transform: translateY(-2px); }

/* Dates section */
.section {
  padding: 5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 3rem;
}

.dates-empty {
  border: 1px solid rgba(255,255,255,0.15);
  padding: 3rem 2rem;
  text-align: center;
  color: rgba(250,250,245,0.4);
  font-style: italic;
  font-size: 0.95rem;
}

.home-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 3.5rem 2rem 5rem;
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.home-intro p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(250,250,245,0.75);
}
.home-intro p + p { margin-top: 1rem; }
.home-intro-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat {
  margin-bottom: 2rem;
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,250,245,0.5);
}

/* ─── COLLECTIF PAGE ─── */
.collectif-header {
  padding: 5rem 2rem 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.member-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3/4;
  text-decoration: none;
}

.member-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(30%);
  transition: transform 0.5s ease, filter 0.4s ease;
}

.member-card:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

/* The overlay sits lower than the card bottom, so only the name shows and the
   "Infos" button is hidden below the edge. On hover it slides up: the button
   appears and pushes the name up. --cta-space = button height + its margin. */
.member-overlay {
  --cta-space: 2.45rem;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.5) 60%, transparent 100%);
  padding: 3rem 1.5rem 1.5rem;
  transform: translateY(var(--cta-space));
  transition: transform 0.4s ease;
}
.member-card:hover .member-overlay {
  transform: translateY(0);
}

.member-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--white);
}

.member-cta {
  display: inline-block;
  margin-top: 0.75rem;
  background: var(--pink);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  opacity: 0;
  transition: opacity 0.4s ease, background 0.2s, color 0.2s;
}
.member-card:hover .member-cta { opacity: 1; }
.member-cta:hover { background: var(--yellow); color: var(--black); }

/* Mobile: no hover, so the button is always shown */
@media (hover: none) {
  .member-overlay { transform: translateY(0); }
  .member-cta { opacity: 1; }
}

/* ─── PERSON PAGES ─── */
.person-body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.person-photos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.person-photo {
  position: relative;
  margin: 0;
}
.person-photo img {
  width: 100%;
  height: auto; /* proportions tirées des attributs width/height du HTML */
  display: block;
}

/* Discreet photographer credit, bottom-right of each photo */
.photo-credit {
  position: absolute;
  bottom: 0.6rem; right: 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(250,250,245,0.75);
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.person-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(250,250,245,0.75);
  margin-bottom: 1rem;
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--yellow); }

/* ─── GALLERY ─── */
/* .gallery-item = thumbnail + optional hidden .photo-overlay (.photo-title, .photo-description),
   read by script.js and shown in the lightbox only. */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.photo-overlay { display: none; }

.photo-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.photo-description {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(250,250,245,0.85);
}

/* Masonry layout */
.gallery-masonry {
  columns: 3;
  column-gap: 4px;
  padding: 0 4px 4px;
}

.gallery-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: 4px;
}

.gallery-masonry img {
  width: 100%;
  height: auto; /* proportions tirées des attributs width/height du HTML */
  display: block;
  filter: brightness(0.9);
  transition: transform 0.5s ease, filter 0.3s ease;
}
.gallery-masonry .gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* ─── SPECTACLES PAGE ─── */
.spectacle-hero {
  position: relative;
  height: 55vh;
  min-height: 350px;
  overflow: hidden;
}
.spectacle-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.spectacle-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}
.spectacle-tag {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  margin-bottom: 1rem;
  width: fit-content;
}
.spectacle-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  color: var(--white);
}

.spectacle-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.spectacle-text h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--pink);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}
.spectacle-text h3:first-child { margin-top: 0; }
.spectacle-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(250,250,245,0.75);
  margin-bottom: 1rem;
}

.spectacle-sidebar {
  padding-top: 0.5rem;
}
.spectacle-info-box {
  border: 1px solid rgba(255,255,255,0.15);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.spectacle-info-box h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 1rem;
}
.spectacle-info-box p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(250,250,245,0.65);
  margin-bottom: 0.5rem;
}
.spectacle-info-box p strong {
  color: var(--white);
  font-weight: 500;
}
.spectacle-info-box a {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
  text-decoration: none;
  transition: color 0.2s;
}
.spectacle-info-box a:hover { color: var(--yellow); }

.download-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--pink);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  text-decoration: none;
  width: 100%;
  justify-content: center;
  transition: background 0.2s;
}
.download-btn:hover { background: var(--yellow); color: var(--black); }
.download-btn svg { flex-shrink: 0; }

/* ─── GALLERY PAGE ─── */
.gallery-header {
  padding: 5rem 2rem 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.gallery-credit {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(250,250,245,0.4);
  margin-top: -2rem;
  margin-bottom: 3rem;
  padding: 0 2rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
}
/* Title + description written over the bottom of the image */
.lightbox-figure {
  position: relative;
  margin: 0;
}
.lightbox-figure img { display: block; }
.lightbox-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  max-height: 60%;
  overflow-y: auto;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.8) 75%, transparent 100%);
  padding: 3rem 1.5rem 1.5rem;
}
.lightbox-caption:empty { display: none; }
.lightbox-caption::-webkit-scrollbar { width: 3px; }
.lightbox-caption::-webkit-scrollbar-track { background: transparent; }
.lightbox-caption::-webkit-scrollbar-thumb { background: var(--pink); }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 1rem;
  z-index: 1;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
/* Touch devices: scrolling the gallery does the job, no arrows over the photo */
@media (hover: none) {
  .lightbox-prev, .lightbox-next { display: none; }
}
.lightbox-credit {
  position: absolute;
  bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
}

/* ─── GALERIE CHOICE ─── */
/* galerie.html : en-tête suivi des cartes → pas d'espace en plus de la marge du titre */
.gallery-header:has(+ .gallery-choices) { padding-bottom: 0; }

.gallery-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 0 2rem 5rem;
  max-width: 960px;
  margin: 0 auto;
}

.gallery-choice {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  text-decoration: none;
}

.gallery-choice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: transform 0.5s ease, filter 0.4s ease;
}
.gallery-choice:hover img {
  transform: scale(1.04);
  filter: brightness(0.95);
}

.gallery-choice-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.5) 60%, transparent 100%);
  padding: 3rem 1.5rem 1.5rem;
}
.gallery-choice-overlay .section-label { margin-bottom: 0.25rem; }

.gallery-choice-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: normal;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.gallery-choice-cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  transition: color 0.2s;
}
.gallery-choice:hover .gallery-choice-cta { color: var(--yellow); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--white);
}
.footer-logo span { color: var(--pink); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,250,245,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--pink); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(250,250,245,0.25);
  width: 100%;
  text-align: right;
}

/* Photographer credit link (gallery header + footer) */
.gallery-credit a, .footer-copy a, .dates-empty a {
  color: var(--pink);
  text-decoration: none;
  transition: color 0.2s;
}
.gallery-credit a:hover, .footer-copy a:hover, .dates-empty a:hover { color: var(--yellow); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .gallery-choices { grid-template-columns: 1fr; }
  .person-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .spectacle-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-masonry { columns: 2; }

  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-masonry { columns: 1; }
  /* Collectif : on garde 2 colonnes, avec un nom et un bouton plus compacts */
  .member-overlay { --cta-space: 1.9rem; padding: 2rem 0.75rem 0.75rem; }
  .member-name { font-size: 1.3rem; line-height: 1.1; }
  .member-cta { margin-top: 0.5rem; padding: 0.4rem 0.7rem; font-size: 0.6rem; letter-spacing: 0.15em; }
  .hero-title { font-size: 4.5rem; }
  nav { padding: 0 1rem; }
  .hero-content { padding: 3rem 1.5rem; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.page.active .hero-eyebrow { animation: fadeUp 0.6s ease 0.1s both; }
.page.active .hero-title { animation: fadeUp 0.6s ease 0.2s both; }
.page.active .hero-desc { animation: fadeUp 0.6s ease 0.35s both; }
.page.active .hero-cta { animation: fadeUp 0.6s ease 0.45s both; }
