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

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #666;
  --color-border: #ddd;
  --color-accent: #1a1a1a;
  --font-serif: 'Calibri Light', 'Calibri', Candara, 'Segoe UI', Optima, Arial, sans-serif;
  --font-sans: 'Calibri Light', 'Calibri', Candara, 'Segoe UI', Optima, Arial, sans-serif;
  --max-width: 1100px;
  --spacing: clamp(1.5rem, 4vw, 3rem);
}

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { text-transform: uppercase; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* === HEADER & NAV === */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--spacing);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

nav a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.2s;
}

nav a:hover,
nav a.active { color: var(--color-text); text-decoration: none; }

/* burger */
.burger {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger-label {
  font-size: 0.65rem;
  color: var(--color-text);
  letter-spacing: 0.03em;
  line-height: 1;
  user-select: none;
}
.burger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.burger-icon span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open .burger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open .burger-icon span:nth-child(2) { opacity: 0; }
.burger.open .burger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu.open { display: flex !important; }

/* === MAIN === */
main { min-height: calc(100vh - 64px - 80px); }

/* === PAGE HEADER === */
.page-header {
  padding: calc(var(--spacing) * 2) 0 var(--spacing);
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.page-header p {
  max-width: 640px;
  color: var(--color-muted);
  font-size: 1rem;
}

/* === SECTION SPACING === */
.section { padding: var(--spacing) 0; }
.section + .section { border-top: 1px solid var(--color-border); }

/* === HERO (accueil) === */
.hero {
  padding: calc(var(--spacing) * 2) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing);
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-text p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  max-width: 560px;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.hero-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.link-arrow {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.link-arrow:hover { opacity: 0.6; text-decoration: none; }

/* === VIDEO === */
.video-wrapper {
  max-width: 380px;
  margin: 0 auto;
  background: #111;
}

.video-wrapper iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
}

.video-section {
  padding: var(--spacing) 0;
}

.video-section h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

/* === SERIES OVERVIEW (accueil / galerie) === */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: var(--spacing) 0;
}

.series-card a { display: block; }
.series-card a:hover .series-thumb { opacity: 0.85; }
.series-card a:hover { text-decoration: none; }

.series-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: opacity 0.3s;
  background: #eee;
}

.series-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
}

.series-card p {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* === GALLERY GRID === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: var(--spacing) 0;
}

.gallery-item {
  cursor: pointer;
  overflow: hidden;
}

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

/* Crop adapté par orientation de série */
.gallery-grid--portrait-tall .gallery-item { aspect-ratio: 2/3; }
.gallery-grid--portrait      .gallery-item { aspect-ratio: 4/5; }
.gallery-grid--landscape     .gallery-item { aspect-ratio: 4/3; }
.gallery-grid--square        .gallery-item { aspect-ratio: 1/1; }

.gallery-grid--portrait-tall .gallery-item img,
.gallery-grid--portrait      .gallery-item img,
.gallery-grid--landscape     .gallery-item img,
.gallery-grid--square        .gallery-item img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.gallery-item:hover img { transform: scale(1.03); opacity: 0.9; }

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  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: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.6;
  transition: opacity 0.2s;
  line-height: 1;
}
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* === PROSE TEXT === */
.prose {
  max-width: 680px;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 2rem 0 0.8rem;
}

.prose p {
  margin-bottom: 1.2em;
  color: var(--color-text);
}

.prose p + p { margin-top: 0; }

/* === BIO === */
.bio-sections {
  padding-top: calc(var(--spacing) * 0.5);
}

.bio-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding: calc(var(--spacing) * 1.5) 0;
  align-items: center;
  border-top: 1px solid var(--color-border);
}

.bio-section:first-child {
  border-top: none;
  padding-top: 0;
}

.bio-section--reverse .bio-section-image {
  order: -1;
}

.bio-section-image img {
  width: 100%;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
}

.bio-section-text h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.bio-section-text p {
  margin-bottom: 1.2em;
  line-height: 1.7;
}

.bio-section-text p:last-child {
  margin-bottom: 0;
}

/* === EXPOSITIONS === */
.expo-section { padding: var(--spacing) 0; }

.expo-section h2 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.expo-list { display: flex; flex-direction: column; gap: 1.5rem; }

.expo-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
}

.expo-item h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
}

.expo-item .expo-meta {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.expo-item .expo-date {
  font-size: 0.82rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.1rem;
}

/* === PARCOURS (timeline) === */
.parcours { padding: var(--spacing) 0; }

.parcours h2 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.parcours-list { display: flex; flex-direction: column; gap: 0.75rem; }

.parcours-item {
  display: flex;
  gap: 1.5rem;
  font-size: 0.92rem;
}

.parcours-year {
  min-width: 100px;
  color: var(--color-muted);
  font-size: 0.82rem;
  padding-top: 0.1rem;
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--spacing) * 1.5);
  padding: var(--spacing) 0;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.contact-info p { color: var(--color-muted); margin-bottom: 0.5rem; font-size: 0.95rem; }

