V0.1 : le fil des logos, les documents d'origine, le hors-champ en trois systèmes
Retour de Jules sur la version 4 (08/10) : - « Chaleur » devient « Énergie » (chapitre, couleurs, menu, scène). - Bulles du quartier en 2030 : le rond seul, sans la pointe (07_bulles.py ajuste le cercle par la plus grande distance au fond et redessine l'anneau). - Les points de progression deviennent le fil des logos de la planche 4 du concours Habiter Demain (10_logos.py) : de la captation au résultat, cliquables. - Chaque fiche ouvre son document d'origine dans le mur de son chapitre (mur.js, content/planches.md, 11_documents.py) : planches 1 à 8 entières, dessins du recueil seulement ; version haute définition chargée au zoom. - Le cycle de l'eau se joue sur la planche 6 entière, avec son texte. - Le hors-champ suit la planche 2 : systèmes hydrique, agraire, énergétique, chacun dans la couleur de son fil, trois fiches reliées à l'eau, au vivant, à l'énergie. - Glisser-zoomer commun (plateau.js) ; contenu vérifié au build (documents, zones). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5b49b8cce2
commit
fa5b242f10
+45
-14
@@ -4,7 +4,7 @@
|
||||
--papier: #efeee2; --papier-2: #fffdf6; --encre: #102a3a; --encre-2: #3f5563; --trait: #ddd8c4;
|
||||
--eau: #3a74a8; --eau-encre: #1d5886; --eau-fond: #e1ebf5;
|
||||
--vivant: #8f7b22; --vivant-encre: #62560f; --vivant-fond: #eeead0;
|
||||
--chaleur: #c96d0c; --chaleur-encre: #8f4506; --chaleur-fond: #fde8c8;
|
||||
--energie: #c96d0c; --energie-encre: #8f4506; --energie-fond: #fde8c8;
|
||||
--quartier: #8a5a7a; --quartier-encre: #5e3a54; --quartier-fond: #f1e6ee;
|
||||
--auj: #6b6458; --auj-encre: #4a443b; --auj-fond: #ece8de;
|
||||
--ombre: 0 10px 30px rgba(16, 42, 58, .14);
|
||||
@@ -63,10 +63,23 @@ button:focus-visible, [tabindex]:focus-visible, a:focus-visible { outline: 2px s
|
||||
.source { font-size: 11.5px; color: var(--encre-2); }
|
||||
.action { margin-top: 8px; border: 0; background: var(--c-encre, var(--eau-encre)); color: #fff; font-weight: 600; border-radius: 10px; padding: 10px 14px; min-height: 42px; }
|
||||
.pied { display: flex; align-items: center; gap: 8px; flex: none; }
|
||||
.points { flex: 1; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
|
||||
.points b { width: 7px; height: 7px; border-radius: 50%; background: var(--trait); }
|
||||
.points b.vu { background: var(--c, var(--encre-2)); opacity: .45; }
|
||||
.points b.ici { background: var(--c, var(--encre)); width: 18px; border-radius: 4px; opacity: 1; }
|
||||
/* le fil : les logos du chapitre, de la captation au résultat (planche 4 du concours), reliés en pointillé */
|
||||
.fil { display: flex; align-items: center; flex: none; min-height: 56px; overflow-x: auto; scrollbar-width: none; padding: 6px 6px; }
|
||||
.fil::-webkit-scrollbar { display: none; }
|
||||
.fil:empty { display: none; }
|
||||
.fil i { flex: 1 1 6px; min-width: 6px; max-width: 26px; height: 0; border-top: 2px dotted var(--c, var(--trait)); opacity: .55; }
|
||||
.maillon { flex: none; border: 0; padding: 0; background: none; border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; transition: transform .25s, opacity .25s, filter .25s; }
|
||||
.maillon img, .maillon svg { width: 100%; height: 100%; display: block; border-radius: 50%; }
|
||||
.maillon:not(.vu):not(.ici) { opacity: .5; filter: saturate(.5); }
|
||||
.maillon.ici { width: 42px; height: 42px; box-shadow: 0 0 0 3px var(--c-fond, #fff), 0 0 0 5px var(--c, var(--encre)); }
|
||||
.maillon:hover { opacity: 1; filter: none; transform: scale(1.08); }
|
||||
.pied .compteur { flex: 1; text-align: left; }
|
||||
.document { margin-top: 8px; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--trait); background: #fff; border-radius: 10px; padding: 6px 10px 6px 6px; min-height: 52px; }
|
||||
.document img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; border: 1px solid var(--trait); }
|
||||
.document b { display: block; font-size: 14px; color: var(--c-encre, var(--encre)); }
|
||||
.document b::after { content: " ↗"; }
|
||||
.document small { display: block; font-size: 12px; line-height: 1.3; color: var(--encre-2); }
|
||||
.document:hover { border-color: var(--c, var(--encre)); }
|
||||
.pied button { border: 1px solid var(--trait); background: #fff; border-radius: 10px; width: 40px; height: 40px; display: grid; place-items: center; }
|
||||
.pied svg { width: 18px; height: 18px; }
|
||||
.compteur { font-size: 12.5px; color: var(--encre-2); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
|
||||
@@ -94,7 +107,8 @@ body.menu-ouvert #fiches { display: none; }
|
||||
.cadre li button .n { font: 600 12px/1 "Barlow Condensed", Barlow, sans-serif; color: var(--c-encre); min-width: 14px; }
|
||||
.cadre li button .x { margin-left: auto; display: flex; gap: 3px; }
|
||||
.cadre li button .x i { width: 8px; height: 8px; border-radius: 50%; }
|
||||
.cadre.quartier { left: 2%; top: 4%; } .cadre.chaleur { right: 2%; top: 4%; } .cadre.eau { left: 2%; bottom: 4%; } .cadre.vivant { right: 2%; bottom: 4%; }
|
||||
.vers-planche { margin-top: 8px; width: 100%; border: 0; border-radius: 9px; background: var(--c-encre); color: #fff; font-weight: 600; font-size: 13.5px; padding: 8px 10px; min-height: 38px; text-align: left; }
|
||||
.cadre.quartier { left: 2%; top: 4%; } .cadre.energie { right: 2%; top: 4%; } .cadre.eau { left: 2%; bottom: 4%; } .cadre.vivant { right: 2%; bottom: 4%; }
|
||||
@media (max-width: 900px) {
|
||||
#menu { background: rgba(239, 238, 226, .9); overflow-y: auto; }
|
||||
.menu-tete { margin: calc(env(safe-area-inset-top, 0px) + 10px) 12px 0; }
|
||||
@@ -103,14 +117,16 @@ body.menu-ouvert #fiches { display: none; }
|
||||
}
|
||||
@media (max-width: 560px) { .cadres { grid-template-columns: 1fr; } }
|
||||
|
||||
/* ---------- le cycle de l'eau (planche du concours) ---------- */
|
||||
#cycle { position: fixed; inset: 0; z-index: 20; background: var(--papier); display: grid; grid-template-rows: auto 1fr auto; }
|
||||
#cycle header { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 8px; }
|
||||
#cycle header button { border: 1px solid var(--trait); background: #fff; border-radius: 10px; min-height: 40px; padding: 0 12px; font-weight: 500; }
|
||||
#cycle header h2 { margin: 0; font: 600 20px/1.1 "Barlow Condensed", Barlow, sans-serif; }
|
||||
#cycle header p { margin: 0; font-size: 12.5px; color: var(--encre-2); }
|
||||
/* ---------- le cycle de l'eau (planche 6 du concours) et les murs de documents ---------- */
|
||||
#cycle, #mur { position: fixed; inset: 0; z-index: 20; background: var(--papier); display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); }
|
||||
#cycle header, #mur header { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 8px; min-width: 0; }
|
||||
#cycle header > div, #mur header > div { min-width: 0; }
|
||||
#cycle header button, #mur header button { border: 1px solid var(--trait); background: #fff; border-radius: 10px; min-height: 40px; padding: 0 12px; font-weight: 500; flex: none; }
|
||||
#cycle header h2, #mur header h2 { margin: 0; font: 600 20px/1.1 "Barlow Condensed", Barlow, sans-serif; }
|
||||
#mur header h2 { color: var(--c-encre, var(--encre)); }
|
||||
#cycle header p, #mur header p { margin: 0; font-size: 12.5px; color: var(--encre-2); }
|
||||
.vue-planche { position: relative; overflow: hidden; touch-action: none; cursor: grab; }
|
||||
.plateau { position: absolute; left: 0; top: 0; width: 1615px; height: 860px; transform-origin: 0 0; will-change: transform; }
|
||||
.plateau { position: absolute; left: 0; top: 0; transform-origin: 0 0; } /* pas de will-change : Chrome figerait la texture au premier zoom, floue une fois agrandie */
|
||||
.plateau img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
|
||||
.plateau svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
|
||||
.flux { fill: none; stroke: var(--eau); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 2 16; opacity: .25; transition: opacity .5s; }
|
||||
@@ -127,7 +143,22 @@ body.menu-ouvert #fiches { display: none; }
|
||||
#cycle .bas { background: var(--papier-2); border-top: 1px solid var(--trait); padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 10px); display: flex; flex-direction: column; gap: 8px; }
|
||||
#cycle .bas .barre-temps { flex: 1; }
|
||||
#temps-eau { background: var(--eau); }
|
||||
@media (min-width: 900px) { #cycle .bas { position: absolute; left: 16px; bottom: 16px; width: 440px; border: 1px solid var(--trait); border-radius: 16px; box-shadow: var(--ombre); } #cycle { grid-template-rows: auto 1fr; } }
|
||||
@media (min-width: 900px) { #cycle .bas, #mur .bas { position: absolute; left: 16px; bottom: 16px; width: 440px; border: 1px solid var(--trait); border-radius: 16px; box-shadow: var(--ombre); } #cycle, #mur { grid-template-rows: auto 1fr; } }
|
||||
/* le mur : les pièces posées comme sur une table */
|
||||
.plateau.mur .piece { position: absolute; margin: 0; }
|
||||
.plateau.mur .piece img { display: block; width: 100%; background: #fff; box-shadow: 0 6px 22px rgba(16, 42, 58, .16); border-radius: 4px; user-select: none; -webkit-user-drag: none; pointer-events: none; }
|
||||
.plateau.mur .piece.active img { outline: 6px solid var(--c, var(--encre)); outline-offset: 6px; }
|
||||
.plateau.mur figcaption { margin-top: 14px; line-height: 1.25; color: var(--encre); max-width: 60ch; }
|
||||
.plateau.mur figcaption b { display: block; font-weight: 600; }
|
||||
.plateau.mur figcaption span { display: block; color: var(--encre-2); font-size: .8em; }
|
||||
#mur .bas { background: var(--papier-2); border-top: 1px solid var(--trait); padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 10px); display: flex; flex-direction: column; gap: 8px; }
|
||||
.piece-active b { display: block; font-size: 15px; line-height: 1.25; color: var(--c-encre, var(--encre)); }
|
||||
.piece-active small { display: block; font-size: 12px; color: var(--encre-2); }
|
||||
.vignettes { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; align-items: center; }
|
||||
.vignettes button { flex: none; border: 2px solid transparent; background: #fff; border-radius: 8px; padding: 0; width: 64px; height: 46px; overflow: hidden; }
|
||||
.vignettes button img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
||||
.vignettes button[aria-current="true"] { border-color: var(--c, var(--encre)); }
|
||||
.vignettes .cycle { width: auto; height: 46px; padding: 0 12px; border: 0; background: var(--eau-encre); color: #fff; font-weight: 600; font-size: 13.5px; }
|
||||
#cycle .etape h3 { margin: 2px 0 5px; font-size: 18px; font-weight: 600; }
|
||||
#cycle .etape p { margin: 0 0 6px; }
|
||||
@media (prefers-reduced-motion: reduce) { .flux.actif, .pe.actif .halo { animation: none; } .pe.actif .halo { opacity: .25; } .fiche { transition: none; } }
|
||||
|
||||
Reference in New Issue
Block a user