/* ═══════════════════════════════════════════════════════════
   Centre d'aide / FAQ — LexaMoon
═══════════════════════════════════════════════════════════ */

/* ── Fond animé ─────────────────────────────────────────── */
.faq-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.faq-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: faqOrbIn 1.2s ease forwards;
}
.faq-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,.35), transparent 70%);
  top: -180px; left: -120px;
  animation-delay: .1s;
  animation: faqOrbIn 1.2s .1s ease forwards, faqOrb1 20s 1.2s ease-in-out infinite alternate;
}
.faq-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(167,139,250,.2), transparent 70%);
  bottom: -100px; right: -80px;
  animation-delay: .3s;
  animation: faqOrbIn 1.2s .3s ease forwards, faqOrb2 24s 1.3s ease-in-out infinite alternate;
}
.faq-orb-3 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(99,102,241,.18), transparent 70%);
  top: 40%; left: 55%;
  animation: faqOrbIn 1.2s .5s ease forwards, faqOrb3 16s 1.5s ease-in-out infinite alternate;
}
@keyframes faqOrbIn {
  to { opacity: 1; }
}
@keyframes faqOrb1 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px,-30px) scale(1.1); }
}
@keyframes faqOrb2 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-30px,25px) scale(1.08); }
}
@keyframes faqOrb3 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-20px,-15px) scale(1.12); }
}

/* ── Layout principal ────────────────────────────────────── */
.faq-page {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
}

/* ── Hero ────────────────────────────────────────────────── */
.faq-hero {
  text-align: center;
  margin-bottom: 2.25rem;
  animation: faqHeroIn .8s cubic-bezier(.22,1,.36,1) both;
}
@keyframes faqHeroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.28);
  border-radius: 999px;
  padding: .3rem .9rem .3rem .65rem;
  margin-bottom: 1rem;
}
.faq-hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 10px rgba(167,139,250,.9);
  animation: faqPulse 2s ease-in-out infinite;
}
@keyframes faqPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: .7; }
}
.faq-hero-title {
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin: 0 0 .6rem;
}
.faq-hero-sub {
  color: var(--t2);
  font-size: 15px;
  margin: 0 0 1.5rem;
}

/* ── Barre de recherche ──────────────────────────────────── */
.faq-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
.faq-search-ico {
  position: absolute; left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--t3);
  pointer-events: none;
}
.faq-search-input {
  width: 100%; box-sizing: border-box;
  padding: .85rem 2.8rem .85rem 2.9rem;
  border-radius: 16px;
  border: 1.5px solid rgba(124,58,237,.28);
  background: rgba(15,23,42,.65);
  backdrop-filter: blur(12px);
  color: var(--t1, #f1f5f9);
  font-size: 15px; font-weight: 500;
  transition: border-color .2s, box-shadow .2s;
}
.faq-search-input::placeholder { color: var(--t3); }
.faq-search-input:focus {
  outline: none;
  border-color: rgba(167,139,250,.7);
  box-shadow: 0 0 0 3px rgba(124,58,237,.18);
}
.faq-search-clear {
  position: absolute; right: .9rem; top: 50%;
  transform: translateY(-50%);
  color: var(--t3); cursor: pointer;
  display: none;
  padding: .25rem;
  border-radius: 50%;
  transition: color .2s, background .2s;
}
.faq-search-clear:hover { color: #a78bfa; background: rgba(124,58,237,.1); }
.faq-search-clear.visible { display: flex; }
.faq-search-hint {
  font-size: 12.5px; color: var(--t3);
  text-align: center; margin: .5rem 0 0;
  min-height: 1.2em;
}

/* ── Pills catégories ─────────────────────────────────────── */
.faq-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
  justify-content: center;
  animation: faqHeroIn .8s .1s cubic-bezier(.22,1,.36,1) both;
}
.faq-cat {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1.5px solid rgba(148,163,184,.18);
  background: rgba(15,23,42,.45);
  color: var(--t2);
  font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
  white-space: nowrap;
}
.faq-cat:hover {
  border-color: rgba(124,58,237,.45);
  color: #c4b5fd;
  background: rgba(124,58,237,.1);
  transform: translateY(-1px);
}
.faq-cat--active {
  border-color: #7c3aed;
  background: rgba(124,58,237,.2);
  color: #e9d5ff;
}
.faq-cat--active:hover { transform: none; }

/* ── Message aucun résultat ───────────────────────────────── */
.faq-no-result {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--t2);
}
.faq-no-result-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.faq-no-result p    { margin: 0 0 1rem; }

