/**
 * @author    Axelweb <contact@axelweb.fr>
 * @copyright 2026 Axelweb
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 *  International Registered Trademark & Property of Axelweb
 */
/**
/* --- Block --- */

.awfaq-block {
  margin: 2rem 0;
}

.awfaq-block__title {
  margin-bottom: 1rem;
}

/* --- Item --- */

.awfaq-item {
  border-bottom: 1px solid #e0e0e0;
}

.awfaq-item:first-child {
  border-top: 1px solid #e0e0e0;
}

/* --- Trigger --- */

.awfaq-item__trigger:focus {
  outline: none;
}

.awfaq-item__trigger:focus-visible {
  outline: 2px solid currentColor;
}

.awfaq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.awfaq-item__question {
  font-weight: 600;
}

.awfaq-item__chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.awfaq-item.is-open .awfaq-item__chevron {
  transform: rotate(180deg);
}

/* --- Answer (grid trick for smooth height animation) --- */

.awfaq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.awfaq-item.is-open .awfaq-item__answer {
  grid-template-rows: 1fr;
}

.awfaq-item__answer-inner {
  overflow: hidden;
  padding-bottom: 0;
  transition: padding-bottom 0.3s ease;
}

.awfaq-item.is-open .awfaq-item__answer-inner {
  padding-bottom: 1rem;
}
