/* ---- Assistant FAQ widget (liste question/réponse) ---- */
.faqbot-btn {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 900;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.25rem; border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--gold, #C4933F), var(--gold-2, #E0BA6E));
  color: #17120a; font-family: var(--font-sans, "Inter", sans-serif); font-weight: 600; font-size: .95rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(224,186,110,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.faqbot-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(0,0,0,.55); }
.faqbot-btn svg { flex: none; }
.faqbot-btn.is-open { transform: scale(.92); opacity: .85; }

.faqbot-panel {
  position: fixed; right: 1.4rem; bottom: 5.4rem; z-index: 901;
  width: 380px; max-width: calc(100vw - 2rem); height: 560px; max-height: calc(100vh - 7.5rem);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface, #100E0A); color: var(--text, #E7E0D2);
  border: 1px solid var(--line, rgba(216,179,104,.2)); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  font-family: var(--font-sans, "Inter", sans-serif);
  animation: faqbot-in .22s ease;
}
/* the panel is collapsed by default; [hidden] must win over display:flex */
.faqbot-panel[hidden] { display: none; }
@keyframes faqbot-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.faqbot-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--line, rgba(216,179,104,.15));
  background: linear-gradient(180deg, rgba(224,186,110,.08), transparent);
}
.faqbot-head strong { display: block; color: var(--heading, #F6F2EA); font-size: 1rem; font-weight: 600; }
.faqbot-head span { display: block; color: var(--gold-2, #E0BA6E); font-size: .78rem; margin-top: .1rem; }
.faqbot-close { background: none; border: none; color: var(--muted, #A99E8C); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 .2rem; transition: color .2s; }
.faqbot-close:hover { color: var(--heading, #F6F2EA); }

.faqbot-body { flex: 1; overflow-y: auto; padding: 1rem 1.1rem 1.2rem; }
.faqbot-body::-webkit-scrollbar { width: 8px; }
.faqbot-body::-webkit-scrollbar-thumb { background: rgba(224,186,110,.25); border-radius: 8px; }

.faqbot-intro { margin: 0 0 1rem; font-size: .85rem; color: var(--muted, #A99E8C); }

.faqbot-cat { margin-bottom: 1.2rem; }
.faqbot-cat h4 {
  margin: 0 0 .55rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-2, #E0BA6E);
}

.faqbot-item { border: 1px solid var(--line, rgba(216,179,104,.16)); border-radius: 12px; margin-bottom: .5rem; overflow: hidden; background: rgba(224,186,110,.03); }
.faqbot-item.open { border-color: rgba(224,186,110,.4); background: rgba(224,186,110,.06); }
.faqbot-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  text-align: left; cursor: pointer; font-family: inherit; font-size: .9rem; line-height: 1.4; font-weight: 500;
  padding: .8rem .9rem; background: none; border: none; color: var(--heading, #F6F2EA);
}
.faqbot-q .faqbot-chev { flex: none; color: var(--gold-2, #E0BA6E); transition: transform .2s ease; }
.faqbot-item.open .faqbot-q .faqbot-chev { transform: rotate(180deg); }
.faqbot-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faqbot-item.open .faqbot-a { max-height: 460px; }
.faqbot-a p { margin: 0; padding: 0 .9rem .9rem; font-size: .88rem; line-height: 1.55; color: var(--text, #E7E0D2); }

.faqbot-foot { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .4rem; padding-top: 1rem; border-top: 1px solid var(--line, rgba(216,179,104,.14)); }
.faqbot-foot a {
  flex: 1; text-align: center; min-width: 130px; padding: .6rem .8rem; border-radius: 10px; font-size: .84rem; font-weight: 500;
  text-decoration: none; color: #17120a; background: linear-gradient(135deg, var(--gold, #C4933F), var(--gold-2, #E0BA6E));
  transition: transform .15s ease;
}
.faqbot-foot a:last-child { color: var(--heading, #F6F2EA); background: transparent; border: 1px solid var(--line, rgba(216,179,104,.3)); }
.faqbot-foot a:hover { transform: translateY(-1px); }

@media (max-width: 480px) {
  .faqbot-btn span { display: none; }
  .faqbot-btn { padding: .9rem; }
  .faqbot-panel { right: .6rem; left: .6rem; bottom: 4.8rem; width: auto; height: calc(100vh - 6.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .faqbot-panel { animation: none; }
  .faqbot-a, .faqbot-q .faqbot-chev, .faqbot-btn, .faqbot-foot a { transition: none; }
}
