/* Styles propres à la page publique des œuvres. La feuille style.css du site reste intacte. */
.oeuvres-page .brand-logo {
  display: block;
  width: 148px;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain
}

.oeuvres-page .footer-logo {
  width: 130px;
  max-height: 48px
}

.oeuvres-page .oeuvres-page-hero {
  background: #eee8dd;
  border-bottom: 1px solid rgba(34, 31, 26, .09);
  overflow: hidden
}

.oeuvres-page-hero__inner {
  max-width: 1320px;
  min-height: 390px;
  margin: 0 auto;
  padding: 74px clamp(22px, 5vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  align-items: center;
  gap: 45px
}

.oeuvres-page-hero__copy {
  position: relative;
  z-index: 1
}

.oeuvres-page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.045em;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.06;
  margin: 0 0 22px;
  color: var(--ink)
}

.oeuvres-title-rule {
  display: inline-block;
  width: 47px;
  height: 2px;
  background: var(--gold);
  margin-left: 18px;
  vertical-align: middle
}

.oeuvres-page-hero__intro {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.8;
  color: #5d5951;
  max-width: 570px;
  margin: 0 0 27px
}

.oeuvres-page-hero__copy .button {
  margin-top: 2px
}

.oeuvres-page-hero__art {
  position: relative;
  min-height: 245px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #203b32 0%, #14251f 100%);
  color: #f7f0e3
}

.oeuvres-page-hero__art:before,
.oeuvres-page-hero__art:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(233, 185, 81, .55);
  border-radius: 50%;
  aspect-ratio: 1
}

.oeuvres-page-hero__art:before {
  width: 245px;
  right: 20px;
  top: -24px
}

.oeuvres-page-hero__art:after {
  width: 190px;
  right: 48px;
  top: 4px
}

.oeuvres-page-hero__sun {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 18px rgba(233, 185, 81, .08), 0 0 0 38px rgba(233, 185, 81, .04)
}

.oeuvres-page-hero__caption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: .02em;
  color: #eee8dd
}

.oeuvres-collection {
  padding-top: 68px;
  padding-bottom: 82px
}

.oeuvres-section-heading {
  align-items: end
}

.oeuvres-collection-intro {
  max-width: 345px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 5px
}

.oeuvres-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 24px 0 22px;
  flex-wrap: wrap
}

.oeuvres-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.oeuvres-filter {
  border: 1px solid #d8cfc0;
  background: transparent;
  color: #3f3a32;
  padding: 10px 17px;
  min-height: 42px;
  cursor: pointer;
  font: 600 12px var(--sans);
  transition: background .18s, color .18s, border-color .18s
}

.oeuvres-filter:hover {
  border-color: var(--gold)
}

.oeuvres-filter.is-active {
  background: #1d342b;
  border-color: #1d342b;
  color: #fff
}

.oeuvres-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(100%, 370px);
  min-height: 43px;
  border: 1px solid #d8cfc0;
  background: #fbf9f5;
  padding: 0 10px 0 13px
}

.oeuvres-search svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  fill: none;
  stroke: #736b60;
  stroke-width: 1.6
}

.oeuvres-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 12px var(--sans);
  padding: 11px 0
}

.oeuvres-search input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px
}

.oeuvres-search button {
  border: 0;
  background: transparent;
  color: #6e675d;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1
}

.oeuvres-results-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 20px;
  color: #837b6e;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em
}

.oeuvres-results-bar p {
  margin: 0;
  white-space: nowrap
}

.oeuvres-results-line {
  display: block;
  width: 100%;
  height: 1px;
  background: #ded6c9
}

.oeuvres-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 24px
}

.oeuvres-card {
  min-width: 0
}

.oeuvres-card[hidden] {
  display: none !important
}

.oeuvres-card__open {
  width: 100%;
  display: block;
  text-align: left;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer
}

.oeuvres-card__visual {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/4.8;
  background: #e4ddd1;
  margin-bottom: 14px
}

.oeuvres-card__visual>img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease
}

.oeuvres-card__open:hover .oeuvres-card__visual>img {
  transform: scale(1.04)
}

.oeuvres-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(150deg, #e6ded0, #d4c8b4);
  color: #625746;
  font-family: var(--serif);
  font-size: 22px;
  text-align: center;
  padding: 20px
}

.oeuvres-card__placeholder small {
  font: 10px var(--sans);
  text-transform: uppercase;
  letter-spacing: .14em
}

.oeuvres-card__type {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 9px;
  background: rgba(248, 245, 238, .93);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #3d392f
}

.oeuvres-card__discover {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #f5f1e9ed;
  color: #1b2c24;
  font-size: 11px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s, transform .2s
}

