/* =========================================================================
   Lucas Vuilleumier — design system
   Direction: "Affiche de théâtre" — poster/print aesthetic, boxed hairlines,
   one huge condensed display face, warm paper background.
   ========================================================================= */

:root {
  --cream: #f4f1ea;
  --cream-deep: #ece6d8;
  --ink: #17150f;
  --ink-soft: #4a463d;
  --muted: #8a8378;
  --red: #a4321e;
  --red-soft: #c14f36;
  --line: rgba(23, 21, 15, 0.16);
  --line-strong: #17150f;

  --font-display: 'Anton', sans-serif;
  --font-heading: 'Archivo', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-accent: 'Playfair Display', serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 44px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main { flex: 1 0 auto; }
body > .site-footer { flex-shrink: 0; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.kicker {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.kicker--muted { color: var(--muted); }

/* --------------------------------------------------------------------- *
 * Buttons
 * --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn:active { transform: translateY(1px); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--cream); }

.btn--sm { padding: 10px 18px; font-size: 11px; }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.tag-limited {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding: 0 0 2px 18px;
  white-space: nowrap;
  position: relative;
}

.tag-link {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tag-link:hover { color: var(--ink); border-color: var(--ink); }

/* Beacon: a solid red dot plus a ring that keeps expanding and fading. The
 * text itself stays fully legible; only the dot signals the urgency. */
.tag-limited::before,
.tag-limited::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--red);
}
.tag-limited::after {
  animation: tag-limited-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes tag-limited-ping {
  0% { transform: scale(1); opacity: 0.75; }
  80%, 100% { transform: scale(3); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tag-limited::after { animation: none; display: none; }
}

.tag-complet {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--muted);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------- *
 * Header / nav
 * --------------------------------------------------------------------- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line-strong);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.01em;
  line-height: 1;
  display: inline-block;
  position: relative;
  padding-right: 0.32em; /* room for the dot to land after the name */
}

/* Entrance, played once per page load: the name rises into place, then the
 * signature dot drops in from above and settles with a small squash. */
.brand-text {
  display: inline-block;
  animation: brand-text-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand-dot {
  position: absolute;
  left: 100%;
  bottom: 0.06em;
  width: 0.2em;
  height: 0.2em;
  margin-left: -0.28em;
  border-radius: 50%;
  background: var(--red);
  transform-origin: 50% 100%;
  animation: brand-dot-in 0.55s cubic-bezier(0.3, 0, 0.2, 1) 0.5s both;
}

@keyframes brand-text-in {
  from { opacity: 0; transform: translateY(0.35em); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes brand-dot-in {
  0%   { opacity: 0; transform: translateY(-1.4em) scale(1); }
  55%  { opacity: 1; transform: translateY(0) scale(1); }
  70%  { transform: translateY(0) scale(1.35, 0.65); }
  85%  { transform: translateY(-0.08em) scale(0.95, 1.08); }
  100% { transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-text, .brand-dot { animation: none; }
}

.site-nav {
  display: flex;
  gap: 36px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Each item carries the same red dot as the logo: hidden by default, it
 * pops in on hover and stays on the current page. No boxes, no rules. */
.site-nav a {
  position: relative;
  padding: 10px 0 10px 16px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.site-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--red);
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::before { transform: scale(1); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::before { transform: scale(1); }

.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
}
.site-header__toggle span { height: 2px; background: var(--ink); display: block; }

/* --------------------------------------------------------------------- *
 * Poster hero (home)
 * --------------------------------------------------------------------- */

.hero {
  border-bottom: 1px solid var(--line-strong);
}

.hero__intro {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter) 32px;
  text-align: center;
  border-bottom: 1px solid var(--line-strong);
}

.hero__intro .kicker { display: block; margin-bottom: 12px; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 148px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-top: 0.25em;
}

.hero__subtitle {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(17px, 2vw, 22px);
  color: var(--ink-soft);
  margin-top: 14px;
}

.hero__body {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.75fr 1fr;
}

.hero__photo {
  position: relative;
  border-right: 1px solid var(--line-strong);
  overflow: hidden;
  min-height: 620px;
}

.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 38% 18%;
  filter: grayscale(1) contrast(1.08);
}

.photo-credit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.85);
  background: rgba(23, 21, 15, 0.45);
  padding: 4px 8px;
  z-index: 2;
}

.hero__dates {
  padding: 36px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.hero__dates-list { display: flex; flex-direction: column; }

.date-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.hero__dates-list .date-row:last-of-type { border-bottom: 1px solid var(--line); }

.date-row__day { font-family: var(--font-display); font-size: 20px; }
.date-row__venue { font-size: 15px; }
.date-row__city { font-size: 13px; color: var(--muted); display: block; }

.hero__lede {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero__more {
  align-self: flex-start;
  margin-top: 4px;
}

#dates { scroll-margin-top: 100px; }

/* Info strip: Radio / Journalisme / Distinctions */

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--container);
  margin: 0 auto;
}

.info-strip__item {
  padding: 30px 34px;
  border-right: 1px solid var(--line-strong);
}
.info-strip__item:last-child { border-right: none; }

.info-strip__item .kicker { margin-bottom: 8px; }

.info-strip__title {
  font-family: var(--font-accent);
  font-size: 26px;
}

.info-strip__detail {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.6;
}

.info-strip__detail a {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.info-strip__detail a:hover { color: var(--ink); border-color: var(--ink); }

/* --------------------------------------------------------------------- *
 * Generic page intro (Spectacle / Presse / Scoops / Contact)
 * --------------------------------------------------------------------- */

.page-intro {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  border-bottom: 1px solid var(--line-strong);
}

.page-intro__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-top: 0.3em;
}

.page-intro__lede {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* V2 experiment (spectacle-v2.php): poster layout. Text column on the
 * left, cut-out figure in colour on the right, feet planted on the
 * section's bottom rule so it reads as standing on a line, not floating. */

.page-intro--poster {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: stretch;
  padding-bottom: 0;
}

.page-intro--poster .page-intro__text {
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-intro--poster .page-intro__lede,
.page-intro--poster .credits-list { max-width: none; }

.page-intro__figure {
  position: relative;
  min-height: 560px;
}

.page-intro__figure img {
  position: absolute;
  inset: 24px 0 0 0;
  width: 100%;
  height: calc(100% - 24px);
  object-fit: contain;
  object-position: center bottom;
}

.photo-credit--on-cream {
  color: var(--muted);
  background: none;
  padding: 4px 0;
  right: 0;
  bottom: 6px;
}

/* V3 experiment (spectacle-v3.php): the page opens as the poster itself. */

.poster { border-bottom: 1px solid var(--line-strong); }

.poster__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px var(--gutter) 0;
  min-height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
}

.poster__kicker { display: block; }

.poster__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(72px, 13.5vw, 196px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-top: 36px;
}

.poster__sub {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.4;
  color: var(--ink-soft);
  margin-top: 24px;
}

.poster__cta {
  align-self: flex-start;
  margin: 28px 0 56px;
}

.poster__figure {
  position: absolute;
  z-index: 2;
  right: calc(var(--gutter) + 4vw);
  bottom: 0;
  height: min(80vh, 760px);
  width: auto;
}

.poster .photo-credit--on-cream { right: var(--gutter); }

.synopsis {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter) 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  border-bottom: 1px solid var(--line-strong);
}

.synopsis .kicker { display: block; margin-bottom: 16px; }

.synopsis__text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.synopsis__text p + p { margin-top: 18px; }
.synopsis__text .synopsis__lead {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
}

.synopsis .credits-list {
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: none;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.date-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 8px;
}

.date-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 190px;
  padding: 18px 16px 16px;
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.date-tile:hover { border-color: var(--red); }

.date-tile__day {
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 0.9;
}
.date-tile__month {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.date-tile__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }

.date-tile .tag-limited,
.date-tile .tag-complet { align-self: flex-start; margin-top: 10px; font-size: 10px; }

.date-tile__link {
  margin-top: auto;
  padding-top: 14px;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.date-tile__link:hover { color: var(--ink); border-color: var(--ink); }

.date-tile--complet { border-color: var(--line); color: var(--muted); }
.date-tile--complet:hover { border-color: var(--line); }
.date-tile--complet .date-tile__day { color: var(--muted); }

.lead-photo--color img { filter: none; }

/* --------------------------------------------------------------------- *
 * Spectacle — full date list
 * --------------------------------------------------------------------- */

.dates-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gutter) 64px;
}

.dates-section__heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 40px 0 4px;
}
.dates-section__heading:first-child { margin-top: 0; }

