body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Navigation */
#main-nav {
    background: #2c3e50;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-logo {
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-buttons button {
    background: #34495e;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 5px;
    transition: 0.3s;
}

.nav-buttons button:hover {
    background: #1abc9c;
}

/* Onglets */
.tab-content {
    display: none;
    height: 100%;
    width: 100%;
}

.tab-content.active {
    display: flex;
}

/* Sidebar & Carte */
#sidebar {
    width: 320px;
    background: #f8f9fa;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    padding: 15px;
    overflow-y: auto;
}

#map {
    flex-grow: 1;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.map-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 10px;
}

.map-controls button {
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    font-size: 0.8rem;
}

#heat-btn {
    background: #e67e22;
}

#export-btn {
    background: #3498db;
}

/* Liste des équipements */
.device-card {
    background: white;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid #1abc9c;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.device-card:hover {
    background: #f0f7ff;
}

.device-card code {
    background: #eee;
    font-size: 0.8rem;
    padding: 2px 5px;
}

/* Formulaire */
.form-container {
    max-width: 500px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-container label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #444;
}

input {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.input-with-btn {
    display: flex;
    gap: 5px;
}

.input-with-btn button {
    background: #9b59b6;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.coords-group {
    background: #f0f2f5;
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
}

.coords-row {
    display: flex;
    gap: 5px;
}

#geo-btn {
    width: 100%;
    background: #34495e;
    color: white;
    border: none;
    padding: 8px;
    margin-top: 5px;
    border-radius: 4px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 1rem;
    cursor: pointer;
}

.hint {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 10px;
}