/* ------------------------------------------------------------------
   faq.css — une FAQ éditoriale : pas de boîtes, des filets.
   Accordéon natif <details>, zéro script ; plusieurs questions peuvent
   rester ouvertes. L'ouverture glisse là où le navigateur sait animer
   ::details-content ; ailleurs elle s'ouvre d'un coup, sans rien perdre.
   Téléphone : titre, questions, bouton. À partir de 1 000 px : le titre et
   le bouton à gauche, fixes au défilement, les questions à droite.
   ------------------------------------------------------------------ */

.faq-layout {
  display: flex;
  flex-direction: column;
}

/* Sur téléphone, le bloc de gauche s'efface : son titre passe avant les questions,
   son bouton après */
.faq-side {
  display: contents;
}

.faq-head {
  order: 1;
  margin-bottom: 36px;
  text-align: center;
}

.faq {
  order: 2;
  border-bottom: 1px solid rgb(var(--white-rgb) / 0.1);
}

.faq-cta {
  order: 3;
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.faq-lede {
  max-width: 34ch;
  margin: 18px auto 0;
  color: var(--text-body);
  font-size: var(--fs-chapeau);
  line-height: 1.6;
  text-wrap: balance;
}

/* --- Une question : un filet au-dessus, qui passe à l'or quand elle est ouverte --- */
.faq details {
  border-top: 1px solid rgb(var(--white-rgb) / 0.1);
  transition: border-color 300ms ease-out;
}

.faq details[open] {
  border-top-color: rgb(var(--gold-rgb) / 0.7);
}

.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: color 250ms ease-out;
}

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

.faq summary:hover,
.faq details[open] summary {
  color: var(--gold-bright);
}

/* Un « + » fin, dessiné par deux traits d'or ; le trait vertical se replie à l'ouverture */
.faq summary::after {
  content: "";
  width: 18px;
  height: 18px;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.5px 100% no-repeat;
  transition: background-size 300ms var(--ease-out), transform 300ms var(--ease-out);
}

.faq details[open] summary::after {
  background-size: 100% 1.5px, 1.5px 0;
  transform: rotate(180deg);
}

.faq summary:focus-visible {
  border-radius: 4px;
}

.faq details p {
  max-width: 62ch;
  padding: 0 42px 28px 0;
  color: rgb(var(--white-rgb) / 0.75);
  font-size: 1.0625rem;
  line-height: 1.7;
}

@media (prefers-reduced-motion: no-preference) {
  .faq {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    height: 0;
    overflow: clip;
    transition: height 350ms var(--ease-accordion), content-visibility 350ms allow-discrete;
  }

  .faq details[open]::details-content {
    height: auto;
  }
}

/* --- 1 000 px et plus : deux colonnes --- */
@media (min-width: 1000px) {
  .faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    column-gap: 88px;
    align-items: start;
  }

  .faq-side {
    position: sticky;
    top: calc(var(--nav-h) + 48px);
    display: block;
  }

  .faq-head {
    margin-bottom: 0;
    text-align: left;
  }

  .faq-head .title {
    font-size: clamp(2.25rem, 3.6vw, 3.25rem);
  }

  .faq-lede {
    margin-left: 0;
  }

  .faq-cta {
    justify-content: flex-start;
    margin-top: 36px;
  }

  .faq summary {
    padding-block: 28px;
    font-size: 1.3125rem;
  }
}

@media (max-width: 479px) {
  .faq summary {
    gap: 16px;
    font-size: 1.0625rem;
  }

  .faq details p {
    padding-right: 0;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq details,
  .faq summary,
  .faq summary::after {
    transition: none;
  }
}
