/* Fiche œuvre — charte v22 (fond clair) */
.v22-site .project-page {
  padding-top: 48px;
  padding-bottom: 88px;
}

.v22-site .project-page .wrap.project-wrap {
  max-width: 920px;
}

.v22-site .project-page .back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.v22-site .project-page .back-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.v22-site .proj-draft-banner {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: #faf6ee;
  color: var(--ink);
  font-size: 14px;
}

.v22-site .project-header {
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.v22-site .project-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.v22-site .project-meta-row .tag,
.v22-site .project-serie {
  color: var(--accent);
  font-weight: 600;
}

.v22-site .project-title {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}

.v22-site .project-artist {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--ink);
}

.v22-site .project-copy {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
}

.v22-site .project-page .lead {
  font-size: 17px;
  line-height: 1.65;
  color: #33373f;
  max-width: 720px;
  margin: 0 0 8px;
}

.v22-site .project-affiches {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 28px 0;
}

.v22-site .project-affiche {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fafafa;
}

.v22-site .project-affiche img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(82vh, 920px);
  object-fit: contain;
  background: #f0f1f3;
}

.v22-site .project-affiche figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Boutons legacy → v22 */
.v22-site .project-page .btn {
  display: inline-block;
  padding: 14px 26px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: 0.25s;
  font-family: inherit;
}

.v22-site .project-page .btn:hover {
  background: rgba(166, 124, 61, 0.14);
}

.v22-site .project-page .btn.primary,
.v22-site .project-page .btn.solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.v22-site .project-page .btn.primary:hover,
.v22-site .project-page .btn.solid:hover {
  background: var(--accent2);
  border-color: var(--accent2);
}

.v22-site .project-page .btn.btn-sm,
.v22-site .project-page .btn.sm {
  padding: 9px 18px;
  font-size: 11px;
}

.v22-site .project-page .btn.ghost {
  border-color: var(--line);
  color: var(--ink);
}

.v22-site .project-page .btn.ghost:hover {
  border-color: var(--accent);
  background: #faf6ee;
}

/* Prose / présentation */
.v22-site .project-page .prose {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  max-width: 720px;
}

.v22-site .project-page .prose h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  margin: 40px 0 16px;
  line-height: 1.2;
}

.v22-site .project-page .prose h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 32px 0 12px;
}

.v22-site .project-page .prose p {
  margin: 0 0 18px;
}

.v22-site .project-page .prose ul,
.v22-site .project-page .prose ol {
  padding-left: 1.4em;
  margin: 0 0 18px;
}

.v22-site .project-page .prose ol.presentation-numbered {
  list-style: none;
  counter-reset: presentation-steps;
  padding-left: 0;
}

.v22-site .project-page .prose ol.presentation-numbered > li {
  counter-increment: presentation-steps;
  position: relative;
  margin: 0 0 10px;
  padding-left: 2.4em;
}

.v22-site .project-page .prose ol.presentation-numbered > li::before {
  content: counter(presentation-steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 2em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.v22-site .project-page .prose blockquote {
  border-left: 3px solid var(--line);
  padding-left: 18px;
  color: var(--muted);
  margin: 18px 0;
}

.v22-site .project-page .prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(166, 124, 61, 0.4);
}

.v22-site .project-page .prose a:hover {
  text-decoration-color: var(--accent);
}

.v22-site .project-page .prose img {
  max-width: 100%;
  height: auto;
  margin: 12px 0;
}

.v22-site .project-page .muted {
  color: var(--muted);
}

.v22-site .project-page .small {
  font-size: 13px;
}

/* Vidéos */
.v22-site .project-videos {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 40px 0;
}

.v22-site .project-video {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fafafa;
}

.v22-site .project-video__stage {
  background: #0f1116;
}

.v22-site .project-video__stage video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.v22-site .project-video__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 16px;
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.v22-site .project-video__download {
  color: var(--accent);
  text-decoration: none;
}

.v22-site .project-video__download:hover {
  text-decoration: underline;
}

/* Embed */
.v22-site .portfolio-embed-viewer {
  margin: 40px 0;
  width: 100%;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}

.v22-site .portfolio-embed-viewer__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}

.v22-site .portfolio-embed-viewer__stage {
  position: relative;
  width: 100%;
  min-height: 85vh;
  background: #0f1116;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.v22-site .portfolio-embed-viewer.is-fitted .portfolio-embed-viewer__stage {
  min-height: 0;
  overflow: visible;
}

.v22-site .portfolio-embed-iframe {
  display: block;
  width: 100%;
  height: 85vh;
  min-height: 400px;
  border: 0;
  background: #0f1116;
}

.v22-site .portfolio-embed-viewer.is-fitted .portfolio-embed-iframe {
  height: var(--embed-iframe-height, 85vh);
  min-height: 320px;
}

