feat(evenements): event.trans-former.fr — index, carrefour Ruetz, semaine codev, plantation, inscriptions (Y, commit A)

- Routage par hôte (app/router.options.ts) : sur event., seules les pages de
  pages/evenements/ existent, servies sans le préfixe ; copie sous
  aep.…/evenements/ avec la barre AEP, canonique event. et noindex.
- app.vue : en-tête, FilEchelle et NavTiroir masqués sur event. ; le conteneur
  y garde le défilement.
- /ruetz (carrefour), /ruetz/codev (frise SVG, compteur de places),
  /ruetz/foret (plan, syntropie en trois niveaux dépliables, gestes en SVG).
- POST /api/evenements/inscription (Zod partagé, honeypot, 3/IP/jour, 409
  complet, 503 sans table) et GET /api/evenements/places (cache 60 s) ;
  NocoDB inscriptions_ruetz, fixture hors dépôt en dev ; ntfy sans donnée
  personnelle hors prénom.
- nuxt.config.ts : une clé, inscriptionsRuetzTableId.
- Photos sans visage reconnaissable (n8 floutée dans le fichier), EXIF retirés ;
  le plan s'ouvre en grand ; boutons « Je m'inscris ↓ » masqués quand c'est complet.
- deploy/ruetz/README.md pour le checkpoint ; node scripts/test-y.mjs (42 cas).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011CM63J14oj62y6mz4sB43n
This commit is contained in:
Jules Neny
2026-10-21 08:35:06 +02:00
co-authored by Claude Opus 5.5
parent 1054172ec9
commit f0fe8eede3
26 changed files with 1868 additions and 5 deletions
+192
View File
@@ -0,0 +1,192 @@
<template>
<div class="evt">
<div class="evt__col">
<nav v-if="retour" class="evt-retour" aria-label="Retour">
<NuxtLink :to="retour.to">← {{ retour.label }}</NuxtLink>
</nav>
<main id="contenu">
<slot />
</main>
</div>
</div>
</template>
<script setup lang="ts">
defineProps<{ retour?: { to: string; label: string } }>()
</script>
<!--
Gabarit des pages d'événement (lot Y) : colonne de lecture de 640 px, plus d'air que l'app.
Styles non scopés, préfixe evt- : partagés par les pages et les composants evenements/.
Tokens du DS (tokens.css + theme/aep.css) ; safran (--accent) réservé à la plantation
et au bouton principal ; bleu nuit plein = --nav-primary-solid.
-->
<style>
.evt {
--evt-attenue: color-mix(in srgb, var(--text) 78%, transparent);
--evt-nuit: var(--nav-primary-solid);
--evt-sur-nuit: var(--nav-text-on-primary);
min-height: 100%;
background: var(--bg);
color: var(--text);
font-family: var(--font-body);
line-height: 1.6;
}
.evt__col {
max-width: 640px;
margin: 0 auto;
padding: var(--space-lg) var(--space-md) var(--space-3xl);
}
@media (min-width: 768px) {
.evt__col { padding: var(--space-2xl) var(--space-lg) var(--space-3xl); }
}
.evt a { color: var(--link); text-underline-offset: 3px; }
.evt a:hover { color: var(--link-hover); }
.evt :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 2px; }
.evt-retour { margin-bottom: var(--space-lg); font-size: var(--fs-sm); }
.evt-retour a { color: var(--evt-attenue); text-decoration: none; }
.evt-retour a:hover { color: var(--text); text-decoration: underline; }
/* ── En-tête ── */
.evt-tete { margin-bottom: var(--space-xl); }
.evt-h1 {
font-size: clamp(1.85rem, 6.5vw, 2.6rem);
line-height: 1.15;
letter-spacing: -0.015em;
font-weight: var(--fw-bold);
margin: 0 0 var(--space-md);
text-wrap: balance;
}
.evt-sous {
font-size: var(--fs-lg);
font-weight: var(--fw-semibold);
margin: 0 0 var(--space-2xs);
}
.evt-lieu { color: var(--evt-attenue); margin: 0; }
.evt-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-sm) var(--space-md);
margin-top: var(--space-lg);
}
/* ── Sections ── */
.evt-section { margin-top: var(--space-3xl); }
.evt-h2 {
font-size: var(--fs-xl);
line-height: 1.25;
font-weight: var(--fw-bold);
margin: 0 0 var(--space-md);
text-wrap: balance;
}
.evt-h3 { font-size: var(--fs-base); font-weight: var(--fw-bold); margin: 0 0 var(--space-xs); }
.evt p { margin: 0 0 var(--space-md); }
.evt-note { font-size: var(--fs-sm); color: var(--evt-attenue); }
.evt-citation-source { font-size: var(--fs-sm); color: var(--evt-attenue); margin-top: calc(-1 * var(--space-xs)); }
/* ── Boutons ── */
.evt-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-xs);
min-height: 48px;
padding: 0 var(--space-lg);
border: 0;
border-radius: var(--radius-md);
background: var(--accent);
color: var(--on-accent);
font: inherit;
font-weight: var(--fw-bold);
text-decoration: none;
cursor: pointer;
}
.evt a.evt-btn { color: var(--on-accent); }
.evt-btn:hover { filter: brightness(0.96); }
.evt-btn[disabled] { opacity: 0.6; cursor: progress; }
/* ── Cartes (pratique, venir) ── */
.evt-cartes { display: grid; gap: var(--space-sm); grid-template-columns: 1fr; }
@media (min-width: 560px) { .evt-cartes--2 { grid-template-columns: 1fr 1fr; } }
.evt-carte {
padding: var(--space-md) var(--space-md) var(--space-sm);
border-radius: var(--radius-lg);
background: var(--surface);
border: 1px solid var(--border);
}
.evt-carte p:last-child { margin-bottom: var(--space-xs); }
/* ── Figures ── */
.evt-figure { margin: var(--space-lg) 0; }
.evt-figure img, .evt-figure svg { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.evt-figure figcaption { margin-top: var(--space-xs); font-size: var(--fs-sm); color: var(--evt-attenue); }
.evt-pleine { margin-left: calc(-1 * var(--space-md)); margin-right: calc(-1 * var(--space-md)); }
.evt-pleine img { border-radius: 0; }
.evt-pleine figcaption { padding: 0 var(--space-md); }
@media (min-width: 672px) {
.evt-pleine { margin-left: 0; margin-right: 0; }
.evt-pleine img { border-radius: var(--radius-md); }
.evt-pleine figcaption { padding: 0; }
}
/* ── Dépliables ── */
.evt-details {
margin-top: var(--space-md);
border-radius: var(--radius-lg);
background: var(--surface);
border: 1px solid var(--border);
}
.evt-details > summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-sm);
min-height: 52px;
padding: var(--space-sm) var(--space-md);
font-weight: var(--fw-bold);
cursor: pointer;
list-style: none;
}
.evt-details > summary::-webkit-details-marker { display: none; }
.evt-details > summary::after {
content: '+';
flex: none;
width: 28px;
height: 28px;
border-radius: var(--radius-full);
background: var(--bg-alt);
display: grid;
place-items: center;
font-size: 1.1rem;
line-height: 1;
}
.evt-details[open] > summary::after { content: '−'; }
.evt-details__corps { padding: 0 var(--space-md) var(--space-md); }
/* ── Listes ── */
.evt-liste { margin: 0 0 var(--space-md); padding-left: 1.2em; }
.evt-liste li { margin-bottom: var(--space-xs); }
.evt-deroule { margin: 0; padding: 0; list-style: none; border-left: 3px solid var(--accent); }
.evt-deroule li { padding: 0 0 var(--space-md) var(--space-md); }
.evt-deroule strong { display: block; }
/* ── Encadré ── */
.evt-encadre {
padding: var(--space-md);
border-radius: var(--radius-lg);
background: var(--bg-alt);
}
.evt-encadre p:last-child { margin-bottom: 0; }
/* ── Pied ── */
.evt-pied {
margin-top: var(--space-3xl);
padding-top: var(--space-lg);
border-top: 1px solid var(--border);
font-size: var(--fs-sm);
}
.evt-pied p { margin-bottom: var(--space-xs); }
</style>