* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0b0f17;
    color: #f1f5f9;
    padding: 24px;
    min-height: 100vh;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 24px auto;
    padding-bottom: 16px;
    border-bottom: 1px solid #1e293b;
}

.header-title h1 {
    font-size: 1.4rem;
    font-weight: 700;
}

.subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1e293b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #334155;
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
}

.status-badge.offline .dot {
    background-color: #ef4444;
}

/* Grille 3 Caméras Responsive */
.camera-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.camera-card {
    background: #151c28;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1e293b;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    position: relative;
}

.camera-title {
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #1e293b;
    color: #f8fafc;
}

.video-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #000;
}

.camera-stream {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Incrustation Glassmorphism en Overlay */
.camera-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid #38bdf8;
    border-radius: 8px;
    padding: 8px 12px;
    pointer-events: none;
}

.overlay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-row {
    margin-bottom: 4px;
}

.badge-live {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.cam-loc {
    font-size: 0.75rem;
    color: #94a3b8;
}

.data-row {
    font-family: monospace;
    font-size: 0.8rem;
    color: #38bdf8;
}

.info-label {
    color: #94a3b8;
    margin-right: 6px;
}
