/* Widget d'assistance (bulle de chat) + popup newsletter — Aura Tech Lab */
.aa-help-fab {
  position: fixed;
  z-index: 15;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(17, 33, 60, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.aa-help-fab:hover,
.aa-help-fab:focus-visible {
  transform: translateY(-2px);
  background: var(--aqua-dark);
  border-color: var(--aqua-dark);
  outline: none;
}
.aa-help-fab svg {
  width: 22px;
  height: 22px;
}
.aa-help-fab .aa-help-fab-close {
  display: none;
}
.aa-help-fab[aria-expanded="true"] .aa-help-fab-open {
  display: none;
}
.aa-help-fab[aria-expanded="true"] .aa-help-fab-close {
  display: block;
}
.back-to-top {
  bottom: 84px;
}

.aa-help-panel {
  position: fixed;
  z-index: 16;
  right: 20px;
  bottom: 86px;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 40px));
  max-height: min(560px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 20px 50px rgba(17, 33, 60, 0.2);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.aa-help-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.aa-help-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  color: var(--white);
  background: var(--ink);
}
.aa-help-header .brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.aa-help-header-title {
  flex: 1;
  min-width: 0;
}
.aa-help-header-title strong {
  display: block;
  font: 700 14px var(--font-body);
}
.aa-help-header-title span {
  display: block;
  color: var(--aqua);
  font: 11px var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.aa-help-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  font-size: 18px;
  line-height: 1;
}
.aa-help-close:hover,
.aa-help-close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}
.aa-help-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.aa-help-pane[hidden] {
  display: none;
}
.aa-help-welcome h3 {
  margin: 0 0 4px;
  font: 22px/1.2 var(--font-display);
}
.aa-help-welcome p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.aa-help-card {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.aa-help-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font: 12px var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.aa-help-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  animation: aa-help-pulse 1.6s ease-in-out infinite;
}
@keyframes aa-help-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(8, 166, 160, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(8, 166, 160, 0); }
}
.aa-help-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  font: 700 13px var(--font-body);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.aa-help-cta:hover,
.aa-help-cta:focus-visible {
  background: var(--aqua-dark);
  border-color: var(--aqua-dark);
  outline: none;
}
.aa-help-row {
  display: block;
  width: 100%;
  padding: 14px 4px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.aa-help-row strong {
  display: block;
  font: 700 14px var(--font-body);
}
.aa-help-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.aa-help-row:hover strong,
.aa-help-row:focus-visible strong {
  color: var(--aqua-dark);
  outline: none;
}
.aa-help-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 12px var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.aa-help-back:hover,
.aa-help-back:focus-visible {
  color: var(--aqua-dark);
  outline: none;
}
.aa-help-pane h3 {
  margin: 0 0 6px;
  font: 20px var(--font-display);
}
.aa-help-pane > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.aa-help-form label {
  display: block;
  margin-bottom: 12px;
  font: 11px var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.aa-help-form input,
.aa-help-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  resize: vertical;
}
.aa-help-form input:focus,
.aa-help-form textarea:focus {
  border-color: var(--aqua-dark);
}
.aa-help-form button[type="submit"] {
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  font: 700 13px var(--font-body);
}
.aa-help-form button[type="submit"]:hover,
.aa-help-form button[type="submit"]:focus-visible {
  background: var(--aqua-dark);
  border-color: var(--aqua-dark);
  outline: none;
}
.aa-help-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.aa-help-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}
.aa-help-search svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.aa-help-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}
.aa-help-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aa-help-faq-item {
  border: 1px solid var(--line);
  padding: 10px 12px;
}
.aa-help-faq-item summary {
  cursor: pointer;
  font: 700 13px var(--font-body);
  list-style: none;
}
.aa-help-faq-item summary::-webkit-details-marker {
  display: none;
}
.aa-help-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--aqua-dark);
}
.aa-help-faq-item[open] summary::after {
  content: "–";
}
.aa-help-faq-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.aa-help-empty {
  color: var(--muted);
  font-size: 13px;
}
.aa-help-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--aqua-dark);
  font: 700 12px var(--font-body);
  text-decoration: underline;
}
.aa-help-tabs {
  display: flex;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.aa-help-tabs button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 10px var(--font-body);
}
.aa-help-tabs button svg {
  width: 18px;
  height: 18px;
}
.aa-help-tabs button[aria-selected="true"] {
  color: var(--aqua-dark);
}
@media (max-width: 480px) {
  .aa-help-panel {
    right: 12px;
    left: 12px;
    bottom: 82px;
    width: auto;
  }
  .aa-help-fab {
    right: 14px;
    bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .aa-help-status .dot {
    animation: none;
  }
}
