/* ======================================================
   RANGES — cleaner editorial showcase
   ====================================================== */
.ranges { padding-top: clamp(5.5rem, 9cqw, 8rem); padding-bottom: 0; }

.ranges__header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 5rem;
}
@media (max-width: 800px) {
  .ranges__header { grid-template-columns: 1fr; gap: 1.5rem; }
}
.ranges__intro {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.12rem;
  color: var(--ivory-soft);
  line-height: 1.7;
  max-width: 420px;
  justify-self: end;
}
@media (max-width: 800px) {
  .ranges__intro { justify-self: start; }
}

/* Each range row */
.range {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(2rem, 6cqw, 5rem);
  align-items: center;
  padding: clamp(3.5rem, 7cqw, 5.5rem) 0;
  border-top: 1px solid var(--line);
  position: relative;
  min-height: 100vh;
}
.range:last-child { border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .range { grid-template-columns: 1fr; gap: 2.5rem; min-height: auto; padding: clamp(3.5rem, 7cqw, 5.5rem) 0; }
  .range.range--reverse .range__visual { order: -1; }
}

.range--reverse { direction: rtl; }
.range--reverse > * { direction: ltr; }

/* Meta text block */
.range__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.range__roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.range__name {
  font-family: var(--serif-display);
  font-size: clamp(2.4rem, 4.2cqw, 4.6rem);
  color: var(--ivory);
  line-height: 1;
  letter-spacing: 0.015em;
  margin: 0.4rem 0 0.9rem;
  font-weight: 400;
}
.range__claim {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.2cqw, 1.45rem);
  color: var(--gold-bright);
  margin-bottom: 1.4rem;
  line-height: 1.4;
}
.range__desc {
  font-size: clamp(0.95rem, 0.95cqw, 1.08rem);
  color: var(--ivory-soft);
  line-height: 1.78;
  margin-bottom: 2rem;
  max-width: 520px;
}
.range__actives {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin-bottom: 2.25rem;
}
.range__active {
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(138, 106, 51, 0.5);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.range__active:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.range__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--gold);
  transition: color var(--t-fast) var(--ease);
}
.range__cta:hover { color: var(--gold-bright); }
.range__cta-arrow {
  font-family: var(--serif);
  transition: transform var(--t-med) var(--ease);
  display: inline-block;
}
.range__cta:hover .range__cta-arrow { transform: translateX(6px); }

