diff --git a/.beads/interactions.jsonl b/.beads/interactions.jsonl
index 301234a..8d40654 100644
--- a/.beads/interactions.jsonl
+++ b/.beads/interactions.jsonl
@@ -120,3 +120,11 @@
{"id":"int-6226671effacd330ce9b863270839c98","kind":"field_change","created_at":"2026-10-30T12:57:10.175823112Z","actor":"Shinuwa","issue_id":"sokko-g-2gj","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Le test attend le chargement lazy stable et déclenche le geste aux coordonnées réelles ; 20 répétitions ciblées et check:full réussis."}}
{"id":"int-5f04344a759a5f822ac1c55320dabfcf","kind":"field_change","created_at":"2026-10-30T13:00:48.471198857Z","actor":"Shinuwa","issue_id":"sokko-g-2gj","extra":{"field":"status","new_value":"open","old_value":"closed"}}
{"id":"int-738633fa3740487a9b8bb0ff05de3b5a","kind":"field_change","created_at":"2026-10-30T13:10:47.886359117Z","actor":"Shinuwa","issue_id":"sokko-g-2gj","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Shared pointer helper adopted by all existing left-button drag scenarios; repeated and full validation pass."}}
+{"id":"int-81fc2cfcd96ac7efd52ae604c9d2b8ab","kind":"field_change","created_at":"2026-10-30T22:49:35.915886992Z","actor":"Shinuwa","issue_id":"sokko-g-33g","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Implemented Aniimo element guide and sourced matchup matrix. Verified single/dual calculations, keyboard selection, 768/1440 layouts, retry handling and screenshots. npm run check:full passed: 182 Node tests, 205 development E2E tests, 2 production E2E tests."}}
+{"id":"int-92715c2b8c2e5abe38b5637bff3cb11c","kind":"field_change","created_at":"2026-10-31T07:44:11.871203537Z","actor":"Shinuwa","issue_id":"sokko-g-mz5","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Enlarged element icons and replaced matchup rows with grouped cards carrying explicit offensive and defensive labels. Verified content grouping, keyboard selection, no overflow at 768/1440, retry behavior, Node contracts, development E2E and production E2E. npm run check:full passed."}}
+{"id":"int-dc4119a02712be0d1c69a6de51f076b4","kind":"field_change","created_at":"2026-10-31T08:14:38.748010301Z","actor":"Shinuwa","issue_id":"sokko-g-zgg","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Replaced the calculator glyph with a Fire/Water/Grass triangle, spaced and normalized the element picker buttons, restored desktop attack/defense columns, and compacted result cards with 28px icons. Targeted Aniimo E2E: 21 passed. npm run check passed."}}
+{"id":"int-1e6508098acb8047dbc81983a664994f","kind":"field_change","created_at":"2026-10-31T08:21:52.407175223Z","actor":"Shinuwa","issue_id":"sokko-g-681","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Wrapped attack and defense in separate NDS panels, fixed attack groups to three columns and defense groups to two, and equalized card heights. Verified at 768/1440 with exact grid and height assertions. npm run check passed."}}
+{"id":"int-f53490f43d66a6709d15eb386867043d","kind":"field_change","created_at":"2026-10-31T08:29:22.208115583Z","actor":"Shinuwa","issue_id":"sokko-g-3g2","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Defense now uses three equal columns per row like attack. Card height and internal spacing were tuned to preserve labels and avoid overflow at 768/1440. Targeted E2E and npm run check passed."}}
+{"id":"int-5c8e3e28b73065d97bd2d9bd58948c33","kind":"field_change","created_at":"2026-10-31T08:31:28.547956378Z","actor":"Shinuwa","issue_id":"sokko-g-tl2","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Added a dedicated elemental skill section heading with an editorial label and gold NDS badge for the active element. Verified accessible names and rendering at 768/1440. npm run check passed."}}
+{"id":"int-45ab8c8a76f0eb3cb5b35a7df31198a7","kind":"field_change","created_at":"2026-10-31T08:35:22.634614095Z","actor":"Shinuwa","issue_id":"sokko-g-px7","extra":{"field":"status","new_value":"in_progress","old_value":"open"}}
+{"id":"int-60f33ea25bfb213bc547cd9bf1d052dc","kind":"field_change","created_at":"2026-10-31T08:40:39.905104579Z","actor":"Shinuwa","issue_id":"sokko-g-px7","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Refined skill heading alignment, content-driven card heights, four-column element grids, and removed the calculator footnote."}}
diff --git a/DESIGN_SYSTEM.md b/DESIGN_SYSTEM.md
index 3c78bda..9c9b120 100644
--- a/DESIGN_SYSTEM.md
+++ b/DESIGN_SYSTEM.md
@@ -906,6 +906,29 @@ Date picker et menus compacts :
- recherche, Prismana, régions, rôles, éléments et niveaux actifs sont rappelés sous la barre par des badges supprimables individuellement ;
- les menus restent ouverts pendant une sélection multiple et se ferment au clic extérieur, à `Escape` ou quand le focus quitte le menu.
+### Calculateur des affinités Aniimo
+
+La page `/games/aniimo/elements` est accessible depuis l'accueil du jeu. Le sélecteur
+affiche les neuf éléments avec icône et nom dans des boutons NDS à état
+`aria-pressed`. Deux éléments peuvent être actifs ; les autres sont alors
+désactivés jusqu'au retrait d'un élément ou à l'effacement de la sélection.
+La carte d'accueil du guide remplace l'icône de calculatrice par trois icônes
+d'éléments en triangle. La sélection utilise des icônes de 48 px au-dessus des noms,
+dans des boutons espacés de 12 px. Les résultats affichent des icônes compactes de
+24 px avec leur nom, regroupées par quatre dans des boxes NDS par multiplicateur. Les sections
+Attaque et Défense utilisent chacune un panneau NDS et forment deux colonnes à partir
+de 1100 px, puis s'empilent en dessous. Dans chaque compétence, les trois groupes
+offensifs et défensifs utilisent trois colonnes régulières. Les boxes utilisent
+une hauteur pilotée par leur contenu, égale au sein de chaque rangée, et repassent
+sur une colonne quand leur panneau mesure moins de 460 px. Chaque compétence
+sélectionnée est introduite par une barre `nds-section-heading` : le libellé
+« Compétence » et le badge doré contenant l'icône et le nom de l'élément sont
+regroupés à gauche. Elle conserve ses propres groupes offensifs (« Peu efficace », « Efficacité normale »,
+« Efficace »). Les groupes défensifs vont de « Très résistant » à « Très vulnérable »
+et affichent le produit des affinités sélectionnées. Les groupes vides sont omis.
+Chaque box associe un libellé explicite, le multiplicateur numérique et la liste
+des éléments ; le vert signale un avantage et le rouge un désavantage.
+
### Liaison des guides aux checklists
Dans la toolbox latérale, chaque checklist compatible avec le guide ouvert expose
diff --git a/e2e/aniimo-elements.spec.js b/e2e/aniimo-elements.spec.js
new file mode 100644
index 0000000..825df3d
--- /dev/null
+++ b/e2e/aniimo-elements.spec.js
@@ -0,0 +1,95 @@
+// Rôle : vérifie les groupes d'affinités Aniimo, leurs libellés et la sélection au clavier aux largeurs bureau.
+import { test, expect } from "@playwright/test";
+
+for (const width of [768, 1440]) {
+ test(`element guide supports single and dual types at ${width}px`, async ({ page }) => {
+ // Le premier parcours comprend la compilation à froid des pages de jeu par Vite.
+ test.setTimeout(60000);
+ await page.setViewportSize({ width, height: 1000 });
+ await page.goto("/#/games/aniimo");
+ const homeIcon = page.locator('a[href="#/games/aniimo/elements"] .aniimo-elements-home-icon');
+ await expect(homeIcon.locator("img")).toHaveCount(3);
+ const homeIconPositions = await homeIcon.locator("img").evaluateAll((images) => images.map((image) => ({ x: image.offsetLeft, y: image.offsetTop })));
+ expect(homeIconPositions).toEqual([{ x: 34, y: 0 }, { x: 68, y: 42 }, { x: 0, y: 42 }]);
+ await page.getByRole("link", { name: /Faiblesses et résistances/ }).click();
+ const picker = page.getByRole("group", { name: "Éléments de l’Aniimo" });
+ await expect(picker.getByRole("button")).toHaveCount(9);
+ await expect(picker).toHaveCSS("column-gap", "12px");
+ await expect(page.getByText("Sélectionnez un élément pour afficher ses affinités.")).toBeVisible();
+ const water = picker.getByRole("button", { name: "Eau", exact: true });
+ await water.focus();
+ await page.keyboard.press("Enter");
+ await expect(water).toHaveAttribute("aria-pressed", "true");
+ const attack = page.getByRole("region", { name: "En attaque" });
+ const defense = page.getByRole("region", { name: "En défense" });
+ await expect(attack).toHaveClass(/nds-panel/);
+ await expect(defense).toHaveClass(/nds-panel/);
+ const group = (panel, name) => panel.getByRole("region", { name, exact: true });
+ const waterAttack = attack.getByRole("region", { name: /Compétence.*Eau/ });
+ const skillHeading = waterAttack.getByRole("heading", { level: 3, name: /Compétence.*Eau/ });
+ await expect(skillHeading).toHaveClass(/nds-section-heading/);
+ await expect(skillHeading).toHaveCSS("justify-content", "flex-start");
+ await expect(skillHeading).toHaveCSS("column-gap", "12px");
+ await expect(skillHeading.locator(".aniimo-skill-element")).toContainText("Eau");
+ await expect(group(waterAttack, "Efficace")).toContainText("×1,6");
+ await expect(group(waterAttack, "Efficace").getByRole("listitem")).toHaveText(["Feu", "Roche"]);
+ await expect(group(defense, "Résistant")).toContainText("×0,625");
+ await expect(group(defense, "Résistant").getByRole("listitem")).toContainText(["Feu", "Eau", "Roche", "Ténèbres"]);
+ await expect(water.locator("img")).toHaveCSS("width", "48px");
+ await expect(waterAttack.locator("li img").first()).toHaveCSS("width", "24px");
+ const ice = picker.getByRole("button", { name: "Glace", exact: true });
+ await ice.focus();
+ await page.keyboard.press("Space");
+ await expect(ice).toHaveAttribute("aria-pressed", "true");
+ await expect(picker.getByRole("button", { name: "Feu", exact: true })).toBeDisabled();
+ const iceAttack = attack.getByRole("region", { name: /Compétence.*Glace/ });
+ await expect(group(waterAttack, "Efficace").getByRole("listitem")).toHaveText(["Feu", "Roche"]);
+ await expect(group(iceAttack, "Peu efficace")).toContainText("×0,625");
+ await expect(group(iceAttack, "Peu efficace").getByRole("listitem")).toHaveText(["Feu", "Roche", "Glace"]);
+ await expect(group(defense, "Dégâts normaux")).toContainText("×1");
+ await expect(group(defense, "Dégâts normaux").getByRole("listitem")).toHaveText(["Feu", "Électrique", "Roche", "Vent", "Glace", "Sacré"]);
+ expect(await group(defense, "Dégâts normaux").locator(".aniimo-matchup-members").evaluate((element) => globalThis.getComputedStyle(element).gridTemplateColumns.split(" ").length)).toBe(4);
+ await expect(group(defense, "Très résistant")).toContainText("×0,390625");
+ await expect(group(defense, "Très résistant").getByRole("listitem")).toHaveText(["Eau"]);
+ await expect(waterAttack.getByRole("listitem")).toHaveCount(9);
+ await expect(iceAttack.getByRole("listitem")).toHaveCount(9);
+ await expect(defense.getByRole("listitem")).toHaveCount(9);
+ expect(await page.evaluate(() => globalThis.document.documentElement.scrollWidth <= globalThis.innerWidth)).toBe(true);
+ for (const panel of [attack, defense]) {
+ expect(await panel.evaluate((element) => element.scrollWidth <= element.clientWidth)).toBe(true);
+ }
+ const resultColumns = await page.locator(".aniimo-matchup-panels").evaluate((element) => globalThis.getComputedStyle(element).gridTemplateColumns.split(" ").length);
+ expect(resultColumns).toBe(width === 1440 ? 2 : 1);
+ const groupColumns = await page.locator(".aniimo-matchup-groups").evaluateAll((groups) => groups.map((group) => ({
+ mode: group.dataset.mode,
+ columns: globalThis.getComputedStyle(group).gridTemplateColumns.split(" ").length,
+ heights: [...group.children].map((card) => Math.round(card.getBoundingClientRect().height)),
+ fits: [...group.children].every((card) => card.scrollHeight <= card.clientHeight)
+ })));
+ for (const groupLayout of groupColumns) {
+ expect(groupLayout.columns).toBe(3);
+ expect(Math.max(...groupLayout.heights)).toBeLessThan(244);
+ expect(groupLayout.fits).toBe(true);
+ }
+ await page.screenshot({ path: test.info().outputPath(`aniimo-elements-${width}.png`), fullPage: true });
+ await ice.click();
+ await expect(picker.getByRole("button", { name: "Feu", exact: true })).toBeEnabled();
+ await page.getByRole("button", { name: "Effacer la sélection" }).click();
+ await expect(attack).toHaveCount(0);
+ await expect(picker.getByRole("button", { pressed: true })).toHaveCount(0);
+ await picker.getByRole("button", { name: "Ténèbres", exact: true }).click();
+ await picker.getByRole("button", { name: "Herbe", exact: true }).click();
+ await expect(group(defense, "Très vulnérable")).toContainText("×2,56");
+ await expect(group(defense, "Très vulnérable").getByRole("listitem")).toHaveText(["Vent"]);
+ });
+}
+
+test("element chart loading failure can be retried on the direct guide route", async ({ page }) => {
+ let fail = true;
+ await page.route("**/data/aniimo/elements.json", (route) => fail ? route.fulfill({ status: 503, body: "unavailable" }) : route.continue());
+ await page.goto("/#/games/aniimo/elements");
+ await expect(page.getByRole("alert")).toContainText("Impossible de charger Aniimo");
+ fail = false;
+ await page.getByRole("button", { name: "Réessayer" }).click();
+ await expect(page.getByRole("group", { name: "Éléments de l’Aniimo" })).toBeVisible();
+});
diff --git a/e2e/aniimo.spec.js b/e2e/aniimo.spec.js
index 37aa08b..a233d81 100644
--- a/e2e/aniimo.spec.js
+++ b/e2e/aniimo.spec.js
@@ -139,7 +139,7 @@ test("catalogue, overview and deferred Aniimo loading preserve filters across na
await page.locator('a[href="#/games/aniimo/aniimos"]').click();
await expect(cards(page)).toHaveCount(3);
await expect(page.getByRole("searchbox")).toHaveValue("EMBERPUP");
- expect(requests).toHaveLength(5);
+ expect(requests).toHaveLength(6);
});
test("Aniimo exposes its regions list", async ({ page }) => {
diff --git a/eslint.config.js b/eslint.config.js
index 81c1e27..805a312 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -11,7 +11,8 @@ export default [
"website/dist/**",
"playwright-report/**",
"test-results/**",
- ".codex-home/**"
+ ".codex-home/**",
+ ".aws/**"
]
},
js.configs.recommended,
diff --git a/tests/aniimo-elements.test.mjs b/tests/aniimo-elements.test.mjs
new file mode 100644
index 0000000..f85635a
--- /dev/null
+++ b/tests/aniimo-elements.test.mjs
@@ -0,0 +1,59 @@
+// Rôle : valide la table des éléments Aniimo et les calculs directionnels simples et doubles.
+import { readFile, access } from "node:fs/promises";
+import { test } from "node:test";
+import assert from "node:assert/strict";
+import { calculateElementMatchups } from "../website/src/features/games/aniimo/elementMatchups.js";
+
+const readJson = async (file) => JSON.parse(await readFile(`website/public/data/aniimo/${file}`, "utf8"));
+const chart = await readJson("elements.json");
+
+test("element chart covers every catalogue element, translation and icon without implicit neutral cells", async () => {
+ const catalogue = await readJson("aniimos.json");
+ const elements = [...new Set(catalogue.flatMap((aniimo) => aniimo.variations.flatMap((variant) => variant.elements)))].sort();
+ assert.deepEqual([...chart.elements].sort(), elements);
+ assert.equal(chart.elements.length, 9);
+ assert.deepEqual(Object.keys(chart.matchups).sort(), elements);
+ assert.equal(chart.dualDefenseRule, "multiply");
+ assert.equal(new URL(chart.source.url).protocol, "https:");
+ assert.match(chart.source.checkedOn, /^\d{4}-\d{2}-\d{2}$/);
+ for (const language of ["fr", "en"]) {
+ const dictionary = await readJson(`i18n/${language}.json`);
+ for (const element of elements) assert.ok(dictionary[element]?.trim());
+ }
+ for (const element of elements) {
+ await access(`website/public/static/img/aniimo/${element}.webp`);
+ assert.deepEqual(Object.keys(chart.matchups[element]).sort(), elements);
+ assert.ok(Object.values(chart.matchups[element]).every((value) => [0.625, 1, 1.6].includes(value)));
+ }
+});
+
+const row = (selected, element) => calculateElementMatchups(chart, selected).find((result) => result.element === element);
+
+test("single elements preserve directional matchups and Dark's neutral mirror", () => {
+ assert.equal(row(["electric"], "water").attack[0].multiplier, 1.6);
+ assert.equal(row(["electric"], "water").defense, 1);
+ assert.equal(row(["dark"], "dark").defense, 1);
+ assert.equal(row(["fire"], "fire").defense, 0.625);
+});
+
+test("dual defense combines weaknesses, resistances and cancellation without floating point noise", () => {
+ assert.equal(row(["dark", "grass"], "wind").defense, 2.56);
+ assert.equal(row(["fire", "rock"], "ice").defense, 0.390625);
+ assert.equal(row(["water", "ice"], "fire").defense, 1);
+ assert.equal(row(["water", "ice"], "grass").defense, 1.6);
+ assert.equal(row(["water", "ice"], "dark").defense, 0.625);
+ assert.deepEqual(row(["ice", "water"], "fire").defense, row(["water", "ice"], "fire").defense);
+});
+
+test("dual offense keeps each skill's element separate instead of multiplying them", () => {
+ assert.deepEqual(row(["water", "ice"], "fire").attack, [
+ { element: "water", multiplier: 1.6 }, { element: "ice", multiplier: 0.625 }
+ ]);
+});
+
+test("empty and invalid selections cannot produce misleading multipliers", () => {
+ assert.equal(calculateElementMatchups(chart, []), null);
+ assert.deepEqual(calculateElementMatchups(chart, ["fire", "fire"]), calculateElementMatchups(chart, ["fire"]));
+ assert.throws(() => calculateElementMatchups(chart, ["unknown"]), RangeError);
+ assert.throws(() => calculateElementMatchups(chart, ["fire", "water", "ice"]), RangeError);
+});
diff --git a/tests/aniimo.test.mjs b/tests/aniimo.test.mjs
index 96c32d8..3e5461b 100644
--- a/tests/aniimo.test.mjs
+++ b/tests/aniimo.test.mjs
@@ -172,7 +172,8 @@ test("loader passes cancellation to all requests and reports failed responses",
const controller = new AbortController();
const listIndex = await readJson("aniimo/lists/index.json");
const regions = await readJson("aniimo/lists/regions.json");
- const bodies = [aniimos, fr, en, listIndex, regions];
+ const elementChart = await readJson("aniimo/elements.json");
+ const bodies = [aniimos, fr, en, listIndex, elementChart, regions];
context.mock.method(globalThis, "fetch", async (url, options) => {
calls.push({ url, options });
const body = bodies[calls.length - 1];
@@ -183,7 +184,8 @@ test("loader passes cancellation to all requests and reports failed responses",
assert.equal(result.lists.length, 1);
assert.equal(result.lists[0].id, "regions");
assert.equal(result.lists[0].itemCount, 14);
- assert.equal(calls.length, 5);
+ assert.deepEqual(result.elementChart, elementChart);
+ assert.equal(calls.length, 6);
assert.ok(calls.every((call) => call.options.signal === controller.signal));
globalThis.fetch.mock.mockImplementation(async () => ({ ok: false }));
await assert.rejects(loadAniimoData(controller.signal), /indisponibles/);
diff --git a/tests/helpers/data-validation.mjs b/tests/helpers/data-validation.mjs
index 3504230..4d92492 100644
--- a/tests/helpers/data-validation.mjs
+++ b/tests/helpers/data-validation.mjs
@@ -141,6 +141,27 @@ export function validateSiteContent(site) {
"aniimo.stats.m_def",
"aniimo.stats.break",
"aniimo.stats.regen",
+ "aniimo.elementCalculator.title",
+ "aniimo.elementCalculator.homeDescription",
+ "aniimo.elementCalculator.description",
+ "aniimo.elementCalculator.selection",
+ "aniimo.elementCalculator.reset",
+ "aniimo.elementCalculator.hint",
+ "aniimo.elementCalculator.limit",
+ "aniimo.elementCalculator.empty",
+ "aniimo.elementCalculator.attack",
+ "aniimo.elementCalculator.defense",
+ "aniimo.elementCalculator.attackHelp",
+ "aniimo.elementCalculator.defenseHelp",
+ "aniimo.elementCalculator.skill",
+ "aniimo.elementCalculator.attackBands.low",
+ "aniimo.elementCalculator.attackBands.normal",
+ "aniimo.elementCalculator.attackBands.high",
+ "aniimo.elementCalculator.defenseBands.veryLow",
+ "aniimo.elementCalculator.defenseBands.low",
+ "aniimo.elementCalculator.defenseBands.normal",
+ "aniimo.elementCalculator.defenseBands.high",
+ "aniimo.elementCalculator.defenseBands.veryHigh",
"aniimo.title",
"aniimo.description",
"aniimo.homeDescription",
diff --git a/website/public/data/aniimo/elements.json b/website/public/data/aniimo/elements.json
new file mode 100644
index 0000000..2f3d64c
--- /dev/null
+++ b/website/public/data/aniimo/elements.json
@@ -0,0 +1,119 @@
+{
+ "source": {
+ "url": "https://aniimoguide.com/elements",
+ "checkedOn": "2026-10-30"
+ },
+ "dualDefenseRule": "multiply",
+ "elements": [
+ "fire",
+ "water",
+ "grass",
+ "electric",
+ "rock",
+ "wind",
+ "dark",
+ "ice",
+ "holy"
+ ],
+ "matchups": {
+ "fire": {
+ "fire": 0.625,
+ "water": 0.625,
+ "grass": 1.6,
+ "electric": 1,
+ "rock": 0.625,
+ "wind": 1,
+ "dark": 1,
+ "ice": 1.6,
+ "holy": 0.625
+ },
+ "water": {
+ "fire": 1.6,
+ "water": 0.625,
+ "grass": 0.625,
+ "electric": 1,
+ "rock": 1.6,
+ "wind": 1,
+ "dark": 1,
+ "ice": 0.625,
+ "holy": 0.625
+ },
+ "grass": {
+ "fire": 0.625,
+ "water": 1.6,
+ "grass": 0.625,
+ "electric": 1,
+ "rock": 1.6,
+ "wind": 1,
+ "dark": 1,
+ "ice": 1,
+ "holy": 0.625
+ },
+ "electric": {
+ "fire": 1,
+ "water": 1.6,
+ "grass": 1,
+ "electric": 0.625,
+ "rock": 0.625,
+ "wind": 1.6,
+ "dark": 1,
+ "ice": 0.625,
+ "holy": 1
+ },
+ "rock": {
+ "fire": 1.6,
+ "water": 0.625,
+ "grass": 0.625,
+ "electric": 1,
+ "rock": 0.625,
+ "wind": 1,
+ "dark": 0.625,
+ "ice": 1.6,
+ "holy": 1
+ },
+ "wind": {
+ "fire": 1,
+ "water": 1,
+ "grass": 1.6,
+ "electric": 0.625,
+ "rock": 1,
+ "wind": 0.625,
+ "dark": 1.6,
+ "ice": 1,
+ "holy": 1
+ },
+ "dark": {
+ "fire": 1,
+ "water": 0.625,
+ "grass": 1.6,
+ "electric": 1.6,
+ "rock": 1,
+ "wind": 0.625,
+ "dark": 1,
+ "ice": 1,
+ "holy": 1.6
+ },
+ "ice": {
+ "fire": 0.625,
+ "water": 1.6,
+ "grass": 1,
+ "electric": 1.6,
+ "rock": 0.625,
+ "wind": 1,
+ "dark": 1,
+ "ice": 0.625,
+ "holy": 1
+ },
+ "holy": {
+ "fire": 1,
+ "water": 1,
+ "grass": 1,
+ "electric": 0.625,
+ "rock": 1,
+ "wind": 1.6,
+ "dark": 1.6,
+ "ice": 1,
+ "holy": 0.625
+ }
+ }
+}
diff --git a/website/public/data/site.json b/website/public/data/site.json
index 4afaa66..20205a0 100644
--- a/website/public/data/site.json
+++ b/website/public/data/site.json
@@ -2943,6 +2943,33 @@
"resultsCreateError": "Impossible de créer la checklist."
},
"aniimo": {
+ "elementCalculator": {
+ "title": "Faiblesses et résistances",
+ "homeDescription": "Comparez les affinités en attaque et en défense, pour un ou deux éléments.",
+ "description": "Sélectionnez les éléments de votre Aniimo pour comparer les dégâts infligés et reçus.",
+ "selection": "Éléments de l’Aniimo",
+ "reset": "Effacer la sélection",
+ "hint": "Choisissez un ou deux éléments. Cliquez à nouveau sur un élément pour le retirer.",
+ "limit": "Deux éléments sélectionnés. Retirez-en un pour en choisir un autre.",
+ "empty": "Sélectionnez un élément pour afficher ses affinités.",
+ "attack": "En attaque",
+ "defense": "En défense",
+ "attackHelp": "Les cibles sont regroupées selon les dégâts infligés par chaque élément de compétence.",
+ "defenseHelp": "Les attaques reçues sont regroupées selon les dégâts subis par votre Aniimo.",
+ "skill": "Compétence",
+ "attackBands": {
+ "low": "Peu efficace",
+ "normal": "Efficacité normale",
+ "high": "Efficace"
+ },
+ "defenseBands": {
+ "veryLow": "Très résistant",
+ "low": "Résistant",
+ "normal": "Dégâts normaux",
+ "high": "Vulnérable",
+ "veryHigh": "Très vulnérable"
+ }
+ },
"title": "Aniimos",
"description": "Filtrez les variantes par nom, région, éléments, rôle et compétences de logis, puis retournez les cartes pour consulter leurs capacités.",
"homeDescription": "Recherche par nom, région, rôle, éléments et compétences de logis.",
diff --git a/website/src/features/games/aniimo/AniimoElements.jsx b/website/src/features/games/aniimo/AniimoElements.jsx
new file mode 100644
index 0000000..178deb7
--- /dev/null
+++ b/website/src/features/games/aniimo/AniimoElements.jsx
@@ -0,0 +1,73 @@
+// Rôle : regroupe les affinités Aniimo par multiplicateur après sélection d'un ou deux éléments.
+import { useState } from "react";
+import { GameBreadcrumb } from "../GameBreadcrumb.jsx";
+import { aniimoAsset, aniimoLabel } from "./utils.js";
+import { calculateElementMatchups } from "./elementMatchups.js";
+
+const formatMultiplier = (value) => `×${value.toLocaleString("fr-FR", { maximumFractionDigits: 6 })}`;
+
+function ElementLabel({ element, t, size = 40, compact = false }) {
+ const label = t(element);
+ return
+
+ {label}
+ ;
+}
+
+function MatchupGroups({ entries, prefix, defense = false, content, t }) {
+ const groups = new Map();
+ for (const { element, multiplier } of entries) {
+ if (!groups.has(multiplier)) groups.set(multiplier, []);
+ groups.get(multiplier).push(element);
+ }
+ const Heading = defense ? "h3" : "h4";
+ return
{content.description}
{selected.length === 2 ? content.limit : content.hint}
+{content.attackHelp}
+ {selected.map((element, index) =>{content.defenseHelp}
+{content.empty}
} +{aniimo.error}
{game.eyebrow}
{game.summary}
{aniimo.error}