diff --git a/e2e/nebula-cards.spec.js b/e2e/nebula-cards.spec.js
index 2f9351a..666af84 100644
--- a/e2e/nebula-cards.spec.js
+++ b/e2e/nebula-cards.spec.js
@@ -509,6 +509,17 @@ test("player opens and reveals a three-card pack", async ({ page }) => {
await expect(shopPackItem.locator('img[src="/static/img/cards/stardust/back.webp"]')).toBeVisible();
await expect(shopPackItem.getByRole("button", { name: "Acheter et ouvrir" })).toBeDisabled();
await expect(shopPackItem).toContainText("Il vous manque 60 poussières.");
+ // Le manque s'affiche au-dessus du bouton : les boutons d'une même rangée d'articles restent alignés.
+ const buyButtons = await page.locator(".nebula-shop-grid .nebula-shop-item-actions > button:last-child").evaluateAll((buttons) => buttons.map((button) => ({
+ row: Math.round(button.closest(".nebula-shop-item").getBoundingClientRect().top), bottom: Math.round(button.getBoundingClientRect().bottom),
+ last: button === button.parentElement.lastElementChild
+ })));
+ expect(buyButtons.length).toBeGreaterThan(1);
+ for (const button of buyButtons) {
+ expect(button.last).toBe(true);
+ expect(button.bottom).toBe(buyButtons.find((other) => other.row === button.row).bottom);
+ }
+ await page.locator(".nebula-shop-grid").screenshot({ path: join(tmpdir(), "sokkog-cards-shop.png") });
// Le solde ne met plus en avant les ouvertures achetées : la boutique est une grille d'articles illustrés.
await expect(page.locator(".nebula-shop-wallet")).not.toContainText("Ouvertures achetées");
// Le solde est sous le menu, et la page se limite à son en-tête et à ses articles.
diff --git a/website/src/features/cards/ShopPanel.jsx b/website/src/features/cards/ShopPanel.jsx
index 102de4c..4e3d421 100644
--- a/website/src/features/cards/ShopPanel.jsx
+++ b/website/src/features/cards/ShopPanel.jsx
@@ -88,8 +88,9 @@ function QuantityItem({ id, cover, title, description, quantityLabel, rateLabel,
Il vous manque {formatStardust(price - stardust)}.
} +{content.packDescription}
Il vous manque {formatStardust(packMissing)}.
} {state.pendingOpening &&{content.packPending}
} +