/* Visual — unified soft plate, no hard borders, no emblems */
.range__visual {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, var(--range-glow, rgba(200, 160, 78, 0.18)), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.range__visual::before {
  content: "";
  position: absolute;
  inset: clamp(1.5rem, 3cqw, 2.25rem);
  border: 1px solid rgba(138, 106, 51, 0.35);
  pointer-events: none;
}
.range__visual-tag {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Wordmark displayed inside the visual plate */
.range__visual-emblem {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 2rem;
}
.range__visual-emblem-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.range__visual-letter {
  font-family: var(--serif-display);
  font-size: clamp(4rem, 9cqw, 7rem);
  color: var(--gold-bright);
  letter-spacing: 0.02em;
  line-height: 1;
  font-weight: 400;
  opacity: 0.95;
}

.range--renaissance { --range-glow: rgba(228, 193, 120, 0.18); }
.range--epigenelux  { --range-glow: rgba(184, 115, 51, 0.2); }
.range--luminescence { --range-glow: rgba(242, 233, 215, 0.1); }

/* Renaissance — signature backdrop (full-bleed) */
.range--renaissance {
  position: relative;
  padding-left: var(--pad);
  padding-right: var(--pad);
  margin-left: calc(var(--pad) * -1);
  margin-right: calc(var(--pad) * -1);
  isolation: isolate;
  border-top-color: rgba(138, 106, 51, 0.5);
  border-bottom-color: rgba(138, 106, 51, 0.5);
}
.range--renaissance::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/ranges/renaissance/billboard/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.range--renaissance::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(20, 14, 8, 0.78) 0%, rgba(20, 14, 8, 0.55) 35%, rgba(20, 14, 8, 0.2) 100%),
    linear-gradient(to top, rgba(20, 14, 8, 0.35), transparent 45%);
}
.range--renaissance .range__roman { color: #f9efd4; }
.range--renaissance .range__name { color: #fff8e7; }
.range--renaissance .range__claim { color: #f9efd4; }
.range--renaissance .range__desc { color: #fff8e7; }
.range--renaissance .range__active {
  color: #f9efd4;
  border-color: rgba(249, 239, 212, 0.55);
}
.range--renaissance .range__active:hover {
  color: #fff8e7;
  border-color: #f9efd4;
}
.range--renaissance .range__cta {
  color: #fff8e7;
  border-bottom-color: #f9efd4;
}
.range--renaissance .range__cta:hover { color: #f9efd4; }

/* Epigenelux — signature golden backdrop (full-bleed) */
.range--epigenelux {
  position: relative;
  padding-left: var(--pad);
  padding-right: var(--pad);
  margin-left: calc(var(--pad) * -1);
  margin-right: calc(var(--pad) * -1);
  isolation: isolate;
  border-top-color: rgba(138, 106, 51, 0.5);
  border-bottom-color: rgba(138, 106, 51, 0.5);
}
.range--epigenelux::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/ranges/epigenelux/billboard/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.range--epigenelux::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(20, 14, 8, 0.78) 0%, rgba(20, 14, 8, 0.55) 35%, rgba(20, 14, 8, 0.2) 100%),
    linear-gradient(to top, rgba(20, 14, 8, 0.35), transparent 45%);
}
.range--epigenelux .range__roman { color: #f9efd4; }
.range--epigenelux .range__name { color: #fff8e7; }
.range--epigenelux .range__claim { color: #f9efd4; }
.range--epigenelux .range__desc { color: #fff8e7; }
.range--epigenelux .range__active {
  color: #f9efd4;
  border-color: rgba(249, 239, 212, 0.55);
}
.range--epigenelux .range__active:hover {
  color: #fff8e7;
  border-color: #f9efd4;
}
.range--epigenelux .range__cta {
  color: #fff8e7;
  border-bottom-color: #f9efd4;
}
.range--epigenelux .range__cta:hover { color: #f9efd4; }

/* Luminescence — signature backdrop (full-bleed) */
.range--luminescence {
  position: relative;
  padding-left: var(--pad);
  padding-right: var(--pad);
  margin-left: calc(var(--pad) * -1);
  margin-right: calc(var(--pad) * -1);
  isolation: isolate;
  border-top-color: rgba(138, 106, 51, 0.5);
  border-bottom-color: rgba(138, 106, 51, 0.5);
}
.range--luminescence::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/ranges/luminescence/billboard/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.range--luminescence::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(20, 14, 8, 0.78) 0%, rgba(20, 14, 8, 0.55) 35%, rgba(20, 14, 8, 0.2) 100%),
    linear-gradient(to top, rgba(20, 14, 8, 0.35), transparent 45%);
}
.range--luminescence .range__roman { color: #f9efd4; }
.range--luminescence .range__name { color: #fff8e7; }
.range--luminescence .range__claim { color: #f9efd4; }
.range--luminescence .range__desc { color: #fff8e7; }
.range--luminescence .range__active {
  color: #f9efd4;
  border-color: rgba(249, 239, 212, 0.55);
}
.range--luminescence .range__active:hover {
  color: #fff8e7;
  border-color: #f9efd4;
}
.range--luminescence .range__cta {
  color: #fff8e7;
  border-bottom-color: #f9efd4;
}
.range--luminescence .range__cta:hover { color: #f9efd4; }

/* Photo variant — PNG intégré à la scène comme dans un shooting studio */
.range__visual--photo {
  aspect-ratio: 16 / 5.5;
  display: block;
  padding: 0;
  overflow: visible;
  background: transparent;
  position: relative;
}

/* Halo lumineux chaud derrière les produits — ambiance studio */
.range__visual--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  border: none;
  background:
    radial-gradient(ellipse 62% 55% at 50% 42%, rgba(228, 193, 120, 0.22), transparent 72%),
    radial-gradient(ellipse 90% 35% at 50% 28%, rgba(249, 239, 212, 0.08), transparent 75%);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

/* Flaque d'ombre elliptique au sol — ancre les produits sur une surface */
.range__visual--photo::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2%;
  width: 78%;
  height: 14%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.35) 38%,
    rgba(0, 0, 0, 0.12) 68%,
    transparent 88%
  );
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}

.range__visual--photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transform: translateY(-15%) scale(2.1);
  transform-origin: center;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 78%, rgba(0,0,0,0.4) 92%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 0%, black 78%, rgba(0,0,0,0.4) 92%, transparent 100%);
  filter:
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22))
    drop-shadow(0 24px 40px rgba(0, 0, 0, 0.16));
}

/* Luminescence — on garde l'image intacte (pas de masque) mais on conserve
   halo + ombre au sol pour l'intégrer naturellement à la scène */
.range--luminescence .range__visual--photo img {
  -webkit-mask-image: none;
          mask-image: none;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.25));
}
.range--luminescence .range__visual--photo::before {
  background:
    radial-gradient(ellipse 65% 55% at 50% 42%, rgba(249, 239, 212, 0.18), transparent 72%),
    radial-gradient(ellipse 90% 35% at 50% 28%, rgba(242, 233, 215, 0.1), transparent 75%);
}

.range__visual--photo .range__visual-tag {
  position: absolute;
  bottom: calc(-1.75rem - 35%);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  white-space: nowrap;
  z-index: 2;
}

/* Grands écrans — produits plus généreux, composition rééquilibrée */
@media (min-width: 1600px) {
  .range {
    grid-template-columns: 0.8fr 1.1fr;
    gap: 6rem;
  }
  .range__visual--photo img {
    transform: translateY(-15%) scale(2.35);
  }
  .range__desc { max-width: 560px; }
}
@media (min-width: 1920px) {
  .range__visual--photo img {
    transform: translateY(-15%) scale(2.55);
  }
}
