/* Pattern: FAQ */

/* Liste : pile de cartes, gap 8 (maquette) */
.mau-faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--8);
}

/* Item = carte paper-soft arrondie ; à l'ouverture : bord accent + fond blanc */
.mau-faq-item {
  background: var(--wp--preset--color--paper-soft);
  border: 1px solid transparent;
  border-radius: var(--wp--custom--radius--md);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.mau-faq-item[open] {
  border-color: var(--wp--preset--color--accent);
  background: var(--wp--preset--color--paper);
}

.mau-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--wp--preset--spacing--16);
  padding: 22px 28px;
  font-family: var(--wp--preset--font-family--inter);
  font-size: var(--wp--preset--font-size--lede); /* 17px */
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  user-select: none;
}

.mau-faq-item summary::-webkit-details-marker { display: none; }

.mau-faq-item summary::after {
  content: "+";
  font-size: 1.5rem; /* 24px */
  font-weight: 300;
  color: var(--wp--preset--color--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.mau-faq-item[open] > summary::after {
  transform: rotate(45deg);
}

/* Réponse : 15px, slate, interligne 1.6 */
.mau-faq-item > p {
  margin: 0;
  padding: 0 28px 24px;
  color: var(--wp--preset--color--slate);
  font-size: 0.9375rem;
  line-height: 1.6;
  animation: faq-open 0.2s ease;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Maquette mobile : summary plus compact (18/20, 15px), réponse 14px. */
@media (max-width: 767px) {
  .mau-faq-item summary {
    padding: 18px 20px;
    font-size: 15px;
  }
  .mau-faq-item > p {
    padding: 0 20px 20px;
    font-size: 14px;
  }
}
