/* FAQ Section - "Les cartes qui respirent" (Glassmorphism & Clean Accordion) */
.studies-faq-section {
  padding: 5rem 0 7rem;
  background: transparent;
  position: relative;
  z-index: 2;
}

.faq-header {
  text-align: center;
  border-bottom: none;
  margin-bottom: 4rem;
  display: flex;
  justify-content: center;
}

.studies-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3rem;
  row-gap: 2rem;
  align-items: flex-start;
}

/* FAQ Item - The Bubble */
.faq-item {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1);
  overflow: hidden;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

.faq-item.active {
  background: #ffffff;
  box-shadow: 0 15px 40px -10px rgba(0, 71, 255, 0.08);
  border-color: rgba(0, 71, 255, 0.1);
}

/* Question Button */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: #1e293b;
  outline: none;
}

.faq-question-text {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  padding-right: 1.5rem;
}

.faq-item.active .faq-question-text {
  color: #0047ff;
}

/* Icon Animation */
.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 71, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0047ff;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1),
    background 0.3s;
}

.faq-item:hover .faq-icon {
  background: rgba(0, 71, 255, 0.1);
}

.faq-item.active .faq-icon {
  transform: rotate(135deg);
  background: #0047ff;
  color: #ffffff;
}

/* Butter Smooth Accordion via CSS Grid */
.faq-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.9, 0.4, 1);
}

.faq-item.active .faq-answer-wrapper {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-content {
  padding: 0 2rem 1.5rem 2rem;
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.4s ease;
  transition-delay: 0s;
}

.faq-item.active .faq-answer-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* Responsive */
@media (max-width: 992px) {
  .studies-faq-grid {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .faq-question {
    padding: 1.25rem 1.5rem;
  }

  .faq-question-text {
    font-size: 1.05rem;
  }

  .faq-answer-content {
    padding: 0 1.5rem 1.25rem 1.5rem;
  }
}
