/* ATLOVE — l'univers du génie et la boutique classique (univers.html, boutique.html).
   Mêmes codes que l'app : crème, rose, violet, formes rondes, nuages, contours d'encre.
   L'ambiance vient de l'illustration de référence : nuit violette, nuages en aplat, portail peint. */
body.u-page { background: #2A1233; --night: #2A1233; --night-2: #331640; --card: #3B1D52; --depth: rgba(142, 92, 232, .7); --peri: #8E6CF2; --cream: #FEF4DD; --pink: #F0458A; }
body.u-page #sky { display: none; }
.u-ciel { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(120% 80% at 70% 40%, #3A1850 0%, #2A1233 55%, #22102B 100%); }
.u-nuage { position: absolute; height: auto; }
.u-etoile { position: absolute; height: auto; animation: u-scintille 4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes u-scintille { 50% { opacity: .35; transform: scale(.7); } }
body.u-page .page { position: relative; z-index: 1; }
body.u-page footer { background: #22102B; }
.u-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 14px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); }
.u-top > .u-pill { justify-self: start; }
.u-top .brand { justify-self: center; display: flex; align-items: center; gap: 12px; }
.u-top .u-droite { justify-self: end; display: flex; gap: 8px; align-items: center; }
.u-pill { font: inherit; font-weight: 900; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; padding: 8px 16px;
  box-shadow: 0 5px 0 var(--peri), 0 5px 0 3px var(--ink); transition: transform .2s var(--spring); }
.u-pill:hover { transform: translateY(-2px) rotate(-1.5deg); text-decoration: none; }
.u-pill svg { width: 22px; height: 22px; }
.u-sac { padding: 8px 10px; position: relative; }
.u-sac [data-panier-nb] { position: absolute; top: -10px; right: -8px; }
.u-damier { width: 34px; height: 17px; background: conic-gradient(var(--pink) 25%, transparent 0 50%, var(--pink) 0 75%, transparent 0) 0 0 / 17px 17px; opacity: .9; }

.u-scene { min-height: calc(100dvh - 80px); padding: 10px max(16px, env(safe-area-inset-right, 0px)) 60px max(16px, env(safe-area-inset-left, 0px)); max-width: 1240px; margin: 0 auto; }
.u-scene[hidden] { display: none !important; }
.u-scene h1 { font-weight: 900; line-height: 1.05; font-size: clamp(30px, 5vw, 54px); text-wrap: balance; }

/* Le portail */
#portail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 10px 30px; align-items: center; }
.u-accueil { display: grid; gap: 18px; justify-items: start; }
.u-genie { display: grid; grid-template-columns: minmax(150px, 300px) minmax(0, 1fr); align-items: start; gap: 0; }
.u-genie .genie-stage { min-width: 0; }
.u-genie img { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 34px rgba(255, 79, 163, .4)); }
.u-bulle { position: relative; margin: 8px 0 0 -18px; background: var(--cream); color: var(--ink); border: 3.5px solid var(--ink); border-radius: 28px; padding: 14px 20px;
  font-weight: 900; font-size: clamp(22px, 3.2vw, 36px); line-height: 1.1; box-shadow: 5px 6px 0 var(--peri); justify-self: start; }
.u-bulle::before, .u-bulle::after { content: ""; position: absolute; clip-path: polygon(0 0, 100% 0, 8% 100%); }
.u-bulle::before { left: 24px; bottom: -24px; width: 34px; height: 27px; background: var(--ink); }
.u-bulle::after { left: 28.5px; bottom: -15px; width: 24px; height: 22px; background: var(--cream); }
.u-phrase { font-weight: 900; font-size: clamp(17px, 2vw, 22px); }
.u-boutons { display: flex; flex-wrap: wrap; gap: 18px 16px; align-items: center; }
.u-boutons .btn { text-transform: uppercase; letter-spacing: .05em; }
.u-portail { justify-self: center; width: min(100%, 640px); }
#portail { position: relative; }
.u-deco { position: absolute; z-index: -1; height: auto; pointer-events: none; }
.u-deco-bleue { left: calc((100% - 100vw) / 2); top: 10px; width: clamp(70px, 9vw, 150px); }
.u-deco-rose { right: calc((100% - 100vw) / 2); bottom: 0; width: clamp(150px, 20vw, 302px); }
.u-portail-img { width: 100%; height: auto; display: block; animation: u-souffle 5s ease-in-out infinite; filter: drop-shadow(0 0 26px rgba(190, 120, 255, .55)); user-select: none; -webkit-user-drag: none; }
.u-mini-portail .u-portail-img { animation: none; filter: none; }
#portail.traverse .u-portail { z-index: 50; }
#portail.traverse .u-accueil { opacity: 0; transition: opacity .3s; }
@keyframes u-souffle { 50% { transform: scale(1.03) rotate(1.5deg); } }
@keyframes u-flotte { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

/* L'application : juste sous le portail, sur l'accueil seulement */
.u-app { display: none; max-width: 1240px; margin: 0 auto 70px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
body[data-scene="portail"] .u-app { display: grid; }
.u-app-txt { display: grid; gap: 14px; justify-items: start; background: var(--cream); color: var(--ink); border: 3.5px solid var(--ink); border-radius: 30px; padding: 26px; box-shadow: 6px 8px 0 var(--peri); }
.u-app-txt h2 { font-weight: 900; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.08; text-wrap: balance; }
.u-app-txt p { max-width: 52ch; }
.u-app-ecrans { display: flex; justify-content: center; gap: 12px; }
.u-app-ecrans img { width: 31%; max-width: 190px; height: auto; border-radius: 22px; border: 3.5px solid var(--ink); box-shadow: 5px 6px 0 var(--pink); background: var(--card); }
.u-app-ecrans img:nth-child(1) { transform: rotate(-5deg) translateY(14px); }
.u-app-ecrans img:nth-child(3) { transform: rotate(4deg) translateY(10px); }
#portail { min-height: calc(100dvh - 190px); }

/* Les planètes : de gros astres qui flottent, peu de texte */
#planetes { display: grid; gap: 4px; align-content: start; }
.u-retour { justify-self: start; align-self: start; }
.u-guide { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin: 0 auto; }
.u-guide img { width: clamp(84px, 12vw, 140px); height: auto; animation: u-flotte 5s ease-in-out infinite; }
.u-guide .u-bulle { margin: 6px 0 0 -8px; font-size: clamp(22px, 3.4vw, 40px); }
.u-guide-mini img { width: 54px; }
.u-guide-mini .u-bulle { font-size: 15px; padding: 7px 13px; border-width: 3px; border-radius: 18px; margin: 0 0 0 -4px; box-shadow: 3px 4px 0 var(--peri); }
.u-guide-mini .u-bulle::before, .u-guide-mini .u-bulle::after { display: none; }
.u-choix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; align-items: start; max-width: 980px; margin: 6px auto 0; width: 100%; }
.u-astre { display: grid; justify-items: center; gap: 0; color: var(--text); text-decoration: none; animation: u-flotte 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.1s); }
.u-astre:nth-child(3n+2) { margin-top: 46px; }
.u-astre:hover { text-decoration: none; }
.u-astre-img { position: relative; display: block; width: min(100%, 250px); transition: transform .3s var(--spring); filter: drop-shadow(0 0 26px color-mix(in srgb, var(--c) 65%, transparent)); }
.u-astre:hover .u-astre-img, .u-astre:focus-visible .u-astre-img { transform: scale(1.12) rotate(-4deg); }
.u-astre b { font-weight: 900; font-size: clamp(16px, 2vw, 22px); line-height: 1.15; text-align: center; margin-top: -6px; }
.u-astre.bientot .u-planete-svg { filter: saturate(.75) brightness(.86); }
.u-etiquette { position: absolute; right: 12%; top: 6%; font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--cream); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 8px; padding: 2px 8px; transform: rotate(8deg); box-shadow: 2px 3px 0 var(--peri); }
.u-etiquette.neuf { background: var(--pink); color: #fff; }
.u-mini-portail { padding: 4px 26px; }

/* Les fiches produit dans l'univers */
body.u-fiches main.soon { padding-top: 6px; }
body.u-fiches main.soon > .u-retour { align-self: flex-start; }

/* Une planète : elle tourne, ses modèles passent devant */
#planete { text-align: center; display: grid; gap: 6px; align-content: start; }

.u-orbite { position: relative; height: min(64dvh, 540px); min-height: 400px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.u-orbite.glisse { cursor: grabbing; }
.u-globe { position: absolute; left: 50%; top: 42%; width: min(92vw, 66dvh, 560px); transform: translate(-50%, -50%); z-index: 20; pointer-events: none; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--c, #8080F2) 60%, transparent)); }
.u-planete-svg { width: 100%; height: auto; display: block; overflow: visible; }
.u-modele { position: absolute; left: 50%; top: 66%; width: clamp(104px, 22vw, 150px); display: grid; gap: 2px; justify-items: center; text-align: center; text-decoration: none;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; padding: 8px 8px 10px; box-shadow: 4px 5px 0 var(--peri); will-change: transform; -webkit-user-drag: none; }
.u-modele:hover { text-decoration: none; }
.u-modele img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 13px; border: 2px solid var(--ink); background: #fff; pointer-events: none; }
.u-modele b { font-weight: 900; font-size: 14px; line-height: 1.15; }
.u-modele span { font-size: 13px; font-weight: 700; }
.u-modele.devant { box-shadow: 4px 5px 0 var(--pink), 0 0 0 4px rgba(255, 79, 163, .35); }
.u-modele.derriere { pointer-events: none; }
.u-fleches { display: flex; justify-content: center; gap: 14px; align-items: center; position: relative; z-index: 2; color: var(--text-soft); font-size: 14px; }
.u-fleches button { font: inherit; font-size: 22px; font-weight: 900; width: 52px; height: 52px; border-radius: 999px; cursor: pointer; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--peri), 0 4px 0 3px var(--ink); }
.u-info { min-height: 110px; display: grid; gap: 14px; justify-items: center; align-content: start; margin-top: 8px; }
.u-nom { font-size: 18px; }
.u-prix { font-weight: 900; }
.u-bientot { background: var(--card); border: 3px solid var(--ink); border-radius: 20px; padding: 14px 20px; box-shadow: 4px 5px 0 var(--depth); }

/* La boutique classique */
#boutique { display: grid; gap: 18px; align-content: start; }
#u-filtres { display: grid; gap: 10px; }
#u-filtres div { display: flex; flex-wrap: wrap; gap: 8px; }
#u-filtres button { font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; background: var(--card); color: var(--text); border: 2.5px solid var(--ink); border-radius: 999px; padding: 8px 14px; box-shadow: 0 3px 0 var(--depth); }
#u-filtres button.on { background: var(--pink); color: #fff; box-shadow: 0 4px 0 var(--peri), 0 4px 0 2.5px var(--ink); }
#u-filtres i { width: 16px; height: 16px; border-radius: 999px; border: 2px solid var(--ink); outline: 1.5px solid rgba(247, 237, 214, .5); }
#u-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.u-carte { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: start; background: var(--cream); color: var(--ink); text-decoration: none; border: 3px solid var(--ink); border-radius: 22px; padding: 10px 10px 14px; box-shadow: 5px 6px 0 var(--peri); transition: transform .2s var(--spring); }
.u-carte:hover { transform: translateY(-4px) rotate(-1deg); text-decoration: none; }
.u-carte img { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 2px solid var(--ink); background: #fff; }
.u-carte-txt { display: grid; min-width: 0; }
.u-carte-txt b { font-weight: 900; line-height: 1.2; }
.u-carte-txt span { font-size: 14px; opacity: .75; }
.u-carte .u-prix { font-size: 18px; white-space: nowrap; }
.u-rien { color: var(--text-soft); }

/* Le menu à trois traits */
dialog.u-menu { margin: 0; height: 100dvh; max-height: 100dvh; width: min(340px, 88%); max-width: 100%; background: var(--night-2); color: var(--text); border: 0; border-right: 3px solid var(--ink);
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 10px 0 0 var(--depth); overflow-y: auto; }
dialog.u-menu::backdrop { background: rgba(10, 6, 20, .66); }
.u-menu header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.u-menu h2 { font-size: 26px; font-weight: 900; }
.u-fermer { font: inherit; font-size: 28px; line-height: 1; width: 44px; height: 44px; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--card); color: var(--text); cursor: pointer; }
.u-menu nav { display: grid; gap: 2px; }
.u-menu nav p { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); margin: 16px 0 4px; }
.u-menu nav a { color: var(--text); font-weight: 900; font-size: 19px; padding: 8px 10px; border-radius: 12px; text-decoration: none; }
.u-menu nav a:hover { background: var(--card); }
.u-menu nav a.u-sous { font-weight: 700; font-size: 16px; padding-left: 24px; color: var(--text-soft); }
.u-menu small { font-size: 11px; opacity: .7; margin-left: 4px; }

/* Sur ces pages, le panier est dans l'en-tête : pas de bouton flottant en plus. */
body.u-page .panier-bouton { display: none; }

@media (max-width: 860px) {
  #portail { grid-template-columns: 1fr; }
  .u-app { grid-template-columns: 1fr; }
  .u-app-ecrans { order: -1; }
  .u-portail { order: -1; width: min(86%, 380px); }
  .u-deco-bleue { top: 0; }
  .u-deco-rose { width: 140px; opacity: .9; }
  .u-genie { grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); }
  .u-boutons { justify-content: center; width: 100%; }
  .u-boutons .btn { width: 100%; justify-content: center; text-align: center; }
  .u-phrase { text-align: center; width: 100%; }
}
@media (max-width: 560px) {
  .u-pill { font-size: 12px; padding: 7px 11px; }
  .u-pill .u-mot, .u-damier, .u-droite a.u-lien-boutique { display: none; }
  .u-top { gap: 6px; }
  .u-top .wordmark { max-width: 46vw; height: auto !important; }
  .u-choix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-astre:nth-child(3n+2) { margin-top: 0; }
  .u-astre:nth-child(2n) { margin-top: 30px; }

}
@media (prefers-reduced-motion: reduce) { .u-portail-img, .u-etoile, .u-genie img, .u-astre { animation: none; } }
body.u-fiches .piece { scroll-margin-top: 96px; }


/* ================= Le mouvement ================= */
/* Le ciel : les nuages dérivent, sur deux plans qui suivent le pointeur ; étoiles filantes */
.u-nuage { animation: u-derive var(--v, 40s) ease-in-out infinite alternate; translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -10px); }
.u-nuage[data-plan="2"] { translate: calc(var(--px, 0) * -40px) calc(var(--py, 0) * -22px); }
@keyframes u-derive { from { transform: translateX(calc(var(--sens, 1) * -40px)); } to { transform: translateX(calc(var(--sens, 1) * 60px)); } }
.u-filante { position: absolute; width: 130px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #FEF4DD); transform-origin: right center; rotate: 24deg; animation: u-file 1.3s ease-out forwards; filter: drop-shadow(0 0 6px #C89BFF); }
@keyframes u-file { from { translate: -160px -70px; opacity: 0; scale: .3 1; } 25% { opacity: 1; } to { translate: 260px 116px; opacity: 0; scale: 1 1; } }

/* Le portail : il vit. Anneaux d'énergie qui tournent, étincelles aspirées, il suit le pointeur */
.u-portail { position: relative; translate: calc(var(--px, 0) * 26px) calc(var(--py, 0) * 18px); }
.u-anneau { position: absolute; inset: 4%; border-radius: 50%; z-index: -1; filter: blur(22px); opacity: .85; animation: u-tour 14s linear infinite; background: conic-gradient(from 0deg, transparent 0 12%, #C77DFF 22%, transparent 36% 52%, #FF6FC0 62%, transparent 76% 88%, #8E6CF2 96%, transparent); }
.u-anneau.a2 { inset: -6%; opacity: .5; animation-duration: 23s; animation-direction: reverse; filter: blur(34px); }
@keyframes u-tour { to { transform: rotate(360deg); } }
.u-particules { position: absolute; inset: 0; pointer-events: none; }
.u-particules i { position: absolute; left: 50%; top: 50%; width: calc(9px * var(--k)); height: calc(9px * var(--k)); margin: -4px; background: #FEF4DD; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: u-aspire var(--t) cubic-bezier(.5, 0, .9, .5) infinite; animation-delay: var(--d); opacity: 0; }
@keyframes u-aspire { from { transform: rotate(var(--a)) translateX(min(34vw, 330px)) scale(1.4); opacity: 0; } 18% { opacity: 1; } to { transform: rotate(calc(var(--a) + 250deg)) translateX(10px) scale(.1); opacity: .8; } }
.u-deco-bleue { translate: calc(var(--px, 0) * -34px) calc(var(--py, 0) * -24px); animation: u-flotte 9s ease-in-out infinite; }
.u-deco-rose { translate: calc(var(--px, 0) * -52px) calc(var(--py, 0) * -30px); animation: u-flotte 11s ease-in-out -3s infinite; }
.u-accueil { translate: calc(var(--px, 0) * -10px) calc(var(--py, 0) * -6px); }

/* L'arrivée sur l'accueil : chaque élément entre à son tour */
@keyframes u-pop { from { scale: 0; opacity: 0; rotate: -14deg; } 60% { scale: 1.12; opacity: 1; rotate: 3deg; } to { scale: 1; opacity: 1; rotate: 0deg; } }
@keyframes u-monte { from { translate: 0 34px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes u-ouvre { from { scale: 0; rotate: -200deg; opacity: 0; filter: brightness(3); } 70% { scale: 1.08; rotate: 8deg; opacity: 1; filter: brightness(1.3); } to { scale: 1; rotate: 0deg; opacity: 1; filter: brightness(1); } }
#portail.u-joue .u-genie .genie-stage { animation: u-pop .8s var(--spring) both, genieFloat 5s ease-in-out .8s infinite; }
#portail.u-joue .u-bulle { transform-origin: 10% 100%; animation: u-pop .6s var(--spring) .45s both; }
#portail.u-joue .u-phrase { animation: u-monte .6s ease-out .8s both; }
#portail.u-joue .u-boutons .btn { animation: u-pop .55s var(--spring) both; animation-delay: 1s; }
#portail.u-joue .u-boutons .btn + .btn { animation-delay: 1.14s; }
#portail.u-joue .u-portail-img { animation: u-ouvre 1.2s cubic-bezier(.2, .9, .3, 1.1) .15s both, u-souffle 5s ease-in-out 1.4s infinite; }
#portail.u-joue .u-deco { animation: u-monte 1s ease-out 1.1s backwards, u-flotte 10s ease-in-out 2.1s infinite; }

/* Traverser le portail : on est aspiré, éclair violet, et les planètes jaillissent */
#portail.traverse .u-portail { animation: u-entre .8s cubic-bezier(.6, 0, .9, .4) forwards; }
#portail.traverse .u-portail-img { animation: u-vrille .8s linear forwards; }
@keyframes u-entre { to { transform: scale(9); } }
@keyframes u-vrille { to { rotate: 220deg; filter: brightness(1.8); } }
.u-eclair { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: radial-gradient(circle at 50% 50%, #FEF4DD 0%, #C77DFF 30%, #5B2FB8 70%); animation: u-eclaire 1.5s ease-out forwards; }
@keyframes u-eclaire { from { opacity: 0; } 50% { opacity: 1; } 56% { opacity: 1; } to { opacity: 0; } }
@keyframes u-jaillit { from { scale: 0; opacity: 0; translate: 0 -60px; filter: blur(8px); } 65% { scale: 1.14; opacity: 1; filter: blur(0); } to { scale: 1; opacity: 1; translate: 0 0; } }
#planetes.u-joue .u-astre-img { animation: u-jaillit .75s var(--spring) both; animation-delay: calc(.15s + var(--i, 0) * .11s); }
#planetes.u-joue .u-astre b { animation: u-monte .5s ease-out both; animation-delay: calc(.6s + var(--i, 0) * .11s); }
#planetes.u-joue .u-guide img { animation: u-pop .7s var(--spring) both, u-flotte 5s ease-in-out .7s infinite; }
#planetes.u-joue .u-guide .u-bulle { transform-origin: 10% 100%; animation: u-pop .55s var(--spring) .35s both; }
.u-etiquette { animation: u-balance 3.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.6s); transform-origin: 50% 0; }
@keyframes u-balance { 0%, 100% { rotate: 6deg; } 50% { rotate: 11deg; } }
.u-astre.part { animation: none; z-index: 5; }
.u-astre.part .u-astre-img { animation: u-plonge .45s cubic-bezier(.5, 0, .9, .5) forwards; }
@keyframes u-plonge { to { scale: 3.2; opacity: 0; filter: brightness(1.8) blur(3px); } }

/* Une planète : elle arrive de loin, ses modèles se posent en orbite l'un après l'autre */
@keyframes u-approche { from { scale: .15; opacity: 0; filter: blur(10px); } 70% { scale: 1.05; opacity: 1; filter: blur(0); } to { scale: 1; opacity: 1; } }
#planete.u-joue .u-globe { animation: u-approche .9s cubic-bezier(.2, .9, .3, 1.05) both; }
#planete.u-joue .u-titre { animation: u-monte .6s ease-out .2s both; }
.u-modele { animation: u-pose .6s var(--spring) both; animation-delay: calc(.55s + var(--i, 0) * .09s); }
@keyframes u-pose { from { scale: 0; opacity: 0; } to { scale: 1; } }
.u-modele.devant img { animation: u-brille 2.6s ease-in-out infinite; }
@keyframes u-brille { 50% { filter: brightness(1.08) saturate(1.1); } }
.u-globe { translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * 10px); }
#planete.u-joue .u-fleches button { animation: u-pop .5s var(--spring) .9s both; }
.u-fleches button:active { scale: .88; }

/* La boutique : les cartes montent l'une après l'autre ; le sac saute quand on ajoute */
.u-carte { animation: u-monte .5s ease-out both; animation-delay: calc(var(--i, 0) * .06s); }
.u-carte img { transition: scale .35s var(--spring); }
.u-carte:hover img { scale: 1.04; }
.u-sac.saute { animation: u-saute .6s var(--spring); }
@keyframes u-saute { 30% { scale: 1.35; rotate: -12deg; } 60% { scale: .92; rotate: 6deg; } }
.u-pill:active, .u-carte:active { scale: .95; }

/* L'application se révèle quand on y arrive */
.u-app .u-app-txt, .u-app .u-app-ecrans img { opacity: 0; translate: 0 40px; transition: opacity .6s ease-out, translate .7s var(--spring); }
.u-app.vu .u-app-txt, .u-app.vu .u-app-ecrans img { opacity: 1; translate: 0 0; }
.u-app.vu .u-app-ecrans img:nth-child(1) { transition-delay: .15s; }
.u-app.vu .u-app-ecrans img:nth-child(2) { transition-delay: .28s; }
.u-app.vu .u-app-ecrans img:nth-child(3) { transition-delay: .41s; }

@media (prefers-reduced-motion: reduce) {
  .u-nuage, .u-anneau, .u-particules i, .u-deco, .u-etiquette, .u-modele, .u-carte, .u-modele.devant img, [class*="u-"].u-joue *, #portail.u-joue *, #planetes.u-joue *, #planete.u-joue * { animation: none !important; }
  .u-particules { display: none; }
  .u-app .u-app-txt, .u-app .u-app-ecrans img { opacity: 1; translate: none; transition: none; }
}
