/* =============================================================================
   AIDE & FAQ — Plein Sud
   Page /faqs/  (templates/page-faq.php)
   ============================================================================= */

.ps-faq {
  background: var(--ps-cream);
  font-family: var(--ps-font-body);
  color: var(--ps-body);
}

.ps-faq__inner {
  max-width: var(--ps-content);
  margin: 0 auto;
  padding: 22px 20px 64px;
  box-sizing: border-box;
}

/* --- Breadcrumb ---------------------------------------------------------- */
.ps-faq .ps-breadcrumb {
  font-size: 13px;
  color: var(--ps-muted);
  margin-bottom: 22px;
}
.ps-faq .ps-breadcrumb a {
  color: var(--ps-muted);
  text-decoration: none;
}
.ps-faq .ps-breadcrumb a:hover { color: var(--ps-gold-dark); }
.ps-faq .ps-breadcrumb .sep { margin: 0 8px; color: var(--ps-line); }

/* =============================================================================
   1) HERO
   ============================================================================= */
.ps-faq__hero {
  background: var(--ps-ink);
  border-radius: 24px;
  padding: 64px 32px;
  text-align: center;
  color: var(--ps-white);
}

.ps-faq__eyebrow {
  margin: 0 0 16px;
  color: var(--ps-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ps-faq__title {
  margin: 0 auto 30px;
  max-width: 640px;
  font-family: var(--ps-font-heading);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.15;
  color: var(--ps-white);
  letter-spacing: -0.01em;
}

.ps-faq__search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  padding: 6px 8px 6px 22px;
  background: var(--ps-white);
  border-radius: var(--ps-radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.ps-faq__search-icon {
  display: inline-flex;
  color: var(--ps-muted);
  flex: 0 0 auto;
}
.ps-faq__search-icon svg { width: 20px; height: 20px; }
.ps-faq__search-input {
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--ps-font-body);
  font-size: 15px;
  color: var(--ps-ink);
  padding: 12px 8px 12px 0;
}
.ps-faq__search-input::placeholder { color: var(--ps-muted); }

/* =============================================================================
   2) LAYOUT 2 COLONNES
   ============================================================================= */
.ps-faq__layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 40px;
  margin-top: 48px;
  align-items: start;
}

/* --- Sidebar ------------------------------------------------------------- */
.ps-faq__sidebar { position: sticky; top: 20px; }

.ps-faq__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ps-faq__nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--ps-radius-sm);
  color: var(--ps-body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.ps-faq__nav-item:hover {
  background: rgba(var(--ps-gold-rgb), 0.08);
  color: var(--ps-ink);
}
.ps-faq__nav-item.is-active {
  background: rgba(var(--ps-gold-rgb), 0.14);
  color: var(--ps-gold-dark);
  font-weight: 600;
}
.ps-faq__nav-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: currentColor;
}
.ps-faq__nav-icon svg { width: 18px; height: 18px; }

/* --- Content -------------------------------------------------------------- */
.ps-faq__content {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.ps-faq__section { scroll-margin-top: 24px; }

.ps-faq__section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.ps-faq__section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--ps-radius-sm);
  background: rgba(var(--ps-gold-rgb), 0.14);
  color: var(--ps-gold-dark);
  flex: 0 0 auto;
}
.ps-faq__section-icon svg { width: 19px; height: 19px; }
.ps-faq__section-title {
  margin: 0;
  font-family: var(--ps-font-body);
  font-size: 22px;
  font-weight: 700;
  color: var(--ps-ink);
  letter-spacing: -0.01em;
}

/* --- Accordion ----------------------------------------------------------- */
.ps-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ps-faq__item {
  background: var(--ps-cream-soft);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ps-faq__item[open] {
  background: var(--ps-white);
  border-color: rgba(var(--ps-gold-rgb), 0.45);
  box-shadow: var(--ps-shadow-card);
}

.ps-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ps-ink);
}
.ps-faq__q::-webkit-details-marker { display: none; }
.ps-faq__q-text { flex: 1 1 auto; }

.ps-faq__q-chevron {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--ps-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.ps-faq__q-chevron svg { width: 18px; height: 18px; }
.ps-faq__item[open] .ps-faq__q-chevron {
  transform: rotate(180deg);
  color: var(--ps-gold-dark);
}

.ps-faq__a {
  padding: 0 20px 20px;
}
.ps-faq__a p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ps-body);
}

/* =============================================================================
   3) CTA BAS DE PAGE
   ============================================================================= */
.ps-faq__cta {
  margin-top: 48px;
  background: var(--ps-ink);
  border-radius: 24px;
  padding: 56px 32px;
  text-align: center;
  color: var(--ps-white);
}
.ps-faq__cta-title {
  margin: 0 0 12px;
  font-family: var(--ps-font-heading);
  font-weight: 400;
  font-size: 30px;
  color: var(--ps-white);
}
.ps-faq__cta-text {
  margin: 0 auto 26px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}
.ps-faq__cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.ps-faq__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--ps-radius-pill);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ps-faq__btn--gold {
  background: var(--ps-gold);
  color: var(--ps-ink);
  border: 1px solid var(--ps-gold);
}
.ps-faq__btn--gold:hover {
  background: var(--ps-gold-dark);
  border-color: var(--ps-gold-dark);
  color: var(--ps-white);
}
.ps-faq__btn--ghost {
  background: transparent;
  color: var(--ps-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.ps-faq__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 900px) {
  .ps-faq__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ps-faq__sidebar {
    position: static;
    top: auto;
  }
  .ps-faq__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ps-faq__nav-item {
    padding: 9px 14px;
    background: var(--ps-cream-soft);
    border: 1px solid var(--ps-line);
  }
}

@media (max-width: 640px) {
  .ps-faq__hero { padding: 44px 22px; border-radius: 18px; }
  .ps-faq__title { font-size: 30px; }
  .ps-faq__cta { padding: 40px 22px; border-radius: 18px; }
  .ps-faq__cta-title { font-size: 24px; }
  .ps-faq__btn { width: 100%; }
}
