/* Recherche (reprise de l'ancienne refonte-ressources.css, seule partie
   utilisée ici — le fichier ressources a été supprimé avec la zone). */
.res-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  max-width: 560px;
  margin: 28px auto 0;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  padding: 0 5px 0 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.res-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(14, 143, 95, .12); }
.res-search svg { color: var(--muted); flex: none; }
.res-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
}
.res-search input::placeholder { color: var(--muted); }
.res-search .btn { height: 36px; border-radius: var(--r-sm); flex: none; }
.res-search .clear {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--muted);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.res-search .clear:hover { background: rgba(18, 26, 22, .06); color: var(--ink); }

/* Chips « Souvent demandé » sous la recherche (motif du système) */
.res-suggests {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.sg-lab {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.sg-chip {
  display: inline-flex; align-items: center;
  height: 32px; padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sg-chip:hover { border-color: var(--green, #0E8F5F); box-shadow: var(--shadow-sm); }

/* ============================================================
   Savoira — Refonte FAQ (Centre d'aide)
   Assemblage : accordéon (refonte-ccm.css), recherche
   (refonte-ressources.css), TOC gabarit légal
   (refonte-confidentialite.css). Ce fichier : en-tête, stats,
   carte support pine, sections, bande contact pine.
   États démo : ?etat=recherche · ?etat=vide
   ============================================================ */

/* ---------- En-tête (§2) ---------- */

.faq-head { padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
.faq-head .h1 { font-size: clamp(36px, 4.6vw, 56px); margin-top: 16px; }
.faq-head .ph-sub { max-width: 560px; }
.faq-head .res-search { margin: 28px 0 0; max-width: 620px; }
.faq-head .res-search .clear {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #F0F2EF;
  color: var(--muted);
  display: none;
  place-items: center;
  cursor: pointer;
  flex: none;
  margin-right: 4px;
}
.faq-head .res-search .clear.show { display: grid; }
.faq-head .res-search .clear:hover { color: var(--ink); background: var(--line); }
.faq-head .res-suggests { justify-content: flex-start; }

.faq-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 24px;
}
.fs-cell { padding: 0 24px; border-left: 1px solid var(--line); }
.fs-cell:first-child { border-left: none; padding-left: 0; }
.fs-cell .k {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}
.fs-cell .v {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.fs-cell .v .fx {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--green-deep);
  letter-spacing: 0.04em;
}

/* ---------- Sidebar « Rayons » (§3.1) ---------- */

.faq-toc-wrap { position: sticky; top: 88px; }
.faq-toc-wrap .legal-toc { position: static; top: auto; }
.legal-toc ol a .cnt {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.legal-toc ol a.on .cnt { color: var(--green-deep); }
.toc-chips a .cnt {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.toc-chips a.on .cnt { color: var(--green-deep); }

/* Carte support pine */
.support-pine {
  margin-top: 12px;
  background: var(--pine);
  border-radius: var(--r-card);
  padding: 18px;
}
.support-pine .sp-t {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.support-pine .sp-t .accent-serif { color: var(--on-pine-accent); }
.support-pine .sp-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--on-pine-muted);
  margin-top: 8px;
}
.support-pine .sp-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--on-pine-accent);
  margin-top: 14px;
}
.support-pine .sp-link:hover { color: #fff; }
.support-pine .sp-link svg { transition: transform .15s ease; }
.support-pine .sp-link:hover svg { transform: translateX(2px); }
.support-pine-mobile { display: none; }

/* ---------- Sections (§3.2) ---------- */

.faq-sec { margin-bottom: 56px; scroll-margin-top: 110px; }
.faq-sec:last-of-type { margin-bottom: 0; }
.fsec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.fsec-head .lh { display: flex; align-items: baseline; gap: 14px; }
.fsec-head .num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}
.fsec-head h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.fsec-head .blurb { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.fsec-head .qcount {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
  white-space: nowrap;
  padding-bottom: 3px;
}

/* Réponses : liens, gras, code */
.fq-a a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; }
.fq-a a:hover { color: var(--pine); }
.fq-a strong { color: var(--ink); font-weight: 600; }
.fq-a code {
  font-family: var(--mono);
  font-size: 13px;
  background: #F2F4F1;
  padding: 1px 6px;
  border-radius: 5px;
}
.fq-item[hidden] { display: none; }

/* ---------- État vide (§3.3) ---------- */

.faq-empty {
  display: none;
  padding: 56px 28px;
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  text-align: center;
}
.faq-empty.show { display: block; }
.faq-empty .fe-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mint);
  border: 1px solid var(--mint-line);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}
.faq-empty h3 { font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.faq-empty p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.faq-empty a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; }
.faq-empty a:hover { color: var(--pine); }

/* Annonce lecteur d'écran */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Bande contact pine (§4) ---------- */

.faq-contact { background: var(--pine); padding: 88px 0; }
.fc-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.fc-head .kicker {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--on-pine-accent);
  margin-bottom: 14px;
}
.fc-head .h2 { color: #fff; }
.fc-head .h2 .accent-serif { color: var(--on-pine-accent); }
.fc-head p { color: var(--on-pine-muted); font-size: 16px; margin-top: 14px; text-wrap: pretty; }

.fc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1020px;
  margin: 0 auto;
}
.fc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--on-pine-line);
  background: rgba(255, 255, 255, .03);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.fc-card:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .24);
  transform: translateY(-2px);
}
.fc-card .fc-ico {
  width: 36px;
  height: 36px;
  border-radius: var(--r-btn);
  background: var(--mint);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.fc-card .fc-ico svg { width: 18px; height: 18px; }
.fc-card .fc-k {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--on-pine-accent);
  margin-bottom: 8px;
}
.fc-card .fc-t { font-size: 16px; font-weight: 600; color: #fff; letter-spacing: -0.01em; line-height: 1.35; }
.fc-card .fc-d { font-size: 13.5px; color: var(--on-pine-text); line-height: 1.6; margin-top: 6px; }
.fc-card .fc-link {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--on-pine-accent);
}
.fc-card:hover .fc-link { color: #fff; }
.fc-card .fc-link svg { transition: transform .15s ease; }
.fc-card:hover .fc-link svg { transform: translateX(2px); }

.fc-status { display: flex; justify-content: center; margin-top: 32px; }
.fc-status .pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--on-pine-line);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-pine-text);
}
.fc-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--on-pine-accent);
  box-shadow: 0 0 0 3px rgba(123, 212, 168, .18);
  flex: none;
}
.fc-status b { color: #fff; font-weight: 600; }

/* ---------- FAQ v2 simplifiée (redesign juillet 2026) ----------
   En-tête variante A centrée, colonne unique 800 px — sans recherche,
   stats ni rayons. Accordéon (refonte-ccm.css) et bande contact inchangés. */
.faq-head--center { text-align: center; padding: 56px 0 48px; }
.faq-head--center .breadcrumb { justify-content: center; }
.faq-head--center .ph-sub { margin-inline: auto; }
.faq-simple-body { padding: 64px 0 96px; }
.faq-col { max-width: 800px; margin: 0 auto; }
@media (max-width: 600px) {
  .faq-head--center { padding: 40px 0 36px; }
  .faq-simple-body { padding: 48px 0 72px; }
}

/* ---------- Responsive (§5) ---------- */

@media (max-width: 1000px) {
  .faq-stats { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .fs-cell:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 880px) {
  .fc-grid { grid-template-columns: 1fr; }
  .support-pine-mobile { display: block; margin-top: 44px; max-width: 480px; }
}

@media (max-width: 600px) {
  .faq-head { padding: 40px 0 32px; }
  .faq-head .res-search { max-width: none; }
  .fsec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fsec-head .qcount { padding-bottom: 0; }
  .faq-contact { padding: 64px 0; }
  .fs-cell { padding: 0 16px; }
  .fs-cell .v { font-size: 18px; }
}
