/* =========================================================
   330 — CSS — Vente
   Projet : Plaisirs Gourmands
   Scope : page Vente
   Préfixe : pg-
   Emplacement source : _dev/snippets-source/css/330-css-vente.css
   Action : CRÉATION
   Dépendances : 130 — HTML — Vente, 300 — CSS — Fondation globale
   Notes : portage maquette page uniquement, sans header/footer ni JS
========================================================= */

.pg-sale {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 56px 0;
  overflow-x: hidden;
  background: var(--pg-color-bg);
  color: var(--pg-color-text);
  font-family: var(--pg-font-body, "Montserrat", sans-serif);
}

body.pg-shell-active:has(.pg-sale) .site-content,
body.pg-shell-active:has(.pg-sale) .inside-article,
body.pg-shell-active:has(.pg-sale) .entry-content {
  padding-left: 0;
  padding-right: 0;
  background: var(--pg-color-bg);
}

.pg-sale > * {
  box-sizing: border-box;
  width: min(calc(100% - 2rem), 1300px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.pg-sale .pg-sale__product-header {
  margin-bottom: 42px;
}

.pg-sale .pg-sale__tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--pg-color-text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  line-height: 1;
  text-transform: uppercase;
}

.pg-sale .pg-sale__tagline::before {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  background: var(--pg-color-accent);
}

.pg-sale .pg-sale__title {
  margin: 0 0 15px;
  color: var(--pg-color-text);
  font-family: var(--pg-font-display, "Playfair Display", serif);
  font-size: clamp(34px, 10vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.pg-sale .pg-sale__subtitle {
  max-width: 100%;
  margin: 0 0 14px;
  color: var(--pg-color-text-muted);
  font-family: var(--pg-font-body, Montserrat, system-ui, sans-serif);
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  text-wrap: pretty;
}

.pg-sale h2.pg-sale__subtitle {
  margin: -7px 0 14px;
  color: #E3C09C;
  font-size: clamp(18px, 1.55vw, 21px);
  font-weight: 500;
  line-height: 1.4;
}

.pg-sale .pg-sale__photo-grid,
.pg-sale .pg-sale__details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.pg-sale .pg-sale__photo-card,
.pg-sale .pg-sale__details-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(180, 185, 190, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(220, 225, 230, 0.06), rgba(16, 17, 19, 0.92)),
    #101113;
  box-shadow:
    0 36px 78px rgba(0, 0, 0, 0.56),
    0 0 48px rgba(220, 225, 230, 0.08);
  transition:
    border-color var(--pg-transition-base),
    box-shadow var(--pg-transition-base),
    transform var(--pg-transition-base);
}

.pg-sale .pg-sale__photo-card {
  aspect-ratio: 16 / 10;
}

.pg-sale .pg-sale__photo-rotator {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.pg-sale .pg-sale__photo-rotator:focus-visible {
  outline: 2px solid var(--pg-color-focus);
  outline-offset: -2px;
}

.pg-sale.pg-sale--img-motion-ready .pg-sale__photo-card {
  opacity: 0;
  transform: translateY(14px) scale(0.95);
  transition:
    opacity 1.05s cubic-bezier(0.2, 0.72, 0.24, 1),
    transform 1.05s cubic-bezier(0.2, 0.72, 0.24, 1);
}

.pg-sale.pg-sale--img-motion-ready .pg-sale__photo-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes pg-sale-desktop-photo-once {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pg-sale .pg-sale__photo-card::before,
.pg-sale .pg-sale__details-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 42%, rgba(220, 225, 230, 0.08), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--pg-color-bg) 8%, transparent), color-mix(in srgb, var(--pg-color-bg) 14%, transparent));
  opacity: 0.72;
  pointer-events: none;
}

.pg-sale .pg-sale__photo-card::after,
.pg-sale .pg-sale__details-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(180, 185, 190, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 245, 0.03),
    0 0 32px rgba(220, 225, 230, 0.06);
  opacity: 0.68;
  pointer-events: none;
}

.pg-sale .pg-sale__photo-card:hover,
.pg-sale .pg-sale__photo-card:focus-within,
.pg-sale .pg-sale__details-card:hover,
.pg-sale .pg-sale__details-card:focus-within {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(220, 225, 230, 0.36);
  box-shadow:
    0 46px 92px rgba(0, 0, 0, 0.62),
    0 0 58px rgba(220, 225, 230, 0.08);
}

.pg-sale .pg-sale__photo-card:hover::after,
.pg-sale .pg-sale__photo-card:focus-within::after,
.pg-sale .pg-sale__details-card:hover::after,
.pg-sale .pg-sale__details-card:focus-within::after {
  opacity: 0.9;
  border-color: rgba(220, 225, 230, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(245, 245, 245, 0.03),
    0 0 44px rgba(220, 225, 230, 0.08);
}

.pg-sale .pg-sale__photo-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.7s ease,
    transform 0.35s ease;
}

.pg-sale .pg-sale__photo-img.is-active {
  opacity: 1;
}

