Compare commits

..
Author SHA1 Message Date
Jules NenyandClaude Opus 5.5 fec977a58f feat(carte-o): brouillon des 17 accroches au survol (à valider par Jules)
Champ problematique ajouté aux 17 nodes de carte-o-source.yaml (source
éditoriale), propagé par build-carte-o.js, lu en priorité par l'infobulle
de CarteO.vue. Page temporaire /apercu-accroches pour la relecture :
À SUPPRIMER avant merge. Branche partie de wip/pont-tailwind4-20260817 :
ne pas merger telle quelle dans main (elle embarque le pont non validé),
cherry-pick de ce commit seul, sans la page d'aperçu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SHuEiSieLhPY2uZbCu6uQb
2026-09-29 14:06:25 +02:00
Jules NenyandClaude Fable 5.1 6a01db1833 wip(pont): pont Tailwind 4 câblé + pont-test.astro + carte-o.json (session défrichage 17/08, mis à l'abri le 22/09)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-22 14:05:12 +02:00
12 changed files with 96 additions and 315 deletions
+6
View File
@@ -13,6 +13,7 @@
"@astrojs/vue": "^6.0.1",
"@fontsource-variable/roboto-condensed": "^5.2.8",
"@tailwindcss/vite": "^4.2.4",
"@transformer/ui": "git+https://git.trans-former.fr/jules/design-system.git",
"@types/d3": "^7.4.3",
"astro": "^6.3.1",
"d3": "^7.9.0",
@@ -2366,6 +2367,11 @@
"vite": "^5.2.0 || ^6 || ^7 || ^8"
}
},
"node_modules/@transformer/ui": {
"version": "0.1.0",
"resolved": "git+https://git.trans-former.fr/jules/design-system.git#b7f4f21b7c41258d976a878a8a3c2d4ce45a2ede",
"license": "UNLICENSED"
},
"node_modules/@types/d3": {
"version": "7.4.3",
"resolved": "https://registry.npmjs.org/@types/d3/-/d3-7.4.3.tgz",
+1
View File
@@ -20,6 +20,7 @@
"@astrojs/vue": "^6.0.1",
"@fontsource-variable/roboto-condensed": "^5.2.8",
"@tailwindcss/vite": "^4.2.4",
"@transformer/ui": "git+https://git.trans-former.fr/jules/design-system.git",
"@types/d3": "^7.4.3",
"astro": "^6.3.1",
"d3": "^7.9.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"version": "1.1",
"generatedAt": "2026-10-20T22:14:08.516Z",
"generatedAt": "2026-09-29T12:05:12.880Z",
"nodes": [
{
"id": "contrat-social-medecine-corps-social",
+2 -3
View File
@@ -5,8 +5,7 @@
// V1.3-D : ChatbotV2 retire du DOM (backlog V2). Pour reactivation -> reintroduire le tab + panel.
// V1.4-C : cadre Carte O + bouton toggle desktop + drag fix (window listeners) + preview hydration (client:load) + transitions.
import CarteOWrapper from '../vue/CarteOWrapper.vue';
// Maquette 2026-10 : EmbedDynamique (carte AEP seule) remplacé par EmbedOnglets (AEP + rénovation).
import EmbedOnglets from '../vue/EmbedOnglets.vue';
import EmbedDynamique from '../vue/EmbedDynamique.vue';
import PreviewArticle from '../vue/PreviewArticle.vue';
---
<!--
@@ -122,7 +121,7 @@ import PreviewArticle from '../vue/PreviewArticle.vue';
style="min-height: 0; flex: 1 1 67%; transition: flex-basis 0.3s ease;"
>
<div class="h-full min-h-[60vh] md:min-h-[400px]">
<EmbedOnglets client:visible />
<EmbedDynamique client:visible />
</div>
</section>
</div>
+16 -33
View File
@@ -1,35 +1,18 @@
---
// Maquette 2026-10 : le feed Instagram (InstaFeed.vue, gardé dans le repo) est remplacé
// par le site art.trans-former.fr en iframe. Le site est en staging noindex : l'embed n'attend
// pas sa mise en ligne publique, mais le bouton Boutique reste désactivé jusqu'au go catalogue.
const ART_URL = 'https://art.trans-former.fr/';
import InstaFeed from '../vue/InstaFeed.vue';
const JULESNENY_FEED = Array.from(
{ length: 13 },
(_, i) => `/images/instagram/feed/feed-${String(i + 1).padStart(2, '0')}.jpg`
);
---
<section class="h-full flex flex-col">
<header class="shrink-0 px-4 py-2 flex items-center justify-between gap-3 border-b border-neutral-200">
<a href={ART_URL} target="_blank" rel="noopener" class="font-medium text-sm hover:underline">
Jules Neny, peintures
</a>
<div class="flex items-center gap-3 text-xs">
<a href="https://www.instagram.com/julesneny/" target="_blank" rel="noopener" class="text-neutral-500 hover:underline hover:text-neutral-800">Instagram</a>
<a href={ART_URL} target="_blank" rel="noopener" class="text-neutral-500 hover:underline hover:text-neutral-800">Ouvrir ↗</a>
</div>
</header>
<div class="flex-1 min-h-0 relative bg-neutral-50">
<iframe
src={ART_URL}
title="Jules Neny, peintures"
class="absolute inset-0 w-full h-full border-0"
loading="lazy"
sandbox="allow-scripts allow-same-origin allow-popups allow-forms"
></iframe>
</div>
<div class="shrink-0 px-2 py-1">
<span
class="block text-center px-3 py-1 bg-neutral-200 text-neutral-400 rounded text-xs cursor-not-allowed"
aria-disabled="true"
title="Boutique — bientôt disponible"
>
Boutique
</span>
</div>
</section>
<div class="h-full overflow-hidden">
<InstaFeed
client:visible
account="Jules Neny"
accountUrl="https://www.instagram.com/julesneny/"
secondAccount="AEP"
secondAccountUrl="https://www.instagram.com/aep.politique/"
feedImages={JULESNENY_FEED}
/>
</div>
-31
View File
@@ -1,11 +1,5 @@
---
import JournalList from '../vue/JournalList.vue';
import { articlesManifeste } from '../../data/articles-manifeste';
const formatDate = (iso: string) => {
const [a, m, j] = iso.split('-');
return `${j}/${m}/${a.slice(2)}`;
};
// V1.4-bis FIX 5 : couleurs pills actives attenuees (60% color + 40% papier).
// Active = fill couleur ATTENUEE (muted) + texte encre #0F172A (contraste WCAG ≥4.5:1).
@@ -127,31 +121,6 @@ const categories = [
</a>
</details>
<!-- Articles du manifeste (maquette 2026-10) : liste statique, src/data/articles-manifeste.ts -->
<section class="border-t border-neutral-200 pt-4" aria-labelledby="articles-titre">
<h2 id="articles-titre" class="font-semibold mb-3 flex items-center justify-between">
<span>Articles</span>
<a
href="https://manifeste.trans-former.fr/"
target="_blank"
rel="noopener"
class="text-xs text-neutral-400 font-normal hover:text-neutral-700 hover:underline"
>
manifeste ↗
</a>
</h2>
<ul class="space-y-2 text-sm">
{articlesManifeste.map((a) => (
<li>
<a href={a.url} target="_blank" rel="noopener" class="block group">
<time datetime={a.date} class="block text-[11px] text-neutral-500">{formatDate(a.date)}</time>
<span class="block text-neutral-900 group-hover:text-neutral-600 leading-snug">{a.titre}</span>
</a>
</li>
))}
</ul>
</section>
<!-- Journal chrono -->
<section class="border-t border-neutral-200 pt-4 flex-1 overflow-y-auto">
<h2 class="font-semibold mb-3 flex items-center justify-between">
+1 -1
View File
@@ -20,7 +20,7 @@ interface CarteNode {
theme?: string
path?: string
domain?: string // V1.2-O : domaine plateforme source (logo Brandfetch CDN)
problematique?: string // P3 §3 : accroche au survol (validees par Jules le 20/10)
problematique?: string // P3 §3 : accroche au survol (brouillon MOE 29/09, a valider)
}
// V1.2-O : logos plateforme via Brandfetch CDN (visible zoom > 1.5x seulement)
-219
View File
@@ -1,219 +0,0 @@
<script setup lang="ts">
import { ref, computed, onMounted, onUnmounted } from 'vue'
// Centre BAS (maquette 2026-10) : deux sites embarqués en onglets.
// Onglets cliquables + défilement lent automatique (barre de progression sous l'onglet actif),
// arrêt au survol / au focus / onglet navigateur caché ; un clic de l'utilisateur arrête
// définitivement le défilement. prefers-reduced-motion : pas de défilement automatique.
// Téléphone (< 768 px) : une carte-lien par site, pas d'iframe (illisible à l'échelle 0,27).
interface Onglet {
id: string
label: string
titre: string
description: string
url: string
}
const onglets: Onglet[] = [
{
id: 'aep',
label: 'AEP',
titre: "Architecture d'écologie politique",
description: "La carte et les outils d'AEP.",
url: 'https://aep.trans-former.fr/',
},
{
id: 'renovation',
label: 'Rénovation',
titre: 'Rénovation des maisons individuelles',
description: 'Une maison des années 50-90 à transformer par étapes.',
url: 'https://renovation-energetique.trans-former.fr/',
},
]
const DUREE_MS = 20000
const VIEWPORT_W = 1440
const actif = ref(0)
const montes = ref<boolean[]>(onglets.map((_, i) => i === 0))
const charges = ref<boolean[]>(onglets.map(() => false))
const enPause = ref(false)
const arrete = ref(false)
const progression = ref(0) // 0 → 1
const mobile = ref(false)
const scale = ref(0.42)
const wrapperRef = ref<HTMLDivElement | null>(null)
const rootRef = ref<HTMLDivElement | null>(null)
// La page monte chaque colonne deux fois (grille bureau + SwipeContainer mobile caché) :
// pas d'iframe tant que cette copie n'est pas affichée, sinon AEP se charge deux fois.
const affiche = ref(false)
let raf = 0
let dernier = 0
let resizeObs: ResizeObserver | null = null
let mqlMobile: MediaQueryList | null = null
const iframeStyle = computed(() => ({
width: VIEWPORT_W + 'px',
height: 100 / scale.value + '%',
transform: `scale(${scale.value})`,
transformOrigin: '0 0',
}))
const updateScale = () => {
const w = wrapperRef.value?.clientWidth ?? 0
if (w > 0) scale.value = w / VIEWPORT_W
}
const activer = (i: number) => {
actif.value = i
montes.value[i] = true
progression.value = 0
}
const choisir = (i: number) => {
arrete.value = true
activer(i)
}
const tick = (t: number) => {
if (dernier && !enPause.value && !arrete.value && !document.hidden) {
progression.value += (t - dernier) / DUREE_MS
if (progression.value >= 1) activer((actif.value + 1) % onglets.length)
}
dernier = t
raf = requestAnimationFrame(tick)
}
const majAffiche = () => {
affiche.value = !!rootRef.value && rootRef.value.offsetParent !== null
}
const onMqlMobile = () => {
mobile.value = !!mqlMobile?.matches
majAffiche()
}
onMounted(() => {
mqlMobile = window.matchMedia('(max-width: 767px)')
onMqlMobile()
mqlMobile.addEventListener('change', onMqlMobile)
if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) arrete.value = true
if (wrapperRef.value && typeof ResizeObserver !== 'undefined') {
updateScale()
resizeObs = new ResizeObserver(updateScale)
resizeObs.observe(wrapperRef.value)
}
// Le second site se charge en arrière-plan après quelques secondes, pour que le passage soit sans attente.
setTimeout(() => montes.value.forEach((_, i) => (montes.value[i] = true)), 4000)
window.addEventListener('resize', majAffiche)
raf = requestAnimationFrame(tick)
})
onUnmounted(() => {
cancelAnimationFrame(raf)
resizeObs?.disconnect()
mqlMobile?.removeEventListener('change', onMqlMobile)
window.removeEventListener('resize', majAffiche)
})
</script>
<template>
<div
ref="rootRef"
class="embed-onglets h-full flex flex-col"
@mouseenter="enPause = true"
@mouseleave="enPause = false"
@focusin="enPause = true"
@focusout="enPause = false"
>
<div
v-if="!mobile"
role="tablist"
aria-label="Sites embarqués"
class="shrink-0 flex items-stretch border-b border-neutral-200 bg-white"
style="font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;"
>
<button
v-for="(o, i) in onglets"
:key="o.id"
type="button"
role="tab"
:id="`onglet-${o.id}`"
:aria-selected="actif === i"
:aria-controls="`panneau-${o.id}`"
class="relative px-4 py-2 text-xs cursor-pointer transition-colors"
:class="actif === i ? 'text-neutral-900' : 'text-neutral-500 hover:text-neutral-800'"
@click="choisir(i)"
>
{{ o.label }}
<span
aria-hidden="true"
class="absolute left-0 bottom-0 h-0.5"
:style="{
width: actif === i ? (arrete ? '100%' : `${Math.min(progression, 1) * 100}%`) : '0%',
background: '#0F172A',
}"
></span>
</button>
<a
:href="onglets[actif].url"
target="_blank"
rel="noopener"
class="ml-auto self-center px-3 text-xs text-neutral-500 hover:text-neutral-900 hover:underline"
>
Ouvrir le site ↗
</a>
</div>
<!-- Téléphone : cartes-liens -->
<div v-if="mobile" class="flex-1 p-3 space-y-3 overflow-y-auto">
<a
v-for="o in onglets"
:key="o.id"
:href="o.url"
target="_blank"
rel="noopener"
class="block border border-neutral-200 rounded p-4 hover:bg-neutral-50"
>
<span class="block text-xs text-neutral-500 font-mono">{{ o.label }}</span>
<span class="block text-base text-neutral-900 mt-1">{{ o.titre }}</span>
<span class="block text-sm text-neutral-500 mt-1">{{ o.description }}</span>
<span class="block text-xs text-neutral-700 mt-2 underline">Ouvrir le site ↗</span>
</a>
</div>
<!-- Bureau : iframes empilées, fondu entre les onglets -->
<div v-else ref="wrapperRef" class="relative flex-1 min-h-0 bg-neutral-100 overflow-hidden">
<div
v-for="(o, i) in onglets"
:key="o.id"
:id="`panneau-${o.id}`"
role="tabpanel"
:aria-labelledby="`onglet-${o.id}`"
:aria-hidden="actif !== i"
class="absolute inset-0 transition-opacity duration-700"
:style="{ opacity: actif === i ? 1 : 0, pointerEvents: actif === i ? 'auto' : 'none' }"
>
<div
v-if="!charges[i]"
class="absolute inset-0 flex items-center justify-center bg-neutral-50 animate-pulse"
>
<span class="text-neutral-400 text-sm">Chargement de {{ o.label }}...</span>
</div>
<iframe
v-if="montes[i] && affiche"
:src="o.url"
:title="o.titre"
class="absolute top-0 left-0 border-0"
:style="iframeStyle"
:tabindex="actif === i ? 0 : -1"
loading="lazy"
sandbox="allow-scripts allow-same-origin allow-popups allow-forms"
@load="charges[i] = true"
></iframe>
</div>
</div>
</div>
</template>
-27
View File
@@ -1,27 +0,0 @@
// Articles publiés sur manifeste.trans-former.fr, du plus récent au plus ancien.
// Source : flux RSS du site vivant (relevé le 2026-10-21), version française seulement.
// Les liens du flux pointent vers /<slug>/fr/ qui renvoie 404 : on lie /<slug>/ (200).
// Le site vivant fait foi : 4 de ces articles ne sont pas sur astro-site master.
export interface ArticleManifeste {
titre: string
date: string // ISO AAAA-MM-JJ
url: string
}
const BASE = 'https://manifeste.trans-former.fr'
export const articlesManifeste: ArticleManifeste[] = [
{ date: '2026-07-26', titre: 'AEP, conclusion saison 1 : on sait tout et on ne bouge pas', url: `${BASE}/on-sait-tout-et-on-ne-bouge-pas/` },
{ date: '2026-07-04', titre: 'Chantier ouvert au public - S2', url: `${BASE}/s2-de-la-peur-a-l-elan/` },
{ date: '2026-06-20', titre: 'Échelle S — faire le saut vers ses projets', url: `${BASE}/echelle-s-faire-le-saut/` },
{ date: '2026-05-22', titre: 'Bilan phase M - structuration communautaire', url: `${BASE}/bilan-phase-m/` },
{ date: '2026-05-18', titre: 'IA : le vélo ou la fusée ?', url: `${BASE}/ia-velo-ou-fusee/` },
{ date: '2026-05-10', titre: "40k€ pour démarrer la construction de notre réseau d'entraide", url: `${BASE}/40k-pour-monter-notre-commu/` },
{ date: '2026-05-03', titre: "Sortir la tête de l'eau, ensemble", url: `${BASE}/aep-m7-codev-fete/` },
{ date: '2026-04-27', titre: "Visibiliser le réseau d'entraide déjà existant", url: `${BASE}/aep-m7-carto-participative/` },
{ date: '2026-04-27', titre: "AEP M7 - Structurer l'entraide collective", url: `${BASE}/aep-m7-entraide/` },
{ date: '2026-04-12', titre: 'Résistance et régénération', url: `${BASE}/aep-m6-resistance/` },
{ date: '2026-02-15', titre: "Anatomie d'une société en crise — échelle XL (3/8)", url: `${BASE}/aep-m3-echxl/` },
{ date: '2026-01-25', titre: 'Architecture, anatomie d’individus sous l’eau 2/8', url: `${BASE}/aep-m2-echs/` },
{ date: '2025-11-30', titre: "Architecture, anatomie d'une profession sous l'eau 1/8", url: `${BASE}/aep-m1-echm/` },
]
+44
View File
@@ -0,0 +1,44 @@
---
// Page TEMPORAIRE d'apercu des 17 accroches de la Carte O (P3 §3, brouillon MOE 29/09).
// Sert a la relecture de Jules : chaque node avec l'accroche qui s'affichera au survol.
// A SUPPRIMER avant tout merge dans main.
import carte from '../../public/data/carte-o.json';
export const prerender = true;
const nodes = carte.nodes as Array<{ id: string; label: string; problematique?: string; niveau?: number }>;
---
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="robots" content="noindex" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>apercu-accroches</title>
<style>
body { font-family: system-ui, sans-serif; background: #f7f4ee; color: #1d1d1b; margin: 0; padding: 32px 16px; }
main { max-width: 760px; margin: 0 auto; }
h1 { font-size: 1.1rem; font-weight: 600; margin: 0 0 4px; }
p.note { margin: 0 0 24px; color: #5b5a55; font-size: .9rem; }
ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
li { background: #fff; border: 1px solid #e3ded3; border-radius: 8px; padding: 12px 14px; }
li.centre { border-color: #1d1d1b; }
.label { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #6b6a64; }
.id { font-family: ui-monospace, monospace; font-size: .7rem; color: #9a978f; margin-left: 6px; text-transform: none; }
.acc { font-size: 1.05rem; line-height: 1.4; margin-top: 4px; }
.manque { color: #b3261e; }
</style>
</head>
<body>
<main>
<h1>Carte O : accroches au survol (brouillon, à valider)</h1>
<p class="note">{nodes.filter((n) => n.problematique).length} accroches sur {nodes.length} nodes, lues dans <code>public/data/carte-o.json</code>.</p>
<ol>
{nodes.map((n, i) => (
<li class={n.niveau === 0 ? 'centre' : ''}>
<div class="label">{i + 1}. {n.label}<span class="id">{n.id}</span></div>
<div class={n.problematique ? 'acc' : 'acc manque'}>{n.problematique ?? 'aucune accroche'}</div>
</li>
))}
</ol>
</main>
</body>
</html>
+20
View File
@@ -0,0 +1,20 @@
---
// Page TEMPORAIRE de test du pont Tailwind 4 (@transformer/ui) — P3 §1.
// Sert a verifier que le pont compile les utilitaires et que les tokens
// se resolvent en vraies valeurs. A supprimer apres validation.
export const prerender = true;
---
<!doctype html>
<html lang="fr">
<head><meta charset="utf-8" /><title>pont-test</title></head>
<body class="bg-bg text-text">
<div class="bg-surface text-text-muted border-border">surface / muted / border</div>
<div class="bg-primary text-on-primary">primary / on-primary</div>
<div class="bg-accent text-on-accent">accent / on-accent</div>
<div class="text-link hover:text-link-hover">lien</div>
<div class="bg-success bg-warning bg-danger">etats</div>
<div class="font-(family-name:--font-heading) rounded-(--radius-md) shadow-(--shadow-md) ease-(--ease-out)">
syntaxe var arbitraire (namespaces non mappes)
</div>
</body>
</html>
+5
View File
@@ -1,4 +1,9 @@
@import "tailwindcss";
/* Pont design system (P3 §1) : tokens + mappings @theme Tailwind 4.
Pas de reset.css ni theme/*.css tant que la palette racine n'est pas tranchee —
le bridge seul ne change aucun rendu (il ne definit que des variables). */
@import "@transformer/ui/tokens.css";
@import "@transformer/ui/tailwind.css";
/* Typographie monospace - labels editoriaux (V1.1-G.1) */
.font-mono-editorial,