/* Nova Assistant - Elite Voice Interface */

:root {
    --nova-primary: #00d2ff;
    --nova-secondary: #3a7bd5;
    --nova-glass: rgba(255, 255, 255, 0.1);
    --nova-blur: blur(25px);
}

/* Floating Nova Button */
.nova-launcher-btn {
    position: fixed;
    bottom: 95px; /* Above mobile bottom nav */
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--nova-primary), var(--nova-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 210, 255, 0.3);
    cursor: pointer;
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: novaPulse 2s infinite;
}

.nova-launcher-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 40px rgba(0, 210, 255, 0.5);
}

.nova-launcher-btn i {
    color: white;
    font-size: 1.6rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@keyframes novaPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 210, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

/* Nova Overlay Modal */
.nova-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: var(--nova-blur);
    -webkit-backdrop-filter: var(--nova-blur);
    z-index: 2000;
    display: none; /* Controlled by JS */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
    animation: novaFadeIn 0.5s ease-out;
}

@keyframes novaFadeIn {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
}

.nova-close-btn {
    position: absolute;
    top: 40px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s;
}

.nova-close-btn:hover {
    color: white;
}

.nova-avatar-center {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.2) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 40px;
}

.nova-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--nova-primary) 0%, transparent 70%);
    opacity: 0.3;
    animation: novaGlowBreath 3s infinite ease-in-out;
}

@keyframes novaGlowBreath {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.nova-visualizer {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 60px;
}

.nova-bar {
    width: 6px;
    height: 10px;
    background: white;
    border-radius: 10px;
    transition: height 0.1s ease;
}

/* Speaking / Listening States */
.nova-overlay.speaking .nova-bar { animation: novaWave 1.2s infinite ease-in-out; }
.nova-overlay.listening .nova-bar { animation: novaWave 0.6s infinite ease-in-out; background: var(--nova-primary); }

@keyframes novaWave {
    0%, 100% { height: 10px; }
    50% { height: 50px; }
}

.nova-bar:nth-child(1) { animation-delay: 0.1s; }
.nova-bar:nth-child(2) { animation-delay: 0.2s; }
.nova-bar:nth-child(3) { animation-delay: 0.3s; }
.nova-bar:nth-child(4) { animation-delay: 0.4s; }
.nova-bar:nth-child(5) { animation-delay: 0.3s; }
.nova-bar:nth-child(6) { animation-delay: 0.2s; }
.nova-bar:nth-child(7) { animation-delay: 0.1s; }

.nova-status-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nova-transcript {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    max-width: 600px;
    min-height: 80px;
    line-height: 1.3;
    padding: 0 20px;
}

.nova-response {
    font-size: 1.4rem;
    color: var(--nova-primary);
    margin-top: 30px;
    text-align: center;
    max-width: 500px;
    font-weight: 500;
    font-style: italic;
}

.nova-hint {
    position: absolute;
    bottom: 40px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Elite Mini Toggle (Facturation) */
.elite-mini-toggle {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    width: 140px; /* Petit et discret */
    margin-top: 5px;
}
.toggle-option {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.toggle-option.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 155, 179, 0.2);
}
