Files
nav-carte/components/evenements/Page.vue
T
Jules NenyandClaude Opus 5.5 af0796f5b6 feat(evenements): retours de Jules du 22/10 au soir, le tableau, les photos, le pastel (B26, commit I)
Codev : le tableau de Ruetz (Rémi et Jules, 2023) en tête, panorama entier
au-delà de la colonne à partir de 900 px, recadré 4:3 sur la maison au
téléphone, aperçu de partage 1200 × 630 ; quatre photos FERTI 2024 par paires
(atelier et table après l'intention, repas et danse après la frise) ;
« Le sens de la semaine » ouvert par défaut, le cercle animé d'aep
(EvenementsCercle) à la place du schéma « ce qui sort / ce qui revient » ;
deux déjà-inscrit·es (Jules, Estelle) ; 15 € par jour, lu dans les données.
Forêt : le pastel d'arbre de Jules (photo du catalogue, redressée, papier
ramené au blanc, multiply sur la crème) à côté de la phrase-accroche.
Les deux : le tableau de covoiturage en bouton bleu nuit, picto voiture.
Photos par paires : classe partagée .evt-photos (reprise de la forêt).
Tests : 86 cas, les compteurs suivent dejaInscrits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PfxSWhRoYNsTevCYLkCTJp
2026-10-22 23:39:43 +02:00

