Files
quartier/maquette/style.css
T
Jules NényandClaude Opus 5.5 c6755ef4a7 V0 publique « Quelque part en 2035 » : la maquette du test axo devient la page du build
Retours de Jules du 30/09 (points 1 à 5, décision du 08/10) :
- harmonie de la planche sur toute la scène (palette relevée sur le sol, grain de papier procédural, traits des volumes) ;
- aucun arbre dans l'eau, plantes d'eau du recueil p. 19 et 21 ;
- arbres paramétriques : content/essences.md (recueil p. 10-11) pilote haies, vergers, forêt ; haies sur les limites
  de parcelles, trois côtés (pipeline/axo/09_haies_eau.py) ;
- 2035 sans voitures : vélos, vélos-cargos, attelage, moutons et chèvres, poules, canards, une voiture partagée ;
- navigation par chapitres ancrée sur une maison témoin, menu des quatre fils sur le modèle d'ORENO p. 6 ;
- bascule plan retirée.

Mise en public : Three.js et Barlow servis par le build (plus de CDN ni de Google Fonts), tout le texte dans content/
(fiches, essences, cycle de l'eau) lu et validé au build par scripts/contenu.ts. Lint de frontières rendu portable
(Windows). Shader des rubans corrigé pour Three r170. Groupe « aujourd'hui » caché au départ (défaut du 27/09).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 11:38:47 +02:00

134 lines
12 KiB
CSS

/* Une seule ambiance : le papier des planches TMIP. Couleurs des fils = cadres de la DA de la plateforme
(EAU bleu d'eau, ÉNERGIE ambre, JARDIN ocre olive ; QUARTIER provisoire, en attendant le quatrième cadre de la DA). */
:root {
--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;
--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);
color-scheme: light;
}
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; background: var(--papier); color: var(--encre);
font: 15px/1.45 Barlow, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, [tabindex]:focus-visible, a:focus-visible { outline: 2px solid var(--eau-encre); outline-offset: 2px; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#scene.tire { cursor: grabbing; }
/* le grain du papier, posé sur la scène (pas sur les panneaux) */
#grain { position: fixed; inset: 0; pointer-events: none; z-index: 1; mix-blend-mode: multiply; opacity: .55; background-size: 512px 512px; }
#repli { position: fixed; inset: 0; background: var(--papier) center / cover no-repeat; }
.sans-js { position: fixed; inset: auto 16px 16px; background: var(--papier-2); padding: 12px; border-radius: 12px; }
/* ---------- barre du haut ---------- */
.barre { position: fixed; z-index: 5; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 12px; right: 12px;
display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.barre > * { pointer-events: auto; }
.titre { background: rgba(255, 253, 246, .93); border: 1px solid var(--trait); border-radius: 12px; padding: 7px 12px; box-shadow: var(--ombre); }
.titre h1 { margin: 0; font: 600 20px/1.1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .01em; }
.titre p { margin: 1px 0 0; font-size: 12.5px; color: var(--encre-2); }
.commandes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.groupe { display: flex; background: rgba(255, 253, 246, .93); border: 1px solid var(--trait); border-radius: 12px; padding: 3px; box-shadow: var(--ombre); }
.groupe button { border: 0; background: transparent; border-radius: 9px; padding: 0 11px; min-height: 38px; min-width: 40px; font-weight: 500; font-size: 14px; }
.groupe button[aria-pressed="true"] { background: var(--encre); color: var(--papier-2); }
#b-menu { font: 600 14px/1 "Barlow Condensed", Barlow, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.groupe svg { width: 20px; height: 20px; display: block; margin: auto; }
@media (max-width: 560px) { .titre p { display: none; } .titre h1 { font-size: 18px; } .groupe button { padding: 0 9px; font-size: 13.5px; } }
/* ---------- fiches ---------- */
#fiches { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; background: var(--papier-2); border-top: 1px solid var(--trait);
border-radius: 16px 16px 0 0; box-shadow: 0 -8px 28px rgba(16, 42, 58, .12); padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 8px);
display: flex; flex-direction: column; gap: 8px; max-height: 52%; }
@media (min-width: 900px) { #fiches { left: 16px; right: auto; bottom: 16px; width: 440px; border: 1px solid var(--trait); border-radius: 16px; max-height: calc(100% - 110px); } }
.onglets { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: none; }
.onglets::-webkit-scrollbar { display: none; }
.onglets button { flex: none; display: flex; align-items: center; gap: 6px; border: 1px solid var(--trait); background: #fff; border-radius: 999px; padding: 5px 12px; min-height: 34px;
font: 600 13.5px/1 "Barlow Condensed", Barlow, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--c-encre, var(--encre)); }
.onglets button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--auj)); }
.onglets button[aria-current="true"] { background: var(--c-fond, var(--papier)); border-color: var(--c, var(--encre)); }
.fiche { display: grid; grid-template-columns: 56px 1fr; gap: 12px; overflow-y: auto; min-height: 0; transition: opacity .35s ease; }
.fiche.sort { opacity: 0; }
.fiche .icone { width: 56px; height: 56px; border-radius: 50%; display: block; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.fiche .icone svg, .fiche .icone img { width: 56px; height: 56px; display: block; border-radius: 50%; }
.couche { font: 600 12.5px/1.2 "Barlow Condensed", Barlow, sans-serif; text-transform: uppercase; letter-spacing: .07em; color: var(--c-encre, var(--encre-2)); }
.fiche h2 { margin: 2px 0 5px; font-size: 19px; line-height: 1.22; font-weight: 600; text-wrap: balance; }
.fiche p { margin: 0 0 8px; }
.chiffres { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 2px 0 6px; }
.chiffres div { font-variant-numeric: tabular-nums; }
.chiffres b { display: block; font-size: 21px; font-weight: 700; line-height: 1.1; color: var(--c-encre, var(--encre)); }
.chiffres small { display: block; font-size: 12.5px; line-height: 1.3; color: var(--encre-2); max-width: 24ch; }
.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; }
.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; }
.barre-temps { height: 2px; background: var(--trait); border-radius: 2px; overflow: hidden; flex: none; }
.barre-temps span { display: block; height: 100%; width: 0; background: var(--c, var(--encre)); }
.mentions { margin: 0; font-size: 11px; color: var(--encre-2); }
@media (max-width: 560px) { .mentions { display: none; } .fiche { grid-template-columns: 44px 1fr; gap: 10px; } .fiche .icone, .fiche .icone svg, .fiche .icone img { width: 44px; height: 44px; } .fiche h2 { font-size: 17.5px; } }
/* ---------- le menu : la maison au centre, les quatre fils aux coins (modèle ORENO p. 6) ---------- */
#menu { position: fixed; inset: 0; z-index: 15; display: grid; grid-template-rows: auto 1fr; pointer-events: none; }
#menu > * { pointer-events: auto; }
body.menu-ouvert #fiches { display: none; }
.menu-tete { justify-self: center; margin-top: calc(env(safe-area-inset-top, 0px) + 64px); max-width: 520px; background: rgba(255, 253, 246, .95); border: 1px solid var(--trait);
border-radius: 14px; padding: 10px 14px; box-shadow: var(--ombre); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.menu-tete h2 { margin: 0; font: 600 20px/1.15 "Barlow Condensed", Barlow, sans-serif; }
.menu-tete p { margin: 0; grid-column: 1; font-size: 13px; color: var(--encre-2); }
.menu-tete button { grid-column: 2; grid-row: 1 / span 2; align-self: center; border: 1px solid var(--trait); background: #fff; border-radius: 10px; min-height: 40px; padding: 0 12px; font-weight: 500; }
.cadres { position: relative; pointer-events: none; }
.cadre { position: absolute; width: min(330px, 30vw); background: var(--c-fond); border: 2px solid var(--c); border-radius: 14px; padding: 10px 12px; box-shadow: var(--ombre); pointer-events: auto; }
.cadre h3 { margin: 0 0 6px; font: 600 15px/1.1 "Barlow Condensed", Barlow, sans-serif; text-transform: uppercase; letter-spacing: .07em; color: var(--c-encre); display: flex; align-items: center; gap: 8px; }
.cadre h3 svg, .cadre h3 img { width: 30px; height: 30px; flex: none; border-radius: 50%; }
.cadre ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.cadre li button { width: 100%; text-align: left; border: 0; background: rgba(255,255,255,.7); border-radius: 8px; padding: 6px 8px; min-height: 34px; font-size: 13.5px; line-height: 1.25; display: flex; gap: 6px; align-items: center; }
.cadre li button:hover { background: #fff; }
.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%; }
@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; }
.cadres { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 12px calc(env(safe-area-inset-bottom, 0px) + 16px); align-content: start; }
.cadre { position: static; width: auto; }
}
@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); }
.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 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; }
.flux.actif { opacity: .95; animation: couler 1.1s linear infinite; }
@keyframes couler { to { stroke-dashoffset: -18; } }
.pe { cursor: pointer; }
.pe .halo { fill: var(--eau); opacity: 0; }
.pe .coeur { fill: #fff; stroke: var(--eau); stroke-width: 3; }
.pe text { font: 700 15px Barlow, sans-serif; fill: var(--eau-encre); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.pe.actif .coeur { fill: var(--eau); }
.pe.actif text { fill: #fff; }
.pe.actif .halo { animation: halo 1.6s ease-out infinite; }
@keyframes halo { 0% { opacity: .45; r: 16; } 100% { opacity: 0; r: 46; } }
#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; } }
#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; } }