À partir de 1 024 px, les dix-sept documents du dessin vivent dans une colonne à droite, 320 px, sous le sticky, pleine hauteur, défilante, au fond du bandeau : un titre, une aide, puis une section par thématique (Eau, Énergie, Alimentation, Documents du projet), une ligne par document (vignette de 56 px, numéro, titre ; l'état « vu » s'y lit). La zone libre de la carte et sa barre s'arrêtent à 336 px du bord droit ; le bandeau d'étape reste à gauche. Survoler ou focaliser un document allume son rond (ou son repère) sans recadrer ; le toucher fait ce que fait son rond ; toucher un rond ou un repère allume son document dans la colonne et l'amène à vue, sans animation sous mouvement réduit. Allumage par la couleur, sans fil. Clavier : un seul arrêt de tabulation par thématique, les flèches, Origine et Fin dans la thématique. « Voir le vrai territoire » se centre entre le bandeau et la colonne. Mesuré à 1 280 × 800 : 17 / 17 dans les deux sens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PWGVn1ZCPDVJJ2cRer31k8
402 lines
42 KiB
CSS
402 lines
42 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;
|
||
--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);
|
||
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; }
|
||
/* mode fond (?mode=fond, docs/EMBED.md) : la scène seule, qui ne prend aucun geste */
|
||
body.fond #scene { cursor: default; touch-action: auto; pointer-events: none; }
|
||
/* 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; }
|
||
|
||
/* ---------- 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); }
|
||
/* 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-fiches, 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; } }
|
||
|
||
/* ---------- 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; }
|
||
/* le résumé tient en un tiers : le fil et les flèches sur une seule ligne (le compteur est déjà dans la barre et le plein) */
|
||
#fiches[data-etat="resume"] .corps { flex-flow: row wrap; align-content: flex-start; }
|
||
#fiches[data-etat="resume"] .corps > * { flex: 0 0 100%; min-width: 0; }
|
||
#fiches[data-etat="resume"] .corps > .fil { flex: 1 1 0; }
|
||
#fiches[data-etat="resume"] .corps > .pied { flex: none; margin-left: auto; }
|
||
#fiches[data-etat="resume"] .pied .compteur { display: none; }
|
||
/* le fil (lot ④, S seulement) : la poignée et sa ligne de titre, les onglets, les logos du chapitre et la lecture ; pas de texte (≤ 25 % de l'écran) */
|
||
.bandeau[data-etat="fil"] .poignee .ligne { display: flex; }
|
||
#fiches[data-etat="fil"] :is(.fiche, .suite, .liste-ch, .mentions) { display: none; }
|
||
#fiches[data-etat="fil"] .corps { flex-flow: row wrap; align-content: flex-start; overflow: hidden; padding-top: 4px; }
|
||
#fiches[data-etat="fil"] .corps > * { flex: 0 0 100%; min-width: 0; }
|
||
#fiches[data-etat="fil"] .corps > .fil { flex: 1 1 0; }
|
||
#fiches[data-etat="fil"] .corps > .pied { flex: none; margin-left: auto; }
|
||
#fiches[data-etat="fil"] .pied .compteur { display: none; }
|
||
body[data-echelle="S"] .onglets button { padding: 5px 9px; gap: 5px; letter-spacing: .02em; } /* quatre onglets tiennent sur 390 px */
|
||
@media (max-width: 899px) { #fiches[data-etat="fil"] :is(#b-prec, #b-suiv) { display: none; } }
|
||
/* checkpoint du 06/11 : en paysage téléphone le quart d’écran ne contient pas les logos (mesuré à 844 × 390 : coupés) ; le fil défile */
|
||
@media (max-height: 500px) { #fiches[data-etat="fil"] .corps { overflow: hidden auto; } }
|
||
/* un logo allumé : l'anneau de la couleur du chapitre, 1,08 d'échelle (« comme t'inviter à cliquer ») */
|
||
#points .maillon.allume { opacity: 1; filter: none; transform: scale(1.08); box-shadow: 0 0 0 2px var(--c-fond, #fff), 0 0 0 4px var(--c, var(--encre)); }
|
||
@media (prefers-reduced-motion: reduce) { #points .maillon { transition: none; } }
|
||
/* lot ④ bis (10/11) : en S, la maison du menu au trait couvre la maquette (maquette/maison-trait.ts) ; le dessin tient dans
|
||
la zone libre, sous le sticky et au-dessus du bandeau (au bureau : à droite du panneau), centré, à l'échelle de la largeur */
|
||
#maison-s { position: fixed; inset: 0; z-index: 2; background: var(--papier); cursor: default; }
|
||
#maison-s .cadre-s { position: absolute; left: 8px; right: 8px; top: calc(env(safe-area-inset-top, 0px) + 60px); bottom: calc(var(--h-fiches, 60px) + env(safe-area-inset-bottom, 0px) + 8px);
|
||
display: grid; place-items: center; transition: bottom .22s ease; }
|
||
#maison-s svg { max-width: 100%; max-height: 100%; }
|
||
@media (min-width: 900px) { #maison-s .cadre-s { left: 472px; right: 24px; bottom: 24px; top: 72px; } }
|
||
body.vue-s #b-tourner { display: none; }
|
||
/* l'accès clavier aux parcelles de M : un bouton par parcelle, posé sur sa maison, qui n'apparaît qu'au focus (Tab) */
|
||
#parcelles-clavier button { position: fixed; z-index: 4; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; padding: 0; border: 0; border-radius: 50%; background: transparent; opacity: 0; pointer-events: none; }
|
||
#parcelles-clavier button span { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); width: max-content; max-width: min(78vw, 320px); padding: 4px 9px; border-radius: 8px; background: var(--papier-2); box-shadow: var(--ombre);
|
||
font: 600 13.5px/1.25 Barlow, sans-serif; color: var(--quartier-encre); text-align: center; }
|
||
#parcelles-clavier button:focus { opacity: 1; outline: 3px solid var(--quartier-encre); outline-offset: 0; box-shadow: 0 0 0 6px rgba(255, 253, 246, .92); }
|
||
@media (prefers-reduced-motion: reduce) { #maison-s .cadre-s { transition: 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::after, .maillon::after, .ec-tete button::after { content: ''; position: absolute; inset: -4px 0; } /* cibles du doigt ≥ 40 px sans grossir le dessin (checkpoint du 03/11, N17) */
|
||
.onglets button { position: relative; 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); }
|
||
/* lot ⑤ (R3, R4) : « n ressources » dans le résumé ; la section Ressources et « Ajouter une ressource » dans le plein */
|
||
.n-ress { position: relative; margin: 4px 0 0; border: 0; background: none; padding: 2px 0; font: 600 13px/1.2 Barlow, sans-serif; color: var(--c-encre, var(--encre)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
|
||
.n-ress::after { content: ''; position: absolute; inset: -13px -6px; } /* cible du doigt ≥ 44 px (13 × 1,2 + 2 × 2 + 2 × 13 ≈ 45,6 ; checkpoint du 09/11 : −10 px donnait 39,6) */
|
||
.ressources { margin-top: 12px; border-top: 1px solid var(--trait); padding-top: 8px; }
|
||
.ressources 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)); }
|
||
.ressources ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
|
||
.ressources li { font-size: 14px; line-height: 1.3; }
|
||
.ressources li a, .ressources li b { font-weight: 600; color: var(--c-encre, var(--encre)); }
|
||
.ressources li a::after { content: " ↗"; }
|
||
.ressources li p { margin: 2px 0 0; font-size: 13px; color: var(--encre-2); }
|
||
.r-type { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 999px; background: var(--c-fond, var(--papier)); font: 600 11.5px/1.4 "Barlow Condensed", Barlow, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--c-encre, var(--encre)); }
|
||
.r-statut { font-size: 11.5px; color: var(--encre-2); font-style: italic; }
|
||
.ajouter { margin-top: 12px; border: 1px dashed var(--c, var(--trait)); border-radius: 10px; padding: 0 10px; }
|
||
.ajouter summary { min-height: 42px; display: flex; align-items: center; font-weight: 600; color: var(--c-encre, var(--encre)); cursor: pointer; }
|
||
.ajouter summary::before { content: "+"; margin-right: 8px; font-size: 18px; line-height: 1; }
|
||
.ajouter p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.35; }
|
||
.ajouter a.action { display: inline-flex; align-items: center; margin: 4px 0 10px; text-decoration: none; }
|
||
.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; }
|
||
/* 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 { position: relative; 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; }
|
||
.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) { .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); }
|
||
#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; 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(--lc, 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(--lc, var(--eau)); opacity: 0; }
|
||
.pe .coeur { fill: #fff; stroke: var(--lc, var(--eau)); stroke-width: 3; }
|
||
.pe text { font: 700 15px Barlow, sans-serif; fill: var(--lc-encre, var(--eau-encre)); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
|
||
.pe.actif .coeur { fill: var(--lc, 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(--lc, var(--eau)); }
|
||
#cycle { --c-encre: var(--lc-encre, var(--eau-encre)); } /* un lecteur par planche : l'eau en bleu, chaque système dans la couleur de son fil */
|
||
@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; }
|
||
/* le diaporama de la rénovation : deux vues superposées en fondu, un bouton de lecture tant qu'il ne joue pas */
|
||
.plateau.mur .piece.dia { background: #000; }
|
||
.plateau.mur .piece.dia img { background: #000; }
|
||
.plateau.mur .piece.dia img.dia-b { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; transition: opacity .35s ease; box-shadow: none; }
|
||
.plateau.mur .piece.dia img.dia-b.on { opacity: 1; }
|
||
.plateau.mur .piece.dia figcaption { background: var(--papier, #fffdf6); padding-top: 14px; margin-top: 0; }
|
||
.dia-jouer { position: absolute; left: 50%; top: 0; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%; background: rgba(255, 253, 246, .9); pointer-events: none; transition: opacity .3s; }
|
||
.dia-jouer::after { content: ''; position: absolute; left: 46px; top: 34px; border-style: solid; border-width: 26px 0 26px 40px; border-color: transparent transparent transparent var(--c-encre, #102a3a); }
|
||
.piece.dia.joue .dia-jouer { opacity: 0; }
|
||
.dia-ctl { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
|
||
.dia-ctl button { min-width: 40px; min-height: 36px; border: 1px solid var(--c-encre, var(--encre)); border-radius: 9px; background: #fff; color: var(--c-encre, var(--encre)); font: 600 14px/1 inherit; font-family: inherit; padding: 0 10px; cursor: pointer; }
|
||
.dia-ctl button[data-a="jouer"] { min-width: 84px; background: var(--c-encre, var(--encre)); color: #fff; }
|
||
.dia-n { font-size: 13px; color: var(--encre-2); margin-left: 4px; font-variant-numeric: tabular-nums; }
|
||
.dia-barre { height: 3px; margin-top: 6px; background: rgba(16, 42, 58, .12); border-radius: 2px; overflow: hidden; }
|
||
.dia-barre i { display: block; height: 100%; width: 0; background: var(--c-encre, var(--encre)); transition: width .3s; }
|
||
.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); }
|
||
.piece-active .vers-fil { margin-top: 6px; border: 0; border-radius: 9px; background: var(--b); color: #fff; font-weight: 600; font-size: 13px; padding: 6px 10px; min-height: 34px; }
|
||
.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(--b, 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; } }
|
||
|
||
/* ---------- la carte du territoire (V0.2b, 09/10) : l'espace autour du quartier, sous la barre et les fiches ---------- */
|
||
#carte { position: fixed; inset: 0; z-index: 2; background: var(--papier); opacity: 0; transition: opacity .55s ease; }
|
||
#carte.visible { opacity: 1; }
|
||
#carte .vue-carte { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
|
||
.plateau.carte { --inv: 1; }
|
||
.plateau.carte img { inset: auto; left: 0; top: 0; }
|
||
.plateau.carte img.fond { width: auto; height: auto; box-shadow: 0 10px 40px rgba(16, 42, 58, .16), 0 0 0 1px var(--trait); } /* un poster posé sur la table */
|
||
.plateau.carte .tuile { position: absolute; opacity: 0; transition: opacity .45s ease; }
|
||
.plateau.carte .tuile.ok { opacity: 1; }
|
||
.plateau.carte svg.liens { pointer-events: none; }
|
||
/* les fils des trois systèmes : le pointillé coloré de la planche 2, qui coule d'une étape à la suivante */
|
||
.fil-c { fill: none; stroke: var(--c); stroke-width: calc(3.2px * var(--inv)); stroke-linecap: round; stroke-dasharray: calc(1px * var(--inv)) calc(11px * var(--inv)); opacity: .85; transition: opacity .4s; }
|
||
.zq { fill: rgba(138, 90, 122, .07); stroke: var(--quartier); stroke-width: calc(2.5px * var(--inv)); stroke-dasharray: calc(9px * var(--inv)) calc(6px * var(--inv)); }
|
||
.lieu { fill: rgba(107, 100, 88, .04); stroke: var(--auj); stroke-width: calc(2px * var(--inv)); stroke-dasharray: calc(2px * var(--inv)) calc(7px * var(--inv)); stroke-linecap: round; opacity: .55; transition: opacity .4s; }
|
||
/* une étape : son rond posé sur le dessin, en pointillé, et son numéro dans le fil (lot ⑥c : son dessin est dans la colonne) */
|
||
.plateau.carte .rond { position: absolute; padding: 0; border-radius: 50%; background: color-mix(in srgb, var(--c) 6%, transparent); border: calc(3px * var(--inv)) dotted var(--c); pointer-events: none; transition: opacity .4s, background .3s, box-shadow .3s; }
|
||
.plateau.carte .rond.vu { background: color-mix(in srgb, var(--c) 12%, transparent); }
|
||
.plateau.carte .rond:focus-visible { outline: calc(3px * var(--inv)) solid var(--c-encre); outline-offset: calc(4px * var(--inv)); }
|
||
/* le numéro : une pastille de taille constante à l'écran (--inv), à l'encre du système (pleine une fois l'étape vue) */
|
||
.plateau.carte .num { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-sizing: border-box; min-width: calc(22px * var(--inv)); height: calc(22px * var(--inv)); padding: 0 calc(5px * var(--inv));
|
||
border-radius: calc(11px * var(--inv)); border: calc(1.5px * var(--inv)) solid var(--c-encre); background: #fff; color: var(--c-encre); font: 600 calc(13.5px * var(--inv)) / calc(19px * var(--inv)) "Barlow Condensed", Barlow, sans-serif; text-align: center; box-shadow: 0 calc(1px * var(--inv)) calc(4px * var(--inv)) rgba(16, 42, 58, .2); }
|
||
.plateau.carte .rond.vu .num { background: var(--c-encre); color: #fff; }
|
||
/* une épingle : un repère rond (≥ 24 px à l'écran), le pictogramme « document » ; son document est dans la colonne */
|
||
.plateau.carte .repere { position: absolute; box-sizing: border-box; width: calc(30px * var(--inv)); height: calc(30px * var(--inv)); transform: translate(-50%, -50%); padding: 0; display: grid; place-items: center;
|
||
border-radius: 50%; border: calc(2px * var(--inv)) solid var(--c-encre); background: #fff; color: var(--c-encre); box-shadow: 0 calc(2px * var(--inv)) calc(6px * var(--inv)) rgba(16, 42, 58, .25); pointer-events: none; transition: background .3s, box-shadow .3s; }
|
||
.plateau.carte .repere svg { width: calc(19px * var(--inv)); height: calc(19px * var(--inv)); display: block; }
|
||
.plateau.carte .repere:focus-visible { outline: calc(3px * var(--inv)) solid var(--c-encre); outline-offset: calc(3px * var(--inv)); }
|
||
/* allumé (X5) : par la couleur, sans fil : le fond de sa couleur, un trait plein, une pulsation unique */
|
||
.plateau.carte .rond:is(.ici, .allume) { background: color-mix(in srgb, var(--c-fond) 78%, transparent); border-style: solid; box-shadow: 0 0 0 calc(5px * var(--inv)) var(--c-fond); }
|
||
.plateau.carte .repere:is(.ici, .allume) { background: var(--c-fond); box-shadow: 0 0 0 calc(5px * var(--inv)) var(--c-fond); }
|
||
.plateau.carte :is(.rond, .repere).allume { animation: pulse-c .9s ease-out 1; }
|
||
@keyframes pulse-c { from { box-shadow: 0 0 0 0 var(--c); } to { box-shadow: 0 0 0 calc(24px * var(--inv)) transparent; } }
|
||
/* une étiquette qui en toucherait une autre se masque (carte.js, etiquettes()) ; un repère masqué reste atteignable au clavier */
|
||
.plateau.carte .masque { opacity: 0 !important; transition: none; }
|
||
.plateau.carte .repere.masque:focus-visible { opacity: 1 !important; }
|
||
/* le quartier : l'îlot où la maquette se pose */
|
||
.plateau.carte .quartier-c { position: absolute; display: flex; align-items: flex-start; justify-content: center; pointer-events: none; }
|
||
.plateau.carte .quartier-c span { transform: translateY(-115%); font: 600 calc(14px * var(--inv)) / 1.1 "Barlow Condensed", Barlow, sans-serif; color: #fff; background: var(--quartier-encre); border-radius: calc(8px * var(--inv)); padding: calc(4px * var(--inv)) calc(9px * var(--inv)); white-space: nowrap; text-align: center; box-shadow: var(--ombre); }
|
||
.plateau.carte .quartier-c small { display: block; font: 500 calc(11px * var(--inv)) / 1.2 Barlow, sans-serif; opacity: .85; }
|
||
.plateau.carte .lieu-c .court, .plateau.carte .lieu-c.court .long { display: none; }
|
||
.plateau.carte .lieu-c.court .court { display: inline; }
|
||
.plateau.carte .lieu-c { position: absolute; transform: translate(-50%, -110%); white-space: nowrap; font: 600 calc(13px * var(--inv)) / 1.1 "Barlow Condensed", Barlow, sans-serif; color: var(--auj-encre); background: rgba(255, 253, 246, .9); border-radius: calc(6px * var(--inv)); padding: calc(3px * var(--inv)) calc(7px * var(--inv)); pointer-events: none; opacity: .8; transition: opacity .4s; }
|
||
/* les effets des fiches : un système en avant, les autres s'effacent ; le travail, le lieu seul */
|
||
.plateau.carte[data-fx="sys-agraire"] :is(.s-energetique, .s-hydrique),
|
||
.plateau.carte[data-fx="sys-energetique"] :is(.s-agraire, .s-hydrique),
|
||
.plateau.carte[data-fx="sys-hydrique"] :is(.s-agraire, .s-energetique),
|
||
.plateau.carte[data-sys="agraire"] :is(.s-energetique, .s-hydrique),
|
||
.plateau.carte[data-sys="energetique"] :is(.s-agraire, .s-hydrique),
|
||
.plateau.carte[data-sys="hydrique"] :is(.s-agraire, .s-energetique),
|
||
.plateau.carte[data-fx="travail"] :is(.s-agraire, .s-energetique, .s-hydrique) { opacity: .22; }
|
||
.plateau.carte[data-fx="travail"] :is(.lieu, .lieu-c) { opacity: 1; }
|
||
.plateau.carte[data-fx="flux"] .fil-c, .plateau.carte[data-fx^="sys-"] .fil-c, .plateau.carte[data-sys] .fil-c { animation: couler-c 1.4s linear infinite; }
|
||
@keyframes couler-c { to { stroke-dashoffset: calc(-12px * var(--inv)); } }
|
||
|
||
/* la barre de la carte : sous la barre du titre */
|
||
.carte-outils { position: absolute; left: 12px; right: 12px; top: var(--haut-carte, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; pointer-events: none; }
|
||
.carte-outils > * { pointer-events: auto; }
|
||
.c-titre { background: rgba(255, 253, 246, .93); border: 1px solid var(--trait); border-radius: 12px; padding: 5px 11px; box-shadow: var(--ombre); }
|
||
.c-titre b { display: block; font: 600 16px/1.1 "Barlow Condensed", Barlow, sans-serif; }
|
||
.c-titre small { display: block; font-size: 11.5px; color: var(--encre-2); }
|
||
.c-sys { display: flex; gap: 5px; flex-wrap: wrap; }
|
||
.c-sys button { display: flex; align-items: center; gap: 6px; border: 1px solid var(--trait); background: #fff; border-radius: 999px; padding: 4px 11px; min-height: 34px; box-shadow: var(--ombre);
|
||
font: 600 13.5px/1 "Barlow Condensed", Barlow, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--c-encre); }
|
||
.c-sys button i { width: 10px; height: 10px; border-radius: 50%; border: 2px dotted var(--c); }
|
||
.c-sys button:hover { border-color: var(--c); background: var(--c-fond); }
|
||
.c-compte { font-size: 12.5px; color: var(--encre-2); background: rgba(255, 253, 246, .9); border-radius: 8px; padding: 3px 8px; font-variant-numeric: tabular-nums; }
|
||
.c-entrer { border: 0; background: var(--quartier-encre); color: #fff; font-weight: 600; border-radius: 10px; padding: 0 13px; min-height: 38px; box-shadow: var(--ombre); }
|
||
@media (min-width: 900px) { .carte-outils { left: 472px; } }
|
||
|
||
/* ---------- lot ⑥c (11/11) : les documents du dessin, à côté de lui (carte.js, maquette/documents-carte.ts) ---------- */
|
||
/* « les documents apparaissent sur le côté, sur les latéraux, qui gâchent pas la vue du dessin » (Jules, 07/11) */
|
||
.c-docs { position: absolute; z-index: 3; box-sizing: border-box; margin: 0; background: var(--papier-2); }
|
||
.c-docs h2, .c-docs h3, .c-docs ul, .c-docs p { margin: 0; }
|
||
.c-docs ul { list-style: none; padding: 0; }
|
||
.c-docs .vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
||
.cd-doc { position: relative; box-sizing: border-box; border: 2px solid transparent; background: transparent; border-radius: 12px; padding: 0; text-align: left; transition: background .2s, border-color .2s; }
|
||
.cd-img { display: block; box-sizing: border-box; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 2px dotted var(--c); background: #fff; }
|
||
.cd-doc.rect .cd-img, .cd-doc.doc .cd-img { border-radius: 10px; }
|
||
.cd-doc.doc .cd-img { border-style: solid; border-width: 1px; border-color: var(--trait); }
|
||
.cd-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
||
.cd-n { display: inline-grid; place-items: center; box-sizing: border-box; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; border: 1.5px solid var(--c-encre); background: #fff; color: var(--c-encre);
|
||
font: 600 13.5px/1 "Barlow Condensed", Barlow, sans-serif; }
|
||
.cd-doc.vu .cd-n { background: var(--c-encre); color: #fff; }
|
||
.cd-n.cd-picto { padding: 0; width: 22px; border-radius: 50%; }
|
||
.cd-n.cd-picto svg { width: 15px; height: 15px; }
|
||
/* allumé (X5) : le bord de sa couleur ; survolé ou focalisé, il allume son rond sur le dessin */
|
||
.cd-doc:hover, .cd-doc.allume, .cd-doc.ici, .cd-doc:focus-visible { border-color: var(--c); background: var(--c-fond); }
|
||
.cd-doc.ici .cd-img { border-style: solid; }
|
||
|
||
/* au bureau (≥ 1 024 px) : une colonne à droite, 320 px, sous le sticky, pleine hauteur, défilante ; la barre de la carte
|
||
et la zone libre s'arrêtent à 336 px du bord (main.js, libre()) ; le bandeau d'étape reste à gauche : deux panneaux au plus */
|
||
@media (min-width: 1024px) {
|
||
.c-docs { top: var(--haut-carte, 64px); right: 0; bottom: 0; width: 320px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
|
||
padding: 14px 12px 24px; border: 1px solid var(--trait); border-right: 0; border-bottom: 0; border-radius: 16px 0 0 0; box-shadow: var(--ombre); }
|
||
.carte-outils { right: 336px; }
|
||
.cd-tete { padding: 0 4px 6px; }
|
||
.cd-tete h2 { font: 600 19px/1.15 "Barlow Condensed", Barlow, sans-serif; }
|
||
.cd-tete p { margin-top: 3px; font-size: 12.5px; color: var(--encre-2); }
|
||
.cd-groupe { margin-top: 12px; }
|
||
.cd-groupe h3 { display: flex; align-items: center; gap: 7px; padding: 0 4px 5px; font: 600 13.5px/1.2 "Barlow Condensed", Barlow, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--c-encre); }
|
||
.cd-groupe h3::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2px dotted var(--c); }
|
||
.cd-groupe ul { display: grid; gap: 2px; }
|
||
.cd-doc { display: grid; grid-template-columns: 56px auto 1fr; align-items: center; gap: 9px; width: 100%; min-height: 64px; padding: 2px 8px 2px 2px; }
|
||
.cd-t { font-weight: 500; font-size: 14.5px; line-height: 1.25; }
|
||
/* « Voir le vrai territoire » : au milieu de ce que la colonne et le bandeau laissent libre */
|
||
body.sur-carte .vers-vue { left: calc(472px + (100% - 808px) / 2); }
|
||
}
|
||
@media (max-width: 1023.98px) { .c-docs { 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 : 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 { position: relative; border: 1px solid var(--trait); background: #fff; border-radius: 999px; padding: 0 12px; min-height: 34px; font-weight: 500; font-size: 13.5px; }
|
||
#ec-corps .icone { overflow: hidden; border: 2px dotted var(--c); }
|
||
#ec-corps .icone img { object-fit: cover; }
|
||
#ec-corps .icone.rect { border-radius: 28px; }
|
||
#ec-corps .document.secondaire { min-height: 44px; }
|
||
#ec-corps .document.secondaire img { height: 34px; }
|
||
#ec-fil .maillon { width: 36px; height: 36px; border: 2px dotted var(--c); background: #fff; overflow: hidden; }
|
||
#ec-fil .maillon img { object-fit: cover; }
|
||
#ec-fil .maillon.ici { width: 46px; height: 46px; border-style: solid; }
|
||
#ec-suiv { width: auto; min-width: 40px; padding: 0 8px; gap: 4px; display: flex; align-items: center; }
|
||
#ec-suiv.vers-systeme { background: var(--c-encre); color: #fff; border-color: var(--c-encre); font: 600 13px/1 "Barlow Condensed", Barlow, sans-serif; text-transform: uppercase; letter-spacing: .04em; }
|
||
#ec-suiv-txt:empty { display: none; }
|
||
@media (prefers-reduced-motion: reduce) { #carte { transition: none; } .fil-c, .plateau.carte .allume { animation: none !important; } .plateau.carte .tuile { transition: none; } }
|
||
|
||
/* ---------- lot ⑥b (11/11) : l'échelle XL à deux vues, « Le système » (la carte dessinée) et « Le territoire » (OSM à plat) ---------- */
|
||
/* le sélecteur, sous le sticky (là où se tient l'époque en M) : deux boutons de 44 px */
|
||
#vues-xl { position: fixed; z-index: 8; top: calc(env(safe-area-inset-top, 0px) + 58px); left: 50%; transform: translateX(-50%); box-sizing: border-box; height: 48px;
|
||
display: flex; gap: 2px; padding: 1px; background: rgba(255, 253, 246, .95); border: 1px solid var(--trait); border-radius: 999px; box-shadow: var(--ombre); white-space: nowrap; }
|
||
#vues-xl button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--encre-2); font: 600 15px/1 Barlow, sans-serif; }
|
||
#vues-xl button[aria-pressed="true"] { background: var(--encre); color: var(--papier-2); }
|
||
/* « Voir le vrai territoire » / « Voir le système » : au zoom arrière maximal de chaque vue, au milieu en bas */
|
||
.vers-vue { position: fixed; z-index: 7; left: 50%; transform: translateX(-50%); bottom: calc(var(--h-fiches, 60px) + env(safe-area-inset-bottom, 0px) + 14px); min-height: 44px; padding: 0 18px;
|
||
border: 0; border-radius: 999px; background: var(--quartier-encre); color: #fff; font: 600 15px/1 Barlow, sans-serif; box-shadow: var(--ombre); white-space: nowrap; }
|
||
@media (min-width: 900px) { .vers-vue { bottom: 24px; } }
|
||
|
||
body.sur-territoire :is(#fiches, #etape-carte, #b-tourner, #b-vers-territoire) { display: none !important; }
|