Translate the whole project to English and fix outdated comments and help

Comments, docstrings, logs, CLI help, map UI, legends, PDF sheet, scripts,
compose files and AGENTS.md are now English. Data keys stay unchanged
(relief_oriente, densite_sol, visualisations/, API JSON keys, link params).
Wrong comments and help defaults found along the way are corrected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Antoine
2026-09-27 23:16:45 +02:00
parent cc1c22d2b8
commit fb892ea9f2
52 changed files with 4356 additions and 4323 deletions

View File

@ -1,13 +1,13 @@
/* Carte LiDAR — tuiles XYZ, habillage minimal type carte grand public. */
/* LiDAR map — XYZ tiles, minimal consumer-map style chrome. */
/* Réglages communs : toute règle y puise (couleurs, texte, arrondis,
espacements, ombres, superpositions). Deux palettes : claire par défaut,
sombre si le système le demande (sauf clair forcé) ou si elle est forcée. */
/* Shared settings: every rule draws from them (colours, text, radii,
spacing, shadows, stacking). Two palettes: light by default, dark when
the system asks for it (unless light is forced) or when dark is forced. */
:root {
color-scheme: light;
--bg: #eef0f3;
--surface: rgba(251, 251, 250, 0.96);
--surface-2: #eef0f3; /* champs, segments, boutons neutres */
--surface-2: #eef0f3; /* fields, segments, neutral buttons */
--border: #d6d9de;
--text: #1d232b;
--muted: #5b6573;
@ -19,8 +19,8 @@
--gen-pending: #0b8fc0;
--gen-failed: #c8452c;
--gen-sel: var(--accent);
/* Contour de sélection de dalle : plus sombre en thème clair (lisible sur
le fond OSM clair), jaune franc en thème sombre. */
/* Tile selection outline: darker in the light theme (readable on the
light OSM base map), bright yellow in the dark theme. */
--tile-sel: #b8860b;
--gps: #39d98a;
--fs-xs: 11px; --fs-sm: 12px; --fs-md: 13px; --fs-lg: 16px;
@ -57,20 +57,20 @@
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
font: var(--fs-md)/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
#map { position: absolute; inset: 0; background: var(--bg); }
/* Mode Comparer : barre glissante qui sépare les deux couches. */
/* Compare mode: sliding divider between the two layers. */
#compareBar { position: fixed; top: 0; bottom: 0; width: 4px; margin-left: -2px; z-index: var(--z-map-ui);
background: var(--surface); box-shadow: var(--shadow-sm); cursor: ew-resize; touch-action: none; }
/* Poignée au milieu de la carte visible, au-dessus du volet (téléphone) : à
mi-hauteur de l'écran elle tombait sous l'échelle Leaflet posée sur le volet. */
/* Handle in the middle of the visible map, above the bottom sheet (phone): at
half screen height it fell under the Leaflet scale sitting on the sheet. */
#compareBar span { position: absolute; top: calc((100% - var(--sheet-h)) / 2); left: 50%; transform: translate(-50%, -50%);
width: 36px; height: 36px; border-radius: var(--r-full); display: flex; align-items: center;
justify-content: center; background: var(--surface); color: var(--text); border: 1px solid var(--border);
box-shadow: var(--shadow-sm); font-size: var(--fs-lg); }
.leaflet-container { background: var(--bg); font: inherit; }
/* Fond OSM assombri pour laisser ressortir les rendus LiDAR. Filtre posé sur
le conteneur de la couche, pas sur chaque tuile : même rendu (opérations
par pixel), mais une seule passe de filtre au lieu d'une par tuile —
−30 % de CPU (moteur de rendu + GPU) en déplacement, mesuré sous Chrome. */
/* Dimmed OSM base map so the LiDAR renderings stand out. The filter sits on
the layer container, not on each tile: same result (per-pixel operations),
but a single filter pass instead of one per tile — −30% CPU (renderer +
GPU process) while panning, measured in Chrome. */
.leaflet-tile-pane .leaflet-layer.base-dark { filter: brightness(0.38) contrast(1.1) saturate(0.7); }
.info-sec { margin-top: 10px; }
@ -86,7 +86,7 @@ html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(-
.rose-cap span { color: var(--muted); font-size: var(--fs-xs); }
.tile-head .sec-title { margin: 0; flex: 1; }
/* --- composants communs --------------------------------------------------- */
/* --- shared components ---------------------------------------------------- */
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1);
min-height: 32px; padding: 0 var(--sp-3); border-radius: var(--r-sm); border: 1px solid var(--border);
background: var(--surface-2); color: var(--text); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
@ -126,12 +126,12 @@ input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius
.field { height: 40px; }
}
/* Ligne du fond de carte : œil, nom, opacité. */
/* Base map row: eye, name, opacity. */
.base-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center;
gap: var(--sp-2); padding: var(--sp-1) 0; }
.base-row .base-ctl { grid-column: 2 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 40px;
gap: var(--sp-2); align-items: center; }
/* Affichage : une couche principale, la précision seule ou en comparaison. */
/* Display: one main layer, precision alone or in comparison. */
.view-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
gap: 8px; padding: 8px 4px 4px; border-top: 1px solid var(--border); margin-top: 4px; }
.view-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@ -159,12 +159,12 @@ input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius
@media (max-width: 720px) {
#tools { top: var(--sp-3); bottom: auto; }
}
/* L'attribution Leaflet reste en bas à droite : les outils passent au-dessus. */
/* The Leaflet attribution stays bottom right: the tools sit above it. */
@media (min-width: 721px) { #tools { bottom: 44px; } }
#tools button { width: 38px; height: 38px; padding: 0; font-size: var(--fs-lg); background: var(--surface);
border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
/* Indicateur de chargement : tuiles restantes pour finir la vue courante
(fond + LiDAR), barre de progression du lot en cours. */
/* Loading indicator: tiles left to finish the current view (base map +
LiDAR), progress bar of the current batch. */
.tileload { position: fixed; left: calc(var(--panel-w) + (100vw - var(--panel-w)) / 2); top: auto;
bottom: calc(var(--sheet-h) + var(--sp-3)); transform: translateX(-50%); z-index: var(--z-loading);
display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--r-full);
@ -195,12 +195,12 @@ input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius
.leaflet-control-attribution { background: var(--surface) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--accent) !important; }
/* --- génération de tuiles ------------------------------------------------ */
/* --- PDF export and tile generation --------------------------------------- */
.print-msg { font-size: var(--fs-sm); margin-left: 8px; }
/* #1b1b1b (glyphe + bordure) reste en dur volontairement : --print est un jaune/ambre
proche dans les deux thèmes (#d99a00 clair, #ffd166 sombre), un texte sombre fixe
y garde un contraste correct dans les deux cas — un token --text/--on-accent
changerait de sens (clair en thème sombre) et casserait ce contraste. */
/* #1b1b1b (glyph + border) is hard-coded on purpose: --print is a similar
yellow/amber in both themes (#d99a00 light, #ffd166 dark), and a fixed dark text
keeps good contrast on it in both cases — a --text/--on-accent token would flip
(light in the dark theme) and break that contrast. */
.print-handle { display: flex; align-items: center; justify-content: center; cursor: move;
font-size: var(--fs-lg); color: #1b1b1b; background: var(--print); border: 2px solid #1b1b1b;
border-radius: var(--r-full); box-shadow: 0 1px 6px rgba(0,0,0,0.5); }
@ -216,17 +216,17 @@ body.drawing .leaflet-container { cursor: crosshair !important; }
padding: 6px 8px; max-height: 130px; overflow-y: auto; white-space: pre-wrap;
word-break: break-all; margin: 6px 0; }
#tools button.busy { color: var(--accent); border-color: var(--accent); }
/* Cadres des dalles du run : orange pulsant = rendu en cours, bleu = en
attente, rouge = échec. Les dalles faites n'ont pas de cadre. */
/* Frames of the run's tiles: pulsing orange = rendering, blue = pending,
red = failed. Finished tiles have no frame. */
@keyframes genpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.gen-frame-running { stroke: var(--gen-running); fill: color-mix(in srgb, var(--gen-running) 13%, transparent); animation: genpulse 1.4s ease-in-out infinite; }
.gen-frame-pending { stroke: var(--gen-pending); fill: color-mix(in srgb, var(--gen-pending) 8%, transparent); stroke-dasharray: 6 4; }
.gen-frame-failed { stroke: var(--gen-failed); fill: color-mix(in srgb, var(--gen-failed) 20%, transparent); }
.gen-sel { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 12%, transparent); cursor: pointer; }
/* --- panneau unique à onglets ------------------------------------------------
Ordinateur : colonne à gauche, repliable en bande d'icônes.
Téléphone : volet en bas à trois hauteurs (fermé / mi-hauteur / plein). */
/* --- single tabbed panel ------------------------------------------------------
Desktop: left column, collapsible into an icon strip.
Phone: bottom sheet with three heights (closed / half / full). */
#panel { position: fixed; z-index: var(--z-panel); display: flex; flex-direction: column;
background: var(--surface); color: var(--text); border: 1px solid var(--border);
box-shadow: var(--shadow-lg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
@ -252,7 +252,7 @@ body.drawing .leaflet-container { cursor: crosshair !important; }
#panel.collapsed .panel-head { flex-direction: column; border-bottom: none; }
#panel.collapsed .panel-tabs { flex-direction: column; align-self: stretch; }
#panel.collapsed #panelCollapse { transform: rotate(180deg); }
/* La carte, l'échelle et les messages se décalent de la largeur du panneau. */
/* The map, the scale and the messages shift by the panel width. */
body { --panel-w: 364px; --sheet-h: 0px; }
body.panel-collapsed { --panel-w: 84px; }
.leaflet-bottom.leaflet-left { left: var(--panel-w); }
@ -270,8 +270,8 @@ body.panel-collapsed { --panel-w: 84px; }
.sheet-grip span { width: 36px; height: 4px; border-radius: var(--r-full); background: var(--muted); }
.panel-head { padding: var(--sp-1) var(--sp-2); }
.leaflet-bottom { bottom: var(--sheet-h); }
/* Attribution sur toute la largeur : l'échelle passe au-dessus d'elle,
l'indicateur de chargement en haut de l'écran (à gauche des outils). */
/* Full-width attribution: the scale sits above it, the loading indicator
at the top of the screen (left of the tools). */
.leaflet-bottom.leaflet-left .leaflet-control-scale { margin-bottom: 28px; }
.tileload { top: var(--sp-3); bottom: auto; }
}