/* Bulle de l'assistant (assets/assistant.js) — mêmes couleurs et police que le site. */
.gg-bulle { position: fixed; z-index: 45; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px;
  background: var(--action, #4f6b30); color: #fff; font: 500 .92rem/1 Inter, system-ui, sans-serif; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.gg-bulle:hover { opacity: .92; }
body:has(.barre-visite) .gg-bulle { bottom: 96px; }
.gg-assistant-ouvert .gg-bulle { display: none; }

.gg-assistant { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 40px));
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--filet, rgba(0,0,0,.09)); border-radius: var(--rayon, 20px);
  box-shadow: 0 16px 48px rgba(0,0,0,.18); overflow: hidden; font-family: Inter, system-ui, sans-serif; }
.gg-assistant-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--filet, rgba(0,0,0,.09)); }
.gg-assistant-tete div { display: flex; flex-direction: column; line-height: 1.25; }
.gg-assistant-tete strong { font-weight: 600; font-size: .98rem; }
.gg-assistant-tete span { color: var(--gris, rgba(0,0,0,.58)); font-size: .78rem; }
.gg-assistant-fermer { border: 0; background: none; font-size: 1.7rem; line-height: 1; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: #000; }
.gg-assistant-fermer:hover { background: var(--doux, #f5f5f3); }

.gg-assistant-fil { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.gg-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.gg-msg p { margin: 0 0 .5em; } .gg-msg p:last-child { margin: 0; }
.gg-msg-assistant { align-self: flex-start; background: var(--doux, #f5f5f3); border-bottom-left-radius: 4px; }
.gg-msg-assistant a { color: var(--action, #4f6b30); }
.gg-msg-visiteur { align-self: flex-end; background: var(--action, #4f6b30); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.gg-attente { display: flex; gap: 4px; padding: 14px; }
.gg-attente span { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.35); animation: gg-point 1s infinite ease-in-out; }
.gg-attente span:nth-child(2) { animation-delay: .15s; } .gg-attente span:nth-child(3) { animation-delay: .3s; }
@keyframes gg-point { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .gg-attente span { animation: none; } }

.gg-assistant-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.gg-assistant-suggestions button { border: 1px solid var(--filet, rgba(0,0,0,.12)); background: #fff; border-radius: 999px; padding: 7px 12px; font: .82rem Inter, system-ui, sans-serif; cursor: pointer; }
.gg-assistant-suggestions button:hover { border-color: var(--action, #4f6b30); color: var(--action, #4f6b30); }

.gg-assistant-saisie { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--filet, rgba(0,0,0,.09)); }
.gg-assistant-saisie textarea { flex: 1; resize: none; border: 1px solid rgba(0,0,0,.16); border-radius: 14px; padding: 10px 12px; font: 16px/1.4 Inter, system-ui, sans-serif; max-height: 120px; }
.gg-assistant-saisie textarea:focus { outline: 2px solid var(--action, #4f6b30); outline-offset: 0; border-color: transparent; }
.gg-assistant-saisie button { border: 0; border-radius: 999px; padding: 11px 16px; background: var(--action, #4f6b30); color: #fff; font: 500 .88rem Inter, system-ui, sans-serif; cursor: pointer; }
.gg-assistant-saisie button:disabled { opacity: .5; cursor: wait; }
.gg-assistant-pied { margin: 0; padding: 0 14px 10px; font-size: .7rem; line-height: 1.4; color: var(--gris, rgba(0,0,0,.58)); }
.gg-assistant-pied a { color: inherit; }

@media (max-width: 640px) {
  .gg-bulle { right: 12px; bottom: 12px; padding: 12px 14px; }
  body:has(.barre-visite) .gg-bulle { bottom: 84px; }
  .gg-assistant { inset: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; }
}
@media print { .gg-bulle, .gg-assistant { display: none !important; } }
