/* ===== FAQ PAGE ===== */

/* Hero */
.faq-hero {
  background: linear-gradient(150deg, #fff5fb 0%, #fffbea 60%, #f0fffe 100%);
  padding: 56px 24px 0;
  text-align: center;
}

.faq-hero__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.faq-hero__sub {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 36px;
}

/* Onglets */
.faq-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 0;
}

.faq-tab {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #666;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 10px 20px;
  cursor: pointer;
  transition: color .18s, background .18s, border-color .18s;
  position: relative;
  bottom: -1px;
}

.faq-tab:hover {
  color: #E8264A;
  background: #fff5fb;
  border-color: #ffc0d8;
}

.faq-tab--active {
  color: #E8264A;
  background: #fff;
  border-color: #E8264A;
  border-bottom-color: #fff;
  font-weight: 800;
}

/* Corps FAQ */
.faq-content {
  background: #fff;
  border-top: 2px solid #f0e8f5;
  padding: 48px 24px 64px;
}

.faq-content__inner {
  max-width: 760px;
  margin: 0 auto;
}

/* Section par onglet */
.faq-section {
  display: none;
}

.faq-section--active {
  display: block;
}

.faq-section__title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f5e6f5;
}

/* Item accordéon */
.faq-item {
  border-bottom: 1px solid #f0e8f0;
}

.faq-item--highlight .faq-q {
  color: #E8264A;
}

.faq-item--highlight {
  background: #fff9fb;
  border-radius: 12px;
  border: 1.5px solid #ffd0e6;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-item--highlight .faq-q {
  padding: 18px 20px;
}

.faq-item--highlight .faq-a {
  padding: 0 20px;
}

/* Question */
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  padding: 18px 40px 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: color .18s;
}

.faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #E8264A;
  transition: transform .25s ease;
  line-height: 1;
}

.faq-q[aria-expanded="true"] {
  color: #E8264A;
}

.faq-q[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-q:hover { color: #E8264A; }

/* Réponse */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}

.faq-a--open {
  max-height: 600px;
  padding-bottom: 18px;
}

.faq-a p,
.faq-a li {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.75;
}

.faq-a ul,
.faq-a ol {
  padding-left: 20px;
  margin: 8px 0;
}

.faq-a li { margin-bottom: 4px; }

/* Tableau récapitulatif paiements */
.faq-a__table {
  border: 1.5px solid #f0e8f0;
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.85rem;
}

.faq-a__row {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f5edf5;
  align-items: center;
}

.faq-a__row:last-child { border-bottom: none; }

.faq-a__row--header {
  background: #f8f0f8;
  font-weight: 800;
  font-size: 0.78rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.faq-a__row:not(.faq-a__row--header):nth-child(even) {
  background: #fdfafd;
}

/* CTA bas de page */
.faq-cta {
  background: linear-gradient(135deg, #fff5fb, #f0fffe);
  padding: 40px 24px;
  text-align: center;
}

.faq-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.faq-cta p {
  font-size: 1rem;
  font-weight: 700;
  color: #444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .faq-tabs { gap: 4px; }
  .faq-tab { font-size: 0.75rem; padding: 8px 12px; }
  .faq-a__row { grid-template-columns: 1fr; gap: 4px; }
  .faq-a__row--header { display: none; }
}
