/* ============================================================
SPO — FAQ PAGE (ULTRA PREMIUM) — 2026 — SAFE / ADDITIF
Scope: .spo-faqpage uniquement (aucune régression HivePress)
Objectifs:
- Sommaire lisible + sticky (desktop)
- Sections nettes (H2 + séparateurs)
- Accordéons premium (details/summary) + animations
- Accessibilité: focus-visible, contrastes, reduce-motion
============================================================ */

/* ---------- 0) Tokens locaux (sans casser :root global) ---------- */
.spo-faqpage{
  --faq-surface: rgba(255,255,255,.96);
  --faq-border: rgba(15,42,68,.14);
  --faq-border-2: rgba(15,42,68,.20);
  --faq-muted: rgba(31,41,55,.78);
  --faq-shadow: 0 12px 28px rgba(15,42,68,.10);
  --faq-shadow-2: 0 18px 44px rgba(15,42,68,.14);
  --faq-radius: 18px;
  --faq-radius-sm: 14px;
  --faq-gap: 18px;
  --faq-gap-sm: 12px;
  --faq-accent: rgba(138, 92, 246, .85); /* petit rappel "ligne violette" */
}

/* ---------- 1) Layout / conteneur ---------- */
.spo-faqpage .spo-container{
  max-width: 1120px;
}

/* Base typographique dans la FAQ */
.spo-faqpage{
  color: var(--spo-text, #1F2937);
}
.spo-faqpage p{
  line-height: 1.75;
  margin: 0 0 12px;
  color: var(--faq-muted);
}
.spo-faqpage a{
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(30,79,122,.28);
}
.spo-faqpage a:hover{
  border-bottom-color: rgba(15,42,68,.55);
}

/* ---------- 2) HERO (si tu réutilises .spo-archiveHead global) ---------- */
.spo-faqpage .spo-archiveHead__inner{
  position: relative;
  border-radius: 18px;
  padding: 18px 14px 18px 18px;
  border: 1px solid rgba(15,42,68,.14);
  box-shadow: var(--faq-shadow-2);
  background:
    radial-gradient(900px 220px at 18% -10%, rgba(15,42,68,.10), transparent 60%),
    radial-gradient(700px 220px at 92% 0%, rgba(30,79,122,.08), transparent 55%),
    linear-gradient(180deg, rgba(15,42,68,.04), rgba(255,255,255,.00));
  overflow: hidden;
}
.spo-faqpage .spo-archiveHead__inner::after{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.65);
  z-index: 0;
}
.spo-faqpage .spo-archiveHead__inner > *{
  position: relative;
  z-index: 1;
}
.spo-faqpage .spo-archiveHead h1{
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--spo-primary, #0F2A44);
}
.spo-faqpage .spo-archiveHead__subtitle{
  margin: 0;
  max-width: 90ch;
  color: rgba(15,42,68,.82);
}

/* ---------- 3) Sommaire (TOC) ---------- */
/* Supporte les deux formats: .spo-faqpage__tocGrid + .spo-faqpage__tocList */
.spo-faqpage .spo-faqpage__toc{
  margin-top: 16px;
  border-radius: var(--faq-radius);
  background: var(--faq-surface);
  border: 1px solid var(--faq-border);
  box-shadow: var(--faq-shadow);
  padding: 16px;
}
.spo-faqpage .spo-faqpage__toc h2{
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--spo-primary, #0F2A44);
}

