/* Responsive integration — 4 October 2026.
   The export's mobile content flow is shared up to 1024px. Desktop rooms stay intact. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.has-open-dialog { overflow: hidden; overscroll-behavior: none; }
html.preserve-dialog-scroll { scroll-behavior: auto !important; overflow-anchor: none; }
dialog:not([open]) { display: none; }
.dialog-fallback-backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / 78%); }
dialog.dialog-fallback[open] {
  position: fixed; inset: 0; margin: auto;
  max-height: calc(var(--viewport-height, 100dvh) - 16px);
  overflow: auto; overscroll-behavior: contain;
}
.livres-book-face img, .livres-page-turn-face img { -webkit-user-select: none; -webkit-touch-callout: none; }
body { min-width: 280px; }
main, .header-inner, .site-footer { min-width: 0; }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
a { touch-action: manipulation; }
button { -webkit-user-select: none; user-select: none; }
button > svg, button > img, button > [aria-hidden="true"] { pointer-events: none; }
:where(a, button, [tabindex]):focus-visible { outline: 2px solid #edd19a; outline-offset: 4px; }
.site-header { padding-top: env(safe-area-inset-top, 0px); }
.header-inner {
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
}
.site-nav { max-height: calc(calc(var(--viewport-height, 100dvh) * 100 / 100) - var(--header-height) - env(safe-area-inset-top, 0px)); }
.site-nav a { min-height: 44px; }
.language-button, .language-option, .menu-button { min-height: 44px; }
.site-footer { padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
.site-footer a, .credits-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.credits-button::before { content: none; }

/* Reserve an exact viewport for the entry portrait, including both black bands. */
.home-page { height: 100svh; height: calc(var(--viewport-height, 100dvh) * 100 / 100); grid-template-rows: auto minmax(0, 1fr) auto; }
.home-main, .hero-stage { min-height: 0; height: 100%; }
.hero-stage { position: relative; }
.hero-stage img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 53% center; }

