/* PWA fiches techniques — shell autonome (réf. ugcbtasting) */

.ugcb-pwa-shell .type-header,
.ugcb-pwa-shell .site-header,
.ugcb-pwa-shell footer.site-footer,
.ugcb-pwa-shell .footer {
  display: none !important;
}

.pwa-fiches {
  --pwa-gold: #b7985f;
  --pwa-gold-hover: #987d4c;
  --pwa-ink: #2a2a2a;
  --pwa-muted: #6b6b6b;
  --pwa-line: rgba(183, 152, 95, 0.45);
  --pwa-header-h: 148px;
  min-height: 100vh;
  background: #fff;
  color: var(--pwa-ink);
  font-family: var(--theme-font-secondary-regular, "Helvetica Neue", Helvetica, Arial, sans-serif);
  padding-top: var(--pwa-header-h);
}

.pwa-fiches__header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 28px 14px;
}

.pwa-fiches__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 48px);
  flex-wrap: wrap;
  grid-column: 1 / -1;
}

.pwa-fiches__nav-link {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--pwa-ink);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px 2px;
  position: relative;
}

.pwa-fiches__nav-link.is-active {
  color: var(--pwa-gold);
  font-weight: 600;
}

.pwa-fiches__nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--pwa-gold);
}

.pwa-fiches__emblem {
  width: 96px;
  height: auto;
  min-height: 112px;
  border-radius: 0;
  overflow: visible;
  flex: 0 0 auto;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  padding: 2px 0;
}

.pwa-fiches__emblem img {
  width: 96px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  display: block;
}

.pwa-fiches__tools {
  position: absolute;
  right: 28px;
  top: 28px;
  display: flex;
  gap: 8px;
  z-index: 2;
  pointer-events: auto;
}

/* Évite qu’un enfant absolu du header absorbe les clics sur toute la nav. */
.pwa-fiches__header > .pwa-fiches__tools {
  width: auto;
  height: auto;
}

.pwa-fiches__icon-btn {
  border: 0;
  background: transparent;
  color: var(--pwa-ink);
  cursor: pointer;
  padding: 6px;
}

.pwa-fiches__search {
  padding: 0 28px 12px;
}

.pwa-fiches__search-input {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: block;
  border: 1px solid var(--pwa-line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
}

.pwa-fiches__filters {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 48px) 20px;
  overflow-x: auto;
}

.pwa-fiches__pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-start;
  min-width: max-content;
  padding: 4px 0;
}

.pwa-fiches__pills--wrap {
  flex-wrap: wrap;
  min-width: 0;
  padding: 0;
}

.pwa-fiches__pill {
  border: 1px solid var(--pwa-gold);
  color: var(--pwa-gold);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pwa-fiches__pill:hover {
  background: rgba(183, 152, 95, 0.08);
}

.pwa-fiches__pill.is-active {
  background: var(--pwa-gold);
  color: #fff;
}

.pwa-fiches__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
  padding: 12px clamp(16px, 4vw, 48px) 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.pwa-fiches__card[hidden] {
  display: none !important;
}

.pwa-fiches__card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pwa-fiches__card-media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f2f0eb;
}

.pwa-fiches__card-media img,
.pwa-fiches__card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pwa-fiches__card-placeholder {
  background: linear-gradient(135deg, #ebe6db, #d9d0bf);
}

.pwa-fiches__card-title {
  margin: 14px 0 0;
  font-family: var(--theme-font-primary-regular, Georgia, "Times New Roman", serif);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--pwa-gold);
}

.pwa-fiches__card-sub {
  margin: 8px 0 0;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.35;
  color: var(--pwa-muted);
}

.pwa-fiches__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--pwa-muted);
  padding: 48px 16px;
}

.pwa-fiches__drawer[hidden] {
  display: none !important;
}

.pwa-fiches__drawer {
  position: fixed;
  inset: 0;
  z-index: 10100;
  isolation: isolate;
}

.pwa-fiches__drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.pwa-fiches__drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: #fff;
  z-index: 2;
  padding: 48px 28px;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
}

