/* ── Scène d’attente « avant / après » (base : assets/css/chargement.css, modèle outils/communs/) ──
   Une rue grise ; la poignée du comparateur balaie et révèle la même rue,
   verdie : arbres qui poussent, bande cyclable, passants. */
.a-avant { inset: 0; background: linear-gradient(180deg, #c9ccd1 0 55%, #9a9ea6 55% 100%); }
.a-avant::after {                                   /* voiture garée, asphalte */
  content: ""; position: absolute; left: 14%; bottom: 20%; width: 30%; height: 12%; border-radius: 6px 10px 3px 3px; background: #6b7078;
}
.a-apres {
  inset: 0; background: linear-gradient(180deg, #dff3e4 0 55%, #7fbf8e 55% 62%, #b8c0b9 62% 100%);
  clip-path: inset(0 calc(100% - var(--a-x, 50%)) 0 0);
  animation: a-revele 2.6s cubic-bezier(.65, 0, .35, 1) infinite;
}
.a-arbre {
  position: absolute; bottom: 38%; width: 22%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4ade80, #15803d 70%);
  box-shadow: 0 0 10px rgba(21, 128, 61, .4);
  transform-origin: 50% 100%; animation: a-pousse 2.6s cubic-bezier(.2, .9, .3, 1.5) infinite;
}
.a-arbre::after { content: ""; position: absolute; left: 44%; top: 88%; width: 12%; height: 50%; background: #7c4a1e; border-radius: 2px; }
.a-arbre-1 { left: 8%; } .a-arbre-2 { left: 40%; width: 18%; animation-delay: .15s; } .a-arbre-3 { left: 70%; animation-delay: .3s; }
.a-piste { position: absolute; left: 0; right: 0; bottom: 18%; height: 6%; background: repeating-linear-gradient(90deg, #22c55e 0 10px, #16a34a 10px 20px); }
.a-poignee {
  top: 0; bottom: 0; width: 3px; margin-left: -1.5px; left: var(--a-x, 50%);
  background: #fff; box-shadow: 0 0 10px rgba(var(--ch-rgb), .9);
  animation: a-poignee 2.6s cubic-bezier(.65, 0, .35, 1) infinite;
}
.a-poignee::after {
  content: "‹ ›"; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
  display: grid; place-items: center; font: 800 11px/1 inherit; color: var(--ch-accent);
  background: #fff; box-shadow: 0 0 0 2px var(--ch-accent), 0 0 16px rgba(var(--ch-rgb), .8);
}
@property --a-x { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@keyframes a-revele { 0%, 8% { --a-x: 8%; } 50%, 58% { --a-x: 92%; } 100% { --a-x: 8%; } }
@keyframes a-poignee { 0%, 8% { left: 8%; } 50%, 58% { left: 92%; } 100% { left: 8%; } }
@keyframes a-pousse { 0%, 10% { transform: scale(.3); } 45%, 100% { transform: scale(1); } }
.ch-balayage { --ch-rgb: 22, 163, 74; }