350 lines
12 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<div class="evt" :class="ton ? `evt--${ton}` : null">
<!-- Le fond : des courbes de niveau, en écho aux lignes du plan de Sacha qui suivent le relief.
Seulement derrière l'en-tête, estompées avant le texte courant. -->
<div class="evt-fond" aria-hidden="true" />
<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 }
/** 'foret' : la sauge remplace l'ocre (pictos, récap, courbes). */
ton?: 'foret'
}>()
// Une seule police ajoutée, pour les titres : précharger évite le saut de l'en-tête (font-display: swap).
useHead({
link: [{ rel: 'preload', href: '/medias/evenements/polices/fraunces-600-latin.woff2', as: 'font', type: 'font/woff2', crossorigin: '' }],
})
</script>
<!--
Gabarit des pages d'événement (lot Y, passe design B25) : colonne de lecture de 640 px.
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. Du deck e-codev (frontend-slides) :
Fraunces pour les titres, l'ocre et la sauge.
-->
<style>
/* Fraunces (Undercase Type, SIL OFL 1.1), graisse 600, axe optique 9-144, sous-ensemble latin : 35 Ko */
@font-face {
font-family: 'Fraunces';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('/medias/evenements/polices/fraunces-600-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.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);
/* Deux teintes du deck e-codev : ocre = ce qui sort, les petits libellés ; sauge = ce qui revient, le vivant */
--evt-ocre: #9a5f12;
--evt-sauge: #3f6b4e;
--evt-teinte: var(--evt-ocre);
--evt-papier: color-mix(in srgb, var(--surface) 60%, var(--bg));
--evt-courbes: color-mix(in srgb, var(--text) 9%, transparent);
--evt-titre: 'Fraunces', Georgia, 'Times New Roman', serif;
position: relative;
isolation: isolate;
min-height: 100%;
background: var(--bg);
color: var(--text);
font-family: var(--font-body);
line-height: 1.6;
}
.evt--foret { --evt-teinte: var(--evt-sauge); --evt-courbes: color-mix(in srgb, var(--evt-sauge) 15%, transparent); }
.dark .evt { --evt-ocre: #e3a95c; --evt-sauge: #8fc09e; }
.evt-fond {
position: absolute;
inset: 0 0 auto;
height: 480px;
z-index: -1;
pointer-events: none;
background: var(--evt-courbes);
-webkit-mask: url('/medias/evenements/courbes-niveau.svg') top center / 1600px 480px repeat-x;
mask: url('/medias/evenements/courbes-niveau.svg') top center / 1600px 480px repeat-x;
}
/* Peint le fond par-dessus les courbes, de plus en plus : elles s'estompent avant le texte courant */
.evt-fond::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(to bottom, transparent 30%, var(--bg) 92%);
}
.evt__col {
max-width: 640px;
margin: 0 auto;
padding: var(--space-md) var(--space-md) var(--space-3xl);
}
@media (min-width: 768px) {
.evt__col { padding: var(--space-xl) var(--space-lg) var(--space-3xl); }
}
/* Le preflight Tailwind retire le soulignement : un lien des pages d'événement se voit lien */
.evt a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.evt a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
/* Anneau d'encre : le safran du DS ne fait que 1,7:1 sur la crème */
.evt :focus-visible { outline: 2.5px solid var(--text); outline-offset: 3px; border-radius: 3px; }
.evt-retour { margin-bottom: var(--space-sm); }
.evt-retour a {
display: inline-flex;
align-items: center;
min-height: 44px;
font-size: 0.8rem;
font-weight: var(--fw-bold);
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--evt-ocre);
text-decoration: none;
}
.evt-retour a:hover { color: var(--text); text-decoration: underline; }
/* ── Titres : Fraunces, le reste en police système ── */
.evt-h1, .evt-h2, .evt-h3 { font-family: var(--evt-titre); font-weight: 600; font-optical-sizing: auto; }
.evt-tete { margin: var(--space-md) 0 var(--space-xl); }
.evt-h1 {
font-size: clamp(2rem, 7.4vw, 3.1rem);
line-height: 1.06;
letter-spacing: -0.02em;
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-sr {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
/* ── Récap pratique en tête : dates, lieu, trajet, repas ── */
.evt-recap { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-xs); }
.evt-recap li { display: flex; align-items: flex-start; gap: var(--space-sm); line-height: 1.45; }
.evt-recap .evt-icone { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--evt-teinte); }
.evt-recap .evt-lieu-lien { padding: 2px 0; margin: -2px 0; }
.evt-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-md) var(--space-lg);
margin-top: var(--space-lg);
}
/* ── Sections ── */
.evt-section { margin-top: clamp(3rem, 10vw, 4.5rem); }
.evt-h2 {
font-size: clamp(1.55rem, 5.4vw, 2rem);
line-height: 1.15;
letter-spacing: -0.012em;
margin: 0 0 var(--space-md);
text-wrap: balance;
}
.evt-h3 { font-size: 1.15rem; line-height: 1.25; 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;
box-shadow: 0 1px 0 rgb(26 34 56 / 0.18), 0 2px 6px rgb(26 34 56 / 0.08);
transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.evt a.evt-btn { color: var(--on-accent); text-decoration: none; }
.evt-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 0 rgb(26 34 56 / 0.18), 0 6px 14px rgb(26 34 56 / 0.12); }
.evt-btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
/* Second bouton (le tableau de covoiturage, B26) : bleu nuit plein ; le safran reste à l'inscription */
.evt a.evt-btn--nuit { background: var(--evt-nuit); color: var(--evt-sur-nuit); }
.evt a.evt-btn--nuit:hover { color: var(--evt-sur-nuit); }
.evt-btn .evt-icone { width: 22px; height: 22px; flex: none; }
/* Lien vers la forêt : safran (réservé à la plantation), en teinte pour ne pas doubler le bouton principal */
.evt a.evt-lien-foret {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
min-height: 44px;
padding: 0 var(--space-md) 0 var(--space-sm);
border: 1.5px solid var(--accent);
border-radius: var(--radius-full);
background: color-mix(in srgb, var(--accent) 28%, var(--surface));
color: var(--text);
font-weight: var(--fw-bold);
text-decoration: none;
white-space: nowrap;
}
.evt a.evt-lien-foret:hover { background: var(--accent); color: var(--on-accent); }
.evt-lien-foret .evt-icone { width: 20px; height: 20px; }
/* ── Cartes (pratique, venir) : papier chaud, picto dans un cadre teinté ── */
.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--large { grid-column: 1 / -1; }
}
.evt-carte {
padding: var(--space-md);
border-radius: var(--radius-lg);
background: var(--evt-papier);
border: 1px solid var(--border);
}
.evt-carte p:last-child { margin-bottom: 0; }
.evt-carte__tete { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.evt-carte__tete .evt-h3 { margin: 0; }
.evt-picto {
flex: none;
display: grid;
place-items: center;
width: 44px;
height: 44px;
border-radius: 12px;
background: color-mix(in srgb, var(--evt-teinte) 13%, var(--surface));
color: var(--evt-teinte);
}
/* ── Figures et photos (cadrées, légendées, comme dans le deck) ── */
.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-photo img { border: 1px solid var(--border); }
.evt-photo figcaption { font-style: italic; }
.evt-pleine { margin-left: calc(-1 * var(--space-md)); margin-right: calc(-1 * var(--space-md)); }
.evt-pleine img { border-radius: 0; border-left: 0; border-right: 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); border: 1px solid var(--border); }
.evt-pleine figcaption { padding: 0; }
}
/* Photos par paires, 4:3, une légende pour les deux (forêt depuis B24, codev depuis B26) */
.evt-photos { display: grid; gap: var(--space-sm); grid-template-columns: 1fr 1fr; margin-top: var(--space-lg); }
.evt-photos .evt-figure { margin: 0; }
.evt-photos img { aspect-ratio: 4 / 3; object-fit: cover; }
.evt p.evt-photos-legende { margin-top: var(--space-xs); }
/* ── Dépliables ── */
.evt-details {
margin-top: var(--space-md);
border-radius: var(--radius-lg);
background: var(--evt-papier);
border: 1px solid var(--border);
}
.evt-details > summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-sm);
min-height: 56px;
padding: var(--space-sm) var(--space-md);
font-family: var(--evt-titre);
font-weight: 600;
font-size: 1.12rem;
cursor: pointer;
list-style: none;
}
.evt-details > summary::-webkit-details-marker { display: none; }
.evt-details > summary::after {
content: '+';
flex: none;
width: 30px;
height: 30px;
border-radius: var(--radius-full);
background: color-mix(in srgb, var(--evt-teinte) 13%, var(--surface));
color: var(--evt-teinte);
display: grid;
place-items: center;
font-family: var(--font-body);
font-size: 1.15rem;
line-height: 1;
}
.evt-details[open] > summary::after { content: '−'; }
.evt-details > summary:hover::after { background: color-mix(in srgb, var(--evt-teinte) 24%, var(--surface)); }
.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); }
/* Le déroulé : des points safran reliés par un fil (plus de bordure épaisse) */
.evt-deroule { margin: 0; padding: 0; list-style: none; }
.evt-deroule li { position: relative; padding: 0 0 var(--space-lg) var(--space-xl); }
.evt-deroule li::before {
content: '';
position: absolute;
left: 3px;
top: 0.4em;
width: 13px;
height: 13px;
border-radius: var(--radius-full);
background: var(--accent);
box-shadow: 0 0 0 3px var(--bg);
}
.evt-deroule li::after {
content: '';
position: absolute;
left: 9px;
top: 1.5em;
bottom: 0.1em;
width: 1px;
background: var(--border-strong);
}
.evt-deroule li:last-child { padding-bottom: 0; }
.evt-deroule li:last-child::after { display: none; }
.evt-deroule strong { display: block; font-family: var(--evt-titre); font-weight: 600; font-size: 1.1rem; margin-bottom: 2px; }
/* ── 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); }
@media (prefers-reduced-motion: reduce) {
.evt-btn, .evt-btn:hover { transition: none; transform: none; }
}
</style>