/* Aperçu privé de la V34. Formes dorées et trois sprites tirés du hero d'origine. */
.lli-v34-demo { position: relative; display: grid; gap: 10px; }
.lli-v34-demo__viewport { isolation: isolate; overflow: hidden; position: relative; border-radius: 20px; }

.lli-v34-fall {
  /* Conserver le titre et le bandeau d'origine intacts ; distinguer les pierres qui bougent à droite. */
  position: absolute;
  inset: 14.4% 6.5% 8.5% 48%;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(252,250,246,.50) 24%, rgba(252,250,246,.73) 100%);
  mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent);
}
.lli-v34-fall__trail {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: var(--x);
  height: 100%;
  width: var(--size);
  animation: lli-v34-fall var(--time) var(--delay) linear infinite;
}
.lli-v34-fall__trail::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(153, 111, 40, .80);
  background: linear-gradient(145deg, rgba(255,255,255,.52), rgba(189,148,69,.12));
  box-shadow: 0 7px 13px rgba(61, 42, 10, .10);
  animation: lli-v34-turn var(--time) var(--delay) linear infinite;
}
.lli-v34-fall__trail--line-a { --x: 28%; --size: 12px; --time: 13.8s; --delay: -7s; --drift: 12px; }
.lli-v34-fall__trail--line-b { --x: 49%; --size: 20px; --time: 16.4s; --delay: -2.4s; --drift: -15px; }
.lli-v34-fall__trail--line-c { --x: 68%; --size: 14px; --time: 14.6s; --delay: -10.7s; --drift: 19px; }
.lli-v34-fall__trail--line-d { --x: 89%; --size: 19px; --time: 17.5s; --delay: -5.5s; --drift: -14px; }
.lli-v34-fall__trail--line-e { --x: 19%; --size: 10px; --time: 14.1s; --delay: -3.8s; --drift: 6px; }

.lli-v34-fall__trail--round, .lli-v34-fall__trail--round-alt {
  --image: url("../img/projets/lli-v34-fall-1.webp");
  --cut: ellipse(24% 38% at 48% 49%);
  --ratio: 240 / 172;
}
.lli-v34-fall__trail--round { --x: 32%; --size: clamp(49px, 7.8vw, 110px); --time: 10.6s; --delay: -3.9s; --drift: 14px; }
.lli-v34-fall__trail--round-alt { --x: 77%; --size: clamp(37px, 5.9vw, 82px); --time: 11.8s; --delay: -9.4s; --drift: 15px; }
.lli-v34-fall__trail--pear {
  --x: 57%; --size: clamp(44px, 7vw, 104px); --time: 11.6s; --delay: -6.6s; --drift: -20px;
  --image: url("../img/projets/lli-v34-fall-2.webp");
  --cut: polygon(50% 25%, 58% 27%, 66% 38%, 69% 53%, 68% 61%, 61% 70%, 50% 73%, 39% 70%, 34% 62%, 32% 53%, 35% 41%, 43% 30%);
  --ratio: 1;
}
.lli-v34-fall__trail--asscher {
  --x: 79%; --size: clamp(51px, 7.6vw, 112px); --time: 9.4s; --delay: -2s; --drift: -16px;
  --image: url("../img/projets/lli-v34-fall-3.webp");
  --cut: polygon(30% 19%, 72% 19%, 79% 24%, 84% 39%, 84% 67%, 72% 78%, 32% 79%, 18% 67%, 17% 36%);
  --ratio: 1;
}
.lli-v34-fall__trail:is([class*="--round"], [class*="--pear"], [class*="--asscher"])::before {
  aspect-ratio: var(--ratio);
  border: 0;
  background: var(--image) center / contain no-repeat;
  box-shadow: none;
  clip-path: var(--cut);
  animation-name: lli-v34-sprite-turn;
}

@keyframes lli-v34-fall {
  0% { transform: translate(0,-18%); opacity: 0; }
  14% { opacity: .88; }
  80% { opacity: .76; }
  100% { transform: translate(var(--drift),108%); opacity: 0; }
}
@keyframes lli-v34-turn { from { transform: rotate(45deg); } to { transform: rotate(225deg); } }
@keyframes lli-v34-sprite-turn { from { transform: rotate(-19deg); } to { transform: rotate(32deg); } }

.lli-v34-demo__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.lli-v34-demo__controls .tlink { min-height: 44px; font-size: 14px; }
.lli-v34-demo__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: fit-content;
  font-size: 14px;
  color: #e2ded4;
  cursor: pointer;
}
.lli-v34-demo__stop { accent-color: #e3cba0; inline-size: 17px; block-size: 17px; margin: 0; }
.lli-v34-demo__stop:focus-visible { outline: 2px solid #ffe3a6; outline-offset: 3px; }
.lli-v34-demo:has(.lli-v34-demo__stop:checked) .lli-v34-fall__trail,
.lli-v34-demo:has(.lli-v34-demo__stop:checked) .lli-v34-fall__trail::before { animation-play-state: paused; }

@media (max-width: 660px) {
  .lli-v34-fall__trail--line-b, .lli-v34-fall__trail--line-d,
  .lli-v34-fall__trail--line-e, .lli-v34-fall__trail--round-alt { display: none; }
  .lli-v34-fall__trail--round { --x: 24%; --time: 7.5s; --delay: -2.5s; --size: 43px; }
  .lli-v34-fall__trail--pear { --x: 50%; --time: 8.2s; --delay: -5.8s; --size: 44px; }
  .lli-v34-fall__trail--asscher { --x: 69%; --time: 7.1s; --delay: -1.6s; --size: 49px; }
  .lli-v34-fall__trail--line-a, .lli-v34-fall__trail--line-c { --size: 10px; }
}
@media (prefers-reduced-motion: reduce), print {
  .lli-v34-demo__toggle, .lli-v34-fall { display: none; }
  .lli-v34-fall__trail, .lli-v34-fall__trail::before { animation: none; }
}
