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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background-color: #1a1a1a;
}

.container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Carte à gauche */
.map-container {
    flex: 1;
    position: relative;
    background-color: #2c2c2c;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.info-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 250px;
}

.info-panel h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.info-panel ul {
    list-style: none;
    margin-bottom: 10px;
}

.info-panel li {
    padding: 5px 0;
    color: #555;
    font-size: 14px;
}

#gesture-status {
    padding: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

#gesture-status.active {
    background-color: #4CAF50;
    color: white;
}

/* Caméra à droite */
.camera-container {
    width: 640px;
    height: 100vh;
    position: relative;
    background-color: #000;
    overflow: hidden;
}

#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Miroir pour une meilleure UX */
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleX(-1); /* Miroir pour correspondre à la vidéo */
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .camera-container {
        width: 100%;
        height: 40vh;
    }

    .map-container {
        height: 60vh;
    }
}

/* Style pour le nouveau bouton micro */
#mic-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 4px;
    background-color: #007BFF;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

#mic-btn:hover {
    background-color: #0056b3;
}

#mic-btn.listening {
    background-color: #dc3545; /* Rouge pour indiquer l'écoute */
}