Files
FabriceandClaude Opus 5.5 ada3d76f50 Administration native sur le Mac, réencodage sélectif et aide intégrée
- admin.sh : RTG lancé directement sur le Mac (plus de conteneur), nginx
  joint l'interface par host.docker.internal:8765 ; variante conteneur
  conservée (admin-docker.sh, docker-compose-conteneur.yml)
- Compression : réglages lus dans les fichiers (CRF, codec), refaire
  seulement le 1080p ou le 720p, seulement si les réglages ont changé ;
  réglages vidéo propres à chaque voyage ; « Compression actuelle » affichée
- Plus d'arrêt automatique après 2 h d'inactivité (--arret-inactif, 0 par défaut) ;
  arrêt propre qui attend la fin des encodages en cours
- Aide contextuelle dans l'interface (rtg/interface/aide) ; README centré
  sur l'installation et la mise en place
- Cœurs attribués au conteneur détectés (cgroup) et signalés

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mf2kATMtqVABHSYdxJMnim
2026-10-19 05:32:05 +00:00

222 lines
14 KiB
CSS

:root {
--fond: #f6f5f2; --carte: #ffffff; --texte: #1d1d1f; --discret: #6b6b70; --bord: #dedcd6;
--accent: #c2410c; --accent-texte: #ffffff; --ok: #15803d; --ok-fond: #e7f6ec;
--attention: #a16207; --attention-fond: #fdf4dc; --echec: #b91c1c; --echec-fond: #fde8e8;
--neutre-fond: #eeede9; --code: #f0efea;
}
@media (prefers-color-scheme: dark) {
:root {
--fond: #17171a; --carte: #222226; --texte: #ececef; --discret: #9a9aa2; --bord: #36363c;
--accent: #f97316; --accent-texte: #1a1a1a; --ok: #4ade80; --ok-fond: #183324;
--attention: #facc15; --attention-fond: #3a3115; --echec: #f87171; --echec-fond: #3b1c1c;
--neutre-fond: #2c2c31; --code: #2c2c31;
}
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: var(--fond); color: var(--texte); }
a { color: var(--accent); }
code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--code);
padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
h1 { font-size: 26px; margin: 4px 0; }
h2 { font-size: 19px; margin: 28px 0 10px; }
h3 { font-size: 16px; margin: 16px 0 8px; }
.barre { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 10px 24px;
background: var(--carte); border-bottom: 1px solid var(--bord); position: sticky; top: 0; z-index: 1000; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: 1px; text-decoration: none; color: var(--accent); }
.barre nav { display: flex; gap: 16px; flex-wrap: wrap; }
.barre nav a { color: var(--texte); text-decoration: none; }
.barre nav a:hover { color: var(--accent); }
#bandeau { margin-left: auto; font-size: 13px; }
.bandeau { text-decoration: none; padding: 4px 10px; border-radius: 99px; background: var(--neutre-fond); color: var(--texte); }
.bandeau.en-cours { background: var(--attention-fond); }
.bandeau.ok { background: var(--ok-fond); }
.bandeau.echec { background: var(--echec-fond); }
main { max-width: 1100px; margin: 0 auto; padding: 20px 24px 60px; }
footer { text-align: center; color: var(--discret); font-size: 12px; padding: 20px; }
.entete-page { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }
.fil { margin: 0; font-size: 13px; color: var(--discret); }
.fil a { color: var(--discret); }
.compte { font-size: 13px; font-weight: normal; color: var(--discret); background: var(--neutre-fond);
padding: 1px 8px; border-radius: 99px; vertical-align: middle; }
.discret { color: var(--discret); font-size: 13px; }
.aide { color: var(--discret); font-size: 13px; }
.vide { color: var(--discret); font-style: italic; }
.chargement { color: var(--discret); }
.chargement::before { content: "⏳ "; }
.ok { color: var(--ok); }
.droite { text-align: right; }
button, .bouton { font: inherit; font-size: 14px; padding: 6px 14px; border-radius: 8px; cursor: pointer;
border: 1px solid var(--bord); background: var(--carte); color: var(--texte); text-decoration: none;
display: inline-block; }
button:hover, .bouton:hover { border-color: var(--accent); }
button.principal, .bouton.principal { background: var(--accent); border-color: var(--accent); color: var(--accent-texte); }
button.danger { color: var(--echec); border-color: var(--echec); }
button.petit { font-size: 12px; padding: 2px 8px; }
button.htmx-request { opacity: .6; cursor: progress; }
input, select, textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--bord); border-radius: 6px;
background: var(--carte); color: var(--texte); max-width: 100%; }
textarea { width: 100%; font: 13px/1.5 ui-monospace, Menlo, monospace; }
table { width: 100%; border-collapse: collapse; background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--bord); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--discret); font-weight: 600; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pastille { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 99px; white-space: nowrap; background: var(--neutre-fond); }
.pastille.ok { background: var(--ok-fond); color: var(--ok); }
.pastille.attention { background: var(--attention-fond); color: var(--attention); }
.puce { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--bord); margin: 18px 0 16px; overflow-x: auto; }
.onglets a { padding: 8px 14px; text-decoration: none; color: var(--discret); border-bottom: 2px solid transparent; white-space: nowrap; }
.onglets a.actif { color: var(--texte); border-color: var(--accent); font-weight: 600; }
.onglet { display: none; }
.onglet.actif { display: block; }
.encart { background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 12px 16px; margin: 16px 0; }
.encart.attention { background: var(--attention-fond); border-color: transparent; }
.encart h3 { margin-top: 4px; }
.encart table { background: transparent; border: none; }
.erreur { background: var(--echec-fond); color: var(--echec); padding: 8px 12px; border-radius: 8px; margin: 8px 0; }
#messages { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3000; max-width: 90vw; }
#messages:empty { display: none; }
.formulaire { max-width: 640px; }
.formulaire.large { max-width: none; }
.formulaire label { display: block; margin: 12px 0; font-weight: 500; }
.formulaire label > input:not([type=radio]):not([type=checkbox]), .formulaire label > select { display: block; width: 100%; margin-top: 4px; }
.formulaire label > .aide { display: block; font-weight: normal; }
.formulaire label.choix { font-weight: normal; }
.formulaire label.choix .aide { display: inline; }
fieldset { border: 1px solid var(--bord); border-radius: 10px; margin: 16px 0; padding: 4px 16px 10px; background: var(--carte); }
legend { font-weight: 600; padding: 0 6px; }
form.en-ligne { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
.carte { height: 420px; border-radius: 10px; border: 1px solid var(--bord); margin-bottom: 12px; }
details { margin: 16px 0; }
summary { cursor: pointer; color: var(--accent); }
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.bloc-source { background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 4px 16px 14px; }
.bloc-source ul { list-style: none; padding: 0; margin: 0 0 10px; }
.bloc-source li { padding: 6px 0; border-bottom: 1px dashed var(--bord); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bloc-source li code { flex: 1 1 100%; }
.bloc-source li.manque code { text-decoration: line-through; opacity: .7; }
.bloc-source .ajout form input[name=chemin] { flex: 1; min-width: 160px; }
.fenetre-fond { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fenetre { background: var(--carte); border-radius: 12px; padding: 16px 20px; width: min(640px, 100%); max-height: 85vh; display: flex; flex-direction: column; }
.fenetre h3 { margin-top: 0; }
.raccourcis { display: flex; gap: 6px; flex-wrap: wrap; }
.liste-dossiers { list-style: none; padding: 0; margin: 0; overflow-y: auto; flex: 1; border: 1px solid var(--bord); border-radius: 8px; min-height: 120px; }
.liste-dossiers li a { display: block; padding: 6px 10px; text-decoration: none; color: var(--texte); }
.liste-dossiers li a:hover { background: var(--neutre-fond); }
.liste-dossiers li.vide { padding: 6px 10px; }
.fenetre .pied { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.infos > div { background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 8px 12px; }
.etiquette { display: block; font-size: 12px; color: var(--discret); text-transform: uppercase; letter-spacing: .4px; }
.tache { background: var(--carte); border: 1px solid var(--bord); border-left: 4px solid var(--attention); border-radius: 10px; padding: 10px 14px; margin: 14px 0; }
.tache.ok { border-left-color: var(--ok); }
.tache.echec { border-left-color: var(--echec); }
.tache-tete { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tache-tete .danger { margin-left: auto; }
.video-cours { margin: 8px 0; font-size: 14px; }
progress { width: 100%; height: 8px; accent-color: var(--accent); }
progress.global { height: 4px; opacity: .7; }
.journal { background: #111; color: #ddd; font: 12px/1.45 ui-monospace, Menlo, monospace; padding: 10px; border-radius: 8px;
max-height: 420px; overflow: auto; white-space: pre-wrap; margin: 8px 0 0; }
.journal.court { max-height: none; }
@media (max-width: 700px) {
main { padding: 14px 16px 40px; }
.barre { padding: 10px 16px; gap: 10px; }
#bandeau { margin-left: 0; }
table.voyages th:nth-child(3), table.voyages td:nth-child(3) { display: none; }
th, td { padding: 6px 8px; }
.carte { height: 300px; }
}
/* Connexion */
.page-connexion main.connexion { max-width: 420px; margin: 12vh auto; background: var(--carte); border: 1px solid var(--bord);
border-radius: 14px; padding: 24px 28px; }
.connexion .logo { margin: 0 0 8px; }
.connexion label { display: block; margin: 14px 0 10px; font-weight: 500; }
.connexion input[type=password] { display: block; width: 100%; margin-top: 4px; }
.discret-bouton { color: var(--discret); }
/* Carte et corrections */
.editeur { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
.editeur-panneau { background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 8px 14px 12px;
max-height: 74vh; overflow-y: auto; }
.editeur-panneau h4 { margin: 18px 0 4px; font-size: 14px; }
.editeur-panneau label { display: block; margin: 8px 0; }
.editeur-panneau select { width: 100%; margin-top: 4px; }
.editeur-panneau input[type=range] { width: 100%; }
.ed-cases { display: flex; gap: 16px; }
.editeur-carte { height: 74vh; border-radius: 10px; border: 1px solid var(--bord); }
.editeur-carte.en-mode { cursor: crosshair; outline: 3px solid var(--accent); }
.editeur-carte.en-mode .leaflet-container, .editeur-carte.en-mode.leaflet-container { cursor: crosshair; }
.ed-mode { background: var(--attention-fond); color: var(--attention); padding: 6px 10px; border-radius: 8px; font-size: 13px; margin: 8px 0; }
.ed-brouillon { background: var(--neutre-fond); border-radius: 8px; padding: 4px 10px; margin: 8px 0; }
.ed-liste { list-style: none; padding: 0; margin: 4px 0; font-size: 13px; }
.ed-liste li { padding: 3px 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ed-liste a { text-decoration: none; overflow-wrap: anywhere; }
.mk { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff;
box-shadow: 0 0 0 1px rgba(0,0,0,.35); vertical-align: middle; }
.mk.photo { background: #ef4444; }
.mk.video { background: #2563eb; }
.mk.deplace { border-color: #f59e0b; box-shadow: 0 0 0 2px #f59e0b; }
.leaflet-marker-draggable .mk { cursor: grab; }
.ed-popup { max-width: 240px; font-size: 12px; }
.ed-popup img { display: block; max-width: 240px; max-height: 180px; border-radius: 6px; margin-bottom: 4px; }
.ed-popup button { margin-top: 6px; }
@media (max-width: 800px) {
.editeur { grid-template-columns: 1fr; }
.editeur-panneau { max-height: none; }
.editeur-carte { height: 60vh; }
}
/* Compression des vidéos (onglet Générer) */
.encart.compression table { background: transparent; border: none; margin-bottom: 6px; }
.encart.compression td div { margin: 2px 0; }
/* Aide */
.bouton-aide { font-size: 13px; font-weight: 700; padding: 1px 8px; border-radius: 99px; vertical-align: middle;
color: var(--accent); border-color: var(--accent); background: transparent; }
.onglet-aide { display: flex; justify-content: flex-end; margin: -6px 0 4px; }
.onglet-aide .bouton-aide { font-weight: 600; }
.aide-panneau { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 2500;
background: var(--carte); border-left: 1px solid var(--bord); box-shadow: -8px 0 24px rgba(0,0,0,.15);
overflow-y: auto; padding: 14px 22px 30px; }
.aide-panneau[hidden] { display: none; }
.aide-fermer { position: sticky; top: 0; float: right; z-index: 1; }
.aide-texte { line-height: 1.55; }
.aide-texte h1 { font-size: 21px; margin-top: 4px; }
.aide-texte h2 { font-size: 16px; margin: 22px 0 6px; }
.aide-texte table { font-size: 13px; margin: 8px 0; }
.aide-texte th, .aide-texte td { padding: 5px 8px; }
.aide-texte pre { background: var(--code); padding: 8px 10px; border-radius: 8px; overflow-x: auto; font-size: 12px; }
.aide-texte pre code { background: none; padding: 0; }
.aide-texte li { margin: 3px 0; }
.aide-pied { border-top: 1px solid var(--bord); margin-top: 20px; padding-top: 10px; font-size: 13px; }
.page-aide { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.aide-sommaire { position: sticky; top: 70px; background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 4px 14px 10px; }
.aide-sommaire h2 { font-size: 15px; margin: 10px 0 6px; }
.aide-sommaire ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.aide-sommaire li a { display: block; padding: 4px 6px; border-radius: 6px; text-decoration: none; color: var(--texte); }
.aide-sommaire li a.actif { background: var(--neutre-fond); font-weight: 600; }
.page-aide .aide-texte { background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 6px 26px 20px; max-width: 760px; }
@media (max-width: 800px) { .page-aide { grid-template-columns: 1fr; } .aide-sommaire { position: static; } }
@media (min-width: 1200px) { body.aide-ouverte main, body.aide-ouverte footer { margin-right: 470px; } }