.pwa-fiches__drawer-panel a {
  display: block;
  padding: 12px 0;
  color: var(--pwa-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pwa-fiches__drawer-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* ——— Tiroir recherche (slide droite) ——— */
body.pwa-search-open,
body.pwa-fav-open {
  overflow: hidden;
}

.pwa-search[hidden] {
  display: none !important;
}

.pwa-search {
  position: fixed;
  inset: 0;
  z-index: 10100;
}

.pwa-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, 0.42);
  z-index: 1;
  animation: pwa-fade-in 0.22s ease;
}

.pwa-search__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: #fff;
  z-index: 2;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
  animation: pwa-slide-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

@keyframes pwa-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pwa-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.pwa-search__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex: 0 0 auto;
}

.pwa-search__title {
  margin: 0;
  font-family: var(--theme-font-primary-regular, Georgia, "Times New Roman", serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--pwa-gold, #b7985f);
}

.pwa-search__close {
  border: 0;
  background: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #1c1a17;
  padding: 0 4px;
}

.pwa-search__field {
  position: relative;
  padding: 20px 22px 8px;
  flex: 0 0 auto;
}

.pwa-search__input-wrap {
  position: relative;
}

.pwa-search__input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pwa-gold, #b7985f);
  pointer-events: none;
}

.pwa-search__input {
  width: 100%;
  border: 1px solid rgba(183, 152, 95, 0.45);
  border-radius: 999px;
  padding: 12px 18px 12px 44px;
  font-size: 15px;
  color: #1c1a17;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pwa-search__input:focus {
  border-color: var(--pwa-gold, #b7985f);
  box-shadow: 0 0 0 3px rgba(183, 152, 95, 0.16);
}

.pwa-search__autocomplete {
  position: absolute;
  left: 22px;
  right: 22px;
  top: calc(100% - 4px);
  z-index: 5;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(28, 26, 23, 0.14);
  max-height: min(340px, 42vh);
  overflow-y: auto;
}

.pwa-search__autocomplete[hidden] {
  display: none !important;
}

.pwa-search__ac-item {
  margin: 0;
}

.pwa-search__ac-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.pwa-search__ac-link:hover,
.pwa-search__ac-link.is-active {
  background: rgba(183, 152, 95, 0.08);
}

.pwa-search__ac-img {
  flex: 0 0 52px;
  width: 52px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #efebe3;
}

.pwa-search__ac-img--empty {
  display: inline-block;
}

.pwa-search__ac-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pwa-search__ac-title {
  font-family: var(--theme-font-primary-regular, Georgia, "Times New Roman", serif);
  font-size: 15px;
  color: var(--pwa-gold, #b7985f);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-search__ac-meta {
  font-size: 12px;
  color: #7a746a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-search__filters {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 22px 36px;
}

.pwa-search__filters-title {
  margin: 8px 0 18px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a746a;
}

.pwa-search__facet {
  margin-bottom: 28px;
}

.pwa-search__facet-label {
  margin: 0 0 12px;
  font-family: var(--theme-font-primary-regular, Georgia, "Times New Roman", serif);
  font-size: 18px;
  color: #1c1a17;
}

.pwa-search__footer {
  flex: 0 0 auto;
  padding: 14px 22px 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.pwa-search__submit {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--pwa-gold, #b7985f);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.pwa-search__submit:hover,
.pwa-search__submit:focus-visible {
  background: var(--pwa-gold-hover, #987d4c);
}

@media (max-width: 960px) {
  .pwa-fiches__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .pwa-fiches__tools {
    right: 16px;
    top: 16px;
  }
}

@media (max-width: 640px) {
  .pwa-fiches {
    --pwa-header-h: 118px;
  }

  .pwa-fiches__header {
    padding: 14px 14px 10px;
  }

  .pwa-fiches__nav {
    gap: 14px;
  }

  .pwa-fiches__emblem {
    width: 72px;
    min-height: 88px;
  }

  .pwa-fiches__emblem img {
    width: 72px;
    max-height: 96px;
  }

  .pwa-fiches__filters {
    padding-inline: 16px;
  }

  .pwa-fiches__grid {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }

  .pwa-fiches__nav-link {
    font-size: 13px;
  }
}

/* ——— Fiche détail (premium) ——— */
.pwa-sheet {
  --pwa-gold: #b7985f;
  --pwa-gold-soft: rgba(183, 152, 95, 0.14);
  --pwa-ink: #1c1a17;
  --pwa-muted: #7a746a;
  --pwa-paper: #f7f4ef;
  background: #fff;
  color: var(--pwa-ink);
  min-height: 100vh;
  position: relative;
  z-index: 0;
}

.pwa-sheet__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px clamp(16px, 4vw, 48px) 0;
  color: var(--pwa-gold);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.pwa-sheet__back:hover {
  color: #987d4c;
}

.pwa-sheet__hero {
  position: relative;
  z-index: 0;
  margin-top: 16px;
  min-height: min(58vh, 560px);
  display: grid;
  align-items: end;
  background: #1c1a17;
}

.pwa-sheet__hero--plain {
  min-height: auto;
  background: var(--pwa-paper);
  padding: 48px clamp(16px, 5vw, 64px) 36px;
}

.pwa-sheet__hero-media {
  position: absolute;
  inset: 0;
}

.pwa-sheet__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pwa-sheet__hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 18, 14, 0.15) 0%, rgba(20, 18, 14, 0.55) 45%, rgba(20, 18, 14, 0.88) 100%);
}

.pwa-sheet__hero-copy {
  position: relative;
  z-index: 1;
  padding: 48px clamp(16px, 5vw, 64px) 40px;
  max-width: 920px;
}

.pwa-sheet__hero--plain .pwa-sheet__hero-copy {
  padding: 0;
}

.pwa-sheet__eyebrow {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.pwa-sheet__hero--plain .pwa-sheet__eyebrow {
  color: var(--pwa-muted);
}

.pwa-sheet__dot {
  opacity: 0.6;
}

.pwa-sheet__appellation {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pwa-gold);
}

.pwa-sheet__title {
  margin: 0;
  font-family: var(--theme-font-primary-regular, Georgia, "Times New Roman", serif);
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
  letter-spacing: 0.01em;
}

.pwa-sheet__hero--plain .pwa-sheet__title {
  color: var(--pwa-gold);
}

.pwa-sheet__classif {
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
}

.pwa-sheet__hero--plain .pwa-sheet__classif {
  color: var(--pwa-muted);
}

.pwa-sheet__body {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px clamp(16px, 5vw, 48px) 80px;
}

.pwa-sheet__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(183, 152, 95, 0.28);
}

.pwa-sheet__spec {
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid rgba(183, 152, 95, 0.22);
}

.pwa-sheet__spec:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid rgba(183, 152, 95, 0.18);
}

