body {
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background-color: transparent; /* Transparence pour voir la vidéo si elle est derrière */
}

/* Force le renderer Three.js à être devant */
canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

/* Force la vidéo webcams à être au fond */
#arjs-video {
    z-index: 1 !important;
}

/* Le canevas AR sera géré par AR.js/Three.js directement */

/* Interface UI par-dessus le flux vidéo */
#overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none; /* Laisser passer les clics si besoin */
    z-index: 100;
}

#info {
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    max-width: 80%;
}

#controls {
    display: flex;
    gap: 15px;
    pointer-events: auto; /* Réactiver les clics pour les boutons */
}

.img-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    background-color: rgba(255,255,255,0.3);
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.img-btn.active {
    background-color: #007bff;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0,123,255,0.5);
}