/* ── Section ──────────────────────────────────────────────── */
.faq-section {
  margin-bottom: 2rem;
  animation: faqSectionIn .7s cubic-bezier(.22,1,.36,1) both;
}
@keyframes faqSectionIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq-section-title {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a78bfa;
  margin: 0 0 .9rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(124,58,237,.18);
}

/* ── Accordion item ───────────────────────────────────────── */
.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.1);
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(8px);
  margin-bottom: .55rem;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item:hover {
  border-color: rgba(124,58,237,.3);
}
.faq-item.is-open {
  border-color: rgba(124,58,237,.45);
  box-shadow: 0 8px 30px -8px rgba(124,58,237,.2);
}
.faq-item.faq-highlight {
  border-color: rgba(167,139,250,.5);
  box-shadow: 0 0 0 2px rgba(124,58,237,.2);
}

/* Question (bouton) */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.15rem;
  background: transparent;
  border: none;
  color: var(--t1, #f1f5f9);
  font-size: 14.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
  transition: color .2s;
}
.faq-q:hover { color: #e9d5ff; }
.faq-item.is-open .faq-q { color: #e9d5ff; }

/* Chevron animé */
.faq-chevron {
  flex-shrink: 0;
  color: var(--t3);
  transition: transform .35s cubic-bezier(.22,1,.36,1), color .2s;
}
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: #a78bfa;
}

/* Réponse (accordéon) */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.22,1,.36,1);
}
.faq-item.is-open .faq-a {
  max-height: 600px;
}
.faq-a > * {
  padding: 0 1.15rem 1rem;
  animation: faqAnswerIn .3s ease both;
}
@keyframes faqAnswerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq-a p, .faq-a ul {
  margin: 0 0 .65rem;
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.65;
}
.faq-a p:last-child, .faq-a ul:last-child { margin-bottom: 0; }
.faq-a ul { padding-left: 1.4rem; }
.faq-a li { margin-bottom: .3rem; }
.faq-a a  { color: #a78bfa; text-decoration: underline; text-underline-offset: 2px; }
.faq-a a:hover { color: #c4b5fd; }
.faq-a code {
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 5px;
  padding: .1rem .4rem;
  font-size: 12px;
  color: #c4b5fd;
}

/* ── Comparatif plans ─────────────────────────────────────── */
.faq-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  padding: 0 1.15rem 1rem;
}
@media (max-width: 480px) {
  .faq-compare { grid-template-columns: 1fr; }
}
.faq-compare-col {
  border-radius: 14px;
  padding: .85rem 1rem;
  border: 1px solid rgba(148,163,184,.12);
}
.faq-compare-col--spotlight {
  background: rgba(99,102,241,.1);
  border-color: rgba(99,102,241,.25);
}
.faq-compare-col--rocket {
  background: rgba(124,58,237,.12);
  border-color: rgba(124,58,237,.3);
}
.faq-compare-head {
  font-size: 13px; font-weight: 800;
  margin-bottom: .6rem;
  color: var(--t1);
}
.faq-compare-col ul {
  list-style: none; padding: 0; margin: 0;
}
.faq-compare-col li {
  font-size: 12.5px; color: var(--t2);
  padding: .2rem 0;
  display: flex; align-items: flex-start; gap: .4rem;
}
.faq-compare-col li::before {
  content: '✓';
  color: #a78bfa; font-weight: 900; flex-shrink: 0;
  margin-top: 1px;
}

/* ── Badges info ─────────────────────────────────────────── */
.faq-badge-row {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-top: .65rem;
}
.faq-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: 11px; font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 999px;
}
.faq-badge--green  { background: rgba(34,197,94,.12);  color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.faq-badge--blue   { background: rgba(59,130,246,.12); color: #60a5fa; border: 1px solid rgba(59,130,246,.3); }
.faq-badge--purple { background: rgba(124,58,237,.14); color: #a78bfa; border: 1px solid rgba(124,58,237,.3); }

/* ── CTA contact ─────────────────────────────────────────── */
.faq-contact-cta {
  margin-top: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(124,58,237,.25);
  background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(15,23,42,.5));
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}
.faq-contact-cta-inner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.faq-contact-icon {
  font-size: 2rem; line-height: 1; flex-shrink: 0;
}
.faq-contact-cta-inner > div {
  flex: 1; min-width: 180px;
}
.faq-contact-cta-inner strong {
  display: block; font-size: 15px; margin-bottom: .2rem;
}
.faq-contact-cta-inner p {
  margin: 0; font-size: 13px; color: var(--t2);
}
.faq-contact-cta-inner .btn {
  flex-shrink: 0; white-space: nowrap;
}

/* ── Liens légaux bas de page ─────────────────────────────── */
.faq-legal-links {
  margin-top: 2rem;
  text-align: center;
  font-size: 12px;
  color: var(--t3);
  display: flex; align-items: center; justify-content: center;
  gap: .5rem; flex-wrap: wrap;
}
.faq-legal-links a {
  color: var(--t3); text-decoration: none;
  transition: color .2s;
}
.faq-legal-links a:hover { color: #a78bfa; }

/* ── Item masqué (filtre) ─────────────────────────────────── */
.faq-item.faq-hidden,
.faq-section.faq-section-hidden {
  display: none;
}

/* ── Light mode ───────────────────────────────────────────── */
html.light .faq-search-input {
  background: rgba(255,255,255,.85);
  color: #0f172a;
  border-color: rgba(124,58,237,.2);
}
html.light .faq-item {
  background: rgba(255,255,255,.75);
  border-color: rgba(124,58,237,.12);
}
html.light .faq-item.is-open {
  background: rgba(255,255,255,.9);
}
html.light .faq-cat {
  background: rgba(255,255,255,.7);
}
html.light .faq-compare-col {
  background: rgba(255,255,255,.7);
}
html.light .faq-contact-cta {
  background: rgba(255,255,255,.65);
}

/* ── Bouton "copier le lien" ──────────────────────────────── */
.faq-share-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--t3);
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s, color .15s, background .15s, border-color .15s;
  margin-left: auto;
  margin-right: .15rem;
}
/* Apparaît au survol de l'item ou du bouton */
.faq-item:hover .faq-share-btn,
.faq-share-btn:focus-visible {
  opacity: 1;
}
.faq-share-btn:hover {
  color: #a78bfa;
  background: rgba(124,58,237,.12);
  border-color: rgba(124,58,237,.25);
}
/* État "copié" */
.faq-share-btn--copied {
  opacity: 1;
  color: #4ade80 !important;
  background: rgba(74,222,128,.1) !important;
  border-color: rgba(74,222,128,.25) !important;
}
/* Light mode */
html.light .faq-share-btn { color: var(--t3); }
html.light .faq-share-btn:hover { color: #7c3aed; background: rgba(124,58,237,.08); border-color: rgba(124,58,237,.2); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .faq-page { padding: 2.25rem .9rem 4rem; }
  .faq-hero-title { font-size: 2rem; }
  .faq-contact-cta-inner { flex-direction: column; align-items: flex-start; }
  .faq-contact-cta-inner .btn { width: 100%; justify-content: center; }
  /* Sur mobile : bouton toujours visible (pas de hover) */
  .faq-share-btn { opacity: .45; }
}