.dates-section__note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.dates-subheading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 28px 0 2px;
}
.dates-subheading:first-of-type { margin-top: 16px; }

.dates-table { display: flex; flex-direction: column; }

.dates-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.dates-table > .dates-row:last-child { border-bottom: 1px solid var(--line); }

.dates-row__date {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
}
.dates-row__date small {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 2px;
}

.dates-row__venue { font-size: 16px; font-weight: 500; }
.dates-row__city { font-size: 13px; color: var(--muted); display: block; margin-top: 2px; }

.dates-row__action { justify-self: end; display: flex; align-items: center; gap: 20px; }

.dates-row__soldout {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Back link out of a document, towards the list it belongs to */

.doc-back {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.doc-back:hover { color: var(--ink); border-color: var(--ink); }

/* The one at the end only earns its place on phones, where getting back to
 * the top of a long document is tedious. */
.doc-back--end { display: none; margin: 4px 0 40px var(--gutter); }

/* Page images: the mobile fallback for documents (see lire.php) */

.pdf-viewer__pages { display: none; }

.pdf-viewer__pages img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.pdf-viewer__hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------- *
 * Pagination (Revue de presse / Scoops)
 * --------------------------------------------------------------------- */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pagination__step {
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.pagination__step:hover { color: var(--ink); border-color: var(--ink); }
.pagination__step--off { color: var(--muted); border-bottom-color: transparent; }

.pagination__list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.pagination__page:hover { background: var(--ink); color: var(--cream); }
.pagination__page--current { background: var(--red); border-color: var(--red); color: #fff; }

/* --------------------------------------------------------------------- *
 * Bio
 * --------------------------------------------------------------------- */

.bio {
  max-width: var(--container);
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  padding: 0 var(--gutter);
}

.bio__photo {
  position: relative;
  align-self: start;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  margin-top: 44px;
}
.bio__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: grayscale(1) contrast(1.08);
}

.bio__text {
  padding-top: 44px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.bio__text p + p { margin-top: 20px; }

.bio__lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
}

.bio__links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.bio__link {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.bio__link:hover { color: var(--ink); border-color: var(--ink); }

/* --------------------------------------------------------------------- *
 * Credits list (Spectacle page)
 * --------------------------------------------------------------------- */

.credits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 40px;
  max-width: 640px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.credits-list__role {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

/* --------------------------------------------------------------------- *
 * Lead production photo (Spectacle page)
 * --------------------------------------------------------------------- */

.lead-photo {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-top: none;
  overflow: hidden;
  height: 66vh;
  min-height: 420px;
  max-height: 640px;
}

.lead-photo--closing {
  border-top: 1px solid var(--line-strong);
  height: 50vh;
  min-height: 340px;
  margin-bottom: 72px;
}

.lead-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
  filter: grayscale(1) contrast(1.08);
}

/* --------------------------------------------------------------------- *
 * Press / Scoops lists
 * --------------------------------------------------------------------- */

.press-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--gutter) 72px;
  display: flex;
  flex-direction: column;
}

.press-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.press-list > .press-item:first-child { border-top: none; }
.press-list > .press-item:last-child { border-bottom: 1px solid var(--line); }

.press-item__thumb {
  position: relative;
  display: block;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--cream-deep);
  cursor: pointer;
}
.press-item__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.05);
  transition: transform 0.45s ease, filter 0.45s ease;
}
.press-item:hover .press-item__thumb img { transform: scale(1.07); filter: grayscale(0.2) contrast(1.08); }

