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

:root {
  --green: #4a9c5a;
  --white: #fff;
  --gray: #d9d9d9;
  --font-oswald: 'Oswald', sans-serif;
  --font-raleway: 'raleway', sans-serif;
  --font-didot: 'GFS Didot', 'Didot', Georgia, serif;
}

html { scroll-behavior: smooth; font-size: 19px; }

body {
  background: #000;
  color: var(--white);
  font-family: var(--font-raleway);
  min-height: 100vh;
}

/* ── HERO ── */
.hero {
  padding: 3rem 3rem 3rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.logo-wrap {
  flex-shrink: 0;
}

.logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
}

.logo-fallback svg {
  display: block;
}

.site-title {
  font-family: var(--font-oswald);
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
  line-height: 1;
}

/* ── GRILLE DE CASES ── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem 6rem;
}

.tabs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0;
}

.tab-card {
  font-family: var(--font-raleway);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
  background: transparent;
  border: 1px solid #333;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-align: center;
  flex: 1 1 auto;
  min-width: 160px;
}

.tab-card:hover {
  border-color: var(--green);
  color: var(--green);
}

.tab-card.active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(74, 156, 90, 0.07);
}

/* ── ACCORDION PANELS ── */
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  background: #000;
  border-left: 1px solid #1a1a1a;
  border-right: 1px solid #1a1a1a;
}

.accordion-panel.open {
  max-height: 9000px;
  border-bottom: 1px solid #1a1a1a;
}

.panel-inner {
  padding: 3rem 2.5rem 3.5rem;
}

.panel-title {
  font-family: var(--font-raleway);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #1a1a1a;
}

/* ── PRÉSENTATION ── */
.bio-block {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: center;
}

.bio-block.reverse {
  grid-template-columns: 360px 1fr;
}
.bio-block.reverse .photo-frame { order: 1; }
.bio-block.reverse .bio-text { order: 2; }

.bio-block + .bio-block { margin-top: 3rem; }

.photo-frame {
  background: #0d0d0d;
  border: 1px solid #222;
  overflow: hidden;
}

.portrait-frame {
  aspect-ratio: 3/4;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-text {
  font-family: var(--font-didot);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.85;
  color: #d9d9d9;
}

.bio-text p + p { margin-top: 1.2rem; }

/* ── ARTWORKS ── */
.artwork {
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #111;
}
.artwork:last-child { border-bottom: none; margin-bottom: 0; }

.artwork-title {
  font-family: var(--font-raleway);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.artwork-subtitle {
  font-family: var(--font-didot);
  font-style: italic;
  color: #d9d9d9;
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 0.45rem;
}

.artwork-subtitle-names {
  font-family: var(--font-didot);
  font-style: italic;
  color: #d9d9d9;
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 0.7rem;
}

.artwork-info {
  font-family: var(--font-didot);
  font-size: 1.15rem;
  color: #d9d9d9;
  margin-bottom: 0.6rem;
  font-style: italic;
  line-height: 1.5;
}

.artwork-status {
  font-family: var(--font-raleway);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.4rem;
}
.artwork-status.available  { color: var(--green); }
.artwork-status.exposition { color: var(--green); }
.artwork-status.collection { color: var(--gray); }

.translations {
  margin: 0.5rem 0 0.7rem;
  padding-left: 1rem;
  border-left: 2px solid #2a2a2a;
}
.translations p {
  font-family: var(--font-didot);
  font-size: 1.1rem;
  color: #d9d9d9;
  line-height: 1.7;
  font-style: italic;
}

/* ── PHOTO GRIDS (quinconce) ── */
.photo-grid {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.photo-grid.single { max-width: 480px; }

.photo-slot {
  flex: 1;
  background: #0d0d0d;
  border: 1px solid #1c1c1c;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.2s;
}
.photo-slot:hover { border-color: var(--green); }
.photo-slot.mid   { margin-top: 1.8rem; }

.photo-slot img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

/* ── VIDÉOS ── */
.video-slot {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3/4;
  background: #0d0d0d;
  border: 1px solid #1c1c1c;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}
.video-slot:hover { border-color: var(--green); }
.video-slot:hover .video-play-btn { background: var(--green); }

.video-slot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.video-play-btn svg {
  width: 26px;
  height: 26px;
  margin-left: 2px;
}

.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  z-index: 2;
}
.video-controls.visible { display: flex; }

.vc-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.vc-btn:hover { opacity: 1; }
.vc-btn svg { width: 20px; height: 20px; }

.vc-time, .vc-duration {
  font-family: var(--font-raleway);
  font-size: 0.72rem;
  color: var(--white);
  flex-shrink: 0;
  min-width: 2.4em;
}

.vc-progress {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.vc-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
}
.vc-progress::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: var(--green);
}
.vc-progress::-moz-range-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

/* ── EXPOSITIONS ── */
.expo-item {
  padding: 1.5rem;
  border: 1px solid #1c1c1c;
  margin-bottom: 1.5rem;
}
.expo-item h3 {
  font-family: var(--font-raleway);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green);
  margin-bottom: 0.7rem;
}
.expo-item p {
  font-family: var(--font-didot);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.6;
}

.expo-pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.expo-pdf-link {
  display: inline-block;
  font-family: var(--font-raleway);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 0.55rem 1.2rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.expo-pdf-link:hover { background: var(--green); color: #000; }

.expo-illustration {
  margin-top: 2.5rem;
}
.expo-illustration .single-illustration {
  max-width: 420px;
  cursor: default;
}
.expo-illustration figcaption {
  font-family: var(--font-didot);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gray);
  margin-top: 0.8rem;
  max-width: 420px;
  line-height: 1.6;
}

/* ── RECHERCHE ── */
.search-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  font-family: var(--font-raleway);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: none;
  border: 1px solid #333;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover, .tag.active { border-color: var(--green); color: var(--green); }
.tag.active { background: rgba(74, 156, 90, 0.1); }

.search-results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: none;
  border: 1px solid #1c1c1c;
  padding: 0.75rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s;
}
.search-result-item:hover { border-color: var(--green); }

.sri-thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: #0d0d0d;
  background-size: cover;
  background-position: center;
}

