/* FAQ page - Design premium */
.page--faq {
  background: var(--color-light);
}

/* ===== Hero Section - Full Width ===== */
.faq-hero {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #6366f1 50%, var(--color-accent) 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.faq-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.faq-hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.faq-hero__container {
  text-align: center;
  position: relative;
  z-index: 1;
}

.faq-hero__title {
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 52px;
  color: var(--color-light);
  text-align: center;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.faq-hero__subtitle {
  font-family: 'Kanit', sans-serif;
  font-weight: 300;
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== FAQ Sections ===== */
.page--faq .faq {
  padding: var(--spacing-xxxl) 0;
  position: relative;
}

.page--faq .faq--avocat {
  background: #ffffff;
}

.page--faq .faq--expert-comptable {
  background: linear-gradient(180deg, var(--color-light) 0%, #f8fafc 100%);
}

/* Section Header avec icône */
.page--faq .faq__header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.page--faq .faq__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 10px 40px rgba(66, 48, 214, 0.2);
}

.page--faq .faq--avocat .faq__icon {
  background: linear-gradient(135deg, var(--color-primary) 0%, #6366f1 100%);
}

.page--faq .faq--expert-comptable .faq__icon {
  background: linear-gradient(135deg, var(--color-accent) 0%, #22d3ee 100%);
}

.page--faq .faq__title {
  font-family: 'Baloo 2', cursive;
  font-weight: 600;
  font-size: 38px;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.page--faq .faq__description {
  font-family: 'Kanit', sans-serif;
  font-weight: 300;
  font-size: 17px;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== FAQ List ===== */
.page--faq .faq__list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* ===== FAQ Item (Accordion) ===== */
.page--faq .faq__item {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(66, 48, 214, 0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.page--faq .faq__item:hover {
  box-shadow: 0 8px 30px rgba(66, 48, 214, 0.12);
  border-color: rgba(66, 48, 214, 0.15);
  transform: translateY(-2px);
}

.page--faq .faq__item--open {
  border-color: var(--color-primary);
  box-shadow: 0 8px 30px rgba(66, 48, 214, 0.15);
}

/* Question Button */
.page--faq .faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 28px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  font-family: inherit;
  transition: background-color 0.3s ease;
}

.page--faq .faq__question:hover {
  background: rgba(66, 48, 214, 0.03);
}

.page--faq .faq__question:focus {
  outline: none;
  background: rgba(66, 48, 214, 0.05);
}

.page--faq .faq__question-text {
  font-family: 'Kanit', sans-serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--color-dark);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

/* Icon container */
.page--faq .faq__question-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.page--faq .faq__question-icon svg {
  color: white;
  transition: transform 0.3s ease;
}

.page--faq .faq__question[aria-expanded="true"] .faq__question-icon {
  background: linear-gradient(135deg, var(--color-accent) 0%, #22d3ee 100%);
}

.page--faq .faq__question[aria-expanded="true"] .faq__question-icon svg {
  transform: rotate(180deg);
}

/* Answer */
.page--faq .faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.page--faq .faq__item--open .faq__answer {
  max-height: 500px;
}

.page--faq .faq__answer p {
  font-family: 'Kanit', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--color-dark);
  line-height: 1.8;
  padding: 0 28px 28px 28px;
  margin: 0;
  opacity: 0.85;
  border-top: 1px solid rgba(66, 48, 214, 0.08);
  padding-top: 20px;
}

/* ===== Footer CTA Section ===== */
.page--faq .faq--footer {
  background: linear-gradient(135deg, var(--color-dark) 0%, #1e1b4b 50%, var(--color-primary) 100%);
  padding: var(--spacing-xxxl) 0;
  position: relative;
  overflow: hidden;
}

.page--faq .faq--footer::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(66, 48, 214, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.page--faq .faq--footer::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 209, 178, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.page--faq .faq__footer {
  text-align: center;
  position: relative;
  z-index: 1;
}

.page--faq .faq__footer-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 36px;
  color: var(--color-light);
  margin-bottom: var(--spacing-md);
}

.page--faq .faq__footer-text {
  font-family: 'Kanit', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--spacing-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page--faq .faq__footer-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .faq-hero__title {
    font-size: 42px;
  }

  .page--faq .faq__title {
    font-size: 32px;
  }

  .page--faq .faq {
    padding: var(--spacing-xxl) 0;
  }

  .page--faq .faq__icon {
    width: 70px;
    height: 70px;
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .faq-hero {
    padding: 60px 0 80px;
  }

  .faq-hero__title {
    font-size: 32px;
  }

  .faq-hero__subtitle {
    font-size: 17px;
    padding: 0 20px;
  }

  .page--faq .faq__title {
    font-size: 26px;
  }

  .page--faq .faq__icon {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }

  .page--faq .faq__question {
    padding: 20px;
  }

  .page--faq .faq__question-text {
    font-size: 15px;
  }

  .page--faq .faq__question-icon {
    width: 32px;
    height: 32px;
  }

  .page--faq .faq__answer p {
    padding: 0 20px 20px 20px;
    font-size: 15px;
  }

  .page--faq .faq__footer-cta {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    margin: 0 auto;
  }

  .page--faq .faq__footer-title {
    font-size: 28px;
  }

  .page--faq .faq__footer-text {
    font-size: 16px;
  }
}
