/* ──────────────────────────────── */
/* 1. Bouton flottant “chat”       */
/* ──────────────────────────────── */
.chat-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: var(--orange);       /* couleur identitaire HomeBags */
    color: #ffffff;
    font-size: 28px;
    line-height: 56px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 10000;
  }
  .chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }
  
  /* ──────────────────────────────── */
  /* 2. Fenêtre de chat (cachée par défaut) */
  /* ──────────────────────────────── */
  .chat-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 420px;
    max-height: 550px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 10000;
  }
  .chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  /* ──────────────────────────────── */
  /* 3. Header du chat                 */
  /* ──────────────────────────────── */
  .chat-header {
    background-color: var(--shark);
    color: #ffffff;
    padding: 12px 16px;
    font-family: var(--font-family-inter);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .chat-close {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
  }
  
  /* ──────────────────────────────── */
  /* 4. Conteneur des messages         */
  /* ──────────────────────────────── */
  .chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    font-family: var(--font-family-inter);
    font-size: 14px;
    line-height: 1.4;
    background-color: #f9f9f9;
  }
  
  /* Styles pour chaque bulle de conversation */
  .chat-messages .user-message,
  .chat-messages .bot-message {
    margin-bottom: 10px;
    word-wrap: break-word;
  }
  .chat-messages .user-message {
    text-align: right;
    color: #ffffff;
    background-color: var(--orange);
    display: inline-block;
    padding: 6px 10px;
    border-radius: 12px 12px 0 12px;
    font-size: 14px;
  }
  .chat-messages .bot-message {
    text-align: left;
    color: #1C2831;  /* couleur “shark” */
    background-color: #e0e0e0;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 12px 12px 12px 0;
    font-size: 14px;
  }
  
  /* ──────────────────────────────── */
  /* 5. Formulaire en bas de la fenêtre */
  /* ──────────────────────────────── */
  .chat-form {
    display: flex;
    border-top: 1px solid #ddd;
  }
  .chat-form input[type="text"] {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-family: var(--font-family-inter);
    font-size: 14px;
  }
  .chat-form input[type="text"]:focus {
    outline: none;
  }
  .chat-form button {
    background-color: var(--orange);
    color: #ffffff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    font-family: var(--font-family-inter);
    font-size: 14px;
    transition: background-color 0.2s ease;
  }
  .chat-form button:hover {
    background-color: #e05500; /* orange plus foncé au survol */
  }
  
  /* ──────────────────────────────── */
  /* 6. Scroll-bar (optionnel)        */
  /* ──────────────────────────────── */
  .chat-messages::-webkit-scrollbar {
    width: 6px;
  }
  .chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }
  .chat-messages::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 3px;
  }
  
/* ──────────────────────────────────────── */
/* 7. Styles pour les suggestions           */
/* ──────────────────────────────────────── */
.chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding: 0 12px;
}

/* Les boutons à l’intérieur d’un .chat-suggestions */
.chat-suggestions .suggestion-btn {
    background-color: #f1f1f1;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-family: var(--font-family-inter);
    font-size: 13px;
    color: var(--shark);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.chat-suggestions .suggestion-btn:hover {
    background-color: #e0e0e0;
}

/* Si on veut masquer tout le bloc .chat-suggestions */
.chat-suggestions.hidden {
    display: none;
}

  