.contact-info a { border-bottom: 1px solid var(--color-muted); }
.contact-info a:hover { color: var(--color-text); border-bottom-color: var(--color-text); text-decoration: none; }

/* === ACQUERIR === */
.acquerir-text {
  max-width: 680px;
  padding: var(--spacing) 0;
}

.acquerir-text p { margin-bottom: 1.2em; }

.acquerir-cta {
  margin-top: 2rem;
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.acquerir-cta:hover { opacity: 0.6; text-decoration: none; }

/* === SERIE PAGE === */
.serie-header {
  padding: calc(var(--spacing) * 2) 0 var(--spacing);
  max-width: 680px;
}

.serie-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.serie-header p { color: var(--color-muted); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--spacing);
  transition: color 0.2s;
}
.back-link:hover { color: var(--color-text); text-decoration: none; }
.back-link::before { content: '←'; }

/* === FOOTER === */
footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: calc(var(--spacing) * 2);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
  font-size: 0.82rem;
  color: var(--color-muted);
}

.footer-inner a { color: var(--color-muted); }
.footer-inner a:hover { color: var(--color-text); text-decoration: none; }

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* === RESPONSIVE === */
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .bio-layout { grid-template-columns: 1fr 2fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .expo-item { grid-template-columns: 2fr 1fr; align-items: start; }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem var(--spacing);
  }
  .nav-menu ul {
    flex-direction: column;
    gap: 1rem;
  }
  nav a { font-size: 1rem; }
  .burger { display: flex; }
  .gallery-grid { gap: 0.5rem; }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
  .bio-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .bio-section--reverse .bio-section-image {
    order: 0;
  }
}

/* === SLIDESHOW HERO === */
.slideshow-hero {
  position: relative;
  height: calc(100vh - 64px);
  min-height: 480px;
  overflow: hidden;
}

.slides-container {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.slide.active { opacity: 1; }

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform-origin: center center;
}

.slide.active .slide-bg {
  animation: kenburns 3.7s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

.slideshow-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.12) 40%,
    rgba(0,0,0,0.60) 100%
  );
}

.slideshow-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--spacing) clamp(2.5rem, 6vw, 5rem);
  color: #fff;
}

.slideshow-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.9rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.slideshow-content p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 560px;
  margin-bottom: 2rem;
  opacity: 0.88;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  line-height: 1.6;
}

.slideshow-content .hero-links { gap: 2rem; }

.slideshow-content .link-arrow {
  color: rgba(255,255,255,0.9);
  border-bottom-color: rgba(255,255,255,0.7);
}
.slideshow-content .link-arrow:hover { opacity: 0.75; }

/* === "VOIR PLUS" bouton galerie === */
.gallery-more-btn {
  display: block;
  margin: 1.2rem auto 0;
  padding: 0.6rem 2rem;
  background: none;
  border: 1px solid var(--color-border);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--color-muted);
  transition: border-color 0.2s, color 0.2s;
}
.gallery-more-btn:hover { border-color: var(--color-text); color: var(--color-text); }

/* galerie.html section header inline styles → classes */
.serie-section-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.serie-section-title a { border-bottom: 1px solid currentColor; }
.serie-section-title a:hover { opacity: 0.7; text-decoration: none; }
.serie-section-year { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 1.2rem; }

/* === GALLERY ARTWORK WRAPPER (pages série — légende sous crop) === */
.gallery-artwork {
  display: flex;
  flex-direction: column;
}

/* === GALERIE ACQUÉRIR (proportions naturelles + légendes) === */
.gallery-grid--acquerir .gallery-item {
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.gallery-grid--acquerir .gallery-item img {
  width: 100%;
  height: auto;
  object-fit: initial;
  transition: transform 0.4s, opacity 0.3s;
}

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

.gallery-caption {
  font-size: 0.8rem;
  color: var(--color-muted);
  padding: 0.45rem 0 0.1rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* === BOUTON GALERIE COMPLÈTE (accueil) === */
.section-cta {
  text-align: center;
  padding: calc(var(--spacing) * 0.5) 0 var(--spacing);
  border-top: 1px solid var(--color-border);
}

/* === VIDEO CREDIT (bio) === */
.video-credit {
  margin-bottom: 1.2rem;
}
.video-credit-logo {
  max-height: 48px;
  width: auto;
  display: block;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.video-credit-logo:hover { opacity: 1; }

/* === AFFICHES (expositions) === */
.expo-posters {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: var(--spacing) 0;
  align-items: flex-start;
}
.expo-poster {
  flex: 1;
  min-width: 180px;
  max-width: 340px;
}
.expo-poster img {
  width: 100%;
  display: block;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}
.expo-poster-caption {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