.pg-sale .pg-sale__details-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
  padding: clamp(20px, 6vw, 28px);
}

.pg-sale .pg-sale__details-title {
  margin: 0;
  color: var(--pg-color-text);
  font-family: var(--pg-font-display, "Playfair Display", serif);
  font-size: clamp(28px, 8vw, 34px);
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
}

.pg-sale .pg-sale__details-text {
  margin: 0;
  color: var(--pg-color-text-muted);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.pg-sale .pg-sale__photo-note {
  margin: -2px 0 2px;
  color: color-mix(in srgb, var(--pg-color-text-muted) 78%, var(--pg-color-accent) 22%);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.5;
}

.pg-sale .pg-sale__details-btn {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: 12px 18px;
  border: 1px solid color-mix(in srgb, var(--pg-color-accent) 58%, transparent);
  border-radius: 8px;
  background: var(--pg-color-accent);
  color: var(--pg-color-bg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  transition:
    background-color var(--pg-transition-base),
    border-color var(--pg-transition-base),
    box-shadow var(--pg-transition-base),
    color var(--pg-transition-base);
}

.pg-sale .pg-sale__details-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pg-sale .pg-sale__details-btn--primary:hover {
  border-color: var(--pg-color-accent);
  background-color: transparent;
  color: var(--pg-color-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--pg-color-accent) 32%, transparent);
}

.pg-sale .pg-sale__details-btn--secondary {
  border: 1px solid rgba(245, 245, 219, 0.3);
  background-color: transparent;
  color: var(--pg-color-text);
}

.pg-sale .pg-sale__details-btn--secondary:hover {
  border-color: var(--pg-color-accent);
  color: var(--pg-color-accent);
  box-shadow: none;
}

.pg-sale .pg-sale__tel-desktop {
  display: none;
}

.pg-sale .pg-sale__cta-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 22px;
}

