/* MARIANNE PILOTAZ — BASE ET TYPOGRAPHIE HELVETICA */
:root {
  --text: #111;
  --line: #ddd;
  --space: 16px;
  --photo-width: clamp(300px, 35vw, 510px);
  --photo-height: auto;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* En-tête inspiré de la mise en page Jane Paasch */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
}
.site-name {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 4px;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-nav a,
.site-nav .nav-pending {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 2px;
  white-space: nowrap;
}
.site-nav a:hover { color: #555; }
.site-nav a.active {
  font-weight: 700;
}
.nav-pending { cursor: default; }

/* Introduction */
.home-intro {
  max-width: 800px;
  margin: 40px auto 44px;
  padding: 0 20px;
  text-align: left;
}
.intro-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 40px;
  letter-spacing: 0;
}
.intro-text {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  letter-spacing: 0;
}

/* Bande d'images en mouvement continu de gauche vers la droite */
.film {
  width: 100%;
  overflow: hidden;
  padding: 0 0 40px;
}
.film-track {
  display: flex;
  width: max-content;
  animation: slide-right 36s linear infinite;
  will-change: transform;
}
.film-group {
  display: flex;
  flex: 0 0 auto;
  gap: var(--space);
  padding-right: var(--space);
}
.film img {
  display: block;
  width: var(--photo-width);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  flex-shrink: 0;
}
@keyframes slide-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (max-width: 900px) {
  .site-header { padding: 16px 24px; }
  .site-nav { gap: 14px; }
}
@media (max-width: 640px) {
  :root { --space: 10px; --photo-width: 78vw; }
  .site-header {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 16px 12px;
  }
  .site-name { font-size: 19px; letter-spacing: 3px; }
  .site-nav {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .site-nav a,
  .site-nav .nav-pending {
    font-size: 14px;
    letter-spacing: 0;
  }
  .home-intro { margin: 40px auto 35px; padding: 0 16px; }
  .intro-title, .intro-text { font-size: 16px; }
  .film { padding-bottom: 30px; }
  .film-track { animation-duration: 28s; }
}
@media (prefers-reduced-motion: reduce) {
  .film-track { animation: none; transform: translateX(0); }
  .film { overflow-x: auto; }
}


/* ========== ŒUVRES / EGO 2026 – SÉRIE A ========== */
.works-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 42px 40px 90px;
}
.works-intro {
  margin: 0 0 38px;
}
.works-intro h2 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.5;
}
.works-intro p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 4px;
}
.artworks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 28px;
}
.artwork {
  margin: 0;
  min-width: 0;
}
.artwork-zoom {
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  display: block;
  cursor: zoom-in;
}
.artwork-zoom img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity .2s ease;
}
.artwork-zoom:hover img { opacity: .9; }
.artwork-zoom:focus-visible,
.dialog-close:focus-visible {
  outline: 2px solid #111;
  outline-offset: 5px;
}
.artwork figcaption,
.series-overview figcaption {
  margin-top: 15px;
  color: #111;
  font-size: 13px;
  line-height: 1.55;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .35px;
  overflow-wrap: anywhere;
}
/* Vue d'ensemble : alignée sur la largeur des trois œuvres de chaque rangée. */
.series-overview {
  margin: 70px 0 0;
  width: 100%;
}
.series-overview-placeholder {
  width: 100%;
  aspect-ratio: 2.05 / 1;
  border: 1px solid #dedede;
  display: grid;
  place-items: center;
  background: #fafafa;
  text-align: center;
  padding: 30px;
  color: #777;
  font-size: 13px;
  font-style: italic;
  line-height: 1.9;
  letter-spacing: .75px;
}
.series-overview > img {
  width: 100%;
  height: auto;
  display: block;
}
.works-details {
  margin: 50px 0 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.7;
}
.works-details p { margin: 0 0 5px; }
.artwork-dialog {
  width: min(1100px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 20px;
  border: none;
  background: #fff;
  box-shadow: 0 12px 50px rgba(0,0,0,.2);
  color: #111;
}
.artwork-dialog::backdrop { background: rgba(0,0,0,.74); }
.dialog-inner { position: relative; text-align: center; }
.dialog-close {
  position: absolute;
  top: -13px;
  right: -10px;
  border: none;
  background: #fff;
  font-size: 34px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 5px 10px;
}
.dialog-image {
  max-width: 100%;
  max-height: calc(100dvh - 130px);
  width: auto;
  height: auto;
  display: block;
  margin: auto;
  object-fit: contain;
}
.dialog-caption {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-style: italic;
  text-transform: uppercase;
  font-size: 12px;
  padding-top: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .works-page { padding: 36px 24px 65px; }
  .artworks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 26px; }
}
@media (max-width: 640px) {
  .works-page { padding: 35px 18px 65px; }
  .works-intro { margin-bottom: 32px; }
  .works-intro h2 { font-size: 16px; }
  .artworks-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .artwork figcaption,
.series-overview figcaption { font-size: 12px; }
  .series-overview { margin-top: 48px; }
  .series-overview-placeholder { aspect-ratio: 1.4 / 1; font-size: 11px; }
  .works-details { margin-top: 35px; font-size: 13px; }
  .artwork-dialog { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .artwork-zoom img { transition: none; }
}


/* Séries multiples sur la page Œuvres */
.works-series-separated {
  margin-top: 90px;
  padding-top: 86px;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .works-series-separated {
    margin-top: 70px;
    padding-top: 60px;
  }
}


/* ========== À PROPOS ========== */
.about-page {
  max-width: 840px;
  margin: 0 auto;
  padding: 46px 20px 100px;
}
.about-opening-image {
  margin: 0 0 62px;
}
.about-opening-image img {
  display: block;
  width: 100%;
  height: auto;
}
.about-interview h2 {
  /* Exactement la typographie de « DU CŒUR À LA MAIN » sur la HOME. */
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0;
  margin: 0 0 44px;
}
.about-question {
  margin: 0 0 45px;
}
.about-question h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
  margin: 0 0 20px;
}
.about-question p,
.about-biography p {
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 22px;
}
.about-question cite { font-style: italic; }
.about-biography {
  margin-top: 62px;
  padding-top: 36px;
  border-top: 1px solid #ddd;
}
.about-biography p { font-style: italic; }
@media (max-width: 640px) {
  .about-page { padding: 32px 16px 65px; }
  .about-opening-image { margin-bottom: 43px; }
  .about-interview h2 { font-size: 16px; margin-bottom: 33px; }
  .about-question { margin-bottom: 38px; }
  .about-question h3 { font-size: 16px; }
  .about-question p, .about-biography p { font-size: 15px; line-height: 1.8; }
  .about-biography { margin-top: 46px; }
}


