/* ========================================
   CHATBOT IMMO TRANSAC - STYLES v3
   Assistante Virtuelle : Léa
   Estimation + Recherche IA + Contact
   ======================================== */

/* ========== BOUTON CHATBOT FLOTTANT ========== */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF1B8D 0%, #7B2CBF 100%);
    border: 4px solid rgba(255, 27, 141, 0.6);
    box-shadow: 0 10px 40px rgba(255, 27, 141, 0.6), 0 0 0 0 rgba(255, 27, 141, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: all 0.3s ease;
    animation: chatbot-pulse 2.5s infinite;
    overflow: hidden;
    padding: 0;
}
.chatbot-toggle img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
    opacity: 0; transition: opacity 0.3s ease;
}
.chatbot-toggle img.loaded { opacity: 1; }
.chatbot-toggle::before {
    content: "\01F4AC"; position: absolute; font-size: 2rem; opacity: 1; transition: opacity 0.3s ease;
}
.chatbot-toggle.image-loaded::before { opacity: 0; }
.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(255, 27, 141, 0.8), 0 0 0 10px rgba(255, 27, 141, 0.2);
}
.chatbot-toggle.active { transform: scale(0.95); }

@keyframes chatbot-pulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(255, 27, 141, 0.6), 0 0 0 0 rgba(255, 27, 141, 0.4); }
    50% { box-shadow: 0 15px 50px rgba(255, 27, 141, 0.8), 0 0 0 15px rgba(255, 27, 141, 0); }
}

