body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #003366;
    color: #fff;
    padding: 10px 20px;
}

.topbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
}

.main-container {
    padding: 20px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.client-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.equipments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.equipment-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fafafa;
}

.equipment-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.equipment-name {
    font-weight: bold;
    margin-left: 8px;
}

.led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.led.green { background: #28a745; }
.led.red   { background: #dc3545; }
.led.grey  { background: #6c757d; }

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #003366;
}

.login-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 320px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.login-card h1 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.login-card label {
    display: block;
    margin-top: 10px;
}

.login-card input {
    width: 100%;
    padding: 8px;
    margin-top: 3px;
    box-sizing: border-box;
}

.login-card button {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    background: #003366;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.alert.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.logo-ddv {
    height: 32px;
    margin-right: 10px;
}

.topbar-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-monitoring {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.hero-monitoring h1 {
    margin-top: 0;
}

.hero-actions {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background: #003366;
    color: #fff;
}

.btn-secondary {
    background: #e0e6f0;
    color: #003366;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.hero-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* LED supplémentaires */
.led.orange { background: #fd7e14; }  /* UP mais lent */

/* Mini-map client */
.client-mini-map {
    margin-top: 4px;
    margin-bottom: 10px;
}

.client-summary-text {
    font-size: 0.9rem;
    color: #555;
}

.mini-dot {
    margin-right: 4px;
    transform: scale(0.9);
}

/* Bloc info sur la page historique */
.equipment-info-block {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.legend {
    margin-top: 10px;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-right {
        margin-top: 5px;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .equipments-grid {
        grid-template-columns: 1fr;
    }

    .main-container {
        padding: 10px;
    }
}