/* ========== CONTACT ========== */
.contact-page {
  max-width: 840px;
  margin: 0 auto;
  padding: 42px 20px 90px;
  font-size: 16px;
  line-height: 1.7;
}
.contact-introduction {
  margin: 0 0 24px;
  max-width: 790px;
}
.contact-location { margin: 0 0 26px; }
.contact-details h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0;
  margin: 0 0 12px;
}
.contact-details h2 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.contact-details h2 a:hover { color: #555; }
.contact-label { margin: 0 0 2px; }
.contact-email { margin: 0; }
.contact-email a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.contact-email a:hover { color: #555; }
.contact-details h2 a:focus-visible,
.contact-email a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 640px) {
  .contact-page { padding: 32px 16px 65px; font-size: 16px; }
  .contact-introduction { margin-bottom: 22px; }
  .contact-location { margin-bottom: 24px; }
}


/* Sélecteur discret des langues : mêmes codes visuels sur toutes les pages. */
.site-nav .language-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  gap: 0;
  margin-left: 5px;
  font-size: 12px;
  letter-spacing: .7px;
}
.site-nav .language-switch a {
  font-size: 12px;
  letter-spacing: .7px;
  font-weight: 400;
  text-decoration: none;
}
.site-nav .language-switch a.language-current { font-weight: 700; }
.site-nav .language-switch .language-separator { margin: 0 6px; color: #777; }
@media (max-width: 640px) {
  .site-nav { flex-wrap: wrap; row-gap: 8px; }
  .site-nav .language-switch {
    flex-basis: 100%;
    justify-content: center;
    margin: 0;
  }
}
