/* FAQ ENKA — accordéon (23/11/2026)
   Remplace l'affichage brut des <details> (triangles natifs, 5 questions ouvertes d'office).
   S'applique à la page FAQ (.faq-page) et au bloc FAQ de l'accueil (.home-faq). */

.faq-page{padding-top:64px;padding-bottom:88px;counter-reset:faq}
.home-faq{counter-reset:faq}

:is(.faq-page,.home-faq) details{
  counter-increment:faq;
  background:#fff;
  border:1px solid var(--line);
  border-left:3px solid transparent;
  padding:0;
  margin:0 0 12px;
  transition:border-color .2s ease,box-shadow .2s ease;
}
:is(.faq-page,.home-faq) details:hover{border-left-color:#e3a39a}
:is(.faq-page,.home-faq) details[open]{border-left-color:var(--green);box-shadow:0 12px 32px rgba(32,35,35,.07)}

:is(.faq-page,.home-faq) summary{
  list-style:none;
  display:grid;
  grid-template-columns:40px minmax(0,1fr) 38px;
  align-items:center;
  gap:16px;
  min-height:76px;
  padding:20px 24px;
  font-size:19px;
  line-height:1.4;
  font-weight:700;
  color:var(--ink);
  cursor:pointer;
}
:is(.faq-page,.home-faq) summary::-webkit-details-marker{display:none}
:is(.faq-page,.home-faq) summary::marker{content:''}

/* numéro 01, 02… */
:is(.faq-page,.home-faq) summary::before{
  content:counter(faq,decimal-leading-zero);
  font-size:13px;
  letter-spacing:1px;
  font-weight:700;
  color:var(--green);
}

/* bouton + / − */
:is(.faq-page,.home-faq) summary::after{
  content:'';
  width:38px;height:38px;
  border:1px solid var(--line);
  border-radius:50%;
  background:
    linear-gradient(var(--green),var(--green)) center/12px 2px no-repeat,
    linear-gradient(var(--green),var(--green)) center/2px 12px no-repeat,
    #fff;
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
:is(.faq-page,.home-faq) summary:hover::after{border-color:var(--green)}
:is(.faq-page,.home-faq) details[open]>summary::after{
  border-color:var(--green);
  background:linear-gradient(#fff,#fff) center/12px 2px no-repeat,var(--green);
  transform:rotate(180deg);
}
:is(.faq-page,.home-faq) details[open]>summary{color:var(--green);padding-bottom:10px}

/* réponse alignée sur le texte de la question */
:is(.faq-page,.home-faq) details>:not(summary){
  margin:0 78px 14px 80px;
  max-width:760px;
  font-size:16px;
  line-height:1.8;
  color:#4f585b;
}
:is(.faq-page,.home-faq) details>:last-child:not(summary){margin-bottom:26px}
:is(.faq-page,.home-faq) .faq-source{
  font-size:13px;
  color:#6b7477;
  padding-top:12px;
  border-top:1px dashed var(--line);
}
:is(.faq-page,.home-faq) .faq-source a{text-decoration:underline;color:var(--green)}

@media(max-width:600px){
  .faq-page{padding-top:40px;padding-bottom:56px}
  :is(.faq-page,.home-faq) summary{
    grid-template-columns:28px minmax(0,1fr) 34px;
    gap:12px;min-height:64px;padding:16px;font-size:17px;
  }
  :is(.faq-page,.home-faq) summary::after{width:34px;height:34px}
  :is(.faq-page,.home-faq) details>:not(summary){margin:0 16px 12px 56px;font-size:15px}
  :is(.faq-page,.home-faq) details>:last-child:not(summary){margin-bottom:20px}
}
@media(prefers-reduced-motion:reduce){:is(.faq-page,.home-faq) :is(details,summary::after){transition:none}}

/* Blocs de questions dans les pages par profil (23/11/2026) : dans la colonne de texte */
.arch-body .home-faq{margin-top:26px}
.arch-body .home-faq details>:not(summary){margin-right:64px}
.arch-body .home-faq summary{font-size:18px}
@media(max-width:600px){.arch-body .home-faq details>:not(summary){margin-right:16px}}
