/* ==========================================
   ALICE INTERACTIVE STYLE — CLEAN UI EDITION
========================================== */

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

body.alice-page {
    background:      radial-gradient(circle at center, #0f1c3f 0%, #050c1e 100%);
    min-height:      100vh;
    font-family:     'Outfit', sans-serif;
    display:         flex;
    align-items:     center;
    justify-content: center;
    color:           #fff;
    overflow:        hidden;
}

/* ── BOUTON FLOTTANT ── */
#alice-fab {
    position:        fixed !important;
    bottom:          95px !important;
    right:           20px !important;
    width:           60px !important;
    height:          60px !important;
    border-radius:   50% !important;
    border:          2px solid #d4af37 !important;
    background:      #0a192f !important;
    cursor:          pointer !important;
    z-index:         99999 !important;
    padding:         0 !important;
    box-shadow:      0 4px 15px rgba(0,0,0,0.5), 0 0 15px rgba(212,175,55,0.3) !important;
    display:         flex !important;
    align-items:     center !important;
    justify-content: center !important;
    pointer-events:  auto !important;
    transition:      transform 0.2s ease, box-shadow 0.2s ease !important;
}

#alice-fab:hover {
    transform:  scale(1.05) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 0 20px rgba(212,175,55,0.5) !important;
}

#alice-fab-avatar {
    width:         100% !important;
    height:        100% !important;
    border-radius: 50% !important;
    object-fit:    cover !important;
}

/* ── WIDGET PRINCIPAL ── */
.alice-live-container {
    position:        fixed !important;
    bottom:          95px !important;
    right:           20px !important;
    width:           380px !important;
    max-height:      560px !important;
    background:      rgba(10, 25, 47, 0.98) !important;
    border:          2px solid #d4af37 !important;
    border-radius:   20px !important;
    box-shadow:      0 15px 40px rgba(0,0,0,0.6) !important;
    display:         none;
    flex-direction:  column !important;
    overflow:        hidden !important;
    z-index:         100000 !important;
}

/* ── EN-TÊTE ── */
.alice-stage-header {
    display:         flex !important;
    justify-content: space-between !important;
    align-items:     center !important;
    padding:         14px 20px !important;
    background:      #112240 !important;
    border-bottom:   1px solid rgba(212,175,55,0.2) !important;
    flex-shrink:     0 !important;
}

.alice-stage-title {
    font-family: 'Outfit', sans-serif !important;
    font-size:   1.1rem !important;
    font-weight: 600 !important;
    color:       #d4af37 !important;
    display:     flex !important;
    align-items: center !important;
    gap:         10px !important;
}

.alice-live-dot {
    width:         8px !important;
    height:        8px !important;
    background:    #00ffcc !important;
    border-radius: 50% !important;
    box-shadow:    0 0 6px #00ffcc !important;
    flex-shrink:   0 !important;
}

.alice-live-container.waiting .alice-live-dot {
    background: #ffaa00 !important;
    box-shadow: 0 0 6px #ffaa00 !important;
    animation:  simplePulse 1s infinite alternate !important;
}

@keyframes simplePulse {
    from { opacity: 0.4; }
    to   { opacity: 1;   }
}

.alice-stage-close {
    display:         flex !important;
    align-items:     center !important;
    justify-content: center !important;
    background:      transparent !important;
    border:          none !important;
    color:           #8892b0 !important;
    font-size:       1.8rem !important;
    cursor:          pointer !important;
    z-index:         100001 !important;
    padding:         5px !important;
    transition:      color 0.2s ease !important;
    flex-shrink:     0 !important;
}

.alice-stage-close:hover { color: #d4af37 !important; }

/* ── ZONE CENTRALE ── */
.alice-stage-main {
    flex:           1 !important;
    display:        flex !important;
    flex-direction: column !important;
    overflow:       hidden !important;
    padding:        14px !important;
    min-height:     0 !important;
    background:     radial-gradient(circle at 50% 80%, rgba(212,175,55,0.04) 0%, transparent 70%) !important;
}

/* ── BULLE DE RÉPONSE ── */
#alice-bubble {
    flex:          1 !important;
    min-height:    100px !important;
    max-height:    320px !important;
    overflow-y:    auto !important;
    padding:       16px !important;
    font-size:     0.93rem !important;
    line-height:   1.7 !important;
    background:    rgba(255,255,255,0.05) !important;
    border-radius: 14px !important;
    word-break:    break-word !important;
    color:         #ccd6f6 !important;
}