/* Dialog controls always remain reachable, including in landscape and with text zoom. */
.credits-modal { max-width: calc(100% - 24px); }
.credits-modal-panel { overflow-wrap: anywhere; }
.trailer-watch-link { display: flex; min-height: 44px; align-items: center; justify-content: center; color: #edd19a; font-size: .9rem; text-underline-offset: 4px; }
.trailer-modal { width: min(92vw, 1280px, calc((calc(var(--viewport-height, 100dvh) * 100 / 100) - 80px) * 16 / 9)); }
.trailer-modal-close, .credits-modal-close, .livres-dialog-close,
.photos-facebook-modal-close { min-width: 44px; min-height: 44px; }
.livres-dialog-title, .livres-image-zoom-title { overflow-wrap: anywhere; }
.livres-excerpt-panel > :not(.livres-excerpt-scroll) { flex-shrink: 0; }
.livres-excerpt-zoom button, .livres-image-zoom-controls button,
.photos-pagination button, .photos-filters button { min-height: 44px; min-width: 44px; }
.livres-excerpt-panel { padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
.livres-image-zoom-panel { padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
.livres-image-zoom-panel { padding-top: env(safe-area-inset-top, 0px); }
.livres-excerpt-dialog .livres-dialog-close,
.livres-image-zoom-dialog .livres-dialog-close { right: max(8px, env(safe-area-inset-right, 0px)); }

@media (max-width: 1024px), (max-height: 520px), (pointer: coarse) and (max-width: 1440px) {
  .header-signature { min-width: 0; }
  .biography-reader { hyphens: manual; overflow-wrap: break-word; }
  .biography-reader p { text-indent: 0; }
  .playlist-note, .episode-note { overflow-wrap: break-word; }
  .playlist-note-comment { font-size: 1rem; line-height: 1.6; }
  .photos-facebook-copy, .photos-card-copy { min-width: 0; }
  .photos-facebook-cta { white-space: normal; }
  .photos-facebook-link { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 6px 12px; }
  .photos-facebook-icon { grid-row: span 2; }
  .photos-facebook-cta { grid-column: 2; text-align: left; }
  .photos-facebook-copy strong, .photos-facebook-copy > span { white-space: normal; overflow: visible; text-overflow: clip; }
  .photos-card-copy strong { font-size: 1rem; }
  .photos-card-metadata, .photos-card-cta, .photos-facebook-copy > span,
  .photos-facebook-cta, .photos-pagination output { font-size: .8rem; line-height: 1.45; }
  .photos-filters button { font-size: .8rem; }
  .livres-scene { min-height: clamp(340px, 105vw, 500px); }
  .livres-book-views button { min-height: 44px; }
  .livres-selection-author { font-size: .95rem; }
  .livres-dialog-panel { scroll-padding-block: 54px 24px; }
  .livres-excerpt-panel { padding-top: calc(52px + env(safe-area-inset-top, 0px)); }
  .livres-excerpt-dialog .livres-dialog-close { top: max(8px, env(safe-area-inset-top, 0px)); }
}

@media (max-width: 640px) {
  .livres-scene { min-height: clamp(410px, 122vw, 590px); }
}

@media (max-width: 600px) {
  .header-inner { grid-template-columns: 74px minmax(0, 1fr) 54px; column-gap: 8px; }
  .header-signature { width: 100%; max-width: 210px; font-size: clamp(1rem, 4.5vw, 1.3rem); line-height: 1.12; }
  .site-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 10px max(12px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)); text-align: center; font-size: .75rem; }
  .site-footer > span { padding-block: 4px; }
  .livres-dialog-title { font-size: clamp(1.1rem, 5.6vw, 1.5rem); }
}

@media (min-width: 601px) {
  .header-inner { padding-inline: max(24px, env(safe-area-inset-left, 0px)); }
  .site-footer { padding-block: 6px max(6px, env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 601px) and (max-width: 1024px), (min-width: 601px) and (max-width: 1440px) and (pointer: coarse) {
  .photos-facebook-links, .photos-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .playlist-grid { justify-content: center; }
}
@media (min-width: 1025px) and (min-height: 521px) and (pointer: fine) {
  .hero-stage img { object-fit: contain; }
  .livres-canvas, .biography-canvas, .bandes-annonces-canvas,
  .photos-canvas, .playlist-canvas, .links-canvas {
    width: min(100%, calc((calc(var(--viewport-height, 100dvh) * 100 / 100) - var(--header-height) - 60px) * 1.77683));
  }
}

/* A short screen needs space for the pages, not repeated introductory labels. */
@media (max-height: 520px) {
  :root { --header-height: 56px; }
  .header-inner { min-height: 56px; }
  .livres-excerpt-panel { padding-top: 10px; }
  .livres-excerpt-panel > .livres-dialog-kicker,
  .livres-excerpt-panel > .livres-dialog-instruction { display: none; }
  .livres-excerpt-panel > .livres-dialog-title { min-block-size: 0; font-size: 1.1rem; padding-inline: 42px; }
  .livres-excerpt-scroll { margin-top: 6px; }
  .livres-excerpt-panel > .livres-dialog-return { margin-top: 0; }
  .livres-excerpt-zoom, .livres-excerpt-nav { margin-top: 4px; }
  .trailer-modal { width: min(calc(100vw - 24px), calc((calc(var(--viewport-height, 100dvh) * 100 / 100) - 80px) * 16 / 9)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (min-width: 600px) and (max-height: 520px) {
  .livres-excerpt-panel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto; gap: 6px 14px; }
  .livres-excerpt-panel > .livres-dialog-title { grid-column: 1 / -1; margin: 0; }
  .livres-excerpt-scroll { grid-column: 1 / -1; grid-row: 2; height: 100%; margin: 0; }
  .livres-excerpt-zoom { grid-column: 1; grid-row: 3; margin: 0; }
  .livres-excerpt-nav { grid-column: 2; grid-row: 3; margin: 0; }
  .livres-excerpt-panel > .livres-dialog-return { grid-column: 3; grid-row: 3; margin: 0; padding-inline: 8px; }
}

/* The photographed frame contains an overview; the complete archive has its own dialog. */
.photos-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #080a0c;
}
.photos-canvas {
  position: relative;
  width: min(100%, calc((var(--viewport-height, 100dvh) - var(--header-height) - 60px) * 1.77683));
  height: auto;
  min-height: 0;
  aspect-ratio: 1672 / 941;
  padding: 0;
  display: block;
  background: #080a0c url('assets/photos-gallery-art-deco-v1.webp') center / 100% 100% no-repeat;
}
.photos-frame { position: absolute; top: 11.3%; left: 30.2%; width: 41%; height: 51%; overflow: hidden; }
.photos-frame-content { display: grid; gap: clamp(6px, calc(var(--scene-unit, 1cqw) * .65), 8px); }
.photos-page-title {
  position: static;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0 .15em;
  transform: none;
  font-size: clamp(2rem, calc(var(--scene-unit, 1cqw) * 4), 3.5rem);
  line-height: 1.1;
  white-space: normal;
}
.photos-frame-collections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.photos-frame-link { min-width: 0; min-height: 44px; padding: 8px 10px; display: grid; align-content: center; gap: 4px; background: rgb(15 24 34 / 86%); border: 1px solid #8b744c; border-radius: 5px; text-decoration: none; }
.photos-frame-link strong { font: 600 .875rem/1.25 Georgia, serif; }
.photos-frame-link > span:not(.sr-only) { color: #b7c7dd; font: .75rem/1.25 Arial, sans-serif; }
.photos-frame-link:hover, .photos-frame-link:focus-visible { background: #1e2b3a; border-color: #e7c381; }
.photos-frame-summary { text-align: center; }
.photos-frame-summary h2 { margin: 0; color: #efc97f; font: 400 1.125rem/1.2 Georgia, serif; }
.photos-frame-summary p { margin: 4px 0 0; font: .75rem/1.3 Arial, sans-serif; color: #c4b9a8; }
.photos-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.photos-frame-link { min-height: 44px; padding: 5px 8px; display: flex; align-items: center; gap: 7px; }
.photos-frame-facebook-icon { flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #1877f2; color: #fff; }
.photos-frame-facebook-icon svg { width: 16px; height: 16px; fill: currentColor; }
.photos-frame-link-copy { min-width: 0; display: grid; gap: 2px; }
.photos-frame-link-copy strong { display: block; font: 600 .75rem/1.1 Georgia, serif; white-space: nowrap; }
.photos-frame-link-copy > span { display: block; color: #b7c7dd; font: .65rem/1.1 Arial, sans-serif; white-space: nowrap; }
.photos-preview-card { min-width: 0; min-height: 44px; padding: 8px 10px; display: grid; align-content: start; gap: 6px; border: 1px solid #66583f; border-radius: 5px; background: rgb(9 14 20 / 86%); color: #f7eee0; text-align: left; cursor: pointer; }
.photos-preview-card strong { font: 600 .8125rem/1.3 Georgia, serif; }
.photos-preview-card span { color: #edc479; font: .75rem/1.2 Arial, sans-serif; }
.photos-preview-card:hover, .photos-preview-card:focus-visible { border-color: #e7c381; background: #1b252c; }
.photos-archive-open { min-height: 44px; width: 100%; padding: 10px; border: 1px solid #dcb66e; border-radius: 5px; background: linear-gradient(#eed29c, #c3954e); color: #16100a; font: 600 .875rem/1.3 Arial, sans-serif; cursor: pointer; }
.photos-archive-open:hover, .photos-archive-open:focus-visible { background: #f1d8a8; }
.photos-frame.is-compact .photos-frame-summary { display: none; }
.photos-frame.is-minimal .photos-frame-link > span:not(.sr-only) { display: none; }
.photos-frame.is-minimal .photos-page-title { font-size: 2rem; }
.photos-frame.is-tiny .photos-frame-collections { display: none; }
.photos-frame.is-link-only .photos-page-title { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); }
@media (max-width: 759px) {
  .photos-canvas { width: calc((100vw - 24px) * 100 / 44); max-width: none; transform: translateX(-.7%); }
  .photos-frame-link { gap: 4px; }
  .photos-frame-facebook-icon { flex-basis: 20px; width: 20px; height: 20px; }
  .photos-frame-facebook-icon svg { width: 13px; height: 13px; }
  .photos-frame-link-copy strong { font-size: .625rem; }
  .photos-frame-link-copy > span { font-size: .56rem; }
}
.photos-archive-modal {
  position: fixed; inset: 0; margin: auto;
  width: min(960px, calc(100vw - 24px));
  max-width: none; max-height: calc(var(--viewport-height, 100dvh) - 24px);
  padding: 54px 0 0; overflow: hidden;
  color: #f7eee0; background: #0b1219;
  border: 1px solid #a2844e; border-radius: 12px;
  box-shadow: 0 24px 100px #000b;
}
.photos-archive-modal::backdrop { background: rgb(0 0 0 / 78%); backdrop-filter: blur(5px); }
.photos-archive-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 1px solid #a2844e; border-radius: 50%; color: #f1d8a8; background: #0b1219; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.photos-archive-scroll { max-height: calc(var(--viewport-height, 100dvh) - 80px); padding: 4px clamp(14px, 3vw, 32px) 24px; overflow: auto; overscroll-behavior: contain; scroll-padding-block: 12px; }
.photos-archive-title { margin: 0; color: #f1d8a8; font: 400 clamp(1.4rem, 3vw, 2rem)/1.2 Georgia, serif; text-align: center; }
.photos-archive-modal .photos-archive { width: 100%; }
.photos-card-item.is-highlighted .photos-card { border-color: #f1cb82; background: #252820; }
.photos-archive {
  position: relative;
  top: auto;
  left: auto;
  width: min(100%, 860px);
  height: auto;
  margin: 0;
  transform: none;
  grid-template-rows: auto auto auto;
  gap: 16px;
}
.photos-facebook-links {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  transform: none;
}
.photos-facebook-link {
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 6px 12px;
  min-height: 92px;
  padding: 14px 16px;
  border-radius: 8px;
}
.photos-facebook-icon { width: 40px; grid-row: 1 / span 2; }
.photos-facebook-copy { gap: 4px; }
.photos-facebook-copy strong,
.photos-facebook-copy > span {
  display: block;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.photos-facebook-copy strong { font-size: 1rem; }
.photos-facebook-copy > span { font-size: .8125rem; }
.photos-facebook-cta {
  grid-column: 2;
  max-width: none;
  font-size: .8125rem;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
}
.photos-no-facebook-note {
  margin: 0;
  transform: none;
  font-size: .9375rem;
  line-height: 1.5;
}
.photos-no-facebook-note::before,
.photos-no-facebook-note::after { content: none; }
.photos-getty-panel {
  min-width: 0;
  padding: clamp(12px, 2vw, 24px);
  grid-template-rows: auto auto auto;
  gap: 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgb(21 26 30 / 97%), rgb(7 10 13 / 97%));
}
.photos-getty-heading {
  display: grid;
  justify-items: start;
  gap: 14px;
  text-align: left;
}
.photos-getty-heading > div:first-child { min-width: 0; gap: 5px; }
.photos-getty-heading p { font-size: 1.25rem; line-height: 1.3; }
.photos-getty-heading > div:first-child > span { font-size: .8125rem; line-height: 1.4; }
.photos-filters { justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
.photos-filters button { min-height: 44px; padding: 10px 14px; font-size: .8125rem; line-height: 1.25; white-space: normal; }
.photos-card-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: none;
  grid-auto-rows: auto;
  gap: 12px;
}
.photos-card-item { min-height: auto; }
.photos-card {
  height: 100%;
  min-height: 120px;
  padding: 14px;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 8px 12px;
  border-radius: 7px;
}
.photos-card-icon { width: 32px; grid-row: 1 / span 2; }
.photos-card-copy { align-self: start; gap: 6px; }
.photos-card-copy strong {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.photos-card-metadata { overflow: visible; white-space: normal; overflow-wrap: anywhere; font-size: .75rem; line-height: 1.5; }
.photos-card-cta { grid-column: 2; font-size: .8125rem; line-height: 1.4; }
.photos-pagination { padding-top: 2px; gap: 16px; }
.photos-pagination button { width: 44px; height: 44px; font-size: 1.4rem; }
.photos-pagination output { font-size: .875rem; }
@media (min-width: 640px) {
  .photos-facebook-links, .photos-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .photos-getty-heading { display: flex; align-items: center; gap: 20px; }
}

/* Book details: the 3D stage and the controls have separate, intrinsic rows. */
.livres-book-dialog {
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(var(--viewport-height, 100dvh) - 24px);
  overflow: hidden;
  background: #0b1117;
  border: 1px solid rgb(211 164 82 / 72%);
  border-radius: 12px;
}
.livres-book-dialog > .livres-dialog-close {
  top: 8px;
  right: 8px;
  z-index: 5;
  background: #0b1117;
}
.livres-book-panel {
  max-height: calc(var(--viewport-height, 100dvh) - 26px);
  padding: 58px 18px 20px;
  display: grid;
  grid-template-areas: "summary" "visual" "actions";
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 58px 20px;
  border: 0;
  border-radius: 0;
}
.livres-book-summary { grid-area: summary; min-width: 0; }
.livres-book-summary .livres-dialog-kicker { margin: 0 0 10px; font-size: .75rem; }
.livres-book-summary .livres-dialog-title { padding: 0; font-size: clamp(1.65rem, 5vw, 2.8rem); line-height: 1.12; overflow-wrap: break-word; }
.livres-book-summary .livres-dialog-author { margin-top: 10px; font-size: .9375rem; line-height: 1.4; }
.livres-book-summary .livres-dialog-instruction { margin: 12px 0 0; font-size: .875rem; line-height: 1.5; }
.livres-book-summary .livres-availability-badge { min-width: 0; max-width: 100%; margin: 14px auto 0; }
.livres-book-presentation { grid-area: visual; min-width: 0; }
.livres-book-dialog .livres-book-viewer {
  --book-viewer-height: clamp(190px, calc(var(--viewport-height, 100dvh) * .31), 310px);
  width: 100%;
  height: var(--book-viewer-height);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
}
.livres-book-dialog .livres-book-viewer::after { top: auto; bottom: 5px; width: 55%; height: 18px; transform: translateX(-50%); }
.livres-book-dialog .livres-book-model {
  --book-width: var(--viewer-book-width, min(180px, 42vw, calc(var(--book-viewer-height) * .5)));
}
.livres-book-dialog .livres-book-views {
  display: grid;
  grid-template-columns: 1fr .6fr 1.5fr;
  align-items: stretch;
  gap: 6px;
  margin: 12px 0 0;
}
.livres-book-dialog .livres-book-views button { min-width: 0; min-height: 44px; padding: 8px; font-size: .75rem; line-height: 1.35; white-space: normal; }
.livres-book-actions { grid-area: actions; min-width: 0; display: grid; gap: 8px; }
.livres-book-actions > button { width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 12px 16px; font-size: .875rem; line-height: 1.4; white-space: normal; }
.livres-book-actions > [hidden] + .livres-dialog-excerpts { grid-column: 1 / -1; }
.livres-book-actions .livres-dialog-return { border-color: transparent; }
@media (min-width: 360px) and (max-width: 759px) {
  .livres-book-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .livres-book-actions .livres-dialog-return { grid-column: 1 / -1; }
}
@media (min-width: 760px) {
  .livres-book-panel {
    padding: 56px 32px 28px;
    grid-template-areas: "visual summary" "visual actions";
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    column-gap: clamp(24px, 4vw, 48px);
    text-align: left;
  }
  .livres-book-summary { align-self: end; }
  .livres-book-summary .livres-availability-badge { margin-left: 0; }
  .livres-book-actions { align-self: start; }
  .livres-book-dialog .livres-book-viewer { --book-viewer-height: clamp(250px, calc(var(--viewport-height, 100dvh) * .55), 500px); }
  .livres-book-dialog .livres-book-views button { font-size: .8125rem; }
}
@media (min-width: 760px) and (max-height: 520px) {
  .livres-book-panel { padding: 52px 20px 16px; gap: 12px 24px; }
  .livres-book-dialog .livres-book-viewer { --book-viewer-height: max(140px, calc(var(--viewport-height, 100dvh) - 160px)); }
  .livres-book-summary .livres-dialog-title { font-size: 1.65rem; }
  .livres-book-summary .livres-dialog-kicker { display: none; }
  .livres-book-summary .livres-dialog-instruction { margin-top: 8px; }
  .livres-book-actions > button { padding-block: 8px; }
}

/* Stable touch targets above every dialog's decorative and scroll layers. */
.credits-modal-close, .trailer-modal-close, .livres-dialog-close,
.photos-archive-close, .photos-facebook-modal-close {
  z-index: 20;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  transform: none;
  touch-action: manipulation;
}
.livres-book-dialog > .livres-dialog-close { z-index: 20; }
.menu-button, .language-button { min-width: 48px; }
.episode-nav { min-width: 48px; min-height: 48px; }