.sri-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sri-title {
  font-family: var(--font-raleway);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

.sri-panel {
  font-family: var(--font-raleway);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}

/* ── CONTACT ── */
.contact-intro {
  font-family: var(--font-didot);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--white);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1a1a1a;
}

.contact-line {
  font-family: var(--font-raleway);
  font-size: 1.3rem;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-line:hover { color: var(--green); }

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}
.contact-socials a {
  display: inline-block;
  font-family: var(--font-raleway);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 0.55rem 1.2rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.contact-socials a:hover { background: var(--green); color: #000; }

/* ── MISC ── */
.placeholder-text {
  font-size: 1rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 1.2rem; right: 1.5rem; font-size: 1.4rem; }
.lb-prev  { left: 1.5rem;  top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .tabs-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-block,
  .bio-block.reverse {
    grid-template-columns: 1fr;
  }
  .bio-block .photo-frame,
  .bio-block.reverse .photo-frame { order: 0; }
  .bio-block .bio-text,
  .bio-block.reverse .bio-text { order: 1; }
  .portrait-frame { max-width: 280px; margin: 0 auto; }

  .photo-grid {
    flex-wrap: wrap;
  }
  .photo-grid.single { max-width: 100%; }
  .photo-slot {
    flex: 0 0 calc(50% - 0.375rem);
  }
  .photo-slot.mid { margin-top: 0; }

  .hero { padding: 2rem 1.5rem 1.5rem; }
  main { padding: 0 1.5rem 4rem; }
  .panel-inner { padding: 2rem 1.25rem 2.5rem; }
}

@media (max-width: 600px) {
  html { font-size: 16px; }

  .hero { padding: 1.5rem 1rem 1rem; }
  .hero-inner {
    flex-direction: column;
    gap: 1rem;
  }
  .logo { width: 90px; height: 90px; }
  .site-title { font-size: clamp(2.2rem, 13vw, 3.5rem); }

  main { padding: 0 1rem 3rem; }
  .tabs-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-inner { padding: 1.5rem 1rem 2rem; }

  .panel-title {
    font-size: 1.9rem;
    letter-spacing: 0.02em;
  }
}
