/* ============================================
   DIAGIA - CORRECTIFS CSS FINAUX
   A ajouter APRES styles.css
   ============================================ */

/* CORRECTIF 1: Creneaux horaires lisibles */
select {
    background-color: rgba(30, 30, 50, 0.8) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

select option {
    background-color: #1a1f2e !important;
    color: white !important;
    padding: 0.75rem !important;
}

/* Forcer pour tous les navigateurs */
select option:hover {
    background-color: #2a2f3e !important;
}

/* CORRECTIF 2: Chatbot mobile optimise */
@media (max-width: 768px) {
    .chatbot {
        width: calc(100% - 2rem) !important;
        right: 1rem !important;
        left: 1rem !important;
        bottom: 1rem !important;
        max-height: 600px !important;
    }
    
    .chatbot.minimized {
        width: auto !important;
        max-width: 200px !important;
        right: 1rem !important;
        left: auto !important;
        bottom: 1rem !important;
        max-height: 70px !important;
    }
    
    .chatbot.minimized .chatbot-body,
    .chatbot.minimized .chatbot-input {
        display: none !important;
    }
    
    .chatbot-header {
        cursor: pointer;
        padding: 1rem !important;
    }
}

/* CORRECTIF 3: Chatbot desktop - permettre reduction */
.chatbot {
    transition: all 0.3s ease !important;
}

.chatbot.minimized {
    max-height: 70px !important;
}

.chatbot.minimized .chatbot-body,
.chatbot.minimized .chatbot-input {
    display: none !important;
}

/* CORRECTIF 4: Animation typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-8px);
    }
}

/* CORRECTIF 5: Texte anime du telephone */
.typed-text {
    font-size: 0.75rem;
    line-height: 1.4;
    color: white;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CORRECTIF 6: Bouton toggle chatbot visible */
.chatbot-header {
    cursor: pointer !important;
    user-select: none !important;
}

.chatbot-header:hover {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
}

/* CORRECTIF 7: S'assurer que le chatbot est toujours visible */
.chatbot {
    display: flex !important;
    z-index: 9999 !important;
}
