Nav téléphone : point de reprise du 03/11 (travail du 31/10, non relu)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PWGVmzHkRQiiivdZYKzLAP
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
f8ec86469f
commit
a003cfe6fa
+72
-52
@@ -25,26 +25,79 @@ body.fond #scene { cursor: default; touch-action: auto; pointer-events: none; }
|
||||
#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); }
|
||||
/* ---------- en haut : le sticky S · M · XL, l'époque sous lui (au quartier seulement), le titre au bureau ---------- */
|
||||
/* LOT Q-nav-telephone (31/10/2026) : la barre du haut et le menu des quatre fils sont retirés ; trois lettres, trois points. */
|
||||
.titre { position: fixed; z-index: 5; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 16px; max-width: calc(50% - 150px);
|
||||
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; } }
|
||||
/* au téléphone le titre est dans la barre du bandeau ; le h1 reste lisible par un lecteur d'écran */
|
||||
@media (max-width: 899.98px) { .titre { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; } }
|
||||
#echelle { position: fixed; z-index: 8; top: calc(env(safe-area-inset-top, 0px) + 8px); left: 50%; transform: translateX(-50%); box-sizing: border-box; height: 44px;
|
||||
display: flex; gap: 2px; padding: 1px; background: rgba(255, 253, 246, .93); border: 1px solid var(--trait); border-radius: 999px; box-shadow: var(--ombre); }
|
||||
#echelle button { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 52px; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent;
|
||||
color: var(--encre-2); font: 600 18px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .05em; }
|
||||
#echelle button b { font-weight: 600; transform: translateY(-2px); }
|
||||
#echelle button i { position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--trait); }
|
||||
#echelle button[aria-current="true"] { color: var(--encre); background: var(--papier); }
|
||||
#echelle button[aria-current="true"] i { background: var(--encre); }
|
||||
#echelle .mot { display: none; font: 500 14px/1 Barlow, sans-serif; letter-spacing: 0; transform: translateY(-2px); }
|
||||
@media (min-width: 900px) { #echelle .mot { display: inline; } #echelle button i { margin-left: 0; left: 12px; width: calc(100% - 24px); height: 2px; border-radius: 1px; } }
|
||||
#epoque { position: fixed; z-index: 8; top: calc(env(safe-area-inset-top, 0px) + 58px); left: 50%; transform: translateX(-50%); box-sizing: border-box; height: 32px;
|
||||
display: flex; padding: 2px; background: rgba(255, 253, 246, .93); border: 1px solid var(--trait); border-radius: 999px; box-shadow: var(--ombre); }
|
||||
#epoque button { position: relative; border: 0; background: transparent; border-radius: 999px; padding: 0 12px; height: 26px; font-weight: 500; font-size: 13.5px; color: var(--encre-2); }
|
||||
#epoque button::after { content: ''; position: absolute; inset: -7px 0; } /* la cible du doigt fait 40 px, le dessin 26 */
|
||||
#epoque button[aria-pressed="true"] { background: var(--encre); color: var(--papier-2); }
|
||||
/* tourner la maquette : un rond seul, en bas à droite, au-dessus du bandeau ; caché en XL et quand le bandeau est plein */
|
||||
#b-tourner { position: fixed; z-index: 5; right: 12px; bottom: calc(var(--h-bandeau, 60px) + env(safe-area-inset-bottom, 0px) + 12px); width: 40px; height: 40px; padding: 0;
|
||||
display: grid; place-items: center; border: 1px solid var(--trait); border-radius: 50%; background: rgba(255, 253, 246, .93); box-shadow: var(--ombre); transition: bottom .22s ease; }
|
||||
#b-tourner svg { width: 20px; height: 20px; }
|
||||
body[data-echelle="XL"] #b-tourner, body.bandeau-plein #b-tourner { display: none; }
|
||||
@media (min-width: 900px) { #b-tourner { right: 16px; bottom: 16px; } }
|
||||
|
||||
/* ---------- 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); } }
|
||||
/* ---------- le bandeau des fiches : barre → résumé → plein (data-etat ; hauteurs : maquette/nav.ts) ---------- */
|
||||
.bandeau { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; box-sizing: border-box; height: calc(var(--h, 60px) + env(safe-area-inset-bottom, 0px));
|
||||
padding: 0 0 env(safe-area-inset-bottom, 0px); 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); display: flex; flex-direction: column; overflow: hidden; transition: height .22s ease, transform .22s ease; }
|
||||
.bandeau.tire { transition: none; }
|
||||
#fiches { --h: var(--h-fiches, 60px); }
|
||||
#etape-carte { --h: var(--h-etape, 60px); }
|
||||
@media (min-width: 900px) { .bandeau { left: 16px; right: auto; bottom: 16px; width: 440px; height: var(--h, 60px); padding: 0; border: 1px solid var(--trait); border-radius: 16px; } }
|
||||
.poignee { flex: none; display: flex; flex-direction: column; align-items: stretch; width: 100%; min-height: 40px; padding: 7px 14px 4px; border: 0; background: none; text-align: left; touch-action: none; cursor: grab; }
|
||||
.bandeau.tire .poignee { cursor: grabbing; }
|
||||
.poignee .trait { align-self: center; flex: none; width: 36px; height: 4px; border-radius: 2px; background: var(--trait); }
|
||||
.poignee .ligne { display: none; align-items: center; gap: 10px; margin-top: 5px; min-height: 32px; min-width: 0; }
|
||||
.poignee .entete { display: none; margin-top: 6px; font: 600 16px/1.1 "Barlow Condensed", Barlow, sans-serif; }
|
||||
.poignee .entete small { font: 400 12px/1.2 Barlow, sans-serif; color: var(--encre-2); margin-left: 6px; }
|
||||
.bandeau[data-etat="barre"] .poignee .ligne { display: flex; }
|
||||
.bandeau[data-etat="plein"] .poignee .entete { display: block; }
|
||||
.p-icone { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); overflow: hidden; }
|
||||
.p-icone svg, .p-icone img { width: 30px; height: 30px; display: block; border-radius: 50%; }
|
||||
.p-titre { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 15.5px; }
|
||||
.p-compte { flex: none; font-size: 12.5px; color: var(--encre-2); font-variant-numeric: tabular-nums; }
|
||||
.bandeau > .barre-temps { margin: 0 14px; }
|
||||
.bandeau[data-etat="plein"] > .barre-temps { visibility: hidden; }
|
||||
.corps { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
|
||||
.bandeau .corps > * { flex: none; }
|
||||
.bandeau .fiche { overflow: visible; }
|
||||
.bandeau[data-etat="barre"] .corps { visibility: hidden; }
|
||||
#fiches:not([data-etat="plein"]) :is(.liste-ch, .mentions) { display: none; }
|
||||
.suite:empty { display: none; }
|
||||
.suite { padding-left: 68px; transition: opacity .35s ease; }
|
||||
.suite.sort { opacity: 0; }
|
||||
.suite p { margin: 0 0 8px; }
|
||||
@media (prefers-reduced-motion: reduce) { .bandeau, #b-tourner, .suite { transition: none; } }
|
||||
/* le plein : la liste du chapitre (ce que listait le menu des quatre fils), ses documents, la carte du territoire */
|
||||
.liste-ch { border-top: 1px solid var(--trait); padding-top: 10px; }
|
||||
.liste-ch h3 { margin: 0 0 6px; font: 600 14px/1.1 "Barlow Condensed", Barlow, sans-serif; text-transform: uppercase; letter-spacing: .07em; color: var(--c-encre, var(--encre)); }
|
||||
.liste-ch ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
|
||||
.liste-ch li button { width: 100%; text-align: left; border: 0; background: var(--c-fond, var(--papier)); border-radius: 8px; padding: 6px 8px; min-height: 40px; font-size: 14px; line-height: 1.25; display: flex; gap: 8px; align-items: center; }
|
||||
.liste-ch li button[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--c, var(--encre)); font-weight: 600; }
|
||||
.liste-ch li button .n { font: 600 12px/1 "Barlow Condensed", Barlow, sans-serif; color: var(--c-encre); min-width: 16px; }
|
||||
.liste-ch li button .x { margin-left: auto; display: flex; gap: 3px; }
|
||||
.liste-ch li button .x i { width: 8px; height: 8px; border-radius: 50%; }
|
||||
.vers-planche { display: block; margin-top: 8px; width: 100%; border: 0; border-radius: 9px; background: var(--c-encre, var(--encre)); color: #fff; font-weight: 600; font-size: 14px; padding: 8px 10px; min-height: 40px; text-align: left; }
|
||||
.vers-planche.carte-b { background: var(--quartier-encre); }
|
||||
.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;
|
||||
@@ -88,36 +141,7 @@ body.fond #scene { cursor: default; touch-action: auto; pointer-events: none; }
|
||||
.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%; }
|
||||
.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; }
|
||||
.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; } }
|
||||
@media (max-width: 560px) { .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; } .suite { padding-left: 54px; } }
|
||||
|
||||
/* ---------- 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); }
|
||||
@@ -249,11 +273,7 @@ body.menu-ouvert #fiches { display: none; }
|
||||
@media (max-width: 560px) { .c-titre, .c-compte, .c-entrer .long { display: none; } .c-sys button { padding: 3px 9px; font-size: 12.5px; } .c-entrer { min-height: 34px; padding: 0 10px; font-size: 13.5px; } }
|
||||
body.sur-carte #b-tourner { display: none; }
|
||||
|
||||
/* le texte d'une étape, à la place de la fiche */
|
||||
#etape-carte { 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) { #etape-carte { left: 16px; right: auto; bottom: 16px; width: 440px; border: 1px solid var(--trait); border-radius: 16px; max-height: calc(100% - 110px); } }
|
||||
/* le texte d'une étape, à la place de la fiche : le même bandeau (classe .bandeau), en résumé dès qu'on touche une étape */
|
||||
body.etape-ouverte #fiches { display: none; }
|
||||
.ec-tete { display: flex; flex: none; }
|
||||
.ec-tete button { border: 1px solid var(--trait); background: #fff; border-radius: 999px; padding: 0 12px; min-height: 34px; font-weight: 500; font-size: 13.5px; }
|
||||
|
||||
Reference in New Issue
Block a user