/* Badge notification */
.chatbot-badge {
    position: absolute; top: -5px; right: -5px;
    background: #00BCD4; color: white; font-size: 0.75rem; font-weight: 800;
    min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid white; animation: chatbot-badge-bounce 1s infinite;
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.5);
}
@keyframes chatbot-badge-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ========== FENÊTRE CHATBOT ========== */
.chatbot-container {
    position: fixed; bottom: 130px; right: 30px; width: 420px; max-height: 650px;
    background: linear-gradient(135deg, #0A0E27 0%, #1e293b 100%);
    border-radius: 25px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 27, 141, 0.3);
    z-index: 9997; display: none; flex-direction: column; overflow: hidden;
    border: 2px solid rgba(255, 27, 141, 0.4);
    animation: chatbot-slide-up 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.chatbot-container.active { display: flex; }

@keyframes chatbot-slide-up {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== HEADER ========== */
.chatbot-header {
    background: linear-gradient(135deg, #FF1B8D 0%, #7B2CBF 100%);
    padding: 20px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 2px solid rgba(255, 27, 141, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.chatbot-header-left { display: flex; align-items: center; gap: 15px; flex: 1; }
.chatbot-avatar {
    width: 55px; height: 55px; border-radius: 50%; background: white;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.5);
}
.chatbot-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chatbot-header-info { flex: 1; }
.chatbot-header-info h3 {
    color: white; font-size: 1.25rem; font-weight: 800; margin: 0 0 4px 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.chatbot-header-info p { color: rgba(255, 255, 255, 0.95); font-size: 0.85rem; margin: 0; font-weight: 500; }
.chatbot-close {
    background: rgba(255, 255, 255, 0.2); border: none; color: white;
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4em; transition: all 0.3s ease;
}
.chatbot-close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }

/* ========== MESSAGES ========== */
.chatbot-messages {
    flex: 1; padding: 25px 20px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 18px;
    background: rgba(0, 0, 0, 0.2); min-height: 400px;
}
.chatbot-messages::-webkit-scrollbar { width: 8px; }
.chatbot-messages::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 10px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #FF1B8D; border-radius: 10px; }

.chatbot-message { display: flex; gap: 12px; animation: chatbot-message-appear 0.4s ease; }
.chatbot-message.user { flex-direction: row-reverse; }

@keyframes chatbot-message-appear {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.chatbot-message-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #FF1B8D 0%, #7B2CBF 100%);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.1rem; flex-shrink: 0; overflow: hidden;
    border: 2px solid rgba(255, 27, 141, 0.4);
}
.chatbot-message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chatbot-message.user .chatbot-message-avatar {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    border-color: rgba(0, 188, 212, 0.4);
}

.chatbot-message-bubble {
    background: rgba(255, 255, 255, 0.08); padding: 14px 18px; border-radius: 18px;
    max-width: 75%; color: white; line-height: 1.6; font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.chatbot-message.user .chatbot-message-bubble {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    border-radius: 18px 18px 4px 18px;
}
.chatbot-message.bot .chatbot-message-bubble {
    background: rgba(255, 27, 141, 0.12);
    border: 1px solid rgba(255, 27, 141, 0.25);
    border-radius: 18px 18px 18px 4px;
}

/* Typing indicator */
.chatbot-typing {
    display: flex; gap: 6px; padding: 14px 18px;
    background: rgba(255, 27, 141, 0.12); border: 1px solid rgba(255, 27, 141, 0.25);
    border-radius: 18px; width: fit-content;
}
.chatbot-typing-dot {
    width: 9px; height: 9px; border-radius: 50%; background: #FF1B8D;
    animation: chatbot-typing-bounce 1.4s infinite;
}
.chatbot-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatbot-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-12px); }
}

/* ========== SUGGESTIONS ========== */
.chatbot-suggestion {
    background: rgba(255, 27, 141, 0.15); border: 2px solid rgba(255, 27, 141, 0.4);
    color: white; padding: 10px 18px; border-radius: 25px; font-size: 0.9rem;
    cursor: pointer; transition: all 0.3s ease; font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.chatbot-suggestion:hover {
    background: rgba(255, 27, 141, 0.25); border-color: #FF1B8D;
    transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 27, 141, 0.4);
}

/* ========== WELCOME ========== */
.chatbot-welcome { text-align: center; padding: 35px 25px; }
.chatbot-welcome-avatar {
    width: 90px; height: 90px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden;
    border: 4px solid rgba(255, 27, 141, 0.5); box-shadow: 0 8px 25px rgba(255, 27, 141, 0.4);
}
.chatbot-welcome-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chatbot-welcome h4 { color: white; font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.chatbot-welcome p { color: rgba(255, 255, 255, 0.8); font-size: 1rem; margin-bottom: 25px; line-height: 1.6; }

/* ========== ACTION BUTTONS ========== */
.lea-action-buttons {
    display: flex; flex-direction: column; gap: 10px; padding: 5px 0;
    animation: chatbot-message-appear 0.4s ease;
}
.lea-action-btn {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px;
    border-radius: 16px; border: 2px solid transparent; cursor: pointer;
    font-size: 0.95rem; font-weight: 700; color: white; transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}
.lea-action-btn i { font-size: 1.2em; width: 24px; text-align: center; }
.lea-action-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.lea-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.lea-action-estimation { background: linear-gradient(135deg, #FF6B35, #FF1B8D); border-color: rgba(255, 107, 53, 0.5); }
.lea-action-estimation:hover:not(:disabled) { border-color: #FF6B35; }
.lea-action-search { background: linear-gradient(135deg, #00BCD4, #0097A7); border-color: rgba(0, 188, 212, 0.5); }
.lea-action-search:hover:not(:disabled) { border-color: #00BCD4; }
.lea-action-visite { background: linear-gradient(135deg, #7B2CBF, #5B21B6); border-color: rgba(123, 44, 191, 0.5); }
.lea-action-visite:hover:not(:disabled) { border-color: #7B2CBF; }

/* ========== FORMULAIRE CONTACT ========== */
.chatbot-form {
    background: rgba(255, 255, 255, 0.05); padding: 20px; border-radius: 15px;
    border: 1px solid rgba(255, 27, 141, 0.2); margin-top: 15px;
}
.chatbot-form-group { margin-bottom: 15px; }
.chatbot-form-group label { display: block; color: rgba(255, 255, 255, 0.9); font-size: 0.9rem; margin-bottom: 8px; font-weight: 600; }
.chatbot-form-group input,
.chatbot-form-group textarea {
    width: 100%; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 27, 141, 0.3);
    border-radius: 12px; padding: 12px 16px; color: white; font-size: 0.95rem;
    outline: none; transition: all 0.3s ease; font-family: inherit;
}
.chatbot-form-group input::placeholder,
.chatbot-form-group textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.chatbot-form-group input:focus,
.chatbot-form-group textarea:focus {
    background: rgba(255, 255, 255, 0.15); border-color: #FF1B8D;
    box-shadow: 0 0 15px rgba(255, 27, 141, 0.3);
}
.chatbot-form-group textarea { resize: vertical; min-height: 50px; }
.chatbot-form-submit {
    background: linear-gradient(135deg, #FF1B8D, #7B2CBF); border: none; color: white;
    padding: 14px 28px; border-radius: 25px; cursor: pointer; font-size: 1rem;
    font-weight: 700; width: 100%; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 27, 141, 0.4);
}
.chatbot-form-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 27, 141, 0.6); }
.chatbot-form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ========== INPUT CHATBOT ========== */
.chatbot-input-container {
    padding: 18px 20px; background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 27, 141, 0.2);
    display: flex; gap: 12px; align-items: center;
}
.chatbot-input {
    flex: 1; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 27, 141, 0.3);
    border-radius: 25px; padding: 14px 20px; color: white; font-size: 0.95rem;
    outline: none; transition: all 0.3s ease;
}
.chatbot-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.chatbot-input:focus { background: rgba(255, 255, 255, 0.15); border-color: #FF1B8D; box-shadow: 0 0 15px rgba(255, 27, 141, 0.3); }
.chatbot-send-btn {
    background: linear-gradient(135deg, #00BCD4, #0097A7); border: none; color: white;
    width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2em; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}
.chatbot-send-btn:hover:not(:disabled) { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0, 188, 212, 0.6); }

/* ========== BADGE CONTEXTUEL ========== */
.chatbot-ctx-badge {
    display: flex; align-items: center; gap: 8px; padding: 8px 14px;
    background: rgba(255, 27, 141, 0.08); border-top: 1px solid rgba(255, 27, 141, 0.15);
    flex-wrap: wrap;
}
.chatbot-ctx-chip {
    background: rgba(255, 27, 141, 0.2); color: rgba(255, 255, 255, 0.9);
    padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600;
    border: 1px solid rgba(255, 27, 141, 0.3);
}
.chatbot-ctx-clear {
    background: none; border: none; color: rgba(255, 255, 255, 0.4);
    cursor: pointer; padding: 2px 4px; margin-left: auto; font-size: 0.7rem;
    transition: color 0.2s;
}
.chatbot-ctx-clear:hover { color: #FF1B8D; }

/* ========== CARTES DE BIENS ========== */
.lea-property-grid {
    display: flex; flex-direction: column; gap: 12px; padding: 5px 0;
    animation: chatbot-message-appear 0.4s ease;
}
.lea-property-card {
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 27, 141, 0.2);
    border-radius: 16px; overflow: hidden; transition: all 0.3s ease;
}
.lea-property-card:hover { border-color: rgba(255, 27, 141, 0.5); box-shadow: 0 4px 20px rgba(255, 27, 141, 0.2); }
.lea-property-photo { position: relative; height: 140px; overflow: hidden; }
.lea-property-photo img { width: 100%; height: 100%; object-fit: cover; }
.lea-property-type {
    position: absolute; top: 8px; left: 8px; background: rgba(0, 0, 0, 0.7);
    color: white; padding: 4px 10px; border-radius: 8px; font-size: 0.75rem;
    font-weight: 700; text-transform: uppercase;
}
.lea-property-statut {
    position: absolute; top: 8px; right: 8px;
    color: white; padding: 4px 10px; border-radius: 8px; font-size: 0.7rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    animation: lea-statut-pulse 2s ease-in-out infinite;
}
.lea-statut-option { background: linear-gradient(135deg, #f39c12, #e67e22); }
.lea-statut-compromis { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.lea-statut-loue { background: linear-gradient(135deg, #3498db, #2980b9); }
@keyframes lea-statut-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 2px 15px rgba(0,0,0,0.5); }
}
.lea-property-info { padding: 12px 14px; }
.lea-property-titre {
    color: white; font-size: 0.95rem; font-weight: 700; margin-bottom: 6px;
    line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lea-property-location { color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; margin-bottom: 6px; }
.lea-property-location i { color: #FF1B8D; margin-right: 4px; }
.lea-property-prix { color: #00BCD4; font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.lea-property-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.lea-property-specs span {
    color: rgba(255, 255, 255, 0.7); font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.08); padding: 3px 8px; border-radius: 6px;
}
.lea-property-specs span i { color: rgba(255, 27, 141, 0.7); margin-right: 3px; }
.lea-property-ref { color: rgba(255, 255, 255, 0.4); font-size: 0.75rem; margin-bottom: 10px; }
.lea-property-actions { display: flex; gap: 8px; }
.lea-btn-visite {
    flex: 1; background: linear-gradient(135deg, #7B2CBF, #5B21B6); border: none;
    color: white; padding: 8px 12px; border-radius: 10px; cursor: pointer;
    font-size: 0.8rem; font-weight: 700; transition: all 0.3s ease;
}
.lea-btn-visite:hover { transform: translateY(-1px); box-shadow: 0 3px 12px rgba(123, 44, 191, 0.5); }
.lea-btn-detail {
    flex: 1; background: rgba(0, 188, 212, 0.2); border: 1px solid rgba(0, 188, 212, 0.4);
    color: #00BCD4; padding: 8px 12px; border-radius: 10px; cursor: pointer;
    font-size: 0.8rem; font-weight: 700; text-decoration: none; text-align: center;
    transition: all 0.3s ease; display: inline-flex; align-items: center;
    justify-content: center; gap: 4px;
}
.lea-btn-detail:hover { background: rgba(0, 188, 212, 0.3); transform: translateY(-1px); }
.lea-post-search-actions {
    display: flex; flex-wrap: wrap; gap: 8px; padding: 5px 0;
    animation: chatbot-message-appear 0.4s ease;
}

/* ================================================================
   ESTIMATION - Inputs, boutons, selects, quick buttons, progress
   ================================================================ */

/* Progress bar dans le message */
.est-progress {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
    padding-bottom: 8px; border-bottom: 1px solid rgba(255, 27, 141, 0.2);
}
.est-progress span {
    font-size: 0.75rem; font-weight: 700; color: #FF1B8D;
    background: rgba(255, 27, 141, 0.15); padding: 3px 10px; border-radius: 10px;
}

/* Container d'input estimation */
.est-input-container {
    animation: chatbot-message-appear 0.4s ease; padding: 5px 0;
}

/* Boutons de choix (type, état, gamme, motif) */
.est-buttons {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.est-buttons-inline {
    grid-template-columns: 1fr 1fr;
}
.est-btn {
    background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 27, 141, 0.3);
    color: white; padding: 12px 14px; border-radius: 14px; cursor: pointer;
    font-size: 0.88rem; font-weight: 600; transition: all 0.3s ease;
    text-align: center; line-height: 1.3;
}
.est-btn:hover:not(:disabled) {
    background: rgba(255, 27, 141, 0.2); border-color: #FF1B8D;
    transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 27, 141, 0.3);
}
.est-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Pour les boutons avec 5 options (motif) → passer en 1 colonne */
.est-buttons:not(.est-buttons-inline) {
    grid-template-columns: 1fr;
}
@media (min-width: 380px) {
    .est-buttons:not(.est-buttons-inline) {
        grid-template-columns: 1fr 1fr;
    }
}

/* Row input + bouton submit */
.est-input-row {
    display: flex; gap: 8px; align-items: stretch;
}

/* Input estimation */
.est-input {
    flex: 1; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 27, 141, 0.3);
    border-radius: 14px; padding: 12px 16px; color: white; font-size: 0.95rem;
    outline: none; transition: all 0.3s ease; font-family: inherit;
    min-width: 0;
}
.est-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.est-input:focus {
    background: rgba(255, 255, 255, 0.15); border-color: #FF1B8D;
    box-shadow: 0 0 15px rgba(255, 27, 141, 0.3);
}

/* Select estimation */
.est-select {
    flex: 1; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 27, 141, 0.3);
    border-radius: 14px; padding: 12px 16px; color: white; font-size: 0.95rem;
    outline: none; transition: all 0.3s ease; font-family: inherit;
    appearance: none; cursor: pointer; min-width: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FF1B8D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 36px;
}
.est-select option { background: #1e293b; color: white; }
.est-select:focus {
    background-color: rgba(255, 255, 255, 0.15); border-color: #FF1B8D;
    box-shadow: 0 0 15px rgba(255, 27, 141, 0.3);
}

/* Bouton submit (check) */
.est-submit-btn {
    background: linear-gradient(135deg, #00BCD4, #0097A7); border: none; color: white;
    width: 48px; min-width: 48px; border-radius: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1em; transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 188, 212, 0.3);
}
.est-submit-btn:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 5px 18px rgba(0, 188, 212, 0.5); }
.est-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Quick buttons (valeurs rapides) */
.est-quick-buttons {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.est-quick-btn {
    background: rgba(0, 188, 212, 0.12); border: 1px solid rgba(0, 188, 212, 0.3);
    color: #00BCD4; padding: 6px 14px; border-radius: 20px; cursor: pointer;
    font-size: 0.82rem; font-weight: 600; transition: all 0.2s ease;
}
.est-quick-btn:hover:not(:disabled) {
    background: rgba(0, 188, 212, 0.25); border-color: #00BCD4;
    transform: translateY(-1px);
}
.est-quick-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Bouton Passer */
.est-skip-btn {
    background: none; border: none; color: rgba(255, 255, 255, 0.4);
    padding: 8px 0; cursor: pointer; font-size: 0.82rem; font-weight: 500;
    transition: color 0.2s; margin-top: 6px; text-decoration: underline;
    text-underline-offset: 3px;
}
.est-skip-btn:hover { color: rgba(255, 255, 255, 0.7); }

/* Bouton Revenir */
.est-back-btn {
    background: none; border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5); padding: 6px 14px; border-radius: 20px;
    cursor: pointer; font-size: 0.8rem; font-weight: 500; transition: all 0.2s;
    margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
}
.est-back-btn:hover { color: white; border-color: rgba(255, 255, 255, 0.3); }
.est-back-btn i { font-size: 0.7rem; }

/* Résultat estimation (succès/erreur) */
.est-success {
    text-align: center; padding: 10px 0;
}
.est-success p { margin: 8px 0; }
.est-success.est-error i { color: #f59e0b !important; }

/* Résumé bien dans visite flow */
.visite-bien-resume {
    background: rgba(0, 188, 212, 0.1);
    border-left: 3px solid #00BCD4;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Lists in bot messages */
.chatbot-message-bubble ul { margin: 8px 0; padding-left: 18px; }
.chatbot-message-bubble li { margin-bottom: 4px; }

/* ========== RESPONSIVE TABLETTE ========== */
@media (max-width: 768px) {
    .chatbot-container {
        bottom: 110px; right: 15px; left: 15px; width: auto; max-height: 550px;
        border-radius: 20px;
    }
    .chatbot-toggle { bottom: 20px; right: 20px; width: 70px; height: 70px; }
    .chatbot-header { padding: 16px; }
    .chatbot-avatar { width: 48px; height: 48px; }
    .chatbot-header-info h3 { font-size: 1.1rem; }
    .chatbot-header-info p { font-size: 0.8rem; }
    .chatbot-messages { padding: 20px 15px; min-height: 350px; }
    .chatbot-message-bubble { max-width: 80%; font-size: 0.9rem; padding: 12px 16px; }
    .chatbot-welcome { padding: 25px 20px; }
    .chatbot-welcome-avatar { width: 75px; height: 75px; }
    .chatbot-welcome h4 { font-size: 1.2rem; }
    .chatbot-welcome p { font-size: 0.95rem; }
    .chatbot-input-container { padding: 15px; }
    .chatbot-input { padding: 12px 18px; font-size: 0.9rem; }
    .chatbot-send-btn { width: 44px; height: 44px; }
    .lea-action-btn { padding: 12px 15px; font-size: 0.9rem; }
    .lea-property-photo { height: 120px; }
    .lea-property-info { padding: 10px 12px; }
    .lea-property-titre { font-size: 0.9rem; }
    .lea-property-prix { font-size: 1.05rem; }
    .est-btn { padding: 10px 12px; font-size: 0.85rem; }
    .est-input { padding: 10px 14px; }
    .est-select { padding: 10px 14px; }
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 480px) {
    .chatbot-container { bottom: 100px; max-height: 480px; right: 10px; left: 10px; }
    .chatbot-toggle { bottom: 15px; right: 15px; width: 65px; height: 65px; }
    .chatbot-header { padding: 14px; }
    .chatbot-avatar { width: 42px; height: 42px; }
    .chatbot-header-info h3 { font-size: 1rem; }
    .chatbot-messages { padding: 15px 12px; min-height: 300px; gap: 15px; }
    .chatbot-welcome { padding: 20px 15px; }
    .chatbot-welcome-avatar { width: 65px; height: 65px; }
    .chatbot-welcome h4 { font-size: 1.1rem; }
    .chatbot-welcome p { font-size: 0.9rem; }
    .chatbot-suggestion { padding: 8px 14px; font-size: 0.85rem; }
    .chatbot-form { padding: 15px; }
    .chatbot-form-group input { padding: 10px 14px; font-size: 0.9rem; }
    .lea-action-btn { padding: 11px 14px; font-size: 0.85rem; gap: 10px; }
    .lea-property-photo { height: 110px; }
    .lea-property-specs { gap: 5px; }
    .lea-property-specs span { font-size: 0.75rem; padding: 2px 6px; }
    .lea-property-actions { flex-direction: column; gap: 6px; }
    .est-buttons { grid-template-columns: 1fr; }
    .est-buttons-inline { grid-template-columns: 1fr 1fr; }
    .est-btn { padding: 10px; font-size: 0.82rem; }
    .est-quick-btn { padding: 5px 10px; font-size: 0.78rem; }
}

/* Mode paysage mobile */
@media (max-width: 768px) and (max-height: 500px) {
    .chatbot-container { max-height: 85vh; bottom: 80px; }
    .chatbot-messages { min-height: 250px; }
}
