@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.glass-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    max-width: 600px;
    width: 90%;
    transition: all 0.3s ease;
}

h1, h2 {
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

p {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.btn-primary {
    background: linear-gradient(45deg, #00d2ff, #3a7bd5);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.btn-primary:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #999;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

.btn-option {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.btn-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
}

#mic-feedback {
    margin-top: 20px;
    font-weight: 600;
    min-height: 24px;
}

/* ─── Widget caméra fixe ─── */
#camera-widget {
    display: none;
}

#camera-widget.visible {
    display: none;
}

#cam-front-wrapper,
#cam-back-wrapper {
    position: relative;
    width: 140px;
    height: 105px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(0, 210, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2), 0 4px 15px rgba(0, 0, 0, 0.4);
    background: #0a0a0a;
}

#cam-front,
#cam-back {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cam-label {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #e0e0e0;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.cam-live-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 6px #ff3b30;
    animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px #ff3b30; }
    50% { opacity: 0.4; box-shadow: 0 0 2px #ff3b30; }
}

/* Responsive : plus petit sur mobile */
@media (max-width: 600px) {
    #camera-widget {
        bottom: 10px;
        right: 10px;
        gap: 6px;
    }
    #cam-front-wrapper,
    #cam-back-wrapper {
        width: 100px;
        height: 75px;
        border-radius: 8px;
    }
}
