  .chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00b2ff 0%, #006aff 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 106, 255, 0.3);
    z-index: 10000;
    transition: all 0.3s ease;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .chat-toggle img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    /* filter: brightness(0) invert(1); */
  }

  .chat-container {
    display: none; /* Initial state is hidden */
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px; /* Slightly reduced width */
    height: 450px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 9999;
    overflow: hidden;
    flex-direction: column;
  }

  .chat-header {
    padding: 15px;
    background: linear-gradient(135deg, #00b2ff 0%, #006aff 100%);
    color: white;
    font-weight: 500;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .chat-header-title {
    flex: 1;
  }

  .chat-header-actions {
    display: flex;
    gap: 10px;
  }

  .header-button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-button:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .header-button img {
    width: 12px; /* Réduction de la taille des icônes */
    height: 12px;
    filter: brightness(0) invert(1);
  }

  .chat-container.minimized {
    height: 60px;
  }

  .chat-container.maximized {
    width: 80%; /* Élargissement plus important sur desktop */
    height: 80vh;
    max-width: 900px;
    max-height: 800px;
  }

  .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #e5ddd5;
    position: relative; /* Pour le positionnement absolu du message de bienvenue */
  }

  .chat-input-container {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .chat-container textarea {
    width: calc(100% - 24px);
    min-height: 20px;
    max-height: 100px;
    resize: none;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 14px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin: 0;
    font-family: inherit;
  }

  .chat-container button {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); /* Nouveau bleu plus moderne */
    color: white;
    padding: 8px;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
  }

  .chat-container button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  }

  .response {
    background: white;
    padding: 8px 12px;
    border-radius: 12px;
    margin: 8px 0;
    max-width: 80%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .response a {
    word-break: break-all;
    color: #006aff;
    text-decoration: none;
  }

  .response a:hover {
    text-decoration: underline;
  }

  .user-message {
    background: #4DD0E1 ;
    padding: 8px 12px;
    border-radius: 12px;
    margin: 8px 0;
    max-width: 80%;
    margin-left: auto;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .welcome-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #64748b;
    font-size: 15px;
    padding: 0 15px;
    width: calc(100% - 40px); /* Utilise la largeur disponible avec une marge */
    max-width: 260px; /* Limite la largeur maximale */
    z-index: 1;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
    line-height: 1.4;
    font-weight: 400;
    background: none;
    box-shadow: none;
    overflow-wrap: break-word; /* Permet le retour à la ligne des mots longs */
    word-break: break-word; /* Assure qu'aucun mot ne déborde */
  }

  .welcome-message::before {
    content: '👋';
    display: block;
    font-size: 22px;
    margin-bottom: 6px;
    animation: wave 1s ease-in-out;
  }

  @keyframes wave {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
    100% { transform: rotate(0deg); }
  }