.press-item__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 21, 15, 0);
  transition: background 0.3s ease;
  z-index: 1;
}
.press-item:hover .press-item__thumb::after { background: rgba(23, 21, 15, 0.2); }

.press-item__reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.press-item:hover .press-item__reveal { opacity: 1; transform: scale(1); }
.press-item__reveal span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.press-item__reveal svg { width: 14px; height: 14px; flex-shrink: 0; }

.press-item__format {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(23, 21, 15, 0.7);
  padding: 3px 7px;
}

.press-item__meta {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.press-item__meta strong { color: var(--red); }

.press-item__kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  padding: 3px 9px;
  margin-bottom: 10px;
}

.press-item__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.press-item__caption {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-top: 10px;
  max-width: 60ch;
}

.press-item__byline {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.press-item__link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}

/* --------------------------------------------------------------------- *
 * PDF viewer (lire.php)
 * --------------------------------------------------------------------- */

.pdf-viewer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gutter) 64px;
  overflow-x: hidden;
}
.pdf-viewer__toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin-bottom: 12px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-heading);
}
.pdf-viewer__toolbar button {
  width: 38px;
  height: 38px;
  border: none;
  background: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.pdf-viewer__toolbar button:hover,
.pdf-viewer__toolbar button:focus-visible {
  background: var(--ink);
  color: var(--cream);
}
.pdf-viewer__toolbar button:first-child { border-right: 1px solid var(--line-strong); }
.pdf-viewer__toolbar button:last-child { border-left: 1px solid var(--line-strong); }
.pdf-viewer__toolbar span {
  min-width: 56px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pdf-viewer #pdf-embed {
  border: 1px solid var(--line-strong);
  width: 100%;
  overflow: hidden;
}
.pdf-viewer #pdf-embed iframe,
.pdf-viewer #pdf-embed embed {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 420px;
  max-height: 75vh;
  display: block;
}
.pdf-viewer__source {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.pdf-viewer__source strong { color: var(--ink-soft); }

/* --------------------------------------------------------------------- *
 * Contact
 * --------------------------------------------------------------------- */

.contact-body {
  max-width: var(--container);
  margin: 0 auto;
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
}

.contact-body__photo {
  position: relative;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  overflow: hidden;
  align-self: start;
  height: 80%;
  min-height: 480px;
}
.contact-body__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: grayscale(1) contrast(1.08);
}

