/* Home showcases — Le nuancier (a paint fan deck of the brand's colours) and En cabine
   (fitting rooms with velvet curtains). Markup comes from showcase.js. */

/* ---------- Le nuancier ---------- */
.m-nu-stage {
  --bg: #e5ccd6;
  --fg: #2e1019;
  --cw: clamp(58px, 5.2vw, 86px);
  --ch: min(54vh, 470px);
  --pv: calc(var(--cw) * 0.5);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: calc(100svh - var(--nav-height));
  min-height: 560px;
  background: var(--bg);
  color: var(--fg);
  transition: color 0.5s;
}
.m-nu-flood {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.m-nu-layer {
  position: absolute;
  inset: 0;
}
.m-nu-stage:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 72% 50%, #ffffff2e, transparent 70%);
}

.m-nu-head {
  position: absolute;
  left: 4.2vw;
  top: clamp(24px, 5vh, 54px);
  max-width: 44%;
}
.m-nu-kicker {
  display: flex;
  gap: 12px;
  font: 700 0.74rem var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.m-nu-kicker span {
  opacity: 0.55;
}
.m-nu-title {
  margin-top: 12px;
  font: 400 clamp(40px, 5.2vw, 88px) / 0.88 var(--display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.m-nu-count {
  position: absolute;
  right: 4.2vw;
  top: clamp(24px, 5vh, 54px);
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--display);
}
.m-nu-count b {
  font-weight: 400;
  font-size: clamp(48px, 5vw, 84px);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.m-nu-count span {
  font: 600 clamp(20px, 1.6vw, 28px) var(--hand);
  opacity: 0.75;
}

/* The deck: a zero-size anchor at the rivet; every chip turns around it. */
.m-nu-deck {
  position: absolute;
  left: 21%;
  bottom: 5%;
  width: 0;
  height: 0;
  z-index: 2;
}
.m-nu-chip {
  position: absolute;
  left: calc(var(--cw) / -2);
  bottom: calc(var(--pv) * -1);
  display: flex;
  flex-direction: column;
  width: var(--cw);
  height: var(--ch);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  background: #fffdf8;
  color: #2e1019;
  box-shadow:
    0 0 0 1px #2e101912,
    0 18px 30px -16px #2e101980;
  transform-origin: 50% calc(100% - var(--pv));
  will-change: transform;
  cursor: pointer;
  transition:
    translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s;
}
.m-nu-chip:hover {
  translate: 0 -8px;
}
.m-nu-chip[aria-pressed="true"] {
  box-shadow:
    0 0 0 2px #fffdf8,
    0 26px 50px -18px #2e1019b3;
}
.m-nu-chip:focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 3px;
}
.m-nu-sw {
  position: relative;
  flex: 0 0 62%;
  background: var(--c);
  box-shadow: inset 0 -1px 0 #2e101914;
}
.m-nu-sw i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  font: 700 0.56rem var(--sans);
  font-style: normal;
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--cf);
  opacity: 0.75;
}
.m-nu-lb {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0 calc(var(--pv) + 12px);
  overflow: hidden;
}
.m-nu-lb b,
.m-nu-lb small {
  writing-mode: vertical-rl;
  rotate: 180deg;
  white-space: nowrap;
}
.m-nu-lb b {
  font: 700 0.84rem var(--sans);
}
.m-nu-lb small {
  font: 700 0.55rem var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
}
.m-nu-rivet {
  position: absolute;
  left: -10px;
  top: -10px;
  z-index: 300;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff6d6, #d6b768 42%, #7a6230 100%);
  box-shadow:
    0 2px 5px #0000004d,
    inset 0 0 0 1px #00000026;
}

