:root { color-scheme: dark; font-family: system-ui, sans-serif; --fond: #0b1228; --carte: #131d3d; --bouton: #1d2a52; --jaune: #ffd60a; --texte2: #c8d0e6; }
body { margin: 0; background: var(--fond); color: #fff; }
main { box-sizing: border-box; width: 100%; max-width: 520px; margin: 0 auto; padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
h1 { font-size: 1.4rem; margin: 6px 0 0; text-align: center; }
h2 { font-size: 1.15rem; margin: 4px 0 0; }
p { margin: 0; color: var(--texte2); line-height: 1.4; }
a { color: var(--jaune); }
.bouton { display: block; width: 100%; box-sizing: border-box; padding: 16px; border: 0; border-radius: 14px; font-size: 1.1rem; font-weight: 600; text-align: center; background: var(--jaune); color: var(--fond); cursor: pointer; text-decoration: none; }
.bouton.second { background: var(--bouton); color: #fff; }
.bouton.petit { padding: 10px 12px; font-size: .95rem; width: auto; display: inline-block; }
.carte { background: var(--carte); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
label.champ { display: flex; flex-direction: column; gap: 6px; font-size: .95rem; color: var(--texte2); }
input, textarea, select { font: inherit; font-size: 1.05rem; padding: 12px; border-radius: 10px; border: 1px solid #2c3b6e; background: #0e1733; color: #fff; }
textarea { min-height: 70px; resize: vertical; }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.doc { position: relative; border: 2px dashed #2c3b6e; border-radius: 12px; min-height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; font-size: .85rem; padding: 6px; cursor: pointer; overflow: hidden; }
.doc b { font-size: .95rem; }
.doc.ok { border-style: solid; border-color: #4cd07d; }
.doc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.doc span, .doc b { position: relative; }
.etat { font-size: .95rem; padding: 10px 12px; border-radius: 10px; background: #102a1c; color: #b9f3cf; }
.etat.attente { background: #2a2410; color: #ffe9a3; }
.alerte { color: #ffb4a8; }
.visee { position: relative; width: 100%; aspect-ratio: 3 / 4; background: #000; border-radius: 14px; overflow: hidden; }
.visee video { width: 100%; height: 100%; object-fit: cover; }
.visee .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .25s; }
.visee .compteur { position: absolute; top: 10px; left: 10px; background: #000a; padding: 4px 10px; border-radius: 20px; font-weight: 600; }
.declencheur { width: 84px; height: 84px; border-radius: 50%; border: 6px solid #fff; background: var(--jaune); margin: 0 auto; display: block; cursor: pointer; }
.declencheur:active { transform: scale(.92); }
.bande { display: flex; gap: 6px; overflow-x: auto; }
.bande img { height: 64px; border-radius: 8px; flex: none; }
.voiture { display: flex; gap: 10px; align-items: center; text-decoration: none; color: #fff; }
.voiture img, .voiture .vide { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--bouton); flex: none; }
.voiture div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.voiture small { color: var(--texte2); }
.ligne { display: flex; gap: 8px; flex-wrap: wrap; }
.ligne > * { flex: 1; }
[hidden] { display: none !important; }
section { display: flex; flex-direction: column; gap: 14px; }
a.etat { display: block; text-decoration: none; }
.carte.voiture { flex-direction: row; }
.doc.grand { min-height: 150px; font-size: 1.1rem; }
.doc.grand b { font-size: 1.2rem; }
.etapes { text-align: center; font-size: .9rem; margin-bottom: -8px; }
.visee .consigne { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; background: linear-gradient(transparent, #000c); font-size: 1.15rem; font-weight: 700; text-align: center; }
