fix(carte): checkpoint B4a du 07/11 : canonique sans carte=graphe hors pratiques, commutateur mobile-first, tokens des encarts

Revue à deux axes (spec 5 écarts, standards 10 violations, 0 bloquant) :
- utils/seo.ts : `carte=graphe` n'entre dans la canonique de `/` qu'en mode pratiques (sinon doublon de `/`) ; deux cas ajoutés à test-seo
- CommutateurMode.vue : la media query `max-width: 419px` devient `min-width: 26.25rem` (PROTOCOLE §1, mobile-first) ; `700` → `--fw-bold`
- EncartsOutremer.vue : `--nav-bg/--nav-surface/--nav-text` → `--bg/--surface/--text` (DESIGN-SYSTEM §tokens), compteur en `color-mix(var(--text) 78 %)` au lieu de `--text-muted`, graisses en tokens
- test-y.mjs : `/agences` sur l'hôte event répond 301 depuis B4a (REDIRECTIONS_EXACTES vaut sur tout hôte, comme B23), plus 404
- DESIGN-SYSTEM.md : deux phrases qui décrivaient encore `/agences` comme une page vivante

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PWGVmzQw2398GfC9dryH1Y
This commit is contained in:
Jules Neny
2026-11-07 20:15:10 +01:00
co-authored by Claude Fable 5.1
parent 446b69ea94
commit a39a861ee7
6 changed files with 33 additions and 20 deletions
+19 -11
View File
@@ -58,8 +58,8 @@ function voisin(i: number, pas: number) {
flex-shrink: 0;
display: flex;
align-items: stretch;
gap: var(--space-sm);
padding: 0 var(--space-md);
gap: 0;
padding: 0 var(--space-xs);
background: var(--surface);
border-bottom: 1px solid var(--border);
min-width: 0;
@@ -86,7 +86,7 @@ function voisin(i: number, pas: number) {
}
.modes__onglet[aria-selected='true'] {
border-bottom-color: var(--nav-primary-solid);
font-weight: 700;
font-weight: var(--fw-bold);
}
.modes__lien {
margin-left: auto;
@@ -99,15 +99,23 @@ function voisin(i: number, pas: number) {
outline: 2px solid var(--focus-ring);
outline-offset: -2px;
}
@media (max-width: 419px) {
.modes { padding: 0 var(--space-xs); gap: 0; }
/* Mobile-first (PROTOCOLE §1, checkpoint 07/11) : étroit en base, « inspirantes » repliée ; à partir de 26.25rem (420 px) le libellé entier et les espacements. */
.modes__suite {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
@media (min-width: 26.25rem) {
.modes { padding: 0 var(--space-md); gap: var(--space-sm); }
.modes__suite {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
position: static;
width: auto;
height: auto;
overflow: visible;
clip: auto;
}
}
</style>
+6 -6
View File
@@ -147,7 +147,7 @@ onUnmounted(() => {
flex-direction: column;
gap: var(--space-xs);
padding: var(--space-xs);
background: var(--nav-bg);
background: var(--bg);
overflow-y: auto;
min-height: 0;
}
@@ -156,7 +156,7 @@ onUnmounted(() => {
flex-direction: column;
border-radius: var(--radius-md);
overflow: hidden;
background: var(--nav-surface);
background: var(--surface);
border: 1px solid var(--border);
flex-shrink: 0;
}
@@ -164,12 +164,12 @@ onUnmounted(() => {
margin: 0;
padding: var(--space-2xs) var(--space-sm);
font-size: var(--fs-sm);
font-weight: 600;
color: var(--nav-text);
font-weight: var(--fw-semibold);
color: var(--text);
}
.encart__n {
font-weight: 400;
color: var(--nav-text-muted);
font-weight: var(--fw-regular);
color: color-mix(in srgb, var(--text) 78%, transparent); /* DESIGN-SYSTEM §Texte atténué, pas --text-muted */
}
.encart__carte {
height: 170px;