/* Format LISTE (ton dernier HTML) */
.spo-faqpage .spo-faqpage__tocList{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.spo-faqpage .spo-faqpage__tocList li{
  margin: 0;
}
.spo-faqpage .spo-faqpage__tocList a{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,42,68,.12);
  background: rgba(15,42,68,.04);
  color: rgba(15,42,68,.92);
  font-weight: 900;
  border-bottom: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.spo-faqpage .spo-faqpage__tocList a:hover{
  background: rgba(15,42,68,.06);
  border-color: rgba(15,42,68,.18);
  transform: translateY(-1px);
}

/* Format GRID (ancienne variante) */
.spo-faqpage .spo-faqpage__tocGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.spo-faqpage .spo-faqpage__tocLink{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,42,68,.12);
  background: rgba(15,42,68,.04);
  color: rgba(15,42,68,.92);
  font-weight: 900;
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.spo-faqpage .spo-faqpage__tocLink:hover{
  background: rgba(15,42,68,.06);
  border-color: rgba(15,42,68,.18);
  transform: translateY(-1px);
}

/* Sticky TOC sur desktop (si la page est longue) */
@media (min-width: 1024px){
  .spo-faqpage .spo-faqpage__toc{
    position: sticky;
    top: 14px;
    z-index: 20;
  }
}

/* Responsive TOC */
@media (max-width: 920px){
  .spo-faqpage .spo-faqpage__tocList,
  .spo-faqpage .spo-faqpage__tocGrid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 560px){
  .spo-faqpage .spo-faqpage__tocList,
  .spo-faqpage .spo-faqpage__tocGrid{
    grid-template-columns: 1fr;
  }
  .spo-faqpage .spo-faqpage__tocList a,
  .spo-faqpage .spo-faqpage__tocLink{
    text-align: left;
  }
}

/* ---------- 4) Sections (H2 visibles) ---------- */
.spo-faqpage section.spo-container{
  margin-top: 18px;
}
.spo-faqpage section.spo-container > h2{
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(15,42,68,.06), rgba(30,79,122,.04));
  border: 1px solid rgba(15,42,68,.12);
  box-shadow: 0 8px 18px rgba(15,42,68,.06);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: var(--spo-primary, #0F2A44);
  position: relative;
  overflow: hidden;
}
.spo-faqpage section.spo-container > h2::after{
  content:"";
  position:absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--faq-accent));
  opacity: .9;
}

/* ---------- 5) Accordéons premium (details/summary) ---------- */
.spo-faqpage details{
  background: var(--faq-surface);
  border: 1px solid var(--faq-border);
  border-radius: var(--faq-radius-sm);
  box-shadow: 0 10px 22px rgba(15,42,68,.08);
  overflow: hidden;
  margin: 0 0 10px;
}

.spo-faqpage summary{
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 14px;
  font-weight: 950;
  color: rgba(15,42,68,.94);
  position: relative;
  user-select: none;
}

/* Cache le marker natif */
.spo-faqpage summary::-webkit-details-marker{ display:none; }

/* Icône +/– via pseudo-éléments */
.spo-faqpage summary::after{
  content:"";
  position:absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(15,42,68,.08);
  border: 1px solid rgba(15,42,68,.14);
}
.spo-faqpage summary::before{
  content:"+";
  position:absolute;
  right: 19px;
  top: 50%;
  transform: translateY(-52%);
  font-weight: 950;
  color: rgba(15,42,68,.85);
  font-size: 16px;
  line-height: 1;
}

