/* --- style.css ---
   Style premium minimaliste pour OmyMirror
*/

/* Mise en page globale */
body {
    margin: 0;
    padding: 0;
    background: black;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Conteneur principal */
#mirror-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Vidéo du miroir */
#camera-view {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.6s ease, transform 0.45s ease;
}

/* Indicateur vocal (cercle lumineux) */
#voice-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: rgba(0, 255, 200, 0.5);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#voice-indicator.listening {
    animation: pulse 1.2s ease-in-out infinite;
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translateX(-50%) scale(1.5);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.5;
    }
}

/* Commandes invisibles mais interactives */
#commands {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
}

#commands button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.35s ease, box-shadow 0.35s ease;
}

#commands button.highlight {
    background: rgba(0, 255, 200, 0.4);
    transform: scale(1.25);
    box-shadow: 0 0 18px rgba(0, 255, 200, 0.6);
}

/* Feedback vocal */
#voice-feedback {
    position: absolute;
    top: 40px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 22px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Effet flash lors de la capture */
.capture-flash {
    animation: flash 0.4s ease;
}

@keyframes flash {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}
#camera, #overlay {
    position: absolute;
    top: 0;
    left: 0;
}
#overlay {
    pointer-events: none;
}
