/* =============================================================
   Section FAQ — Accordéons dépliables
   ============================================================= */

/* ── Section ── */
.faq-section {
  background: #fefefe;
  padding: 120px 0;
}

/* ── Conteneur interne ── */
.faq-section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ── Layout 2 colonnes ── */
.faq-section__layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

/* ── Colonne gauche ── */
.faq-section__left {
  width: 552px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.faq-section__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #21b593;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.faq-section__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 45px;
  line-height: 1.1;
  color: #003c3d;
  margin: 0;
  letter-spacing: -0.5px;
}

.faq-section__desc {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 22.5px;
  color: #003c3d;
  margin: 0;
}

/* ── Bouton (structure cta-banner__btn, couleurs btn-contact) ── */
.faq-section__btn {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  height: 60px;
  padding: 0 10px 0 30px;
  min-width: 283px;
  background-color: #025253;
  color: #fff;
  border-radius: 40px;
  border: 2px solid transparent;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.2px;
  text-decoration: none;
  white-space: nowrap;
  transition: padding 0.3s ease;
}

.faq-section__btn__label {
  line-height: 1;
  margin-right: 0;
  transition: margin-right 0.3s ease;
}

.faq-section__btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 30px;
  background-color: transparent;
  color: #d4f7a5;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.faq-section__btn:hover,
.faq-section__btn:focus-visible {
  padding-left: 20px;
  color: #fff;
}

.faq-section__btn:hover .faq-section__btn__label,
.faq-section__btn:focus-visible .faq-section__btn__label {
  margin-right: 10px;
}

.faq-section__btn:hover .faq-section__btn__icon,
.faq-section__btn:focus-visible .faq-section__btn__icon {
  background-color: #21b593;
  color: #fff;
  transform: rotate(45deg);
}

/* ── Colonne droite (carte accordéons) ── */
.faq-section__right {
  flex: 1;
}

.faq-section__list {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #e7efe9;
  border-radius: 24px;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.05);
  padding: 41px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Item accordéon ── */
.faq-section__item {
  border-bottom: 1px solid #e1dcd4;
}

.faq-section__item:last-child {
  border-bottom: none;
}

/* ── Header (bouton) ── */
.faq-section__item-header {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  background: none;
  border: none;
  padding: 28px 0;
  cursor: pointer;
  text-align: left;
}

/* ── Icône (état ouvert/fermé) ── */
.faq-section__item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-section__item-icon--open {
  display: none;
}

.faq-section__item-icon--closed {
  display: flex;
  align-items: center;
}

.faq-section__item--open .faq-section__item-icon--open {
  display: flex;
  align-items: center;
}

.faq-section__item--open .faq-section__item-icon--closed {
  display: none;
}

/* ── Question ── */
.faq-section__item-question {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: normal;
  color: #00473c;
  flex: 1;
  transition: font-weight 0.15s ease;
}

.faq-section__item--open .faq-section__item-question {
  font-weight: 700;
}

/* ── Corps (réponse) — slide animé ── */
.faq-section__item-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
  /* La valeur ouverte est pilotée en JS avec la hauteur réelle */
}

.faq-section__item-answer {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 22.5px;
  color: #00473c;
  padding: 0 0 28px 72px; /* aligne avec le texte de la question (32px icone + 40px gap) */
}

/* ── Pied de section ── */
.faq-section__footer {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 22.5px;
  color: #003c3d;
  text-align: center;
  margin: 0;
}

.faq-section__footer-link {
  color: #21b593;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #21b593;
}

.faq-section__footer-link:hover {
  color: #1a9578;
}

/* =============================================================
   Responsive — ≤ 1280px
   ============================================================= */

@media (max-width: 1280px) {
  .faq-section__left {
    width: 420px;
  }

  .faq-section__title {
    font-size: 36px;
  }
}

/* =============================================================
   Responsive — ≤ 991px (mobile)
   ============================================================= */

@media (max-width: 991px) {
  .faq-section {
    padding: 64px 0;
  }

  .faq-section__inner {
    gap: 40px;
    padding: 0 20px;
  }

  /* Colonne unique */
  .faq-section__layout {
    flex-direction: column;
    gap: 36px;
  }

  .faq-section__left {
    width: 100%;
    gap: 20px;
  }

  .faq-section__title {
    font-size: 26px;
  }

  .faq-section__label {
    font-size: 14px;
  }

  .faq-section__desc {
    font-size: 14px;
  }

  .faq-section__btn {
    align-self: flex-start;
    min-width: unset;
    font-size: 0.875rem;
  }

  /* En mobile : carte blanche individuelle par item */
  .faq-section__right {
    width: 100%;
  }

  .faq-section__list {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    gap: 16px;
  }

  .faq-section__item {
    border-bottom: none;
    background: #fff;
    border: 1px solid rgba(221, 227, 225, 0.6);
    border-radius: 16px;
    overflow: hidden;
  }

  .faq-section__item-header {
    gap: 16px;
    padding: 16px 20px;
  }

  .faq-section__item-icon {
    width: 20px;
    height: 20px;
    order: 2; /* icône à droite en mobile */
    margin-left: auto;
    flex-shrink: 0;
  }

  /* En mobile l'icône est toujours le chevron (ouvert = chevron haut) */
  .faq-section__item-icon--open {
    display: none !important;
  }

  .faq-section__item-icon--closed {
    display: flex !important;
  }

  /* Rotation du chevron quand l'item est ouvert */
  .faq-section__item--open .faq-section__item-icon--closed svg {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
  }

  .faq-section__item-icon--closed svg {
    transition: transform 0.3s ease;
  }

  .faq-section__item-question {
    font-size: 15px;
    color: #025253;
    order: 1;
    flex: 1;
  }

  .faq-section__item-answer {
    font-size: 14px;
    line-height: normal;
    padding: 0 20px 16px;
    color: #003c3d;
  }

  .faq-section__footer {
    font-size: 15px;
  }
}