.contact-body__content {
  padding: 40px var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-info {
  display: flex;
  gap: 48px;
  font-size: 15px;
  color: var(--ink-soft);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.contact-info a { text-decoration: underline; text-underline-offset: 3px; }
.contact-info__block .kicker { display: block; margin-bottom: 8px; }

.field {
  position: relative;
  margin-bottom: 30px;
}

.field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.field input,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  padding: 8px 2px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
}

.field:focus-within label { color: var(--red); }

.field__underline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.field:focus-within .field__underline { transform: scaleX(1); }

.field__counter {
  position: absolute;
  right: 2px;
  bottom: -20px;
  font-size: 12px;
  color: var(--muted);
}

.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Field-level animated validation ---------------------------------------- */

.field--invalid input,
.field--invalid textarea { border-color: var(--red); }
.field--invalid label { color: var(--red); }
.field--invalid .field__underline { background: var(--red); transform: scaleX(1); }

.field__error {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  font-size: 12.5px;
  color: var(--red);
  transition: grid-template-rows 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
}
.field__error > * { min-height: 0; }
.field__error:not(:empty) {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 8px;
}

@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.field--shake { animation: field-shake 0.4s ease; }

/* Submit button: label <-> spinner swap ----------------------------------- */

.btn--submit { position: relative; min-width: 160px; }
.btn--submit .btn__spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(244, 241, 234, 0.35);
  border-top-color: var(--cream);
  border-radius: 50%;
}
.btn--submit.is-loading { pointer-events: none; opacity: 0.85; }
.btn--submit.is-loading .btn__label { display: none; }
.btn--submit.is-loading .btn__spinner { display: inline-block; animation: btn-spin 0.7s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Server-level banner (rate limit, session, anti-spam, SMTP) ------------- */

.form-banner {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--red);
  border-left: 3px solid var(--red);
  padding: 0 14px;
  transition: grid-template-rows 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
}
.form-banner > * { min-height: 0; overflow: hidden; }
.form-banner.is-visible {
  grid-template-rows: 1fr;
  opacity: 1;
  padding: 12px 14px;
  animation: field-shake 0.4s ease;
}

/* Field group fade-out + success panel ------------------------------------ */

