/* ============================================================
   GTH-WA-WIDGET — Widget de qualification WhatsApp
   Design system Art Déco : guidetouristiquehongrie.com
   Palette : noir #0D0B09 · or #BF9B4E · ivoire #F5EFE0
   Polices : Bodoni Moda (titres) · Marcellus (accents) · Lato (texte)
   ============================================================ */

:root {
  --gthwa-noir: #0D0B09;
  --gthwa-or: #BF9B4E;
  --gthwa-or-clair: #D4B876;
  --gthwa-ivoire: #F5EFE0;
  --gthwa-font-titre: 'Bodoni Moda', Georgia, serif;
  --gthwa-font-accent: 'Marcellus', Georgia, serif;
  --gthwa-font-texte: 'Lato', Arial, sans-serif;
}

/* --- Bouton flottant (remplace .gth-wa-float) --- */
#gth-wa-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--gthwa-noir);
  border: 1px solid var(--gthwa-or);
  border-radius: 32px;
  color: var(--gthwa-ivoire);
  font-family: var(--gthwa-font-accent);
  font-size: 15px;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(13, 11, 9, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#gth-wa-launcher:hover {
  transform: translateY(-2px);
  border-color: var(--gthwa-or-clair);
  box-shadow: 0 6px 22px rgba(13, 11, 9, 0.45);
}

#gth-wa-launcher .gthwa-icon {
  font-size: 18px;
  line-height: 1;
}

#gth-wa-launcher.gthwa-hidden {
  display: none;
}

/* --- Panneau de conversation --- */
#gth-wa-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 78vh;
  display: none;
  flex-direction: column;
  border-radius: 20px;
  background: var(--gthwa-ivoire);
  border: 1px solid var(--gthwa-or);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(13, 11, 9, 0.4);
  font-family: var(--gthwa-font-texte);
}

#gth-wa-panel.gthwa-open {
  display: flex;
}

/* --- En-tête --- */
#gth-wa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--gthwa-noir);
  color: var(--gthwa-ivoire);
  border-bottom: 2px solid var(--gthwa-or);
}

#gth-wa-ava {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: var(--gthwa-or);
  color: var(--gthwa-noir);
  font-family: var(--gthwa-font-titre);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gth-wa-hname {
  font-family: var(--gthwa-font-accent);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.gthwa-h-sub {
  font-size: 12px;
  color: var(--gthwa-or-clair);
  margin-top: 2px;
}

#gth-wa-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--gthwa-ivoire);
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
}

#gth-wa-close:hover {
  opacity: 1;
}

/* --- Corps (messages + questions) --- */
#gth-wa-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#gth-wa-body::-webkit-scrollbar {
  width: 6px;
}
#gth-wa-body::-webkit-scrollbar-thumb {
  background: var(--gthwa-or);
  border-radius: 3px;
}

.gthwa-bot-msg {
  background: #fff;
  border: 1px solid rgba(191, 155, 78, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--gthwa-noir);
  max-width: 92%;
}

.gthwa-user-msg {
  align-self: flex-end;
  background: var(--gthwa-noir);
  color: var(--gthwa-ivoire);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13.5px;
  max-width: 80%;
}

.gthwa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gthwa-chip {
  background: #fff;
  border: 1px solid var(--gthwa-or);
  color: var(--gthwa-noir);
  font-family: var(--gthwa-font-texte);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.gthwa-chip:hover {
  background: var(--gthwa-or);
  color: var(--gthwa-noir);
}

.gthwa-chip.gthwa-skip {
  border-style: dashed;
  opacity: 0.75;
  font-style: italic;
}

.gthwa-input,
.gthwa-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(191, 155, 78, 0.5);
  border-radius: 10px;
  padding: 9px 11px;
  font-family: var(--gthwa-font-texte);
  font-size: 13.5px;
  color: var(--gthwa-noir);
  background: #fff;
}

.gthwa-textarea {
  min-height: 60px;
  resize: vertical;
}

.gthwa-input:focus,
.gthwa-textarea:focus {
  outline: none;
  border-color: var(--gthwa-or);
}

.gthwa-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- Bloc estimation --- */
.gthwa-estimation {
  border: 1px solid var(--gthwa-or);
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.gthwa-estimation-label {
  font-family: var(--gthwa-font-accent);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gthwa-or);
}

.gthwa-estimation-price {
  font-family: var(--gthwa-font-titre);
  font-size: 30px;
  color: var(--gthwa-noir);
  margin: 4px 0;
}

.gthwa-estimation-note {
  font-size: 11.5px;
  color: #6b6558;
  line-height: 1.4;
}

/* --- Bouton final --- */
.gthwa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-family: var(--gthwa-font-accent);
  font-size: 14.5px;
  text-decoration: none;
  padding: 13px 16px;
  border-radius: 10px;
  transition: filter 0.15s ease;
}

.gthwa-cta:hover {
  filter: brightness(0.95);
}

/* --- Pied --- */
#gth-wa-foot {
  padding: 10px 18px 14px;
  border-top: 1px solid rgba(191, 155, 78, 0.25);
  font-size: 10.5px;
  color: #8a8272;
  text-align: center;
}

@media (max-width: 420px) {
  #gth-wa-panel {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }
  #gth-wa-launcher {
    right: 12px;
    bottom: 12px;
  }
}