.oeuvres-card__open:hover .oeuvres-card__discover,
.oeuvres-card__open:focus-visible .oeuvres-card__discover {
  opacity: 1;
  transform: translateY(0)
}

.oeuvres-card__title {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.35;
  margin: 0 0 4px
}

.oeuvres-card__artist {
  font-size: 12px;
  color: #716a60;
  margin: 0 0 7px
}

.oeuvres-card__meta {
  font-size: 11px;
  line-height: 1.6;
  color: #8a8175;
  margin: 0 0 13px
}

.oeuvres-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e0d8cc;
  padding-top: 11px;
  font-size: 10px;
  color: #777064
}

.oeuvres-card__location {
  letter-spacing: .1em;
  text-transform: uppercase
}

.oeuvres-card__price {
  font-size: 11px;
  color: #39382f;
  text-align: right
}

.oeuvres-no-results,
.oeuvres-empty-state {
  padding: 55px 25px;
  text-align: center;
  background: #f9f6f0;
  border: 1px solid #e6dfd3
}

.oeuvres-no-results h3,
.oeuvres-empty-state h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin: 5px 0 10px
}

.oeuvres-no-results p,
.oeuvres-empty-state p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 18px
}

.oeuvres-no-results[hidden] {
  display: none !important
}

.oeuvres-visit-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 48px clamp(22px, 7vw, 110px);
  background: #20251f;
  color: #fff
}

.oeuvres-visit-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 0
}

.oeuvres-visit-band .eyebrow {
  margin-bottom: 10px
}

.oeuvres-visit-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.oeuvres-visit-links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-width: 155px;
  padding: 13px 14px;
  border: 1px solid rgba(233, 185, 81, .52);
  color: #f1e9d8;
  font-size: 11px
}

.oeuvres-visit-links a:hover {
  background: rgba(233, 185, 81, .1)
}

.oeuvres-footer .copyright {
  font-size: 10px
}

.oeuvres-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  border: 0;
  width: min(1040px, calc(100% - 32px));
  max-width: 1040px;
  max-height: min(86vh, 850px);
  background: #f7f3eb;
  color: #201f1a;
  box-shadow: 0 22px 80px #0005;
  overflow: auto
}

.oeuvres-dialog::backdrop {
  background: rgba(13, 17, 14, .72);
  backdrop-filter: blur(3px)
}

.oeuvres-dialog[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr)
}

.oeuvres-dialog__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f7f3eb;
  color: #25241e;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px #0001
}

.oeuvres-dialog__media {
  min-height: 360px;
  background: #e2d9ca;
  display: flex;
  align-items: center;
  justify-content: center
}

.oeuvres-dialog__media[hidden] {
  display: none !important
}

.oeuvres-dialog__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: #e2d9ca
}

.oeuvres-dialog__content {
  padding: clamp(28px, 4vw, 50px);
  align-self: center
}

.oeuvres-dialog__content h2 {
  font-family: var(--serif);
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 9px
}

.oeuvres-dialog__artist {
  font-size: 14px;
  color: #777064;
  margin: 0 0 23px
}

.oeuvres-dialog__details {
  display: grid;
  gap: 0;
  margin: 0 0 20px
}

.oeuvres-dialog__details>div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #ded6c9
}

.oeuvres-dialog__details dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #82786a
}

.oeuvres-dialog__details dd {
  margin: 0;
  font-size: 12px;
  color: #38352e
}

.oeuvres-dialog__description {
  font-size: 13px;
  line-height: 1.8;
  color: #565148;
  white-space: pre-line;
  margin: 0 0 20px
}

.oeuvres-dialog__price {
  font-size: 13px;
  margin: 0 0 18px;
  font-weight: 600
}

@media(max-width:900px) {
  .oeuvres-page-hero__inner {
    gap: 25px;
    min-height: 340px
  }

  .oeuvres-page-hero__art {
    min-height: 215px
  }

  .oeuvres-grid {
    gap: 32px 17px
  }

  .oeuvres-card__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px
  }

  .oeuvres-card__price {
    text-align: left
  }
}

