* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #app { width: 100%; height: 100%; font-family: Inter, system-ui, -apple-system, sans-serif; background: #f8fafc; color: #0f172a; }
.boot { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #64748b; }
.spinner { width: 32px; height: 32px; border: 3px solid #e2e8f0; border-top-color: #3b82f6; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { max-width: 420px; margin: 0 auto; padding: 24px; text-align: center; }
.error-box h1 { font-size: 18px; margin-bottom: 8px; color: #0f172a; }
.error-box p { font-size: 14px; color: #64748b; line-height: 1.5; }
.layout { display: flex; flex-direction: column; height: 100%; position: relative; }
.topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 12px; background: rgba(255,255,255,.92); border-bottom: 1px solid #e2e8f0;
    z-index: 500; backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: #1e293b; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.brand-dot.off { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.2); }
.meta { font-size: 12px; color: #64748b; }
#map { flex: 1; min-height: 0; background: #e5e7eb; }

/* Markers / badges — même style que le manager Temps réel */
.custom-marker,
.plate-badge-container,
.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}
.plate-speed-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    white-space: nowrap;
}
.plate-badge {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.speed-badge {
    background: #22c55e;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.speed-badge.parked {
    background: #3B82F6;
}
