/* The collection scene (home "Prêt à l'emploi" band + collection page hero), motion in home-collection.js.
   Three creations in desktop browsers, their pages scrolling; one is clicked, stamped "À vous" by the ring
   of the logo, goes live. Without three creations yet: the same scene with sites drawn in shapes. */
.cx-stage { position: relative; height: clamp(360px, 30vw, 460px); }
.cx-cards { position: absolute; inset: 0 0 72px; }
.cx-card {
  --a: rgba(20, 18, 21, .14); --b: rgba(20, 18, 21, .55); --c: rgba(20, 18, 21, .1); --w: clamp(170px, 14.5vw, 230px);
  position: absolute; top: 50%; left: 50%; width: var(--w); aspect-ratio: 23 / 30;
  margin: calc(var(--w) * -0.652) 0 0 calc(var(--w) * -0.5);
  padding: 7%; border-radius: 18px; background: #FBF8F2;
  box-shadow: 0 30px 60px -24px rgba(20, 18, 21, .4), 0 0 0 1px rgba(20, 18, 21, .06);
  display: flex; flex-direction: column; gap: 7%; will-change: transform;
}
.cx-card i, .cx-card b { display: block; }
/* a real creation, in a desktop browser: its page scrolls */
.cx-pc { --w: clamp(290px, 25vw, 420px); aspect-ratio: 16 / 10.8; margin: calc(var(--w) * -0.3375) 0 0 calc(var(--w) * -0.5); padding: 0; gap: 0; overflow: hidden; border-radius: 12px; background: #fff; }
.cx-bar { flex: none; display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: var(--encre); }
.cx-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(246, 241, 231, .35); }
.cx-bar span { margin: 0 auto; padding: 2px 10px; border-radius: 99px; background: rgba(246, 241, 231, .12); color: rgba(246, 241, 231, .8); font: 600 10px/1.4 var(--text); }
.cx-view { position: relative; flex: 1; overflow: hidden; }
.cx-view img { position: absolute; left: 0; top: 0; display: block; width: 100%; height: auto; will-change: transform; }
.cx-nav { display: flex; align-items: center; gap: 6%; }
.cx-logo { width: 30%; height: 9px; border-radius: 3px; background: var(--b); margin-right: auto; }
.cx-nav i { width: 12%; height: 5px; border-radius: 3px; background: rgba(20, 18, 21, .16); }
.cx-hero { flex: 1; display: grid; gap: 6%; align-content: start; }
.cx-img { border-radius: 10px; background: var(--a); }
.cx-t1 { height: 10px; border-radius: 3px; background: rgba(20, 18, 21, .7); }
.cx-t2 { height: 6px; width: 70%; border-radius: 3px; background: rgba(20, 18, 21, .2); }
.cx-btn { width: 42%; height: 14px; border-radius: 99px; background: var(--b); }
.cx-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; }
.cx-row i { aspect-ratio: 1; border-radius: 6px; background: var(--c); }
.cx-a .cx-img { height: 0; padding-bottom: 52%; }
.cx-b .cx-hero { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto 1fr; }
.cx-b .cx-img { grid-column: 2; grid-row: 1 / 5; border-radius: 60px 60px 8px 8px; }
.cx-b .cx-t1, .cx-b .cx-t2, .cx-b .cx-btn { grid-column: 1; width: 100%; }
.cx-b .cx-t1 { height: 22px; }
.cx-b .cx-btn { width: 80%; }
.cx-c .cx-hero { justify-items: center; }
.cx-c .cx-img { width: 46%; aspect-ratio: 1; border-radius: 50%; }
.cx-c .cx-t1 { width: 86%; }
.cx-c .cx-row i { border-radius: 50%; }

.cx-stamp { position: absolute; left: 50%; top: 8%; z-index: 5; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.cx-ring { position: relative; width: 60px; height: 60px; color: var(--encre); filter: drop-shadow(0 10px 18px rgba(20, 18, 21, .3)); }
.cx-pulse { position: absolute; left: 0; top: 0; width: 60px; height: 60px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--encre); opacity: 0; }
.cx-stamp span { padding: 8px 14px; border-radius: 99px; background: var(--encre); color: var(--creme); font: 700 14px/1 var(--text); white-space: nowrap; }
.cx-cursor { position: absolute; left: 0; top: 0; z-index: 6; width: 30px; height: 30px; opacity: 0; fill: var(--encre); stroke: #FBF8F2; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 6px 10px rgba(20, 18, 21, .3)); pointer-events: none; }
.cx-live {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 4;
  display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 99px;
  background: #FBF8F2; box-shadow: 0 16px 34px -14px rgba(20, 18, 21, .35); font-weight: 650; font-size: 15px; white-space: nowrap;
}
.cx-live span { min-width: 9.5em; }
.cx-live i { position: relative; flex: none; width: 52px; height: 30px; border-radius: 99px; background: rgba(20, 18, 21, .14); transition: background-color .35s var(--ease); }
.cx-live i::after { content: ""; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--encre); transition: transform .45s var(--pop); }
.cx-live b { padding-left: 12px; border-left: 1px solid rgba(20, 18, 21, .15); font-weight: 800; }
.cx-live.is-on i { background: var(--pistache); }
.cx-live.is-on i::after { transform: translateX(22px); }
/* without JS or with reduced motion: the end of the story, still */
.cx-stage:not(.is-live) .cx-a { transform: translate(-62%, 4%) rotate(-8deg); opacity: .55; }
.cx-stage:not(.is-live) .cx-b { transform: translate(0, -6%) scale(1.08); z-index: 2; --a: #2F6F6A; --b: #1E2B2A; --c: #E2C79F; }
.cx-stage:not(.is-live) .cx-c { transform: translate(62%, 6%) rotate(7deg); opacity: .55; }
.cx-stage:not(.is-live) .cx-stamp { left: calc(50% + 7vw); top: 4%; }
.cx-stage:not(.is-live) .cx-live i { background: var(--pistache); }
.cx-stage:not(.is-live) .cx-live i::after { transform: translateX(22px); }

@media (max-width: 899px) {
  .cx-stage { height: 300px; }
  .cx-cards { bottom: 58px; }
  .cx-card { --w: 140px; }
  .cx-pc { --w: 230px; }
  .cx-bar { padding: 5px 8px; } .cx-bar i { width: 5px; height: 5px; } .cx-bar span { font-size: 8px; }
  .cx-stage:not(.is-live) .cx-a { transform: translate(-56%, 4%) rotate(-8deg); }
  .cx-stage:not(.is-live) .cx-c { transform: translate(56%, 6%) rotate(7deg); }
  .cx-stage:not(.is-live) .cx-stamp { left: calc(50% + 50px); }
  .cx-ring, .cx-pulse { width: 48px; height: 48px; }
  .cx-live span { min-width: 8em; }
}
@media (prefers-reduced-motion: reduce) { .cx-live i, .cx-live i::after { transition: none; } }