/* The garment in an arch, and what it is. */
.m-nu-show {
  position: absolute;
  right: 4.2vw;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 52px);
  width: 48%;
}
.m-nu-arch {
  position: relative;
  flex: none;
  width: clamp(230px, 25vw, 400px);
  aspect-ratio: 0.78;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px 999px 22px 22px;
  background: radial-gradient(ellipse 80% 60% at 50% 28%, #fffdf8, #f5eadc 75%);
  box-shadow:
    0 0 0 1px #2e101914,
    0 40px 70px -34px #2e1019a6;
  cursor: pointer;
}
.m-nu-arch:before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid #2e10191c;
  border-radius: inherit;
  pointer-events: none;
}
.m-nu-arch:after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 9%;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(#2e101940, transparent 70%);
}
.m-nu-img {
  position: absolute;
  left: 10%;
  top: 16%;
  z-index: 1;
  width: 80%;
  height: 72%;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(4px 12px 10px #2e101933);
  opacity: 0;
  transform: translateY(16%) rotate(6deg) scale(0.9);
  transition:
    opacity 0.4s,
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.m-nu-img.is-on {
  opacity: 1;
  transform: none;
}
.m-nu-img.is-out {
  transform: translateY(-12%) rotate(-5deg) scale(1.04);
}
.m-nu-info {
  min-width: 0;
}
.m-nu-color {
  font: 600 clamp(46px, 5.4vw, 96px) / 0.9 var(--hand);
}
.m-nu-name {
  margin-top: 14px;
  font: 400 clamp(22px, 2.1vw, 36px) / 1 var(--display);
  text-transform: uppercase;
}
.m-nu-meta {
  margin-top: 10px;
  font: 600 0.92rem var(--sans);
  opacity: 0.75;
}
.m-nu-see {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 20px;
  border: 1.5px solid currentColor;
  border-radius: 40px;
  background: transparent;
  color: inherit;
  font: 700 0.9rem var(--sans);
  cursor: pointer;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.m-nu-see:hover,
.m-nu-see:focus-visible {
  background: var(--fg);
  color: var(--bg);
}
.m-nu-hint {
  position: absolute;
  right: 4.2vw;
  bottom: 22px;
  font: 600 1.35rem var(--hand);
  opacity: 0.8;
  transition: opacity 0.4s;
}
.m-nu-hint.is-gone {
  opacity: 0;
}

/* ---------- En cabine ---------- */
.m-cab {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 8vw, 116px) 4.2vw clamp(70px, 8vw, 110px);
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, #6d1f3c, transparent 70%),
    radial-gradient(ellipse 50% 60% at 95% 100%, #4c1228, transparent 70%),
    #2a0915;
  color: #fff9ef;
}
.m-cab-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(34px, 4vw, 54px);
}
.m-cab-kicker {
  font: 700 0.74rem var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #f3c4cc;
}
.m-cab-head h2 {
  margin-top: 12px;
  font: 400 clamp(62px, 8.6vw, 148px) / 0.86 var(--display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.m-cab-head h2 span {
  color: #cf5976;
}
.m-cab-hint {
  font: 600 clamp(22px, 2vw, 30px) / 1.1 var(--hand);
  color: #f3c4cc;
  text-align: right;
  rotate: -2deg;
}

.m-cab-row {
  --ow: 460px;
  position: relative;
  display: flex;
  gap: 10px;
  height: clamp(440px, 68vh, 640px);
  padding-top: 18px;
}
.m-cab-rod {
  position: absolute;
  left: -4.2vw;
  right: -4.2vw;
  top: 0;
  height: 9px;
  border-radius: 9px;
  background: linear-gradient(#f6e2a6, #c19a48 55%, #7a5c22);
  box-shadow: 0 4px 10px #00000080;
  transform-origin: 0 50%;
}
.m-cab-booth {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 3px 3px 0 0;
  transition: flex-grow 0.85s cubic-bezier(0.65, 0, 0.25, 1);
}
.m-cab-booth.is-open {
  flex-grow: 6;
}

/* Inside the booth: a lit wall, a floor and the piece. */
.m-cab-inside {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: max(100%, var(--ow));
  background:
    linear-gradient(transparent 80%, color-mix(in srgb, var(--tint), #2e1019 16%) 80%, color-mix(in srgb, var(--tint), #2e1019 30%)),
    radial-gradient(ellipse 70% 60% at 50% 0%, #fffaf2, var(--tint) 75%);
}
.m-cab-inside:before {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 17%;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(#2e101952, transparent 70%);
}
.m-cab-inside img {
  position: absolute;
  left: 17%;
  top: 8%;
  z-index: 1;
  width: 74%;
  height: 64%;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(6px 16px 14px #2e101940);
  cursor: pointer;
  scale: 0.92;
  opacity: 0;
  transition:
    scale 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s,
    opacity 0.5s 0.3s;
}
.m-cab-price {
  position: absolute;
  top: 26px;
  right: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #2e1019;
  color: #fff9ef;
  font: 600 1.2rem / 0.95 var(--hand);
  text-align: center;
  rotate: -8deg;
}
.m-cab-price.is-ask {
  background: #fff9efcc;
  color: #2e1019;
  border: 1.5px dashed #2e1019;
}
.m-cab-info {
  position: absolute;
  left: calc(13% + 22px);
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 6px;
  color: #2e1019;
}
.m-cab-tag {
  font: 700 0.7rem var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.65;
}
.m-cab-info h3 {
  font: 400 clamp(26px, 2.5vw, 40px) / 0.95 var(--display);
  text-transform: uppercase;
}
.m-cab-sub {
  font: 500 0.9rem var(--sans);
  opacity: 0.75;
}
.m-cab-see {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 11px 18px;
  border: 0;
  border-radius: 40px;
  background: #2e1019;
  color: #fff9ef;
  font: 700 0.86rem var(--sans);
  cursor: pointer;
  transition: background-color 0.25s;
}
.m-cab-see:hover,
.m-cab-see:focus-visible {
  background: #cf5976;
}
.m-cab-price,
.m-cab-info {
  opacity: 0;
  translate: 0 16px;
  transition:
    opacity 0.25s,
    translate 0.25s;
}
.m-cab-booth.is-open .m-cab-inside img {
  scale: 1;
  opacity: 1;
}
.m-cab-booth.is-open :is(.m-cab-price, .m-cab-info) {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 0.5s 0.55s,
    translate 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s;
}

/* The curtain: velvet pleats, rings on the rod, a gold hem. Open, it bunches on the left. */
.m-cab-curtain {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  border: 0;
  background: none;
  color: #fff9ef;
  cursor: pointer;
  transform-origin: 0 0;
  transform: skewX(calc(var(--sway, 0) * 1deg));
  scale: 1 1;
  transition: scale 1s cubic-bezier(0.7, 0, 0.2, 1);
}
.m-cab-booth.is-open .m-cab-curtain {
  scale: 0.13 1;
  cursor: default;
}
.m-cab-drape {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  background:
    linear-gradient(180deg, #ffffff24, transparent 20%, transparent 72%, #00000059),
    repeating-linear-gradient(
      90deg,
      color-mix(in srgb, var(--cur), #000 45%) 0,
      var(--cur) 7px,
      color-mix(in srgb, var(--cur), #fff 18%) 13px,
      var(--cur) 19px,
      color-mix(in srgb, var(--cur), #000 45%) 26px
    );
  transition: filter 0.3s;
}
.m-cab-drape:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  height: 14px;
  background: radial-gradient(circle at 13px 7px, transparent 3.5px, #e6c777 4px, #9c7a33 6px, transparent 6.6px) 0 0 / 26px 14px
    repeat-x;
}
.m-cab-drape:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  background:
    linear-gradient(90deg, #e6c777, #9c7a33) bottom / 100% 3px no-repeat,
    linear-gradient(transparent, #00000059);
}
.m-cab-curtain:after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 54%;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(#f0d58c, #a98538);
  box-shadow: 0 3px 6px #0006;
  opacity: 0;
  transition: opacity 0.2s;
}
.m-cab-booth.is-open .m-cab-curtain:after {
  opacity: 1;
  transition-delay: 0.75s;
}
.m-cab-booth:not(.is-open):hover .m-cab-drape {
  filter: brightness(1.15);
}
.m-cab-curtain:focus-visible {
  outline: 3px solid #f3c4cc;
  outline-offset: -3px;
}
.m-cab-no,
.m-cab-name {
  position: absolute;
  transition: opacity 0.3s;
  text-shadow: 0 2px 10px #00000080;
}
.m-cab-no {
  top: 30px;
  left: 0;
  right: 0;
  font: 400 1.05rem var(--display);
  letter-spacing: 0.08em;
  text-align: center;
  opacity: 0.85;
}
.m-cab-name {
  left: 50%;
  bottom: 36px;
  translate: -50% 0;
  writing-mode: vertical-rl;
  rotate: 180deg;
  font: 400 clamp(18px, 1.55vw, 26px) var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.m-cab-booth.is-open :is(.m-cab-no, .m-cab-name) {
  opacity: 0;
}

.m-cab-end {
  flex: 0 0 clamp(86px, 7.4vw, 118px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 10px;
  border: 1.5px dashed #f3c4cc73;
  border-radius: 3px 3px 0 0;
  color: #f3c4cc;
  text-decoration: none;
  transition:
    background-color 0.3s,
    color 0.3s;
}
.m-cab-end span,
.m-cab-end i {
  writing-mode: vertical-rl;
  rotate: 180deg;
  white-space: nowrap;
}
.m-cab-end span {
  font: 400 clamp(24px, 2.1vw, 34px) var(--display);
  text-transform: uppercase;
}
.m-cab-end i {
  font: 600 1.2rem var(--hand);
  font-style: normal;
}
.m-cab-end:hover,
.m-cab-end:focus-visible {
  background: #f3c4cc;
  color: #2a0915;
}
.m-cab.is-still * {
  transition: none !important;
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .m-nu-stage {
    --cw: 46px;
    --ch: min(34svh, 290px);
    min-height: 600px;
  }
  .m-nu-head {
    left: 20px;
    top: 20px;
    max-width: 70%;
  }
  .m-nu-kicker {
    font-size: 0.66rem;
  }
  .m-nu-kicker span {
    display: none;
  }
  .m-nu-title {
    margin-top: 8px;
    font-size: clamp(28px, 8.4vw, 46px);
  }
  .m-nu-count {
    right: 20px;
    top: 20px;
  }
  .m-nu-count b {
    font-size: 44px;
  }
  .m-nu-show {
    left: 20px;
    right: 20px;
    top: 22%;
    translate: none;
    width: auto;
    gap: 16px;
  }
  .m-nu-arch {
    width: 42vw;
  }
  .m-nu-color {
    font-size: clamp(34px, 10vw, 52px);
  }
  .m-nu-name {
    margin-top: 8px;
    font-size: 18px;
  }
  .m-nu-meta {
    font-size: 0.8rem;
  }
  .m-nu-see {
    margin-top: 14px;
    padding: 9px 14px;
    font-size: 0.8rem;
  }
  .m-nu-deck {
    left: 50%;
    bottom: 5%;
  }
  .m-nu-lb b {
    font-size: 0.7rem;
  }
  .m-nu-sw i,
  .m-nu-lb small,
  .m-nu-hint {
    display: none;
  }

  .m-cab-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .m-cab-hint {
    text-align: left;
  }
  .m-cab-row {
    flex-direction: column;
    gap: 8px;
    height: auto;
    padding-top: 0;
  }
  .m-cab-rod {
    display: none;
  }
  .m-cab-booth {
    flex: none;
    height: 66px;
    border-radius: 10px;
    transition: height 0.75s cubic-bezier(0.65, 0, 0.25, 1);
  }
  .m-cab-booth.is-open {
    height: min(480px, 72svh);
  }
  .m-cab-inside {
    width: 100%;
  }
  .m-cab-inside img {
    left: 15%;
    width: 78%;
    top: 6%;
    height: 56%;
  }
  .m-cab-booth.is-open .m-cab-curtain {
    scale: 0.11 1;
  }
  .m-cab-no {
    top: 50%;
    left: 22px;
    right: auto;
    translate: 0 -50%;
  }
  .m-cab-name {
    left: 64px;
    bottom: auto;
    top: 50%;
    translate: 0 -50%;
    writing-mode: horizontal-tb;
    rotate: none;
    font-size: 21px;
  }
  .m-cab-info {
    left: calc(11% + 14px);
    right: 16px;
    bottom: 18px;
  }
  .m-cab-price {
    top: 16px;
    right: 16px;
    width: 64px;
    height: 64px;
    font-size: 1rem;
  }
  .m-cab-end {
    flex: none;
    flex-direction: row;
    padding: 18px 22px;
    border-radius: 10px;
  }
  .m-cab-end span,
  .m-cab-end i {
    writing-mode: horizontal-tb;
    rotate: none;
  }
  .m-cab-end span {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m-nu-stage,
  .m-nu-chip,
  .m-nu-img,
  .m-nu-see,
  .m-cab-booth,
  .m-cab-inside img,
  .m-cab-curtain,
  .m-cab-drape,
  .m-cab-price,
  .m-cab-info,
  .m-cab-booth.is-open :is(.m-cab-price, .m-cab-info) {
    transition: none;
  }
}