.v22-site .portfolio-embed-viewer--inline .portfolio-embed-viewer__stage {
  min-height: 0;
  overflow: visible;
  background: #fff;
}

.v22-site .portfolio-embed-inline {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  box-sizing: border-box;
}

.v22-site .portfolio-embed-notice,
.v22-site .portfolio-embed-same-site {
  margin: 32px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: #fafafa;
}

.v22-site .portfolio-embed-notice p,
.v22-site .portfolio-embed-same-site p {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 60ch;
}

.v22-site .portfolio-embed-same-site p:last-child {
  margin-bottom: 0;
}

/* Fichiers / YouTube */
.v22-site .project-page h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  margin: 48px 0 20px;
  line-height: 1.2;
}

.v22-site .file-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.v22-site .file-item {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
}

.v22-site .file-item--youtube {
  padding: 18px;
}

.v22-site .file-name {
  padding: 14px 18px 0;
  font-weight: 500;
}

.v22-site .file-media {
  padding: 14px 18px 18px;
}

.v22-site .file-media audio {
  width: 100%;
}

.v22-site .youtube-embed-wrap {
  margin-top: 12px;
}

.v22-site .youtube-embed-iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #0f1116;
}

.v22-site .youtube-embed-meta {
  margin: 10px 0 0;
}

.v22-site .youtube-embed-meta a {
  color: var(--accent);
}

/* PDF viewer */
.v22-site .pdf-viewer {
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.v22-site .pdf-viewer__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}

.v22-site .pdf-viewer__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.v22-site .pdf-viewer__name {
  font-weight: 500;
  word-break: break-word;
}

.v22-site .pdf-viewer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.v22-site .pdf-viewer__stage {
  position: relative;
  width: 100%;
  min-height: 420px;
  height: min(72vh, 780px);
  background: #ececec;
}

.v22-site .pdf-viewer__watermark {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
}

.v22-site .pdf-viewer__watermark-grid {
  position: absolute;
  inset: -20%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 2.5rem 3.5rem;
  transform: rotate(-28deg);
}

.v22-site .pdf-viewer__watermark-txt {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(20, 20, 20, 0.16);
}

.v22-site .pdf-viewer__demo-tag {
  color: var(--accent);
}

.v22-site .pdf-viewer__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.v22-site .pdf-viewer__fs {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.v22-site .pdf-viewer__fs[hidden],
.v22-site .pdf-viewer__frame[hidden] {
  display: none !important;
}

.v22-site .pdf-viewer__canvas-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  overflow: auto;
  padding: 14px;
  box-sizing: border-box;
}

.v22-site .pdf-viewer__canvas {
  display: block;
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.v22-site .pdf-viewer__nav {
  display: inline-flex;
  gap: 6px;
}

.v22-site .pdf-viewer__status {
  margin: 0;
  padding: 10px 16px 14px;
}

.v22-site .pdf-viewer__status[hidden] {
  display: none !important;
}

.v22-site .pdf-viewer--demo .pdf-viewer__nav--fs {
  display: inline-flex;
}

.v22-site .pdf-viewer--demo .pdf-viewer__status {
  display: block !important;
}

.v22-site .pdf-viewer:fullscreen,
.v22-site .pdf-viewer:-webkit-full-screen,
.v22-site .pdf-viewer.is-fullscreen-fallback {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 14px;
  gap: 14px;
  background: #1a1a1a;
  border: none;
  overflow: hidden;
  box-sizing: border-box;
}

.v22-site .pdf-viewer:fullscreen .pdf-viewer__stage,
.v22-site .pdf-viewer:-webkit-full-screen .pdf-viewer__stage,
.v22-site .pdf-viewer.is-fullscreen-fallback .pdf-viewer__stage {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

/* Clé d'accès commerce */
.v22-site .commerce-key-entry {
  margin: 40px 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  background: #faf6ee;
}

.v22-site .commerce-key-entry__lead {
  max-width: 52ch;
  margin-bottom: 16px;
}

.v22-site .commerce-key-entry__form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin-top: 16px;
}

.v22-site .commerce-key-entry__field {
  flex: 1 1 16rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.v22-site .commerce-key-entry__field input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 15px;
  background: #fff;
}

.v22-site .commerce-key-entry__field input:focus {
  outline: none;
  border-color: var(--accent);
}

.v22-site .commerce-key-entry__error {
  color: #b33;
  margin: 0 0 12px;
}

.v22-site .commerce-key-entry__success {
  color: var(--accent);
  margin: 0;
}

@media (max-width: 720px) {
  .v22-site .project-page {
    padding-top: 32px;
    padding-bottom: 64px;
  }

  .v22-site .project-page .wrap.project-wrap {
    padding: 0 20px;
  }
}