.pwa-sheet__spec-label {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pwa-muted);
}

.pwa-sheet__spec-value {
  margin: 0;
  font-family: var(--theme-font-primary-regular, Georgia, "Times New Roman", serif);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.35;
  color: var(--pwa-ink);
}

.pwa-sheet__tasting {
  margin-top: 48px;
  padding: 36px clamp(20px, 4vw, 40px);
  background: var(--pwa-paper);
  border-left: 3px solid var(--pwa-gold);
}

.pwa-sheet__tasting-label {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pwa-gold);
}

.pwa-sheet__tasting-text {
  font-family: var(--theme-font-primary-regular, Georgia, "Times New Roman", serif);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.65;
  color: var(--pwa-ink);
}

.pwa-sheet__cta {
  margin-top: 40px;
  text-align: center;
}

.pwa-sheet__cta-link {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--pwa-gold);
  color: var(--pwa-gold);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.pwa-sheet__cta-link:hover {
  background: var(--pwa-gold);
  color: #fff;
}

.pwa-sheet__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px clamp(16px, 4vw, 48px) 0;
  max-width: 1100px;
  margin: 0 auto;
}

.pwa-sheet__top .pwa-sheet__back {
  margin: 0;
  padding: 0;
}

.pwa-sheet__fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--pwa-gold, #b7985f);
  background: transparent;
  color: var(--pwa-gold, #b7985f);
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pwa-sheet__fav-btn.is-active,
.pwa-sheet__fav-btn:hover {
  background: var(--pwa-gold, #b7985f);
  color: #fff;
}

.pwa-sheet__fav-btn.is-active svg {
  fill: currentColor;
}

.pwa-sheet__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.pwa-sheet__gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #efebe3;
}

.pwa-sheet__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 10;
}

