/* =====================================================================
   FAQ.CSS — Styles partagés des sections FAQ
   Pages concernées : iae-paris.html, dauphine.html
   Toutes les règles sont scopées à #faq pour ne pas polluer d'éventuels
   autres <details> ailleurs sur le site.
   ===================================================================== */

/* ---- Liste : trait supérieur de séparation ---- */
#faq .faq-list {
  border-top: 1px solid rgba(232, 160, 32, 0.20);
  margin-top: 2rem;
}

/* ---- Item : un <details> par question ---- */
#faq .faq-list > details {
  padding-top: 1.25rem;     /* py-5 */
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(232, 160, 32, 0.20);
}

/* ---- Summary : la ligne cliquable (question + icône) ---- */
#faq .faq-list > details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
#faq .faq-list > details > summary::-webkit-details-marker {
  display: none;
}

/* ---- Texte de la question ---- */
#faq .faq-question {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: #1C1814;
  padding-right: 1rem;
}
@media (min-width: 1024px) {
  #faq .faq-question { font-size: 19px; }
}

/* ---- Texte de la réponse ---- */
#faq .faq-answer {
  margin-top: 1rem;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(28, 24, 20, 0.70);
  max-width: 72ch;
}
@media (min-width: 1024px) {
  #faq .faq-answer { font-size: 17px; }
}

/* ---- Icône + → × ---- */
#faq .faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: rgba(28, 24, 20, 0.45);
  transition: transform .25s ease, color .25s ease;
}
#faq .faq-list > details:hover > summary .faq-icon {
  color: rgba(28, 24, 20, 0.80);
}
#faq .faq-list > details[open] > summary .faq-icon {
  transform: rotate(45deg);
  color: rgba(28, 24, 20, 0.80);
}