.pg-sale .pg-sale__btn-primary,
.pg-sale .pg-sale__btn-secondary {
  display: block;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.pg-sale .pg-sale__btn-primary {
  padding: 18px 20px;
  border: 1px solid var(--pg-color-accent);
  background-color: var(--pg-color-accent);
  color: var(--pg-color-bg);
}

.pg-sale .pg-sale__btn-primary:hover {
  background-color: transparent;
  color: var(--pg-color-text);
}

.pg-sale .pg-sale__btn-secondary {
  padding: 16px 20px;
  border: 1px solid rgba(245, 245, 219, 0.3);
  background-color: transparent;
  color: var(--pg-color-text);
}

.pg-sale .pg-sale__btn-secondary:hover {
  border-color: var(--pg-color-accent);
  color: var(--pg-color-accent);
}

.pg-sale .pg-phone-number {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0.045em;
  font-weight: 600;
}

@keyframes pg-sale-scroll-text-in {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

.pg-sale.pg-sale--motion-ready .pg-sale-reveal {
  opacity: 0;
  transition:
    opacity 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
    clip-path 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--pg-sale-reveal-delay, 0ms);
  will-change: opacity, filter, clip-path, transform;
}

.pg-sale.pg-sale--motion-ready .pg-sale-reveal--text {
  clip-path: inset(0 0 100% 0);
  transform: translateY(14px);
}

@keyframes pg-page-entry-tagline-in {
  from {
    opacity: 0;
    transform: translateX(32px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pg-page-entry-tagline-line-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.pg-sale .pg-page-entry__tagline {
  animation: pg-page-entry-tagline-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pg-sale .pg-page-entry__tagline::before {
  animation: pg-page-entry-tagline-line-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.04s;
}

.pg-sale.pg-sale--motion-ready .pg-sale-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  clip-path: inset(0 0 0 0);
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .pg-sale .pg-page-entry__tagline,
  .pg-sale .pg-page-entry__tagline::before {
    animation: none;
  }

  .pg-sale.pg-sale--motion-ready .pg-sale-reveal {
    opacity: 1;
    filter: none;
    clip-path: none;
    transform: none;
    transition: none;
  }

  .pg-sale.pg-sale--img-motion-ready .pg-sale__photo-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pg-sale .pg-sale__photo-img {
    transition: transform 0.35s ease;
  }
}

@media (min-width: 64.0625rem) {
  .pg-sale .pg-sale__photo-card {
    animation: pg-sale-desktop-photo-once 1.25s cubic-bezier(0.2, 0.72, 0.24, 1) both;
  }

  .pg-sale .pg-sale__photo-card:nth-child(2) {
    animation-delay: 0.12s;
  }

  .pg-sale .pg-sale__photo-card:nth-child(3) {
    animation-delay: 0.24s;
  }
}

@media (max-width: 48rem) {
  .pg-sale {
    display: flex;
    flex-direction: column;
  }

  .pg-sale {
    padding: 56px 0;
  }

  .pg-sale > * {
    width: min(calc(100% - clamp(28px, 8vw, 40px)), 1300px);
    min-width: 0;
  }

  .pg-sale .pg-sale__product-header {
    margin-bottom: 42px;
  }

  .pg-sale .pg-sale__tagline {
    margin-bottom: 30px;
    font-size: 12px;
    letter-spacing: clamp(2px, 0.8vw, 4px);
  }

  .pg-sale .pg-sale__title {
    margin-bottom: 20px;
    font-size: clamp(36px, 11vw, 44px);
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
  }

  .pg-sale .pg-sale__subtitle {
    font-size: clamp(16.5px, 4.4vw, 18px);
    line-height: 1.45;
  }

  .pg-sale h2.pg-sale__subtitle {
    max-width: 100%;
    display: block;
    width: 100%;
    margin: -4px 0 10px;
    font-size: clamp(17.5px, 4.5vw, 19px);
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-align-last: center;
    text-wrap: pretty;
    overflow-wrap: break-word;
  }

  .pg-sale p.pg-sale__subtitle {
    max-width: 100%;
    margin: 0;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
    overflow-wrap: break-word;
    word-spacing: -0.02em;
    letter-spacing: normal;
  }

  .pg-sale .pg-sale__photo-grid,
  .pg-sale .pg-sale__details-grid {
    display: contents;
  }

  .pg-sale .pg-sale__photo-grid .pg-sale__photo-card:nth-child(1) {
    order: 1;
  }

  .pg-sale .pg-sale__details-grid .pg-sale__details-card:nth-child(1) {
    order: 2;
  }

  .pg-sale .pg-sale__photo-grid .pg-sale__photo-card:nth-child(2) {
    order: 3;
  }

  .pg-sale .pg-sale__details-grid .pg-sale__details-card:nth-child(2) {
    order: 4;
  }

  .pg-sale .pg-sale__photo-grid .pg-sale__photo-card:nth-child(3) {
    order: 5;
  }

  .pg-sale .pg-sale__details-grid .pg-sale__details-card:nth-child(3) {
    order: 6;
  }

  .pg-sale .pg-sale__photo-card,
  .pg-sale .pg-sale__details-card {
    margin-bottom: 18px;
  }

  .pg-sale .pg-sale__details-btn {
    width: 100%;
    min-width: 0;
    margin-inline: 0;
  }

  .pg-sale .pg-sale__photo-note {
    white-space: normal;
  }

  .pg-sale .pg-sale__cta-group {
    order: 7;
    gap: 15px;
    margin-top: 4px;
  }

  .pg-sale .pg-sale__btn-primary,
  .pg-sale .pg-sale__btn-secondary {
    width: 100%;
    min-width: 0;
    padding: 15px 20px;
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .pg-sale .pg-sale__photo-card:hover .pg-sale__photo-img {
    transform: scale(1.04);
  }
}

@media (min-width: 1025px) {
  .pg-sale .pg-sale__details-cta .pg-sale__details-btn {
    width: 100%;
    min-width: 0;
    margin-inline: 0;
    min-height: 46px;
  }

  .pg-sale .pg-sale__tel-mobile {
    display: none;
  }

  .pg-sale .pg-sale__tel-desktop {
    display: inline;
  }

  .pg-sale {
    padding: clamp(72px, 5.5vw, 96px) 0;
  }

  .pg-sale > * {
    width: min(90%, 1300px);
  }

  .pg-sale .pg-sale__product-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(28px, 2.2vw, 38px);
    align-items: stretch;
  }

  .pg-sale .pg-sale__photo-grid,
  .pg-sale .pg-sale__details-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .pg-sale .pg-sale__photo-note {
    font-size: 10px;
    white-space: nowrap;
  }

  .pg-sale .pg-sale__product-header {
    margin-bottom: clamp(42px, 4vw, 56px);
  }

  .pg-sale .pg-sale__subtitle {
    max-width: 100%;
    white-space: normal;
    text-align: justify;
    text-align-last: left;
  }

  .pg-sale .pg-sale__title {
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .pg-sale .pg-sale__product-gallery,
  .pg-sale .pg-sale__product-details {
    height: 100%;
  }

  .pg-sale .pg-sale__main-view {
    min-height: clamp(390px, 31vw, 520px);
    aspect-ratio: auto;
  }

  .pg-sale .pg-sale__product-details {
    width: 100%;
    max-width: 480px;
    justify-self: end;
    justify-content: flex-start;
    gap: clamp(20px, 1.8vw, 28px);
  }

  .pg-sale .pg-sale__details-block {
    padding: clamp(18px, 1.6vw, 24px) 0 0;
  }

  .pg-sale .pg-sale__details-block ul {
    gap: 12px;
  }

  .pg-sale .pg-sale__details-block li {
    line-height: 1.5;
  }

  .pg-sale .pg-sale__cta-group {
    flex-direction: row;
    gap: 10px;
  }

  .pg-sale .pg-sale__btn-primary,
  .pg-sale .pg-sale__btn-secondary {
    flex: 1 1 0;
    padding: 14px 16px;
    letter-spacing: 1.4px;
  }

  .pg-sale .pg-sale__btn-secondary {
    display: none;
  }

  .pg-sale .pg-sale__thumbnails {
    grid-template-columns: repeat(3, 1fr);
  }
}