.pwa-sheet__videos {
  margin-top: 40px;
  display: grid;
  gap: 28px;
}

.pwa-sheet__video-title {
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--theme-font-primary-regular, Georgia, serif);
  color: var(--pwa-gold, #b7985f);
  font-size: 18px;
}

.pwa-sheet__video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
}

.pwa-sheet__video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pwa-fiches__icon-btn {
  position: relative;
}

.pwa-fiches__fav-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pwa-gold, #b7985f);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

/* ——— Favoris drawer ——— */
.pwa-fav[hidden] {
  display: none !important;
}

.pwa-fav {
  position: fixed;
  inset: 0;
  z-index: 10100;
}

.pwa-fav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.45);
  z-index: 1;
}

.pwa-fav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #f7f4ef;
  z-index: 2;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(0);
  animation: pwa-fav-slide 0.28s ease;
}

@keyframes pwa-fav-slide {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.pwa-fav.is-fullscreen .pwa-fav__panel {
  width: 100%;
  max-width: none;
}

.pwa-fav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(183, 152, 95, 0.35);
}

.pwa-fav__title {
  margin: 0;
  font-family: var(--theme-font-primary-regular, Georgia, serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--pwa-gold, #b7985f);
}

.pwa-fav__head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwa-fav__action {
  border: 1px solid var(--pwa-gold, #b7985f);
  background: transparent;
  color: var(--pwa-gold, #b7985f);
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.pwa-fav__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #1c1a17;
  cursor: pointer;
}

.pwa-fav__empty {
  margin: 24px 20px;
  color: var(--pwa-muted, #7a7368);
  font-size: 14px;
  line-height: 1.5;
}

.pwa-fav__list {
  list-style: none;
  margin: 0;
  padding: 8px 12px 32px;
  overflow: auto;
  flex: 1;
}

.pwa-fav.is-fullscreen .pwa-fav__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 24px clamp(16px, 4vw, 48px) 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.pwa-fav__item {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid rgba(183, 152, 95, 0.35);
}

.pwa-fav.is-fullscreen .pwa-fav__item {
  flex-direction: column;
  margin-bottom: 0;
}

.pwa-fav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 10px;
  text-decoration: none;
  color: inherit;
}

.pwa-fav.is-fullscreen .pwa-fav__link {
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 14px;
}

.pwa-fav__thumb {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 6px;
  background: #efebe3;
}

.pwa-fav.is-fullscreen .pwa-fav__thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.pwa-fav__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pwa-fav__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pwa-fav.is-fullscreen .pwa-fav__meta {
  padding: 0 14px;
}

.pwa-fav__name {
  font-family: var(--theme-font-primary-regular, Georgia, serif);
  color: var(--pwa-gold, #b7985f);
  font-size: 16px;
  line-height: 1.25;
}

.pwa-fav__sub {
  font-size: 12px;
  color: var(--pwa-muted, #7a7368);
}

.pwa-fav__remove {
  border: 0;
  background: transparent;
  color: #8a8174;
  font-size: 22px;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .pwa-sheet__specs {
    grid-template-columns: 1fr;
  }

  .pwa-sheet__spec:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .pwa-sheet__hero {
    min-height: 48vh;
  }

  .pwa-sheet__gallery {
    grid-template-columns: 1fr;
  }

  .pwa-sheet__top {
    flex-wrap: wrap;
  }

  .pwa-sheet__fav-btn span {
    display: none;
  }
}


/* ——— Appellations grille ——— */
.pwa-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
  padding: 28px clamp(16px, 4vw, 48px) 72px;
  max-width: 1280px;
  margin: 0 auto;
}

.pwa-app-card {
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.pwa-app-card__media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #efebe3;
}

.pwa-app-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.pwa-app-card:hover .pwa-app-card__media img {
  transform: scale(1.04);
}

.pwa-app-card__name {
  margin: 16px 0 0;
  font-family: var(--theme-font-primary-regular, Georgia, "Times New Roman", serif);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  color: var(--pwa-gold, #b7985f);
}

/* ——— Détail appellation ——— */
.pwa-app-detail {
  padding-bottom: 72px;
}

.pwa-app-detail__hero {
  position: relative;
  min-height: min(52vh, 520px);
  display: grid;
  align-items: end;
  background: #1c1a17;
  margin-top: 12px;
}

.pwa-app-detail__hero--plain {
  min-height: auto;
  background: #f7f4ef;
  padding: 48px clamp(16px, 5vw, 64px) 36px;
}

.pwa-app-detail__hero-media {
  position: absolute;
  inset: 0;
}

.pwa-app-detail__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pwa-app-detail__hero-copy {
  position: relative;
  z-index: 1;
  padding: 48px clamp(16px, 5vw, 64px) 40px;
}

.pwa-app-detail__hero--plain .pwa-app-detail__hero-copy {
  padding: 0;
}

.pwa-app-detail__texts {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px clamp(16px, 5vw, 40px) 24px;
  text-align: center;
}

.pwa-app-detail__intro,
.pwa-app-detail__body {
  font-family: var(--theme-font-primary-regular, Georgia, "Times New Roman", serif);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.7;
  color: #2a2a2a;
}

.pwa-app-detail__intro {
  margin: 0 0 22px;
}

.pwa-app-detail__body {
  margin: 0;
}

.pwa-app-detail__map {
  max-width: 980px;
  margin: 28px auto 0;
  padding: 0 clamp(16px, 4vw, 40px);
}

.pwa-app-detail__map-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
}

.pwa-app-detail__map-trigger img,
.pwa-app-detail__map img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.pwa-app-detail__map-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.72);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pwa-app-detail__map-trigger:hover .pwa-app-detail__map-hint,
.pwa-app-detail__map-trigger:focus-visible .pwa-app-detail__map-hint {
  opacity: 1;
}

/* Lightbox cartographie */
.pwa-map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.94);
  color: #fff;
  touch-action: none;
}

.pwa-map-lightbox[hidden] {
  display: none !important;
}

.pwa-map-lightbox__toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.pwa-map-lightbox__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwa-map-lightbox__btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.pwa-map-lightbox__btn:hover,
.pwa-map-lightbox__btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.pwa-map-lightbox__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  cursor: grab;
  display: grid;
  place-items: center;
}

