/* ══════════════════════════════════════════
   FAQ — Anne-Marie Larrère
   Fichier : assets/css/page-faq.css
   Chargé conditionnellement via enqueue.php
   sur la page FAQ uniquement
   ══════════════════════════════════════════ */

/* ── Variables palette AML ── */
.aml-faq {
  --cream:           #FDF5EC;
  --cream-warm:      #F7EAD8;
  --blush:           #F0C9A0;
  --terracotta:      #C4703A;
  --terracotta-deep: #A0522D;
  --brun-chaud:      #5D4E47;
  --brun-profond:    #3D2E27;
  --font-display:    var(--wp--preset--font-family--display);
  --font-body:       var(--wp--preset--font-family--body);

  max-width: 780px;
  margin: 0 auto;
  padding: 0 0 80px;
}

/* ── Catégorie ── */
.aml-faq-category {
  margin-bottom: 56px;
}

.aml-faq-category-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.aml-faq-category-title span {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  white-space: nowrap;
}

.aml-faq-category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--blush);
}

/* ── Item accordion ── */
.aml-faq-item {
  border-bottom: 1px solid var(--blush);
}

.aml-faq-item:first-of-type {
  border-top: 1px solid var(--blush);
}

/* ── Bouton question ── */
.aml-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.aml-faq-question:focus {
  outline: none;
}

.aml-faq-question:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
  border-radius: 2px;
}

.aml-faq-question-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--brun-profond);
  line-height: 1.3;
}

/* ── Icône SVG +/− ── */
.aml-faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--terracotta);
  transition: color 0.2s ease;
}

/* Barre verticale : transition opacity pour l'effet − */
.aml-faq-icon .aml-faq-icon-v {
  transition: opacity 0.3s ease;
}

.aml-faq-item.aml-open .aml-faq-icon .aml-faq-icon-v {
  opacity: 0;
}

/* ── Réponse ── */
.aml-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.aml-faq-answer-inner {
  padding: 0 0 24px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--brun-chaud);
  line-height: 1.8;
}

.aml-faq-answer-inner p + p {
  margin-top: 12px;
}

.aml-faq-answer-inner strong {
  font-weight: 500;
  color: var(--brun-profond);
}

.aml-faq-item.aml-open .aml-faq-answer {
  max-height: 800px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .aml-faq {
    padding: 0 0 60px;
  }
  .aml-faq-question-text {
    font-size: 1rem;
  }
}