@media(max-width:800px) {
  .oeuvres-page .site-header {
    height: 72px;
    padding: 0 20px
  }

  .oeuvres-page .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 14px 22px 22px;
    box-shadow: 0 14px 20px #0001;
    flex-direction: column;
    align-items: stretch;
    gap: 0
  }

  .oeuvres-page .main-nav.open {
    display: flex
  }

  .oeuvres-page .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px
  }

  .oeuvres-page .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    order: 3
  }

  .oeuvres-page .menu-toggle span {
    width: 23px;
    height: 1px;
    background: var(--ink)
  }

  .oeuvres-page-hero__inner {
    grid-template-columns: 1fr;
    padding-top: 52px;
    padding-bottom: 52px
  }

  .oeuvres-page-hero__art {
    min-height: 170px
  }

  .oeuvres-page-hero__art:before {
    right: 20%;
    top: -70px
  }

  .oeuvres-page-hero__art:after {
    right: calc(20% + 27px);
    top: -40px
  }

  .oeuvres-page-hero__sun {
    width: 70px;
    height: 70px
  }

  .oeuvres-toolbar {
    align-items: stretch
  }

  .oeuvres-search {
    width: 100%
  }

  .oeuvres-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 15px
  }

  .oeuvres-visit-band {
    align-items: flex-start;
    flex-direction: column
  }

  .oeuvres-dialog[open] {
    grid-template-columns: 1fr;
    max-height: 90vh
  }

  .oeuvres-dialog__media {
    min-height: 230px;
    max-height: 40vh
  }

  .oeuvres-dialog__media img {
    max-height: 40vh
  }

  .oeuvres-dialog__content {
    padding: 28px
  }

  .oeuvres-dialog__close {
    top: 8px;
    right: 8px
  }
}

@media(max-width:520px) {
  .oeuvres-page .brand-logo {
    width: 124px
  }

  .oeuvres-page-hero__inner {
    padding-left: 20px;
    padding-right: 20px
  }

  .oeuvres-page-hero h1 {
    font-size: 48px
  }

  .oeuvres-title-rule {
    width: 28px;
    margin-left: 10px
  }

  .oeuvres-collection {
    padding-top: 45px;
    padding-bottom: 52px
  }

  .oeuvres-section-heading {
    align-items: flex-start
  }

  .oeuvres-collection-intro {
    margin-top: 2px
  }

  .oeuvres-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    gap: 6px
  }

  .oeuvres-filter {
    padding: 10px 6px;
    font-size: 11px
  }

  .oeuvres-filter:first-child {
    grid-column: 1/-1
  }

  .oeuvres-results-bar {
    margin-top: 2px
  }

  .oeuvres-grid {
    grid-template-columns: 1fr;
    gap: 31px
  }

  .oeuvres-card__visual {
    aspect-ratio: 4/3.9
  }

  .oeuvres-card__discover {
    opacity: 1;
    transform: none
  }

  .oeuvres-card__foot {
    flex-direction: row;
    align-items: center
  }

  .oeuvres-card__price {
    text-align: right
  }

  .oeuvres-visit-band {
    padding: 38px 20px
  }

  .oeuvres-visit-links {
    width: 100%;
    flex-direction: column
  }

  .oeuvres-visit-links a {
    width: 100%
  }

  .oeuvres-dialog__content {
    padding: 24px 20px
  }

  .oeuvres-dialog__details>div {
    grid-template-columns: 95px 1fr
  }
}

@media(prefers-reduced-motion:reduce) {
  .oeuvres-page * {
    scroll-behavior: auto !important;
    transition: none !important
  }
}


/* Pagination de la collection : visible au-dessus et au-dessous des œuvres */
.oeuvres-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 28px
}

.oeuvres-pagination:empty {
  display: none
}

.oeuvres-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #d8cdbb;
  border-radius: 2px;
  background: #fbf8f2;
  color: #24251f;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s
}

.oeuvres-page-button:hover:not(:disabled) {
  border-color: #c98a24;
  background: #f4e7c8
}

.oeuvres-page-button.is-current {
  background: #203a31;
  border-color: #203a31;
  color: #fff;
  font-weight: 700
}

.oeuvres-page-button.is-arrow {
  font-size: 21px;
  line-height: 1
}

.oeuvres-page-button:disabled {
  cursor: default;
  opacity: .45
}

.oeuvres-page-button:focus-visible {
  outline: 2px solid #c98a24;
  outline-offset: 3px
}

@media(max-width:520px) {
  .oeuvres-pagination {
    gap: 6px;
    margin: 22px 0
  }

  .oeuvres-page-button {
    min-width: 38px;
    height: 40px;
    padding: 0 9px;
    font-size: 13px
  }

  .oeuvres-page-button.is-arrow {
    font-size: 19px
  }
}


/* Le titre de la collection reste entièrement visible sous l'en-tête fixe. */
.oeuvres-page #collection {
  scroll-margin-top: 118px;
}

.oeuvres-page {
  scroll-padding-top: 118px;
}

@media(max-width:800px) {
  .oeuvres-page #collection {
    scroll-margin-top: 88px;
  }

  .oeuvres-page {
    scroll-padding-top: 88px;
  }
}