.form-fields {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.form-fields.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.form-success.is-visible { opacity: 1; transform: translateY(0); }

.form-success__check { color: var(--red); margin-bottom: 10px; }
.form-success__ring,
.form-success__tick {
  fill: none;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
.form-success.is-visible .form-success__ring {
  animation: draw-ring 0.5s ease forwards;
}
.form-success.is-visible .form-success__tick {
  animation: draw-tick 0.35s ease 0.45s forwards;
}
@keyframes draw-ring { to { stroke-dashoffset: 0; } }
@keyframes draw-tick { to { stroke-dashoffset: 0; } }

.form-success__title {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.form-success__subtitle {
  font-size: 14px;
  color: var(--ink-soft);
}

.form-success__back {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.form-success__back:hover { color: var(--ink); border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .field--shake, .form-banner.is-visible { animation: none; }
  .form-success__ring, .form-success__tick { animation: none; stroke-dashoffset: 0; }
  .btn--submit.is-loading .btn__spinner { animation-duration: 1.4s; }
}

/* --------------------------------------------------------------------- *
 * Footer
 * --------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
}

.site-footer__row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: rgba(244, 241, 234, 0.55);
}

.site-footer__left { display: flex; align-items: center; gap: 20px; justify-self: start; }
.site-footer__credit { justify-self: end; }

.site-footer__social { display: flex; gap: 10px; justify-self: center; }
.site-footer__social .social-icon { width: 28px; height: 28px; }

.social-icons { display: flex; gap: 12px; margin-top: 4px; }

.social-icons--dark .social-icon {
  border-color: var(--line-strong);
  color: var(--ink);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(244, 241, 234, 0.35);
  border-radius: 50%;
  color: var(--cream);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.social-icon:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.site-footer__link-btn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------- *
 * Cookie banner
 * --------------------------------------------------------------------- */

.consent-box {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 380px;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 30px rgba(23, 21, 15, 0.18);
  padding: 20px 22px;
  z-index: 100;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.consent-box.is-visible { opacity: 1; transform: translateY(0); }
.consent-box[hidden] { display: none; }

.consent-box__text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.consent-box__actions { display: flex; gap: 10px; }

/* --------------------------------------------------------------------- *
 * Responsive
 * --------------------------------------------------------------------- */

@media (max-width: 860px) {
  .site-header__brand { font-size: 22px; }

  .site-nav {
    position: fixed;
    inset: 60px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px var(--gutter);
    gap: 4px;
    display: none;
    border: none;
    border-top: 1px solid var(--line-strong);
    font-size: 16px;
  }
  .site-nav a { padding: 14px 0 14px 18px; border-bottom: 1px solid var(--line); }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
  .site-nav.is-open { display: flex; }
  .site-header__toggle { display: flex; }

  .hero__body { grid-template-columns: 1fr; }
  .hero__photo { border-right: none; border-bottom: 1px solid var(--line-strong); min-height: 280px; }

  .page-intro--poster { grid-template-columns: 1fr; gap: 0; }
  .page-intro--poster .page-intro__text { padding-bottom: 24px; }
  .page-intro__figure { min-height: 62vh; }

  .poster__inner { min-height: 0; padding-top: 40px; }
  .poster__cta { margin-bottom: 24px; }
  .poster__figure { position: static; height: auto; width: min(70%, 320px); align-self: center; }
  .poster .photo-credit--on-cream { position: static; align-self: flex-end; }
  .synopsis { grid-template-columns: 1fr; gap: 40px; }
  .date-tiles { grid-template-columns: repeat(2, 1fr); }

  .info-strip { grid-template-columns: 1fr; }
  .info-strip__item { border-right: none; border-bottom: 1px solid var(--line-strong); }
  .info-strip__item:last-child { border-bottom: none; }

  .dates-row { grid-template-columns: 1fr; gap: 6px; }
  .dates-row__action { justify-self: start; margin-top: 8px; }

  .press-item { grid-template-columns: 1fr; }
  .press-item__thumb { aspect-ratio: 16 / 10; }

  .doc-back--end { display: inline-block; }

  .pdf-viewer__pages { display: block; }
  .pdf-viewer:has(.pdf-viewer__pages) .pdf-viewer__toolbar,
  .pdf-viewer:has(.pdf-viewer__pages) #pdf-embed { display: none; }

  .pagination { flex-wrap: wrap; justify-content: center; gap: 14px; }

  .lead-photo { height: 46vh; min-height: 320px; }
  .lead-photo--closing { height: 40vh; min-height: 280px; }

  .credits-list { grid-template-columns: 1fr; }

  .bio { grid-template-columns: 1fr; gap: 28px; }
  .bio__photo { margin-top: 28px; aspect-ratio: 4 / 3; }
  .bio__text { padding-top: 0; }

  .contact-body { grid-template-columns: 1fr; }
  .contact-body__photo { border-right: none; border-bottom: 1px solid var(--line-strong); min-height: 320px; }
  .contact-info { flex-direction: column; gap: 24px; }

  .consent-box { left: 12px; right: 12px; bottom: 12px; max-width: none; }

  .site-footer__row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
  }
  .site-footer__left { flex-direction: column; gap: 10px; justify-self: center; }
  .site-footer__credit { justify-self: center; }
}
