/**
 * Pastel universe refinements.
 * Extends the shared Beaux-Arts v3 layout without affecting other universes.
 */

body.cf-univers-pastel-v3 .cf-pastel-v3-hero {
  isolation: isolate;
}

body.cf-univers-pastel-v3 .cf-pastel-v3-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.cf-univers-pastel-v3 .collections-section .block-image {
  background: #f3efe8;
}

/* Comment choisir — pastel criteria cards (pastel page only) */
body.cf-univers-pastel-v3 .cf-ps-v3-choisir {
  padding: 20px 40px 70px;
  text-align: left;
}

body.cf-univers-pastel-v3 .cf-ps-v3-choisir-lead {
  margin: 0 0 32px;
  max-width: 100%;
  font-family: 'Jost', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.65;
  color: #333;
}

body.cf-univers-pastel-v3 .cf-ps-v3-choisir-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.cf-univers-pastel-v3 .cf-ps-v3-choisir-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(55, 66, 150, 0.18);
  border-left: 5px solid var(--cf-v3-primary-pink, #c24c86);
}

body.cf-univers-pastel-v3 .cf-ps-v3-choisir-card:nth-child(3n+2) {
  border-left-color: var(--cf-v3-primary-blue, #374296);
}

body.cf-univers-pastel-v3 .cf-ps-v3-choisir-card:nth-child(3n) {
  border-left-color: #7a5c3a;
}

body.cf-univers-pastel-v3 .cf-ps-v3-choisir-card-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4eef2;
  color: var(--cf-v3-primary-blue, #374296);
}

body.cf-univers-pastel-v3 .cf-ps-v3-choisir-card-icon .material-symbols-outlined {
  font-size: 22px;
}

body.cf-univers-pastel-v3 .cf-ps-v3-choisir-card-title {
  margin: 0 0 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #a80008;
  line-height: 1.3;
}

body.cf-univers-pastel-v3 .cf-ps-v3-choisir-card-text {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #333;
}

@media (max-width: 1024px) {
  body.cf-univers-pastel-v3 .cf-pastel-v3-hero {
    min-height: 620px;
  }

  body.cf-univers-pastel-v3 .cf-pastel-v3-hero-media {
    object-position: 48% center;
  }

  body.cf-univers-pastel-v3 .cf-ps-v3-choisir-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.cf-univers-pastel-v3 .cf-pastel-v3-hero {
    min-height: 560px;
    align-items: flex-end;
    padding-top: 180px;
  }

  body.cf-univers-pastel-v3 .cf-pastel-v3-hero-media {
    object-position: 46% center;
  }

  body.cf-univers-pastel-v3 .cf-ps-v3-choisir {
    padding: 20px 24px 50px;
  }

  body.cf-univers-pastel-v3 .cf-ps-v3-choisir-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Encarts spécifiques par gamme —— */
body.cf-univers-pastel-v3 .cf-ps-v3-encart {
  width: 100%;
  margin: 0;
  padding: 36px 40px 48px;
  background: #fff;
  border-top: 1px solid rgba(55, 66, 150, 0.08);
  border-bottom: 1px solid rgba(55, 66, 150, 0.08);
  box-sizing: border-box;
}

body.cf-univers-pastel-v3 .content-blocks > .cf-ps-v3-encart {
  clear: both;
}

body.cf-univers-pastel-v3 .cf-ps-v3-encart__title {
  margin: 0 0 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1f1462;
}

/* Color swatch grids */
body.cf-univers-pastel-v3 .cf-ps-v3-swatches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.cf-univers-pastel-v3 .cf-ps-v3-encart--ingres .cf-ps-v3-swatches {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cf-univers-pastel-v3 .cf-ps-v3-swatch {
  position: relative;
  margin: 0;
  min-height: 78px;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.08);
}

body.cf-univers-pastel-v3 .cf-ps-v3-swatch__fill {
  position: absolute;
  inset: 0;
  display: block;
}

body.cf-univers-pastel-v3 .cf-ps-v3-swatch__label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  min-height: 78px;
  padding: 10px 8px;
  text-align: center;
}

body.cf-univers-pastel-v3 .cf-ps-v3-swatch__name {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

body.cf-univers-pastel-v3 .cf-ps-v3-swatch__name-alt {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.88;
}

body.cf-univers-pastel-v3 .cf-ps-v3-swatch--light .cf-ps-v3-swatch__name,
body.cf-univers-pastel-v3 .cf-ps-v3-swatch--light .cf-ps-v3-swatch__name-alt {
  color: #1a1a1a;
}

body.cf-univers-pastel-v3 .cf-ps-v3-swatch--dark .cf-ps-v3-swatch__name,
body.cf-univers-pastel-v3 .cf-ps-v3-swatch--dark .cf-ps-v3-swatch__name-alt {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Pastelmat vs Pastelgrain */
body.cf-univers-pastel-v3 .cf-ps-v3-encart--vs {
  background:
    linear-gradient(180deg, #fbfaf8 0%, #fff 40%, #fff 100%);
}

body.cf-univers-pastel-v3 .cf-ps-v3-vs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px 28px;
  align-items: start;
}

body.cf-univers-pastel-v3 .cf-ps-v3-vs__col {
  min-width: 0;
  text-align: center;
}

body.cf-univers-pastel-v3 .cf-ps-v3-vs__name {
  margin: 0 0 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}

body.cf-univers-pastel-v3 .cf-ps-v3-vs__media {
  margin: 0 auto 18px;
  max-width: 360px;
  overflow: hidden;
  background: #ececec;
}

body.cf-univers-pastel-v3 .cf-ps-v3-vs__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

body.cf-univers-pastel-v3 .cf-ps-v3-vs__points {
  list-style: disc;
  margin: 0 auto;
  padding: 0 0 0 1.15em;
  max-width: 360px;
  text-align: left;
  color: #e36b1e;
}

body.cf-univers-pastel-v3 .cf-ps-v3-vs__points li {
  margin: 0 0 10px;
  font-family: 'Jost', sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  color: #e36b1e;
}

body.cf-univers-pastel-v3 .cf-ps-v3-vs__divider {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

body.cf-univers-pastel-v3 .cf-ps-v3-vs__divider span {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #e36b1e;
}

@media (max-width: 1024px) {
  body.cf-univers-pastel-v3 .cf-ps-v3-encart {
    padding: 28px 24px 40px;
  }

  body.cf-univers-pastel-v3 .cf-ps-v3-swatches,
  body.cf-univers-pastel-v3 .cf-ps-v3-encart--ingres .cf-ps-v3-swatches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.cf-univers-pastel-v3 .cf-ps-v3-vs {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.cf-univers-pastel-v3 .cf-ps-v3-vs__divider {
    padding: 4px 0 8px;
  }
}

@media (max-width: 640px) {
  body.cf-univers-pastel-v3 .cf-ps-v3-encart {
    padding: 24px 16px 36px;
  }

  body.cf-univers-pastel-v3 .cf-ps-v3-swatches,
  body.cf-univers-pastel-v3 .cf-ps-v3-encart--ingres .cf-ps-v3-swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.cf-univers-pastel-v3 .cf-ps-v3-encart__title {
    font-size: 1.15rem;
  }

  body.cf-univers-pastel-v3 .cf-ps-v3-vs__name {
    font-size: 1.25rem;
  }
}
