/* --- 1. BOUTON DECLENCHEUR (Même style doré élégant que ton site) --- */
.btn-chat-trigger {
    background-color: #c8a364 !important; /* Doré comme "Découvrir nos services" */
    color: #ffffff !important;
    padding: 16px 28px !important;
    border: none !important;
    border-radius: 50px !important; /* Bords très arrondis comme tes autres boutons */
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    max-width: 380px !important;
    margin: 10px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

.btn-chat-trigger:hover {
    background-color: #b59153 !important;
    transform: translateY(-2px) !important;
}

/* --- 2. CONTENEUR DU CHAT (Carte blanche moderne et lisible) --- */
.ia-chat-container {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    width: 100% !important;
    max-width: 380px !important;
    margin: 15px auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    color: #1a1a1a !important;
}

/* Masquer la boîte de dialogue si la classe hidden est présente */
.ia-chat-container.hidden {
    display: none !important;
}

/* En-tête du chat (Assistant virtuel + Croix pour fermer) */
.chat-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-weight: bold !important;
    color: #1a2530 !important;
    font-size: 16px !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 10px !important;
}

.btn-close {
    background: transparent !important;
    border: none !important;
    font-size: 22px !important;
    color: #888 !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

/* Champ de texte */
.ia-chat-container #champTexte {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1.5px solid #dcdcdc !important;
    border-radius: 12px !important;
    background-color: #f9f9f9 !important;
    color: #222222 !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.ia-chat-container #champTexte:focus {
    border-color: #c8a364 !important;
    background-color: #ffffff !important;
}

/* Alignement des boutons (Micro + Envoyer) */
.ia-chat-container .buttons-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    width: 100% !important;
}

/* Bouton Micro (Carré) */
.ia-chat-container #btnVocal {
    background-color: #f0f0f0 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Bouton Envoyer (Doré pour rappeler le thème) */
.ia-chat-container #btnEnvoyer {
    background-color: #1a2530 !important; /* Bleu nuit élégant comme le fond du site */
    color: #ffffff !important;
    border: none !important;
    height: 48px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    flex-grow: 1 !important;
    transition: background-color 0.2s !important;
}

.ia-chat-container #btnEnvoyer:hover {
    background-color: #c8a364 !important; /* Deviens doré au survol */
}

/* Zone de réponse de l'agent */
.ia-chat-container #reponseAgent {
    background-color: #f4f6f8 !important;
    border-radius: 10px !important;
    padding: 12px !important;
    color: #222222 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    border-left: 4px solid #c8a364 !important;
    text-align: left !important;
}

.ia-chat-container #reponseAgent:empty {
    display: none !important;
}