/* ── ZONE DE SAISIE — TOUJOURS VISIBLE ── */
.alice-stage-footer {
    padding:        10px 14px !important;
    background:     #112240 !important;
    border-top:     1px solid rgba(212,175,55,0.15) !important;
    flex-shrink:    0 !important;
    display:        flex !important;
    flex-direction: column !important;
    gap:            6px !important;
}

.alice-input-box {
    display:       flex !important;
    align-items:   center !important;
    background:    #0a192f !important;
    border:        1px solid rgba(212,175,55,0.3) !important;
    border-radius: 24px !important;
    padding:       4px 6px 4px 14px !important;
    gap:           4px !important;
}

#alice-input {
    flex:           1 !important;
    background:     transparent !important;
    border:         none !important;
    outline:        none !important;
    color:          #fff !important;
    font-size:      0.9rem !important;
    padding:        6px 0 !important;
    display:        block !important;
    visibility:     visible !important;
    opacity:        1 !important;
    pointer-events: auto !important;
}

#alice-input::placeholder { color: #4c5773; }

/* ── BOUTON MICRO ── */
#alice-mic {
    width:           34px !important;
    height:          34px !important;
    border:          none !important;
    border-radius:   50% !important;
    background:      transparent !important;
    color:           #8892b0 !important;
    cursor:          pointer !important;
    display:         flex !important;
    align-items:     center !important;
    justify-content: center !important;
    font-size:       1rem !important;
    flex-shrink:     0 !important;
    transition:      color 0.2s, background 0.2s !important;
}

#alice-mic.recording {
    color:      #ff4444 !important;
    background: rgba(255,68,68,0.15) !important;
    animation:  micPulse 1s infinite !important;
}

@keyframes micPulse {
    0%   { box-shadow: 0 0 0 0   rgba(255,68,68,0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(255,68,68,0);   }
    100% { box-shadow: 0 0 0 0   rgba(255,68,68,0);   }
}

/* ── BOUTON ENVOYER ── */
#alice-send {
    width:           34px !important;
    height:          34px !important;
    border:          none !important;
    border-radius:   50% !important;
    background:      #d4af37 !important;
    color:           #0a192f !important;
    cursor:          pointer !important;
    display:         flex !important;
    align-items:     center !important;
    justify-content: center !important;
    flex-shrink:     0 !important;
    pointer-events:  auto !important;
}

.alice-brand-footer {
    text-align:     center !important;
    font-size:      0.65rem !important;
    color:          #4c5773 !important;
    letter-spacing: 0.5px !important;
}

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 480px) {
    .alice-live-container {
        width:      calc(100% - 30px) !important;
        max-height: 78vh !important;
        bottom:     85px !important;
        right:      15px !important;
    }
    #alice-fab {
        bottom: 85px !important;
        right:  15px !important;
    }
    #alice-bubble {
        max-height: 240px !important;
    }
}

/* ── PLACEHOLDER IMAGE CASSÉE ── */
.img-fallback {
    width:           100%;
    height:          180px;
    background:      var(--navy-blue);
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    gap:             8px;
    color:           #8892b0;
    font-size:       0.8rem;
}
.img-fallback i {
    font-size: 2.5rem;
    color:     rgba(212,175,55,0.3);
}

/* ======================================================== */
/* DEBUT : LABEL TEXTE PRES DE L'ICONE ALICE                */
/* ======================================================== */
#alice-fab-label {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold, #d4af37);
    color: var(--navy, #0a1128);
    font-size: 0.62rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}
/* ======================================================== */
/* FIN : LABEL TEXTE PRES DE L'ICONE ALICE                  */
/* ======================================================== */
