/* ============================================
   Section FAQ — Figma 1:3156 (1920×635) / mobile 1:4311
   2 colonnes : image salon (604×432, r25) + colonne droite
   (badge, H2, sous-titre, 4 accordéons lilas r12).
   ============================================ */

.faq {
  background: var(--c-white);
}

.faq__inner {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding-top: 100px;
  padding-bottom: 100px;
}

/* --- Colonne image (moitié du contenu : 604 à 1920) --- */
.faq__media {
  flex: 1 1 0;
  min-width: 0;
  height: 432px;
  border-radius: var(--r-media);
  overflow: hidden;
}

.faq__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Colonne droite (gap 48 : en-tête / liste) --- */
.faq__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* --- Item accordéon (lilas, r12, px20 py16) --- */
.faq-item {
  width: 100%;
  background: var(--c-lilac);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  text-align: left;
}

/* Question : Manrope 500 16/22.4/0.32, noir (Figma 1:3188) */
.faq-item__q {
  max-width: 500px;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--c-black);
}

/* Icône « + » 20px → pivote en « × » à l'ouverture */
.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

/* Réponse repliable (max-height pilotée par js/sections/faq.js) */
.faq-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item__a {
  padding: 0 20px 16px;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--c-text);
}

/* ============ Tablette 810–1199 : 2 colonnes conservées, image fluide ============ */
@media (min-width: 810px) and (max-width: 1199px) {
  .faq__inner {
    gap: 40px;
  }

  .faq__media {
    height: auto;
    aspect-ratio: 604 / 432;
  }
}

/* ============ Mobile ≤ 809 (Figma 1:4311 : 1 colonne, image EN BAS, h275 r20) ============ */
@media (max-width: 809px) {
  .faq__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .faq__col {
    order: 1;
  }

  .faq__media {
    order: 2;
    flex: none;
    width: 100%;
    height: 275px;
    border-radius: 20px;
  }

  .faq .section-head__title {
    font-size: 30px;
    line-height: 33px;
  }
}
