/* ============================================================
   QUESTIONS FRÉQUENTES (FAQ) — CSS isolé, scopé .faq-.
   Réutilise les variables de theme.css. Le rendu « capsule blanche »
   est RÉPLIQUÉ ici (fond/coins/ombre) : on n'utilise pas la classe
   .capsule, qui dépend d'accueil.js (absent sur cette page).
   ============================================================ */

/* Bouton pilule (même rendu que .home-hero-cta de l'accueil) */
.faq-cta {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.95rem 2.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s, transform 0.12s;
}
.faq-cta:hover { background: var(--accent-hover); transform: translateY(-2px); }
.faq-cta:active { transform: scale(0.97); }

/* Liste FAQ : largeur reprise des capsules compactes existantes (.s7-capsule = 860px) */
.faq { position: relative; z-index: 1; padding: clamp(2rem, 6vh, 4rem) 24px; }
.faq-list { max-width: 860px; margin: 0 auto; }

/* Item = capsule blanche (rendu répliqué : fond, coins, ombre) */
.faq-item {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 70px -22px rgba(43, 23, 33, 0.28), 0 10px 26px -12px rgba(43, 23, 33, 0.16);
  overflow: hidden;
}
.faq-item + .faq-item { margin-top: clamp(1rem, 2.5vw, 1.5rem); } /* espace vertical régulier */

/* Question (summary cliquable), marqueur natif retiré */
.faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.55rem) clamp(1.3rem, 4vw, 2rem);
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.4;
  color: var(--ink);
}
.faq-q::-webkit-details-marker { display: none; }
/* Indicateur « + » en --accent qui PIVOTE (croix) à l'ouverture */
.faq-q::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }

/* Réponse : corps fin, aéré, un peu d'air sous la question */
.faq-a {
  padding: 0 clamp(1.3rem, 4vw, 2rem) clamp(1.3rem, 3vw, 1.7rem);
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.7vw, 1.05rem);
  line-height: 1.7;
  color: var(--ink-body);
}
.faq-a p { margin: 0 0 0.85rem; }
.faq-a p:last-child { margin-bottom: 0; }

/* Transition douce à l'ouverture */
.faq-item[open] .faq-a { animation: faq-reveal 0.28s ease; }
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-q::after { transition: none; }
  .faq-item[open] .faq-a { animation: none; }
}

/* Clôture bas de page */
.faq-close {
  position: relative; z-index: 1;
  text-align: center;
  padding: clamp(2rem, 6vh, 4rem) 24px clamp(3rem, 9vh, 6rem);
}
.faq-close-line {
  font-family: 'Anybody', sans-serif; font-weight: 900;
  color: var(--ink);
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  line-height: 1.2;
  margin: 0;
}
.faq-close-sub { margin: 1.3rem 0 0; font-size: 0.95rem; }
.faq-close-sub a { color: var(--ink-soft); text-decoration: none; }
.faq-close-sub a:hover { color: var(--accent); }
