/*
 * Les productions — mise en page consolidée
 * Version 2026-08-21.4
 */

.wlf-page {
  --prod-bg: #0d0b0a;
  --prod-panel: #17110e;
  --prod-gold: #d9aa4d;
  --prod-text: #f4ede5;
  --prod-muted: #cfbeae;
  background: var(--prod-bg);
}

.wp-prod-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: 600px;
  padding-top: clamp(6rem, 10vw, 9rem);
  padding-bottom: clamp(5rem, 8vw, 7rem);
  overflow: hidden;
  border-bottom: 1px solid rgba(217, 170, 77, 0.24);
  background-image:
    linear-gradient(90deg, rgba(10,7,6,.96), rgba(18,9,7,.84) 45%, rgba(8,7,6,.48)),
    var(--wp-prod-hero-image);
  background-position: center;
  background-size: cover;
}

.wp-prod-hero__inner { width: min(820px, 100%); }

.wp-prod-hero h1 {
  margin: .55rem 0 1.25rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.045em;
}

.wp-prod-hero__lead {
  max-width: 780px;
  margin: 0;
  color: #f0e2d1;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.75;
}

.wp-prod-intro,
.wlf-catalog,
.wp-prod-final {
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
}

.wp-prod-intro {
  background: radial-gradient(circle at 10% 20%, rgba(217,170,77,.09), transparent 30%), #15100e;
}

.wlf-catalog { background: var(--prod-bg); }

.wlf-catalog__inner {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Chaque production est une carte autonome. Aucune hauteur globale n'est imposée. */
.wlf-card {
  height: auto !important;
  overflow: hidden;
  border: 1px solid rgba(217,170,77,.24);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(51,27,20,.88), rgba(19,14,12,.98));
  box-shadow: 0 24px 60px rgba(0,0,0,.26);
}

.wlf-card__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(370px, .88fr);
  align-items: stretch;
  height: auto !important;
  min-height: 0;
}

.wlf-card__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.75rem, 3.25vw, 2.65rem);
}

.wlf-card__content h2 {
  margin: .35rem 0 .8rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 3.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.03em;
}

.wlf-description {
  margin: 0;
  color: var(--prod-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Mosaïques : elles s'étirent avec la carte, sans laisser de vide dessous. */
.wlu-grid,
.wld-mosaic,
.wlf-market-gallery {
  box-sizing: border-box;
  display: grid;
  align-self: stretch;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 520px;
  gap: 2px;
  padding: 0;
  background: transparent;
}

.wlu-grid figure,
.wld-mosaic figure,
.wlf-market-gallery figure,
.wlf-thumbs figure {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #100c0a;
}

/* Le fond reprend la photo et remplit la case; la vraie photo reste entière. */
.wlu-grid figure::before,
.wld-mosaic figure::before,
.wlf-market-gallery figure::before,
.wlf-thumbs figure::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -14px;
  background-image: linear-gradient(rgba(7,5,4,.28), rgba(7,5,4,.28)), var(--prod-photo);
  background-position: center;
  background-size: cover;
  filter: blur(13px) saturate(.85);
  opacity: .72;
  transform: scale(1.1);
}

.wlu-grid img,
.wld-mosaic img,
.wlf-market-gallery img,
.wlf-thumbs img {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
}

.wlu-grid--six {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.wlu-grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.wlu-grid--two {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.wld-mosaic--kassav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.wlf-market-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.wlf-market-gallery__main { grid-row: 1 / -1; }

/* La grande photo des Marchés Créoles remplit volontairement sa colonne. */
.wlf-market-gallery__main img {
  object-fit: cover !important;
  object-position: center;
}

.wlf-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 1.15rem;
}

.wlf-thumbs figure {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(217,170,77,.16);
  border-radius: 10px;
}

.wlf-video-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 1.1rem;
}

.wlf-video-choice {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: .6rem;
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(217,170,77,.18);
  border-radius: 10px;
  color: #d7c5b2;
  background: #100c0a;
  cursor: pointer;
  text-align: left;
}

.wlf-video-choice.is-active {
  color: #f0cb78;
  border-color: rgba(217,170,77,.65);
}

.wlf-video-choice img {
  display: block;
  width: 76px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.wlf-video-choice span { font-weight: 700; }

.wp-prod-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(217,170,77,.22);
  border-radius: 15px;
  background: #090706;
}

.wp-prod-video__button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #090706;
  cursor: pointer;
}

.wp-prod-video__button > img,
.wp-prod-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.wp-prod-video__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,4,3,.72), rgba(5,4,3,.04) 62%);
}

.wp-prod-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding-left: 4px;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.35);
  font-size: 1.2rem;
  transform: translate(-50%, -50%);
}

.wp-prod-video__label {
  position: absolute;
  right: 1rem;
  bottom: .8rem;
  left: 1rem;
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0,0,0,.9);
}

.wp-prod-final {
  border-top: 1px solid rgba(217,170,77,.22);
  background: radial-gradient(circle at 50% 0%, rgba(217,170,77,.13), transparent 36%), #15100e;
  text-align: center;
}

.wp-prod-final__inner { max-width: 900px; margin: 0 auto; }
.wp-prod-final__inner > p:not(.wc-section-number) { color: #cfbeae; font-size: 1.03rem; line-height: 1.75; }
.wp-prod-final .wc-actions { justify-content: center; }

@media (max-width: 960px) {
  .wlf-card__layout { grid-template-columns: minmax(0, 1fr); }
  .wlu-grid, .wld-mosaic, .wlf-market-gallery { height: min(68vw, 560px); min-height: 420px; }
}

@media (max-width: 680px) {
  .wp-prod-hero { min-height: 520px; }
  .wlf-card__content { padding: 1.55rem 1.25rem 1.75rem; }
  .wlu-grid, .wld-mosaic, .wlf-market-gallery { height: auto; min-height: 0; }
  .wlu-grid--six, .wld-mosaic--kassav { grid-template-rows: repeat(3, 145px); }
  .wlu-grid--four { grid-template-rows: repeat(2, 170px); }
  .wlu-grid--two { grid-template-rows: repeat(2, 220px); }
  .wlf-market-gallery { grid-template-rows: repeat(3, 150px); }
  .wlf-video-choices { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 430px) {
  .wlu-grid--six, .wld-mosaic--kassav { grid-template-rows: repeat(3, 128px); }
  .wlu-grid--four { grid-template-rows: repeat(2, 150px); }
  .wlu-grid--two { grid-template-rows: repeat(2, 195px); }
  .wlf-market-gallery { grid-template-rows: repeat(3, 135px); }
}