.pwa-map-lightbox__stage.is-dragging {
  cursor: grabbing;
}

.pwa-map-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  transition: transform 0.08s linear;
}

.pwa-map-lightbox__hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  pointer-events: none;
  opacity: 0.9;
}

body.pwa-map-lightbox-open {
  overflow: hidden;
}

.pwa-app-detail__chateaux {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 clamp(16px, 4vw, 40px);
}

.pwa-app-detail__chateaux-title {
  margin: 0 0 28px;
  text-align: center;
  font-family: var(--theme-font-primary-regular, Georgia, "Times New Roman", serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: var(--pwa-gold, #b7985f);
}

.pwa-app-chateaux {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.pwa-app-chateau-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  min-height: 180px;
  padding: 28px 18px;
  background: #f7f4ef;
  border: 1px solid var(--pwa-gold, #b7985f);
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pwa-app-chateau-card:hover {
  background: #fff;
  transform: translateY(-2px);
}

.pwa-app-chateau-card__name {
  margin: 0;
  font-family: var(--theme-font-primary-regular, Georgia, "Times New Roman", serif);
  font-size: 20px;
  line-height: 1.25;
  color: var(--pwa-gold, #b7985f);
}

.pwa-app-chateau-card__app {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1c1a17;
}

.pwa-app-chateau-card__rule {
  display: block;
  width: 42px;
  height: 1px;
  margin: 12px auto 0;
  background: var(--pwa-gold, #b7985f);
}

.pwa-app-chateau-card__class {
  margin: 12px 0 0;
  font-family: var(--theme-font-primary-regular, Georgia, "Times New Roman", serif);
  font-size: 13px;
  color: var(--pwa-gold, #b7985f);
}

@media (max-width: 960px) {
  .pwa-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pwa-app-grid {
    grid-template-columns: 1fr;
  }
}
