/* ==========================================================================
   WalliSend FAQ Component
   Section FAQ avec mascotte à gauche et questions à droite
   ========================================================================== */

/* ===== FAQ SECTION ===== */

.faq {
  background-color: var(--color-bg-gray);
}

.faq__container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ===== MASCOT SIDE ===== */

.faq__mascot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.faq__mascot-image {
  width: 200px;
  height: auto;
  margin-bottom: var(--space-sm);
  animation: float 4s ease-in-out infinite;
}

.faq__mascot-bubble {
  background-color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  max-width: 280px;
}

.faq__mascot-bubble::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--color-white);
}

.faq__mascot-text {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-dark);
  margin: 0;
}

/* ===== FAQ CONTENT ===== */

.faq__content {
  flex: 1;
}

.faq__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
  text-align: center;
}

/* ===== FAQ ITEMS ===== */

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq__item {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-smooth);
}

.faq__item:hover {
  box-shadow: var(--shadow-md);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-dark);
  transition: color var(--transition-smooth);
}

.faq__question:hover {
  color: var(--color-primary-light);
}

.faq__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-primary-light);
  transition: transform var(--transition-smooth);
}

.faq__item--open .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-smooth);
}

.faq__item--open .faq__answer {
  max-height: 300px;
}

.faq__answer-text {
  padding: 0 var(--space-md) var(--space-md);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

/* ===== ANIMATION MASCOT ===== */

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== TABLET ===== */

@media (min-width: 768px) {
  .faq__mascot-image {
    width: 250px;
  }

  .faq__title {
    font-size: var(--font-size-3xl);
  }

  .faq__question {
    font-size: var(--font-size-md);
    padding: var(--space-md) var(--space-lg);
  }

  .faq__answer-text {
    padding: 0 var(--space-lg) var(--space-md);
  }
}

/* ===== DESKTOP ===== */

@media (min-width: 1024px) {
  .faq__container {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-xl);
  }

  .faq__mascot {
    flex: 0 0 300px;
    position: sticky;
    top: 120px;
  }

  .faq__mascot-image {
    width: 280px;
  }

  .faq__mascot-bubble::after {
    top: auto;
    bottom: -10px;
    border-bottom: none;
    border-top: 10px solid var(--color-white);
  }

  .faq__content {
    flex: 1;
  }

  .faq__title {
    text-align: left;
  }
}

/* ===== LARGE DESKTOP ===== */

@media (min-width: 1280px) {
  .faq__mascot {
    flex: 0 0 350px;
  }

  .faq__mascot-image {
    width: 320px;
  }
}