.spo-faqpage details[open] summary{
  background: linear-gradient(180deg, rgba(15,42,68,.04), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(15,42,68,.10);
}
.spo-faqpage details[open] summary::before{
  content:"–";
  transform: translateY(-54%);
}

/* Contenu de réponse */
.spo-faqpage details > :not(summary){
  padding: 12px 14px 14px;
}
.spo-faqpage details > p:last-child{
  margin-bottom: 0;
}

/* Animation douce (open) */
.spo-faqpage details > :not(summary){
  animation: spo_faq_in .18s ease-out;
}
@keyframes spo_faq_in{
  from{ opacity: .0; transform: translateY(-2px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* Hover / focus */
.spo-faqpage details:hover{
  border-color: rgba(15,42,68,.20);
  box-shadow: 0 14px 30px rgba(15,42,68,.10);
}
.spo-faqpage summary:focus-visible{
  outline: 3px solid rgba(30,79,122,.35);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ---------- 6) Ancre (scroll propre) ---------- */
.spo-faqpage section[id]{
  scroll-margin-top: 92px;
}
@media (max-width: 640px){
  .spo-faqpage section[id]{
    scroll-margin-top: 74px;
  }
}

/* ---------- 7) Micro-UX: séparateur fin entre sections ---------- */
.spo-faqpage section.spo-container + section.spo-container{
  padding-top: 6px;
}

/* ---------- 8) Motion safe ---------- */
@media (prefers-reduced-motion: reduce){
  .spo-faqpage .spo-faqpage__tocList a:hover,
  .spo-faqpage .spo-faqpage__tocLink:hover{
    transform: none;
  }
  .spo-faqpage details > :not(summary){
    animation: none;
  }
}

/* ---------- 9) Mobile tweaks ---------- */
@media (max-width: 640px){
  .spo-faqpage .spo-archiveHead__inner{
    border-radius: 16px;
    padding: 14px 12px 14px 14px;
  }
  .spo-faqpage .spo-archiveHead__inner::after{
    inset: 8px;
    border-radius: 12px;
  }

  .spo-faqpage summary{
    padding: 13px 42px 13px 13px;
  }
  .spo-faqpage section.spo-container > h2{
    font-size: 17px;
    padding: 11px 12px;
  }
}
/* ============================================================
SPO — FAQ Footer CTA (bas de page) — 2026 — SAFE
Scope: .spo-faqFooterCta uniquement
============================================================ */

.spo-faqFooterCta{
  margin-top: 22px;
}
.spo-faqFooterCta__inner{
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,42,68,.14);
  box-shadow: 0 12px 28px rgba(15,42,68,.10);
  padding: 16px;
}

.spo-faqFooterCta__title{
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
  color: rgba(15,42,68,.95);
}
.spo-faqFooterCta__sub{
  margin: 0 0 12px;
  color: rgba(31,41,55,.78);
  line-height: 1.65;
}

.spo-faqFooterCta__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}

.spo-faqFooterCta__card{
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,42,68,.12);
  background: rgba(15,42,68,.04);
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.spo-faqFooterCta__card:hover{
  transform: translateY(-1px);
  background: rgba(15,42,68,.06);
  border-color: rgba(15,42,68,.18);
  box-shadow: 0 10px 22px rgba(15,42,68,.10);
}

.spo-faqFooterCta__kicker{
  display: inline-block;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(15,42,68,.65);
  margin-bottom: 6px;
}
.spo-faqFooterCta__label{
  display: block;
  font-weight: 950;
  color: rgba(15,42,68,.94);
  line-height: 1.2;
  margin-bottom: 6px;
}
.spo-faqFooterCta__desc{
  display: block;
  color: rgba(31,41,55,.78);
  line-height: 1.55;
  font-size: 13px;
}

/* Accent “primary” (Déposer une annonce) */
.spo-faqFooterCta__card--primary{
  background: rgba(15,42,68,.94);
  border-color: rgba(15,42,68,.94);
}
.spo-faqFooterCta__card--primary .spo-faqFooterCta__kicker,
.spo-faqFooterCta__card--primary .spo-faqFooterCta__label,
.spo-faqFooterCta__card--primary .spo-faqFooterCta__desc{
  color: #fff;
}
.spo-faqFooterCta__card--primary:hover{
  background: rgba(15,42,68,1);
  border-color: rgba(15,42,68,1);
}

/* Accent Facebook */
.spo-faqFooterCta__card--fb{
  background: linear-gradient(135deg, rgba(66,103,178,.16), rgba(15,42,68,.04));
  border-color: rgba(66,103,178,.22);
}
.spo-faqFooterCta__card--fb .spo-faqFooterCta__kicker{
  color: rgba(66,103,178,.92);
}

/* Responsive */
@media (max-width: 980px){
  .spo-faqFooterCta__grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 560px){
  .spo-faqFooterCta__grid{
    grid-template-columns: 1fr;
  }
  .spo-faqFooterCta__card:hover{
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce){
  .spo-faqFooterCta__card{
    transition: none;
  }
  .spo-faqFooterCta__card:hover{
    transform: none;
  }
}
/* ============================================================
SPO — FAQ Highlight (accordion color) — SAFE
Ajoute une couleur différenciante pour une question "premium"
============================================================ */

.spo-faqpage details.spo-faq__item--highlight{
  border-color: rgba(138,92,246,.30);
  background: linear-gradient(135deg, rgba(138,92,246,.10), rgba(255,255,255,.96));
  box-shadow: 0 16px 36px rgba(15,42,68,.12);
}

.spo-faqpage details.spo-faq__item--highlight summary{
  background: linear-gradient(180deg, rgba(138,92,246,.12), rgba(255,255,255,0));
}

.spo-faqpage details.spo-faq__item--highlight summary::after{
  background: rgba(138,92,246,.12);
  border-color: rgba(138,92,246,.28);
}

.spo-faqpage details.spo-faq__item--highlight summary::before{
  color: rgba(88, 46, 214, .92);
}
