7 Commits

Author SHA1 Message Date
Jules Neny
fb4842ac53 V1.5-A mobile UX (A.1-A.9) 2026-05-13 00:49:45 +02:00
Jules Neny
36feace21f fix(deploy): node 20-alpine -> 22-alpine (astro 6 requires node 22) 2026-05-12 12:03:08 +02:00
Jules Neny
0e65156fa0 feat(v1): page-cerveau LIVE - PC0-PC8 + V1.1-V1.4-bis 2026-05-12 11:31:23 +02:00
Jules Neny
020cf0a162 chore: rebuild carte-o.json (17 nodes/20 edges, prebuild auto) 2026-05-12 11:29:38 +02:00
Jules Neny
1c4dce2fa4 feat(deploy): Dockerfile multi-stage Node 20-alpine pour Coolify
Build stage : npm ci + npm run build (inclut prebuild carte-o.js).
Runtime : node:20-alpine, dist/ + node_modules copiees, EXPOSE 3000, HOST/PORT env.
Start command Coolify : node ./dist/server/entry.mjs
2026-05-12 11:29:30 +02:00
Jules Neny
cde95cdf61 feat(gio): llms.txt + Schema.org WebSite+Person JSON-LD + meta ai-content-declaration
- public/llms.txt : description structuree ecosysteme Jules NENY pour LLMs (sections/reseaux/politique d'usage)
- BaseLayout.astro : Schema.org WebSite + Person JSON-LD (sameAs Insta + Substack + Gitea) ; Schema.org Article conditionnel via isArticle prop
- Meta ai-content-declaration : human-authored-with-ai-coordination
2026-05-12 11:29:20 +02:00
Jules Neny
f099463636 feat(seo): sitemap + robots.txt + meta OG/Twitter/canonical + site URL
- Installe @astrojs/sitemap ; integre dans astro.config.mjs avec filtre /api/
- Ajoute site: 'https://trans-former.fr' pour canonical absolues
- BaseLayout : props ogImage + canonical + isArticle + articleDate ; meta description/canonical/robots/OG/Twitter Card complets ; suppression doublons
- manifeste.astro : passe isArticle=true pour Schema.org Article
- public/robots.txt : open index + GPTBot/ClaudeBot/Google-Extended/Applebot-Extended/PerplexityBot explicites
2026-05-12 11:29:02 +02:00
19 changed files with 316 additions and 213 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:22-alpine
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package*.json ./
EXPOSE 3000
ENV HOST=0.0.0.0
ENV PORT=3000
CMD ["node", "./dist/server/entry.mjs"]

View File

@@ -3,14 +3,22 @@ import { defineConfig } from 'astro/config';
import vue from '@astrojs/vue'; import vue from '@astrojs/vue';
import node from '@astrojs/node'; import node from '@astrojs/node';
import tailwindcss from '@tailwindcss/vite'; import tailwindcss from '@tailwindcss/vite';
import sitemap from '@astrojs/sitemap';
// PC7 — bascule SSR (mode 'server' Astro 6) pour endpoint /api/chatbot proxy. // PC7 — bascule SSR (mode 'server' Astro 6) pour endpoint /api/chatbot proxy.
// Toutes les pages publiques restent statiques via `export const prerender = true`. // Toutes les pages publiques restent statiques via `export const prerender = true`.
// Coolify deploy (PC8) : `node ./dist/server/entry.mjs` (Node adapter standalone). // Coolify deploy (PC8) : `node ./dist/server/entry.mjs` (Node adapter standalone).
// PC8 — sitemap auto-genere + site URL pour canonical + redirects SEO.
export default defineConfig({ export default defineConfig({
site: 'https://trans-former.fr',
output: 'server', output: 'server',
adapter: node({ mode: 'standalone' }), adapter: node({ mode: 'standalone' }),
integrations: [vue()], integrations: [
vue(),
sitemap({
filter: (page) => !page.includes('/api/'),
}),
],
vite: { vite: {
plugins: [tailwindcss()], plugins: [tailwindcss()],
}, },

67
package-lock.json generated
View File

@@ -9,6 +9,7 @@
"version": "0.0.1", "version": "0.0.1",
"dependencies": { "dependencies": {
"@astrojs/node": "^10.1.0", "@astrojs/node": "^10.1.0",
"@astrojs/sitemap": "^3.7.2",
"@astrojs/vue": "^6.0.1", "@astrojs/vue": "^6.0.1",
"@fontsource-variable/roboto-condensed": "^5.2.8", "@fontsource-variable/roboto-condensed": "^5.2.8",
"@tailwindcss/vite": "^4.2.4", "@tailwindcss/vite": "^4.2.4",
@@ -98,6 +99,17 @@
"node": ">=22.12.0" "node": ">=22.12.0"
} }
}, },
"node_modules/@astrojs/sitemap": {
"version": "3.7.2",
"resolved": "https://registry.npmjs.org/@astrojs/sitemap/-/sitemap-3.7.2.tgz",
"integrity": "sha512-PqkzkcZTb5ICiyIR8VoKbIAP/laNRXi5tw616N1Ckk+40oNB8Can1AzVV56lrbC5GKSZFCyJYUVYqVivMisvpA==",
"license": "MIT",
"dependencies": {
"sitemap": "^9.0.0",
"stream-replace-string": "^2.0.0",
"zod": "^4.3.6"
}
},
"node_modules/@astrojs/telemetry": { "node_modules/@astrojs/telemetry": {
"version": "3.3.2", "version": "3.3.2",
"resolved": "https://registry.npmjs.org/@astrojs/telemetry/-/telemetry-3.3.2.tgz", "resolved": "https://registry.npmjs.org/@astrojs/telemetry/-/telemetry-3.3.2.tgz",
@@ -2661,6 +2673,24 @@
"@types/unist": "*" "@types/unist": "*"
} }
}, },
"node_modules/@types/node": {
"version": "24.12.4",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.12.4.tgz",
"integrity": "sha512-GUUEShf+PBCGW2KaXwcIt3Yk+e3pkKwWKb9GSyM9WQVE+ep2jzmHdGsHzu4wgcZy5fN9FBdVzjpBQsYlpfpgLA==",
"license": "MIT",
"dependencies": {
"undici-types": "~7.16.0"
}
},
"node_modules/@types/sax": {
"version": "1.2.7",
"resolved": "https://registry.npmjs.org/@types/sax/-/sax-1.2.7.tgz",
"integrity": "sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==",
"license": "MIT",
"dependencies": {
"@types/node": "*"
}
},
"node_modules/@types/unist": { "node_modules/@types/unist": {
"version": "3.0.3", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",
@@ -2936,6 +2966,12 @@
"url": "https://github.com/sponsors/jonschlinkert" "url": "https://github.com/sponsors/jonschlinkert"
} }
}, },
"node_modules/arg": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
"integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",
"license": "MIT"
},
"node_modules/argparse": { "node_modules/argparse": {
"version": "2.0.1", "version": "2.0.1",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
@@ -6982,6 +7018,25 @@
"integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/sitemap": {
"version": "9.0.1",
"resolved": "https://registry.npmjs.org/sitemap/-/sitemap-9.0.1.tgz",
"integrity": "sha512-S6hzjGJSG3d6if0YoF5kTyeRJvia6FSTBroE5fQ0bu1QNxyJqhhinfUsXi9fH3MgtXODWvwo2BDyQSnhPQ88uQ==",
"license": "MIT",
"dependencies": {
"@types/node": "^24.9.2",
"@types/sax": "^1.2.1",
"arg": "^5.0.0",
"sax": "^1.4.1"
},
"bin": {
"sitemap": "dist/esm/cli.js"
},
"engines": {
"node": ">=20.19.5",
"npm": ">=10.8.2"
}
},
"node_modules/slash": { "node_modules/slash": {
"version": "5.1.0", "version": "5.1.0",
"resolved": "https://registry.npmjs.org/slash/-/slash-5.1.0.tgz", "resolved": "https://registry.npmjs.org/slash/-/slash-5.1.0.tgz",
@@ -7040,6 +7095,12 @@
"node": ">= 0.8" "node": ">= 0.8"
} }
}, },
"node_modules/stream-replace-string": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/stream-replace-string/-/stream-replace-string-2.0.0.tgz",
"integrity": "sha512-TlnjJ1C0QrmxRNrON00JvaFFlNh5TTG00APw23j74ET7gkQpTASi6/L2fuiav8pzK715HXtUeClpBTw2NPSn6w==",
"license": "MIT"
},
"node_modules/stringify-entities": { "node_modules/stringify-entities": {
"version": "4.0.4", "version": "4.0.4",
"resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz",
@@ -7222,6 +7283,12 @@
"integrity": "sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==", "integrity": "sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/undici-types": {
"version": "7.16.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz",
"integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==",
"license": "MIT"
},
"node_modules/unicorn-magic": { "node_modules/unicorn-magic": {
"version": "0.4.0", "version": "0.4.0",
"resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.4.0.tgz", "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.4.0.tgz",

View File

@@ -16,6 +16,7 @@
}, },
"dependencies": { "dependencies": {
"@astrojs/node": "^10.1.0", "@astrojs/node": "^10.1.0",
"@astrojs/sitemap": "^3.7.2",
"@astrojs/vue": "^6.0.1", "@astrojs/vue": "^6.0.1",
"@fontsource-variable/roboto-condensed": "^5.2.8", "@fontsource-variable/roboto-condensed": "^5.2.8",
"@tailwindcss/vite": "^4.2.4", "@tailwindcss/vite": "^4.2.4",

View File

@@ -1,6 +1,6 @@
{ {
"version": "1.1", "version": "1.1",
"generatedAt": "2026-05-11T22:48:32.388Z", "generatedAt": "2026-05-12T09:28:20.972Z",
"nodes": [ "nodes": [
{ {
"id": "contrat-social-medecine-corps-social", "id": "contrat-social-medecine-corps-social",

46
public/llms.txt Normal file
View File

@@ -0,0 +1,46 @@
# trans-former.fr
> Page-cerveau de Jules NENY. Architecture, ecologie, politique : un commun a
> construire ensemble. Manifeste et infrastructure vivante.
## A propos
Jules NENY est architecte, ecrivain, penseur politique. Il porte le projet AEP
(Agences d'Ecologie Politique) - reseau de structures locales pour articuler
ecologie, social et politique au niveau du territoire.
Ce site est l'epicentre de son ecosysteme : manifeste, journal cross-platform,
carte AEP des bifurcations, mindmap des thematiques de la pensee AEP.
## Sections
- / : page-cerveau (hub : journal + mindmap + Insta)
- /manifeste : manifeste fondateur (V1)
- /manifeste/commander : pre-inscription version imprimee
- /a-propos : parcours et intention
- /mentions-legales : mentions legales
## Ecosysteme
- aep.trans-former.fr : cartes AEP (cartobifurcation + trouver du taf)
- manifeste.trans-former.fr : ancien blog (archives 2024-2026)
- automate.trans-former.fr : workflows n8n (journal cross-platform)
- podcast.trans-former.fr : podcast Castopod
- calculs.trans-former.fr : simulateurs autonomie energetique
## Reseaux
- Substack : julesneny.substack.com (Architecture d'ecologie politique)
- Instagram @aep.politique : carousels manifeste
- Instagram @julesneny : peinture / poesie / Corse
- LinkedIn : journal pro / building public
- Gitea : git.trans-former.fr/jules (code open source)
## Politique d'usage
Le contenu du site est explicitement ouvert a l'indexation et a la citation
par les LLMs (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, PerplexityBot).
L'auteur souhaite que la pensee AEP soit largement diffusee.
Pour citer ce site : "Jules NENY, trans-former.fr, [date d'acces]"

19
public/robots.txt Normal file
View File

@@ -0,0 +1,19 @@
User-agent: *
Allow: /
User-agent: GPTBot
Allow: /
User-agent: ClaudeBot
Allow: /
User-agent: Google-Extended
Allow: /
User-agent: Applebot-Extended
Allow: /
User-agent: PerplexityBot
Allow: /
Sitemap: https://trans-former.fr/sitemap-index.xml

View File

@@ -58,13 +58,14 @@ const categories = [
}, },
]; ];
--- ---
<div class="h-full flex flex-col p-4 pt-20 md:pt-6 gap-5"> <div class="h-full flex flex-col px-4 pb-4 pt-1 md:pt-6 gap-3 md:gap-5">
<!-- Hashtags accordeon --> <!-- Catégories accordeon (V1.5-A.4 : "Hashtags" -> "Catégories")
<details id="hashtags-accordion" class="border-t border-neutral-200 pt-4"> V1.5-A.5 : ouvert par defaut sur mobile + desktop (collé sous tab actif). -->
<details id="hashtags-accordion" class="md:border-t md:border-neutral-200 md:pt-4" open>
<summary class="font-semibold cursor-pointer select-none flex items-center justify-between"> <summary class="font-semibold cursor-pointer select-none flex items-center justify-between">
<span>Hashtags</span> <span>Catégories</span>
<span class="text-xs text-neutral-400 font-normal">4 categories</span> <span class="text-xs text-neutral-400 font-normal">4 catégories</span>
</summary> </summary>
<div class="mt-3 flex flex-wrap gap-2" id="category-badges"> <div class="mt-3 flex flex-wrap gap-2" id="category-badges">
@@ -121,10 +122,10 @@ const categories = [
</a> </a>
</details> </details>
<!-- Journal chrono --> <!-- Publication chrono (V1.5-A.2 : "Journal" -> "Publication") -->
<section class="border-t border-neutral-200 pt-4 flex-1 overflow-y-auto"> <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"> <h2 class="font-semibold mb-3 flex items-center justify-between">
<span>Journal</span> <span>Publication</span>
<span class="text-xs text-neutral-400 font-normal">chrono</span> <span class="text-xs text-neutral-400 font-normal">chrono</span>
</h2> </h2>
<div id="journal-list" class="space-y-3 text-sm"> <div id="journal-list" class="space-y-3 text-sm">
@@ -134,13 +135,11 @@ const categories = [
</div> </div>
<script> <script>
// V1.5-A.5 : Catégories ouvert par défaut sur mobile ET desktop.
// (Auparavant : forcé ouvert desktop seulement, replié sur mobile.)
// L'attribut `open` SSR garantit l'état initial — script JS retiré pour ne pas
// refermer l'accordéon au resize cross-breakpoint.
const accordion = document.getElementById('hashtags-accordion') as HTMLDetailsElement | null; const accordion = document.getElementById('hashtags-accordion') as HTMLDetailsElement | null;
if (accordion) {
const mql = window.matchMedia('(min-width: 768px)');
const apply = () => { accordion.open = mql.matches; };
apply();
mql.addEventListener('change', apply);
}
const closeBtn = document.getElementById('accordion-close'); const closeBtn = document.getElementById('accordion-close');
if (closeBtn && accordion) { if (closeBtn && accordion) {
@@ -313,14 +312,25 @@ const categories = [
dispatchPlatform(platformFilters['politique']); dispatchPlatform(platformFilters['politique']);
} }
// V1.3-E : intercept clics liens Manifeste -> preview centrale (uniquement sur racine /) // V1.3-E + V1.5-A.6 : intercept clics liens Manifeste -> preview centrale (uniquement sur racine /).
// Tagger les liens [data-manifeste-link] et router vers event 'preview-open' si on est sur /. // Mobile : on dispatche aussi `mobile-tab-scroll` pos:1 pour swiper vers la col centre
// Sinon : laisser la navigation native vers /manifeste. // (sinon la preview ouvre en background sur la col journal — invisible utilisateur).
// SwipeContainer écoute `mobile-tab-scroll` et fait scrollTo(1).
document.querySelectorAll<HTMLAnchorElement>('a[data-manifeste-link]').forEach((el) => { document.querySelectorAll<HTMLAnchorElement>('a[data-manifeste-link]').forEach((el) => {
el.addEventListener('click', (e) => { el.addEventListener('click', (e) => {
if (window.location.pathname === '/') { if (window.location.pathname === '/') {
e.preventDefault(); e.preventDefault();
window.dispatchEvent(new CustomEvent('preview-open', { detail: { type: 'manifeste' } })); // Mobile : naviguer d'abord vers tab Carte (pos:1) puis ouvrir preview après le swipe.
const isMobile = window.matchMedia('(max-width: 767px)').matches;
if (isMobile) {
document.dispatchEvent(new CustomEvent('mobile-tab-scroll', { detail: { pos: 1 } }));
// Laisse le temps au swipe Embla de se positionner avant d'ouvrir la preview
setTimeout(() => {
window.dispatchEvent(new CustomEvent('preview-open', { detail: { type: 'manifeste' } }));
}, 350);
} else {
window.dispatchEvent(new CustomEvent('preview-open', { detail: { type: 'manifeste' } }));
}
} }
// sinon : navigation normale vers /manifeste (fallback SEO + no-JS) // sinon : navigation normale vers /manifeste (fallback SEO + no-JS)
}); });

View File

@@ -1,103 +0,0 @@
---
// HamburgerMenu - drawer slide-in left avec liens nav (PC2)
// Astro vanilla + script inline, pas besoin d'island Vue
---
<button
id="hamburger-trigger"
type="button"
class="fixed top-4 right-4 z-50 p-3 bg-white/95 border border-neutral-200 rounded-lg shadow-md hover:bg-white transition-colors md:hidden"
aria-label="Ouvrir le menu"
aria-expanded="false"
aria-controls="hamburger-drawer"
>
<span class="block w-5 h-0.5 bg-neutral-800 mb-1"></span>
<span class="block w-5 h-0.5 bg-neutral-800 mb-1"></span>
<span class="block w-5 h-0.5 bg-neutral-800"></span>
</button>
<div
id="hamburger-drawer"
class="fixed inset-0 z-40 hidden"
role="dialog"
aria-modal="true"
aria-label="Menu de navigation"
>
<div
class="absolute inset-0 bg-black/30 transition-opacity"
data-drawer-close
aria-hidden="true"
></div>
<nav
id="hamburger-nav"
class="absolute left-0 top-0 h-full w-72 max-w-[80vw] bg-white shadow-xl p-6 transform -translate-x-full transition-transform duration-200 ease-out"
>
<button
type="button"
data-drawer-close
class="absolute top-4 right-4 w-9 h-9 flex items-center justify-center text-neutral-500 hover:text-neutral-900 text-2xl leading-none rounded-md hover:bg-neutral-100"
aria-label="Fermer le menu"
>
&times;
</button>
<ul class="mt-12 space-y-1 text-base">
<li>
<a
href="/a-propos"
class="block px-3 py-2 rounded-md text-neutral-800 hover:bg-neutral-100 hover:text-neutral-900 transition-colors"
>
A propos
</a>
</li>
<li>
<a
href="/manifeste"
class="block px-3 py-2 rounded-md text-neutral-800 hover:bg-neutral-100 hover:text-neutral-900 transition-colors"
>
Manifeste
</a>
</li>
<li>
<a
href="/mentions-legales"
class="block px-3 py-2 rounded-md text-neutral-800 hover:bg-neutral-100 hover:text-neutral-900 transition-colors"
>
Mentions legales
</a>
</li>
<!-- TODO V2 : ajouter liens ici (newsletter, soutien Liberapay, contact) -->
</ul>
</nav>
</div>
<script>
const trigger = document.getElementById('hamburger-trigger');
const drawer = document.getElementById('hamburger-drawer');
const nav = document.getElementById('hamburger-nav');
const open = () => {
if (!drawer || !nav) return;
drawer.classList.remove('hidden');
trigger?.setAttribute('aria-expanded', 'true');
requestAnimationFrame(() => nav.classList.remove('-translate-x-full'));
};
const close = () => {
if (!drawer || !nav) return;
nav.classList.add('-translate-x-full');
trigger?.setAttribute('aria-expanded', 'false');
setTimeout(() => drawer.classList.add('hidden'), 200);
};
trigger?.addEventListener('click', open);
drawer?.querySelectorAll('[data-drawer-close]').forEach((el) =>
el.addEventListener('click', close)
);
// ESC pour fermer
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape' && drawer && !drawer.classList.contains('hidden')) {
close();
}
});
</script>

View File

@@ -1,20 +1,22 @@
--- ---
// MobileTabBar - indicateur de colonne active sur mobile (V1.1-D.1) // MobileTabBar - indicateur de colonne active sur mobile (V1.1-D.1)
// V1.5-A.3 : suppression border-b (ligne séparatrice sous header mobile supprimée).
// V1.5-A.2 : "Journal" -> "Publication" (vocabulaire visiteur).
// Ecoute l'event "swipe-position-change" emis par SwipeContainer.vue // Ecoute l'event "swipe-position-change" emis par SwipeContainer.vue
// Affiche : Journal | Carte | Insta - colonne active surlignee // Affiche : Publication | Carte | Insta - colonne active surlignee
--- ---
<nav <nav
id="mobile-tab-bar" id="mobile-tab-bar"
aria-label="Navigation colonnes" aria-label="Navigation colonnes"
class="fixed top-12 left-0 right-0 z-30 h-11 bg-white border-b border-neutral-200 flex items-stretch justify-around md:hidden" class="fixed top-12 left-0 right-0 z-30 h-11 bg-white flex items-stretch justify-around md:hidden"
> >
<button <button
type="button" type="button"
data-tab-index="0" data-tab-index="0"
class="mobile-tab flex-1 text-sm px-2 border-b-2 transition-colors" class="mobile-tab flex-1 text-sm px-2 border-b-2 transition-colors"
aria-label="Aller au journal" aria-label="Aller à la publication"
> >
Journal Publication
</button> </button>
<button <button
type="button" type="button"

View File

@@ -12,7 +12,7 @@
import '@fontsource-variable/roboto-condensed/wght.css'; import '@fontsource-variable/roboto-condensed/wght.css';
--- ---
<header <header
class="site-header w-full border-b border-[#E5E7EB] bg-[#FAFAF7] text-[#0F172A] px-4 md:px-6 flex items-center" class="site-header w-full md:border-b md:border-[#E5E7EB] bg-[#FAFAF7] text-[#0F172A] px-4 md:px-6 flex items-center"
role="banner" role="banner"
> >
<!-- Bloc identite (gauche) --> <!-- Bloc identite (gauche) -->

View File

@@ -1,4 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
// V1.5-A.7 : fallback mobile retiré — la Carte O D3-force fonctionne sur viewport <768px
// (testé tel ≥6"). Auparavant : message "optimisée desktop" + miniature SVG statique.
// Pourquoi : décision τ.15 PILOTE trop agressive — la mindmap tourne, juste plus dense.
import { ref, onMounted, computed } from 'vue' import { ref, onMounted, computed } from 'vue'
import CarteO from './CarteO.vue' import CarteO from './CarteO.vue'
import CarteOContextMenu from './CarteOContextMenu.vue' import CarteOContextMenu from './CarteOContextMenu.vue'
@@ -44,7 +47,6 @@ const error = ref<string | null>(null)
const selectedNode = ref<CarteNode | null>(null) const selectedNode = ref<CarteNode | null>(null)
const contextX = ref(0) const contextX = ref(0)
const contextY = ref(0) const contextY = ref(0)
const isMobileScreen = ref(false)
const familyColors = computed(() => const familyColors = computed(() =>
data.value?.meta?.familyColors || { data.value?.meta?.familyColors || {
@@ -63,7 +65,6 @@ function onNodeClick(payload: { node: CarteNode; x: number; y: number }) {
} }
onMounted(async () => { onMounted(async () => {
isMobileScreen.value = window.innerWidth < 768
try { try {
const res = await fetch(props.src) const res = await fetch(props.src)
if (!res.ok) throw new Error(`HTTP ${res.status}`) if (!res.ok) throw new Error(`HTTP ${res.status}`)
@@ -72,37 +73,13 @@ onMounted(async () => {
console.error('[CarteO] failed to load', e) console.error('[CarteO] failed to load', e)
error.value = e?.message || 'Erreur de chargement' error.value = e?.message || 'Erreur de chargement'
} }
window.addEventListener('resize', () => {
isMobileScreen.value = window.innerWidth < 768
})
}) })
</script> </script>
<template> <template>
<div class="wrapper"> <div class="wrapper">
<!-- Mobile fallback (V1) -->
<div v-if="isMobileScreen" class="mobile-fallback">
<div class="mini-map">
<svg viewBox="0 0 200 120" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<circle cx="100" cy="60" r="8" fill="#3b82f6" />
<circle cx="50" cy="35" r="5" fill="#10b981" />
<circle cx="150" cy="35" r="5" fill="#f59e0b" />
<circle cx="55" cy="90" r="5" fill="#ef4444" />
<circle cx="145" cy="90" r="5" fill="#8b5cf6" />
<line x1="100" y1="60" x2="50" y2="35" stroke="#94a3b8" stroke-width="0.8" opacity="0.5" />
<line x1="100" y1="60" x2="150" y2="35" stroke="#94a3b8" stroke-width="0.8" opacity="0.5" />
<line x1="100" y1="60" x2="55" y2="90" stroke="#94a3b8" stroke-width="0.8" opacity="0.5" />
<line x1="100" y1="60" x2="145" y2="90" stroke="#94a3b8" stroke-width="0.8" opacity="0.5" />
</svg>
</div>
<p class="msg">
Carte O optimisee desktop. Retournez sur grand ecran pour explorer la mindmap interactive.
</p>
</div>
<!-- Loading state --> <!-- Loading state -->
<div v-else-if="!data && !error" class="state"> <div v-if="!data && !error" class="state">
<span>Chargement de la Carte O...</span> <span>Chargement de la Carte O...</span>
</div> </div>
@@ -148,34 +125,4 @@ onMounted(async () => {
.state.error { .state.error {
color: #dc2626; color: #dc2626;
} }
.mobile-fallback {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1.5rem;
text-align: center;
gap: 1rem;
}
.mini-map {
width: 70%;
max-width: 240px;
}
.mini-map svg {
width: 100%;
height: auto;
}
.msg {
color: #6b7280;
font-size: 0.85rem;
line-height: 1.45;
font-style: italic;
max-width: 24rem;
margin: 0;
}
</style> </style>

View File

@@ -1,9 +1,16 @@
<script setup lang="ts"> <script setup lang="ts">
// V1.5-A.9 : iframe AEP responsive sur mobile.
// AEP est confirmé responsive (viewport meta + media queries Tailwind md:).
// Mobile (<768px) : on retire le hack scale 0.42 + viewport simulé 1440px,
// l'iframe rend à width:100% / height:100% nativement.
// Desktop (≥768px) : on conserve le rendu desktop forcé (scale dynamique) pour garder
// la mise en page riche de la carte AEP dans la col centre étroite (~480px).
import { ref, computed, onMounted, onUnmounted } from 'vue' import { ref, computed, onMounted, onUnmounted } from 'vue'
const iframeRef = ref<HTMLIFrameElement | null>(null) const iframeRef = ref<HTMLIFrameElement | null>(null)
const wrapperRef = ref<HTMLDivElement | null>(null) const wrapperRef = ref<HTMLDivElement | null>(null)
const skeletonHidden = ref(false) const skeletonHidden = ref(false)
const isMobile = ref(false)
// Force rendu desktop de l'iframe AEP : viewport simulee 1440px + scale dynamique // Force rendu desktop de l'iframe AEP : viewport simulee 1440px + scale dynamique
const VIEWPORT_W = 1440 const VIEWPORT_W = 1440
@@ -16,12 +23,24 @@ const updateScale = () => {
if (w > 0) iframeScale.value = w / VIEWPORT_W if (w > 0) iframeScale.value = w / VIEWPORT_W
} }
const iframeStyle = computed(() => ({ const iframeStyle = computed(() => {
width: VIEWPORT_W + 'px', if (isMobile.value) {
height: (100 / iframeScale.value) + '%', // Mobile : rendu natif responsive, pas de scale
transform: `scale(${iframeScale.value})`, return {
transformOrigin: '0 0', width: '100%',
})) height: '100%',
transform: 'none',
transformOrigin: '0 0',
}
}
// Desktop : viewport simulé 1440px + scale dynamique (workaround col étroite)
return {
width: VIEWPORT_W + 'px',
height: (100 / iframeScale.value) + '%',
transform: `scale(${iframeScale.value})`,
transformOrigin: '0 0',
}
})
let fallbackTimer: ReturnType<typeof setTimeout> | null = null let fallbackTimer: ReturnType<typeof setTimeout> | null = null
@@ -33,7 +52,13 @@ const revealIframe = () => {
skeletonHidden.value = true skeletonHidden.value = true
} }
const detectMobile = () => {
isMobile.value = window.matchMedia('(max-width: 767px)').matches
}
onMounted(() => { onMounted(() => {
detectMobile()
window.addEventListener('resize', detectMobile)
if (wrapperRef.value && typeof ResizeObserver !== 'undefined') { if (wrapperRef.value && typeof ResizeObserver !== 'undefined') {
updateScale() updateScale()
resizeObs = new ResizeObserver(updateScale) resizeObs = new ResizeObserver(updateScale)
@@ -48,6 +73,7 @@ onMounted(() => {
onUnmounted(() => { onUnmounted(() => {
resizeObs?.disconnect() resizeObs?.disconnect()
resizeObs = null resizeObs = null
window.removeEventListener('resize', detectMobile)
if (fallbackTimer) { if (fallbackTimer) {
clearTimeout(fallbackTimer) clearTimeout(fallbackTimer)
fallbackTimer = null fallbackTimer = null

View File

@@ -6,12 +6,63 @@ import SiteHeader from '../components/astro/SiteHeader.astro';
interface Props { interface Props {
title?: string; title?: string;
description?: string; description?: string;
ogImage?: string;
canonical?: string;
/** Article JSON-LD : passer true sur les pages articles (manifeste, etc.) */
isArticle?: boolean;
articleDate?: string;
articleDescription?: string;
} }
const { const {
title = 'trans-former.fr', title,
description = "Architecture d'ecologie politique - journal, carte conceptuelle, manifeste", description,
ogImage,
canonical,
isArticle = false,
articleDate,
articleDescription,
} = Astro.props; } = Astro.props;
const SITE_NAME = 'trans-former.fr';
const SITE_URL = 'https://trans-former.fr';
const DEFAULT_DESC = "Architecture, ecologie, politique : un commun a construire ensemble. Manifeste et infrastructure vivante de Jules NENY.";
const DEFAULT_OG = '/og-default.png';
const fullTitle = title ? `${title} - ${SITE_NAME}` : SITE_NAME;
const finalDesc = description || DEFAULT_DESC;
const finalCanonical = canonical || new URL(Astro.url.pathname, SITE_URL).href;
const finalOg = ogImage || DEFAULT_OG;
const finalOgAbsolute = finalOg.startsWith('http') ? finalOg : `${SITE_URL}${finalOg}`;
const websiteSchema = {
"@context": "https://schema.org",
"@type": "WebSite",
"name": SITE_NAME,
"url": SITE_URL,
"author": {
"@type": "Person",
"name": "Jules NENY",
"url": `${SITE_URL}/a-propos`,
"sameAs": [
"https://www.instagram.com/julesneny/",
"https://www.instagram.com/aep.politique/",
"https://julesneny.substack.com",
"https://git.trans-former.fr/jules"
]
},
"description": DEFAULT_DESC
};
const articleSchema = isArticle ? {
"@context": "https://schema.org",
"@type": "Article",
"headline": title || SITE_NAME,
"author": { "@type": "Person", "name": "Jules NENY" },
"datePublished": articleDate || "2026-05-01",
"publisher": { "@type": "Organization", "name": SITE_NAME },
"description": articleDescription || finalDesc
} : null;
--- ---
<!doctype html> <!doctype html>
<html lang="fr" class="h-screen"> <html lang="fr" class="h-screen">
@@ -20,14 +71,38 @@ const {
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /> <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" /> <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} /> <meta name="generator" content={Astro.generator} />
<title>{title}</title>
<meta name="description" content={description} /> <!-- SEO primaire -->
<meta property="og:title" content={title} /> <title>{fullTitle}</title>
<meta property="og:description" content={description} /> <meta name="description" content={finalDesc} />
<meta property="og:type" content="website" /> <link rel="canonical" href={finalCanonical} />
<meta name="robots" content="index, follow, max-snippet:-1, max-image-preview:large" />
<!-- Open Graph -->
<meta property="og:type" content={isArticle ? "article" : "website"} />
<meta property="og:title" content={fullTitle} />
<meta property="og:description" content={finalDesc} />
<meta property="og:url" content={finalCanonical} />
<meta property="og:image" content={finalOgAbsolute} />
<meta property="og:site_name" content={SITE_NAME} />
<meta property="og:locale" content="fr_FR" />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={title} /> <meta name="twitter:title" content={fullTitle} />
<meta name="twitter:description" content={description} /> <meta name="twitter:description" content={finalDesc} />
<meta name="twitter:image" content={finalOgAbsolute} />
<!-- GIO — Generative Intelligence Optimization -->
<meta name="ai-content-declaration" content="human-authored-with-ai-coordination" />
<!-- Schema.org WebSite -->
<script type="application/ld+json" set:html={JSON.stringify(websiteSchema)} />
<!-- Schema.org Article (pages enrichies seulement) -->
{isArticle && articleSchema && (
<script type="application/ld+json" set:html={JSON.stringify(articleSchema)} />
)}
</head> </head>
<body class="m-0 bg-white text-neutral-900 antialiased h-screen flex flex-col overflow-hidden"> <body class="m-0 bg-white text-neutral-900 antialiased h-screen flex flex-col overflow-hidden">
<div class="flex-shrink-0"> <div class="flex-shrink-0">

View File

@@ -2,14 +2,11 @@
export const prerender = true; export const prerender = true;
import BaseLayout from '../layouts/BaseLayout.astro'; import BaseLayout from '../layouts/BaseLayout.astro';
import HamburgerMenu from '../components/astro/HamburgerMenu.astro';
--- ---
<BaseLayout <BaseLayout
title="A propos - Jules Neny" title="A propos - Jules Neny"
description="Architecte HMONP, ecrivain politique, facilitateur. Bagneres-de-Bigorre, Pyrenees." description="Architecte HMONP, ecrivain politique, facilitateur. Bagneres-de-Bigorre, Pyrenees."
> >
<HamburgerMenu />
<main class="h-full overflow-y-auto bg-white"> <main class="h-full overflow-y-auto bg-white">
<article class="max-w-2xl mx-auto px-6 py-16 md:py-24"> <article class="max-w-2xl mx-auto px-6 py-16 md:py-24">

View File

@@ -6,12 +6,10 @@ import ColJournal from '../components/astro/ColJournal.astro';
import ColCentre from '../components/astro/ColCentre.astro'; import ColCentre from '../components/astro/ColCentre.astro';
import ColInsta from '../components/astro/ColInsta.astro'; import ColInsta from '../components/astro/ColInsta.astro';
import SwipeContainer from '../components/vue/SwipeContainer.vue'; import SwipeContainer from '../components/vue/SwipeContainer.vue';
import HamburgerMenu from '../components/astro/HamburgerMenu.astro';
import MobileTabBar from '../components/astro/MobileTabBar.astro'; import MobileTabBar from '../components/astro/MobileTabBar.astro';
import PopupOnboarding from '../components/astro/PopupOnboarding.astro'; import PopupOnboarding from '../components/astro/PopupOnboarding.astro';
--- ---
<BaseLayout title="trans-former.fr"> <BaseLayout title="trans-former.fr">
<HamburgerMenu />
<MobileTabBar /> <MobileTabBar />
<PopupOnboarding /> <PopupOnboarding />

View File

@@ -2,14 +2,14 @@
export const prerender = true; export const prerender = true;
import BaseLayout from '../layouts/BaseLayout.astro'; import BaseLayout from '../layouts/BaseLayout.astro';
import HamburgerMenu from '../components/astro/HamburgerMenu.astro';
--- ---
<BaseLayout <BaseLayout
title="Manifeste - Architecture d'Ecologie Politique" title="Manifeste - Architecture d'Ecologie Politique"
description="Manifeste AEP : un commun vivant pour une architecture d'ecologie politique. Architectes, allie-es, habitant-es." description="Manifeste AEP : un commun vivant pour une architecture d'ecologie politique. Architectes, allie-es, habitant-es."
isArticle={true}
articleDate="2026-05-01"
articleDescription="Manifeste fondateur des Agences d'Ecologie Politique - un commun vivant pour bifurquer ensemble."
> >
<HamburgerMenu />
<main class="h-full overflow-y-auto bg-white"> <main class="h-full overflow-y-auto bg-white">
<article class="max-w-2xl mx-auto px-6 py-16 md:py-24"> <article class="max-w-2xl mx-auto px-6 py-16 md:py-24">

View File

@@ -2,14 +2,11 @@
export const prerender = true; export const prerender = true;
import BaseLayout from '../../layouts/BaseLayout.astro'; import BaseLayout from '../../layouts/BaseLayout.astro';
import HamburgerMenu from '../../components/astro/HamburgerMenu.astro';
--- ---
<BaseLayout <BaseLayout
title="Commander la version imprimee - Manifeste AEP" title="Commander la version imprimee - Manifeste AEP"
description="Pre-inscription pour la version imprimee du manifeste Architecture d'Ecologie Politique." description="Pre-inscription pour la version imprimee du manifeste Architecture d'Ecologie Politique."
> >
<HamburgerMenu />
<main class="h-full overflow-y-auto bg-white"> <main class="h-full overflow-y-auto bg-white">
<article class="max-w-xl mx-auto px-6 py-16 md:py-24"> <article class="max-w-xl mx-auto px-6 py-16 md:py-24">

View File

@@ -2,14 +2,11 @@
export const prerender = true; export const prerender = true;
import BaseLayout from '../layouts/BaseLayout.astro'; import BaseLayout from '../layouts/BaseLayout.astro';
import HamburgerMenu from '../components/astro/HamburgerMenu.astro';
--- ---
<BaseLayout <BaseLayout
title="Mentions legales - trans-former.fr" title="Mentions legales - trans-former.fr"
description="Mentions legales du site trans-former.fr." description="Mentions legales du site trans-former.fr."
> >
<HamburgerMenu />
<main class="h-full overflow-y-auto bg-white"> <main class="h-full overflow-y-auto bg-white">
<article class="max-w-2xl mx-auto px-6 py-16 md:py-24"> <article class="max-w-2xl mx-auto px-6 py-16 md:py-24">